@redneckz/wildless-cms-uni-blocks 0.14.764 → 0.14.766
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +2131 -5631
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/model/InputSectionsType.d.ts +0 -9
- package/bundle/ui-kit/FormField/getObjectValidator.d.ts +1 -1
- package/bundle/ui-kit/FormField/validators.d.ts +0 -10
- package/bundle/ui-kit/Input/InputProps.d.ts +0 -4
- package/bundle/utils/isCyrilic.d.ts +1 -0
- package/bundle/utils/joinPath.d.ts +2 -0
- package/bundle/utils/url.d.ts +2 -2
- package/dist/components/Blocks.js +0 -6
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -6
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/model/InputSectionsType.d.ts +0 -9
- package/dist/ui-kit/FormField/Fields/InnField.js +1 -11
- package/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/MiddleNameField.js +1 -2
- package/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/NameField.js +1 -2
- package/dist/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PhoneField.js +1 -2
- package/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/SurnameField.js +1 -3
- package/dist/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/{consentToReceiveMaterialsField.js → /320/241onsentToReceiveMaterialsField.js} +1 -1
- package/dist/ui-kit/FormField/Fields//320/241onsentToReceiveMaterialsField.js.map +1 -0
- package/dist/ui-kit/FormField/getField.js +2 -2
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.d.ts +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +8 -77
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/FormField/validators.d.ts +0 -10
- package/dist/ui-kit/FormField/validators.js +3 -53
- package/dist/ui-kit/FormField/validators.js.map +1 -1
- package/dist/ui-kit/Input/InputControl.js +4 -13
- package/dist/ui-kit/Input/InputControl.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +0 -4
- package/dist/utils/isCyrilic.d.ts +1 -0
- package/dist/utils/isCyrilic.js +6 -0
- package/dist/utils/isCyrilic.js.map +1 -0
- package/dist/utils/joinPath.d.ts +2 -0
- package/dist/utils/joinPath.js +24 -0
- package/dist/utils/joinPath.js.map +1 -0
- package/dist/utils/url.d.ts +2 -2
- package/dist/utils/url.js +2 -10
- package/dist/utils/url.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Blocks.js +0 -6
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -6
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/model/InputSectionsType.d.ts +0 -9
- package/lib/ui-kit/FormField/Fields/InnField.js +1 -11
- package/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/MiddleNameField.js +1 -2
- package/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/NameField.js +1 -2
- package/lib/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PhoneField.js +1 -2
- package/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/SurnameField.js +1 -3
- package/lib/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/{consentToReceiveMaterialsField.js → /320/241onsentToReceiveMaterialsField.js} +1 -1
- package/lib/ui-kit/FormField/Fields//320/241onsentToReceiveMaterialsField.js.map +1 -0
- package/lib/ui-kit/FormField/getField.js +1 -1
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.d.ts +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +9 -78
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/FormField/validators.d.ts +0 -10
- package/lib/ui-kit/FormField/validators.js +1 -42
- package/lib/ui-kit/FormField/validators.js.map +1 -1
- package/lib/ui-kit/Input/InputControl.js +4 -13
- package/lib/ui-kit/Input/InputControl.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +0 -4
- package/lib/utils/isCyrilic.d.ts +1 -0
- package/lib/utils/isCyrilic.js +3 -0
- package/lib/utils/isCyrilic.js.map +1 -0
- package/lib/utils/joinPath.d.ts +2 -0
- package/lib/utils/joinPath.js +20 -0
- package/lib/utils/joinPath.js.map +1 -0
- package/lib/utils/url.d.ts +2 -2
- package/lib/utils/url.js +1 -9
- package/lib/utils/url.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +2120 -5620
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/model/InputSectionsType.d.ts +0 -9
- package/mobile/bundle/ui-kit/FormField/getObjectValidator.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/validators.d.ts +0 -10
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +0 -4
- package/mobile/bundle/utils/isCyrilic.d.ts +1 -0
- package/mobile/bundle/utils/joinPath.d.ts +2 -0
- package/mobile/bundle/utils/url.d.ts +2 -2
- package/mobile/dist/components/Blocks.js +0 -6
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/model/InputSectionsType.d.ts +0 -9
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js +1 -11
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/NameField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/SurnameField.js +1 -3
- package/mobile/dist/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/{consentToReceiveMaterialsField.js → /320/241onsentToReceiveMaterialsField.js} +1 -1
- package/mobile/dist/ui-kit/FormField/Fields//320/241onsentToReceiveMaterialsField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/getField.js +2 -2
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +8 -77
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/validators.d.ts +0 -10
- package/mobile/dist/ui-kit/FormField/validators.js +3 -53
- package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputControl.js +4 -13
- package/mobile/dist/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +0 -4
- package/mobile/dist/utils/isCyrilic.d.ts +1 -0
- package/mobile/dist/utils/isCyrilic.js +6 -0
- package/mobile/dist/utils/isCyrilic.js.map +1 -0
- package/mobile/dist/utils/joinPath.d.ts +2 -0
- package/mobile/dist/utils/joinPath.js +24 -0
- package/mobile/dist/utils/joinPath.js.map +1 -0
- package/mobile/dist/utils/url.d.ts +2 -2
- package/mobile/dist/utils/url.js +2 -10
- package/mobile/dist/utils/url.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Blocks.js +0 -6
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/model/InputSectionsType.d.ts +0 -9
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js +1 -11
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/NameField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/SurnameField.js +1 -3
- package/mobile/lib/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/{consentToReceiveMaterialsField.js → /320/241onsentToReceiveMaterialsField.js} +1 -1
- package/mobile/lib/ui-kit/FormField/Fields//320/241onsentToReceiveMaterialsField.js.map +1 -0
- 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/getObjectValidator.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +9 -78
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/validators.d.ts +0 -10
- package/mobile/lib/ui-kit/FormField/validators.js +1 -42
- package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputControl.js +4 -13
- package/mobile/lib/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +0 -4
- package/mobile/lib/utils/isCyrilic.d.ts +1 -0
- package/mobile/lib/utils/isCyrilic.js +3 -0
- package/mobile/lib/utils/isCyrilic.js.map +1 -0
- package/mobile/lib/utils/joinPath.d.ts +2 -0
- package/mobile/lib/utils/joinPath.js +20 -0
- package/mobile/lib/utils/joinPath.js.map +1 -0
- package/mobile/lib/utils/url.d.ts +2 -2
- package/mobile/lib/utils/url.js +1 -9
- package/mobile/lib/utils/url.js.map +1 -1
- package/mobile/src/components/Blocks.ts +0 -6
- package/mobile/src/model/InputSectionsType.ts +0 -11
- package/mobile/src/ui-kit/FormField/Fields/InnField.tsx +9 -23
- package/mobile/src/ui-kit/FormField/Fields/MiddleNameField.tsx +0 -2
- package/mobile/src/ui-kit/FormField/Fields/NameField.tsx +1 -8
- package/mobile/src/ui-kit/FormField/Fields/PhoneField.tsx +1 -9
- package/mobile/src/ui-kit/FormField/Fields/SurnameField.tsx +1 -10
- package/mobile/src/ui-kit/FormField/getField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +11 -88
- package/mobile/src/ui-kit/FormField/validators.ts +1 -77
- package/mobile/src/ui-kit/Input/InputControl.tsx +3 -17
- package/mobile/src/ui-kit/Input/InputProps.ts +0 -4
- package/mobile/src/utils/isCyrilic.ts +3 -0
- package/mobile/src/utils/joinPath.ts +24 -0
- package/mobile/src/utils/url.ts +2 -11
- package/package.json +2 -2
- package/src/components/Blocks.mobile.ts +0 -6
- package/src/components/Blocks.ts +0 -6
- package/src/model/InputSectionsType.ts +0 -11
- package/src/ui-kit/FormField/Fields/InnField.tsx +9 -23
- package/src/ui-kit/FormField/Fields/MiddleNameField.tsx +0 -2
- package/src/ui-kit/FormField/Fields/NameField.tsx +1 -8
- package/src/ui-kit/FormField/Fields/PhoneField.tsx +1 -9
- package/src/ui-kit/FormField/Fields/SurnameField.tsx +1 -10
- package/src/ui-kit/FormField/getField.tsx +1 -1
- package/src/ui-kit/FormField/getObjectValidator.tsx +11 -88
- package/src/ui-kit/FormField/validators.ts +1 -77
- package/src/ui-kit/Input/InputControl.tsx +3 -17
- package/src/ui-kit/Input/InputProps.ts +0 -4
- package/src/utils/isCyrilic.ts +3 -0
- package/src/utils/joinPath.ts +24 -0
- package/src/utils/url.ts +2 -11
- package/bundle/api/RetailAPI/StatusType.d.ts +0 -1
- package/bundle/api/RetailAPI/checkCaptcha.d.ts +0 -4
- package/bundle/api/RetailAPI/checkCode.d.ts +0 -12
- package/bundle/api/RetailAPI/createCaptcha.d.ts +0 -1
- package/bundle/api/RetailAPI/createDraftTask.d.ts +0 -9
- package/bundle/api/RetailAPI/createUserProfile.d.ts +0 -9
- package/bundle/api/RetailAPI/doRequest.d.ts +0 -2
- package/bundle/api/RetailAPI/draftTasksKZO.d.ts +0 -34
- package/bundle/api/RetailAPI/feedbackById.d.ts +0 -1
- package/bundle/api/RetailAPI/getCardTypes.d.ts +0 -8
- package/bundle/api/RetailAPI/getGenderFromName.d.ts +0 -1
- package/bundle/api/RetailAPI/getLastTaskStatus.d.ts +0 -6
- package/bundle/api/RetailAPI/getLink.d.ts +0 -7
- package/bundle/api/RetailAPI/getPaymentSystems.d.ts +0 -2
- package/bundle/api/RetailAPI/getTaskById.d.ts +0 -6
- package/bundle/api/RetailAPI/getTaskStatus.d.ts +0 -18
- package/bundle/api/RetailAPI/getTraceId.d.ts +0 -1
- package/bundle/api/RetailAPI/getUserTasks.d.ts +0 -41
- package/bundle/api/RetailAPI/regionOffices.d.ts +0 -16
- package/bundle/api/RetailAPI/sendCode.d.ts +0 -7
- package/bundle/api/RetailAPI/sendSignalToProcess.d.ts +0 -7
- package/bundle/api/RetailAPI/updateProfileEsia.d.ts +0 -66
- package/bundle/api/RetailAPI/updateRefreshToken.d.ts +0 -1
- package/bundle/api/RetailAPI/updateUserProfile.d.ts +0 -21
- package/bundle/api/RetailAPI/updateUserTask.d.ts +0 -140
- package/bundle/api/dadataHints/dadataHints.d.ts +0 -2
- package/bundle/api/dadataHints/dadataHintsType.d.ts +0 -68
- package/bundle/api/dadataHints/hintsListsOptions.d.ts +0 -11
- package/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -6
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -18
- package/bundle/components/ApplicationLeadForm/Footnote.d.ts +0 -7
- package/bundle/components/ApplicationLeadForm/GroupedConsents.d.ts +0 -8
- package/bundle/components/ApplicationLeadForm/applicationFormData.d.ts +0 -2
- package/bundle/components/ApplicationLeadForm/consents.d.ts +0 -7
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +0 -3
- package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +0 -10
- package/bundle/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +0 -3
- package/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -4
- package/bundle/components/ApplicationLeadForm/renderInputs.d.ts +0 -2
- package/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +0 -2
- package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +0 -11
- package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -5
- package/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +0 -15
- package/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +0 -9
- package/bundle/components/CreditCardForm/CreditCardForm.d.ts +0 -6
- package/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +0 -21
- package/bundle/components/CreditCardForm/CreditCardFormProgress.d.ts +0 -6
- package/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +0 -15
- package/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +0 -1
- package/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +0 -9
- package/bundle/components/CreditCardForm/FailedStatusContent.d.ts +0 -1
- package/bundle/components/CreditCardForm/PendingStatusContent.d.ts +0 -3
- package/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +0 -1
- package/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +0 -6
- package/bundle/components/CreditCardForm/SuccessStatusCardContent.d.ts +0 -1
- package/bundle/components/CreditCardForm/creditCardFormStepsData.d.ts +0 -2
- package/bundle/components/CreditCardForm/formStateMap.d.ts +0 -2
- package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +0 -11
- package/bundle/components/CreditCardForm/getDeliveryCreditCardData.d.ts +0 -28
- package/bundle/components/CreditCardForm/getInitialFormState.d.ts +0 -2
- package/bundle/components/CreditCardForm/renderInputs.d.ts +0 -9
- package/bundle/components/CreditCardForm/renderStep.d.ts +0 -10
- package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +0 -8
- package/bundle/components/CreditForm/CreditForm.d.ts +0 -9
- package/bundle/components/CreditForm/CreditFormContent.d.ts +0 -9
- package/bundle/components/CreditForm/CreditFormProgress.d.ts +0 -6
- package/bundle/components/CreditForm/CreditFormStatus.d.ts +0 -15
- package/bundle/components/CreditForm/CreditFormStatusTracker.d.ts +0 -1
- package/bundle/components/CreditForm/CreditFormStep.d.ts +0 -11
- package/bundle/components/CreditForm/FailedStatusContent.d.ts +0 -1
- package/bundle/components/CreditForm/PendingStatusContent.d.ts +0 -3
- package/bundle/components/CreditForm/ProgramsSourceProps.d.ts +0 -16
- package/bundle/components/CreditForm/ReworkStatusContent.d.ts +0 -1
- package/bundle/components/CreditForm/StepsNavigationButtons.d.ts +0 -6
- package/bundle/components/CreditForm/SuccessStatusContent.d.ts +0 -1
- package/bundle/components/CreditForm/creditFormStepsData.d.ts +0 -2
- package/bundle/components/CreditForm/formStateMap.d.ts +0 -2
- package/bundle/components/CreditForm/getCalcData.d.ts +0 -3
- package/bundle/components/CreditForm/getInitialFormState.d.ts +0 -2
- package/bundle/components/CreditForm/renderInputs.d.ts +0 -9
- package/bundle/components/CreditForm/renderStep.d.ts +0 -10
- package/bundle/components/CreditForm/useCreditFormAPI.d.ts +0 -8
- package/bundle/components/CreditForm/utils.d.ts +0 -25
- package/bundle/hooks/useLeadFormData.d.ts +0 -8
- package/bundle/hooks/useRetailFormStore.d.ts +0 -36
- package/bundle/services/retail/adaptors/getAdditionalInfoData.d.ts +0 -3
- package/bundle/services/retail/adaptors/getCalculatorData.d.ts +0 -3
- package/bundle/services/retail/adaptors/getCardOptionsData.d.ts +0 -3
- package/bundle/services/retail/adaptors/getCreditFormTaskData.d.ts +0 -11
- package/bundle/services/retail/adaptors/getDeliveryCreditData.d.ts +0 -3
- package/bundle/services/retail/adaptors/getEmploymentData.d.ts +0 -3
- package/bundle/services/retail/adaptors/getFamilyStatusAndIncomeData.d.ts +0 -4
- package/bundle/services/retail/adaptors/getPersonalInfoData.d.ts +0 -3
- package/bundle/services/retail/content.d.ts +0 -6
- package/bundle/services/retail/external/types.d.ts +0 -10
- package/bundle/services/retail/external/utils.d.ts +0 -2
- package/bundle/services/retail/inputs.d.ts +0 -75
- package/bundle/services/retail/mockLocalStorage.d.ts +0 -1
- package/bundle/services/retail/model/EOrganizationActivityTypes.d.ts +0 -23
- package/bundle/services/retail/model/LeadFormData.d.ts +0 -7
- package/bundle/services/retail/model/LeadFormState.d.ts +0 -146
- package/bundle/services/retail/model/NameFieldDef.d.ts +0 -6
- package/bundle/services/retail/model/RetailFormContent.d.ts +0 -26
- package/bundle/services/retail/utils/calculateInputs.d.ts +0 -5
- package/bundle/services/retail/utils/getOrganizationParams.d.ts +0 -17
- package/bundle/services/retail/utils/getUpdateUserProfile.d.ts +0 -3
- package/bundle/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +0 -6
- package/bundle/ui-kit/Checkbox/CheckboxWithDoc.d.ts +0 -6
- package/bundle/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +0 -5
- package/bundle/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +0 -3
- package/bundle/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -6
- package/bundle/ui-kit/DocumentDialog/useDocumentDialog.d.ts +0 -2
- package/bundle/ui-kit/DraftDialog/DraftActionButton.d.ts +0 -8
- package/bundle/ui-kit/DraftDialog/DraftDialog.d.ts +0 -7
- package/bundle/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +0 -4
- package/bundle/ui-kit/DraftDialog/parseDraftTask.d.ts +0 -3
- package/bundle/ui-kit/DraftDialog/useDraftDialog.d.ts +0 -10
- package/bundle/ui-kit/DraftDialog/utils.d.ts +0 -148
- package/bundle/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/bundle/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/bundle/ui-kit/FormField/Fields/AddressFactField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/AddressField.d.ts +0 -20
- package/bundle/ui-kit/FormField/Fields/AddressMatchField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/AddressRetailField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/AmountWorkersField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/ArmyIdFlgField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/BeginDateField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/BirthPlaceField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/CardCategoryField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/ChildrenField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/CodeWordField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/ConfirmationIncomeField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/ConscriptionField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/ConsentField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/CreditCalcField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/CurrencyField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/DependentsField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/DulIssueDateField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/DulIssuedByField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/DulNumberField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/DulSerieField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/EducationField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/EmploymentField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/ExpensesField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/FamilyMembersField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/FamilyStatusField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/GeneralSeniorityField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/HousingField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/InfoCardField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/JobsNumberField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/LastJobExperienceField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/LegalFormField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/MethodObtainField.d.ts +0 -4
- package/bundle/ui-kit/FormField/Fields/OrganizationField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/OrganizationNameField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/OtherIncomeField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/PartInBusinessField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/PaymentSystemField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/RegionRetailField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/SexField.d.ts +0 -4
- package/bundle/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/SnilsField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/TotalIncomeField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/WagesField.d.ts +0 -2
- package/bundle/ui-kit/FormField/SelectField.d.ts +0 -12
- package/bundle/ui-kit/FormField/isEsiaAuthorize.d.ts +0 -2
- package/bundle/ui-kit/FormField/updateOrganizationFields.d.ts +0 -4
- package/bundle/ui-kit/Input/InputPopup.d.ts +0 -8
- package/bundle/ui-kit/Input/useInputPopup.d.ts +0 -13
- package/bundle/ui-kit/VerifyPhoneDialog/InputCode.d.ts +0 -8
- package/bundle/ui-kit/VerifyPhoneDialog/SubmitButton.d.ts +0 -7
- package/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -10
- package/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +0 -16
- package/dist/api/RetailAPI/StatusType.d.ts +0 -1
- package/dist/api/RetailAPI/StatusType.js +0 -2
- package/dist/api/RetailAPI/StatusType.js.map +0 -1
- package/dist/api/RetailAPI/checkCaptcha.d.ts +0 -4
- package/dist/api/RetailAPI/checkCaptcha.js +0 -8
- package/dist/api/RetailAPI/checkCaptcha.js.map +0 -1
- package/dist/api/RetailAPI/checkCode.d.ts +0 -12
- package/dist/api/RetailAPI/checkCode.js +0 -12
- package/dist/api/RetailAPI/checkCode.js.map +0 -1
- package/dist/api/RetailAPI/createCaptcha.d.ts +0 -1
- package/dist/api/RetailAPI/createCaptcha.js +0 -6
- package/dist/api/RetailAPI/createCaptcha.js.map +0 -1
- package/dist/api/RetailAPI/createDraftTask.d.ts +0 -9
- package/dist/api/RetailAPI/createDraftTask.js +0 -9
- package/dist/api/RetailAPI/createDraftTask.js.map +0 -1
- package/dist/api/RetailAPI/createUserProfile.d.ts +0 -9
- package/dist/api/RetailAPI/createUserProfile.js +0 -6
- package/dist/api/RetailAPI/createUserProfile.js.map +0 -1
- package/dist/api/RetailAPI/doRequest.d.ts +0 -2
- package/dist/api/RetailAPI/doRequest.js +0 -36
- package/dist/api/RetailAPI/doRequest.js.map +0 -1
- package/dist/api/RetailAPI/draftTasksKZO.d.ts +0 -34
- package/dist/api/RetailAPI/draftTasksKZO.js +0 -9
- package/dist/api/RetailAPI/draftTasksKZO.js.map +0 -1
- package/dist/api/RetailAPI/feedbackById.d.ts +0 -1
- package/dist/api/RetailAPI/feedbackById.js +0 -9
- package/dist/api/RetailAPI/feedbackById.js.map +0 -1
- package/dist/api/RetailAPI/getCardTypes.d.ts +0 -8
- package/dist/api/RetailAPI/getCardTypes.js +0 -12
- package/dist/api/RetailAPI/getCardTypes.js.map +0 -1
- package/dist/api/RetailAPI/getGenderFromName.d.ts +0 -1
- package/dist/api/RetailAPI/getGenderFromName.js +0 -17
- package/dist/api/RetailAPI/getGenderFromName.js.map +0 -1
- package/dist/api/RetailAPI/getLastTaskStatus.d.ts +0 -6
- package/dist/api/RetailAPI/getLastTaskStatus.js +0 -9
- package/dist/api/RetailAPI/getLastTaskStatus.js.map +0 -1
- package/dist/api/RetailAPI/getLink.d.ts +0 -7
- package/dist/api/RetailAPI/getLink.js +0 -6
- package/dist/api/RetailAPI/getLink.js.map +0 -1
- package/dist/api/RetailAPI/getPaymentSystems.d.ts +0 -2
- package/dist/api/RetailAPI/getPaymentSystems.js +0 -15
- package/dist/api/RetailAPI/getPaymentSystems.js.map +0 -1
- package/dist/api/RetailAPI/getTaskById.d.ts +0 -6
- package/dist/api/RetailAPI/getTaskById.js +0 -9
- package/dist/api/RetailAPI/getTaskById.js.map +0 -1
- package/dist/api/RetailAPI/getTaskStatus.d.ts +0 -18
- package/dist/api/RetailAPI/getTaskStatus.js +0 -18
- package/dist/api/RetailAPI/getTaskStatus.js.map +0 -1
- package/dist/api/RetailAPI/getTraceId.d.ts +0 -1
- package/dist/api/RetailAPI/getTraceId.js +0 -9
- package/dist/api/RetailAPI/getTraceId.js.map +0 -1
- package/dist/api/RetailAPI/getUserTasks.d.ts +0 -41
- package/dist/api/RetailAPI/getUserTasks.js +0 -15
- package/dist/api/RetailAPI/getUserTasks.js.map +0 -1
- package/dist/api/RetailAPI/regionOffices.d.ts +0 -16
- package/dist/api/RetailAPI/regionOffices.js +0 -20
- package/dist/api/RetailAPI/regionOffices.js.map +0 -1
- package/dist/api/RetailAPI/sendCode.d.ts +0 -7
- package/dist/api/RetailAPI/sendCode.js +0 -8
- package/dist/api/RetailAPI/sendCode.js.map +0 -1
- package/dist/api/RetailAPI/sendSignalToProcess.d.ts +0 -7
- package/dist/api/RetailAPI/sendSignalToProcess.js +0 -6
- package/dist/api/RetailAPI/sendSignalToProcess.js.map +0 -1
- package/dist/api/RetailAPI/updateProfileEsia.d.ts +0 -66
- package/dist/api/RetailAPI/updateProfileEsia.js +0 -6
- package/dist/api/RetailAPI/updateProfileEsia.js.map +0 -1
- package/dist/api/RetailAPI/updateRefreshToken.d.ts +0 -1
- package/dist/api/RetailAPI/updateRefreshToken.js +0 -39
- package/dist/api/RetailAPI/updateRefreshToken.js.map +0 -1
- package/dist/api/RetailAPI/updateUserProfile.d.ts +0 -21
- package/dist/api/RetailAPI/updateUserProfile.js +0 -6
- package/dist/api/RetailAPI/updateUserProfile.js.map +0 -1
- package/dist/api/RetailAPI/updateUserTask.d.ts +0 -140
- package/dist/api/RetailAPI/updateUserTask.js +0 -6
- package/dist/api/RetailAPI/updateUserTask.js.map +0 -1
- package/dist/api/dadataHints/dadataHints.d.ts +0 -2
- package/dist/api/dadataHints/dadataHints.js +0 -38
- package/dist/api/dadataHints/dadataHints.js.map +0 -1
- package/dist/api/dadataHints/dadataHintsType.d.ts +0 -68
- package/dist/api/dadataHints/dadataHintsType.js +0 -2
- package/dist/api/dadataHints/dadataHintsType.js.map +0 -1
- package/dist/api/dadataHints/hintsListsOptions.d.ts +0 -11
- package/dist/api/dadataHints/hintsListsOptions.js +0 -58
- package/dist/api/dadataHints/hintsListsOptions.js.map +0 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -6
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +0 -40
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +0 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -18
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +0 -2
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +0 -1
- package/dist/components/ApplicationLeadForm/Footnote.d.ts +0 -7
- package/dist/components/ApplicationLeadForm/Footnote.js +0 -9
- package/dist/components/ApplicationLeadForm/Footnote.js.map +0 -1
- package/dist/components/ApplicationLeadForm/GroupedConsents.d.ts +0 -8
- package/dist/components/ApplicationLeadForm/GroupedConsents.js +0 -33
- package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +0 -1
- package/dist/components/ApplicationLeadForm/applicationFormData.d.ts +0 -2
- package/dist/components/ApplicationLeadForm/applicationFormData.js +0 -25
- package/dist/components/ApplicationLeadForm/applicationFormData.js.map +0 -1
- package/dist/components/ApplicationLeadForm/consents.d.ts +0 -7
- package/dist/components/ApplicationLeadForm/consents.js +0 -25
- package/dist/components/ApplicationLeadForm/consents.js.map +0 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +0 -3
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +0 -24
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +0 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +0 -10
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +0 -51
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +0 -1
- package/dist/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +0 -3
- package/dist/components/ApplicationLeadForm/pasreEsiaProfile.js +0 -53
- package/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +0 -1
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -4
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -14
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
- package/dist/components/ApplicationLeadForm/renderInputs.d.ts +0 -2
- package/dist/components/ApplicationLeadForm/renderInputs.js +0 -18
- package/dist/components/ApplicationLeadForm/renderInputs.js.map +0 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +0 -2
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js +0 -7
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +0 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +0 -11
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +0 -114
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +0 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -5
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +0 -55
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +0 -1
- package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +0 -15
- package/dist/components/ApplicationLeadForm/useLeadFormStore.js +0 -6
- package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +0 -1
- package/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +0 -9
- package/dist/components/ApplicationLeadForm/useSaveUserData.js +0 -17
- package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +0 -1
- package/dist/components/CreditCardForm/CreditCardForm.d.ts +0 -6
- package/dist/components/CreditCardForm/CreditCardForm.js +0 -40
- package/dist/components/CreditCardForm/CreditCardForm.js.map +0 -1
- package/dist/components/CreditCardForm/CreditCardFormContent.d.ts +0 -21
- package/dist/components/CreditCardForm/CreditCardFormContent.js +0 -2
- package/dist/components/CreditCardForm/CreditCardFormContent.js.map +0 -1
- package/dist/components/CreditCardForm/CreditCardFormProgress.d.ts +0 -6
- package/dist/components/CreditCardForm/CreditCardFormProgress.js +0 -11
- package/dist/components/CreditCardForm/CreditCardFormProgress.js.map +0 -1
- package/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +0 -15
- package/dist/components/CreditCardForm/CreditCardFormStatus.js +0 -23
- package/dist/components/CreditCardForm/CreditCardFormStatus.js.map +0 -1
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +0 -1
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +0 -51
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +0 -1
- package/dist/components/CreditCardForm/CreditCardFormStep.d.ts +0 -9
- package/dist/components/CreditCardForm/CreditCardFormStep.js +0 -28
- package/dist/components/CreditCardForm/CreditCardFormStep.js.map +0 -1
- package/dist/components/CreditCardForm/FailedStatusContent.d.ts +0 -1
- package/dist/components/CreditCardForm/FailedStatusContent.js +0 -7
- package/dist/components/CreditCardForm/FailedStatusContent.js.map +0 -1
- package/dist/components/CreditCardForm/PendingStatusContent.d.ts +0 -3
- package/dist/components/CreditCardForm/PendingStatusContent.js +0 -20
- package/dist/components/CreditCardForm/PendingStatusContent.js.map +0 -1
- package/dist/components/CreditCardForm/ReworkStatusContent.d.ts +0 -1
- package/dist/components/CreditCardForm/ReworkStatusContent.js +0 -35
- package/dist/components/CreditCardForm/ReworkStatusContent.js.map +0 -1
- package/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +0 -6
- package/dist/components/CreditCardForm/StepsNavigationButtons.js +0 -12
- package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +0 -1
- package/dist/components/CreditCardForm/SuccessStatusCardContent.d.ts +0 -1
- package/dist/components/CreditCardForm/SuccessStatusCardContent.js +0 -37
- package/dist/components/CreditCardForm/SuccessStatusCardContent.js.map +0 -1
- package/dist/components/CreditCardForm/creditCardFormStepsData.d.ts +0 -2
- package/dist/components/CreditCardForm/creditCardFormStepsData.js +0 -9
- package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +0 -1
- package/dist/components/CreditCardForm/formStateMap.d.ts +0 -2
- package/dist/components/CreditCardForm/formStateMap.js +0 -89
- package/dist/components/CreditCardForm/formStateMap.js.map +0 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +0 -11
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +0 -57
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +0 -1
- package/dist/components/CreditCardForm/getDeliveryCreditCardData.d.ts +0 -28
- package/dist/components/CreditCardForm/getDeliveryCreditCardData.js +0 -39
- package/dist/components/CreditCardForm/getDeliveryCreditCardData.js.map +0 -1
- package/dist/components/CreditCardForm/getInitialFormState.d.ts +0 -2
- package/dist/components/CreditCardForm/getInitialFormState.js +0 -22
- package/dist/components/CreditCardForm/getInitialFormState.js.map +0 -1
- package/dist/components/CreditCardForm/renderInputs.d.ts +0 -9
- package/dist/components/CreditCardForm/renderInputs.js +0 -8
- package/dist/components/CreditCardForm/renderInputs.js.map +0 -1
- package/dist/components/CreditCardForm/renderStep.d.ts +0 -10
- package/dist/components/CreditCardForm/renderStep.js +0 -15
- package/dist/components/CreditCardForm/renderStep.js.map +0 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +0 -8
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -55
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +0 -1
- package/dist/components/CreditForm/CreditForm.d.ts +0 -9
- package/dist/components/CreditForm/CreditForm.js +0 -41
- package/dist/components/CreditForm/CreditForm.js.map +0 -1
- package/dist/components/CreditForm/CreditFormContent.d.ts +0 -9
- package/dist/components/CreditForm/CreditFormContent.js +0 -2
- package/dist/components/CreditForm/CreditFormContent.js.map +0 -1
- package/dist/components/CreditForm/CreditFormProgress.d.ts +0 -6
- package/dist/components/CreditForm/CreditFormProgress.js +0 -11
- package/dist/components/CreditForm/CreditFormProgress.js.map +0 -1
- package/dist/components/CreditForm/CreditFormStatus.d.ts +0 -15
- package/dist/components/CreditForm/CreditFormStatus.js +0 -25
- package/dist/components/CreditForm/CreditFormStatus.js.map +0 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.d.ts +0 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.js +0 -51
- package/dist/components/CreditForm/CreditFormStatusTracker.js.map +0 -1
- package/dist/components/CreditForm/CreditFormStep.d.ts +0 -11
- package/dist/components/CreditForm/CreditFormStep.js +0 -31
- package/dist/components/CreditForm/CreditFormStep.js.map +0 -1
- package/dist/components/CreditForm/FailedStatusContent.d.ts +0 -1
- package/dist/components/CreditForm/FailedStatusContent.js +0 -7
- package/dist/components/CreditForm/FailedStatusContent.js.map +0 -1
- package/dist/components/CreditForm/PendingStatusContent.d.ts +0 -3
- package/dist/components/CreditForm/PendingStatusContent.js +0 -32
- package/dist/components/CreditForm/PendingStatusContent.js.map +0 -1
- package/dist/components/CreditForm/ProgramsSourceProps.d.ts +0 -16
- package/dist/components/CreditForm/ProgramsSourceProps.js +0 -2
- package/dist/components/CreditForm/ProgramsSourceProps.js.map +0 -1
- package/dist/components/CreditForm/ReworkStatusContent.d.ts +0 -1
- package/dist/components/CreditForm/ReworkStatusContent.js +0 -25
- package/dist/components/CreditForm/ReworkStatusContent.js.map +0 -1
- package/dist/components/CreditForm/StepsNavigationButtons.d.ts +0 -6
- package/dist/components/CreditForm/StepsNavigationButtons.js +0 -12
- package/dist/components/CreditForm/StepsNavigationButtons.js.map +0 -1
- package/dist/components/CreditForm/SuccessStatusContent.d.ts +0 -1
- package/dist/components/CreditForm/SuccessStatusContent.js +0 -32
- package/dist/components/CreditForm/SuccessStatusContent.js.map +0 -1
- package/dist/components/CreditForm/creditFormStepsData.d.ts +0 -2
- package/dist/components/CreditForm/creditFormStepsData.js +0 -9
- package/dist/components/CreditForm/creditFormStepsData.js.map +0 -1
- package/dist/components/CreditForm/formStateMap.d.ts +0 -2
- package/dist/components/CreditForm/formStateMap.js +0 -84
- package/dist/components/CreditForm/formStateMap.js.map +0 -1
- package/dist/components/CreditForm/getCalcData.d.ts +0 -3
- package/dist/components/CreditForm/getCalcData.js +0 -16
- package/dist/components/CreditForm/getCalcData.js.map +0 -1
- package/dist/components/CreditForm/getInitialFormState.d.ts +0 -2
- package/dist/components/CreditForm/getInitialFormState.js +0 -22
- package/dist/components/CreditForm/getInitialFormState.js.map +0 -1
- package/dist/components/CreditForm/renderInputs.d.ts +0 -9
- package/dist/components/CreditForm/renderInputs.js +0 -7
- package/dist/components/CreditForm/renderInputs.js.map +0 -1
- package/dist/components/CreditForm/renderStep.d.ts +0 -10
- package/dist/components/CreditForm/renderStep.js +0 -15
- package/dist/components/CreditForm/renderStep.js.map +0 -1
- package/dist/components/CreditForm/useCreditFormAPI.d.ts +0 -8
- package/dist/components/CreditForm/useCreditFormAPI.js +0 -59
- package/dist/components/CreditForm/useCreditFormAPI.js.map +0 -1
- package/dist/components/CreditForm/utils.d.ts +0 -25
- package/dist/components/CreditForm/utils.js +0 -72
- package/dist/components/CreditForm/utils.js.map +0 -1
- package/dist/hooks/useLeadFormData.d.ts +0 -8
- package/dist/hooks/useLeadFormData.js +0 -17
- package/dist/hooks/useLeadFormData.js.map +0 -1
- package/dist/hooks/useRetailFormStore.d.ts +0 -36
- package/dist/hooks/useRetailFormStore.js +0 -8
- package/dist/hooks/useRetailFormStore.js.map +0 -1
- package/dist/services/retail/adaptors/getAdditionalInfoData.d.ts +0 -3
- package/dist/services/retail/adaptors/getAdditionalInfoData.js +0 -13
- package/dist/services/retail/adaptors/getAdditionalInfoData.js.map +0 -1
- package/dist/services/retail/adaptors/getCalculatorData.d.ts +0 -3
- package/dist/services/retail/adaptors/getCalculatorData.js +0 -11
- package/dist/services/retail/adaptors/getCalculatorData.js.map +0 -1
- package/dist/services/retail/adaptors/getCardOptionsData.d.ts +0 -3
- package/dist/services/retail/adaptors/getCardOptionsData.js +0 -13
- package/dist/services/retail/adaptors/getCardOptionsData.js.map +0 -1
- package/dist/services/retail/adaptors/getCreditFormTaskData.d.ts +0 -11
- package/dist/services/retail/adaptors/getCreditFormTaskData.js +0 -58
- package/dist/services/retail/adaptors/getCreditFormTaskData.js.map +0 -1
- package/dist/services/retail/adaptors/getDeliveryCreditData.d.ts +0 -3
- package/dist/services/retail/adaptors/getDeliveryCreditData.js +0 -10
- package/dist/services/retail/adaptors/getDeliveryCreditData.js.map +0 -1
- package/dist/services/retail/adaptors/getEmploymentData.d.ts +0 -3
- package/dist/services/retail/adaptors/getEmploymentData.js +0 -31
- package/dist/services/retail/adaptors/getEmploymentData.js.map +0 -1
- package/dist/services/retail/adaptors/getFamilyStatusAndIncomeData.d.ts +0 -4
- package/dist/services/retail/adaptors/getFamilyStatusAndIncomeData.js +0 -30
- package/dist/services/retail/adaptors/getFamilyStatusAndIncomeData.js.map +0 -1
- package/dist/services/retail/adaptors/getPersonalInfoData.d.ts +0 -3
- package/dist/services/retail/adaptors/getPersonalInfoData.js +0 -35
- package/dist/services/retail/adaptors/getPersonalInfoData.js.map +0 -1
- package/dist/services/retail/content.d.ts +0 -6
- package/dist/services/retail/content.js +0 -364
- package/dist/services/retail/content.js.map +0 -1
- package/dist/services/retail/external/types.d.ts +0 -10
- package/dist/services/retail/external/types.js +0 -2
- package/dist/services/retail/external/types.js.map +0 -1
- package/dist/services/retail/external/utils.d.ts +0 -2
- package/dist/services/retail/external/utils.js +0 -7
- package/dist/services/retail/external/utils.js.map +0 -1
- package/dist/services/retail/inputs.d.ts +0 -75
- package/dist/services/retail/inputs.js +0 -138
- package/dist/services/retail/inputs.js.map +0 -1
- package/dist/services/retail/mockLocalStorage.d.ts +0 -1
- package/dist/services/retail/mockLocalStorage.js +0 -35
- package/dist/services/retail/mockLocalStorage.js.map +0 -1
- package/dist/services/retail/model/EOrganizationActivityTypes.d.ts +0 -23
- package/dist/services/retail/model/EOrganizationActivityTypes.js +0 -2
- package/dist/services/retail/model/EOrganizationActivityTypes.js.map +0 -1
- package/dist/services/retail/model/LeadFormData.d.ts +0 -7
- package/dist/services/retail/model/LeadFormData.js +0 -2
- package/dist/services/retail/model/LeadFormData.js.map +0 -1
- package/dist/services/retail/model/LeadFormState.d.ts +0 -146
- package/dist/services/retail/model/LeadFormState.js +0 -2
- package/dist/services/retail/model/LeadFormState.js.map +0 -1
- package/dist/services/retail/model/NameFieldDef.d.ts +0 -6
- package/dist/services/retail/model/NameFieldDef.js +0 -2
- package/dist/services/retail/model/NameFieldDef.js.map +0 -1
- package/dist/services/retail/model/RetailFormContent.d.ts +0 -26
- package/dist/services/retail/model/RetailFormContent.js +0 -2
- package/dist/services/retail/model/RetailFormContent.js.map +0 -1
- package/dist/services/retail/utils/calculateInputs.d.ts +0 -5
- package/dist/services/retail/utils/calculateInputs.js +0 -31
- package/dist/services/retail/utils/calculateInputs.js.map +0 -1
- package/dist/services/retail/utils/getOrganizationParams.d.ts +0 -17
- package/dist/services/retail/utils/getOrganizationParams.js +0 -106
- package/dist/services/retail/utils/getOrganizationParams.js.map +0 -1
- package/dist/services/retail/utils/getUpdateUserProfile.d.ts +0 -3
- package/dist/services/retail/utils/getUpdateUserProfile.js +0 -27
- package/dist/services/retail/utils/getUpdateUserProfile.js.map +0 -1
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +0 -6
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +0 -39
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +0 -1
- package/dist/ui-kit/Checkbox/CheckboxWithDoc.d.ts +0 -6
- package/dist/ui-kit/Checkbox/CheckboxWithDoc.js +0 -14
- package/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +0 -1
- package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +0 -5
- package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -42
- package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +0 -1
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +0 -3
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +0 -44
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +0 -1
- package/dist/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -6
- package/dist/ui-kit/DocumentDialog/DocumentDialog.js +0 -16
- package/dist/ui-kit/DocumentDialog/DocumentDialog.js.map +0 -1
- package/dist/ui-kit/DocumentDialog/useDocumentDialog.d.ts +0 -2
- package/dist/ui-kit/DocumentDialog/useDocumentDialog.js +0 -19
- package/dist/ui-kit/DocumentDialog/useDocumentDialog.js.map +0 -1
- package/dist/ui-kit/DraftDialog/DraftActionButton.d.ts +0 -8
- package/dist/ui-kit/DraftDialog/DraftActionButton.js +0 -9
- package/dist/ui-kit/DraftDialog/DraftActionButton.js.map +0 -1
- package/dist/ui-kit/DraftDialog/DraftDialog.d.ts +0 -7
- package/dist/ui-kit/DraftDialog/DraftDialog.js +0 -37
- package/dist/ui-kit/DraftDialog/DraftDialog.js.map +0 -1
- package/dist/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +0 -4
- package/dist/ui-kit/DraftDialog/EmptyDraftDialog.js +0 -22
- package/dist/ui-kit/DraftDialog/EmptyDraftDialog.js.map +0 -1
- package/dist/ui-kit/DraftDialog/parseDraftTask.d.ts +0 -3
- package/dist/ui-kit/DraftDialog/parseDraftTask.js +0 -67
- package/dist/ui-kit/DraftDialog/parseDraftTask.js.map +0 -1
- package/dist/ui-kit/DraftDialog/useDraftDialog.d.ts +0 -10
- package/dist/ui-kit/DraftDialog/useDraftDialog.js +0 -16
- package/dist/ui-kit/DraftDialog/useDraftDialog.js.map +0 -1
- package/dist/ui-kit/DraftDialog/utils.d.ts +0 -148
- package/dist/ui-kit/DraftDialog/utils.js +0 -96
- package/dist/ui-kit/DraftDialog/utils.js.map +0 -1
- package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +0 -33
- package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +0 -15
- package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/AddressFactField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/AddressFactField.js +0 -56
- package/dist/ui-kit/FormField/Fields/AddressFactField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/AddressField.d.ts +0 -20
- package/dist/ui-kit/FormField/Fields/AddressField.js +0 -53
- package/dist/ui-kit/FormField/Fields/AddressField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/AddressMatchField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/AddressMatchField.js +0 -9
- package/dist/ui-kit/FormField/Fields/AddressMatchField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/AddressRetailField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/AddressRetailField.js +0 -37
- package/dist/ui-kit/FormField/Fields/AddressRetailField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/AmountWorkersField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/AmountWorkersField.js +0 -19
- package/dist/ui-kit/FormField/Fields/AmountWorkersField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/ArmyIdFlgField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js +0 -7
- package/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js +0 -7
- package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js +0 -7
- package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/BeginDateField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/BeginDateField.js +0 -7
- package/dist/ui-kit/FormField/Fields/BeginDateField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/BirthPlaceField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/BirthPlaceField.js +0 -9
- package/dist/ui-kit/FormField/Fields/BirthPlaceField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/CardCategoryField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/CardCategoryField.js +0 -30
- package/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/ChildrenField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/ChildrenField.js +0 -7
- package/dist/ui-kit/FormField/Fields/ChildrenField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/CodeWordField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/CodeWordField.js +0 -7
- package/dist/ui-kit/FormField/Fields/CodeWordField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/ConfirmationIncomeField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/ConfirmationIncomeField.js +0 -11
- package/dist/ui-kit/FormField/Fields/ConfirmationIncomeField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/ConscriptionField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/ConscriptionField.js +0 -11
- package/dist/ui-kit/FormField/Fields/ConscriptionField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/ConsentField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/ConsentField.js +0 -8
- package/dist/ui-kit/FormField/Fields/ConsentField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/CreditCalcField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/CreditCalcField.js +0 -28
- package/dist/ui-kit/FormField/Fields/CreditCalcField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +0 -14
- package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/CurrencyField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/CurrencyField.js +0 -8
- package/dist/ui-kit/FormField/Fields/CurrencyField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js +0 -7
- package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/DependentsField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/DependentsField.js +0 -7
- package/dist/ui-kit/FormField/Fields/DependentsField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js +0 -7
- package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/DulIssueDateField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/DulIssueDateField.js +0 -8
- package/dist/ui-kit/FormField/Fields/DulIssueDateField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/DulIssuedByField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/DulIssuedByField.js +0 -15
- package/dist/ui-kit/FormField/Fields/DulIssuedByField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/DulNumberField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/DulNumberField.js +0 -8
- package/dist/ui-kit/FormField/Fields/DulNumberField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/DulSerieField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/DulSerieField.js +0 -8
- package/dist/ui-kit/FormField/Fields/DulSerieField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +0 -14
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/EducationField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/EducationField.js +0 -11
- package/dist/ui-kit/FormField/Fields/EducationField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js +0 -19
- package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js +0 -19
- package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/EmploymentField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/EmploymentField.js +0 -11
- package/dist/ui-kit/FormField/Fields/EmploymentField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/ExpensesField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/ExpensesField.js +0 -7
- package/dist/ui-kit/FormField/Fields/ExpensesField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/FamilyMembersField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/FamilyMembersField.js +0 -19
- package/dist/ui-kit/FormField/Fields/FamilyMembersField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/FamilyStatusField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/FamilyStatusField.js +0 -11
- package/dist/ui-kit/FormField/Fields/FamilyStatusField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +0 -7
- package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/HousingField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/HousingField.js +0 -11
- package/dist/ui-kit/FormField/Fields/HousingField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/InfoCardField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/InfoCardField.js +0 -7
- package/dist/ui-kit/FormField/Fields/InfoCardField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/JobsNumberField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/JobsNumberField.js +0 -7
- package/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/LastJobExperienceField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +0 -7
- package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +0 -9
- package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/LegalFormField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/LegalFormField.js +0 -7
- package/dist/ui-kit/FormField/Fields/LegalFormField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/LimitedBirthdayField.js +0 -8
- package/dist/ui-kit/FormField/Fields/LimitedBirthdayField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js +0 -7
- package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/MethodObtainField.d.ts +0 -4
- package/dist/ui-kit/FormField/Fields/MethodObtainField.js +0 -11
- package/dist/ui-kit/FormField/Fields/MethodObtainField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/OrganizationField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/OrganizationField.js +0 -19
- package/dist/ui-kit/FormField/Fields/OrganizationField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/OrganizationNameField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/OrganizationNameField.js +0 -17
- package/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/OtherIncomeField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/OtherIncomeField.js +0 -7
- package/dist/ui-kit/FormField/Fields/OtherIncomeField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +0 -14
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js +0 -7
- package/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.js +0 -27
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/PositionOrganizationField.js +0 -11
- package/dist/ui-kit/FormField/Fields/PositionOrganizationField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/RegionRetailField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/RegionRetailField.js +0 -12
- package/dist/ui-kit/FormField/Fields/RegionRetailField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +0 -7
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/SexField.d.ts +0 -4
- package/dist/ui-kit/FormField/Fields/SexField.js +0 -27
- package/dist/ui-kit/FormField/Fields/SexField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/ShareholderFlgField.js +0 -7
- package/dist/ui-kit/FormField/Fields/ShareholderFlgField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/SnilsField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/SnilsField.js +0 -7
- package/dist/ui-kit/FormField/Fields/SnilsField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/TotalIncomeField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/TotalIncomeField.js +0 -7
- package/dist/ui-kit/FormField/Fields/TotalIncomeField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/WagesField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/WagesField.js +0 -7
- package/dist/ui-kit/FormField/Fields/WagesField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/consentToReceiveMaterialsField.js.map +0 -1
- package/dist/ui-kit/FormField/SelectField.d.ts +0 -12
- package/dist/ui-kit/FormField/SelectField.js +0 -15
- package/dist/ui-kit/FormField/SelectField.js.map +0 -1
- package/dist/ui-kit/FormField/isEsiaAuthorize.d.ts +0 -2
- package/dist/ui-kit/FormField/isEsiaAuthorize.js +0 -6
- package/dist/ui-kit/FormField/isEsiaAuthorize.js.map +0 -1
- package/dist/ui-kit/FormField/updateOrganizationFields.d.ts +0 -4
- package/dist/ui-kit/FormField/updateOrganizationFields.js +0 -25
- package/dist/ui-kit/FormField/updateOrganizationFields.js.map +0 -1
- package/dist/ui-kit/Input/InputPopup.d.ts +0 -8
- package/dist/ui-kit/Input/InputPopup.js +0 -34
- package/dist/ui-kit/Input/InputPopup.js.map +0 -1
- package/dist/ui-kit/Input/useInputPopup.d.ts +0 -13
- package/dist/ui-kit/Input/useInputPopup.js +0 -67
- package/dist/ui-kit/Input/useInputPopup.js.map +0 -1
- package/dist/ui-kit/VerifyPhoneDialog/InputCode.d.ts +0 -8
- package/dist/ui-kit/VerifyPhoneDialog/InputCode.js +0 -46
- package/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +0 -1
- package/dist/ui-kit/VerifyPhoneDialog/SubmitButton.d.ts +0 -7
- package/dist/ui-kit/VerifyPhoneDialog/SubmitButton.js +0 -10
- package/dist/ui-kit/VerifyPhoneDialog/SubmitButton.js.map +0 -1
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -10
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +0 -51
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +0 -1
- package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +0 -16
- package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +0 -51
- package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +0 -1
- package/lib/api/RetailAPI/StatusType.d.ts +0 -1
- package/lib/api/RetailAPI/StatusType.js +0 -2
- package/lib/api/RetailAPI/StatusType.js.map +0 -1
- package/lib/api/RetailAPI/checkCaptcha.d.ts +0 -4
- package/lib/api/RetailAPI/checkCaptcha.js +0 -5
- package/lib/api/RetailAPI/checkCaptcha.js.map +0 -1
- package/lib/api/RetailAPI/checkCode.d.ts +0 -12
- package/lib/api/RetailAPI/checkCode.js +0 -9
- package/lib/api/RetailAPI/checkCode.js.map +0 -1
- package/lib/api/RetailAPI/createCaptcha.d.ts +0 -1
- package/lib/api/RetailAPI/createCaptcha.js +0 -3
- package/lib/api/RetailAPI/createCaptcha.js.map +0 -1
- package/lib/api/RetailAPI/createDraftTask.d.ts +0 -9
- package/lib/api/RetailAPI/createDraftTask.js +0 -6
- package/lib/api/RetailAPI/createDraftTask.js.map +0 -1
- package/lib/api/RetailAPI/createUserProfile.d.ts +0 -9
- package/lib/api/RetailAPI/createUserProfile.js +0 -3
- package/lib/api/RetailAPI/createUserProfile.js.map +0 -1
- package/lib/api/RetailAPI/doRequest.d.ts +0 -2
- package/lib/api/RetailAPI/doRequest.js +0 -32
- package/lib/api/RetailAPI/doRequest.js.map +0 -1
- package/lib/api/RetailAPI/draftTasksKZO.d.ts +0 -34
- package/lib/api/RetailAPI/draftTasksKZO.js +0 -6
- package/lib/api/RetailAPI/draftTasksKZO.js.map +0 -1
- package/lib/api/RetailAPI/feedbackById.d.ts +0 -1
- package/lib/api/RetailAPI/feedbackById.js +0 -6
- package/lib/api/RetailAPI/feedbackById.js.map +0 -1
- package/lib/api/RetailAPI/getCardTypes.d.ts +0 -8
- package/lib/api/RetailAPI/getCardTypes.js +0 -9
- package/lib/api/RetailAPI/getCardTypes.js.map +0 -1
- package/lib/api/RetailAPI/getGenderFromName.d.ts +0 -1
- package/lib/api/RetailAPI/getGenderFromName.js +0 -14
- package/lib/api/RetailAPI/getGenderFromName.js.map +0 -1
- package/lib/api/RetailAPI/getLastTaskStatus.d.ts +0 -6
- package/lib/api/RetailAPI/getLastTaskStatus.js +0 -6
- package/lib/api/RetailAPI/getLastTaskStatus.js.map +0 -1
- package/lib/api/RetailAPI/getLink.d.ts +0 -7
- package/lib/api/RetailAPI/getLink.js +0 -3
- package/lib/api/RetailAPI/getLink.js.map +0 -1
- package/lib/api/RetailAPI/getPaymentSystems.d.ts +0 -2
- package/lib/api/RetailAPI/getPaymentSystems.js +0 -12
- package/lib/api/RetailAPI/getPaymentSystems.js.map +0 -1
- package/lib/api/RetailAPI/getTaskById.d.ts +0 -6
- package/lib/api/RetailAPI/getTaskById.js +0 -6
- package/lib/api/RetailAPI/getTaskById.js.map +0 -1
- package/lib/api/RetailAPI/getTaskStatus.d.ts +0 -18
- package/lib/api/RetailAPI/getTaskStatus.js +0 -15
- package/lib/api/RetailAPI/getTaskStatus.js.map +0 -1
- package/lib/api/RetailAPI/getTraceId.d.ts +0 -1
- package/lib/api/RetailAPI/getTraceId.js +0 -6
- package/lib/api/RetailAPI/getTraceId.js.map +0 -1
- package/lib/api/RetailAPI/getUserTasks.d.ts +0 -41
- package/lib/api/RetailAPI/getUserTasks.js +0 -12
- package/lib/api/RetailAPI/getUserTasks.js.map +0 -1
- package/lib/api/RetailAPI/regionOffices.d.ts +0 -16
- package/lib/api/RetailAPI/regionOffices.js +0 -17
- package/lib/api/RetailAPI/regionOffices.js.map +0 -1
- package/lib/api/RetailAPI/sendCode.d.ts +0 -7
- package/lib/api/RetailAPI/sendCode.js +0 -5
- package/lib/api/RetailAPI/sendCode.js.map +0 -1
- package/lib/api/RetailAPI/sendSignalToProcess.d.ts +0 -7
- package/lib/api/RetailAPI/sendSignalToProcess.js +0 -3
- package/lib/api/RetailAPI/sendSignalToProcess.js.map +0 -1
- package/lib/api/RetailAPI/updateProfileEsia.d.ts +0 -66
- package/lib/api/RetailAPI/updateProfileEsia.js +0 -3
- package/lib/api/RetailAPI/updateProfileEsia.js.map +0 -1
- package/lib/api/RetailAPI/updateRefreshToken.d.ts +0 -1
- package/lib/api/RetailAPI/updateRefreshToken.js +0 -36
- package/lib/api/RetailAPI/updateRefreshToken.js.map +0 -1
- package/lib/api/RetailAPI/updateUserProfile.d.ts +0 -21
- package/lib/api/RetailAPI/updateUserProfile.js +0 -3
- package/lib/api/RetailAPI/updateUserProfile.js.map +0 -1
- package/lib/api/RetailAPI/updateUserTask.d.ts +0 -140
- package/lib/api/RetailAPI/updateUserTask.js +0 -3
- package/lib/api/RetailAPI/updateUserTask.js.map +0 -1
- package/lib/api/dadataHints/dadataHints.d.ts +0 -2
- package/lib/api/dadataHints/dadataHints.js +0 -35
- package/lib/api/dadataHints/dadataHints.js.map +0 -1
- package/lib/api/dadataHints/dadataHintsType.d.ts +0 -68
- package/lib/api/dadataHints/dadataHintsType.js +0 -2
- package/lib/api/dadataHints/dadataHintsType.js.map +0 -1
- package/lib/api/dadataHints/hintsListsOptions.d.ts +0 -11
- package/lib/api/dadataHints/hintsListsOptions.js +0 -56
- package/lib/api/dadataHints/hintsListsOptions.js.map +0 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -6
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +0 -6
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.d.ts +0 -6
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +0 -38
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +0 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -18
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +0 -2
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +0 -1
- package/lib/components/ApplicationLeadForm/Footnote.d.ts +0 -7
- package/lib/components/ApplicationLeadForm/Footnote.js +0 -7
- package/lib/components/ApplicationLeadForm/Footnote.js.map +0 -1
- package/lib/components/ApplicationLeadForm/GroupedConsents.d.ts +0 -8
- package/lib/components/ApplicationLeadForm/GroupedConsents.js +0 -31
- package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +0 -1
- package/lib/components/ApplicationLeadForm/applicationFormData.d.ts +0 -2
- package/lib/components/ApplicationLeadForm/applicationFormData.js +0 -23
- package/lib/components/ApplicationLeadForm/applicationFormData.js.map +0 -1
- package/lib/components/ApplicationLeadForm/consents.d.ts +0 -7
- package/lib/components/ApplicationLeadForm/consents.js +0 -23
- package/lib/components/ApplicationLeadForm/consents.js.map +0 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +0 -3
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +0 -21
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +0 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +0 -10
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +0 -48
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +0 -1
- package/lib/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +0 -3
- package/lib/components/ApplicationLeadForm/pasreEsiaProfile.js +0 -50
- package/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +0 -1
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -4
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -11
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
- package/lib/components/ApplicationLeadForm/renderInputs.d.ts +0 -2
- package/lib/components/ApplicationLeadForm/renderInputs.js +0 -15
- package/lib/components/ApplicationLeadForm/renderInputs.js.map +0 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +0 -2
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js +0 -4
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +0 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +0 -11
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +0 -111
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +0 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -5
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +0 -52
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +0 -1
- package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +0 -15
- package/lib/components/ApplicationLeadForm/useLeadFormStore.js +0 -3
- package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +0 -1
- package/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +0 -9
- package/lib/components/ApplicationLeadForm/useSaveUserData.js +0 -14
- package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +0 -1
- package/lib/components/CreditCardForm/CreditCardForm.d.ts +0 -6
- package/lib/components/CreditCardForm/CreditCardForm.fixture.d.ts +0 -5
- package/lib/components/CreditCardForm/CreditCardForm.fixture.mobile.d.ts +0 -5
- package/lib/components/CreditCardForm/CreditCardForm.js +0 -38
- package/lib/components/CreditCardForm/CreditCardForm.js.map +0 -1
- package/lib/components/CreditCardForm/CreditCardFormContent.d.ts +0 -21
- package/lib/components/CreditCardForm/CreditCardFormContent.js +0 -2
- package/lib/components/CreditCardForm/CreditCardFormContent.js.map +0 -1
- package/lib/components/CreditCardForm/CreditCardFormProgress.d.ts +0 -6
- package/lib/components/CreditCardForm/CreditCardFormProgress.js +0 -9
- package/lib/components/CreditCardForm/CreditCardFormProgress.js.map +0 -1
- package/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +0 -15
- package/lib/components/CreditCardForm/CreditCardFormStatus.js +0 -21
- package/lib/components/CreditCardForm/CreditCardFormStatus.js.map +0 -1
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +0 -1
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +0 -49
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +0 -1
- package/lib/components/CreditCardForm/CreditCardFormStep.d.ts +0 -9
- package/lib/components/CreditCardForm/CreditCardFormStep.js +0 -26
- package/lib/components/CreditCardForm/CreditCardFormStep.js.map +0 -1
- package/lib/components/CreditCardForm/FailedStatusContent.d.ts +0 -1
- package/lib/components/CreditCardForm/FailedStatusContent.js +0 -5
- package/lib/components/CreditCardForm/FailedStatusContent.js.map +0 -1
- package/lib/components/CreditCardForm/PendingStatusContent.d.ts +0 -3
- package/lib/components/CreditCardForm/PendingStatusContent.js +0 -18
- package/lib/components/CreditCardForm/PendingStatusContent.js.map +0 -1
- package/lib/components/CreditCardForm/ReworkStatusContent.d.ts +0 -1
- package/lib/components/CreditCardForm/ReworkStatusContent.js +0 -33
- package/lib/components/CreditCardForm/ReworkStatusContent.js.map +0 -1
- package/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +0 -6
- package/lib/components/CreditCardForm/StepsNavigationButtons.js +0 -10
- package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +0 -1
- package/lib/components/CreditCardForm/SuccessStatusCardContent.d.ts +0 -1
- package/lib/components/CreditCardForm/SuccessStatusCardContent.js +0 -35
- package/lib/components/CreditCardForm/SuccessStatusCardContent.js.map +0 -1
- package/lib/components/CreditCardForm/creditCardFormStepsData.d.ts +0 -2
- package/lib/components/CreditCardForm/creditCardFormStepsData.js +0 -7
- package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +0 -1
- package/lib/components/CreditCardForm/formStateMap.d.ts +0 -2
- package/lib/components/CreditCardForm/formStateMap.js +0 -87
- package/lib/components/CreditCardForm/formStateMap.js.map +0 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +0 -11
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +0 -54
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +0 -1
- package/lib/components/CreditCardForm/getDeliveryCreditCardData.d.ts +0 -28
- package/lib/components/CreditCardForm/getDeliveryCreditCardData.js +0 -34
- package/lib/components/CreditCardForm/getDeliveryCreditCardData.js.map +0 -1
- package/lib/components/CreditCardForm/getInitialFormState.d.ts +0 -2
- package/lib/components/CreditCardForm/getInitialFormState.js +0 -19
- package/lib/components/CreditCardForm/getInitialFormState.js.map +0 -1
- package/lib/components/CreditCardForm/renderInputs.d.ts +0 -9
- package/lib/components/CreditCardForm/renderInputs.js +0 -5
- package/lib/components/CreditCardForm/renderInputs.js.map +0 -1
- package/lib/components/CreditCardForm/renderStep.d.ts +0 -10
- package/lib/components/CreditCardForm/renderStep.js +0 -12
- package/lib/components/CreditCardForm/renderStep.js.map +0 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +0 -8
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -52
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +0 -1
- package/lib/components/CreditForm/CreditForm.d.ts +0 -9
- package/lib/components/CreditForm/CreditForm.fixture.d.ts +0 -5
- package/lib/components/CreditForm/CreditForm.fixture.mobile.d.ts +0 -5
- package/lib/components/CreditForm/CreditForm.js +0 -39
- package/lib/components/CreditForm/CreditForm.js.map +0 -1
- package/lib/components/CreditForm/CreditFormContent.d.ts +0 -9
- package/lib/components/CreditForm/CreditFormContent.js +0 -2
- package/lib/components/CreditForm/CreditFormContent.js.map +0 -1
- package/lib/components/CreditForm/CreditFormProgress.d.ts +0 -6
- package/lib/components/CreditForm/CreditFormProgress.js +0 -9
- package/lib/components/CreditForm/CreditFormProgress.js.map +0 -1
- package/lib/components/CreditForm/CreditFormStatus.d.ts +0 -15
- package/lib/components/CreditForm/CreditFormStatus.js +0 -23
- package/lib/components/CreditForm/CreditFormStatus.js.map +0 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.d.ts +0 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.js +0 -49
- package/lib/components/CreditForm/CreditFormStatusTracker.js.map +0 -1
- package/lib/components/CreditForm/CreditFormStep.d.ts +0 -11
- package/lib/components/CreditForm/CreditFormStep.js +0 -29
- package/lib/components/CreditForm/CreditFormStep.js.map +0 -1
- package/lib/components/CreditForm/FailedStatusContent.d.ts +0 -1
- package/lib/components/CreditForm/FailedStatusContent.js +0 -5
- package/lib/components/CreditForm/FailedStatusContent.js.map +0 -1
- package/lib/components/CreditForm/PendingStatusContent.d.ts +0 -3
- package/lib/components/CreditForm/PendingStatusContent.js +0 -30
- package/lib/components/CreditForm/PendingStatusContent.js.map +0 -1
- package/lib/components/CreditForm/ProgramsSourceProps.d.ts +0 -16
- package/lib/components/CreditForm/ProgramsSourceProps.js +0 -2
- package/lib/components/CreditForm/ProgramsSourceProps.js.map +0 -1
- package/lib/components/CreditForm/ReworkStatusContent.d.ts +0 -1
- package/lib/components/CreditForm/ReworkStatusContent.js +0 -23
- package/lib/components/CreditForm/ReworkStatusContent.js.map +0 -1
- package/lib/components/CreditForm/StepsNavigationButtons.d.ts +0 -6
- package/lib/components/CreditForm/StepsNavigationButtons.js +0 -10
- package/lib/components/CreditForm/StepsNavigationButtons.js.map +0 -1
- package/lib/components/CreditForm/SuccessStatusContent.d.ts +0 -1
- package/lib/components/CreditForm/SuccessStatusContent.js +0 -30
- package/lib/components/CreditForm/SuccessStatusContent.js.map +0 -1
- package/lib/components/CreditForm/creditFormStepsData.d.ts +0 -2
- package/lib/components/CreditForm/creditFormStepsData.js +0 -7
- package/lib/components/CreditForm/creditFormStepsData.js.map +0 -1
- package/lib/components/CreditForm/formStateMap.d.ts +0 -2
- package/lib/components/CreditForm/formStateMap.js +0 -82
- package/lib/components/CreditForm/formStateMap.js.map +0 -1
- package/lib/components/CreditForm/getCalcData.d.ts +0 -3
- package/lib/components/CreditForm/getCalcData.js +0 -13
- package/lib/components/CreditForm/getCalcData.js.map +0 -1
- package/lib/components/CreditForm/getInitialFormState.d.ts +0 -2
- package/lib/components/CreditForm/getInitialFormState.js +0 -19
- package/lib/components/CreditForm/getInitialFormState.js.map +0 -1
- package/lib/components/CreditForm/renderInputs.d.ts +0 -9
- package/lib/components/CreditForm/renderInputs.js +0 -4
- package/lib/components/CreditForm/renderInputs.js.map +0 -1
- package/lib/components/CreditForm/renderStep.d.ts +0 -10
- package/lib/components/CreditForm/renderStep.js +0 -12
- package/lib/components/CreditForm/renderStep.js.map +0 -1
- package/lib/components/CreditForm/useCreditFormAPI.d.ts +0 -8
- package/lib/components/CreditForm/useCreditFormAPI.js +0 -56
- package/lib/components/CreditForm/useCreditFormAPI.js.map +0 -1
- package/lib/components/CreditForm/utils.d.ts +0 -25
- package/lib/components/CreditForm/utils.js +0 -67
- package/lib/components/CreditForm/utils.js.map +0 -1
- package/lib/hooks/useLeadFormData.d.ts +0 -8
- package/lib/hooks/useLeadFormData.js +0 -14
- package/lib/hooks/useLeadFormData.js.map +0 -1
- package/lib/hooks/useRetailFormStore.d.ts +0 -36
- package/lib/hooks/useRetailFormStore.js +0 -5
- package/lib/hooks/useRetailFormStore.js.map +0 -1
- package/lib/services/retail/adaptors/getAdditionalInfoData.d.ts +0 -3
- package/lib/services/retail/adaptors/getAdditionalInfoData.js +0 -10
- package/lib/services/retail/adaptors/getAdditionalInfoData.js.map +0 -1
- package/lib/services/retail/adaptors/getCalculatorData.d.ts +0 -3
- package/lib/services/retail/adaptors/getCalculatorData.js +0 -8
- package/lib/services/retail/adaptors/getCalculatorData.js.map +0 -1
- package/lib/services/retail/adaptors/getCardOptionsData.d.ts +0 -3
- package/lib/services/retail/adaptors/getCardOptionsData.js +0 -10
- package/lib/services/retail/adaptors/getCardOptionsData.js.map +0 -1
- package/lib/services/retail/adaptors/getCreditFormTaskData.d.ts +0 -11
- package/lib/services/retail/adaptors/getCreditFormTaskData.js +0 -55
- package/lib/services/retail/adaptors/getCreditFormTaskData.js.map +0 -1
- package/lib/services/retail/adaptors/getDeliveryCreditData.d.ts +0 -3
- package/lib/services/retail/adaptors/getDeliveryCreditData.js +0 -7
- package/lib/services/retail/adaptors/getDeliveryCreditData.js.map +0 -1
- package/lib/services/retail/adaptors/getEmploymentData.d.ts +0 -3
- package/lib/services/retail/adaptors/getEmploymentData.js +0 -28
- package/lib/services/retail/adaptors/getEmploymentData.js.map +0 -1
- package/lib/services/retail/adaptors/getFamilyStatusAndIncomeData.d.ts +0 -4
- package/lib/services/retail/adaptors/getFamilyStatusAndIncomeData.js +0 -26
- package/lib/services/retail/adaptors/getFamilyStatusAndIncomeData.js.map +0 -1
- package/lib/services/retail/adaptors/getPersonalInfoData.d.ts +0 -3
- package/lib/services/retail/adaptors/getPersonalInfoData.js +0 -32
- package/lib/services/retail/adaptors/getPersonalInfoData.js.map +0 -1
- package/lib/services/retail/content.d.ts +0 -6
- package/lib/services/retail/content.js +0 -362
- package/lib/services/retail/content.js.map +0 -1
- package/lib/services/retail/external/types.d.ts +0 -10
- package/lib/services/retail/external/types.js +0 -2
- package/lib/services/retail/external/types.js.map +0 -1
- package/lib/services/retail/external/utils.d.ts +0 -2
- package/lib/services/retail/external/utils.js +0 -3
- package/lib/services/retail/external/utils.js.map +0 -1
- package/lib/services/retail/inputs.d.ts +0 -75
- package/lib/services/retail/inputs.js +0 -136
- package/lib/services/retail/inputs.js.map +0 -1
- package/lib/services/retail/mockLocalStorage.d.ts +0 -1
- package/lib/services/retail/mockLocalStorage.js +0 -32
- package/lib/services/retail/mockLocalStorage.js.map +0 -1
- package/lib/services/retail/model/EOrganizationActivityTypes.d.ts +0 -23
- package/lib/services/retail/model/EOrganizationActivityTypes.js +0 -2
- package/lib/services/retail/model/EOrganizationActivityTypes.js.map +0 -1
- package/lib/services/retail/model/LeadFormData.d.ts +0 -7
- package/lib/services/retail/model/LeadFormData.js +0 -2
- package/lib/services/retail/model/LeadFormData.js.map +0 -1
- package/lib/services/retail/model/LeadFormState.d.ts +0 -146
- package/lib/services/retail/model/LeadFormState.js +0 -2
- package/lib/services/retail/model/LeadFormState.js.map +0 -1
- package/lib/services/retail/model/NameFieldDef.d.ts +0 -6
- package/lib/services/retail/model/NameFieldDef.js +0 -2
- package/lib/services/retail/model/NameFieldDef.js.map +0 -1
- package/lib/services/retail/model/RetailFormContent.d.ts +0 -26
- package/lib/services/retail/model/RetailFormContent.js +0 -2
- package/lib/services/retail/model/RetailFormContent.js.map +0 -1
- package/lib/services/retail/utils/calculateInputs.d.ts +0 -5
- package/lib/services/retail/utils/calculateInputs.js +0 -27
- package/lib/services/retail/utils/calculateInputs.js.map +0 -1
- package/lib/services/retail/utils/getOrganizationParams.d.ts +0 -17
- package/lib/services/retail/utils/getOrganizationParams.js +0 -100
- package/lib/services/retail/utils/getOrganizationParams.js.map +0 -1
- package/lib/services/retail/utils/getUpdateUserProfile.d.ts +0 -3
- package/lib/services/retail/utils/getUpdateUserProfile.js +0 -24
- package/lib/services/retail/utils/getUpdateUserProfile.js.map +0 -1
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +0 -6
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.fixture.d.ts +0 -5
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +0 -37
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +0 -1
- package/lib/ui-kit/Checkbox/CheckboxWithDoc.d.ts +0 -6
- package/lib/ui-kit/Checkbox/CheckboxWithDoc.js +0 -12
- package/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +0 -1
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +0 -5
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.fixture.d.ts +0 -5
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -40
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +0 -1
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +0 -3
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +0 -41
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +0 -1
- package/lib/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -6
- package/lib/ui-kit/DocumentDialog/DocumentDialog.js +0 -14
- package/lib/ui-kit/DocumentDialog/DocumentDialog.js.map +0 -1
- package/lib/ui-kit/DocumentDialog/useDocumentDialog.d.ts +0 -2
- package/lib/ui-kit/DocumentDialog/useDocumentDialog.js +0 -16
- package/lib/ui-kit/DocumentDialog/useDocumentDialog.js.map +0 -1
- package/lib/ui-kit/DraftDialog/DraftActionButton.d.ts +0 -8
- package/lib/ui-kit/DraftDialog/DraftActionButton.js +0 -7
- package/lib/ui-kit/DraftDialog/DraftActionButton.js.map +0 -1
- package/lib/ui-kit/DraftDialog/DraftDialog.d.ts +0 -7
- package/lib/ui-kit/DraftDialog/DraftDialog.fixture.d.ts +0 -4
- package/lib/ui-kit/DraftDialog/DraftDialog.fixture.mobile.d.ts +0 -4
- package/lib/ui-kit/DraftDialog/DraftDialog.js +0 -35
- package/lib/ui-kit/DraftDialog/DraftDialog.js.map +0 -1
- package/lib/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +0 -4
- package/lib/ui-kit/DraftDialog/EmptyDraftDialog.js +0 -20
- package/lib/ui-kit/DraftDialog/EmptyDraftDialog.js.map +0 -1
- package/lib/ui-kit/DraftDialog/parseDraftTask.d.ts +0 -3
- package/lib/ui-kit/DraftDialog/parseDraftTask.js +0 -64
- package/lib/ui-kit/DraftDialog/parseDraftTask.js.map +0 -1
- package/lib/ui-kit/DraftDialog/useDraftDialog.d.ts +0 -10
- package/lib/ui-kit/DraftDialog/useDraftDialog.js +0 -13
- package/lib/ui-kit/DraftDialog/useDraftDialog.js.map +0 -1
- package/lib/ui-kit/DraftDialog/utils.d.ts +0 -148
- package/lib/ui-kit/DraftDialog/utils.js +0 -89
- package/lib/ui-kit/DraftDialog/utils.js.map +0 -1
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.fixture.d.ts +0 -5
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +0 -31
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +0 -12
- package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/AddressFactField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/AddressFactField.js +0 -54
- package/lib/ui-kit/FormField/Fields/AddressFactField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/AddressField.d.ts +0 -20
- package/lib/ui-kit/FormField/Fields/AddressField.js +0 -50
- package/lib/ui-kit/FormField/Fields/AddressField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/AddressMatchField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/AddressMatchField.js +0 -7
- package/lib/ui-kit/FormField/Fields/AddressMatchField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/AddressRetailField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/AddressRetailField.js +0 -35
- package/lib/ui-kit/FormField/Fields/AddressRetailField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/AmountWorkersField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/AmountWorkersField.js +0 -17
- package/lib/ui-kit/FormField/Fields/AmountWorkersField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/ArmyIdFlgField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js +0 -5
- package/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js +0 -5
- package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js +0 -5
- package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/BeginDateField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/BeginDateField.js +0 -5
- package/lib/ui-kit/FormField/Fields/BeginDateField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/BirthPlaceField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/BirthPlaceField.js +0 -7
- package/lib/ui-kit/FormField/Fields/BirthPlaceField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/CardCategoryField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/CardCategoryField.js +0 -28
- package/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/ChildrenField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/ChildrenField.js +0 -5
- package/lib/ui-kit/FormField/Fields/ChildrenField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/CodeWordField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/CodeWordField.js +0 -5
- package/lib/ui-kit/FormField/Fields/CodeWordField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/ConfirmationIncomeField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/ConfirmationIncomeField.js +0 -9
- package/lib/ui-kit/FormField/Fields/ConfirmationIncomeField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/ConscriptionField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/ConscriptionField.js +0 -9
- package/lib/ui-kit/FormField/Fields/ConscriptionField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/ConsentField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/ConsentField.js +0 -6
- package/lib/ui-kit/FormField/Fields/ConsentField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/CreditCalcField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/CreditCalcField.js +0 -26
- package/lib/ui-kit/FormField/Fields/CreditCalcField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +0 -12
- package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/CurrencyField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/CurrencyField.js +0 -6
- package/lib/ui-kit/FormField/Fields/CurrencyField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js +0 -5
- package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/DependentsField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/DependentsField.js +0 -5
- package/lib/ui-kit/FormField/Fields/DependentsField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js +0 -5
- package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/DulIssueDateField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/DulIssueDateField.js +0 -6
- package/lib/ui-kit/FormField/Fields/DulIssueDateField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/DulIssuedByField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/DulIssuedByField.js +0 -13
- package/lib/ui-kit/FormField/Fields/DulIssuedByField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/DulNumberField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/DulNumberField.js +0 -6
- package/lib/ui-kit/FormField/Fields/DulNumberField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/DulSerieField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/DulSerieField.js +0 -6
- package/lib/ui-kit/FormField/Fields/DulSerieField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +0 -12
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/EducationField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/EducationField.js +0 -9
- package/lib/ui-kit/FormField/Fields/EducationField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js +0 -17
- package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js +0 -17
- package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/EmploymentField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/EmploymentField.js +0 -9
- package/lib/ui-kit/FormField/Fields/EmploymentField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/ExpensesField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/ExpensesField.js +0 -5
- package/lib/ui-kit/FormField/Fields/ExpensesField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/FamilyMembersField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/FamilyMembersField.js +0 -17
- package/lib/ui-kit/FormField/Fields/FamilyMembersField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/FamilyStatusField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/FamilyStatusField.js +0 -9
- package/lib/ui-kit/FormField/Fields/FamilyStatusField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +0 -5
- package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/HousingField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/HousingField.js +0 -9
- package/lib/ui-kit/FormField/Fields/HousingField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/InfoCardField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/InfoCardField.js +0 -5
- package/lib/ui-kit/FormField/Fields/InfoCardField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/JobsNumberField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/JobsNumberField.js +0 -5
- package/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/LastJobExperienceField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +0 -5
- package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +0 -7
- package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/LegalFormField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/LegalFormField.js +0 -5
- package/lib/ui-kit/FormField/Fields/LegalFormField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/LimitedBirthdayField.js +0 -6
- package/lib/ui-kit/FormField/Fields/LimitedBirthdayField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js +0 -5
- package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/MethodObtainField.d.ts +0 -4
- package/lib/ui-kit/FormField/Fields/MethodObtainField.js +0 -9
- package/lib/ui-kit/FormField/Fields/MethodObtainField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/OrganizationField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/OrganizationField.js +0 -17
- package/lib/ui-kit/FormField/Fields/OrganizationField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/OrganizationNameField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/OrganizationNameField.js +0 -15
- package/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/OtherIncomeField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/OtherIncomeField.js +0 -5
- package/lib/ui-kit/FormField/Fields/OtherIncomeField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +0 -12
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js +0 -5
- package/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.js +0 -25
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/PositionOrganizationField.js +0 -9
- package/lib/ui-kit/FormField/Fields/PositionOrganizationField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/RegionRetailField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/RegionRetailField.js +0 -10
- package/lib/ui-kit/FormField/Fields/RegionRetailField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +0 -5
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/SexField.d.ts +0 -4
- package/lib/ui-kit/FormField/Fields/SexField.js +0 -25
- package/lib/ui-kit/FormField/Fields/SexField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/ShareholderFlgField.js +0 -5
- package/lib/ui-kit/FormField/Fields/ShareholderFlgField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/SnilsField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/SnilsField.js +0 -5
- package/lib/ui-kit/FormField/Fields/SnilsField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/TotalIncomeField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/TotalIncomeField.js +0 -5
- package/lib/ui-kit/FormField/Fields/TotalIncomeField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/WagesField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/WagesField.js +0 -5
- package/lib/ui-kit/FormField/Fields/WagesField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/consentToReceiveMaterialsField.js.map +0 -1
- package/lib/ui-kit/FormField/SelectField.d.ts +0 -12
- package/lib/ui-kit/FormField/SelectField.js +0 -13
- package/lib/ui-kit/FormField/SelectField.js.map +0 -1
- package/lib/ui-kit/FormField/isEsiaAuthorize.d.ts +0 -2
- package/lib/ui-kit/FormField/isEsiaAuthorize.js +0 -3
- package/lib/ui-kit/FormField/isEsiaAuthorize.js.map +0 -1
- package/lib/ui-kit/FormField/updateOrganizationFields.d.ts +0 -4
- package/lib/ui-kit/FormField/updateOrganizationFields.js +0 -22
- package/lib/ui-kit/FormField/updateOrganizationFields.js.map +0 -1
- package/lib/ui-kit/Input/InputPopup.d.ts +0 -8
- package/lib/ui-kit/Input/InputPopup.js +0 -32
- package/lib/ui-kit/Input/InputPopup.js.map +0 -1
- package/lib/ui-kit/Input/useInputPopup.d.ts +0 -13
- package/lib/ui-kit/Input/useInputPopup.js +0 -64
- package/lib/ui-kit/Input/useInputPopup.js.map +0 -1
- package/lib/ui-kit/VerifyPhoneDialog/InputCode.d.ts +0 -8
- package/lib/ui-kit/VerifyPhoneDialog/InputCode.js +0 -44
- package/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +0 -1
- package/lib/ui-kit/VerifyPhoneDialog/SubmitButton.d.ts +0 -7
- package/lib/ui-kit/VerifyPhoneDialog/SubmitButton.js +0 -8
- package/lib/ui-kit/VerifyPhoneDialog/SubmitButton.js.map +0 -1
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -10
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.fixture.d.ts +0 -5
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +0 -49
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +0 -1
- package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +0 -16
- package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +0 -48
- package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +0 -1
- package/mobile/bundle/api/RetailAPI/StatusType.d.ts +0 -1
- package/mobile/bundle/api/RetailAPI/checkCaptcha.d.ts +0 -4
- package/mobile/bundle/api/RetailAPI/checkCode.d.ts +0 -12
- package/mobile/bundle/api/RetailAPI/createCaptcha.d.ts +0 -1
- package/mobile/bundle/api/RetailAPI/createDraftTask.d.ts +0 -9
- package/mobile/bundle/api/RetailAPI/createUserProfile.d.ts +0 -9
- package/mobile/bundle/api/RetailAPI/doRequest.d.ts +0 -2
- package/mobile/bundle/api/RetailAPI/draftTasksKZO.d.ts +0 -34
- package/mobile/bundle/api/RetailAPI/feedbackById.d.ts +0 -1
- package/mobile/bundle/api/RetailAPI/getCardTypes.d.ts +0 -8
- package/mobile/bundle/api/RetailAPI/getGenderFromName.d.ts +0 -1
- package/mobile/bundle/api/RetailAPI/getLastTaskStatus.d.ts +0 -6
- package/mobile/bundle/api/RetailAPI/getLink.d.ts +0 -7
- package/mobile/bundle/api/RetailAPI/getPaymentSystems.d.ts +0 -2
- package/mobile/bundle/api/RetailAPI/getTaskById.d.ts +0 -6
- package/mobile/bundle/api/RetailAPI/getTaskStatus.d.ts +0 -18
- package/mobile/bundle/api/RetailAPI/getTraceId.d.ts +0 -1
- package/mobile/bundle/api/RetailAPI/getUserTasks.d.ts +0 -41
- package/mobile/bundle/api/RetailAPI/regionOffices.d.ts +0 -16
- package/mobile/bundle/api/RetailAPI/sendCode.d.ts +0 -7
- package/mobile/bundle/api/RetailAPI/sendSignalToProcess.d.ts +0 -7
- package/mobile/bundle/api/RetailAPI/updateProfileEsia.d.ts +0 -66
- package/mobile/bundle/api/RetailAPI/updateRefreshToken.d.ts +0 -1
- package/mobile/bundle/api/RetailAPI/updateUserProfile.d.ts +0 -21
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +0 -140
- package/mobile/bundle/api/dadataHints/dadataHints.d.ts +0 -2
- package/mobile/bundle/api/dadataHints/dadataHintsType.d.ts +0 -68
- package/mobile/bundle/api/dadataHints/hintsListsOptions.d.ts +0 -11
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -6
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -18
- package/mobile/bundle/components/ApplicationLeadForm/Footnote.d.ts +0 -7
- package/mobile/bundle/components/ApplicationLeadForm/GroupedConsents.d.ts +0 -8
- package/mobile/bundle/components/ApplicationLeadForm/applicationFormData.d.ts +0 -2
- package/mobile/bundle/components/ApplicationLeadForm/consents.d.ts +0 -7
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +0 -3
- package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +0 -10
- package/mobile/bundle/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +0 -3
- package/mobile/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -4
- package/mobile/bundle/components/ApplicationLeadForm/renderInputs.d.ts +0 -2
- package/mobile/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +0 -2
- package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +0 -11
- package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -5
- package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +0 -15
- package/mobile/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +0 -9
- package/mobile/bundle/components/CreditCardForm/CreditCardForm.d.ts +0 -6
- package/mobile/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +0 -21
- package/mobile/bundle/components/CreditCardForm/CreditCardFormProgress.d.ts +0 -6
- package/mobile/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +0 -15
- package/mobile/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +0 -1
- package/mobile/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +0 -9
- package/mobile/bundle/components/CreditCardForm/FailedStatusContent.d.ts +0 -1
- package/mobile/bundle/components/CreditCardForm/PendingStatusContent.d.ts +0 -3
- package/mobile/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +0 -1
- package/mobile/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +0 -6
- package/mobile/bundle/components/CreditCardForm/SuccessStatusCardContent.d.ts +0 -1
- package/mobile/bundle/components/CreditCardForm/creditCardFormStepsData.d.ts +0 -2
- package/mobile/bundle/components/CreditCardForm/formStateMap.d.ts +0 -2
- package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +0 -11
- package/mobile/bundle/components/CreditCardForm/getDeliveryCreditCardData.d.ts +0 -28
- package/mobile/bundle/components/CreditCardForm/getInitialFormState.d.ts +0 -2
- package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +0 -9
- package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +0 -10
- package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +0 -8
- package/mobile/bundle/components/CreditForm/CreditForm.d.ts +0 -9
- package/mobile/bundle/components/CreditForm/CreditFormContent.d.ts +0 -9
- package/mobile/bundle/components/CreditForm/CreditFormProgress.d.ts +0 -6
- package/mobile/bundle/components/CreditForm/CreditFormStatus.d.ts +0 -15
- package/mobile/bundle/components/CreditForm/CreditFormStatusTracker.d.ts +0 -1
- package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +0 -11
- package/mobile/bundle/components/CreditForm/FailedStatusContent.d.ts +0 -1
- package/mobile/bundle/components/CreditForm/PendingStatusContent.d.ts +0 -3
- package/mobile/bundle/components/CreditForm/ProgramsSourceProps.d.ts +0 -16
- package/mobile/bundle/components/CreditForm/ReworkStatusContent.d.ts +0 -1
- package/mobile/bundle/components/CreditForm/StepsNavigationButtons.d.ts +0 -6
- package/mobile/bundle/components/CreditForm/SuccessStatusContent.d.ts +0 -1
- package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +0 -2
- package/mobile/bundle/components/CreditForm/formStateMap.d.ts +0 -2
- package/mobile/bundle/components/CreditForm/getCalcData.d.ts +0 -3
- package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +0 -2
- package/mobile/bundle/components/CreditForm/renderInputs.d.ts +0 -9
- package/mobile/bundle/components/CreditForm/renderStep.d.ts +0 -10
- package/mobile/bundle/components/CreditForm/useCreditFormAPI.d.ts +0 -8
- package/mobile/bundle/components/CreditForm/utils.d.ts +0 -25
- package/mobile/bundle/hooks/useLeadFormData.d.ts +0 -8
- package/mobile/bundle/hooks/useRetailFormStore.d.ts +0 -36
- package/mobile/bundle/services/retail/adaptors/getAdditionalInfoData.d.ts +0 -3
- package/mobile/bundle/services/retail/adaptors/getCalculatorData.d.ts +0 -3
- package/mobile/bundle/services/retail/adaptors/getCardOptionsData.d.ts +0 -3
- package/mobile/bundle/services/retail/adaptors/getCreditFormTaskData.d.ts +0 -11
- package/mobile/bundle/services/retail/adaptors/getDeliveryCreditData.d.ts +0 -3
- package/mobile/bundle/services/retail/adaptors/getEmploymentData.d.ts +0 -3
- package/mobile/bundle/services/retail/adaptors/getFamilyStatusAndIncomeData.d.ts +0 -4
- package/mobile/bundle/services/retail/adaptors/getPersonalInfoData.d.ts +0 -3
- package/mobile/bundle/services/retail/content.d.ts +0 -6
- package/mobile/bundle/services/retail/external/types.d.ts +0 -10
- package/mobile/bundle/services/retail/external/utils.d.ts +0 -2
- package/mobile/bundle/services/retail/inputs.d.ts +0 -75
- package/mobile/bundle/services/retail/mockLocalStorage.d.ts +0 -1
- package/mobile/bundle/services/retail/model/EOrganizationActivityTypes.d.ts +0 -23
- package/mobile/bundle/services/retail/model/LeadFormData.d.ts +0 -7
- package/mobile/bundle/services/retail/model/LeadFormState.d.ts +0 -146
- package/mobile/bundle/services/retail/model/NameFieldDef.d.ts +0 -6
- package/mobile/bundle/services/retail/model/RetailFormContent.d.ts +0 -26
- package/mobile/bundle/services/retail/utils/calculateInputs.d.ts +0 -5
- package/mobile/bundle/services/retail/utils/getOrganizationParams.d.ts +0 -17
- package/mobile/bundle/services/retail/utils/getUpdateUserProfile.d.ts +0 -3
- package/mobile/bundle/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +0 -6
- package/mobile/bundle/ui-kit/Checkbox/CheckboxWithDoc.d.ts +0 -6
- package/mobile/bundle/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +0 -5
- package/mobile/bundle/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +0 -3
- package/mobile/bundle/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -6
- package/mobile/bundle/ui-kit/DocumentDialog/useDocumentDialog.d.ts +0 -2
- package/mobile/bundle/ui-kit/DraftDialog/DraftActionButton.d.ts +0 -8
- package/mobile/bundle/ui-kit/DraftDialog/DraftDialog.d.ts +0 -7
- package/mobile/bundle/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +0 -4
- package/mobile/bundle/ui-kit/DraftDialog/parseDraftTask.d.ts +0 -3
- package/mobile/bundle/ui-kit/DraftDialog/useDraftDialog.d.ts +0 -10
- package/mobile/bundle/ui-kit/DraftDialog/utils.d.ts +0 -148
- package/mobile/bundle/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/mobile/bundle/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/mobile/bundle/ui-kit/FormField/Fields/AddressFactField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/AddressField.d.ts +0 -20
- package/mobile/bundle/ui-kit/FormField/Fields/AddressMatchField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/AddressRetailField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/AmountWorkersField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/ArmyIdFlgField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/BeginDateField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/BirthPlaceField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/CardCategoryField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/ChildrenField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/CodeWordField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/ConfirmationIncomeField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/ConscriptionField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/ConsentField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/CreditCalcField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/CurrencyField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/DependentsField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/DulIssueDateField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/DulIssuedByField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/DulNumberField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/DulSerieField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/EducationField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/EmploymentField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/ExpensesField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/FamilyMembersField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/FamilyStatusField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/GeneralSeniorityField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/HousingField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/InfoCardField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/JobsNumberField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/LastJobExperienceField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/LegalFormField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/MethodObtainField.d.ts +0 -4
- package/mobile/bundle/ui-kit/FormField/Fields/OrganizationField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/OrganizationNameField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/OtherIncomeField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/PartInBusinessField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/PaymentSystemField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/RegionRetailField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/SexField.d.ts +0 -4
- package/mobile/bundle/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/SnilsField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/TotalIncomeField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/WagesField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/SelectField.d.ts +0 -12
- package/mobile/bundle/ui-kit/FormField/isEsiaAuthorize.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/updateOrganizationFields.d.ts +0 -4
- package/mobile/bundle/ui-kit/Input/InputPopup.d.ts +0 -8
- package/mobile/bundle/ui-kit/Input/useInputPopup.d.ts +0 -13
- package/mobile/bundle/ui-kit/VerifyPhoneDialog/InputCode.d.ts +0 -8
- package/mobile/bundle/ui-kit/VerifyPhoneDialog/SubmitButton.d.ts +0 -7
- package/mobile/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -10
- package/mobile/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +0 -16
- package/mobile/dist/api/RetailAPI/StatusType.d.ts +0 -1
- package/mobile/dist/api/RetailAPI/StatusType.js +0 -2
- package/mobile/dist/api/RetailAPI/StatusType.js.map +0 -1
- package/mobile/dist/api/RetailAPI/checkCaptcha.d.ts +0 -4
- package/mobile/dist/api/RetailAPI/checkCaptcha.js +0 -8
- package/mobile/dist/api/RetailAPI/checkCaptcha.js.map +0 -1
- package/mobile/dist/api/RetailAPI/checkCode.d.ts +0 -12
- package/mobile/dist/api/RetailAPI/checkCode.js +0 -12
- package/mobile/dist/api/RetailAPI/checkCode.js.map +0 -1
- package/mobile/dist/api/RetailAPI/createCaptcha.d.ts +0 -1
- package/mobile/dist/api/RetailAPI/createCaptcha.js +0 -6
- package/mobile/dist/api/RetailAPI/createCaptcha.js.map +0 -1
- package/mobile/dist/api/RetailAPI/createDraftTask.d.ts +0 -9
- package/mobile/dist/api/RetailAPI/createDraftTask.js +0 -9
- package/mobile/dist/api/RetailAPI/createDraftTask.js.map +0 -1
- package/mobile/dist/api/RetailAPI/createUserProfile.d.ts +0 -9
- package/mobile/dist/api/RetailAPI/createUserProfile.js +0 -6
- package/mobile/dist/api/RetailAPI/createUserProfile.js.map +0 -1
- package/mobile/dist/api/RetailAPI/doRequest.d.ts +0 -2
- package/mobile/dist/api/RetailAPI/doRequest.js +0 -36
- package/mobile/dist/api/RetailAPI/doRequest.js.map +0 -1
- package/mobile/dist/api/RetailAPI/draftTasksKZO.d.ts +0 -34
- package/mobile/dist/api/RetailAPI/draftTasksKZO.js +0 -9
- package/mobile/dist/api/RetailAPI/draftTasksKZO.js.map +0 -1
- package/mobile/dist/api/RetailAPI/feedbackById.d.ts +0 -1
- package/mobile/dist/api/RetailAPI/feedbackById.js +0 -9
- package/mobile/dist/api/RetailAPI/feedbackById.js.map +0 -1
- package/mobile/dist/api/RetailAPI/getCardTypes.d.ts +0 -8
- package/mobile/dist/api/RetailAPI/getCardTypes.js +0 -12
- package/mobile/dist/api/RetailAPI/getCardTypes.js.map +0 -1
- package/mobile/dist/api/RetailAPI/getGenderFromName.d.ts +0 -1
- package/mobile/dist/api/RetailAPI/getGenderFromName.js +0 -17
- package/mobile/dist/api/RetailAPI/getGenderFromName.js.map +0 -1
- package/mobile/dist/api/RetailAPI/getLastTaskStatus.d.ts +0 -6
- package/mobile/dist/api/RetailAPI/getLastTaskStatus.js +0 -9
- package/mobile/dist/api/RetailAPI/getLastTaskStatus.js.map +0 -1
- package/mobile/dist/api/RetailAPI/getLink.d.ts +0 -7
- package/mobile/dist/api/RetailAPI/getLink.js +0 -6
- package/mobile/dist/api/RetailAPI/getLink.js.map +0 -1
- package/mobile/dist/api/RetailAPI/getPaymentSystems.d.ts +0 -2
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js +0 -15
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js.map +0 -1
- package/mobile/dist/api/RetailAPI/getTaskById.d.ts +0 -6
- package/mobile/dist/api/RetailAPI/getTaskById.js +0 -9
- package/mobile/dist/api/RetailAPI/getTaskById.js.map +0 -1
- package/mobile/dist/api/RetailAPI/getTaskStatus.d.ts +0 -18
- package/mobile/dist/api/RetailAPI/getTaskStatus.js +0 -18
- package/mobile/dist/api/RetailAPI/getTaskStatus.js.map +0 -1
- package/mobile/dist/api/RetailAPI/getTraceId.d.ts +0 -1
- package/mobile/dist/api/RetailAPI/getTraceId.js +0 -9
- package/mobile/dist/api/RetailAPI/getTraceId.js.map +0 -1
- package/mobile/dist/api/RetailAPI/getUserTasks.d.ts +0 -41
- package/mobile/dist/api/RetailAPI/getUserTasks.js +0 -15
- package/mobile/dist/api/RetailAPI/getUserTasks.js.map +0 -1
- package/mobile/dist/api/RetailAPI/regionOffices.d.ts +0 -16
- package/mobile/dist/api/RetailAPI/regionOffices.js +0 -20
- package/mobile/dist/api/RetailAPI/regionOffices.js.map +0 -1
- package/mobile/dist/api/RetailAPI/sendCode.d.ts +0 -7
- package/mobile/dist/api/RetailAPI/sendCode.js +0 -8
- package/mobile/dist/api/RetailAPI/sendCode.js.map +0 -1
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.d.ts +0 -7
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.js +0 -6
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.js.map +0 -1
- package/mobile/dist/api/RetailAPI/updateProfileEsia.d.ts +0 -66
- package/mobile/dist/api/RetailAPI/updateProfileEsia.js +0 -6
- package/mobile/dist/api/RetailAPI/updateProfileEsia.js.map +0 -1
- package/mobile/dist/api/RetailAPI/updateRefreshToken.d.ts +0 -1
- package/mobile/dist/api/RetailAPI/updateRefreshToken.js +0 -39
- package/mobile/dist/api/RetailAPI/updateRefreshToken.js.map +0 -1
- package/mobile/dist/api/RetailAPI/updateUserProfile.d.ts +0 -21
- package/mobile/dist/api/RetailAPI/updateUserProfile.js +0 -6
- package/mobile/dist/api/RetailAPI/updateUserProfile.js.map +0 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +0 -140
- package/mobile/dist/api/RetailAPI/updateUserTask.js +0 -6
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +0 -1
- package/mobile/dist/api/dadataHints/dadataHints.d.ts +0 -2
- package/mobile/dist/api/dadataHints/dadataHints.js +0 -38
- package/mobile/dist/api/dadataHints/dadataHints.js.map +0 -1
- package/mobile/dist/api/dadataHints/dadataHintsType.d.ts +0 -68
- package/mobile/dist/api/dadataHints/dadataHintsType.js +0 -2
- package/mobile/dist/api/dadataHints/dadataHintsType.js.map +0 -1
- package/mobile/dist/api/dadataHints/hintsListsOptions.d.ts +0 -11
- package/mobile/dist/api/dadataHints/hintsListsOptions.js +0 -58
- package/mobile/dist/api/dadataHints/hintsListsOptions.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -6
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +0 -40
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -18
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +0 -2
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/Footnote.d.ts +0 -7
- package/mobile/dist/components/ApplicationLeadForm/Footnote.js +0 -9
- package/mobile/dist/components/ApplicationLeadForm/Footnote.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.d.ts +0 -8
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js +0 -33
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.d.ts +0 -2
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js +0 -25
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/consents.d.ts +0 -7
- package/mobile/dist/components/ApplicationLeadForm/consents.js +0 -25
- package/mobile/dist/components/ApplicationLeadForm/consents.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +0 -3
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +0 -24
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +0 -10
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +0 -51
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +0 -3
- package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.js +0 -53
- package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -4
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -14
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/renderInputs.d.ts +0 -2
- package/mobile/dist/components/ApplicationLeadForm/renderInputs.js +0 -18
- package/mobile/dist/components/ApplicationLeadForm/renderInputs.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +0 -2
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +0 -7
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +0 -11
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +0 -114
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -5
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +0 -55
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +0 -15
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js +0 -6
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +0 -1
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +0 -9
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js +0 -17
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/CreditCardForm.d.ts +0 -6
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js +0 -40
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormContent.d.ts +0 -21
- package/mobile/dist/components/CreditCardForm/CreditCardFormContent.js +0 -2
- package/mobile/dist/components/CreditCardForm/CreditCardFormContent.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.d.ts +0 -6
- package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.js +0 -11
- package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +0 -15
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js +0 -23
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +0 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +0 -51
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.d.ts +0 -9
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +0 -28
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/FailedStatusContent.d.ts +0 -1
- package/mobile/dist/components/CreditCardForm/FailedStatusContent.js +0 -7
- package/mobile/dist/components/CreditCardForm/FailedStatusContent.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.d.ts +0 -3
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.js +0 -20
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.d.ts +0 -1
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js +0 -35
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +0 -6
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +0 -12
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.d.ts +0 -1
- package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.js +0 -37
- package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.d.ts +0 -2
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +0 -9
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.d.ts +0 -2
- package/mobile/dist/components/CreditCardForm/formStateMap.js +0 -89
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +0 -11
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +0 -57
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/getDeliveryCreditCardData.d.ts +0 -28
- package/mobile/dist/components/CreditCardForm/getDeliveryCreditCardData.js +0 -39
- package/mobile/dist/components/CreditCardForm/getDeliveryCreditCardData.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/getInitialFormState.d.ts +0 -2
- package/mobile/dist/components/CreditCardForm/getInitialFormState.js +0 -22
- package/mobile/dist/components/CreditCardForm/getInitialFormState.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +0 -9
- package/mobile/dist/components/CreditCardForm/renderInputs.js +0 -8
- package/mobile/dist/components/CreditCardForm/renderInputs.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/renderStep.d.ts +0 -10
- package/mobile/dist/components/CreditCardForm/renderStep.js +0 -15
- package/mobile/dist/components/CreditCardForm/renderStep.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +0 -8
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -55
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +0 -1
- package/mobile/dist/components/CreditForm/CreditForm.d.ts +0 -9
- package/mobile/dist/components/CreditForm/CreditForm.js +0 -41
- package/mobile/dist/components/CreditForm/CreditForm.js.map +0 -1
- package/mobile/dist/components/CreditForm/CreditFormContent.d.ts +0 -9
- package/mobile/dist/components/CreditForm/CreditFormContent.js +0 -2
- package/mobile/dist/components/CreditForm/CreditFormContent.js.map +0 -1
- package/mobile/dist/components/CreditForm/CreditFormProgress.d.ts +0 -6
- package/mobile/dist/components/CreditForm/CreditFormProgress.js +0 -11
- package/mobile/dist/components/CreditForm/CreditFormProgress.js.map +0 -1
- package/mobile/dist/components/CreditForm/CreditFormStatus.d.ts +0 -15
- package/mobile/dist/components/CreditForm/CreditFormStatus.js +0 -25
- package/mobile/dist/components/CreditForm/CreditFormStatus.js.map +0 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.d.ts +0 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +0 -51
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +0 -1
- package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +0 -11
- package/mobile/dist/components/CreditForm/CreditFormStep.js +0 -31
- package/mobile/dist/components/CreditForm/CreditFormStep.js.map +0 -1
- package/mobile/dist/components/CreditForm/FailedStatusContent.d.ts +0 -1
- package/mobile/dist/components/CreditForm/FailedStatusContent.js +0 -7
- package/mobile/dist/components/CreditForm/FailedStatusContent.js.map +0 -1
- package/mobile/dist/components/CreditForm/PendingStatusContent.d.ts +0 -3
- package/mobile/dist/components/CreditForm/PendingStatusContent.js +0 -32
- package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +0 -1
- package/mobile/dist/components/CreditForm/ProgramsSourceProps.d.ts +0 -16
- package/mobile/dist/components/CreditForm/ProgramsSourceProps.js +0 -2
- package/mobile/dist/components/CreditForm/ProgramsSourceProps.js.map +0 -1
- package/mobile/dist/components/CreditForm/ReworkStatusContent.d.ts +0 -1
- package/mobile/dist/components/CreditForm/ReworkStatusContent.js +0 -25
- package/mobile/dist/components/CreditForm/ReworkStatusContent.js.map +0 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.d.ts +0 -6
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +0 -12
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +0 -1
- package/mobile/dist/components/CreditForm/SuccessStatusContent.d.ts +0 -1
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js +0 -32
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js.map +0 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +0 -2
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +0 -9
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +0 -1
- package/mobile/dist/components/CreditForm/formStateMap.d.ts +0 -2
- package/mobile/dist/components/CreditForm/formStateMap.js +0 -84
- package/mobile/dist/components/CreditForm/formStateMap.js.map +0 -1
- package/mobile/dist/components/CreditForm/getCalcData.d.ts +0 -3
- package/mobile/dist/components/CreditForm/getCalcData.js +0 -16
- package/mobile/dist/components/CreditForm/getCalcData.js.map +0 -1
- package/mobile/dist/components/CreditForm/getInitialFormState.d.ts +0 -2
- package/mobile/dist/components/CreditForm/getInitialFormState.js +0 -22
- package/mobile/dist/components/CreditForm/getInitialFormState.js.map +0 -1
- package/mobile/dist/components/CreditForm/renderInputs.d.ts +0 -9
- package/mobile/dist/components/CreditForm/renderInputs.js +0 -7
- package/mobile/dist/components/CreditForm/renderInputs.js.map +0 -1
- package/mobile/dist/components/CreditForm/renderStep.d.ts +0 -10
- package/mobile/dist/components/CreditForm/renderStep.js +0 -15
- package/mobile/dist/components/CreditForm/renderStep.js.map +0 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.d.ts +0 -8
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js +0 -59
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +0 -1
- package/mobile/dist/components/CreditForm/utils.d.ts +0 -25
- package/mobile/dist/components/CreditForm/utils.js +0 -72
- package/mobile/dist/components/CreditForm/utils.js.map +0 -1
- package/mobile/dist/hooks/useLeadFormData.d.ts +0 -8
- package/mobile/dist/hooks/useLeadFormData.js +0 -17
- package/mobile/dist/hooks/useLeadFormData.js.map +0 -1
- package/mobile/dist/hooks/useRetailFormStore.d.ts +0 -36
- package/mobile/dist/hooks/useRetailFormStore.js +0 -8
- package/mobile/dist/hooks/useRetailFormStore.js.map +0 -1
- package/mobile/dist/services/retail/adaptors/getAdditionalInfoData.d.ts +0 -3
- package/mobile/dist/services/retail/adaptors/getAdditionalInfoData.js +0 -13
- package/mobile/dist/services/retail/adaptors/getAdditionalInfoData.js.map +0 -1
- package/mobile/dist/services/retail/adaptors/getCalculatorData.d.ts +0 -3
- package/mobile/dist/services/retail/adaptors/getCalculatorData.js +0 -11
- package/mobile/dist/services/retail/adaptors/getCalculatorData.js.map +0 -1
- package/mobile/dist/services/retail/adaptors/getCardOptionsData.d.ts +0 -3
- package/mobile/dist/services/retail/adaptors/getCardOptionsData.js +0 -13
- package/mobile/dist/services/retail/adaptors/getCardOptionsData.js.map +0 -1
- package/mobile/dist/services/retail/adaptors/getCreditFormTaskData.d.ts +0 -11
- package/mobile/dist/services/retail/adaptors/getCreditFormTaskData.js +0 -58
- package/mobile/dist/services/retail/adaptors/getCreditFormTaskData.js.map +0 -1
- package/mobile/dist/services/retail/adaptors/getDeliveryCreditData.d.ts +0 -3
- package/mobile/dist/services/retail/adaptors/getDeliveryCreditData.js +0 -10
- package/mobile/dist/services/retail/adaptors/getDeliveryCreditData.js.map +0 -1
- package/mobile/dist/services/retail/adaptors/getEmploymentData.d.ts +0 -3
- package/mobile/dist/services/retail/adaptors/getEmploymentData.js +0 -31
- package/mobile/dist/services/retail/adaptors/getEmploymentData.js.map +0 -1
- package/mobile/dist/services/retail/adaptors/getFamilyStatusAndIncomeData.d.ts +0 -4
- package/mobile/dist/services/retail/adaptors/getFamilyStatusAndIncomeData.js +0 -30
- package/mobile/dist/services/retail/adaptors/getFamilyStatusAndIncomeData.js.map +0 -1
- package/mobile/dist/services/retail/adaptors/getPersonalInfoData.d.ts +0 -3
- package/mobile/dist/services/retail/adaptors/getPersonalInfoData.js +0 -35
- package/mobile/dist/services/retail/adaptors/getPersonalInfoData.js.map +0 -1
- package/mobile/dist/services/retail/content.d.ts +0 -6
- package/mobile/dist/services/retail/content.js +0 -364
- package/mobile/dist/services/retail/content.js.map +0 -1
- package/mobile/dist/services/retail/external/types.d.ts +0 -10
- package/mobile/dist/services/retail/external/types.js +0 -2
- package/mobile/dist/services/retail/external/types.js.map +0 -1
- package/mobile/dist/services/retail/external/utils.d.ts +0 -2
- package/mobile/dist/services/retail/external/utils.js +0 -7
- package/mobile/dist/services/retail/external/utils.js.map +0 -1
- package/mobile/dist/services/retail/inputs.d.ts +0 -75
- package/mobile/dist/services/retail/inputs.js +0 -138
- package/mobile/dist/services/retail/inputs.js.map +0 -1
- package/mobile/dist/services/retail/mockLocalStorage.d.ts +0 -1
- package/mobile/dist/services/retail/mockLocalStorage.js +0 -35
- package/mobile/dist/services/retail/mockLocalStorage.js.map +0 -1
- package/mobile/dist/services/retail/model/EOrganizationActivityTypes.d.ts +0 -23
- package/mobile/dist/services/retail/model/EOrganizationActivityTypes.js +0 -2
- package/mobile/dist/services/retail/model/EOrganizationActivityTypes.js.map +0 -1
- package/mobile/dist/services/retail/model/LeadFormData.d.ts +0 -7
- package/mobile/dist/services/retail/model/LeadFormData.js +0 -2
- package/mobile/dist/services/retail/model/LeadFormData.js.map +0 -1
- package/mobile/dist/services/retail/model/LeadFormState.d.ts +0 -146
- package/mobile/dist/services/retail/model/LeadFormState.js +0 -2
- package/mobile/dist/services/retail/model/LeadFormState.js.map +0 -1
- package/mobile/dist/services/retail/model/NameFieldDef.d.ts +0 -6
- package/mobile/dist/services/retail/model/NameFieldDef.js +0 -2
- package/mobile/dist/services/retail/model/NameFieldDef.js.map +0 -1
- package/mobile/dist/services/retail/model/RetailFormContent.d.ts +0 -26
- package/mobile/dist/services/retail/model/RetailFormContent.js +0 -2
- package/mobile/dist/services/retail/model/RetailFormContent.js.map +0 -1
- package/mobile/dist/services/retail/utils/calculateInputs.d.ts +0 -5
- package/mobile/dist/services/retail/utils/calculateInputs.js +0 -31
- package/mobile/dist/services/retail/utils/calculateInputs.js.map +0 -1
- package/mobile/dist/services/retail/utils/getOrganizationParams.d.ts +0 -17
- package/mobile/dist/services/retail/utils/getOrganizationParams.js +0 -106
- package/mobile/dist/services/retail/utils/getOrganizationParams.js.map +0 -1
- package/mobile/dist/services/retail/utils/getUpdateUserProfile.d.ts +0 -3
- package/mobile/dist/services/retail/utils/getUpdateUserProfile.js +0 -27
- package/mobile/dist/services/retail/utils/getUpdateUserProfile.js.map +0 -1
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +0 -6
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +0 -39
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +0 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.d.ts +0 -6
- package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js +0 -14
- package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +0 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +0 -5
- package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -42
- package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +0 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +0 -3
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +0 -44
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +0 -1
- package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -6
- package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.js +0 -16
- package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.js.map +0 -1
- package/mobile/dist/ui-kit/DocumentDialog/useDocumentDialog.d.ts +0 -2
- package/mobile/dist/ui-kit/DocumentDialog/useDocumentDialog.js +0 -19
- package/mobile/dist/ui-kit/DocumentDialog/useDocumentDialog.js.map +0 -1
- package/mobile/dist/ui-kit/DraftDialog/DraftActionButton.d.ts +0 -8
- package/mobile/dist/ui-kit/DraftDialog/DraftActionButton.js +0 -9
- package/mobile/dist/ui-kit/DraftDialog/DraftActionButton.js.map +0 -1
- package/mobile/dist/ui-kit/DraftDialog/DraftDialog.d.ts +0 -7
- package/mobile/dist/ui-kit/DraftDialog/DraftDialog.js +0 -37
- package/mobile/dist/ui-kit/DraftDialog/DraftDialog.js.map +0 -1
- package/mobile/dist/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +0 -4
- package/mobile/dist/ui-kit/DraftDialog/EmptyDraftDialog.js +0 -22
- package/mobile/dist/ui-kit/DraftDialog/EmptyDraftDialog.js.map +0 -1
- package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.d.ts +0 -3
- package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js +0 -67
- package/mobile/dist/ui-kit/DraftDialog/parseDraftTask.js.map +0 -1
- package/mobile/dist/ui-kit/DraftDialog/useDraftDialog.d.ts +0 -10
- package/mobile/dist/ui-kit/DraftDialog/useDraftDialog.js +0 -16
- package/mobile/dist/ui-kit/DraftDialog/useDraftDialog.js.map +0 -1
- package/mobile/dist/ui-kit/DraftDialog/utils.d.ts +0 -148
- package/mobile/dist/ui-kit/DraftDialog/utils.js +0 -96
- package/mobile/dist/ui-kit/DraftDialog/utils.js.map +0 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +0 -33
- package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +0 -15
- package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.js +0 -56
- package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.d.ts +0 -20
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.js +0 -53
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressMatchField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/AddressMatchField.js +0 -9
- package/mobile/dist/ui-kit/FormField/Fields/AddressMatchField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressRetailField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/AddressRetailField.js +0 -37
- package/mobile/dist/ui-kit/FormField/Fields/AddressRetailField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.js +0 -19
- package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/ArmyIdFlgField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/BeginDateField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/BeginDateField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/BeginDateField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/BirthPlaceField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/BirthPlaceField.js +0 -9
- package/mobile/dist/ui-kit/FormField/Fields/BirthPlaceField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js +0 -30
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/ChildrenField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/ChildrenField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/ChildrenField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/CodeWordField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/CodeWordField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/CodeWordField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/ConfirmationIncomeField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/ConfirmationIncomeField.js +0 -11
- package/mobile/dist/ui-kit/FormField/Fields/ConfirmationIncomeField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/ConscriptionField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/ConscriptionField.js +0 -11
- package/mobile/dist/ui-kit/FormField/Fields/ConscriptionField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/ConsentField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/ConsentField.js +0 -8
- package/mobile/dist/ui-kit/FormField/Fields/ConsentField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.js +0 -28
- package/mobile/dist/ui-kit/FormField/Fields/CreditCalcField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +0 -14
- package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js +0 -8
- package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/DependentsField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulIssueDateField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/DulIssueDateField.js +0 -8
- package/mobile/dist/ui-kit/FormField/Fields/DulIssueDateField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulIssuedByField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/DulIssuedByField.js +0 -15
- package/mobile/dist/ui-kit/FormField/Fields/DulIssuedByField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js +0 -8
- package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js +0 -8
- package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +0 -14
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/EducationField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/EducationField.js +0 -11
- package/mobile/dist/ui-kit/FormField/Fields/EducationField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js +0 -19
- package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js +0 -19
- package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.js +0 -11
- package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/ExpensesField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/ExpensesField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/ExpensesField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.js +0 -19
- package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/FamilyStatusField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/FamilyStatusField.js +0 -11
- package/mobile/dist/ui-kit/FormField/Fields/FamilyStatusField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/HousingField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/HousingField.js +0 -11
- package/mobile/dist/ui-kit/FormField/Fields/HousingField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +0 -9
- package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/LegalFormField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/LegalFormField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/LegalFormField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/LimitedBirthdayField.js +0 -8
- package/mobile/dist/ui-kit/FormField/Fields/LimitedBirthdayField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.d.ts +0 -4
- package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.js +0 -11
- package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.js +0 -19
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js +0 -17
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +0 -14
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js +0 -27
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/PositionOrganizationField.js +0 -11
- package/mobile/dist/ui-kit/FormField/Fields/PositionOrganizationField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/RegionRetailField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/RegionRetailField.js +0 -12
- package/mobile/dist/ui-kit/FormField/Fields/RegionRetailField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/SexField.d.ts +0 -4
- package/mobile/dist/ui-kit/FormField/Fields/SexField.js +0 -27
- package/mobile/dist/ui-kit/FormField/Fields/SexField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/SnilsField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/SnilsField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/SnilsField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/TotalIncomeField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/TotalIncomeField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/TotalIncomeField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/WagesField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/WagesField.js +0 -7
- package/mobile/dist/ui-kit/FormField/Fields/WagesField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/consentToReceiveMaterialsField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/SelectField.d.ts +0 -12
- package/mobile/dist/ui-kit/FormField/SelectField.js +0 -15
- package/mobile/dist/ui-kit/FormField/SelectField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/isEsiaAuthorize.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/isEsiaAuthorize.js +0 -6
- package/mobile/dist/ui-kit/FormField/isEsiaAuthorize.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/updateOrganizationFields.d.ts +0 -4
- package/mobile/dist/ui-kit/FormField/updateOrganizationFields.js +0 -25
- package/mobile/dist/ui-kit/FormField/updateOrganizationFields.js.map +0 -1
- package/mobile/dist/ui-kit/Input/InputPopup.d.ts +0 -8
- package/mobile/dist/ui-kit/Input/InputPopup.js +0 -34
- package/mobile/dist/ui-kit/Input/InputPopup.js.map +0 -1
- package/mobile/dist/ui-kit/Input/useInputPopup.d.ts +0 -13
- package/mobile/dist/ui-kit/Input/useInputPopup.js +0 -67
- package/mobile/dist/ui-kit/Input/useInputPopup.js.map +0 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.d.ts +0 -8
- package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js +0 -46
- package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +0 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/SubmitButton.d.ts +0 -7
- package/mobile/dist/ui-kit/VerifyPhoneDialog/SubmitButton.js +0 -10
- package/mobile/dist/ui-kit/VerifyPhoneDialog/SubmitButton.js.map +0 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -10
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +0 -51
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +0 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +0 -16
- package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +0 -51
- package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +0 -1
- package/mobile/lib/api/RetailAPI/StatusType.d.ts +0 -1
- package/mobile/lib/api/RetailAPI/StatusType.js +0 -2
- package/mobile/lib/api/RetailAPI/StatusType.js.map +0 -1
- package/mobile/lib/api/RetailAPI/checkCaptcha.d.ts +0 -4
- package/mobile/lib/api/RetailAPI/checkCaptcha.js +0 -5
- package/mobile/lib/api/RetailAPI/checkCaptcha.js.map +0 -1
- package/mobile/lib/api/RetailAPI/checkCode.d.ts +0 -12
- package/mobile/lib/api/RetailAPI/checkCode.js +0 -9
- package/mobile/lib/api/RetailAPI/checkCode.js.map +0 -1
- package/mobile/lib/api/RetailAPI/createCaptcha.d.ts +0 -1
- package/mobile/lib/api/RetailAPI/createCaptcha.js +0 -3
- package/mobile/lib/api/RetailAPI/createCaptcha.js.map +0 -1
- package/mobile/lib/api/RetailAPI/createDraftTask.d.ts +0 -9
- package/mobile/lib/api/RetailAPI/createDraftTask.js +0 -6
- package/mobile/lib/api/RetailAPI/createDraftTask.js.map +0 -1
- package/mobile/lib/api/RetailAPI/createUserProfile.d.ts +0 -9
- package/mobile/lib/api/RetailAPI/createUserProfile.js +0 -3
- package/mobile/lib/api/RetailAPI/createUserProfile.js.map +0 -1
- package/mobile/lib/api/RetailAPI/doRequest.d.ts +0 -2
- package/mobile/lib/api/RetailAPI/doRequest.js +0 -32
- package/mobile/lib/api/RetailAPI/doRequest.js.map +0 -1
- package/mobile/lib/api/RetailAPI/draftTasksKZO.d.ts +0 -34
- package/mobile/lib/api/RetailAPI/draftTasksKZO.js +0 -6
- package/mobile/lib/api/RetailAPI/draftTasksKZO.js.map +0 -1
- package/mobile/lib/api/RetailAPI/feedbackById.d.ts +0 -1
- package/mobile/lib/api/RetailAPI/feedbackById.js +0 -6
- package/mobile/lib/api/RetailAPI/feedbackById.js.map +0 -1
- package/mobile/lib/api/RetailAPI/getCardTypes.d.ts +0 -8
- package/mobile/lib/api/RetailAPI/getCardTypes.js +0 -9
- package/mobile/lib/api/RetailAPI/getCardTypes.js.map +0 -1
- package/mobile/lib/api/RetailAPI/getGenderFromName.d.ts +0 -1
- package/mobile/lib/api/RetailAPI/getGenderFromName.js +0 -14
- package/mobile/lib/api/RetailAPI/getGenderFromName.js.map +0 -1
- package/mobile/lib/api/RetailAPI/getLastTaskStatus.d.ts +0 -6
- package/mobile/lib/api/RetailAPI/getLastTaskStatus.js +0 -6
- package/mobile/lib/api/RetailAPI/getLastTaskStatus.js.map +0 -1
- package/mobile/lib/api/RetailAPI/getLink.d.ts +0 -7
- package/mobile/lib/api/RetailAPI/getLink.js +0 -3
- package/mobile/lib/api/RetailAPI/getLink.js.map +0 -1
- package/mobile/lib/api/RetailAPI/getPaymentSystems.d.ts +0 -2
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js +0 -12
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js.map +0 -1
- package/mobile/lib/api/RetailAPI/getTaskById.d.ts +0 -6
- package/mobile/lib/api/RetailAPI/getTaskById.js +0 -6
- package/mobile/lib/api/RetailAPI/getTaskById.js.map +0 -1
- package/mobile/lib/api/RetailAPI/getTaskStatus.d.ts +0 -18
- package/mobile/lib/api/RetailAPI/getTaskStatus.js +0 -15
- package/mobile/lib/api/RetailAPI/getTaskStatus.js.map +0 -1
- package/mobile/lib/api/RetailAPI/getTraceId.d.ts +0 -1
- package/mobile/lib/api/RetailAPI/getTraceId.js +0 -6
- package/mobile/lib/api/RetailAPI/getTraceId.js.map +0 -1
- package/mobile/lib/api/RetailAPI/getUserTasks.d.ts +0 -41
- package/mobile/lib/api/RetailAPI/getUserTasks.js +0 -12
- package/mobile/lib/api/RetailAPI/getUserTasks.js.map +0 -1
- package/mobile/lib/api/RetailAPI/regionOffices.d.ts +0 -16
- package/mobile/lib/api/RetailAPI/regionOffices.js +0 -17
- package/mobile/lib/api/RetailAPI/regionOffices.js.map +0 -1
- package/mobile/lib/api/RetailAPI/sendCode.d.ts +0 -7
- package/mobile/lib/api/RetailAPI/sendCode.js +0 -5
- package/mobile/lib/api/RetailAPI/sendCode.js.map +0 -1
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.d.ts +0 -7
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.js +0 -3
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.js.map +0 -1
- package/mobile/lib/api/RetailAPI/updateProfileEsia.d.ts +0 -66
- package/mobile/lib/api/RetailAPI/updateProfileEsia.js +0 -3
- package/mobile/lib/api/RetailAPI/updateProfileEsia.js.map +0 -1
- package/mobile/lib/api/RetailAPI/updateRefreshToken.d.ts +0 -1
- package/mobile/lib/api/RetailAPI/updateRefreshToken.js +0 -36
- package/mobile/lib/api/RetailAPI/updateRefreshToken.js.map +0 -1
- package/mobile/lib/api/RetailAPI/updateUserProfile.d.ts +0 -21
- package/mobile/lib/api/RetailAPI/updateUserProfile.js +0 -3
- package/mobile/lib/api/RetailAPI/updateUserProfile.js.map +0 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +0 -140
- package/mobile/lib/api/RetailAPI/updateUserTask.js +0 -3
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +0 -1
- package/mobile/lib/api/dadataHints/dadataHints.d.ts +0 -2
- package/mobile/lib/api/dadataHints/dadataHints.js +0 -35
- package/mobile/lib/api/dadataHints/dadataHints.js.map +0 -1
- package/mobile/lib/api/dadataHints/dadataHintsType.d.ts +0 -68
- package/mobile/lib/api/dadataHints/dadataHintsType.js +0 -2
- package/mobile/lib/api/dadataHints/dadataHintsType.js.map +0 -1
- package/mobile/lib/api/dadataHints/hintsListsOptions.d.ts +0 -11
- package/mobile/lib/api/dadataHints/hintsListsOptions.js +0 -56
- package/mobile/lib/api/dadataHints/hintsListsOptions.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -6
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +0 -38
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -18
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +0 -2
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/Footnote.d.ts +0 -7
- package/mobile/lib/components/ApplicationLeadForm/Footnote.js +0 -7
- package/mobile/lib/components/ApplicationLeadForm/Footnote.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.d.ts +0 -8
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js +0 -31
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.d.ts +0 -2
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js +0 -23
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/consents.d.ts +0 -7
- package/mobile/lib/components/ApplicationLeadForm/consents.js +0 -23
- package/mobile/lib/components/ApplicationLeadForm/consents.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +0 -3
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +0 -21
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +0 -10
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +0 -48
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +0 -3
- package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.js +0 -50
- package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -4
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -11
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/renderInputs.d.ts +0 -2
- package/mobile/lib/components/ApplicationLeadForm/renderInputs.js +0 -15
- package/mobile/lib/components/ApplicationLeadForm/renderInputs.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +0 -2
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +0 -4
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +0 -11
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +0 -111
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -5
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +0 -52
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +0 -15
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js +0 -3
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +0 -9
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js +0 -14
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/CreditCardForm.d.ts +0 -6
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js +0 -38
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormContent.d.ts +0 -21
- package/mobile/lib/components/CreditCardForm/CreditCardFormContent.js +0 -2
- package/mobile/lib/components/CreditCardForm/CreditCardFormContent.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.d.ts +0 -6
- package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.js +0 -9
- package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +0 -15
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js +0 -21
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +0 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +0 -49
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.d.ts +0 -9
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +0 -26
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/FailedStatusContent.d.ts +0 -1
- package/mobile/lib/components/CreditCardForm/FailedStatusContent.js +0 -5
- package/mobile/lib/components/CreditCardForm/FailedStatusContent.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.d.ts +0 -3
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.js +0 -18
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.d.ts +0 -1
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js +0 -33
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +0 -6
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +0 -10
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.d.ts +0 -1
- package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.js +0 -35
- package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.d.ts +0 -2
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +0 -7
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.d.ts +0 -2
- package/mobile/lib/components/CreditCardForm/formStateMap.js +0 -87
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +0 -11
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +0 -54
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/getDeliveryCreditCardData.d.ts +0 -28
- package/mobile/lib/components/CreditCardForm/getDeliveryCreditCardData.js +0 -34
- package/mobile/lib/components/CreditCardForm/getDeliveryCreditCardData.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/getInitialFormState.d.ts +0 -2
- package/mobile/lib/components/CreditCardForm/getInitialFormState.js +0 -19
- package/mobile/lib/components/CreditCardForm/getInitialFormState.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +0 -9
- package/mobile/lib/components/CreditCardForm/renderInputs.js +0 -5
- package/mobile/lib/components/CreditCardForm/renderInputs.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/renderStep.d.ts +0 -10
- package/mobile/lib/components/CreditCardForm/renderStep.js +0 -12
- package/mobile/lib/components/CreditCardForm/renderStep.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +0 -8
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -52
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +0 -1
- package/mobile/lib/components/CreditForm/CreditForm.d.ts +0 -9
- package/mobile/lib/components/CreditForm/CreditForm.js +0 -39
- package/mobile/lib/components/CreditForm/CreditForm.js.map +0 -1
- package/mobile/lib/components/CreditForm/CreditFormContent.d.ts +0 -9
- package/mobile/lib/components/CreditForm/CreditFormContent.js +0 -2
- package/mobile/lib/components/CreditForm/CreditFormContent.js.map +0 -1
- package/mobile/lib/components/CreditForm/CreditFormProgress.d.ts +0 -6
- package/mobile/lib/components/CreditForm/CreditFormProgress.js +0 -9
- package/mobile/lib/components/CreditForm/CreditFormProgress.js.map +0 -1
- package/mobile/lib/components/CreditForm/CreditFormStatus.d.ts +0 -15
- package/mobile/lib/components/CreditForm/CreditFormStatus.js +0 -23
- package/mobile/lib/components/CreditForm/CreditFormStatus.js.map +0 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.d.ts +0 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +0 -49
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +0 -1
- package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +0 -11
- package/mobile/lib/components/CreditForm/CreditFormStep.js +0 -29
- package/mobile/lib/components/CreditForm/CreditFormStep.js.map +0 -1
- package/mobile/lib/components/CreditForm/FailedStatusContent.d.ts +0 -1
- package/mobile/lib/components/CreditForm/FailedStatusContent.js +0 -5
- package/mobile/lib/components/CreditForm/FailedStatusContent.js.map +0 -1
- package/mobile/lib/components/CreditForm/PendingStatusContent.d.ts +0 -3
- package/mobile/lib/components/CreditForm/PendingStatusContent.js +0 -30
- package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +0 -1
- package/mobile/lib/components/CreditForm/ProgramsSourceProps.d.ts +0 -16
- package/mobile/lib/components/CreditForm/ProgramsSourceProps.js +0 -2
- package/mobile/lib/components/CreditForm/ProgramsSourceProps.js.map +0 -1
- package/mobile/lib/components/CreditForm/ReworkStatusContent.d.ts +0 -1
- package/mobile/lib/components/CreditForm/ReworkStatusContent.js +0 -23
- package/mobile/lib/components/CreditForm/ReworkStatusContent.js.map +0 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.d.ts +0 -6
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +0 -10
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +0 -1
- package/mobile/lib/components/CreditForm/SuccessStatusContent.d.ts +0 -1
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js +0 -30
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js.map +0 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +0 -2
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +0 -7
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +0 -1
- package/mobile/lib/components/CreditForm/formStateMap.d.ts +0 -2
- package/mobile/lib/components/CreditForm/formStateMap.js +0 -82
- package/mobile/lib/components/CreditForm/formStateMap.js.map +0 -1
- package/mobile/lib/components/CreditForm/getCalcData.d.ts +0 -3
- package/mobile/lib/components/CreditForm/getCalcData.js +0 -13
- package/mobile/lib/components/CreditForm/getCalcData.js.map +0 -1
- package/mobile/lib/components/CreditForm/getInitialFormState.d.ts +0 -2
- package/mobile/lib/components/CreditForm/getInitialFormState.js +0 -19
- package/mobile/lib/components/CreditForm/getInitialFormState.js.map +0 -1
- package/mobile/lib/components/CreditForm/renderInputs.d.ts +0 -9
- package/mobile/lib/components/CreditForm/renderInputs.js +0 -4
- package/mobile/lib/components/CreditForm/renderInputs.js.map +0 -1
- package/mobile/lib/components/CreditForm/renderStep.d.ts +0 -10
- package/mobile/lib/components/CreditForm/renderStep.js +0 -12
- package/mobile/lib/components/CreditForm/renderStep.js.map +0 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.d.ts +0 -8
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js +0 -56
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +0 -1
- package/mobile/lib/components/CreditForm/utils.d.ts +0 -25
- package/mobile/lib/components/CreditForm/utils.js +0 -67
- package/mobile/lib/components/CreditForm/utils.js.map +0 -1
- package/mobile/lib/hooks/useLeadFormData.d.ts +0 -8
- package/mobile/lib/hooks/useLeadFormData.js +0 -14
- package/mobile/lib/hooks/useLeadFormData.js.map +0 -1
- package/mobile/lib/hooks/useRetailFormStore.d.ts +0 -36
- package/mobile/lib/hooks/useRetailFormStore.js +0 -5
- package/mobile/lib/hooks/useRetailFormStore.js.map +0 -1
- package/mobile/lib/services/retail/adaptors/getAdditionalInfoData.d.ts +0 -3
- package/mobile/lib/services/retail/adaptors/getAdditionalInfoData.js +0 -10
- package/mobile/lib/services/retail/adaptors/getAdditionalInfoData.js.map +0 -1
- package/mobile/lib/services/retail/adaptors/getCalculatorData.d.ts +0 -3
- package/mobile/lib/services/retail/adaptors/getCalculatorData.js +0 -8
- package/mobile/lib/services/retail/adaptors/getCalculatorData.js.map +0 -1
- package/mobile/lib/services/retail/adaptors/getCardOptionsData.d.ts +0 -3
- package/mobile/lib/services/retail/adaptors/getCardOptionsData.js +0 -10
- package/mobile/lib/services/retail/adaptors/getCardOptionsData.js.map +0 -1
- package/mobile/lib/services/retail/adaptors/getCreditFormTaskData.d.ts +0 -11
- package/mobile/lib/services/retail/adaptors/getCreditFormTaskData.js +0 -55
- package/mobile/lib/services/retail/adaptors/getCreditFormTaskData.js.map +0 -1
- package/mobile/lib/services/retail/adaptors/getDeliveryCreditData.d.ts +0 -3
- package/mobile/lib/services/retail/adaptors/getDeliveryCreditData.js +0 -7
- package/mobile/lib/services/retail/adaptors/getDeliveryCreditData.js.map +0 -1
- package/mobile/lib/services/retail/adaptors/getEmploymentData.d.ts +0 -3
- package/mobile/lib/services/retail/adaptors/getEmploymentData.js +0 -28
- package/mobile/lib/services/retail/adaptors/getEmploymentData.js.map +0 -1
- package/mobile/lib/services/retail/adaptors/getFamilyStatusAndIncomeData.d.ts +0 -4
- package/mobile/lib/services/retail/adaptors/getFamilyStatusAndIncomeData.js +0 -26
- package/mobile/lib/services/retail/adaptors/getFamilyStatusAndIncomeData.js.map +0 -1
- package/mobile/lib/services/retail/adaptors/getPersonalInfoData.d.ts +0 -3
- package/mobile/lib/services/retail/adaptors/getPersonalInfoData.js +0 -32
- package/mobile/lib/services/retail/adaptors/getPersonalInfoData.js.map +0 -1
- package/mobile/lib/services/retail/content.d.ts +0 -6
- package/mobile/lib/services/retail/content.js +0 -362
- package/mobile/lib/services/retail/content.js.map +0 -1
- package/mobile/lib/services/retail/external/types.d.ts +0 -10
- package/mobile/lib/services/retail/external/types.js +0 -2
- package/mobile/lib/services/retail/external/types.js.map +0 -1
- package/mobile/lib/services/retail/external/utils.d.ts +0 -2
- package/mobile/lib/services/retail/external/utils.js +0 -3
- package/mobile/lib/services/retail/external/utils.js.map +0 -1
- package/mobile/lib/services/retail/inputs.d.ts +0 -75
- package/mobile/lib/services/retail/inputs.js +0 -136
- package/mobile/lib/services/retail/inputs.js.map +0 -1
- package/mobile/lib/services/retail/mockLocalStorage.d.ts +0 -1
- package/mobile/lib/services/retail/mockLocalStorage.js +0 -32
- package/mobile/lib/services/retail/mockLocalStorage.js.map +0 -1
- package/mobile/lib/services/retail/model/EOrganizationActivityTypes.d.ts +0 -23
- package/mobile/lib/services/retail/model/EOrganizationActivityTypes.js +0 -2
- package/mobile/lib/services/retail/model/EOrganizationActivityTypes.js.map +0 -1
- package/mobile/lib/services/retail/model/LeadFormData.d.ts +0 -7
- package/mobile/lib/services/retail/model/LeadFormData.js +0 -2
- package/mobile/lib/services/retail/model/LeadFormData.js.map +0 -1
- package/mobile/lib/services/retail/model/LeadFormState.d.ts +0 -146
- package/mobile/lib/services/retail/model/LeadFormState.js +0 -2
- package/mobile/lib/services/retail/model/LeadFormState.js.map +0 -1
- package/mobile/lib/services/retail/model/NameFieldDef.d.ts +0 -6
- package/mobile/lib/services/retail/model/NameFieldDef.js +0 -2
- package/mobile/lib/services/retail/model/NameFieldDef.js.map +0 -1
- package/mobile/lib/services/retail/model/RetailFormContent.d.ts +0 -26
- package/mobile/lib/services/retail/model/RetailFormContent.js +0 -2
- package/mobile/lib/services/retail/model/RetailFormContent.js.map +0 -1
- package/mobile/lib/services/retail/utils/calculateInputs.d.ts +0 -5
- package/mobile/lib/services/retail/utils/calculateInputs.js +0 -27
- package/mobile/lib/services/retail/utils/calculateInputs.js.map +0 -1
- package/mobile/lib/services/retail/utils/getOrganizationParams.d.ts +0 -17
- package/mobile/lib/services/retail/utils/getOrganizationParams.js +0 -100
- package/mobile/lib/services/retail/utils/getOrganizationParams.js.map +0 -1
- package/mobile/lib/services/retail/utils/getUpdateUserProfile.d.ts +0 -3
- package/mobile/lib/services/retail/utils/getUpdateUserProfile.js +0 -24
- package/mobile/lib/services/retail/utils/getUpdateUserProfile.js.map +0 -1
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +0 -6
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +0 -37
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +0 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.d.ts +0 -6
- package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js +0 -12
- package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +0 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +0 -5
- package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -40
- package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +0 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.d.ts +0 -3
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +0 -41
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +0 -1
- package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.d.ts +0 -6
- package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.js +0 -14
- package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.js.map +0 -1
- package/mobile/lib/ui-kit/DocumentDialog/useDocumentDialog.d.ts +0 -2
- package/mobile/lib/ui-kit/DocumentDialog/useDocumentDialog.js +0 -16
- package/mobile/lib/ui-kit/DocumentDialog/useDocumentDialog.js.map +0 -1
- package/mobile/lib/ui-kit/DraftDialog/DraftActionButton.d.ts +0 -8
- package/mobile/lib/ui-kit/DraftDialog/DraftActionButton.js +0 -7
- package/mobile/lib/ui-kit/DraftDialog/DraftActionButton.js.map +0 -1
- package/mobile/lib/ui-kit/DraftDialog/DraftDialog.d.ts +0 -7
- package/mobile/lib/ui-kit/DraftDialog/DraftDialog.js +0 -35
- package/mobile/lib/ui-kit/DraftDialog/DraftDialog.js.map +0 -1
- package/mobile/lib/ui-kit/DraftDialog/EmptyDraftDialog.d.ts +0 -4
- package/mobile/lib/ui-kit/DraftDialog/EmptyDraftDialog.js +0 -20
- package/mobile/lib/ui-kit/DraftDialog/EmptyDraftDialog.js.map +0 -1
- package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.d.ts +0 -3
- package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js +0 -64
- package/mobile/lib/ui-kit/DraftDialog/parseDraftTask.js.map +0 -1
- package/mobile/lib/ui-kit/DraftDialog/useDraftDialog.d.ts +0 -10
- package/mobile/lib/ui-kit/DraftDialog/useDraftDialog.js +0 -13
- package/mobile/lib/ui-kit/DraftDialog/useDraftDialog.js.map +0 -1
- package/mobile/lib/ui-kit/DraftDialog/utils.d.ts +0 -148
- package/mobile/lib/ui-kit/DraftDialog/utils.js +0 -89
- package/mobile/lib/ui-kit/DraftDialog/utils.js.map +0 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +0 -31
- package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +0 -12
- package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.js +0 -54
- package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.d.ts +0 -20
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.js +0 -50
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressMatchField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/AddressMatchField.js +0 -7
- package/mobile/lib/ui-kit/FormField/Fields/AddressMatchField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressRetailField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/AddressRetailField.js +0 -35
- package/mobile/lib/ui-kit/FormField/Fields/AddressRetailField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.js +0 -17
- package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/ArmyIdFlgField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/BeginDateField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/BeginDateField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/BeginDateField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/BirthPlaceField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/BirthPlaceField.js +0 -7
- package/mobile/lib/ui-kit/FormField/Fields/BirthPlaceField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js +0 -28
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/ChildrenField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/ChildrenField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/ChildrenField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/CodeWordField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/CodeWordField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/CodeWordField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/ConfirmationIncomeField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/ConfirmationIncomeField.js +0 -9
- package/mobile/lib/ui-kit/FormField/Fields/ConfirmationIncomeField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/ConscriptionField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/ConscriptionField.js +0 -9
- package/mobile/lib/ui-kit/FormField/Fields/ConscriptionField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/ConsentField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/ConsentField.js +0 -6
- package/mobile/lib/ui-kit/FormField/Fields/ConsentField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.js +0 -26
- package/mobile/lib/ui-kit/FormField/Fields/CreditCalcField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +0 -12
- package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js +0 -6
- package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/DependentsField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulIssueDateField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/DulIssueDateField.js +0 -6
- package/mobile/lib/ui-kit/FormField/Fields/DulIssueDateField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulIssuedByField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/DulIssuedByField.js +0 -13
- package/mobile/lib/ui-kit/FormField/Fields/DulIssuedByField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js +0 -6
- package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js +0 -6
- package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +0 -12
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/EducationField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/EducationField.js +0 -9
- package/mobile/lib/ui-kit/FormField/Fields/EducationField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js +0 -17
- package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js +0 -17
- package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.js +0 -9
- package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/ExpensesField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/ExpensesField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/ExpensesField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.js +0 -17
- package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/FamilyStatusField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/FamilyStatusField.js +0 -9
- package/mobile/lib/ui-kit/FormField/Fields/FamilyStatusField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/HousingField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/HousingField.js +0 -9
- package/mobile/lib/ui-kit/FormField/Fields/HousingField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +0 -7
- package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/LegalFormField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/LegalFormField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/LegalFormField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/LimitedBirthdayField.js +0 -6
- package/mobile/lib/ui-kit/FormField/Fields/LimitedBirthdayField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.d.ts +0 -4
- package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.js +0 -9
- package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.js +0 -17
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js +0 -15
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +0 -12
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js +0 -25
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/PositionOrganizationField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/PositionOrganizationField.js +0 -9
- package/mobile/lib/ui-kit/FormField/Fields/PositionOrganizationField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/RegionRetailField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/RegionRetailField.js +0 -10
- package/mobile/lib/ui-kit/FormField/Fields/RegionRetailField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/SexField.d.ts +0 -4
- package/mobile/lib/ui-kit/FormField/Fields/SexField.js +0 -25
- package/mobile/lib/ui-kit/FormField/Fields/SexField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/SnilsField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/SnilsField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/SnilsField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/TotalIncomeField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/TotalIncomeField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/TotalIncomeField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/WagesField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/WagesField.js +0 -5
- package/mobile/lib/ui-kit/FormField/Fields/WagesField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/consentToReceiveMaterialsField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/SelectField.d.ts +0 -12
- package/mobile/lib/ui-kit/FormField/SelectField.js +0 -13
- package/mobile/lib/ui-kit/FormField/SelectField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/isEsiaAuthorize.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/isEsiaAuthorize.js +0 -3
- package/mobile/lib/ui-kit/FormField/isEsiaAuthorize.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/updateOrganizationFields.d.ts +0 -4
- package/mobile/lib/ui-kit/FormField/updateOrganizationFields.js +0 -22
- package/mobile/lib/ui-kit/FormField/updateOrganizationFields.js.map +0 -1
- package/mobile/lib/ui-kit/Input/InputPopup.d.ts +0 -8
- package/mobile/lib/ui-kit/Input/InputPopup.js +0 -32
- package/mobile/lib/ui-kit/Input/InputPopup.js.map +0 -1
- package/mobile/lib/ui-kit/Input/useInputPopup.d.ts +0 -13
- package/mobile/lib/ui-kit/Input/useInputPopup.js +0 -64
- package/mobile/lib/ui-kit/Input/useInputPopup.js.map +0 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.d.ts +0 -8
- package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js +0 -44
- package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +0 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/SubmitButton.d.ts +0 -7
- package/mobile/lib/ui-kit/VerifyPhoneDialog/SubmitButton.js +0 -8
- package/mobile/lib/ui-kit/VerifyPhoneDialog/SubmitButton.js.map +0 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +0 -10
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +0 -49
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +0 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +0 -16
- package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +0 -48
- package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +0 -1
- package/mobile/src/api/RetailAPI/StatusType.ts +0 -1
- package/mobile/src/api/RetailAPI/checkCaptcha.ts +0 -10
- package/mobile/src/api/RetailAPI/checkCode.ts +0 -24
- package/mobile/src/api/RetailAPI/createCaptcha.ts +0 -6
- package/mobile/src/api/RetailAPI/createDraftTask.ts +0 -23
- package/mobile/src/api/RetailAPI/createUserProfile.ts +0 -15
- package/mobile/src/api/RetailAPI/doRequest.ts +0 -45
- package/mobile/src/api/RetailAPI/draftTasksKZO.ts +0 -39
- package/mobile/src/api/RetailAPI/feedbackById.ts +0 -10
- package/mobile/src/api/RetailAPI/getCardTypes.ts +0 -18
- package/mobile/src/api/RetailAPI/getGenderFromName.ts +0 -17
- package/mobile/src/api/RetailAPI/getLastTaskStatus.ts +0 -21
- package/mobile/src/api/RetailAPI/getLink.ts +0 -12
- package/mobile/src/api/RetailAPI/getPaymentSystems.ts +0 -29
- package/mobile/src/api/RetailAPI/getTaskById.ts +0 -12
- package/mobile/src/api/RetailAPI/getTaskStatus.ts +0 -21
- package/mobile/src/api/RetailAPI/getTraceId.ts +0 -6
- package/mobile/src/api/RetailAPI/getUserTasks.ts +0 -50
- package/mobile/src/api/RetailAPI/regionOffices.ts +0 -42
- package/mobile/src/api/RetailAPI/sendCode.ts +0 -13
- package/mobile/src/api/RetailAPI/sendSignalToProcess.ts +0 -14
- package/mobile/src/api/RetailAPI/updateProfileEsia.ts +0 -71
- package/mobile/src/api/RetailAPI/updateRefreshToken.ts +0 -53
- package/mobile/src/api/RetailAPI/updateUserProfile.ts +0 -25
- package/mobile/src/api/RetailAPI/updateUserTask.ts +0 -155
- package/mobile/src/api/dadataHints/dadataHints.ts +0 -51
- package/mobile/src/api/dadataHints/dadataHintsType.ts +0 -79
- package/mobile/src/api/dadataHints/hintsListsOptions.ts +0 -77
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +0 -70
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +0 -72
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.ui.json +0 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +0 -23
- package/mobile/src/components/ApplicationLeadForm/Footnote.tsx +0 -21
- package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +0 -79
- package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -24
- package/mobile/src/components/ApplicationLeadForm/consents.ts +0 -29
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +0 -29
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +0 -66
- package/mobile/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +0 -70
- package/mobile/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +0 -28
- package/mobile/src/components/ApplicationLeadForm/renderInputs.tsx +0 -26
- package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +0 -8
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +0 -141
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +0 -71
- package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +0 -12
- package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +0 -27
- package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +0 -75
- package/mobile/src/components/CreditCardForm/CreditCardFormContent.ts +0 -26
- package/mobile/src/components/CreditCardForm/CreditCardFormProgress.tsx +0 -27
- package/mobile/src/components/CreditCardForm/CreditCardFormStatus.tsx +0 -110
- package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +0 -61
- package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +0 -52
- package/mobile/src/components/CreditCardForm/FailedStatusContent.tsx +0 -10
- package/mobile/src/components/CreditCardForm/PendingStatusContent.tsx +0 -27
- package/mobile/src/components/CreditCardForm/ReworkStatusContent.tsx +0 -46
- package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +0 -27
- package/mobile/src/components/CreditCardForm/SuccessStatusCardContent.tsx +0 -45
- package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +0 -12
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +0 -88
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +0 -76
- package/mobile/src/components/CreditCardForm/getDeliveryCreditCardData.ts +0 -43
- package/mobile/src/components/CreditCardForm/getInitialFormState.tsx +0 -25
- package/mobile/src/components/CreditCardForm/renderInputs.tsx +0 -18
- package/mobile/src/components/CreditCardForm/renderStep.tsx +0 -32
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +0 -78
- package/mobile/src/components/CreditForm/CreditForm.tsx +0 -81
- package/mobile/src/components/CreditForm/CreditFormContent.ts +0 -10
- package/mobile/src/components/CreditForm/CreditFormProgress.tsx +0 -27
- package/mobile/src/components/CreditForm/CreditFormStatus.tsx +0 -112
- package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +0 -60
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +0 -58
- package/mobile/src/components/CreditForm/FailedStatusContent.tsx +0 -10
- package/mobile/src/components/CreditForm/PendingStatusContent.tsx +0 -39
- package/mobile/src/components/CreditForm/ProgramsSourceProps.tsx +0 -20
- package/mobile/src/components/CreditForm/ReworkStatusContent.tsx +0 -32
- package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +0 -27
- package/mobile/src/components/CreditForm/SuccessStatusContent.tsx +0 -37
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +0 -12
- package/mobile/src/components/CreditForm/formStateMap.tsx +0 -83
- package/mobile/src/components/CreditForm/getCalcData.ts +0 -19
- package/mobile/src/components/CreditForm/getInitialFormState.tsx +0 -25
- package/mobile/src/components/CreditForm/renderInputs.tsx +0 -14
- package/mobile/src/components/CreditForm/renderStep.tsx +0 -32
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +0 -83
- package/mobile/src/components/CreditForm/utils.ts +0 -82
- package/mobile/src/hooks/useLeadFormData.ts +0 -25
- package/mobile/src/hooks/useRetailFormStore.tsx +0 -32
- package/mobile/src/services/retail/adaptors/getAdditionalInfoData.ts +0 -13
- package/mobile/src/services/retail/adaptors/getCalculatorData.ts +0 -13
- package/mobile/src/services/retail/adaptors/getCardOptionsData.tsx +0 -13
- package/mobile/src/services/retail/adaptors/getCreditFormTaskData.ts +0 -73
- package/mobile/src/services/retail/adaptors/getDeliveryCreditData.ts +0 -12
- package/mobile/src/services/retail/adaptors/getEmploymentData.tsx +0 -52
- package/mobile/src/services/retail/adaptors/getFamilyStatusAndIncomeData.ts +0 -47
- package/mobile/src/services/retail/adaptors/getPersonalInfoData.tsx +0 -57
- package/mobile/src/services/retail/content.tsx +0 -366
- package/mobile/src/services/retail/external/types.ts +0 -10
- package/mobile/src/services/retail/external/utils.ts +0 -2
- package/mobile/src/services/retail/inputs.tsx +0 -139
- package/mobile/src/services/retail/mockLocalStorage.ts +0 -40
- package/mobile/src/services/retail/model/EOrganizationActivityTypes.ts +0 -23
- package/mobile/src/services/retail/model/LeadFormData.ts +0 -7
- package/mobile/src/services/retail/model/LeadFormState.ts +0 -153
- package/mobile/src/services/retail/model/NameFieldDef.ts +0 -89
- package/mobile/src/services/retail/model/RetailFormContent.ts +0 -34
- package/mobile/src/services/retail/utils/calculateInputs.ts +0 -51
- package/mobile/src/services/retail/utils/getOrganizationParams.ts +0 -132
- package/mobile/src/services/retail/utils/getUpdateUserProfile.ts +0 -45
- package/mobile/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +0 -77
- package/mobile/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +0 -31
- package/mobile/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +0 -80
- package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +0 -45
- package/mobile/src/ui-kit/DocumentDialog/DocumentDialog.tsx +0 -35
- package/mobile/src/ui-kit/DocumentDialog/useDocumentDialog.ts +0 -18
- package/mobile/src/ui-kit/DraftDialog/DraftActionButton.tsx +0 -34
- package/mobile/src/ui-kit/DraftDialog/DraftDialog.tsx +0 -75
- package/mobile/src/ui-kit/DraftDialog/EmptyDraftDialog.tsx +0 -47
- package/mobile/src/ui-kit/DraftDialog/parseDraftTask.ts +0 -129
- package/mobile/src/ui-kit/DraftDialog/useDraftDialog.tsx +0 -21
- package/mobile/src/ui-kit/DraftDialog/utils.ts +0 -162
- package/mobile/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +0 -59
- package/mobile/src/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.tsx +0 -13
- package/mobile/src/ui-kit/FormField/Fields/AddressFactField.tsx +0 -69
- package/mobile/src/ui-kit/FormField/Fields/AddressField.tsx +0 -65
- package/mobile/src/ui-kit/FormField/Fields/AddressMatchField.tsx +0 -12
- package/mobile/src/ui-kit/FormField/Fields/AddressRetailField.tsx +0 -60
- package/mobile/src/ui-kit/FormField/Fields/AmountWorkersField.tsx +0 -28
- package/mobile/src/ui-kit/FormField/Fields/ArmyIdFlgField.tsx +0 -7
- package/mobile/src/ui-kit/FormField/Fields/BankEmployeeCodeField.tsx +0 -13
- package/mobile/src/ui-kit/FormField/Fields/BankruptcyFlgField.tsx +0 -10
- package/mobile/src/ui-kit/FormField/Fields/BeginDateField.tsx +0 -11
- package/mobile/src/ui-kit/FormField/Fields/BirthPlaceField.tsx +0 -15
- package/mobile/src/ui-kit/FormField/Fields/CardCategoryField.tsx +0 -49
- package/mobile/src/ui-kit/FormField/Fields/ChildrenField.tsx +0 -13
- package/mobile/src/ui-kit/FormField/Fields/CodeWordField.tsx +0 -7
- package/mobile/src/ui-kit/FormField/Fields/ConfirmationIncomeField.tsx +0 -18
- package/mobile/src/ui-kit/FormField/Fields/ConscriptionField.tsx +0 -18
- package/mobile/src/ui-kit/FormField/Fields/ConsentField.tsx +0 -14
- package/mobile/src/ui-kit/FormField/Fields/CreditCalcField.tsx +0 -49
- package/mobile/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +0 -23
- package/mobile/src/ui-kit/FormField/Fields/CurrencyField.tsx +0 -14
- package/mobile/src/ui-kit/FormField/Fields/DeliveryDateFiels.tsx +0 -7
- package/mobile/src/ui-kit/FormField/Fields/DependentsField.tsx +0 -14
- package/mobile/src/ui-kit/FormField/Fields/DisablePeopleFlgField.tsx +0 -7
- package/mobile/src/ui-kit/FormField/Fields/DulIssueDateField.tsx +0 -12
- package/mobile/src/ui-kit/FormField/Fields/DulIssuedByField.tsx +0 -26
- package/mobile/src/ui-kit/FormField/Fields/DulNumberField.tsx +0 -14
- package/mobile/src/ui-kit/FormField/Fields/DulSerieField.tsx +0 -14
- package/mobile/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +0 -24
- package/mobile/src/ui-kit/FormField/Fields/EducationField.tsx +0 -18
- package/mobile/src/ui-kit/FormField/Fields/EmployerActivitiesField.tsx +0 -28
- package/mobile/src/ui-kit/FormField/Fields/EmployerOrganizationField.tsx +0 -28
- package/mobile/src/ui-kit/FormField/Fields/EmploymentField.tsx +0 -18
- package/mobile/src/ui-kit/FormField/Fields/ExpensesField.tsx +0 -13
- package/mobile/src/ui-kit/FormField/Fields/FamilyMembersField.tsx +0 -28
- package/mobile/src/ui-kit/FormField/Fields/FamilyStatusField.tsx +0 -18
- package/mobile/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +0 -14
- package/mobile/src/ui-kit/FormField/Fields/HousingField.tsx +0 -18
- package/mobile/src/ui-kit/FormField/Fields/InfoCardField.tsx +0 -7
- package/mobile/src/ui-kit/FormField/Fields/JobsNumberField.tsx +0 -14
- package/mobile/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +0 -14
- package/mobile/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +0 -14
- package/mobile/src/ui-kit/FormField/Fields/LegalFormField.tsx +0 -12
- package/mobile/src/ui-kit/FormField/Fields/LimitedBirthdayField.tsx +0 -12
- package/mobile/src/ui-kit/FormField/Fields/MandatoryPaymentsField.tsx +0 -13
- package/mobile/src/ui-kit/FormField/Fields/MethodObtainField.tsx +0 -17
- package/mobile/src/ui-kit/FormField/Fields/OrganizationField.tsx +0 -28
- package/mobile/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +0 -25
- package/mobile/src/ui-kit/FormField/Fields/OtherIncomeField.tsx +0 -13
- package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +0 -28
- package/mobile/src/ui-kit/FormField/Fields/ParticipantDateRegistrationField.tsx +0 -7
- package/mobile/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +0 -40
- package/mobile/src/ui-kit/FormField/Fields/PositionOrganizationField.tsx +0 -18
- package/mobile/src/ui-kit/FormField/Fields/RegionRetailField.tsx +0 -20
- package/mobile/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +0 -13
- package/mobile/src/ui-kit/FormField/Fields/SexField.tsx +0 -36
- package/mobile/src/ui-kit/FormField/Fields/ShareholderFlgField.tsx +0 -10
- package/mobile/src/ui-kit/FormField/Fields/SnilsField.tsx +0 -7
- package/mobile/src/ui-kit/FormField/Fields/TotalIncomeField.tsx +0 -13
- package/mobile/src/ui-kit/FormField/Fields/WagesField.tsx +0 -13
- package/mobile/src/ui-kit/FormField/SelectField.tsx +0 -42
- package/mobile/src/ui-kit/FormField/isEsiaAuthorize.ts +0 -6
- package/mobile/src/ui-kit/FormField/updateOrganizationFields.ts +0 -41
- package/mobile/src/ui-kit/Input/InputPopup.tsx +0 -60
- package/mobile/src/ui-kit/Input/useInputPopup.tsx +0 -106
- package/mobile/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +0 -89
- package/mobile/src/ui-kit/VerifyPhoneDialog/SubmitButton.tsx +0 -17
- package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +0 -138
- package/mobile/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +0 -59
- package/src/api/RetailAPI/StatusType.ts +0 -1
- package/src/api/RetailAPI/checkCaptcha.ts +0 -10
- package/src/api/RetailAPI/checkCode.ts +0 -24
- package/src/api/RetailAPI/createCaptcha.ts +0 -6
- package/src/api/RetailAPI/createDraftTask.ts +0 -23
- package/src/api/RetailAPI/createUserProfile.ts +0 -15
- package/src/api/RetailAPI/doRequest.ts +0 -45
- package/src/api/RetailAPI/draftTasksKZO.ts +0 -39
- package/src/api/RetailAPI/feedbackById.ts +0 -10
- package/src/api/RetailAPI/getCardTypes.ts +0 -18
- package/src/api/RetailAPI/getGenderFromName.ts +0 -17
- package/src/api/RetailAPI/getLastTaskStatus.ts +0 -21
- package/src/api/RetailAPI/getLink.ts +0 -12
- package/src/api/RetailAPI/getPaymentSystems.ts +0 -29
- package/src/api/RetailAPI/getTaskById.ts +0 -12
- package/src/api/RetailAPI/getTaskStatus.ts +0 -21
- package/src/api/RetailAPI/getTraceId.ts +0 -6
- package/src/api/RetailAPI/getUserTasks.ts +0 -50
- package/src/api/RetailAPI/regionOffices.ts +0 -42
- package/src/api/RetailAPI/sendCode.ts +0 -13
- package/src/api/RetailAPI/sendSignalToProcess.ts +0 -14
- package/src/api/RetailAPI/updateProfileEsia.ts +0 -71
- package/src/api/RetailAPI/updateRefreshToken.ts +0 -53
- package/src/api/RetailAPI/updateUserProfile.ts +0 -25
- package/src/api/RetailAPI/updateUserTask.ts +0 -155
- package/src/api/dadataHints/dadataHints.ts +0 -51
- package/src/api/dadataHints/dadataHintsType.ts +0 -79
- package/src/api/dadataHints/hintsListsOptions.ts +0 -77
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +0 -70
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +0 -38
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +0 -39
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +0 -72
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.ui.json +0 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +0 -23
- package/src/components/ApplicationLeadForm/Footnote.tsx +0 -21
- package/src/components/ApplicationLeadForm/GroupedConsents.tsx +0 -79
- package/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -24
- package/src/components/ApplicationLeadForm/consents.ts +0 -29
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +0 -29
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +0 -66
- package/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +0 -70
- package/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +0 -28
- package/src/components/ApplicationLeadForm/renderInputs.tsx +0 -26
- package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +0 -8
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +0 -141
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +0 -71
- package/src/components/ApplicationLeadForm/useLeadFormStore.ts +0 -12
- package/src/components/ApplicationLeadForm/useSaveUserData.ts +0 -27
- package/src/components/CreditCardForm/CreditCardForm.fixture.mobile.tsx +0 -21
- package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +0 -21
- package/src/components/CreditCardForm/CreditCardForm.tsx +0 -75
- package/src/components/CreditCardForm/CreditCardFormContent.ts +0 -26
- package/src/components/CreditCardForm/CreditCardFormProgress.tsx +0 -27
- package/src/components/CreditCardForm/CreditCardFormStatus.tsx +0 -110
- package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +0 -61
- package/src/components/CreditCardForm/CreditCardFormStep.tsx +0 -52
- package/src/components/CreditCardForm/FailedStatusContent.tsx +0 -10
- package/src/components/CreditCardForm/PendingStatusContent.tsx +0 -27
- package/src/components/CreditCardForm/ReworkStatusContent.tsx +0 -46
- package/src/components/CreditCardForm/StepsNavigationButtons.tsx +0 -27
- package/src/components/CreditCardForm/SuccessStatusCardContent.tsx +0 -45
- package/src/components/CreditCardForm/creditCardFormStepsData.tsx +0 -12
- package/src/components/CreditCardForm/formStateMap.tsx +0 -88
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +0 -76
- package/src/components/CreditCardForm/getDeliveryCreditCardData.ts +0 -43
- package/src/components/CreditCardForm/getInitialFormState.tsx +0 -25
- package/src/components/CreditCardForm/renderInputs.tsx +0 -18
- package/src/components/CreditCardForm/renderStep.tsx +0 -32
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +0 -78
- package/src/components/CreditForm/CreditForm.fixture.mobile.tsx +0 -26
- package/src/components/CreditForm/CreditForm.fixture.tsx +0 -26
- package/src/components/CreditForm/CreditForm.tsx +0 -81
- package/src/components/CreditForm/CreditFormContent.ts +0 -10
- package/src/components/CreditForm/CreditFormProgress.tsx +0 -27
- package/src/components/CreditForm/CreditFormStatus.tsx +0 -112
- package/src/components/CreditForm/CreditFormStatusTracker.tsx +0 -60
- package/src/components/CreditForm/CreditFormStep.tsx +0 -58
- package/src/components/CreditForm/FailedStatusContent.tsx +0 -10
- package/src/components/CreditForm/PendingStatusContent.tsx +0 -39
- package/src/components/CreditForm/ProgramsSourceProps.tsx +0 -20
- package/src/components/CreditForm/ReworkStatusContent.tsx +0 -32
- package/src/components/CreditForm/StepsNavigationButtons.tsx +0 -27
- package/src/components/CreditForm/SuccessStatusContent.tsx +0 -37
- package/src/components/CreditForm/creditFormStepsData.tsx +0 -12
- package/src/components/CreditForm/formStateMap.tsx +0 -83
- package/src/components/CreditForm/getCalcData.ts +0 -19
- package/src/components/CreditForm/getInitialFormState.tsx +0 -25
- package/src/components/CreditForm/renderInputs.tsx +0 -14
- package/src/components/CreditForm/renderStep.tsx +0 -32
- package/src/components/CreditForm/useCreditFormAPI.tsx +0 -83
- package/src/components/CreditForm/utils.ts +0 -82
- package/src/hooks/useLeadFormData.ts +0 -25
- package/src/hooks/useRetailFormStore.tsx +0 -32
- package/src/services/retail/adaptors/getAdditionalInfoData.ts +0 -13
- package/src/services/retail/adaptors/getCalculatorData.ts +0 -13
- package/src/services/retail/adaptors/getCardOptionsData.tsx +0 -13
- package/src/services/retail/adaptors/getCreditFormTaskData.ts +0 -73
- package/src/services/retail/adaptors/getDeliveryCreditData.ts +0 -12
- package/src/services/retail/adaptors/getEmploymentData.tsx +0 -52
- package/src/services/retail/adaptors/getFamilyStatusAndIncomeData.ts +0 -47
- package/src/services/retail/adaptors/getPersonalInfoData.tsx +0 -57
- package/src/services/retail/content.tsx +0 -366
- package/src/services/retail/external/types.ts +0 -10
- package/src/services/retail/external/utils.ts +0 -2
- package/src/services/retail/inputs.tsx +0 -139
- package/src/services/retail/mockLocalStorage.ts +0 -40
- package/src/services/retail/model/EOrganizationActivityTypes.ts +0 -23
- package/src/services/retail/model/LeadFormData.ts +0 -7
- package/src/services/retail/model/LeadFormState.ts +0 -153
- package/src/services/retail/model/NameFieldDef.ts +0 -89
- package/src/services/retail/model/RetailFormContent.ts +0 -34
- package/src/services/retail/utils/calculateInputs.ts +0 -51
- package/src/services/retail/utils/getOrganizationParams.ts +0 -132
- package/src/services/retail/utils/getUpdateUserProfile.ts +0 -45
- package/src/ui-kit/CaptchaDialog/CaptchaDialog.fixture.tsx +0 -11
- package/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +0 -77
- package/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +0 -31
- package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.fixture.tsx +0 -7
- package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +0 -80
- package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +0 -45
- package/src/ui-kit/DocumentDialog/DocumentDialog.tsx +0 -35
- package/src/ui-kit/DocumentDialog/useDocumentDialog.ts +0 -18
- package/src/ui-kit/DraftDialog/DraftActionButton.tsx +0 -34
- package/src/ui-kit/DraftDialog/DraftDialog.fixture.mobile.tsx +0 -26
- package/src/ui-kit/DraftDialog/DraftDialog.fixture.tsx +0 -27
- package/src/ui-kit/DraftDialog/DraftDialog.tsx +0 -75
- package/src/ui-kit/DraftDialog/EmptyDraftDialog.tsx +0 -47
- package/src/ui-kit/DraftDialog/parseDraftTask.ts +0 -129
- package/src/ui-kit/DraftDialog/useDraftDialog.tsx +0 -21
- package/src/ui-kit/DraftDialog/utils.ts +0 -162
- package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.fixture.tsx +0 -7
- package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +0 -59
- package/src/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.tsx +0 -13
- package/src/ui-kit/FormField/Fields/AddressFactField.tsx +0 -69
- package/src/ui-kit/FormField/Fields/AddressField.tsx +0 -65
- package/src/ui-kit/FormField/Fields/AddressMatchField.tsx +0 -12
- package/src/ui-kit/FormField/Fields/AddressRetailField.tsx +0 -60
- package/src/ui-kit/FormField/Fields/AmountWorkersField.tsx +0 -28
- package/src/ui-kit/FormField/Fields/ArmyIdFlgField.tsx +0 -7
- package/src/ui-kit/FormField/Fields/BankEmployeeCodeField.tsx +0 -13
- package/src/ui-kit/FormField/Fields/BankruptcyFlgField.tsx +0 -10
- package/src/ui-kit/FormField/Fields/BeginDateField.tsx +0 -11
- package/src/ui-kit/FormField/Fields/BirthPlaceField.tsx +0 -15
- package/src/ui-kit/FormField/Fields/CardCategoryField.tsx +0 -49
- package/src/ui-kit/FormField/Fields/ChildrenField.tsx +0 -13
- package/src/ui-kit/FormField/Fields/CodeWordField.tsx +0 -7
- package/src/ui-kit/FormField/Fields/ConfirmationIncomeField.tsx +0 -18
- package/src/ui-kit/FormField/Fields/ConscriptionField.tsx +0 -18
- package/src/ui-kit/FormField/Fields/ConsentField.tsx +0 -14
- package/src/ui-kit/FormField/Fields/CreditCalcField.tsx +0 -49
- package/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +0 -23
- package/src/ui-kit/FormField/Fields/CurrencyField.tsx +0 -14
- package/src/ui-kit/FormField/Fields/DeliveryDateFiels.tsx +0 -7
- package/src/ui-kit/FormField/Fields/DependentsField.tsx +0 -14
- package/src/ui-kit/FormField/Fields/DisablePeopleFlgField.tsx +0 -7
- package/src/ui-kit/FormField/Fields/DulIssueDateField.tsx +0 -12
- package/src/ui-kit/FormField/Fields/DulIssuedByField.tsx +0 -26
- package/src/ui-kit/FormField/Fields/DulNumberField.tsx +0 -14
- package/src/ui-kit/FormField/Fields/DulSerieField.tsx +0 -14
- package/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +0 -24
- package/src/ui-kit/FormField/Fields/EducationField.tsx +0 -18
- package/src/ui-kit/FormField/Fields/EmployerActivitiesField.tsx +0 -28
- package/src/ui-kit/FormField/Fields/EmployerOrganizationField.tsx +0 -28
- package/src/ui-kit/FormField/Fields/EmploymentField.tsx +0 -18
- package/src/ui-kit/FormField/Fields/ExpensesField.tsx +0 -13
- package/src/ui-kit/FormField/Fields/FamilyMembersField.tsx +0 -28
- package/src/ui-kit/FormField/Fields/FamilyStatusField.tsx +0 -18
- package/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +0 -14
- package/src/ui-kit/FormField/Fields/HousingField.tsx +0 -18
- package/src/ui-kit/FormField/Fields/InfoCardField.tsx +0 -7
- package/src/ui-kit/FormField/Fields/JobsNumberField.tsx +0 -14
- package/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +0 -14
- package/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +0 -14
- package/src/ui-kit/FormField/Fields/LegalFormField.tsx +0 -12
- package/src/ui-kit/FormField/Fields/LimitedBirthdayField.tsx +0 -12
- package/src/ui-kit/FormField/Fields/MandatoryPaymentsField.tsx +0 -13
- package/src/ui-kit/FormField/Fields/MethodObtainField.tsx +0 -17
- package/src/ui-kit/FormField/Fields/OrganizationField.tsx +0 -28
- package/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +0 -25
- package/src/ui-kit/FormField/Fields/OtherIncomeField.tsx +0 -13
- package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +0 -28
- package/src/ui-kit/FormField/Fields/ParticipantDateRegistrationField.tsx +0 -7
- package/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +0 -40
- package/src/ui-kit/FormField/Fields/PositionOrganizationField.tsx +0 -18
- package/src/ui-kit/FormField/Fields/RegionRetailField.tsx +0 -20
- package/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +0 -13
- package/src/ui-kit/FormField/Fields/SexField.tsx +0 -36
- package/src/ui-kit/FormField/Fields/ShareholderFlgField.tsx +0 -10
- package/src/ui-kit/FormField/Fields/SnilsField.tsx +0 -7
- package/src/ui-kit/FormField/Fields/TotalIncomeField.tsx +0 -13
- package/src/ui-kit/FormField/Fields/WagesField.tsx +0 -13
- package/src/ui-kit/FormField/SelectField.tsx +0 -42
- package/src/ui-kit/FormField/isEsiaAuthorize.ts +0 -6
- package/src/ui-kit/FormField/updateOrganizationFields.ts +0 -41
- package/src/ui-kit/Input/InputPopup.tsx +0 -60
- package/src/ui-kit/Input/useInputPopup.tsx +0 -106
- package/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +0 -89
- package/src/ui-kit/VerifyPhoneDialog/SubmitButton.tsx +0 -17
- package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.fixture.tsx +0 -20
- package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +0 -138
- package/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +0 -59
- /package/bundle/ui-kit/FormField/Fields/{consentToReceiveMaterialsField.d.ts → /320/241onsentToReceiveMaterialsField.d.ts"} +0 -0
- /package/dist/ui-kit/FormField/Fields/{consentToReceiveMaterialsField.d.ts → /320/241onsentToReceiveMaterialsField.d.ts"} +0 -0
- /package/lib/ui-kit/FormField/Fields/{consentToReceiveMaterialsField.d.ts → /320/241onsentToReceiveMaterialsField.d.ts"} +0 -0
- /package/mobile/bundle/ui-kit/FormField/Fields/{consentToReceiveMaterialsField.d.ts → /320/241onsentToReceiveMaterialsField.d.ts"} +0 -0
- /package/mobile/dist/ui-kit/FormField/Fields/{consentToReceiveMaterialsField.d.ts → /320/241onsentToReceiveMaterialsField.d.ts"} +0 -0
- /package/mobile/lib/ui-kit/FormField/Fields/{consentToReceiveMaterialsField.d.ts → /320/241onsentToReceiveMaterialsField.d.ts"} +0 -0
- /package/mobile/src/ui-kit/FormField/Fields/{consentToReceiveMaterialsField.tsx → /320/241onsentToReceiveMaterialsField.tsx"} +0 -0
- /package/src/ui-kit/FormField/Fields/{consentToReceiveMaterialsField.tsx → /320/241onsentToReceiveMaterialsField.tsx"} +0 -0
|
@@ -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),a=n("useState"),i=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:a,...i}=t||{},l=n?.slots?.default,r=a||l&&l();return e(Object.assign(i,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:a="p-xl",padding:i,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],i||a,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:a,children:i})=>{const l=v[n]||"h3";return o(l,{role:"heading",className:u("font-sans m-0",N[t],e),children:a||i})})),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:a,description:i,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:[a?o(w,{className:u("whitespace-pre-wrap",l),...h?.title,as:r||h?.title.as,title:a}):null,i?o(C,{size:h.descriptionSize,font:h.descriptionWeight,align:l,...p,children:i}):null]})})),I=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),T=[];function R(e,t,{className:n,...a}={}){const{key:i,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,...a},i):null}},i)}const B=[],P=(e,{key:t,ancestors:n=B,slotName:a=null,extraProps:i,renderProps:l=R,...r})=>{const s=i?(e,t)=>R(e,t,i):l;return(e||[]).map(((e,i)=>s(e,{...r,key:`${t||e.type}-${i}`,ancestors:r.parent?[...n||B,[r.parent,a]]:n},i)))};function E({block:e,options:t,children:n,extraProps:a,renderProps:i}){return n||(e&&t?P(e.blocks,{...t,parent:e,extraProps:a,renderProps:i}):null)}function D(){return D._impl()}D._impl=()=>({isReady:!1,href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),D.setup=e=>{D._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}}),M=e=>Boolean(e?.includes(":")),O=(e,t)=>Boolean(e&&!M(e)&&(!t||"_self"===t)),z=e=>Boolean(e?.startsWith("#")),V=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/").replace(/^(.+):\//,"$1://").replace(/^file:/,"file:/").replace(/\/(\?|&|#[^!])/g,"$1").replace(/\?/g,"&").replace("&","?"),F=e=>t=>Boolean(e&&t&&e.startsWith(t)&&("/"===t||e===t||"/"===e[t.length]));var L=Object.freeze({__proto__:null,isURL:M,isLocalURL:O,isHash:z,withoutQuery:e=>(e??"").replace(/\?.*/,"").replace(/\/$/,""),joinPath:V,hasPrefix:F});const $="/api/",j=`${$}v1/storage`,U=[A.CDN,$],q=e=>(t,n)=>{if(W(t))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`${j}/${t}/attachment`;const a=t?.startsWith("/");return V(F(t)(n)?"":n,a?"/":(i=e.pathname,i?.split("/").slice(0,-1).join("/")),t);var i},W=e=>!e||M(e)||z(e)||U.some(F(e)),H={"":"",normal:"",color:"text-primary-main",black:"text-black",white:"text-black",gray:"text-gray"},Y={small:"16",medium:"24",large:"48",xl:"78"},G=d((({className:e="",imageClassName:t="",name:n="",alt:a=`Иконка ${n}`,title:i=a,iconVersion:l="color",size:r,width:s=r&&Y[r],height:d=s})=>{const m=D(),h="normal"===l?`${n}.svg`:`sprites.svg#${n}`,p=q(m)(V(A.CDN,"/icons/",h));return"normal"===l?o("img",{className:e,style:K(e,d),src:p,alt:a,title:i,"aria-hidden":"true",width:s,height:d}):o(X,{className:e,children:c("svg",{className:u(H[l],{"w-full h-full":!s,invert:"white"===l},t),width:s,height:d,"aria-hidden":"true",children:[i?o("title",{children:i}):null,a?o("desc",{children:a}):null,o("use",{href:p,xlinkHref:p})]})})})),K=(e,t)=>{return e?.includes("h-")?{}:{height:(n=t,n&&!/\D/.test(n)?`${t}px`:t),width:"auto"};var n},X=d((({className:e,children:t})=>e?o("div",{role:"img",className:e,children:t}):t)),J=new Proxy({_:{},setup(e){this._=e}},{get:(e,t)=>e._[t]||e[t]});function Z(e=""){try{return new URL(e).pathname}catch(e){return""}}const Q=e=>t=>{const n=t?.startsWith("/wcms-resources")?"":Z(J.SITE_URL);return t&&!M(t)?q(e)(t,n):t},ee=(e,t)=>e?.media&&t?.media?e.media-t.media:0,te=d((({className:e="",image:t,imageClassName:n=""})=>{const a=D();return c("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(ee).map((({src:e,format:n,media:i},l)=>o("source",{srcSet:Q(a)(e),type:ae(n),media:i?`(max-width: ${i}px)`:"",width:t?.size?.width,height:t?.size?.height},`${l}_${e}`))):null,t?.src?ne({...t,src:Q(a)(t.src)},n):null]})})),ne=(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}),ae=e=>e?`image/${String(e)}`:void 0,ie=d((({className:e="",image:t,imageClassName:n="",...a})=>t?.src||t?.icon?t.icon?o(G,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...a}):o(te,{className:e,imageClassName:n,image:t}):null)),le={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","":""},re="bg-main-divider text-main-disabled",se={primary:re,secondary:re,white:re,link:"",transparent:"",gray:re,"":""},oe="text-center font-sans select-none",ce={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","":""},de=({className:e,rounded:t,version:n})=>[oe,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?le[n]:"",t?"rounded-full":"rounded-md",e].join(" "),me=e=>me._impl(e);function ue(e,t){const n=s({});return r((()=>new Proxy({},{get:(a,i)=>(n.current||={},n.current[i]||=n=>e.fire(t,{...n??{},type:i}),n.current[i])})),[e,t])}me._impl=e=>e,me.setup=e=>{me._impl=e};class he{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 pe=new he,ge=()=>ue(pe.emitter,"dialog");function fe(){const e=D(),{closeAll:t}=ge();return n=>{const a=q(e)(n.href);return{...n,href:a,"aria-label":n.text,onClick:me((i=>{n.onClick?.(i);const l=Z(J.SITE_URL);xe(a,n.target,l)&&(t(),i?.preventDefault(),e.push(((e,t="")=>e?.replace(t,"")||"/")(a,l)))}))}}}const xe=(e,t,n)=>O(e,t)&&!J.SUB_PORTALS?.split(",")?.some(F(e))&&F(e)(n||"/"),ye=e=>{try{return Array.isArray(e)&&e.length?{"data-aspects":JSON.stringify(e)}:{}}catch(e){return{}}},be=d((e=>{const{text:t,aboveText:n,appendLeft:a,appendRight:i,version:l="primary"}=e,r=Ne(e)&&"hidden lg:block";return c("div",{className:u(ve(e),"flex gap-xs"),children:[a?o("div",{className:u(r,ce[l]),children:a}):null,Ne(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,i?o("div",{className:u(r,ce[l]),children:i}):null]})})),ve=e=>{const{version:t,aboveText:n,rounded:a}=e;if("link"===t)return"";const i=""+(n?"py-2.5 px-9":"py-4 px-9");return u("group/btn items-center justify-center",Ne(e)?i:"h-12 w-12 m-auto",{"rounded-full":a})},Ne=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),we=({className:e,rounded:t,version:n})=>["inline-block",oe,n?se[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Ce=d((({disabled:e,children:t,method:n="LINK",href:a,...i})=>{const r=(({method:e,href:t})=>l((n=>{if("POST"!==e||!t)return;n.preventDefault(),n.stopPropagation();const{origin:a,pathname:i,searchParams:l}=new URL(t||""),r=document.createElement("form");r.setAttribute("method","POST"),r.setAttribute("action",[a,i].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()}),[e,t]))({method:n,href:a}),s=fe()({onClick:r,href:a,...i}),c=t??o(be,{...s});return o(e?ke:Se,{...s,children:c})})),Se=d((({className:e="",href:t,rel:n,target:a,ariaLabel:i,version:l,rounded:r,onClick:s,type:c,data:d,children:m,text:u})=>o("a",{className:de({className:e,version:l,rounded:r}),href:t,rel:n,target:a,"aria-label":i||`Ссылка на ${u}`,role:t?"link":"button",onClick:s,type:c,...ye(d),children:m}))),ke=d((({className:e,ariaLabel:t,version:n,rounded:a,children:i})=>o("button",{type:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:we({className:e,rounded:a,version:n}),children:i})));function Ie({version:e,handleClick:t,text:n="Вернуться назад",alwaysVisible:a=!1}){if(!n)return null;const i="primary"===e?"white":"black",l="primary"===e?"bg-primary-main":"bg-white";return c("div",{className:u(a?"flex":"hidden sm:flex","items-center gap-s"),children:[o("div",{className:u(de({className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",rounded:!0}),l),onClick:t,children:o(ie,{className:"w-4 h-4",image:{icon:"ArrowLeftIcon",iconVersion:i}})}),o(Ce,{version:"link",className:"group-data-secondary:text-white",text:n,ariaLabel:n,onClick:t,type:"button"})]})}const Te=()=>{const[e,t]=a(true);return i((()=>{const e=globalThis.matchMedia?.("(max-width: 1024px)"),n=()=>{t(Boolean(e?.matches))};return e?.addEventListener("change",n),e?.matches&&t(!0),()=>{e?.removeEventListener("change",n)}}),[]),e},Re={start:"@xl:self-start",center:"@xl:self-center",end:"@xl:self-end"},Be=(e,{className:t,imageAlign:n})=>e?o("div",{className:u("shrink-1/2 justify-self-center",n&&Re[n],t),children:e}):null,Pe=d((({className:e,version:t="primary",defaultPadding:n,padding:a="",title:i,buttons:r,leftImage:s,rightImage:d,imageAlign:m,insetTitle:h,isImageAlwaysOnRight:p=!1,isImageSecondary:g=!1,backwardButton:f,children:x,...y})=>{const b=Te(),v=D(),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",a||n,e),children:[C&&Ie({version:t,handleClick:N,text:w}),i?o("div",{className:"relative h-full",children:i}):null,c("div",{className:u("grow relative flex flex-col @xl:flex-row gap-3xl w-full",{"self-start @xl:w-auto":s}),children:[Be(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]}),De(E({...y,extraProps:{className:"@container-normal"}})),Be(d,{className:u("@xl:justify-self-end @xl:col-start-2",{[Ee(p)]:r,"col-start-2 self-center":p,"hidden @xl:block":g}),imageAlign:m}),r?o("div",{className:"self-end",children:r}):null]})]})]})})),Ee=e=>u(e?"row-span-2":"@xl:row-span-2"),De=e=>e?.length?o("div",{className:"flex items-start justify-end",children:e}):null,_e=(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(ie,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,Ae=d((({__html:e="",richVersion:t="",itemSize:n="list-m",isDotted:a=!0,children:i})=>e||i?o("div",{"data-component":"rich-text-container",children:o("div",{className:u(t,n,"md-container group-data-secondary:text-white group-data-gray:text-secondary-text",a?"":"without-dots"),dangerouslySetInnerHTML:e?{__html:e}:void 0,children:i})}):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,Oe=d((({children:e,...t})=>o("span",{className:u("font-sans",Object.values(t)),children:e}))),ze=(e,t)=>e?o(Oe,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,Ve=(e,t)=>["label"in e?ze(e.label,t):null,"description"in e?o("span",{className:e.descriptionClassName,children:Me(e.description,t)},String(t)):null,"__html"in e?o(Ae,{...e},`rte-${t}`):null],Fe=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?_e(n.icon,t):null,o("div",{children:Ve(n)})]}))),Le=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(Fe,{benefitsVersion:t,...e},String(n))))}):null)),$e=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(Ve)}):null)),je=d((({isTabularBenefits:e,...t})=>o(e?$e:Le,{...t}))),Ue=e=>Boolean(e?.src||e?.icon),qe=(e,{className:t,buttonClassName:n,isVertical:a}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?o("div",{className:u("flex",a?"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(We(n))}):null,We=(e="")=>(t,n)=>{const{text:a,icon:i,iconRight:l,version:r,...s}=t||{},c=He(i,r),d=He(l,r);return a||i?.icon?o(Ce,{className:u("basis-full @lg:basis-auto",e),appendLeft:Ye({...i,iconVersion:c}),appendRight:Ye({...l,iconVersion:d}),version:r,text:a,...s},n?String(n):""):null},He=(e,t="secondary")=>{const n="secondary"===t?"color":"white";return e?.iconVersion||n},Ye=e=>Ue(e)&&o(ie,{image:e,width:String(e?.size?.width||24),height:String(24)}),Ge=(e=0,{fixed:t}={})=>(n=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:t?e:0,maximumFractionDigits:e}).format(Number(n)||0),Ke=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(Xe)}):null)),Xe=({label:e,amount:t,unit:n},a)=>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(Oe,{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:[Ge(2)(t)," ",n||"₽"]}):null]},String(a)),Je=d((({className:e,tags:t})=>t?.length?o("div",{className:u("flex flex-wrap gap-xs",e),role:"list",children:t.map(Ze)}):null)),Ze=(e,t)=>o("div",{className:"p-xs border-solid border rounded-md border-gray",role:"listitem",children:o(Oe,{size:"text-m",font:"font-light",children:e})},String(t)),Qe={XXL:"list-l",XL:"list-l",L:"list-m",M:"list-m",S:"list-s",XS:"list-s"},et=d((({className:e,padding:t,defaultPadding:n,title:a,description:i,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 R=b?.src?o(ie,{image:b}):null,B=o(k,{title:a,description:i,headlineVersion:l,align:r,isEmbedded:!0}),P=u?.filter((e=>"__html"in e||"label"in e||"description"in e));return o(Pe,{className:e,padding:t,defaultPadding:n,...g?{title:B}:{insetTitle:B},...tt(R,N),isImageSecondary:C,imageAlign:v,isImageAlwaysOnRight:w,buttons:qe(y),backwardButton:S,...T,children:c("div",{className:"flex flex-col sm:gap-xl gap-4xl",children:[P?.length?o(je,{benefitsVersion:s,isTabularBenefits:d,benefits:P}):null,h?o(Ae,{richVersion:p,__html:h,isDotted:m,itemSize:Qe[l]}):null,I,f?.length?o(Ke,{priceList:f}):null,nt(x)]})})})),tt=(e,t)=>t?{rightImage:e}:{leftImage:e},nt=e=>e?.length?o(Je,{tags:e}):null;class at{_;constructor(e){this._=e}of(e){return new this.constructor(e instanceof at?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 it=()=>!0,lt=(e,t)=>(...n)=>e(...n)&&t(...n),rt=(...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 st=e=>Boolean(e&&Array.isArray(e)),ot=e=>Boolean(e&&"object"==typeof e&&!st(e)),ct=e=>e;function dt(e){return e instanceof at?e._:e}class mt extends at{from(e){return this.of(e.map(((e=ct)=>([,t])=>e(t))(dt)))}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(st(this._)?Array.from({length:Math.max(this._.length,Number(e)+1)},((n,a)=>a===e?t:this._[a])):Array.from({length:Number(e)+1},((n,a)=>a===e?t:void 0)))}}class ut extends at{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 ht extends at{from(e){return this.of(Object.fromEntries(e.map((([e,t])=>[e,dt(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 pt extends at{proto=rt([e=>st(this._)||"number"==typeof e,()=>mt.prototype],[e=>ot(this._)||"string"==typeof e,()=>ht.prototype],[it,()=>ut.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 gt=e=>e instanceof at?e:new pt(e),ft=e=>{const t=(t,...n)=>dt(e(gt(t),...n));return t.fn=e,t},xt=[],yt=e=>e instanceof Function?e:t=>e===t,bt=e=>(t,n,a=xt)=>gt(t).entries().reduce(((t,[n,i])=>bt(e)(i,t,a.concat(n))),e(n,[a,gt(t)])),vt=ft(((e,[t,n])=>{const[a,...i]=t;return e.set(a,i.length?vt(e.get(a),[i,n]):n)})),Nt=ft(((e,t)=>t.reduce(vt.fn,e))),wt=e=>bt(((e,[t,n])=>Ct(n)?[...e,[t,dt(n)]]:e))(e,[]),Ct=e=>0===e.size();ft(((e,t=xt)=>t.reduce(((e,t)=>e.get(t)),e)));const St=ft(((e,[t,...n])=>n.length?e.set(t,St(e.get(t),n)):e.filter((([e])=>e!==t)))),kt=(It=["$ref"]).map(((e,t)=>n=>yt(e)(n[t+n.length-It.length]))).reduceRight(lt,it);var It;const Tt=(e,t)=>(e=>e.includes("#")?e.substring(e.indexOf("#")+1).split("/").filter(Boolean):[])(t).reduce(Rt,e),Rt=rt([st,(e,t)=>e[parseInt(t,10)]],[ot,(e,t)=>e[t]],[it,ct]),Bt=(e,t)=>((e,t={})=>n=>Nt(t,wt(n).map((t=>e(t)))))((([e,n])=>{return kt(e)?[(a=e,a.slice(0,-1)),Tt(t(n),n)]:[e,n];var a}))(e),Pt=e=>wt(e).filter(((e=ct)=>([t])=>e(t))(kt)),Et=e=>{return t=Pt(e).map((([,e])=>e)),[...new Set(t)];var t};async function Dt(e,t){try{return e?await _t(e,t):null}catch(e){console.error(e)}return null}const _t=async(e,t)=>(await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}})).json(),At=e=>[...new Set(e)],Mt={},Ot=["/portal-resources"],zt=(e,t)=>Bt(e,(e=>t?.[e])),Vt=(e,t)=>{const n=Et(e),[l,r]=a({});return i((()=>{Ft(n).then(r)}),[n.join()]),n.length?zt(e,{...t,...l}):e},Ft=async(e,t={})=>{if(e.length){const n=await(async e=>Object.fromEntries((await Promise.allSettled(At(e).filter((e=>!Ot.some((t=>e.startsWith(t))))).map((async e=>[e,Mt[e]||=await _t(e)])))).filter((e=>"fulfilled"===e.status)).map((({value:e})=>e))))(e),a={...t,...n},i=Object.entries(n).flatMap((([,e])=>Et(e)));return i.length?Ft(i,a):a}return t};function Lt(e,t={}){const n=d((t=>{const n=Vt((({block:e,options:t,className:n,defaultPadding:a,padding:i,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 $t=Lt((({className:e,padding:t,defaultPadding:n,...a})=>o(g,{className:u("overflow-hidden flex flex-col gap-3xl box-border",e),padding:"p-0",...a,children:o(et,{defaultPadding:n||"p-6xl",padding:t,className:"grow h-full",...a})})),{childrenTypes:["UnitBlock"]}),jt=d((e=>{const{items:t}=e.options?.page?.adSourceBook??{},n=r((()=>Ut(0,t?.length)),[t]),a=t?.[n];return a?o($t,{suppressHydrationWarning:!0,...a,...e}):o(g,{...e,children:o(f,{})})})),Ut=(e=0,t=0)=>Math.floor(Math.random()*(t-e)+e),qt=(e,t=!1)=>{if("string"==typeof e)return e.split("-").reverse().join(".");{const n=String(e.getDate()).padStart(2,"0"),a=String(e.getMonth()+1).padStart(2,"0"),i=String(e.getFullYear());return t?`${i}-${a}-${n}`:`${n}.${a}.${i}`}},Wt=e=>e?.replace(/[^+\d]/g,""),Ht="/api/v1";const Yt=e=>e?{phone:Wt(e)}:{},Gt=(e,t="birthday")=>e?{[t]:qt(e)}:{},Kt=(e,t=!0)=>({[t?"regionBranch":"region"]:e}),Xt=(e,t=!0)=>({[t?"email":"mail"]:e}),Jt=(e="")=>e&&"+7 ("!==e?{secondaryPhoneNumber:Wt(e)}:{},Zt=({aspectsAttributes:e,aspects:t,ev:n})=>{for(const{aspectName:a,params:i}of e??[])t[a??""]?.(n,i)};function Qt(){return Qt._impl()}Qt._impl=()=>({assign:(e,t)=>{globalThis.open(e,t||"_self")},get origin(){return globalThis.location.origin},get href(){return globalThis.location.href}}),Qt.setup=e=>{Qt._impl=e};const en="rshb-query-params";function tn(){const e=globalThis.location?.search||globalThis.sessionStorage?.getItem(en)||"";return e&&globalThis.sessionStorage?.setItem(en,e),e}const nn=e=>{const t=e.target?.closest("a"),n=Qt();if(M(t?.href)&&!t?.href?.startsWith(n.origin)){e.preventDefault(),e.stopPropagation();const a=(e=>{const t=tn();if(!M(e)||!t)return e;const n=new URL(e);for(const[e,a]of new URLSearchParams(t))n.searchParams.set(e,a);return n.toString()})(t?.href)||t?.href;a&&n.assign(a,t?.target)}};function an(){return an._impl()}function ln(e=!1){const[t,n]=a(e),i=l((()=>n(!0)),[]),r=l((()=>n(!1)),[]),s=l((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:i,setFalse:r,toggle:s}]}an._impl=()=>({forwardQuery:nn}),an.setup=e=>{an._impl=e};const rn=e=>t=>t&&Object.entries(e??{}).flatMap((([e,n])=>n?n(t[e]):[]))||[],sn=e=>!e?.length,on=e=>t=>n=>e(n)?[]:[t],cn={},dn=[];const mn=(e,t)=>e&&t&&(e===t||Object.keys({...e,...t}).every((n=>e[n]===t[n])));function un(e,{resetOnSubmit:t,formValidator:n,normalizer:o,onChange:c,onSubmit:d}={}){const[m,u]=function(e,t,n){const[r,s]=a(e),o=l((e=>s((a=>{const i=e instanceof Function?e(a):e,l=t?t(i):i,r=mn(i,l)?i:l;return!mn(a,r)&&n?.(r),r}))),[t,n]);return i((()=>{t&&s(t)}),[t]),[r,o]}(e,o,c),[h,{setTrue:p,setFalse:g}]=ln(!1),f=s({}),[x,{isValid:y,errors:b}]=function(e,t){const n=r((()=>t?.(e)??cn),[t,e]),a=r((()=>rn(n)(e)??dn),[n,e]),i=sn(a);return[n,{isValid:i,errors:a}]}(m,n),v=l(((e,t={})=>{const{parse:n,format:a,onChange:i}=t,l=m[e],r=h||f.current?.[String(e)],s=t?.validator??x[e],o=r&&s?s(l):[];return{value:a?a(l):l,isDirty:r,errors:s&&o,error:o[0],onChange:t=>{f.current||={},f.current[String(e)]=!0;const a=n?n(t):t;i?.(a),u((t=>({...t,[e]:a})))}}}),[m,h,x,u]),N=l((e=>{f.current=e,u(e)}),[u]),w=l((()=>{f.current={},g(),u(e)}),[e,u]),C=l((e=>{e.preventDefault(),y?(t&&w(),d?.(m,e)):p()}),[t,m,y,w,d]);return[m,{errors:b,field:v,update:N,reset:w,onSubmit:C}]}const hn=d((e=>{const{className:t,title:n,children:a,...i}=e;return o(g,{className:t,defaultPadding:"p-6xl",...i,children:c("div",{className:"container space-y-lg",children:[n?o(w,{headingType:"h3",title:n,className:"@xl:text-center"}):null,a]})})}));function pn(e,t={}){const{open:n,close:a,...i}=ge();return{open:l(((i,l={})=>n({dialog:o(e,{...t,...i,onClose:()=>{a(),i.onClose?.()}}),...l})),[e,n,a]),close:a,...i}}function gn(e,t,n,a){i((()=>{if(e&&n)return e.addEventListener(t,n,a),()=>{e.removeEventListener(t,n,a)}}),[e,t,n])}function fn(e){const t=s(null),n=l((n=>{t&&t.current&&n.target instanceof Node&&!t.current.contains(n.target)&&e()}),[e]);return gn(globalThis.document,"click",n),t}const xn=({label:e,errors:t})=>e&&t?`${e}*`:e,yn=()=>{},bn="border border-solid outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text rounded",vn=e=>e?bn:"border-error",Nn=e=>e?o(Oe,{size:"text-m",color:"text-primary-text",font:"font-light",children:e}):null,wn=d((({key:e,className:t,id:n,name:a,type:r="text",label:d,placeholder:m,value:h="",valid:p=!0,pattern:g,autoFocus:f=!1,isTextarea:x=!1,disabled:y=!1,children:b,onChange:v,onFocus:N,onBlur:w})=>{const C=s(null),S=l((e=>{const t=(e.target?.value??"").trimStart();v&&v(t)}),[v]);i((()=>{f&&C.current?.focus()}),[f,C]);const k=b?"pr-3xl":"",I=vn(p),T=d??a??n;return c("div",{className:u("relative",t),children:[c("label",{className:"space-y-xs",children:[Nn(d),x?o("textarea",{className:u("block resize-y min-h-24",Cn,I),id:u("textarea",n),value:h,name:a||n,placeholder:m,disabled:y,"aria-label":T,onChange:S,onFocus:N,onBlur:w},e):o("input",{ref:C,className:u("h-14",Cn,k,I),id:n,type:r,value:h,name:a||n,placeholder:m,pattern:g,disabled:y,"aria-label":T,onChange:S,onFocus:N,onBlur:w},e)]}),b]})})),Cn="w-full border rounded-md text-primary-text outline-none p-m",Sn=e=>o("div",{className:"h-6",children:e?o(Oe,{size:"text-xs",font:"font-light",color:"text-error",children:e}):null}),kn=e=>e?.value||"",In=e=>{const{url:t,query:n,queryPrefix:a,requestData:i={},responseItemHandler:l=kn}=e,r=(s=l,e=>(e?.suggestions||[]).map((e=>{const t=s(e);return{...e,processedValue:t}})));var s;const o=`${a?`${a}, `:""}${n}`;return fetch(`${Ht}/suggestions/${t}`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:10,...i,query:o})}).then((e=>e.json())).then(r)},Tn={url:"suggest/address"},Rn={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:Tn,addressFact:Tn,organizationAddress:Tn,addressCourier:Tn},Bn=()=>ue(pe.emitter,"popup"),Pn=d((({options:e,container:t,onChange:n})=>{const[l,r]=a(-1),s=t=>{const a=e.length-1;"ArrowDown"===t.key?r(l<a?l+1:0):"ArrowUp"===t.key?r(l>0?l-1:a):"Enter"===t.key&&e[l]&&(t.preventDefault(),n(e[l]))};return i((()=>(t.addEventListener("keydown",s),()=>t.removeEventListener("keydown",s))),[l]),o("div",{className:"bg-white text-l overflow-y-auto overflow-x-hidden rounded-md shadow-2xl",role:"list",children:e?.map(((e,t)=>o("div",{className:u("flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative",{"bg-main-divider":l===t}),role:"listitem",onMouseDown:()=>n(e),children:o("span",{className:"min-h-6",children:e.processedValue})},t.toString())))})}));function En({isOpen:e,value:t,name:n,onChange:c,onDaDataChange:d,daDataQueryPrefix:m}){const u=s(t),h=s(t),[p,g]=a([]),f=Bn(),x=Rn[n],y=l((()=>{h.current=t,f.close()}),[t]),b=l((e=>{y(),h.current=e.processedValue,c?.(e.processedValue),d?.(e)}),[y,c]),v=s(null),N=r((()=>async e=>{if(!x)return;const t=await In({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 a=(...i)=>{a.dispose(),n=setTimeout((()=>{e(...i)}),t)};return a.dispose=()=>{n&&clearTimeout(n)},a})(N,300)),[N]);return i((()=>{if(!e||!v.current||h.current===t)return void y();const n=v.current,{top:a,left:i,width:l,height:r}=n.getBoundingClientRect();t&&u.current!==t&&(w(t),u.current=t),f.open({popup:o(Pn,{options:p,container:n,value:t,onChange:b}),top:a+globalThis.scrollY+r,left:i,width:l})}),[e,p,t,b]),v}const Dn=d((({className:e,label:t,value:n="",placeholder:a,error:r,errors:s,onChange:d=yn,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}]=ln(),k=fn(C),I=l((e=>{v&&!w&&S(),b?e.length<=b&&d(e):d(e)}),[v,w,d]);i((()=>{y&&n&&d(_n(n))}),[n]);const T=En({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(wn,{disabled:N,type:g||"text","aria-label":t,label:xn({label:t,errors:s}),valid:Boolean(!r),value:n,onChange:I,onBlur:h,isTextarea:p,placeholder:An(a,s,t)})}),Sn(r)]})})),_n=(e="")=>e.replace(/[^\d]+/g,""),An=(e,t,n)=>t&&!n?`${e}*`:e,Mn=e=>e?.text||e?.key||"",On=(e,t)=>e?.length&&t?.trim()?e.filter((e=>e.text?.toLocaleLowerCase().includes(t?.trim().toLocaleLowerCase()))):e,zn=d((({popupRef:e,options:t,value:n,query:a,onChange:i,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:On(t,a).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(),i&&i(e)},children:[o("span",{className:"min-h-6",children:Mn(e)}),o(G,{name:"DoneSimpleIcon",width:"16",height:"16",iconVersion:l,className:u("absolute right-4 pt-3xs",{hidden:e.key!==n?.key})})]},e.key)))}):null));const Vn=d((({className:e,label:t,options:n=[],value:r,valid:d=!0,isBorder:m=!0,placeholder:h="",isSearch:p=!1,disabled:g=!1,iconVersion:f="black",onChange:x})=>{const[y,{setFalse:b,setTrue:v}]=ln(),[N,w]=a(""),C=$n(g,n.length),S=y&&!C,k=l((()=>{C||v()}),[C]),I=l((()=>{w(""),b()}),[]),T=function({isOpen:e,options:t,value:n,query:a,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=fn(u);return i((()=>{if(!e||!p.current)return;const i=p.current,{top:l,left:r,width:s,height:c}=i.getBoundingClientRect();m.open({popup:o(zn,{popupRef:g,options:t,value:n,query:a,onChange:h,iconVersion:d}),top:l+window.scrollY+c,left:r,width:s})}),[e,t,n,a,h]),p}({isOpen:y,options:n,value:r,query:N,onChange:x,onClose:I,iconVersion:f});return c("div",{className:u("space-y-xs",e),children:[Nn(t),c("div",{className:u("relative",S?"z-20":"z-10"),ref:T,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",Ln(m,d,C)),onClick:S?I:k,children:[o("p",{className:"line-clamp-2 text-ellipsis",children:Mn(r)||h}),Fn(S,f)]}),p&&S?o("div",{className:u("absolute top-0 w-full z-20"),children:o(wn,{type:"text",value:N,autoFocus:!0,disabled:C,onChange:w})}):null]})]})})),Fn=(e,t)=>o(G,{className:u("absolute right-0 flex self-center",{"rotate-180":!e}),iconVersion:t,name:"ArrowUpIcon",width:"16",height:"16"}),Ln=(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,jn=d((({className:e="",label:t,error:n,errors:a,...i})=>c("div",{className:e,children:[o(Vn,{...i,valid:!n,label:xn({label:t,errors:a})}),Sn(n)]}))),Un=[{text:"Торговый эквайринг",key:"trade"},{text:"СБП-эквайринг",key:"sbp"},{text:"Интернет-эквайринг",key:"internet"},{text:"Все виды эквайринга",key:"all"}],qn=d((({field:e,input:t})=>o(jn,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Un,...e(t?.name??"")}))),Wn=(e="")=>Boolean("trade"===e||"all"===e),Hn=e=>null!=e,Yn=new Map,Gn=(e,t=Yn)=>n=>{const a=Xn(n),i=t.get(a);if(a&&Hn(i))return i;const l=e(...n);return a&&Hn(l)&&t.set(a,Promise.resolve(l)),l},Kn=e=>Boolean(e?.every((e=>Array.isArray(e)?Kn(e):!e||"string"==typeof e))),Xn=e=>Kn(e)?e.toString():"",Jn=e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]);function Zn(e,t,{fallback:n,cache:l}={}){const s=r((()=>Qn(e)),[e]),[o,c]=a(void 0),[d,m]=a(void 0);i((()=>{if(!s.some(Hn))return;let e=!1;const n=(t,n)=>{e||(c(t),m(n))};return(async()=>{try{n(await Gn(t,l)(s))}catch(e){n(void 0,e)}})(),()=>{e=!0}}),[t,l,s]);const u=n&&Jn(s)&&n[s[0]];return{data:!o&&u?u:o,error:d,mutate:()=>Promise.resolve(void 0)}}function Qn(e){return Array.isArray(e)?e:e instanceof Function?Qn(e()):[e]}const ea=`${Ht}/branches`,ta=[];const na=async e=>await Dt(e,{method:"GET"})||ta;function aa(e=!1){const{data:t}=Zn(`${Ht}${e?"/premiumBranchesByRegions":"/branchesByRegions"}`,_t);return Array.isArray(t)?t:[]}const ia=(e="")=>"ULTRASERVICE"===e,la=d((({field:e,input:t,params:n})=>{const a=ia(n?.typeForm),l=e("region"),r=l?.value?.key,s=l?.value?.text,c=a?aa(a)?.find((e=>e?.region===s))?.branches:function(e){const{data:t}=Zn(e?`${ea}?regionCode=${e}`:null,na);return t||ta}(r)?.filter((e=>e?.address));return i((()=>{""!==l?.value?.key&&e?.("addressBranch")?.onChange?.("")}),[l?.value]),o(jn,{label:"Отделение",placeholder:"Выберите отделение",options:(c||[]).map((({address:e=""})=>({key:e,text:e}))),...e(t?.name??""),isSearch:!0})})),ra=(e,{normalize:t,format:n})=>{const{value:i,onFocus:r,onBlur:s,onChange:o}=e,[c,d]=a(!1),m=l((e=>{d(!0),r&&r(e)}),[]),u=l((()=>{d(!1),o&&o(t(i)),s&&s()}),[o,i]);return{value:c||!n?i:n(i),onFocus:m,onBlur:u}},sa=(e,t,n)=>Math.max(t,Math.min(e,n));function oa(e){const t=(e||"").replace(/\D/g,""),n=parseInt(t,10);return Number.isNaN(n)?0:n}function ca({list:e=[],min:t,max:n,step:a,value:i=e[0]||t,disabled:l,onChange:r}){const s=e.length?e.indexOf(i):i,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:a,value:s,disabled:l,onChange:t=>{const n=oa(t.target?.value),a=e.length?e[n]:n;r&&r(a||0)}})})]})}const da=1,ma=100,ua=d((e=>{const{className:t,title:n,items:a=[],list:i=[],min:r=(i.length?0:da),max:s=(i.length?i.length-1:ma),step:d=1,value:m=i[0]||r,disabled:h=!1,onChange:p}=e,g=ra(e,{normalize:(e=0)=>i.length?ha(i)(e):sa(e,r,s),format:Ge()}),f=l((e=>{p&&p(oa(e.target?.value))}),[p]);return c("div",{className:t,children:[c("label",{className:"block relative",children:[n?o(Oe,{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",bn,"disabled:border-gray disabled:bg-main-divider"),disabled:h,onChange:f,...g}),ca({list:i,min:r,max:s,step:d,disabled:h,value:m,onChange:p})]}),pa(a)]})})),ha=e=>t=>e.reduce(((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)),pa=e=>o("div",{className:"flex justify-between my-xs",children:e.map(((e,t)=>o(Oe,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),ga=["От 1 000 ₽","До 1 000 000 000 ₽"],fa=d((({field:e,input:t})=>o(ua,{title:"Сумма, ₽",items:ga,min:1e3,max:1e9,...e(t?.name??"")}))),xa=d((({field:e,input:t})=>o(Dn,{label:"Годовая выручка, ₽",...e(t?.name??"")}))),ya=[{key:"client",text:"Клиент"},{key:"representative",text:"Представитель клиента"}],ba=d((({field:e,input:t})=>o(jn,{label:"Тип обратившегося",...t,options:ya,...e("applierType")}))),va=d((({field:e,input:t})=>o(Dn,{label:"ФИО или должность обслуживавшего Вас сотрудника Банка",...e(t?.name??"")}))),Na=({today:e,firstDayOfWeek:t,totalDays:n,currentMonth:a,currentYear:i,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(i,a,d),n=wa(t,e),c=Ca(t,l,r);u.push(o("td",{children:o("div",{className:Sa(n,c),onClick:()=>!c&&s(t),children:d})},`day-${d}`)),d++}c.push(o("tr",{children:u},`row-${m}`))}return c},wa=(e,t)=>t&&e.toDateString()===t.toDateString(),Ca=(e,t,n)=>t&&e.getTime()<t.getTime()||n&&e.getTime()>n.getTime(),Sa=(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"),ka=["Пн","Вт","Ср","Чт","Пт","Сб","Вс"],Ia=d((({today:e,currentMonth:t,currentYear:n,min:a,max:i,onDateSelect:l=yn})=>{const{firstDayOfWeek:s,totalDays:d}=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:ka.map(((e,t)=>o("th",{className:"p-s",children:e},String(t))))})}),o("tbody",{children:Na({firstDayOfWeek:s,today:e,totalDays:d,currentYear:n,currentMonth:t,min:a,max:i,onDateClick:l})})]})})),Ta=["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"];function Ra(e,t){const n=e.replace(/\D/g,"");if(""===n||n.length===t.length)return e;const a=[...t],i=a.findIndex(Ba),l=a.map(((e,t)=>Ea(e)?a.slice(0,t).filter(Ea).length:-1)),r=a.map(((e,t)=>Pa(e)?e:n.charAt(l[t])||e)),s=l.indexOf(n.length-1)+1;return r.slice(0,Math.max(i,s)).join("")}const Ba=e=>"_"===e,Pa=e=>/\d/.test(e),Ea=e=>Ba(e)||Pa(e),Da=1940,_a={name:"CalendarIcon",iconVersion:"black",width:"24",height:"24"},Aa=d((({setSelectedMonth:e,setSelectedYear:t,className:n,value:l,disabled:r,onChange:d,onClick:m})=>{const h=s(null),[p,g]=a(l||"");return i((()=>{g(l||"")}),[l]),i((()=>{Oa({inputValue:p,setSelectedMonth:e,setSelectedYear:t,onChange:d})}),[p]),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(Ra(t,"__.__.____"))},onBlur:()=>{Ma(p)?Oa({inputValue:p,setSelectedMonth:e,setSelectedYear:t,onChange:d}):g(l||"")},disabled:r}),r?null:o(G,{className:"mr-s",..._a})]})})),Ma=e=>{const[t,n,a]=e.split(".");if((e=>Number(e)>=Da&&Number(e)<=(new Date).getFullYear())(a)&&(e=>Number(e)>0&&Number(e)<13)(n)){const e=new Date(Number(a),Number(n)-1,1);let i=0;for(;e.getMonth()===Number(n)-1;)e.setDate(e.getDate()+1),i++;return Number(t)>0&&Number(t)<=i}return!1},Oa=({inputValue:e,setSelectedMonth:t,setSelectedYear:n,onChange:a})=>{if(Ma(e)){const{day:i,month:l,year:r}=(e=>{const[t,n,a]=e.split(".");return{day:Number(t),month:Number(n)-1,year:Number(a)}})(e);t(l),n(r),a?.(new Date(r,l,i))}},za=({handleChangeVisibleCalendar:e,value:t,valid:n,onChange:a,setSelectedMonth:i,setSelectedYear:l,disabled:r=!1})=>o(Aa,{onChange:a,disabled:r,onClick:e,value:t&&qt(t),setSelectedMonth:i,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")}),Va=Ta.map((e=>({key:e}))),Fa=Array.from({length:(new Date).getFullYear()-Da+1},((e,t)=>Da+t)).reverse().map((e=>({key:String(e)}))),La=(e,t)=>{const n=new Date(e,t,1);let a=0;for(;n.getMonth()===t;)a++,n.setDate(n.getDate()+1);return a},$a=({maxDateOfMonth:e,selectedYear:t,selectedMonth:n,value:a,onChange:i})=>{a&&i?.(new Date(t,n,Math.min(e,a.getDate())))},ja={name:"ArrowUpIcon",iconVersion:"black",width:"24",height:"24"},Ua={className:"min-w-32",iconVersion:"black",isBorder:!1},qa=d((({className:e="",label:t="",value:n,valid:r=!0,minDate:s,maxDate:d,disabled:m,onChange:h})=>{const[p,{setValue:g,setFalse:f}]=ln(!1),[x,y]=a(n?.getMonth()||(new Date).getMonth()),[b,v]=a(n?.getFullYear()??(new Date).getFullYear()),N=l((e=>{h?.(e),f()}),[h]),{handlePrevMonth:w,handleNextMonth:C,handleSelectMonth:S,handleSelectYear:k,monthsOptions:I,yearsOptions:T,handleChangeVisibleCalendar:R,ref:B}=(({onShowCalendar:e,showCalendar:t,selectedMonth:n,onMonthSelect:a,onYearSelect:i,selectedYear:r,onChange:s,value:o})=>{const c=fn(l((()=>t&&e(!1)),[t]));return{handleChangeVisibleCalendar:l((()=>e(!t)),[t]),handleNextMonth:l((()=>{n+1<=11?a(n+1):(a(0),i(r+1))}),[n]),handlePrevMonth:l((()=>{n-1>=0?a(n-1):(a(11),i(r-1))}),[n]),handleSelectMonth:l((({key:e})=>{a(Ta.indexOf(e));const t=La(r,Ta.indexOf(e));$a({maxDateOfMonth:t,selectedYear:r,selectedMonth:Ta.indexOf(e),value:o,onChange:s})}),[o]),handleSelectYear:l((({key:e})=>{i(Number(e)),o&&s?.(new Date(Number(e),n,o?.getDate()))}),[o]),monthsOptions:Va,yearsOptions:Fa,ref:c}})({onYearSelect:v,onMonthSelect:y,onShowCalendar:g,selectedYear:b,selectedMonth:x,showCalendar:p,onChange:h,value:n}),P=((e,t)=>{const[n,l]=a(!1);return i((()=>{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})(B,370);return c("div",{className:u("space-y-xs",e),ref:B,children:[Nn(t),c("div",{className:"relative",children:[za({handleChangeVisibleCalendar:R,value:n,valid:r,onChange:h,disabled:m,setSelectedMonth:y,setSelectedYear:v}),p&&!m?c("div",{className:u("absolute bg-white z-20 select-none",{"bottom-full":P}),children:[c("div",{className:"flex gap-s",children:[o("div",{className:"my-auto",onClick:w,children:o(G,{...ja,className:"-rotate-90 cursor-pointer"})}),o(Vn,{onChange:S,value:{key:Ta[x]},options:I,...Ua}),o(Vn,{onChange:k,value:{key:String(b)},options:T,...Ua}),o("div",{className:"my-auto",onClick:C,children:o(G,{...ja,className:"rotate-90 cursor-pointer"})})]}),o(Ia,{today:n,currentMonth:x,currentYear:b,min:s,max:d,onDateSelect:N})]}):null]})]})})),Wa=d((({className:e,label:t,error:n,errors:a,...i})=>c("div",{className:u("shrink-0 w-full",e),children:[o(qa,{label:xn({label:t,errors:a}),valid:Boolean(!n),...i}),Sn(n)]}))),Ha=d((({field:e,input:t})=>o(Wa,{label:t?.label||"Дата рождения",...e(t?.name??"")}))),Ya=d((({field:e,input:t})=>o(Dn,{label:"Количество объектов инкассации",isInteger:!0,...e(t?.name??"")}))),Ga=d((({field:e,input:t})=>o(Dn,{className:"col-span-2",...e(t?.name??""),placeholder:"Ваше сообщение",isTextarea:!0}))),Ka=d((({className:e,viewBox:t,fill:n="none",width:a,height:i,paths:l,...r})=>o("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:a,height:i,children:l.map((({d:e,fill:t,...n},a)=>{const i={...r,...n};return o("path",{d:e,fill:t||"currentColor",stroke:i.stroke,strokeLinecap:i.strokeLinecap,strokeLinejoin:i.strokeLinejoin,strokeWidth:i.strokeWidth,strokeMiterlimit:i.strokeMiterlimit},a)}))}))),Xa="appearance-none w-5 h-5 border-solid flex-none",Ja=[{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"}],Za=d((({className:e,value:t,text:n,disabled:a,isRadio:i,onChange:r})=>{const s=l((e=>{a||(e.preventDefault(),r&&r(!t))}),[r,a,t]),d=i?o("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):o(Ka,{paths:Ja,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",ei(a)),onClick:s,children:[o("div",{className:u(Xa,"m-0",i?"rounded-full border-2":ni(t),!a&&t?"border-primary-main":"border-gray",a?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:ti(i),"aria-checked":Boolean(t),"aria-disabled":Boolean(a),"aria-label":n}),t?d:null,Qa(n)]})})})),Qa=e=>e?o("div",{className:"ml-s",children:o(Oe,{size:"text-l",font:"font-light",children:e})}):null,ei=(e=!1)=>e?"cursor-not-allowed":"cursor-pointer",ti=(e=!1)=>e?"radio":"checkbox",ni=(e=!1)=>u("rounded border",{"bg-primary-main":e}),ai=d((({field:e,input:t})=>o(Za,{text:"Согласен на получение информационных и аналитических материалов по электронной почте",...e(t?.name??"")}))),ii=d((({field:e,input:t})=>o(Wa,{label:"Желаемая дата встречи",...e(t?.name??"")}))),li=d((({field:e,input:t})=>o(Dn,{label:"Электронная почта",...e(t?.name??""),...t}))),ri=[{key:"ULTRASERVICE",text:"Ультра"}],si=[{key:"Физическое лицо"},{key:"Юридическое лицо / ИП"}],oi=[{key:"phone",text:"Телефонный звонок"},{key:"email",text:"Электронное сообщение"}],ci=d((({field:e,input:t})=>o(jn,{label:"Способ получения ответа",options:oi,...e(t?.name??"")}))),di=d((({field:e,input:t})=>o(Dn,{label:"ФИО",...e(t?.name??""),...t})));function mi(e,t){for(const[n,a]of e.entries())null!=a?t.setItem(n,a):t.removeItem(n)}function ui(e,t){return mi(e,t),mi(t,e),e.bus.watch((({type:e,event:n})=>{null!=n?t.setItem(e,n):t.removeItem(e)}))}class hi{storage;bus;get size(){return this.storage?.length??0}constructor(e,t=new he){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)}}class pi{bus;store=new Map;get size(){return this.store.size}constructor(e=new he){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)}}const gi={};function fi(e,t=gi){const n=s(null),o=function(){const[,e]=a(0);return l((()=>e((e=>(e+1)%65536))),[])}();return i((()=>e.bus.watch((e=>{n.current?.has(String(e.type))&&o()}))),[e,o]),r((()=>new Proxy(t,{get:(t,a)=>(n.current||=new Set,n.current.add(a),e.getItem(a)),has:(t,a)=>(n.current||=new Set,n.current.add(a),e.hasItem(a)),set:(t,n,a)=>(e.setItem(n,a),!0),deleteProperty:(t,n)=>(e.removeItem(n),!0)})),[e])}const xi=new pi;function yi(e){return fi(xi,e)}ui(xi,new hi(globalThis?.localStorage));const bi=()=>yi(),vi=(e,t)=>{if(!t)return null;const n=Si(e),a=+t?.split(".")[0],i=+t?.split(".")[1];switch(a){case 1:return n("AGRICULTURE");case 35:return n("FUEL_AND_ENERGY");case 41:case 42:case 43:return n("CONSTRUCTION");case 46:case 47:return n("TRADE");case 55:case 79:return n("TOURISM");case 62:return n("TECHNOLOGY");case 63:return n("CONSULTING_SERVICE");case 64:return n("BANK");case 65:return n("INSURER");case 66:return n("FINANCIAL_INSTITUTIONS");case 72:case 74:return n("SCIENCE");case 80:return n("SECURITY");case 84:return n(i<22?"GOVERNANCE":22===i?"ARMY":"OTHER_SECTORS");case 85:return n("EDUCATION");case 86:return n("HEALTHCARE");case 87:return n("SOCIAL_SPHERE");default:return n(a>=10&&a<=33?"INDUSTRY":a>=5&&a<=9?"FUEL_AND_ENERGY":a>=49&&a<=53?"TRANSPORT":"OTHER_SECTORS")}},Ni=(e,t)=>{if(!t)return null;const[n]=[e?.find((e=>t<=Number(e.description)))].map((e=>({key:e?.key??"",text:e?.value??""})));return n},wi=(e,t)=>{const n=Si(e);return[40001,40002,71610].includes(t)?n("FOREIGN"):n("RUSSIAN")},Ci=(e,t,n)=>{const a=Si(e);return a("7725114488"===n?"RSHB":50102===t?"SOLE_TRADER":t>=75e3&&t<=75505&&75500!==t?"BUDGETARY":"COMMERCIAL")},Si=e=>t=>e.map((e=>({key:e.key,text:e.value}))).find((e=>e.key===t))??null,ki=(e,t)=>Boolean(e("esiaAccountTypeCd")?.value?.key)&&e(t).value,Ii=d((({field:e,input:t})=>{const n=t?.name||"addressRegistration",a=e(n).value,i=l((t=>{e?.(n)?.onChange?.(Ti(t))}),[]),r=l((t=>{e?.(n)?.onChange?.({apartment:"",city:"",district:"",fullAddress:t,fiasCode:"",house:"",locality:"",okatoRegionCode:"",postcode:"",region:"",regionCode:"",street:"",qc:"",qcComplete:"",qcHouse:""})}),[]);return o(Dn,{disabled:t?.filledByEsia&&ki(e,n),label:"Адрес",...e(n),value:a?.fullAddress,onChange:r,...t,onDaDataChange:i})})),Ti=e=>({apartment:e?.data?.flat,city:e?.data?.city,district:e?.data?.area_with_type,fullAddress:e?.unrestricted_value,fiasCode:e?.data?.fias_id,house:e?.data?.house,locality:e?.data?.settlement_with_type,okatoRegionCode:e?.data?.okato,postcode:e?.data?.postal_code,region:e?.data?.region,regionCode:e?.data?.region_kladr_id?e?.data?.region_kladr_id.substring(0,2):"",street:e?.data?.street,qc:e?.data?.qc,qcComplete:e?.data?.qc_complete,qcHouse:e?.data?.qc_house}),Ri=(e,t,n)=>{const{okved:a,okopf:i,inn:l}=Bi(n);t?.("legalForm")?.onChange?.(n.data?.opf?.short),t?.("organizationAddress")?.onChange?.(Ti(n.data?.address));const r={amountWorkers:Ni(e?.amountWorkers,n.data?.employee_count),employerActivities:vi(e?.employerActivities??[],a),organization:Ci(e?.organization??[],i,l),employerOrganization:wi(e?.employerOrganization??[],i)};for(const e in r)r[e]&&t?.(e)?.onChange?.(r[e])},Bi=e=>({inn:e.data?.inn??"",okopf:Number(e.data?.opf?.code),okved:e.data?.okved??""}),Pi=d((({field:e,input:t})=>{const n=bi(),a=l((t=>{e?.("organizationName")?.onChange?.(t.data?.name?.short_with_opf),Ri(n,e,t)}),[]);return o(Dn,{label:"ИНН",isInteger:!0,maxLength:12,...t,...e(t?.name??""),onDaDataChange:a})})),Ei=d((({className:e,text:t,value:n,key:a,disabled:i,error:l,onChange:r})=>c("div",{className:u("shrink-0",e),children:[o(Za,{text:t,value:n,disabled:i,onChange:r},a),Sn(l)]}))),Di=d((({field:e,input:t})=>o(Ei,{...e(t?.name??""),text:'Являюсь клиентом банка АО "Россельхозбанк"'}))),_i=`${Ht}/outservice`,Ai=[];async function Mi(){const e=await Dt(`${_i}/outserviceregions`);return e&&Array.isArray(e)?e:Ai}const Oi=d((({field:e,input:t})=>{const n=e("region"),a=n?.value?.key,{data:l}=Zn("outServiceRegions",Mi),s=r((()=>l?.find((e=>e.code===a))?.localities?.map((e=>({key:e,text:e})))),[l,a]);return i((()=>{""!==a&&e?.(t?.name??"")?.onChange?.("")}),[a,t?.name??""]),o(jn,{label:"Населенный пункт",placeholder:"Выберите город, где доступен сервис",options:s,...e(t?.name??""),isSearch:!0})})),zi=d((({field:e,input:t})=>o(Dn,{label:"Отчество (Обязательно, при наличии)",maxLength:60,disabled:t?.filledByEsia&&ki(e,t?.name??""),...e(t?.name??""),...t}))),Vi=d((({field:e,input:t})=>o(Dn,{label:"Имя",maxLength:60,disabled:t?.filledByEsia&&ki(e,t.name??""),...e(t?.name??""),...t}))),Fi=d((({value:e=!1,text:t,type:n="checkbox",onChange:a})=>c("div",{role:n,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-s",onClick:()=>a&&a(!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(Oe,{size:"text-l",font:"font-light",color:"text-primary-text",children:t}):null]}))),Li=d((({field:e,input:t})=>Wn(e("acquiringType")?.value?.key)?o(Fi,{type:"radio",text:"Хочу онлайн-кассу",...e(t?.name??"")}):null)),$i=d((({field:e,input:t})=>o(Dn,{...e(t?.name??""),placeholder:"Укажите интересующий вас вопрос",isTextarea:!0,...t}))),ji=e=>"_"===e,Ui=e=>/\d/.test(e),qi=e=>ji(e)||Ui(e),Wi=[..."+7 (___) ___-__-__"],Hi=Wi.findIndex(ji),Yi=Wi.map(((e,t)=>qi(e)?Wi.slice(0,t).filter(qi).length:-1));function Gi(e){const t=e.replace(/\D/g,""),n=Wi.map(((e,n)=>Ui(e)?e:t.charAt(Yi[n])||e)),a=Yi.indexOf(t.length-1)+1;return(a?n.slice(0,Math.max(Hi,a)):n).join("")}const Ki=d((({children:e,onChange:t,...n})=>{const a=l((e=>t&&t(Gi(e))),[t]),i=l((e=>{"+7 ("===e&&t&&t("")}),[]);return o(wn,{...n,onChange:a,onFocus:e=>a(e?.target?.value||""),onBlur:e=>i(e?.target?.value||""),children:e})})),Xi=d((({className:e,label:t,error:n,...a})=>c("div",{className:u("shrink-0 w-full",e),children:[o(Ki,{"aria-label":t,label:xn({label:t,errors:a?.errors}),valid:Boolean(!n),placeholder:"+7 (___) ___-__-__",...a}),Sn(n)]}))),Ji=d((({field:e,input:t})=>{const n=t?.name||"phone";return o(Xi,{label:"Телефон",...e(n),disabled:t?.filledByEsia&&ki(e,n),...t})})),Zi=d((({field:e})=>Wn(e("acquiringType")?.value?.key)?o(Fi,{type:"radio",text:"Хочу POS-терминал",...e("posTerminal")}):null)),Qi=Lt((({field:e,input:t,source:n})=>o(jn,{placeholder:"Выберите продукт",label:"Продукт",options:el(n?.productList),...e(t?.name??"")}))),el=e=>(e??[]).map((e=>({key:e,value:e}))),tl=`${Ht}/regions`,nl=[];function al(e=tl){const{data:t}=Zn(e,_t);return Array.isArray(t)?t:nl}const il=`${Ht}/outservice/outserviceregions`,ll=d((({field:e,input:t,params:n})=>{var a;const i=al((a=n?.typeForm,"OUTSERVICE"===a?il:void 0));return o(jn,{label:t?.label||"Филиал",placeholder:"Выберите филиал",isSearch:!0,options:r((()=>i?.map((({code:e="",name:t=""})=>({key:e,text:t})))),[i]),...e(t?.name??"")})})),rl=d((({field:e,input:t})=>{const n=aa(!0),a=r((()=>n?.map((({region:e})=>({key:e,text:e})))),[n]);return o(jn,{label:"Регион",placeholder:"Выберите регион",options:a,...e(t?.name??"")})})),sl=d((({field:e,input:t})=>o(Dn,{label:"ФИО представителя",...t,...e("representativeName")}))),ol=(e,t)=>{const{value:n,isDirty:a}=e,i=a?t(n):[];return{...e,errors:i,error:i[0]}},cl=on((e=>null!=e&&""!==e)),dl="Некорректно заполненное поле",ml="Укажите регион, город/населенный пункт, улицу, дом",ul=e=>cl(e??dl),hl=e=>on((e=>e?.key&&""!==e?.key))(e??dl),pl=e=>on((e=>"string"==typeof e&&/^[0-9]{1,2}$/g.test(e)))(e??dl),gl=e=>on((e=>"string"==typeof e&&e.length>1&&kl(e)))(e??dl),fl=(e,t)=>on((t=>"string"==typeof t&&t.length>=1&&t.length<=e))(t??dl),xl=e=>on((e=>"string"==typeof e&&6===e.length))(e),yl=e=>/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/.test(e),bl=e=>on(yl)(e),vl=on((e=>"boolean"==typeof e&&e))("Согласие обязательно"),Nl=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},wl=e=>Boolean(e.region&&(e.city||e.locality)&&e.house),Cl=()=>on(wl)(ml),Sl=/^[\u0400-\u04FF\d\s]+$/u,kl=(e="")=>Sl.test(e),Il=e=>{const t=new Date,n=new Date(t.getFullYear()-23,t.getMonth(),t.getDate()),a=new Date(t.getFullYear()-75,t.getMonth(),t.getDate());return!(!e||e>n||e<a)},Tl={processPersonalDataFlg:vl,consentProviderFlg:vl,consentInformFlg:vl,consentPfrFlg:vl,consentOthersFlg:vl},Rl={addressCourier:Cl(),paymentSystem:ul("Укажите тип платежной системы"),currency:ul("Укажите валюту"),cardCategory:ul("Укажите категорию карты"),codeWord:(Bl="Необходимо ввести кодовое слово",on((e=>"string"==typeof e&&e.length>=3&&e.length<=21&&kl(e)))(Bl??dl)),confirmationIncome:hl(),methodObtain:ul(),deliveryDate:ul("Укажите дату доставки")};var Bl;const Pl={organization:hl("Выберите тип организации"),organizationAddress:on((e=>Boolean(e.fiasCode&&(e.city||e.locality)&&e.house)))(ml),organizationPhone:bl("Укажите номер телефона"),organizationName:ul("Укажите наименование организации"),legalForm:ul("Укажите ОПФ"),generalSeniority:pl("Укажите количество лет стажа"),lastJobExperience:pl("Укажите стаж на последнем месте работы"),experience5Years:pl("Укажите общий стаж за последние 5 лет"),jobsNumber:pl("Укажите количество мест работы за последние 5 лет"),beginDate:ul("Укажите дату заключения трудового договора"),addressFact:Cl(),addressRegistration:Cl(),addressRetail:hl("Выберите адрес банка"),addressMatch:ul(),sex:ul("Укажите свой пол"),limitedBirthday:on(Il)("Допустимый возраст заёмщика - от 23 до 75 лет"),birthPlace:ul("Укажите место рождения"),education:hl("Выберите ваше образование"),housing:hl("Выберите тип жилья"),amountWorkers:hl("Выберите информацию о количестве сотрудников"),employment:hl("Выберите информацию о трудоустройстве"),employerActivities:hl("Выберите вид деятельности организации"),employerOrganization:hl("Выберите вид организации"),positionOrganization:hl("Выберите вашу должность"),familyStatus:hl("Выберите семейное положение"),familyMembers:fl(2,"Укажите количество членов семьи"),children:fl(2,"Укажите количество детей"),dependents:fl(2,"Укажите количество иждивенцев"),totalIncome:fl(19,"Укажите среднемесячный доход от основной зарплаты"),expenses:fl(10,"Укажите сумму обязательных выплат"),snils:(e=>on(Nl)(e))("Некорректный номер СНИЛС"),conscription:ul(),armyIdFlg:vl,dulSerie:(e=>on((e=>"string"==typeof e&&4===e.length))(e))("Укажите серию паспорта"),dulNumber:xl("Укажите номер паспорта"),dulIssueDate:ul("Укажите дату выдачи паспорта"),dulSubdivisionCode:xl("Укажите код подразделения"),dulIssuedBy:ul("Укажите организацию, выдавшую паспорт"),participantDateRegistration:ul("Укажите дату регистрации"),retirementIncome:ul(),otherIncome:ul(),wages:ul(),mandatoryPayments:ul(),disablePeopleFlg:ul(),bankruptcyFlg:ul(),shareholderFlg:ul(),legalEntityName:ul(),bankEmployeeCode:ul(),partInBusiness:ul(),regionRetail:hl("Выберите регион")},El={fullName:ul(),addressBranch:hl(),desiredMeetingDate:ul(),product:ul(),localities:ul(),partnerComments:ul(),collectionCount:ul(),acquiringType:hl(),serviceType:hl(),annualRevenue:ul(),feedbackMethod:hl(),serviceDirection:hl(),secondaryPhone:bl("Укажите номер телефона"),region:hl(),situationDescription:ul(),sufferedFrom:ul(),applierType:ul(),surname:gl("Укажите свою фамилию на кириллице"),name:gl("Укажите своё имя на кириллице"),middleName:gl("Укажите своё отчество на кириллице"),birthday:ul("Укажите дату рождения"),phone:bl("Укажите номер телефона"),email:(e=>on((e=>/^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,4}$/.test(e)))(e))("Укажите электронную почту"),inn:(e=>on((e=>"string"==typeof e&&(10===e.length||12===e.length)))(e))("Укажите ИНН"),comment:ul(),typeForm:ul(),consentToReceiveMaterials:vl,consentDataProcessing:vl,...Tl,...Pl,...Rl},Dl=e=>{const t=e.filter((e=>Boolean(e?.required&&e?.name))),n=t.some((e=>e.condition?.values)),a=Object.fromEntries(t.filter(_l).map((({name:e})=>[e,El[e??""]])));return e=>n?Object.fromEntries(t.filter(_l).filter(Al(e)).map((({name:e})=>[e,El[e??""]]))):a},_l=({name:e})=>Boolean(El[e??""]),Al=e=>t=>!t?.condition||t.condition.values.find((n=>{const a=e?.[t?.condition?.name??""];return n===(a?.key??a)})),Ml=d((({field:e})=>{const t=e("secondaryPhone");return o(Xi,{label:"Дополнительный телефон",...t.value&&"+7 ("!==t.value?ol(t,El.secondaryPhone):t})})),Ol=d((({field:e,input:t})=>o(jn,{label:"Направление обслуживания",placeholder:"Выберите направление",options:si,...e(t?.name??"")}))),zl=d((({field:e,input:t})=>o(Dn,{label:"Описание ситуации",...t,...e("situationDescription")}))),Vl=[{key:"blg",text:"Белгородской области"},{key:"brnsk",text:"Брянской области"},{key:"krsk",text:"Курской области"},{key:"chs",text:"От стихийного бедствия ЧС"}],Fl=d((({field:e,input:t})=>o(jn,{label:"Пострадал в",...t,options:Vl,...e("sufferedFrom")}))),Ll=d((({field:e,input:t})=>o(Dn,{label:"Фамилия",maxLength:60,disabled:t?.filledByEsia&&ki(e,"surname"),...e(t?.name??""),...t}))),$l=["От 1 мес","До 15 лет"],jl=d((({field:e})=>o(ua,{title:"Срок, месяцев",items:$l,min:1,max:180,...e("term")}))),Ul=d((({field:e,input:t})=>o(jn,{label:"Тип обслуживания",options:ri,...e(t?.name??"")}))),ql={horizontal:"@lg:flex-row",vertical:""},Wl=d((({label:e,items:t,value:n,className:a,disabled:i=!1,orientation:l="horizontal",onChange:r})=>c("div",{className:"grid gap-xs whitespace-nowrap",children:[e?o("div",{role:"radiogroup","aria-label":e,children:o(Oe,{color:"text-secondary-text",font:"font-light",children:e})}):null,o("div",{className:u("flex flex-col gap-s",ql[l],a),role:"radiogroup","aria-label":"Группа кнопок",children:t?.map((({id:e,text:t})=>o(Za,{isRadio:!0,text:t,value:n===e,onChange:()=>r?.(e),disabled:i},String(e))))})]}))),Hl=[{id:"currencyControl",text:"Валютный контроль"},{id:"documentOperations",text:"Документарные операции"},{id:"conversionTransactions",text:"Конверсионные операции"},{id:"otherIssues",text:"Иные вопросы ВЭД"}],Yl=d((({field:e,input:t})=>{const n=l((t=>{"currencyControl"!==t&&(e("inn").onChange?.(""),e("region").onChange?.(""))}),[]);return o("div",{className:"py-m gap-m grid @xl:flex @xl:items-center",children:o(Wl,{className:"whitespace-normal",orientation:"horizontal",items:Hl,...e(t?.name??"",{onChange:n})})})}));const Gl={$ref:"/wcms-resources/outservice-productlist.json"},Kl={fullName:di,addressBranch:la,desiredMeetingDate:ii,product:e=>o(Qi,{...e,source:Gl}),localities:Oi,isClient:Di,partnerComments:$i,collectionCount:Ya,acquiringType:qn,onlineCheckout:Li,posTerminal:Zi,serviceType:Ul,term:jl,amount:fa,annualRevenue:xa,vedTypes:Yl,feedbackMethod:ci,serviceDirection:Ol,bankEmpolee:va,secondaryPhone:Ml,applicationDate:e=>o(Dn,{label:"Дата и время обращения в Банк",...e}),region:e=>ia(e?.params?.typeForm)?o(rl,{...e}):o(ll,{...e}),consentToReceiveMaterials:ai,sufferedFrom:Fl,situationDescription:zl,representativeName:sl,applierType:ba,surname:Ll,name:Vi,middleName:zi,birthday:Ha,phone:Ji,email:li,inn:Pi,comment:Ga},Xl=(e,t,n={})=>(a,i)=>{const l={...Kl,...n}[String(a.name)];return function({input:e,field:t}){const{condition:n}=e,{value:a}=t(n?.name||"");return!n||n?.values?.find((e=>e===(a?.key??a)))}({input:a,field:e})&&l?o("div",{children:o(l,{field:e,input:a,params:t})},i):null},Jl=e=>2===e?"@xl:grid-cols-2":"",Zl=e=>e?o("div",{className:"@xl:text-center @xl:col-span-2 mb-m",children:o(Oe,{size:"text-h6",children:e})}):null,Ql={primary:u("text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active","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("text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","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")},er=u("group/btn-embedded","bg-transparent border border-transparent outline-none"),tr=u("bg-main-gray text-main-disabled cursor-not-allowed"),nr=d((({className:e,type:t="button",version:n="primary",shape:a="default",embedded:i,disabled:s,role:c,ariaLabel:d,data:m,dataTheme:h,children:p,onClick:g=yn})=>{const f=l("tab"!==c?me(g):g,[c,g]),x=r((()=>ye(m)),[m]),y="round"===a;return o("button",{className:u("font-sans flex items-center gap-xs",{[Ql[n]]:!s&&!i,[er]:i,[tr]:s},i?"justify-between":"justify-center",i||y?"p-0":"px-9 py-4",{"rounded-md":"default"===a,"rounded-full":y},e),type:t,role:c,"aria-label":d,disabled:s,"aria-disabled":s?"true":void 0,"data-theme":h,...x,onClick:f,children:p})})),ar=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(G,{name:"CloseIcon",width:"20",height:"20",iconVersion:"gray"})}))),ir=d((({className:e,head:t,children:n,onClose:a,onClick:i})=>c("div",{className:u("relative bg-white pt-0 p-lg",e),role:"dialog",title:"Диалог",onClick:i,children:[c("div",{className:"sticky py-xl top-0 bg-white z-10",children:[o(ar,{className:"absolute top-0 right-0",onClose:a}),o("div",{className:"container",children:t})]}),o("div",{className:"container pb-6xl",children:n})]}))),lr=d((({ok:e,typeForm:t,onClose:n})=>{const a="ANTIFRAUD"===t?"Сообщение отправлено. Для уточнения информации с Вами могут связаться работники Банка либо Вы\n можете самостоятельно позвонить по номеру контакт-центра +78001000100. Будьте внимательны, работники Банка\n не звонят с использованием мессенджеров.":"Совсем скоро мы с вами свяжемся";return o(ir,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto",onClose:n,children:c("div",{className:"flex flex-col gap-lg items-center rounded-md space-x-m",children:[o(ie,{image:{icon:e?"ResponseOKIcon":"ResponseFailIcon",iconVersion:"normal"},width:"136",height:"136"}),o(k,{className:"w-full",title:e?"Ваша заявка отправлена":"Не удалось отправить заявку",description:e?a:"Пожалуйста, повторите позднее",headlineVersion:"XS",isEmbedded:!0}),o(nr,{type:"button",onClick:n,children:"Хорошо"})]})})})),rr=e=>{const{acquiringType:t,onlineCheckout:n,posTerminal:a,amount:i,term:l,annualRevenue:r,serviceType:s,vedTypes:o,region:c,inn:d,sufferedFrom:m,situationDescription:u,...h}=e,p=t||r?(e=>{const{acquiringType:t,onlineCheckout:n=!1,posTerminal:a=!1,term:i,amount:l,annualRevenue:r}=e;return t?`Вид эквайринга=${t?.text||""}${Wn(t?.key)?`/Онлайн касса=${n}/POS-терминал=${a}`:"/Онлайн касса=false/POS-терминал=false"}`:`Сумма=${l}/Срок=${i}/Выручка=${r}`})(e):null,g={...h,...cr(o),...or(c),...d&&{inn:d},...p?{partnerComments:p}:{},...s?{typeForm:s}:{},...sr(m,u?.text)};return Object.fromEntries(Object.entries(g)?.map((([e,t])=>[e,t?.key||t])))},sr=(e,t)=>e||t?{comment:`${e||""};${t||""}`}:{},or=e=>e?.key||e?.text?{region:e?.text||e?.key}:{},cr=e=>e?{vedTypes:Object.fromEntries(Hl.map((({id:t})=>[t,t===e])))}:{},dr={typeForm:"",region:{key:"",text:""},addressBranch:{key:"",text:""},surname:"",name:"",phone:"",secondaryPhone:"",comment:"",product:"",partnerComments:"",annualRevenue:"",term:12,amount:1e5,acquiringType:Un[0],serviceType:ri[0],feedbackMethod:oi[0],serviceDirection:si[0],vedTypes:Hl[0].id,birthday:void 0,isClient:!1,onlineCheckout:!1,posTerminal:!1,consentToReceiveMaterials:!1,consentDataProcessing:!1,addressRetail:{key:"",text:""}},mr=d((({color:e="text-primary-main",position:t="absolute",blur:n=!0,size:a="big"})=>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","animate-spin rounded-full","border-solid border-current","border-r-transparent","small"===a?"border-4 h-8 w-8":"border-8 h-28 w-28",e),role:"status"})}))),ur=d((({isLoading:e,disabled:t,children:n,...a})=>c(nr,{type:"submit",disabled:e||t,...a,children:[e?o(mr,{blur:!0,size:"small"}):null,n]}))),hr={primary:Ql.primary,secondary:Ql.secondary,white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"text-primary-main",gray:Ql.secondary,transparent:"","":""},pr=d((e=>{const t=fe(),{className:n,href:a,target:i,text:l,aboveText:r,version:s="link",rel:c,ariaLabel:d,data:m,children:h,onClick:p}=t(e),g="link"!==s;return o("a",{className:u("group/btn inline-flex items-center h-fit","font-sans no-underline select-none","border border-transparent focus:border-primary-text focus:border","cursor-pointer",{[hr[s]]:Boolean(s),[r?"px-9 py-2.5":"px-9 py-4"]:g,"rounded-md":g},n),href:a,target:i,rel:c,"aria-label":d??`Ссылка на ${l}`,role:a?"link":"button",onClick:p,...ye(m),children:h??gr(l,r)})})),gr=(e,t)=>e||t?c("div",{className:"whitespace-pre",children:[t?o("div",{className:"font-light text-left text-xs",children:t}):null,o("div",{className:u("text-left",{"text-s -mt-3xs":Boolean(t)}),children:e})]}):null,fr=d((({text:e,link:t})=>c(C,{size:"text-l",font:"font-light",color:"text-secondary-text",children:[e?o(Oe,{children:e}):null,t?o(pr,{...t,ariaLabel:"условия передачи данных",children:t.text}):null]}))),xr=(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(Za,{...e}),o(fr,{link:t})]}),Sn(ol(e,vl).error)]}):o(fr,{text:"Нажимая кнопку, вы подтверждаете согласие с ",link:t}),o(ur,{className:"w-full @xl:w-auto",children:n?.text?n.text:"Отправить заявку"})]}),yr={send:async function(e,t=!1){const{typeForm:n,region:a,phone:i="",email:l,birthday:r,desiredMeetingDate:s,inn:o,addressBranch:c,secondaryPhone:d="",bankEmpolee:m,applicationDate:u,serviceDirection:h,...p}=e,g=t&&"Юридическое лицо / ИП"!==h,f=`${Ht}${g?"/lead":"/sendcorporatelead"}`,x={typeForm:n,...Kt(a,g),...Xt(l,g),...Yt(i),...Gt(s,"desiredMeetingDate"),...g?Gt(r):{inn:o},..."FEEDBACK"===n?{}:{addressBranch:c,bankEmpolee:m,applicationDate:u,...Jt(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}}},br=d((({className:e,title:t,typeForm:n="",sections:a=[],button:i,link:s,endpoint:d,additionalParams:m,isContacts:h,data:p,...g})=>{const f=r((()=>a?.flatMap((e=>e?.inputs))||[]),[a]),x=r((()=>((e,t="")=>({...Object.fromEntries(e.map((e=>[e.name,"vedTypes"===e?.name&&e?.defaultValue||dr[e.name||""]]))),typeForm:{key:t,text:""}}))(f,n)),[f,n]),y=r((()=>Dl(f)),[f]),b=pn(lr),v=an(),N=l((async(e,t)=>{const a=rr({...e,...m}),i=Boolean(await yr.send(a,"lead"===d));b.open({ok:i,typeForm:n}),i&&Zt({aspectsAttributes:p,aspects:v,ev:t})}),[n]),[,{field:C,onSubmit:S}]=un(x,{resetOnSubmit:!0,formValidator:y,onSubmit:N}),k=(e=>e?.find((e=>"consentDataProcessing"===e?.name)))(f)?.name;return c(hn,{className:u("container space-y-m",e),title:t,...g,children:[c("form",{onSubmit:S,children:[a.map(((e,t)=>c("div",{className:u(Jl(e.columns),"grid gap-x-m"),children:[Zl(e.title),(e?.inputs||[])?.map(Xl(C,{typeForm:n}))]},`section-${t}`))),xr(k?C("consentDataProcessing"):void 0,s,i)]}),h?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(ie,{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(ie,{image:{icon:"MailIcon"},width:"24",height:"24"}),o("span",{children:"ved@rshb.ru"})]})]})]}):null]})})),vr=[{columns:2,inputs:[{name:"surname",required:!0,dadata:!0},{name:"name",required:!0,dadata:!0},{name:"middleName",dadata:!0},{name:"limitedBirthday",required:!0},{name:"phone",required:!0},{name:"email",required:!0,dadata:!0}]},{inputs:[{name:"processPersonalDataFlg",required:!0},{name:"consentProviderFlg",required:!0},{name:"consentOthersFlg",required:!0},{name:"consentInformFlg"},{name:"consentPfrFlg"}]}],Nr=d((({field:e,input:t})=>{const n="addressFact",a=e(n).value,{value:r}=e("addressMatch");i((()=>{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?.({apartment:"",city:"",district:"",fullAddress:t,fiasCode:"",house:"",locality:"",okatoRegionCode:"",postcode:"",region:"",regionCode:"",street:"",qc:"",qcComplete:"",qcHouse:""})}),[]);return o(Dn,{label:"Адрес",disabled:r,...e(n),value:a?.fullAddress,onChange:c,...t,onDaDataChange:s})})),wr=d((({field:e,input:t})=>o(Ei,{text:"Адрес фактического места жительства совпадает с адресом регистрации",...e(t?.name??"")}))),Cr="/icons/MapMarkerClusterIcon.svg",Sr="/icons/MapMarkerClusterYellowIcon.svg";function kr({yandexMaps:e,map:t,points:n,isLoad:a}){if(a||!n)return;if(t.geoObjects.removeAll(),!n.length)return;const i=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),l=Ir("offices",e,i);if(n.length&&n.every((e=>"type"in e))){const a=Ir("workplaces",e,i),r=Tr(n.filter((e=>"workplaces"===e.type)),"workplaces",e),s=Tr(n.filter((e=>"offices"===e.type)),"offices",e);l.add(s),a.add(r),t.geoObjects.add(a),t.geoObjects.add(l)}else{const a=Tr(n,"offices",e);l.add(a),t.geoObjects.add(l)}t.setBounds(e.util.bounds.fromPoints(n.map((e=>e.coords)))).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Ir=(e,t,n)=>new t.Clusterer({clusterIcons:[{href:"offices"===e?Cr:Sr,size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),Tr=(e,t,n)=>e.map((({coords:e,content:a})=>new n.Placemark(e,{balloonContentHeader:a?.header,balloonContentBody:a?.body,balloonContentFooter:a?.footer,hintContent:a?.hint},{iconLayout:"default#image",iconImageHref:"offices"===t?Cr:Sr,iconImageSize:[78,84],iconImageOffset:[-35,-50]}))),Rr={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",font:"text-center font-sans"},Br={...Rr,border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center"},Pr=(e,t,n)=>o("div",{className:`select-none cursor-pointer py-m w-12 bg-white ${Object.values(Br).join(" ")} ${n}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.current.geoObjects.add(t.geoObjects)}))},children:o(G,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),Er=e=>globalThis[e];function Dr(e,t,n=!0){const[l,r]=a(void 0);return i((()=>{let a=!0;return((e,t)=>{const n=document.getElementById(t);if(n){const t=Er(e);return t?Promise.resolve(t):new Promise((t=>{n.addEventListener("load",(()=>{t(Er(e))}))}))}return new Promise(((n,a)=>{const i=document.createElement("script");i.src=t,i.async=!0,i.id=t,i.addEventListener("load",(()=>{n(Er(e))})),i.addEventListener("error",(e=>{a(e)})),document.head.appendChild(i)}))})(e,t).then((e=>{a&&r(e)})).catch((e=>{console.error(`Failed to initialize external namespace: ${e}`)})),()=>{if(a=!1,n){const e=document.getElementById(t);e&&document.head.removeChild(e),r(void 0)}}}),[e,t,n]),l}const _r={...Rr,border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center"},Ar=d((({yandexMaps:e,direction:t="in"})=>{const n="in"===t?"PlusIcon":"MinusIcon";return o("div",{onClick:()=>{const n=e.current.getZoom(),a="in"===t?n+1:n-1;e.current.setZoom(a,{checkZoomRange:!0})},className:`${Object.values(_r).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:o(G,{name:n,width:"20",height:"16"})})})),Mr=[55.753995,37.614069],Or=d((({points:e,className:t="",zoom:n=5,isLoad:a,selectedAddress:l})=>{const r=s(null),d=s(null),m=Dr("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${A.YANDEX_MAP_API_KEY||""}&lang=ru_RU`,!1);if(i((()=>{r.current?kr({yandexMaps:m,map:r.current,points:e,isLoad:a}):m?.ready((()=>{r.current||(r.current=new m.Map(d.current,{center:zr(e),zoom:n,controls:[],suppressMapOpenBlock:!0})),kr({yandexMaps:m,map:r.current,points:e,isLoad:a})})),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,a,l]),!m)return null;const h="z-10";return c("div",{ref:d,className:u("relative","w-full",t),children:[a?o(mr,{}):null,c("div",{className:u("absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md",h),children:[o(Ar,{yandexMaps:r}),o(Ar,{yandexMaps:r,direction:"out"})]}),Pr(r,m,u("right-2 top-80",h))]})})),zr=e=>{const t=[Fr(Vr(e,0)),Fr(Vr(e,1))];return t.every((e=>e))?t:Mr},Vr=(e,t)=>e.map((e=>e.coords?.[t])),Fr=e=>e.length&&e.reduce(((e,t)=>e+t))/e.length,Lr=async(e,t,n)=>{try{return(await $r(e,t,n)).json()}catch(e){return console.error(e),null}};async function $r(e,t,n){const a=(()=>{const e=new Uint8Array(8);return globalThis.crypto.getRandomValues(e),e.reduce(((e,t)=>`${e}${t.toString(16).padStart(2,"0")}`),"")})();return globalThis?.fetch?.(`/light-api-cash/v1${e}`,{method:t,headers:{"Content-Type":"application/json","X-B3-Sampled":"1","X-B3-Spanid":a,"X-B3-Traceid":a,...jr()},credentials:"include",body:n?JSON.stringify(n):null})}const jr=()=>{const e=sessionStorage.getItem("accessToken");return e?{Authorization:`Bearer ${e}`}:null},Ur=e=>Number(e.toString().replace(",",".")),qr=d((({value:e,subText:t,children:n,isPhone:a,...i})=>{const l=(Array.isArray(e)?e:e?.split(",")??[]).filter(Boolean);return[l.length,n,t].every((e=>!e))?null:Wr({textItems:l,subText:t,children:n,isPhone:a,...i})})),Wr=({label:e,labelSize:t="text-m",textItems:n,subColor:a,subText:i,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(Oe,{color:"text-secondary-text",font:"font-light",size:t,children:e}):null,r||Hr(n,s),i?o(Oe,{color:a,size:"text-m",children:i}):null]}),Hr=(e,t)=>e.filter(Boolean).map(((e,n)=>o(Oe,{size:"text-l",children:t?o("a",{href:`tel:${Yr(e)}`,children:e.trim()}):e.trim()},String(n)))),Yr=e=>e.replace(/\D/g,""),Gr=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}))),Kr=d((({className:e,children:t})=>o("span",{className:u("inline-flex items-center text-start gap-s group-[]/btn-embedded:text-primary-main",e),children:t}))),Xr=d((({isUnfolded:e,...t})=>o(G,{name:e?"ArrowUpIcon":"ArrowDownIcon",size:"small",iconVersion:"",...t}))),Jr=d((({className:e,isUnfolded:t,short:n,label:a=(t?"Скрыть":"Развернуть"),embedded:i,...l})=>c(nr,{className:u({"w-full":!n},e),embedded:i,shape:n?"default":"square",role:"tab","aria-label":"Кнопка сворачивающейся секции",...l,children:[o(Kr,{children:a}),o(Xr,{isUnfolded:t,iconVersion:i?"color":""})]}))),Zr=d((({className:e,role:t="tablist",children:n})=>o("div",{className:u(e),role:t,children:n})));const Qr=d((({className:e,isUnfolded:t,children:n})=>{const a=s(null),l=function(e,t){const n=s(null);return i((()=>{const t=n?.current;if(!t)return;const a=new ResizeObserver((n=>{e(t,n[0])}));return a.observe(t),()=>{a.disconnect()}}),[e,...t]),n}((e=>{a.current&&(a.current.style.maxHeight=t?`${e.scrollHeight}px`:"")}),[t]);return o("div",{ref:a,className:u("transition-max-h duration-300 overflow-hidden",{"max-h-0":Boolean(a.current||!t)}),role:"tabpanel","aria-label":"Сворачивающаяся секция",children:o("div",{className:e,ref:l,children:n})})})),es=d((({children:e})=>{const[t,{toggle:n}]=ln(!1);return c("div",{children:[o("div",{className:"hidden sm:block",children:e}),c(Zr,{className:"block sm:hidden",children:[o(Qr,{isUnfolded:t,children:e}),o(Jr,{className:"my-m mr-m border-b border-solid border-main-divider",label:t?"Скрыть":"Подробнее",isUnfolded:t,embedded:!0,onClick:n})]})]})})),ts=e=>{const t=as(e);return o(qr,{label:"Режим работы",value:t,className:"max-w-none"})},ns=({workTime:e="",lunchHour:t="",daysOff:n=""},a=!1)=>e?[`${a?"Суббота":"Будние дни"}: ${e}`,t?`перерыв: ${t}`:"",n?`не работает: ${n}`:""].filter(Boolean).join("; "):"",as=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))),a=e.filter((e=>!e.status)).map((e=>e.short?.toLowerCase())).join(", ");return[ns({workTime:t?.workTime,lunchHour:t?.lunchHour,daysOff:n?"":a}),ns({workTime:n?.workTime,lunchHour:n?.lunchHour,daysOff:a},!0)].filter(Boolean)},is=[["workingMonday","Пн","Понедельник"],["workingTuesday","Вт","Вторник"],["workingWednesday","Ср","Среда"],["workingThursday","Чт","Четверг"],["workingFriday","Пт","Пятница"],["workingSaturday","Сб","Суббота"],["workingSunday","Вс","Воскресенье"]],ls=e=>is.map((([t,n,a])=>({key:t,title:a,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??"")}}))),rs=e=>{if(!e)return null;const t=ss(e);return c(Gr,{className:"border-none",children:[o(qr,{label:"Для юридических лиц",labelSize:"text-l",children:o("div",{className:"flex gap-1",children:t.map(os)})}),o(qr,{label:"Режим работы",className:"max-w-none",children:o(Oe,{children:e})})]})},ss=e=>{const t=is.map((([,e])=>({short:e,status:!0}))),n=e.split("/")??[],a=n[n.length-1]?.toLowerCase();return a?.includes("выходной")?t.map((e=>({...e,status:!a?.includes(e.short.toLowerCase())}))):t},os=({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(Oe,{size:"text-xs",children:e})},String(n)),cs=({currency:e,buyExchangeRate:t,saleExchangeRate:n},a)=>c("div",{className:"flex gap-lg h-full",children:[e?.currency?o(qr,{label:"Валюта",value:e.currency}):null,t?o(qr,{label:"Купить",value:String(t)}):null,n?o(qr,{label:"Продать",value:String(n)}):null]},String(a)),ds={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"}},ms=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",ds[n].border,e),children:[o("div",{className:"block pr-m sm:pr-0 sm:hidden",children:o(ie,{image:{icon:"SmallClockIcon"},width:"24",height:"24"})}),o(Oe,{size:"text-m",color:ds[n].text,children:t})]}))),us=(new Date).getDay(),hs=e=>{const[t]=e?.slice(us-1)??[];if(!t)return null;const{lunchHour:n,status:a,workTime:i,hasLunch:l}=t;return a?c("div",{className:"flex gap-s items-start whitespace-nowrap",children:[i?o(ms,{color:"green",children:i}):null,n&&l?o(ms,{color:"yellow",children:`перерыв: ${n}`}):null]}):o(ms,{color:"red",children:"Выходной"})},ps=({lunchHour:e,hasLunch:t=!1,status:n=!1})=>n?e&&t?`Перерыв ${e}`:e:"Не работает",gs=({title:e,status:t,workTime:n,lunchHour:a,hasLunch:i},l)=>o(qr,{label:e,value:t&&n?n:"",subText:ps({lunchHour:a,hasLunch:i,status:t}),subColor:!t||i?"text-error":"text-green-dark"},String(l)),fs=e=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p>`,xs=e=>`<p><b>Режим обслуживания физ. и юр. лиц:<br/></b> ${e}</p>`,ys=(e,t)=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${t}</p>`,bs=(e,t)=>{if(!e.workSchedule)return null;const n=ls(e.workSchedule);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(Oe,{size:"text-h4",children:e.name}),e.address?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(G,{name:"GeolocationIcon",width:"24",height:"24"}),o(Oe,{size:"text-l",children:e.address})]}):null]}),hs(n)]}),o(es,{children:vs(e)})]},String(t))},vs=({phone:e,fax:t,phoneBusiness:n,phoneNatural:a,phoneCallCentre:i,phoneCurrencyControl:l,workSchedule:r,exchangeRate:s})=>{const d=ls(r),m=r?.businessScheduleVisibleTag?"Для физических лиц":"Для физических и юридических лиц";return c("div",{children:[c(Gr,{className:"flex-wrap border-b border-solid border-main-divider",children:[o(qr,{label:"Факс",value:t,isPhone:!0}),o(qr,{label:"Телефон филиала",value:e,isPhone:!0}),o(qr,{label:"Для обращений юридических лиц",value:n,isPhone:!0}),o(qr,{label:"Обслуживание физических лиц",value:a,isPhone:!0}),o(qr,{label:"Для консультаций по валютному контролю",value:l,isPhone:!0}),o(qr,{label:"Контакт-центр",value:i,isPhone:!0})]}),r?.isMatchesPattern?o(Gr,{children:o(qr,{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(gs)})})}):c(Gr,{children:[o(qr,{label:m,labelSize:"text-l",children:o("div",{className:"flex gap-1",children:d?.map(os)})}),ts(d)]}),r?.businessScheduleVisibleTag?rs(r?.businessScheduleDescription):null,s?.currencies?.length?o(Gr,{className:"flex-wrap",children:s?.currencies?.map(cs)}):null]})},Ns=({name:e="",address:t="",workSchedule:n})=>{const a=(i=e)?`${i?.charAt(0)?.toUpperCase()}${i?.slice(1)}`:"";var i;const l=`${t} ${(e=>{const t=ls(e),n=e?as(t):"",a=e?e.businessScheduleDescription:"";return e?e.businessScheduleVisibleTag?e.businessScheduleVisibleTag&&null===e.businessScheduleDescription?fs(n):ys(n,a):xs(n):""})(n)}`;return{header:a,body:l}},ws={workingSaturday:!1,premiumService:!1,privateBanking:!1,remoteWorkplace:!1,serviceDisabledPeople:!1,sellingCoins:!1,buyingCoins:!1,bullionOperations:!1,preciousMetalsOperations:!1,transferringDataToBiometricSystem:!1},Cs={safeBoxCaseVolumes:"Аренда индивидуальных сейфовых ячеек",workingSaturday:"Открыты по субботам",terminalTypeAtms:"Банкоматы",terminalTypeTerm:"Терминалы",workAllTime:"Круглосуточно",billAcceptorEnable:"Прием наличных",premiumService:"Премиальное обслуживание",privateBanking:"Услуга Private banking",sellingCoins:"Продажа монет из драгоценных металлов",buyingCoins:"Покупка монет из драгоценных металлов",bullionOperations:"Операции со слитками",preciousMetalsOperations:"Операции с драгоценными металлами",transferringDataToBiometricSystem:"Передача фото и голоса в Единую биометрическую систему",locationDisabledPeople:"Для маломобильных",designDisabledPeople:"Для слабовидящих",remoteWorkplace:"Удаленное рабочее место",serviceDisabledPeople:"Для маломобильных граждан"},Ss={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)},ks=(e,t)=>{const n=Object.keys(t).filter((e=>t[e]));return e.filter((e=>n.every((t=>Ss[t](e)))))},Is=()=>{},Ts=({data:e,remoteWorkplaces:t=[],filtrationState:n={},getBalloon:a=Is,getBalloonRemoteWorkplaces:i=Is})=>{const[l,s,o,c]=r((()=>{const l=ks(e,n),r=ks(t,n),s=[...l.map((e=>({type:"offices",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:a(e)}))),...r.map((e=>({type:"workplaces",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:i({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,a,i]);return{filteredItems:l,points:s,filteredRemoteWorkplaces:o,lengthItems:c}},Rs=e=>{const{data:t,error:n}=Zn(`/light-api-cash/v1/dictionary?dictionaryType=${encodeURIComponent(e)}`,Bs);return t&&"errorMessage"in t?{error:n}:{data:t,error:n}},Bs=async e=>await Dt(e,{method:"POST"})||[],Ps=!Boolean("object"==typeof globalThis.process&&globalThis.process&&globalThis.process.version),Es=d((({children:e})=>Ps?e:null)),Ds=d((({field:e,input:t})=>{const[n,l]=a([]),{data:r}=Rs("REGION_RF"),s=e("regionRetail")?.value||{},d=e(t?.name??"");i((()=>{(async()=>{const e=await(async e=>{const t=await Lr("/public-data/regionOffices","POST",{regionRfCd:{key:e},cashCardFlg:!0});return t?.offices?.map((e=>({...e,gpsLatitude:Ur(e.latitude??Mr[0]),gpsLongitude:Ur(e.longitude??Mr[1])})))||[]})(s?.key??"");l(e)})(),s?.key&&d.onChange?.("")}),[s.key]);const{points:m}=Ts({data:n,filtrationState:{},getBalloon:Ns});return c("div",{children:[o(jn,{label:"Адрес отделения",placeholder:"Выберите отделение",options:n.map((({id:e,address:t=""})=>({key:e?.toString()||"",text:t}))),...d,isSearch:!0}),o("div",{className:"h-[600px]",children:o(Es,{children:o(Or,{points:m,isLoad:!r,className:"h-full",selectedAddress:d?.value?.text})})})]})})),_s=Lt((({field:e,source:t,fieldName:n,placeholder:a="Выберите из списка",options:i,...l})=>{const r=t?.map((e=>({key:e.key||"",text:e.value})))||[];return o(jn,{placeholder:a,options:r,...e(n),...l})})),As=d((({field:e,input:t})=>{const{data:n}=Rs("EMPLOYEES_NUMBER"),a=bi();return i((()=>{n&&(a.amountWorkers=n)}),[n]),o(_s,{field:e,source:a.amountWorkers??[],label:"Количество работающих в организации",fieldName:"amountWorkers",input:t})})),Ms=d((({field:e,input:t})=>o(Ei,{text:"Наличие военного билета",...e(t?.name??"")}))),Os=d((({field:e,input:t})=>o(Dn,{label:"Код представителя Банка",placeholder:"Введите код",isInteger:!0,...e(t?.name??""),...t}))),zs=d((({field:e,input:t})=>o(Ei,{text:"В отношении меня ведётся производство по делу о банкротстве",...e(t?.name??"")}))),Vs=d((({field:e,input:t})=>o(Wa,{label:"Дата начала работы на текущем месте",...e(t?.name??""),...t}))),Fs=d((({field:e,input:t})=>o(Dn,{label:"Место рождения",...e(t?.name??""),...t,disabled:t?.filledByEsia&&ki(e,"birthPlace")}))),Ls=e=>{try{return JSON.parse(String(e))}catch(e){return null}};const $s=d((({__html:e,icon:t="InfoCircleIcon",iconVersion:n="black"})=>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(G,{name:t,width:"24",height:"24",iconVersion:n})}),o("div",{className:"",children:o(Ae,{__html:e})})]}))),js=d((({field:e,input:t})=>{const[n,s]=a([]),[d]=function(e){const t=globalThis.localStorage?.getItem(e),[n,i]=a(t?Ls(t):null);return[n,l((t=>{i((n=>{const a=t instanceof Function?t(n):t;return globalThis.localStorage?.setItem(e,JSON.stringify(a)),a}))}),[e])]}("programId"),{value:m,onChange:u}=e("cardCategory"),h=e("paymentSystem")?.value?.key;i((()=>{h&&d&&(async()=>{const e=await(async(e,t)=>{const n=await Lr("/dictionaryFiltered","POST",{type:"CARD_TYPE",presets:{paymentSystemTypeCd:e,creditProgramId:t}});return Array.isArray(n)?n:[]})(h,d);s(e),Us(e,m)||u&&u(null)})()}),[h]);const p=r((()=>n?.find((e=>e.key===m?.key))?.description),[n,m]);return c("div",{children:[o(_s,{field:e,source:n,label:"Категория карты",fieldName:"cardCategory",input:t}),p?o($s,{__html:p}):null]})})),Us=(e,t)=>e.some((e=>e.key===t?.key)),qs=d((({field:e,input:t})=>o(Dn,{label:"Количество детей до 18 лет",placeholder:"Введите значение",isInteger:!0,...e(t?.name??""),...t}))),Ws=d((({field:e,input:t})=>o(Dn,{label:"Кодовое слово",...e(t?.name??""),...t}))),Hs=d((({field:e,input:t})=>{const{data:n}=Rs("INCOME_CERT_UNITED");return o(_s,{field:e,source:n,label:"Способ подтверждения дохода",fieldName:"confirmationIncome",input:t})})),Ys=d((({field:e,input:t})=>{const{data:n}=Rs("MILITARY_STATUS");return o(_s,{field:e,source:n,label:"Статус военнообязанного",fieldName:"conscription",input:t})})),Gs={processPersonalDataFlg:{text:"Согласие на обработку персональных данных",docId:4},consentInformFlg:{text:"Согласие на информирование о продуктах и услугах Банка",docId:14},consentProviderFlg:{text:"Согласие об использовании простой электронной подписи",docId:5},consentOthersFlg:{text:"Прочие согласия",docId:1},consentPfrFlg:{text:"Согласие на запрос в ПФР",docId:3}},Ks=d((({src:e,onClose:t,onDocumentRead:n})=>{const a=Te();return c(ir,{className:"my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0",onClose:t,children:[a?o("img",{src:e}):o("iframe",{src:`${e}#toolbar=0`,className:"w-full h-[80vh]",id:"iframe-dialog"}),o(nr,{className:"mx-auto mt-m",type:"button",onClick:()=>{n?.(),t?.()},children:"Ознакомиться"})]})})),Xs=(e,t)=>{const{open:n}=pn(Ks),a=Te();return l((async()=>{if(e){const i=URL.createObjectURL(await(async(e,t=!1)=>{const n=await $r(`/feedback/file?id=${encodeURIComponent(e)}&convertToPngFlg=${t}`,"GET");return n?await n.blob():new Blob})(e,a));n({src:i,onDocumentRead:t})}}),[n,e,a])},Js=d((({className:e,error:t,docId:n,...a})=>{const i=Xs(n,(()=>a.onChange?.(!0)));return c("div",{className:e,children:[c("div",{className:"flex flex-wrap gap-x-m",children:[o(Za,{...a}),n?o(nr,{embedded:!0,onClick:i,children:o(Kr,{children:"Ознакомиться"})}):null]}),Sn(t)]})})),Zs=d((({field:e,input:t})=>t&&t.name?o(Js,{text:Gs[t.name]?.text,docId:Gs[t.name]?.docId,...e(t.name)}):null)),Qs=Math.round(29.5),eo=d((({className:e,title:t,children:n,...a})=>c(g,{className:u("space-y-xl",e),defaultPadding:"p-4xl",...a,children:[t?o(w,{className:"text-center",title:t}):null,n]}))),to="flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl",no="flex flex-col lg:w-1/2 gap-2xl",ao="flex flex-col gap-y-xl min-w-52",io=d((({value:e,fractionDigits:t,fixed:n,prefix:a,postfix:i})=>o(Oe,{size:"text-h3",children:"number"==typeof e?[a,Ge(t,{fixed:n})(e),i].filter(Boolean).join(" "):e}))),lo=d((({className:e,title:t,value:n,color:a="text-secondary-text",...i})=>c("div",{className:u("flex justify-between @xl:flex-col",e),children:[t?o(Oe,{size:"text-l",font:"font-light",color:a,children:t}):null,n?o(io,{value:n,...i}):o(Oe,{size:"text-h3",children:"-"})]}))),ro=(e=[],t=!1)=>so([(e,t)=>e>t,(e,t)=>e?.minSum<t?.minSum],e?.filter((e=>t===Boolean(e?.isNewClient)))),so=(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]},oo=(e,t=0)=>e?.sum?e.sum:t,co=(e,t=0)=>e?.period&&e.period>=1&&e.period<=60?e.period:t,mo=(e,t)=>e?o(C,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:e},String(t)):null,uo=({min:e=0,max:t=0,availableMonths:n,...a})=>o(ua,{items:[`От ${ho(e)}`,`До ${ho(t)}`],step:1,...n?.length?{list:n}:{min:e,max:t},...a}),ho=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,po=({items:e,title:t,mobileTitle:n=t,orientation:a="horizontal",value:i,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(Oe,{color:"text-secondary-text",font:"font-light",children:t})}):null,n?o("div",{className:"@5xl:hidden",role:"radiogroup","aria-label":n,children:o(Oe,{color:"text-secondary-text",font:"font-light",children:n})}):null,o(Wl,{orientation:a,items:e,value:e[i?0:1].id,onChange:t=>l&&l(t===e[0].id),...r})]}),go=e=>po({...e,className:"sm:flex-col",items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]}),fo=({isShowItems:e=!0,step:t=1e3,postfix:n="₽",...a})=>o(ua,{items:e?[`От ${Ge(1)(a.min||0)} ${n}`,`До ${Ge(1)(a.max||0)} ${n}`]:[],step:t,...a}),xo=({field:e,defParams:t,calcParams:n,map:a,monthsValue:i="maxMonths"})=>{Object.entries(a).forEach((([n,a])=>{e?.(n)?.onChange?.(t?.[a])})),e?.("monthsValue")?.onChange?.(sa(t?.[i],n.minMonths,n.maxMonths))},yo=(e,t)=>{const{isAnnuity:n,moneyValue:a,monthsValue:i,moneyExtra:l}=t;if(0===e)return 0;if(n){const t=e/1200;return l?(a+l)*(t+t/(Math.pow(1+t,i)-1)):a*(t+t/(Math.pow(1+t,i)-1))}return Math.round(a/i)+a*(e/1200)},bo=e=>e,vo=(e=bo)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),No=vo(),wo=(e=bo)=>vo((t=>-e(t))),Co=wo(),So=([e,t],n,a=[])=>n&&n[e]&&n[t]?{[e]:n[e],[t]:n[t]}:ko([e,t],a),ko=([e,t],n=[])=>({[e]:n.length?Co(n.filter((t=>"number"==typeof t[e])).map((t=>t[e]))):0,[t]:n.length?No(n.filter((t=>"number"==typeof t[e])).map((e=>e[t]))):0}),Io=(e,[t,n],a)=>e>=a[t]&&e<=a[n],To={minSum:1e4,maxSum:5e6,minMonths:1,maxMonths:60,rate:0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},Ro=e=>Bo({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&Bo({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&Bo({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&Bo({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),Bo=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:a,viewSettingFieldKey:i})=>!!n&&!n[i]||t[a]===e[a],Po=(e,t,n)=>{const{moneyValue:a,monthsValue:i}=e,l=t?.rateRows||[To],r=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>Ro({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:s,maxSum:o}=So(["minSum","maxSum"],r,l),{minMonths:c,maxMonths:d}=So(["minMonths","maxMonths"],r,l),m=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:a,monthsValue:i})=>e?.find((e=>Ro({row:e,userInputParams:t,paramsViewSettings:n})&&Io(a,["minSum","maxSum"],e)&&Io(i,["minMonths","maxMonths"],e)))||To)({rateRows:l,userInputParams:e,paramsViewSettings:n,moneyValue:a,monthsValue:i}),{rate:u}=m,h=yo(u,e);return{...m,...e,minSum:s,maxSum:o,minMonths:c,maxMonths:d,moneyValue:a,monthsValue:i,monthlyPayment:h}},Eo=(e={})=>Boolean(Object.values(e).filter((e=>e)).length),Do={isSalaryClient:"isSalaryClient",isStateEmployee:"isStateEmployee",isPensionClient:"isPensionClient",isInsurance:"isInsurance",moneyValue:"maxSum"},_o=Lt((({className:e,title:t,calcSource:n,buttons:a,footnote:l,paramsViewSettings:r,defaultParams:s,onChange:d,...m})=>{const h=(p=n?.rateRows,so([(e,t)=>e<t,(e,t)=>e?.maxSum>t?.maxSum],p));var p;const[g,{field:f}]=un({moneyValue:oo(s,2e5),monthsValue:co(s,Qs),isAnnuity:Boolean(s?.isAnnuity),isInsurance:Boolean(s?.isEnableInsurance),isSalaryClient:Boolean(s?.isEnableSalaryClient),isPensionClient:Boolean(s?.isEnablePensionClient),isStateEmployee:Boolean(s?.isEnableStateEmployee)},{onChange:d}),x=Po(g,n,r),y=go({title:"Тип платежа",orientation:"vertical",...f("isAnnuity")}),{onChange:b}=f("moneyValue"),{onChange:v}=f("monthsValue");return i((()=>{b&&b(sa(g.moneyValue,x.minSum,x.maxSum))}),[x.minSum,x.maxSum]),i((()=>{v&&v(sa(g.monthsValue,x.minMonths,x.maxMonths))}),[x.minMonths,x.maxMonths]),i((()=>{!Eo(s)&&h&&xo({field:f,defParams:h,calcParams:x,map:Do,monthsValue:"minMonths"})}),[n,s]),o(eo,{className:e,title:t,...m,children:c("section",{className:u(to,e),children:[c("div",{className:no,children:[fo({title:"Сумма кредита, ₽",step:500,min:x.minSum,max:x.maxSum,...f("moneyValue"),value:x.moneyValue}),uo({title:"Срок кредита, месяцев",min:x.minMonths,max:x.maxMonths,...f("monthsValue"),value:x.monthsValue}),Ao({...x,...r},f),o("div",{className:"sm:hidden",children:y})]}),c("div",{className:u(ao,"@4xl:w-1/2"),children:[o(lo,{title:"Полная стоимость кредита",value:n?.totalLoanCost}),o(lo,{title:"Ставка",value:x?.rate,fractionDigits:2,postfix:"%"}),o(lo,{title:"Ежемесячный платёж",value:x.monthlyPayment,postfix:"₽"}),o("div",{className:"hidden sm:block mb-lg",children:y}),qe(a,{isVertical:!0}),mo(l)]})]})})})),Ao=(e,t)=>c("div",{className:"flex flex-col gap-y-2xl",children:[e.isShowSalaryClient?o(Za,{text:"Получаю зарплату на счёт\nв Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient,className:"whitespace-pre-line sm:whitespace-normal"}):null,e.isShowStateEmployee?o(Za,{text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?o(Za,{text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?o(Za,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),Mo="calculator",Oo=d((({field:e,params:t})=>{const n=l((t=>{e(Mo).onChange?.(t)}),[]);return o(_o,{...t?.calcData,padding:"p-0",defaultParams:Vo(e(Mo).value),onChange:n})})),zo={moneyValue:"sum",monthsValue:"period",isInsurance:"isEnableInsurance",isPensionClient:"isEnablePensionClient",isStateEmployee:"isEnableStateEmployee",isSalaryClient:"isEnableSalaryClient",isAnnuity:"isAnnuity"},Vo=(e,t=!1)=>{const n=t?Fo(zo):zo;return Object.fromEntries(Object.entries(e??{}).map((([e,t])=>[n[e],t])))},Fo=e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[t,e]))),Lo=d((({field:e,input:t})=>{const{data:n}=Rs("CREDIT_IN_RSHB");return o(_s,{field:e,source:n,label:"Имеет ли юридическое лицо, акционером / участником / членом / пайщиком /\n вкладчиком с долей участия более 20% уставного капитала руководителем,\n которого Вы являетесь, кредит в АО «Россельхозбанк»",fieldName:"creditInRshbCd",input:t,disabled:!e?.("shareholderFlg")?.value})})),$o=d((({className:e,label:t,error:n,...a})=>c("div",{className:u("shrink-0 w-full",e),children:[o(Wl,{label:xn({label:t,errors:a?.errors}),...a}),Sn(n)]}))),jo=[{id:"810",text:"Рубли"}],Uo=d((({field:e,input:t})=>o($o,{label:"Валюта",orientation:"horizontal",items:jo,...e(t?.name??"")}))),qo=d((({field:e,input:t})=>o(Wa,{label:"Дата доставки",...e(t?.name??"")}))),Wo=d((({field:e,input:t})=>o(Dn,{label:"Количество иждивенцев",placeholder:"За исключение детей до 18 лет",isInteger:!0,maxLength:2,...e(t?.name??""),...t}))),Ho=d((({field:e,input:t})=>o(Ei,{text:"Являюсь инвалидом",...e(t?.name??"")}))),Yo=d((({field:e,input:t})=>o(Wa,{label:"Дата выдачи",...e(t?.name??""),disabled:t?.filledByEsia&&ki(e,t?.name??"")}))),Go=d((({field:e,input:t})=>{const{value:n,onChange:a}=e("dulSubdivisionCode"),i=l((e=>{a?.(e?.data?.code?.replace("-",""))}),[]);return o(Dn,{disabled:t?.filledByEsia&&ki(e,t?.name??""),label:"Кем выдан",...t,...e(t?.name??""),onDaDataChange:i,daDataQueryPrefix:n})})),Ko=d((({field:e,input:t})=>o(Dn,{disabled:t?.filledByEsia&&ki(e,t.name??""),label:"Номер документа",isInteger:!0,maxLength:6,...e(t?.name??"")}))),Xo=d((({field:e,input:t})=>o(Dn,{disabled:t?.filledByEsia&&ki(e,t.name??""),label:"Серия документа",isInteger:!0,maxLength:4,...e(t?.name??"")}))),Jo=d((({field:e,input:t})=>{const n=l((t=>{e?.("dulIssuedBy")?.onChange?.(t?.data?.name)}),[]);return o(Dn,{disabled:t?.filledByEsia&&ki(e,t.name??""),label:"Код подразделения",isInteger:!0,maxLength:6,...t,...e(t?.name??""),onDaDataChange:n})})),Zo=d((({field:e,input:t})=>{const{data:n}=Rs("EDUCATION_LEVEL");return o(_s,{field:e,source:n,label:"Образование",fieldName:"education",input:t})})),Qo=d((({field:e,input:t})=>{const{data:n}=Rs("ORGANIZATION_ACTIVITY_TYPE"),a=bi();return i((()=>{n&&(a.employerActivities=n)}),[n]),o(_s,{field:e,source:a.employerActivities??[],label:"Вид деятельности организации-работодателя",fieldName:"employerActivities",input:t})})),ec=d((({field:e,input:t})=>{const{data:n}=Rs("ORGANIZATION_KIND"),a=bi();return i((()=>{n&&(a.employerOrganization=n)}),[n]),o(_s,{field:e,source:a.employerOrganization??[],label:"Вид организации работодателя",fieldName:"employerOrganization",input:t})})),tc=d((({field:e,input:t})=>{const{data:n}=Rs("EMPLOYMENT_INFO_UNITED");return o(_s,{field:e,source:n,label:"Информация о трудоустройстве",fieldName:"employment",input:t})})),nc=d((({field:e,input:t})=>o(Dn,{label:"Обязательные расходы в месяц",placeholder:"Введите значение",isInteger:!0,...e(t?.name??""),...t}))),ac=d((({field:e,input:t})=>{const n=l((n=>e(t?.name??"")?.onChange?.(String(sa(Number(n),0,5)))),[]);return o(Dn,{label:"Стаж",placeholder:"За последние 5 лет",type:"number",...e(t?.name??""),...t,onChange:n})})),ic=d((({field:e,input:t})=>{const{value:n,onChange:a}=e(t?.name??""),l=e("familyStatus")?.value?.key,r="MARRIED"===l?2:1,s=Number(e("children")?.value),c=Number(e("dependents")?.value),d=r+s+c;return i((()=>{a?.(d)}),[l,s,c]),o(Dn,{label:"Количество членов семьи",placeholder:"Введите значение",type:"number",disabled:!0,value:n,onChange:a})})),lc=d((({field:e,input:t})=>{const{data:n}=Rs("MARITAL_STATUS");return o(_s,{field:e,source:n,label:"Семейное положение",fieldName:"familyStatus",input:t})})),rc=d((({field:e,input:t})=>o(Dn,{label:"Общий стаж",type:"number",maxLength:2,placeholder:"Количество лет",...e(t?.name??""),...t}))),sc=d((({field:e,input:t})=>{const{data:n}=Rs("HOUSE_TYPE");return o(_s,{field:e,source:n,label:"Тип жилья",fieldName:"housing",input:t})})),oc=d((({input:e})=>o($s,{__html:e?.label}))),cc=d((({field:e,input:t})=>o(Dn,{label:"Количество мест работы за последние 5 лет",placeholder:"Количество мест",isInteger:!0,maxLength:2,...e(t?.name??""),...t}))),dc=d((({field:e,input:t})=>o(Dn,{label:"Стаж на последнем рабочем месте",placeholder:"Количество лет",type:"number",maxLength:2,...e(t?.name??""),...t}))),mc=d((({field:e,input:t})=>o(Dn,{label:"Наименование юридического лица",...t,...e(t?.name??""),disabled:!e?.("shareholderFlg")?.value}))),uc=d((({field:e,input:t})=>o(Dn,{label:"ОПФ",placeholder:"ООО, ПАО и др.",...e(t?.name??""),...t}))),hc=d((({field:e,input:t})=>o(Wa,{label:"Дата рождения",...e(t?.name??""),disabled:t?.filledByEsia&&ki(e,t.name??"")}))),pc=d((({field:e,input:t})=>o(Dn,{label:"Обязательные выплаты",placeholder:"Введите значение",isInteger:!0,...e(t?.name??""),...t}))),gc=[{id:"office",text:"В отделении Банка"},{id:"courier",text:"Курьерская доставка"}],fc=d((({field:e,input:t})=>o($o,{orientation:"horizontal",items:gc,...e(t?.name??"")}))),xc=d((({field:e,input:t})=>{const{data:n}=Rs("ORGANIZATION_TYPE"),a=bi();return i((()=>{n&&(a.organization=n)}),[n]),o(_s,{field:e,source:a.organization??[],label:"Тип организации",fieldName:"organization",input:t})})),yc=d((({field:e,input:t})=>{const n=bi(),a=l((t=>{e?.("inn")?.onChange?.(t.data?.inn),Ri(n,e,t)}),[]);return o(Dn,{label:"Наименование организации",...t,...e(t?.name??""),onDaDataChange:a})})),bc=d((({field:e,input:t})=>o(Dn,{label:"Иные доходы",placeholder:"Введите значение",isInteger:!0,...e(t?.name??""),...t}))),vc=d((({field:e,input:t})=>o(Wa,{label:"Дата регистрации по месту жительства",...e(t?.name??"")}))),Nc=d((({field:e,input:t})=>{const n=l((n=>e(t?.name??"")?.onChange?.(String(sa(Number(n),0,100)))),[]);return o(Dn,{label:"Доля участия в бизнесе",placeholder:"в %",isInteger:!0,maxLength:3,...e(t?.name??""),...t,onChange:n})})),wc=e=>e.map((e=>({key:e.type,text:e.name})));const Cc=e=>e?.key,Sc=d((({field:e,input:t})=>{const[n,l]=a([]),s=yi();var c;c=async()=>{const{programId:e}=s;if(e){const t=await(async e=>{const t=await Lr("/public-data/creditProgramConditions","POST",{creditProgramId:e});return wc(t?.paymentSystems||[])})(e);l(t??[])}},i((()=>{const e=c();return()=>{e.then((e=>{e instanceof Function&&e()}))}}),[]);const d=r((()=>n?.map((e=>({id:e.key,text:e.text})))??[]),[n]);return o($o,{label:"Платежная система",orientation:"horizontal",items:d,...e(t?.name??"",{format:Cc,parse:e=>n?.find((t=>t.key===e))})})})),kc=d((({field:e,input:t})=>{const{data:n}=Rs("POSITION");return o(_s,{field:e,source:n,label:"Должность в организации",fieldName:"positionOrganization",input:t})})),Ic=d((({field:e,input:t})=>{const{data:n}=Rs("REGION_RF"),a=n?.map((({key:e,value:t})=>({key:e,text:t})));return o(jn,{label:"Регион",placeholder:"Выберите регион",isSearch:!0,options:a,...e(t?.name??"")})})),Tc=d((({field:e,input:t})=>o(Dn,{label:"Пенсионные доходы",placeholder:"Введите значение",isInteger:!0,...e(t?.name??""),...t}))),Rc=["male","female"],Bc=[{id:"male",text:"Мужской"},{id:"female",text:"Женский"}],Pc=d((({field:e,input:t})=>{const n=e("name")?.value,{value:a,onChange:l}=e("sex");return i((()=>{n&&!a&&(async()=>{const e=await(async e=>{const t=await In({url:"/suggest/fio",requestData:{parts:["NAME"]},query:e}),n=t[0]?.data?.gender?.toLowerCase()||"";return Rc.includes(n)?n:""})(n);e&&l?.(e)})()}),[]),o($o,{label:"Пол",orientation:"horizontal",items:Bc,...e(t?.name??"")})})),Ec=d((({field:e,input:t})=>o(Ei,{text:"Я являюсь акционером / участником / членом / пайщиком / вкладчиком с долей участия более 20% уставного капитала юридического лица",...e(t?.name??"")}))),Dc=d((({children:e,onChange:t,maxLength:n,...a})=>{const i=l((e=>n?e.length<=n&&t?.(Ra(e,"___-___-___ __")):t?.(Ra(e,"___-___-___ __"))),[t]),r=l((e=>{"___-___-___ __"===e&&t&&t("")}),[]);return o(wn,{...a,onChange:i,onFocus:e=>i(e?.target?.value||""),onBlur:e=>r(e?.target?.value||""),children:e})})),_c=d((({className:e,label:t,value:n,error:a,onChange:i,onBlur:l,...r})=>c("div",{className:u("shrink-0 w-full",e),children:[o(Dc,{"aria-label":t,label:xn({label:t,errors:r?.errors}),valid:Boolean(!a),value:n,onChange:i,onBlur:l,placeholder:"___-___-___ __",...r}),Sn(a)]}))),Ac=d((({field:e,input:t})=>o(_c,{label:"СНИЛС",maxLength:14,...e(t?.name??""),...t}))),Mc=d((({field:e,input:t})=>o(Dn,{label:"Совокупный официальный доход в месяц после вычета налогов (зарплата, премии)",placeholder:"Введите значение",isInteger:!0,...e(t?.name??""),...t}))),Oc=d((({field:e,input:t})=>o(Dn,{label:"Совокупный доход в месяц после вычета налогов (зарплата, премии)",placeholder:"Введите значение",isInteger:!0,...e(t?.name??""),...t}))),zc={limitedBirthday:hc},Vc={processPersonalDataFlg:Zs,consentProviderFlg:Zs,consentOthersFlg:Zs,consentInformFlg:Zs,consentPfrFlg:Zs},Fc={organization:xc,organizationAddress:Ii,organizationPhone:Ji,organizationName:yc,legalForm:uc,generalSeniority:rc,lastJobExperience:dc,experience5Years:ac,jobsNumber:cc,beginDate:Vs,addressFact:Nr,addressRegistration:Ii,addressRetail:Ds,addressMatch:wr,sex:Pc,limitedBirthday:hc,birthPlace:Fs,education:Zo,housing:sc,amountWorkers:As,employment:tc,employerActivities:Qo,employerOrganization:ec,positionOrganization:kc,familyStatus:lc,familyMembers:ic,children:qs,dependents:Wo,totalIncome:Mc,expenses:nc,snils:Ac,conscription:Ys,armyIdFlg:Ms,dulSerie:Xo,dulNumber:Ko,dulIssueDate:Yo,dulSubdivisionCode:Jo,dulIssuedBy:Go,participantDateRegistration:vc,retirementIncome:Tc,otherIncome:bc,wages:Oc,mandatoryPayments:pc,disablePeopleFlg:Ho,bankruptcyFlg:zs,shareholderFlg:Ec,legalEntityName:mc,creditInRshbCd:Lo,bankEmployeeCode:Os,partInBusiness:Nc,regionRetail:Ic,infoCard:oc,calculator:Oo,confirmationIncome:Hs},Lc={addressCourier:Ii,paymentSystem:Sc,currency:Uo,cardCategory:js,codeWord:Ws,methodObtain:fc,deliveryDate:qo},$c="Согласие на все документы",jc=d((({inputs:e=[],field:t,key:n})=>{const a=e.every((e=>Boolean(t(e.name).value))),i=l((n=>{for(const a of e){const e=t(a.name);e.onChange?.(n)}}),[e]),s=r((()=>e?.filter((e=>e.required))?.some((e=>Boolean(ol(t(e?.name),El[e?.name]).error)))),[e]),[d,{toggle:m}]=ln(!0);return o("div",{className:"w-fit",children:c(Zr,{children:[c("div",{className:"flex items-start",children:[c("div",{children:[o(Za,{text:$c,value:a,onChange:i},n),Sn(s?"Отметьте все обязательные соглашения":"")]}),o(nr,{embedded:!0,ariaLabel:$c,onClick:m,children:o(Xr,{className:"p-2xs",iconVersion:"color",isUnfolded:d})})]}),o(Qr,{className:"flex flex-col pl-2xl",isUnfolded:d,children:e.map(Xl(t,{},Vc))})]})})})),Uc=({field:e,inputs:t})=>{const{consentInputs:n,restInputs:a}=qc(t||[]);return n.length>2?c("div",{children:[a.map(Xl(e,{},{...zc})),o(jc,{inputs:n,field:e})]}):(t||[])?.map(Xl(e,{},{...zc}))},qc=(e=[])=>({consentInputs:e.filter((({name:e})=>Object.keys(Gs).includes(String(e)))),restInputs:e.filter((({name:e})=>!Object.keys(Gs).includes(String(e))))}),Wc=(e,t)=>o(ur,{className:"w-full @xl:w-auto",isLoading:t,children:e?.text?e.text:"Отправить заявку"}),Hc=e=>$r("/user-data/updateUserProfile","PUT",e),Yc=e=>$r("/user-data/updateUserTask","PUT",e),Gc={width:"103",height:"21"},Kc={"bg-white":"color",transparent:"white"},Xc={"bg-white":"text-primary-main",transparent:"text-white"},Jc=(e,t,n)=>o(ie,{image:t?.src?t:{icon:t?.icon||"LogoIcon",iconVersion:Kc[e]},className:Xc[e],width:n?.width,height:n?.height}),Zc={"bg-white":"text-primary-text",transparent:"text-white"},Qc=d((({className:e,href:t="/",logo:n,children:a,targetBlank:i,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:i?"_blank":"_self","aria-label":n?.title??"Россельхозбанк",...ye(s),children:[Jc(l,n?.image,Gc),r?a??o("div",{className:"ml-s",children:o(Oe,{font:"font-medium",color:Zc[l],size:"text-s",children:n?.title??"Россельхозбанк"})}):null]}))),ed=d((({phoneNumber:e,sendCode:t,onClose:n})=>{const[r,s]=a(""),[d,m]=a(""),[u,h]=a(!1),[p,{setTrue:g,setFalse:f}]=ln(!1),x=l((async()=>{g();var e;await(e={captchaText:d},$r("/sms/checkCaptcha","POST",e).then((e=>e.text())).then((e=>"ERROR"!==e)))?(n?.(),t?.()):h(!0),f()}),[d,t]),y=l((()=>{(async()=>{s(URL.createObjectURL(await(e=>$r(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(e)}`,"GET").then((async e=>e?await e.blob():new Blob)))(e)))})()}),[]);return i(y,[]),o(ir,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg",head:o(Qc,{}),onClose:n,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:r}),o(nr,{className:"w-8",embedded:!0,onClick:y,children:o(G,{iconVersion:"normal",name:"RefreshIcon"})})]}),o(wn,{className:"w-[300px]",onChange:m,value:d,placeholder:"Введите код с картинки"}),u?o("div",{className:"text-error",children:"Неверный код"}):null,c("div",{className:"flex w-[310px] justify-between",children:[o(nr,{version:"secondary",onClick:close,children:"Вернуться"}),o(ur,{version:"secondary",disabled:!d,onClick:x,children:"Отправить"})]}),p?o(mr,{blur:!1}):null]})})})),td=d((({className:e,seconds:t})=>o("span",{className:e,children:nd(t)}))),nd=e=>[Math.floor(e/60),e%60].map((e=>String(e).padStart(2,"0"))).join(":"),ad=(e,t)=>{const n=s(null),a=l((()=>clearInterval(n.current)),[]),r=l((()=>{a(),n.current=setInterval((()=>e(a)),t)}),[e,t,a]);return i((()=>(r(),a)),[r,a]),{start:r,stop:a}};function id({seconds:e,period:t=1e3,onTick:n,onEnd:a}){const i=s(e),r=l((e=>{i.current||=0,i.current=Math.max(0,i.current-1);try{n?.(i.current)}finally{i.current<=0&&(e(),a?.())}}),[n,a]),{start:o}=ad(r,t);return l((e=>{i.current=e,o()}),[])}const ld=d((({values:e,setValues:t,hasError:n,errorText:r})=>{const[d,m]=a(0),u=s([]);i((()=>{u.current?.[d]?.focus()}),[d]);const h=l((n=>a=>{const{value:i}=a.currentTarget,l=i.slice(0,1);t(e.map(((e,t)=>t===n?l:e))),m(n+1)}),[e]),p=l((n=>a=>{const{key:i}=a;if("Backspace"===i&&!e[n]){const a=n>0?n-1:e.length-1,i=e.map(((e,t)=>t===a?"":e));t(i),m(a)}}),[e]),g=l((n=>{n.preventDefault();const a=n.clipboardData.getData("text"),i=e.map(((e,t)=>t<a.length?a[t]:e));t(i),m(i.length-1)}),[e]);return c("div",{className:"flex flex-col gap-2 text-center",children:[o("div",{children:e.map(((t,a)=>o("input",{type:"number",maxLength:1,value:t,onChange:h(a),onPaste:g,ref:e=>{u.current||(u.current=[]),u.current[a]=e},onFocus:e=>e.target.select(),onKeyDown:p(a),className:rd(a,e,n)},a)))}),n?o("div",{className:"text-error",children:r}):null]})})),rd=(e,t,n=!1)=>{const a=!t[e];return`w-16 sm:w-20 h-24 text-5xl text-center p-md m-2 border ${vn(!n||!a)} rounded-md caret-transparent outline-none`},sd=d((({isDisabled:e,onClick:t,text:n})=>o(nr,{type:"button",onClick:t,disabled:e,children:o(Oe,{font:"font-normal",children:n})}))),od=e=>{e&&(globalThis.sessionStorage.setItem("accessToken",e.access_token),globalThis.sessionStorage.setItem("refreshToken",e.refresh_token))},cd=({values:e,onSuccess:t})=>{const[n,r]=a(""),[s,{setTrue:o,setFalse:c}]=ln(!1),[d,m]=a(0),[u,h]=a(!1),[p,g]=a(0),f=l((()=>r("")),[]),x=Boolean(0===d&&u),y=p>2||x||!e.every(Boolean),b=l((async()=>{try{h(!1),m(0),g((e=>e+1)),o(),await(async e=>Lr("/sms/checkCode","POST",e).then(od))({smsText:e.join(""),smsCodesSetName:{key:"AUTHENTICATION"}}),f(),await(t?.(e.join("")))}catch{r(p>1?"Исчерпан лимит ввода смс-кода":"Неверный код")}finally{c()}}),[e,p]);return i((()=>{r(x?"Код просрочен":"")}),[x]),{handleSubmit:b,hasError:Boolean(n),errorText:n,isLoading:s,timeNextReq:d,isSubmitButtonDisabled:y,setTimeNextReq:m,setIsTimerStarted:h,setAttempts:g}},dd=d((({phone:e,code:t=!0,withDescription:n=!0,codeLength:r=4,consents:s,onSuccess:d=yn,onClose:m=yn})=>{const[u,h]=a(Array(r).fill("")),{handleSubmit:p,hasError:g,errorText:f,isLoading:x,timeNextReq:y,isSubmitButtonDisabled:b,setTimeNextReq:v,setIsTimerStarted:N,setAttempts:w}=cd({values:u,onSuccess:d}),C=pn(ed),S=Wt(e),I=id({seconds:y,onTick:v}),T=l((async()=>{var e;await(e={phoneNumber:S,smsCodesSetName:{key:"AUTHENTICATION"}},$r("/sms/sendCode","POST",e).then((e=>e.text())).then((e=>"OK"===e)))?(w(0),v(180),I(180),N(!0)):C.open({phoneNumber:S,sendCode:T})}),[S,I,m]);return i((()=>{T()}),[]),o(ir,{className:"my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m",onClose:m,children:c("div",{className:"flex flex-col gap-xl items-center rounded-md",children:[o(k,{className:"w-full",title:"Подтвердите номер телефона",description:`Мы отправили код на ${e}`,headlineVersion:"XS",isEmbedded:!0,as:"h6"}),t?o(ld,{values:u,setValues:h,errorText:f,hasError:g}):null,ud(y,T),n?c(Ae,{itemSize:"list-s",children:[o("span",{children:"Вводя код, я подтверждаю, что ознакомлен и подписываю: "}),o("ul",{children:s?.map(((e,t)=>o("li",{children:e},`${e}-${t}`)))})]}):null,md(b,p),x?o(mr,{blur:!1}):null]})})})),md=(e,t)=>o(sd,{text:"Далее",isDisabled:e,onClick:t}),ud=(e,t)=>e?c("div",{className:"flex flex-row text-l font-light text-base",children:["Получить новый код можно через",o(td,{className:"ml-1",seconds:e})]}):o(nr,{embedded:!0,onClick:t,children:o(Kr,{children:"Получить новый код"})}),hd={title:"Подпишите согласие на запрос в БКИ",description:"Согласие на запрос в Бюро кредитных историй (БКИ) ускорит решение по кредиту"},pd={title:"Вы уверены, что хотите отказаться от запроса в БКИ",description:"Согласие на запрос в Бюро кредитных историй (БКИ) повысит вероятность одобрения"},gd=[{id:"SIGNED",text:"Подписать"},{id:"REFUSE",text:"Отказаться"}],fd=d((({onSubmit:e=yn,onClose:t=yn})=>{const[n,i]=a(""),[r,s]=a(!1),d=Xs(2),m=l((()=>{e(n)}),[e,n]),u=l((e=>{i(e),"REFUSE"===e&&s(!0)}),[]),h=r?pd:hd;return o(ir,{className:"my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg px-5xl",onClose:t,children:c("div",{className:"flex flex-col gap-xl items-center",children:[o("div",{role:"button",onClick:d,children:o(w,{className:"text-center text-balance",headingType:"h2",title:h.title})}),o(C,{align:"text-center",children:h.description}),o(Wl,{className:"whitespace-normal",orientation:"horizontal",items:gd,value:n,onChange:u}),o(nr,{disabled:!n,type:"button",onClick:m,children:"Далее"})]})})})),xd=d((({title:e,icon:t,description:n,onClick:a=yn})=>c("button",{className:"flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green",type:"button",onClick:a,children:[o(ie,{image:{icon:t,iconVersion:"normal"},width:"78",height:"78"}),c("div",{className:"flex flex-col items-start gap-xs md:w-72 md:mr-lg",children:[o(Oe,{font:"font-medium",size:"text-s",children:e}),n?o(Oe,{color:"text-secondary-text",size:"text-xs",children:n}):null]})]}))),yd={email:"EMAIL",phone:"MAIN_PHONE",organizationPhone:"ORGANIZATION_PHONE"},bd={addressRegistration:"REGISTRATION",addressFact:"RESIDENTAL",organizationAddress:"WORK",addressCourier:"DELIVERY"},vd={incomeAverage:"INCOME_AVERAGE",mandatoryPayments:"MANDATORY_PAYMENTS",additionalIncome:"ADDITIONAL_INCOME",otherIncome:"OTHER_INCOME",otherPayments:"OTHER_PAYMENTS",rentalIncome:"RENTAL_INCOME",wages:"WAGES",retirementIncome:"RETIREMENT_INCOME"},Nd=e=>Object.entries(e).reduce(((e,[t,n])=>t in yd?[...e,{contactTypeCd:{key:yd[t]},value:n}]:e),[]),wd=e=>Object.entries(e).reduce(((e,[t,n])=>{if(t in bd){const a=Object.fromEntries(Object.entries(n??{}).filter((([e])=>!e.startsWith("qc"))).map((([e,t])=>[e,t??""])));return[...e,{addressType:{key:bd[t]},...a}]}return e}),[]),Cd=e=>{const{familyStatus:t,familyMembers:n,dependents:a,children:i,confirmationIncome:l,wages:r,mandatoryPayments:s,additionalIncome:o,otherIncome:c,otherPayments:d,rentalIncome:m,retirementIncome:u,snils:h,armyIdFlg:p,conscription:g}=e;return{maritalStatusCd:t,totalDependents:n,incomeCertificateCd:l,otherDependents:a,childrenDependents:i,militaryStatusCd:g,participantIncomes:(f={wages:r,mandatoryPayments:s,incomeAverage:Sd(r,u),additionalIncome:o,otherIncome:c,otherPayments:d,rentalIncome:m,retirementIncome:u},Object.entries(f).reduce(((e,[t,n])=>t in vd?[...e,{incomeTypeCd:{key:vd[t]},value:Number(n||0)}]:e),[])),snils:h?.replace(/[-\s]/g,""),armyIdFlg:p};var f},Sd=(e,t)=>Number(e)+Number(t),kd={WORK:"Работаю",RETIREE:"Пенсионер"},Id={BANK_STATEMENT:"Получаю зарплату на счет/карту в РСХБ",BANK_STATEMENT_PENS:"Получаю пенсию на счет/карту в РСХБ",PFR_CERTIFICATE:"Получаю зарплату на счет/карту в другом банке",OTHER:"Другое"},Td={credit_cash:"10",credit_cash_single_doc:"28",credit_mcx:"39",family_offer_credit:"41",gas_engine_fuel:"33",pension_credit:"12",ref_credit:"11",ref_credit_single_doc:"29",self_employed:"34",summer_cash:"35",summer_cash_pens:"36"},Rd={...Td,amur_card:"14",owner_card:"13",travel_card:"15"},Bd=e=>{const t=e?.find((e=>"WAGES"===e.incomeTypeCd.key))?.value,n=e?.find((e=>"MANDATORY_PAYMENTS"===e.incomeTypeCd.key))?.value,a=e?.find((e=>"ADDITIONAL_INCOME"===e.incomeTypeCd.key))?.value,i=e?.find((e=>"OTHER_INCOME"===e.incomeTypeCd.key))?.value,l=e?.find((e=>"OTHER_PAYMENTS"===e.incomeTypeCd.key))?.value,r=e?.find((e=>"RENTAL_INCOME"===e.incomeTypeCd.key))?.value,s=e?.find((e=>"RETIREMENT_INCOME"===e.incomeTypeCd.key))?.value;return{wages:t,mandatoryPayments:n,incomeAverage:Sd(t,s),additionalIncome:a,otherIncome:i,otherPayments:l,rentalIncome:r,retirementIncome:s}},Pd=e=>{const t=e?.find((e=>"REGISTRATION"===e.addressType.key)),n=e?.find((e=>"RESIDENTAL"===e.addressType.key)),a=e?.find((e=>"WORK"===e.addressType.key));return{addressRegistration:t,addressFact:n,organizationAddress:a}},Ed=e=>{const t=e?.find((e=>"EMAIL"===e.contactTypeCd.key))?.value,n=e?.find((e=>"MAIN_PHONE"===e.contactTypeCd.key))?.value,a=e?.find((e=>"ORGANIZATION_PHONE"===e.contactTypeCd.key))?.value;return{email:t,phone:n,organizationPhone:a}},Dd=(e,t)=>e?.key?{key:e.key,text:t?t[e.key]:e.value}:void 0,_d=d((function({task:e,isFromLead:t=!1,onClose:n=yn}){const a=bi(),i=Qt(),{participants:r,creditProgram:s,createdDate:d="",id:m}=e,u=Rd[s.code],h=Boolean(Td[s.code]),p=h?"/credit-lead":"/credit-card-lead",{id:g,profile:f}=r[0],x=l((()=>{const t=(e=>{const t=e.participants[0],{classCard:n,codeWord:a,paymentSystemTypeCd:i,currencyCode:l}=e,{loanAmount:r,creditPeriod:s,paymentTypeCd:o}=e,{birthDate:c,midname:d,name:m,surname:u,birthPlace:h,dulIssueDate:p,dulIssuedBy:g,dulNumber:f,dulSerie:x,dulSubdivisionCode:y,educationLevelCd:b,registrationDate:v,houseTypeCd:N,genderCd:w,participantContacts:C=[],participantAddresses:S=[],employmentContractDate:k,employmentTypeCd:I,organizationName:T,organizationInn:R,organizationActivityTypeCd:B,organizationTypeCd:P,organizationKindCd:E,employeesNumberCd:D,opf:_,seniority:A,generalSeniority:M,jobsNumber:O,lastWorkDuration:z,positionCd:V,maritalStatusCd:F,childrenDependents:L,totalDependents:$,otherDependents:j,militaryStatusCd:U,participantIncomes:q,snils:W,armyIdFlg:H,bankruptcyFlg:Y,shareholderFlg:G,nameLegalEntity:K,creditInRshbCd:X,payrollCardRshbFlg:J,consentInsuranceFlg:Z,incomeCertificateCd:Q}=t;return{currency:l?.key,paymentSystem:Dd(i),cardCategory:Dd(n),codeWord:a,limitedBirthday:c,middleName:d,name:m,surname:u,birthPlace:h,dulIssueDate:p,dulIssuedBy:g,dulNumber:f,dulSerie:x,dulSubdivisionCode:y,education:Dd(b),participantDateRegistration:v,housing:Dd(N),beginDate:k,employment:Dd(I,kd),organizationName:T,inn:R,employerActivities:Dd(B),organization:Dd(P),employerOrganization:Dd(E),amountWorkers:Dd(D),legalForm:_,generalSeniority:A?.toString(),experience5Years:M?.toString(),jobsNumber:O?.toString(),lastJobExperience:z?.toString(),positionOrganization:Dd(V),familyStatus:Dd(F),children:L?.toString(),familyMembers:$?.toString(),dependents:j?.toString(),conscription:Dd(U),confirmationIncome:Dd(Q,Id),snils:W,armyIdFlg:H,bankruptcyFlg:Y,shareholderFlg:G,legalEntityName:K,creditInRshbCd:Dd(X),calculator:{isInsurance:J,isSalaryClient:Z,moneyValue:r,monthsValue:s,isAnnuity:"ANNUITY"===o?.key},...Bd(q),...Pd(S),...Ed(C),...(ee=w,ee?.key?{sex:"MAN"===ee.key?"male":"female"}:null)};var ee})(e);a.participantId=g,a.taskId=m,a.profileId=f?.id,a.programId=u,a.leadForm=t,i.assign(p)}),[]),y=l((()=>{i.assign(h?"/natural/loans/all-goals":"/natural/creditcards/svoya")}),[]);return o(ir,{className:"my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0",onClose:n,children:c("div",{className:"flex flex-col gap-lg items-center mt-xs md:mt-0 mx-6xl",children:[o(w,{className:"whitespace-pre-wrap text-center",title:"Нашли черновик вашей заявки",headingType:"h5"}),c("div",{className:"flex flex-col gap-m max-w-lg",children:[o(xd,{title:"Продолжить заполнение черновика",icon:"BankColorIcon",description:d?`Черновик от ${qt(new Date(d))}`:"",onClick:x}),o(xd,{title:t?"Продолжить заполнение текущей заявки":"Создать новую заявку",icon:"NewLoanIcon",description:"На получение кредита",onClick:t?n:y})]})]})})})),Ad=d((function({onClose:e=yn}){const t=Qt(),n=l((()=>{t.assign("/natural/loans/all-goals")}),[]),a=l((()=>{t.assign("/")}),[]);return o(ir,{className:"my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg py-0 px-5xl",onClose:e,children:c("div",{className:"flex flex-col gap-lg",children:[o(w,{className:"text-center",title:"Заявки не найдены",headingType:"h3"}),o(C,{size:"text-l",align:"text-center",children:"По данному номеру не найдено незавершенных заявок. Вы можете заполнить новую заявку или вернуться на главную страницу"}),o(nr,{type:"button",className:"w-full",onClick:n,children:"Заполнить новую заявку"}),o(nr,{type:"button",version:"secondary",className:"w-full",onClick:a,children:"Вернуться на главную"})]})})})),Md=d((({onClose:e})=>{const t=Qt(),n=bi(),a=l((async()=>{const e=await(n={redirectUri:t.href},Lr("/esia/getLink","POST",n));var n;e?.link&&t.assign(e.link)}),[]),i=l((()=>{if(n.leadForm){const e={...n.leadForm};delete e.esiaAccountTypeCd,n.leadForm=e}e?.()}),[]);return o(ir,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg",onClose:i,children:c("div",{className:"flex flex-col gap-lg items-center rounded-md",children:[c("div",{className:"flex items-center justify-around w-full px-m",children:[c("ul",{className:"list-disc",children:[o("li",{children:"Вероятность одобрения выше"}),o("li",{children:"Без справок о доходах и трудоустройстве"}),o("li",{children:"С защитой Ваших данных"})]}),o(ie,{image:{icon:"GosUslugiIcon",iconVersion:"normal"},height:"70"})]}),c("div",{className:"flex flex-wrap gap-lg w-full",children:[o(nr,{type:"button",onClick:a,children:"Заполнить через Госуслуги"}),o(nr,{type:"button",version:"secondary",onClick:i,children:"Пропустить"})]})]})})})),Od=()=>{const e=new URLSearchParams(decodeURIComponent(globalThis.location?.search));return{utm_campaign:e.get("utm_campaign"),utm_medium:e.get("utm_medium"),utm_source:e.get("utm_source"),utm_content:e.get("utm_content"),utm_term:e.get("utm_term")}},zd=()=>yi(),Vd=({programId:e,nextStepLink:t})=>{const[n,{setTrue:i,setFalse:r}]=ln(!1),[s,o]=a(),c=(()=>{const e=zd();return l((({participantId:t,taskId:n,profileId:a,programId:i,formData:l})=>{e.participantId=t,e.taskId=n,e.profileId=a,e.programId=i,e.leadForm=l}),[])})(),d=(e=>{const{open:t}=pn(Md),n=Qt();return l((()=>{t({onClose:()=>n.assign(e)})}),[t,e])})(t),m=(e=>{const{open:t}=pn(fd),n=pn(dd),a=t=>async n=>{try{t&&await Hc({profile:{id:t,consentBkiFlg:!0,smsConsentBki:n}}),e()}catch(e){console.log(e)}},i=(t,i)=>async l=>{"SIGNED"===l&&t?n.open({phone:t,consents:["согласие на запрос информации в БКИ"],onSuccess:a(i)}):e()};return{open:(n,a)=>t({onSubmit:i(n,a),onClose:e})}})(d),u=pn(dd),h=(()=>{const{open:e}=pn(_d),{open:t}=pn(Ad);return{open:({task:n,isFromLead:a,onClose:i})=>{n?e({task:n,isFromLead:a,onClose:i}):t({})}}})();return{isSending:n,ok:s,handleSubmit:l((async t=>{try{i();const a=await(n={profile:{phone:Wt(t.phone)}},Lr("/public-data/createUserProfile","POST",n).then((e=>e?.profile?.id||null)));if(a&&t?.phone){const n=async()=>{await Ld({programId:e,profileId:a,formData:t,saveUserData:c}),u.close(),m.open(t.phone,a)},i=async()=>{try{const t=await(async e=>{const t=await Lr("/user-data/getLastStatus","POST",e);return"DRAFT"===t?.statusCd?t?.taskId:null})({profileId:a,programId:e});if(t){const e=await(async e=>await Lr("/user-data/getTaskById","POST",e)||void 0)({taskId:t});u.close(),h.open({task:e,isFromLead:!0,onClose:n})}else await n()}catch{o(!1)}},l=Fd(t);u.open({phone:t?.phone,consents:l,onSuccess:i}),r()}}catch{o(!1)}var n}),[])}},Fd=e=>Object.keys(Gs).filter((t=>e[t])).map((e=>Gs[e]?.text)),Ld=async({programId:e,profileId:t,formData:n,saveUserData:a})=>{const i=$d(n);await Hc(((e,t)=>{const{name:n="",surname:a="",middleName:i="",limitedBirthday: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:a,midname:i,birthDate:l&&qt(l,!0),email:s,phone:Wt(r),processPersonalDataFlg:Boolean(o),consentProviderFlg:Boolean(c),consentPfrFlg:Boolean(d),consentPhotoFlg:Boolean(m),consentAssignmentClaimsFlg:Boolean(u),consentCollectionFlg:Boolean(h),consentInformFlg:Boolean(p)}}})(t,i));const{taskId:l,participantId:r}=await(async e=>await Lr("/user-data/createDraftTask","POST",e)||{})({profileId:t,programId:e});try{await Yc((({participantId:e,taskId:t,profileId:n,formData:a})=>{const{name:i,surname:l,middleName:r,limitedBirthday:s,phone:o,email:c}=a;return{sendToBank:!0,taskKind:"SHORT",task:{taskSource:Qt().origin,id:t,participants:[{birthDate:s&&qt(s,!0),id:e,midname:r,name:i,surname:l,profile:{id:n},participantContacts:Nd({phone:o&&Wt(o),email:c}),roleCd:{key:"BORROWER",value:"Заемщик"}}],marketingInfo:Od()}}})({participantId:r,taskId:l,profileId:t,formData:i}))}catch(e){console.log(e)}a({participantId:r,taskId:l,profileId:t,programId:e,formData:n})},$d=e=>{const{consentOthersFlg:t,...n}=e;return{...n,consentCollectionFlg:t,consentAssignmentClaimsFlg:t,consentPhotoFlg:t}},jd={surname:"",name:"",middleName:"",limitedBirthday:void 0,phone:"",email:"",processPersonalDataFlg:!1,consentProviderFlg:!1,consentOthersFlg:!1,consentInformFlg:!1,consentPfrFlg:!1},Ud=(e,t)=>{if(t)return{...t,limitedBirthday:new Date(t?.limitedBirthday||0)};return{...Object.fromEntries(e.map((e=>[e.name,jd[e.name||""]])))}},qd=e=>{const{profile:t,addInfo:n,document:a,addressRegistration:i,addressFact:l}=e;return{name:t?.name,surname:t?.surname,middleName:t?.midname,limitedBirthday:t?.birthDate,phone:Gi(t?.phone),email:t?.email,dulIssueDate:a?.dulIssueDate,dulIssuedBy:a?.dulIssuedBy,dulNumber:a?.dulNumber,dulSerie:a?.dulSerie,dulSubdivisionCode:a?.dulSubdivisionCode,snils:n?.snils,birthPlace:n?.birthPlace,addressRegistration:Wd(i),addressFact:Wd(l),esiaAccountTypeCd:t?.esiaAccountType}},Wd=e=>{const{postcode:t,region:n,regionCode:a,locality:i,city:l,street:r,house:s,building:o,block:c,apartment:d}=e,m=[t,n,i||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:a?.key,fullAddress:m}},Hd=(e,t)=>{const n=Qt(),[a,{setTrue:s,setFalse:o}]=ln(!1),c=zd(),d=l((e=>{const t=e instanceof Function?e(m[u]):e;null!=t?m[u]=t:delete m[u]}),[m=c,u="leadForm"]);var m,u;const h=r((()=>Ud(e,c.leadForm)),[e,c.leadForm]),p=l((async(e,a,i)=>{s();try{const r=await(l={profileId:e,code:a,state:i,redirectUri:globalThis.location?.href},Lr("/esia/updateProfileEsia","POST",l));r&&d((e=>({...e,...qd(r)}))),n.assign(t)}finally{o()}var l}),[t]);return i((()=>{const e=Ls(globalThis.localStorage?.getItem("profileId")??""),t=new URLSearchParams(decodeURIComponent(globalThis.location?.search)),n=t.get("code"),a=t.get("state");e&&n&&a?p(e,n,a):(sessionStorage.removeItem("accessToken"),sessionStorage.removeItem("refreshToken"))}),[]),[h,{isLoading:a}]},Yd=d((({className:e,title:t,programId:n="",nextStepLink:a="/credit-lead",button:l,...s})=>{const d=r((()=>vr?.flatMap((e=>e?.inputs))||[]),[vr]),m=r((()=>Dl(d)),[d]),[h,{isLoading:p}]=Hd(d,a),{isSending:g,ok:f,handleSubmit:x}=Vd({programId:n,nextStepLink:a}),[,{field:y,onSubmit:b}]=un(h,{formValidator:m,onSubmit:x}),v=pn(lr);return i((()=>{void 0!==f&&v.open({ok:f})}),[f]),o(hn,{className:u("container space-y-m",e),title:t,...s,children:c("form",{onSubmit:b,className:"space-y-m relative",children:[p?o(mr,{blur:!1}):null,vr.map(((e,t)=>c("div",{className:u(Jl(e.columns),"grid gap-x-m"),children:[Zl(e.title),Uc({field:y,inputs:e?.inputs})]},`section-${t}`))),Wc(l,g)]})})})),Gd=d((({title:e,description:t})=>{const n=Te();return c("div",{className:"bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center",children:[o(ie,{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"})]})})),Kd=e=>e%2!=0,Xd="space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs",Jd=d((({topItemsCount:e=0,label:t,block:n,blocksToRender:a=[],...i})=>{const[l,r]=e>0?[a.slice(0,e),a.slice(e)]:[a,[]],[s,{toggle:d}]=ln(!1);return c("div",{className:u("space-y-2xs",{hidden:!a.length}),children:[c("div",{className:u(Xd),children:[P(l,{...i.options,parent:n}),Kd(l.length)?o(jt,{className:"col-span-6",...i}):null]}),c(Zr,{children:[c(Qr,{className:u(Xd),isUnfolded:s,children:[P(r,{...i.options,parent:n}),Kd(r.length)?o(jt,{className:"col-span-6",...i}):null]}),o(Jr,{className:u("text-h4",{hidden:e<1}),label:t,isUnfolded:s,disabled:!r?.length,dataTheme:i.options?.page?.colorPalette,onClick:d})]})]})})),Zd=(e=!1)=>e?"border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider":"",Qd=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),em=10;function tm(e=0){const t=Math.round(e*em);return Array.from({length:t}).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const nm=d((({className:e,style:t,idx:n,activeIndex:a,observerOptions:c,children:d,onIntersection:m})=>{const h=function(e,{sensitivity:t,rootRef:n}={}){const a=s(null),l=r((()=>({threshold:tm(t),root:n?.current})),[t,n?.current]);return i((()=>{if(!a.current)return;const t=new IntersectionObserver(e,l);return t.observe(a.current),()=>{t.disconnect()}}),[e,l]),a}(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===a),ref:h,role:"listitem",children:d})})),am=["min-w-full","lg:min-w-[50%]","lg:min-w-[33.3%]","lg:min-w-[25%]"],im=d((({className:e,itemClassName:t,containerRef:n,activeIndex:a,visibleItemCount:i=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(rm(n))}),[g,f]),v=i>0?r*Number(i)-1:0,N="vertical-list"===d,w="horizontal-list"===d,C={...w?lm(c,v):{},...N?Qd(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(nm,{className:u(m,i?am[i-1]:"",{"h-full":N},t),style:w?lm(c/4):{},activeIndex:a,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})),lm=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),rm=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),sm={"horizontal-list":"w-6","vertical-list":"h-6"},om=({activeIndex:e,onClick:t,listType:n="horizontal-list"})=>(a,i)=>o("div",{className:u("cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white",i===e?sm[n]:"w-2 h-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>t(i)},String(i)),cm=({activeIndex:e,onClick:t})=>(n,a)=>{const i=a===e,l=i?"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=i?"text-primary-text text-h6 py-xs":"text-l pb-2xs text-secondary-text group-data-secondary:text-white",s=i?"text-l":"text-m group-data-secondary:text-white/80";return c("button",{type:"button",onClick:()=>t(a),"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(a))},dm=e=>t=>e.scrollWidth/t,mm=e=>(t,n)=>{e.scrollBy({left:n*dm(e)(t),behavior:"smooth"})},um=({itemCount:e,onVisibleIndicesChange:t})=>{const n=s(null),[i,r]=a([]),o=l((e=>{r((t=>{return(n=t)===(a=e)||Boolean(n&&a&&n?.length===a?.length&&n.every(((e,t)=>e===a[t])))?t:e;var n,a})),t&&t(e)}),[t]),[c,d]=i.length?[wo()(i),vo()(i)]:[-1,-1],m=c>0,u=d<e-1,h=l((()=>{var t;n.current&&(m?mm(n.current)(e,-1):(t=n.current).scrollTo({left:t.scrollWidth,behavior:"smooth"}))}),[e,m]),p=l((()=>{n.current&&(u?mm(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}]},hm={"horizontal-list":"mx-auto mt-lg w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},pm=d((({className:e="",activeIndex:t=0,dotCount:n=0,listType:a="horizontal-list",version:r,navButtons:s=[],containerRef:c,containerScroll:d})=>{const m=Te(),[h,p]=um({itemCount:s.length}),g=gm(Boolean(s?.length));i((()=>{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(im,{containerRef:h,snapAlign:"snap-start",itemClassName:"h-36 flex items-stretch w-screen",gap:8,children:s.map(cm({activeIndex:t,onClick:f}))}):n?o("div",{className:u("flex gap-xs",hm[a],r?"group":"",e,{"pb-xl":s?.length&&m}),"data-ver":r,children:Array.from({length:n}).fill(null).map(om({activeIndex:t,onClick:f,listType:a}))}):null})),gm=(e=!1)=>({behavior:e?"auto":"smooth"}),fm=d((({className:e,name:t,...n})=>o(nr,{className:u("w-12 h-12 min-w-12 min-h-12",e),shape:"round",...n,children:o(G,{name:t,iconVersion:"",size:"small"})}))),xm=d((e=>o(fm,{name:"ArrowLeftIcon",version:"secondary",ariaLabel:"Пролистать влево",...e}))),ym=d((e=>o(fm,{name:"ArrowRightIcon",version:"secondary",ariaLabel:"Пролистать вправо",...e}))),bm="absolute top-0 bottom-0 z-40 hidden @lg:block w-20 pointer-events-none",vm=d((({className:e,scroll:t,hasBlur:n,arrowsPadded:a,isBottom:i})=>{const{canScrollLeft:l,canScrollRight:r,scrollLeft:s,scrollRight:d}=t,m=a&&!i;return c("div",{className:e,children:[n?Nm(t):null,l?o(xm,{className:u(wm(i),m?"left-1":"left-0"),onClick:s}):null,r?o(ym,{className:u(wm(i),m?"right-1":"right-0"),onClick:d}):null]})})),Nm=e=>c("div",{children:[e.canScrollLeft?o("div",{className:u(bm,"left-0 bg-opacity-from-white group-data-secondary:bg-none")}):null,e.canScrollRight?o("div",{className:u(bm,"right-0 bg-opacity-to-white group-data-secondary:bg-none")}):null]}),wm=(e=!1)=>u("absolute z-40",e?"bottom-[56px]":"top-[calc(50%-24px)]"),Cm=d((({className:e,version:t,gap:n=14,padding:a=16,visibleItemCount:i=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]=um({itemCount:y,onVisibleIndicesChange:f}),[N]=v.visibleIndicesRange;return c("div",{className:u(e,"vertical-list"===l?"relative h-full":""),children:[o(im,{containerRef:b,activeIndex:N,visibleItemCount:i,gap:n,padding:a,listType:l,snapAlign:r,minHeight:s,onVisibleIndicesChange:v.handleVisibleIndicesChange,children:g}),o(vm,{className:u(!d&&"hidden lg:block"),scroll:v,hasBlur:m,arrowsPadded:h,isBottom:Boolean(x?.length)}),o(pm,{className:u(!p&&"lg:hidden"),activeIndex:N,dotCount:y,listType:l,version:t,navButtons:x,containerRef:b,containerScroll:v})]})})),Sm=({blocksToRender:e,...t})=>o(Cm,{visibleItemCount:0,gap:0,arrowsPadded:!0,children:P(e,{...t.options,parent:t.block,renderProps:(e,t,n)=>o("div",{className:u("relative min-w-80",Zd(!0)),children:R(e,t)},String(n))})}),km=d((({blocksSection:e,blocksToRender:t=[],notFound:n,...a})=>{switch(e?.view){case"grid":return c("div",{children:[Im(n,t),o(Jd,{...e,...a,blocksToRender:t})]});case"carousel":return c("div",{className:"relative",children:[Im(n,t),Sm({...a,blocksToRender:t})]});default:return null}})),Im=(e,t)=>e&&!t.length?o(Gd,{...e}):null,Tm=e=>t=>t.reduce(((t,n,a)=>t.length?t.concat({...e,key:`sep-${a}`},n):[n]),[]),Rm=d((({value:e,onChange:t,items:n=[],multiple:a})=>n.map((n=>o(Fi,{text:n?.title,value:[e].flatMap((e=>e)).includes(n.value),onChange:()=>(n=>{if(!t)return;const i=e?.includes(n);t(a?i?(e||[]).filter((e=>e!==n)):[...e||[],n]:i?[]:[n])})(n.value),type:a?"checkbox":"radio"},n.value))))),Bm=d((({children:e,filtrationSchema:t,resetButton:n,field:a,reset:i})=>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,Tm(o("div",{className:"h-full w-px bg-gray hidden @4xl:block"}))(Object.entries(t).map(Pm(a)).filter(Boolean))]}),n?o("div",{children:o(nr,{type:"reset",className:"w-full @4xl:w-56 @4xl:ml-s",onClick:i,children:n?.text})}):null]}))),Pm=e=>([t,n])=>{const a=n?.type;return"array"===a?Em(t,e)(n):null},Em=(e,t)=>n=>{const a=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(Oe,{size:"text-m",font:"font-medium",color:"text-primary-text",children:n.title})}):null,o(Rm,{items:a,multiple:!n?.single,...t(e)})]},e)},Dm=e=>e;function _m(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const Am=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,Mm=(e,t)=>Object.entries(e).map((([n,a])=>"number"==typeof a?Array.isArray(t[n])?((e,t)=>n=>Am(t[e])||Am(n[e])||n[e]?.includes(t[e]))(n,e):((e,t)=>n=>Am(t[e])||Am(n[e])||Om(t[e])<=Om(n[e]))(n,e):"object"==typeof a&&"min"in a&&"max"in a?((e,t)=>n=>Am(t[e])||Am(n[e])||Om(t[e]?.min)>=Om(n[e]?.min)&&Om(t[e]?.min)<=Om(n[e]?.max))(n,e):Array.isArray(a)?((e,t)=>n=>Am(t[e])||Am(n[e])||t[e]?.every((t=>n[e]?.includes(t))))(n,e):((e,t)=>n=>Am(t[e])||Am(n[e])||t[e]===n[e])(n,e))).every((e=>e(t))),Om=e=>Number(e||0),zm=(e,{block:t,page:n,normalize:a=Dm})=>{const i=t?.blocks||[],[l,s]=un(e),o=r((()=>_m(i,i.map((e=>zt(e.content,n?.fallback))))),[i,n?.fallback]),c=l===e?i:((e,t)=>(n=Dm)=>e?.filter((([,e])=>Mm(t,n(e)||{}))).map((([e])=>e)))(o,l)(a);return[l,{blocksToRender:c,blocksWithProps:o},s]},Vm={},Fm={},Lm=Lt((({className:e,filtrationSchema:t=Vm,consumerField:n={},resetButton:a,...i})=>{const[,{blocksToRender:l},{field:r,reset:s}]=zm(Fm,{block:i.block,page:i.options?.page}),d=o(Vn,{className:"w-64",label:n?.title,options:$m(n),...r("consumer",{parse:({key:e})=>[e],format:([e]=[])=>$m(n).find((t=>t.key===e))||{key:""}})});return c(g,{className:u(e),defaultPadding:"p-0",version:"transparent",...i,children:[o(Bm,{filtrationSchema:t,field:r,reset:s,children:c("div",{children:[d,o("div",{children:o(nr,{type:"reset",className:"mt-lg w-64",onClick:s,version:a?.version,children:a?.text})})]})}),o(km,{blocksToRender:l,...i})]})}),{childrenTypes:["CarouselTariffsCard"],childSchema:e=>({...e?.filtrationSchema,...e?.consumerField?{consumer:e?.consumerField}:{}})}),$m=e=>_m(e.items?.enum||[],e.items?.enumNames||[]).map((([e,t])=>({key:e,text:t}))),jm=(e=!1)=>e?"text-left":"text-center",Um={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},qm=d((({className:e,iconBgVersion:t="primary",size:n,icon:a,...i})=>{const l=`${n?.width??44}px`;return a?o("div",{className:u("rounded-icon object-fit flex justify-center items-center",Um[t],e),style:{width:l,height:l},role:"figure",children:o(G,{name:a,width:"54%",...i})}):null})),Wm=d((({className:e="",title:t,benefitList:n,...a})=>{const i=Te();return c(g,{className:e,defaultPadding:"p-6xl",...a,children:[t?o(w,{headingType:"h3",as:"h2",className:jm(i),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(Hm)}):null]})})),Hm=({label:e,description:t,__html:n,icon:a,isDotted:i=!1,iconBgVersion:l},r)=>c("div",{className:"flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]",role:"listitem",children:[a?.icon?o(qm,{className:"shrink-0",iconBgVersion:l,...a}):null,a?.src?o(ie,{className:"shrink-0",image:a}):null,e?c("div",{className:"@sm:h-full space-y-xs",children:[o(w,{headingType:"h6",children:e}),o(Oe,{size:"text-l",color:"text-secondary-text group-data-secondary:text-white/80",font:"font-light",children:t}),n?o(Ae,{__html:n,isDotted:i,itemSize:"list-s"}):null]}):null]},String(r)),Ym=(e,t,n)=>{return o(Cm,{children:e.map((a=n,({icon:e,title:t,description:n},i)=>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(Oe,{size:"text-h6",font:"font-normal",align:a,children:t}):null,e?o(ie,{image:e,height:"180",className:"w-auto mx-auto"}):null,n?o(Oe,{size:"text-h6",font:"font-normal",align:a,children:n}):null]},String(i))))});var a},Gm=d((({bonusBenefits:e,cardTextAlign:t="text-center",className:n="",columnsCount:a="4",subtitle:i,title:l,...r})=>c(g,{className:u("space-y-3xl",n),defaultPadding:"p-6xl",...r,children:[o(k,{defaultPadding:"",title:l,description:i,headlineVersion:"M"}),e?.length?Ym(e,0,t):null]}))),Km={start:"justify-start",center:"justify-center",end:"justify-end"},Xm=d((({buttons:e,className:t="",align:n,...a})=>{const i=n&&u("flex",Km[n]);return o(g,{className:u("!bg-transparent",i,t),defaultPadding:"p-0",...a,children:qe(e)})})),Jm=d((({rate:e=0,title:t="Ставка",unit:n,fractionDigits:a=2,depositeName:i,isShowDepositeName:l,color:r="text-secondary-text"})=>c("div",{children:[o(Oe,{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:Ge(a,{fixed:!0})(e)}),n?o("span",{className:"text-7xl mt-5",children:n}):null]}),i&&l?o("div",{className:"absolute bottom-2 w-full text-left whitespace-nowrap",children:i}):null]})]}))),Zm=d((({title:e="Ставка"})=>c("div",{className:"space-y-s min-w-96",children:[o(Oe,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),o(G,{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:"Процентная ставка не найдена, выберите другие параметры"})})]}))),Qm=({title:e="Ставка",rate:t=0,unit:n="%",fractionDigits:a=2,color:i="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(Jm,{title:e,rate:t,unit:n,fractionDigits:a,color:i,...r})}),o(lo,{className:"lg:hidden",title:e,value:t,postfix:n,fractionDigits:a,fixed:!0,color:i,...r}),l]}):o(Zm,{title:e,...r}),eu={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},tu={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},nu=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:a}=e,[i,l]=((e,t,n)=>{const{maxBonus:a=5e3,prefMonthsNum:i=eu.prefMonthsNum,prefTravelBonusRate:l=eu.prefTravelBonusRate,prefRestBonusRate:r=.01,travelBonusRate:s=.015,restBonusRate:o=.01}=e,c=Math.min(Math.round(l*t)+Math.round(r*n),a);return[c,c*i+Math.min(Math.round(s*t)+Math.round(o*n),a)*(12-i)]})(t||tu,n,a);return{...t,...e,monthBonus:i,yearBonus:l}},au=Lt((({className:e="",title:t,calcSource:n,buttons:a,footnote:i,...l})=>{const[r,{field:s}]=un({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:d,maxSumTravel:m,minSumOther:h,maxSumOther:p,monthBonus:g,yearBonus:f}=nu(r,n);return o(eo,{className:e,title:t,...l,children:c("section",{className:u(to,e),children:[c("div",{className:no,children:[fo({title:"Сумма покупок в категории путешествия, ₽",min:d,max:m,step:500,isShowItems:!1,...s("travelExpenseValue")}),fo({title:"Сумма покупок в остальных категориях, ₽",min:h,max:p,step:500,isShowItems:!1,...s("restExpenseValue")})]}),o("div",{className:"mb-s",children:g>=0?Qm({title:"Баллов за месяц",rate:g,fractionDigits:0,unit:"",color:"text-primary-text"}):null}),c("div",{className:ao,children:[f>=0?o(lo,{title:"Баллов за год",value:f,color:"text-primary-text"}):null,qe(a,{isVertical:!0}),mo(i)]})]})})})),iu=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,lu=e=>po({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),ru=" (c капитализацией)",su=({income:e,finalSum:t,postfix:n="₽",buttons:a=[],footnotes:i=[],isCapitalization:l=!1})=>c("div",{className:ao,children:[o(lo,{title:`Доход в конце срока${l?ru:""}`,value:e,postfix:n,prefix:"+"}),o(lo,{title:`Сумма в конце срока${l?ru:""}`,value:t,postfix:n}),qe(a,{isVertical:!0}),i?.map(mo)]}),ou={UL:"businessdepositrates",IP:"selfemployeddepositrates"};const cu={minSum:1e3,maxSum:100000001,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,depositeName:"Депозит 'Стабильный'"},du=(e,t)=>{const{daysValue:n,moneyValue:a,isPartialWithdrawal:i,isReplenished:l,isMonthlyInterestPayment:r}=e,s=l||i,o=n<90||n>730,c=function(e){const t=e?.rateType?ou[e?.rateType]:"",{data:n}=Zn(t?`${Ht}/depositrates/${t}`:null,_t);return Array.isArray(n)?n:[]}(t),d=c?.find((e=>r===e.isMonthlyInterestPayment&&mu(s,e)&&Io(a,["minSum","maxSum"],e)&&Io(n,["minDays","maxDays"],e)))||cu,{rate:m}=d,u=uu(m,e),h=a+u,p=c||[cu];return{...d,...ko(["minSum","maxSum"],p),...ko(["minDays","maxDays"],p),...e,isDisabledOperatingDeposit:o,income:u,finalSum:h}},mu=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,uu=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:a,daysValue:i}=t;return n?Math.round(a*Math.pow((1200+e)/1200,i/30)-a):Math.round(a*e*i/365/100)},hu=Lt((({className:e="",title:t,buttons:n,footnote:a,bottomFootnote:i,isShowDepositeName:l,defaultParams:r,rateParams:s,...d})=>{const[m,{field:h}]=un({moneyValue:oo(r,1e5),daysValue:co(r,60),isReplenished:Boolean(r?.isReplenished),isPartialWithdrawal:Boolean(r?.isPartialWithdrawal),isMonthlyInterestPayment:Boolean(r?.isMonthlyInterestPayment)}),p=du(m,s),{income:g,finalSum:f,rate:x,depositeName:y}=p;return o(eo,{className:e,title:t,...d,children:c("section",{className:u(to,e),children:[c("div",{className:no,children:[fo({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(ua,{items:[`От ${iu(b.min||0)}`,`До ${iu(b.max||0)}`],step:1,...b})),c("div",{className:"flex flex-col sm:flex-row gap-y-m gap-x-5xl",children:[pu(p,h),lu({title:"Выплата процентов",orientation:"vertical",...h("isMonthlyInterestPayment"),className:"sm:flex-col"})]})]}),Qm({rate:x,depositeName:y,isShowDepositeName:l}),su({income:g,finalSum:f,buttons:n,footnotes:[a,i]})]})});var b})),pu=(e,t)=>c("div",{className:"space-y-s",children:[o(Oe,{color:"text-secondary-text",font:"font-light",children:"Параметры"}),c("div",{className:"flex flex-col gap-y-lg sm:gap-y-s",children:[o(Za,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),o(Za,{disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal})]})]}),gu=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let n=1;for(;n<t.length;){const[e,a]=t[n-1],[i,l]=t[n];a>=i?t.splice(n-1,2,[e,Math.max(a,l)]):n++}return t},fu={minSum:5e4,maxSum:100000001,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0,isReplenish:!1,isWithdrawn:!1,type:""},xu=(e,t,n)=>{const{moneyValue:a,monthsValue:i}=e,l=t?.[0]?vu(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=>[bu({row:t,userInputParams:e,paramKey:"isReplenish",isExclude:o}),bu({row:t,userInputParams:e,paramKey:"isWithdrawn",isExclude:c}),bu({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:r}),bu({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:s}),d||e?.isNewClient===t?.isNewClient,Io(a,["minSum","maxSum"],t),Io(i||l,["minMonths","maxMonths"],t)].every(Boolean)))||fu,{rate:u}=m,h=yu(u,e),p=a+h,g=t||[fu];return{...m,...ko(["minSum","maxSum"],g),...ko(["minMonths","maxMonths"],g),availableMonths:gu(g.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,n=1)=>Array.from({length:Math.abs(t-e)/n+1},((a,i)=>t>=e?e+i*n:e-i*n)))(e,t))),...e,defaultMonth:l,income:h,finalSum:p}},yu=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:a,monthsValue:i}=t;return n?Math.round(a*Math.pow((1200+e)/1200,i)-a):Math.round(a*e*30*i/365/100)},bu=({row:e,userInputParams:t,paramKey:n,isExclude:a})=>a||t[n]===e[n],vu=(e,t)=>e+Math.round((t-e)/2),Nu=(e="rub")=>"rub"===e,wu=(e,t)=>{const{minMonths:n,maxMonths:a}=ko(["minMonths","maxMonths"],Iu(t,e?.currency)),i=e.monthsValue||Math.round((n+a)/2);return{monthsValue:sa(i,n,a)}},Cu=(e,t)=>{const{minSum:n,maxSum:a}=ko(["minSum","maxSum"],Iu(t,e?.currency)),i=e.moneyValue||n;return{moneyValue:sa(i,n,a)}},Su=(e,t)=>({currency:e?.currency??t?.map((e=>e.currency))?.[0]}),ku=e=>{const t=Nu(e?.currency?.key);return{isReplenish:t&&e?.isReplenish,isWithdrawn:t&&e?.isWithdrawn}},Iu=(e,t)=>{const{rates:n}=e?.find((e=>e?.currency.key===t?.key))??{};return n??e?.[0]?.rates},Tu=(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?po({title:"Пополнение",...t("isReplenish"),value:e.isReplenish,orientation:"vertical",items:[{id:"withReplenish",text:"С пополнением"},{id:"withoutReplenish",text:"Без пополнения"}],disabled:n}):null,e.isShowWithdrawn?po({title:"Снятие",...t("isWithdrawn"),value:e.isWithdrawn,orientation:"vertical",items:[{id:"wthDrawn",text:"Со снятием"},{id:"noWithdrawn",text:"Без снятия"}],disabled:n}):null]}),Ru(e.isShowReplenish||e.isShowWithdrawn),c("div",{className:"flex gap-lg",children:[e.isShowMonthlyInterestPayment?lu({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment,orientation:"vertical"}):null,e.isShowRemoteRegistration?(a={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration,orientation:"vertical"},po({...a,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]}),Ru(e.isShowNewClient),e.isShowNewClient?o(Za,{text:"Новый вкладчик",...t("isNewClient")}):null]});var a},Ru=(e=!1)=>e?o("div",{className:"border-b border-main-divider w-full"}):null,Bu={isMonthlyInterestPayment:"isMonthlyInterestPayment",isRemoteRegistration:"isRemoteRegistration",isReplenish:"isReplenish",isWithdrawn:"isWithdrawn",moneyValue:"minSum"},Pu={text:"₽",key:"rub"},Eu=Lt((({className:e,title:t,calcSource:n,buttons:a=[],footnote:r="",paramsViewSettings:s,defaultParams:d,...m})=>{const{rows:h}=n??{},p=h?.map((e=>e.currency))??[Pu],g=l((e=>t=>e?{...t,...ku(t),...Cu(t,e),...wu(t,e),...Su(t,e)}:t)(h),[h]),[f,{field:x}]=un({moneyValue:oo(d,2e4),monthsValue:co(d,1),isMonthlyInterestPayment:Boolean(d?.isMonthlyInterestPayment),isRemoteRegistration:Boolean(d?.isRemoteRegistration),isReplenish:Boolean(d?.isReplenish),isWithdrawn:Boolean(d?.isWithdrawn),isNewClient:Boolean(d?.isNewClient),currency:Pu},{normalizer:g}),y=x?.("currency")?.value??Pu,b=x?.("isNewClient")?.value,v=Iu(h,y),N=xu(f,v,s),{rate:w,income:C,finalSum:S,type:k=""}=N,I=l((()=>{xo({field:x,defParams:ro(v,b),calcParams:N,monthsValue:"minMonths",map:Bu})}),[x,h]);i((()=>{!Eo(d)&&v&&I()}),[d,h]);const T=w===ro(v,b)?.rate;return o(eo,{className:e,title:t,...m,children:c("section",{className:u(to,e),children:[c("div",{className:no,children:[c("div",{className:"flex gap-m",children:[fo({className:"w-full",title:`Сумма, ${y?.text}`,min:N.minSum,max:N.maxSum,...x("moneyValue"),value:N.moneyValue,postfix:y?.text,step:Du(y?.key)}),h&&h?.length>1?o(jn,{label:"Валюта",options:p,...x("currency")}):null]}),uo({title:"Срок, месяцев",min:N.minMonths,max:N.maxMonths,availableMonths:N.availableMonths,...x("monthsValue"),value:N.monthsValue}),Tu({...N,...s},x)]}),Qm({rate:w,children:Au(I,T)}),su({income:C,finalSum:S,buttons:[...a,_u(n?.buttons,k)],footnotes:[r],postfix:y?.text,isCapitalization:x("isMonthlyInterestPayment").value})]})})})),Du=(e="")=>Nu(e)?1e3:100,_u=(e=[],t="")=>{const{type:n,...a}=e.find((e=>e.type===t))??{};return a},Au=(e,t=!1)=>t?null:o(nr,{type:"button",version:"secondary",onClick:e,children:"Показать максимальную ставку"}),Mu=e=>Ou({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&Ou({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),Ou=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:a,viewSettingFieldKey:i})=>!!n&&!n[i]||t[a]===e[a],zu={minSum:1e4,maxSum:3e6,minSumOld:0,maxSumOld:25e5,minSumExtra:0,maxSumExtra:5e5,minMonths:13,maxMonths:60,rate:0,isExtraMoney:!1,isSalaryClient:!1,isInsurance:!0},Vu=(e,t,n)=>{const{moneyValue:a,monthsValue:i,oldMonthlyPayment:l,moneyExtra:r}=e,s=t?.rateRows||[zu],o=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>Mu({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:c,maxSum:d}=So(["minSum","maxSum"],o,s),{minMonths:m,maxMonths:u}=So(["minMonths","maxMonths"],o,s),h=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:a,monthsValue:i,oldMonthlyPayment:l,moneyExtra:r})=>e?.find((e=>Mu({row:e,userInputParams:t,paramsViewSettings:n})&&Io(a+r,["minSum","maxSum"],e)&&Io(l,["minSumOld","maxSumOld"],e)&&Io(r,["minSumExtra","maxSumExtra"],e)&&Io(i,["minMonths","maxMonths"],e)))||zu)({rateRows:s,userInputParams:e,paramsViewSettings:n,moneyValue:a,monthsValue:i,oldMonthlyPayment:l,moneyExtra:r}),{rate:p}=h,g=yo(p,e),f=e.oldMonthlyPayment-g;return{...h,...e,minSum:c,maxSum:d,minMonths:m,maxMonths:u,moneyValue:a,monthsValue:i,oldMonthlyPayment:l,moneyExtra:r,monthlyPayment:g,benefit:f}},Fu=Lt((({className:e="",title:t,calcSource:n,buttons:a,footnote:i,paramsViewSettings:l,...r})=>{const[s,{field:d}]=un({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isExtraMoney:!1,moneyValue:7e5,oldMonthlyPayment:0,monthsValue:48,moneyExtra:0}),m=Vu(s,n,l),h=go({title:"",mobileTitle:"Тип платежа",orientation:"vertical",...d("isAnnuity")});return o(eo,{className:e,title:t,...r,children:c("section",{className:u(to,e),children:[c("div",{className:no,children:[fo({title:"Остаток долга в других банках, ₽ ",step:500,min:m.minSum,max:m.maxSum-m.maxSumExtra,...d("moneyValue"),value:m.moneyValue}),fo({title:"Ежемесячный платёж в других банках, ₽",step:500,min:m.minSumOld,max:m.maxSumOld,...d("oldMonthlyPayment"),value:m.oldMonthlyPayment}),uo({title:"Новый срок кредита, месяцев",min:m.minMonths,max:m.maxMonths,...d("monthsValue"),value:m.monthsValue}),Lu({...m,...l},d),m.isExtraMoney?fo({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(ao,"@4xl:w-1/2"),children:[o(lo,{title:"Полная стоимость кредита",value:n?.totalLoanCost}),o(lo,{title:"Ставка",value:m?.rate,fractionDigits:2,postfix:"%"}),o(lo,{title:"Ежемесячный платёж",value:m.monthlyPayment,postfix:"₽"}),m.benefit>0?o(lo,{title:"Выгода в месяц",value:m.benefit,postfix:"₽"}):null,o("div",{className:"hidden sm:block mb-lg",children:h}),qe(a,{isVertical:!0}),mo(i)]})]})})})),Lu=(e,t)=>c("div",{className:"space-y-lg sm:space-y-s",children:[e.isShowSalaryClient?o(Za,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowInsurance?o(Za,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null,o(Za,{text:"Получить дополнительную сумму",...t("isExtraMoney"),value:e.isExtraMoney})]}),$u=d((e=>{const{onChange:t,min:n,max:a,defaultValue:i="0",fractionDigits:r=0,...s}=e,c=ra(e,{normalize:(e=i)=>n&&a?String(sa(Number(ju(e)),n,a)):ju(e),format:Ge(r)}),d=l((e=>t&&t(ju(e))),[t]);return o(wn,{onChange:d,...s,...c})})),ju=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),Uu=d((e=>o($u,{...e,fractionDigits:2,children:o("div",{className:"absolute right-4 bottom-4",children:o(Oe,{size:"text-xl",font:"font-light",children:"₽"})})}))),qu=new pi;function Wu(){return fi(qu)}ui(qu,new hi(globalThis?.sessionStorage));const Hu={private:"p2p/registerP2P",business:"b2c/registerB2C"},Yu=({onClose:e,errorCode:t,errorMessage:n})=>{const a=t?`Код ошибки - ${t}`:"Пожалуйста, повторите позднее";return o(ir,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto",onClose:e,children:c("div",{className:"flex flex-col gap-lg items-center rounded-md space-x-m",children:[o(ie,{image:{icon:"ResponseFailIcon",iconVersion:"normal"},width:"136",height:"136"}),o(k,{className:"w-full",title:"Ошибка перевода",description:a,headlineVersion:"XS",isEmbedded:!0}),n?c("div",{className:"bg-secondary-dark rounded-xl px-4 pt-4 pb-8 grid gap-4 grid-cols-12",children:[c("div",{className:"col-span-8",children:[" ",n]}),o("div",{className:"col-span-4",children:o(ie,{image:{icon:"ResponseFailIcon",iconVersion:"normal"}})})]}):null]})})},Gu=e=>{const t=pn(Yu),n=Wu(),a=Qt(),i="private"===e?"p2p":"b2c";return l((async({amount:l})=>{const r=await(async(e,t)=>{const n=Qt(),a={amount:String(t),currency:"643",returnUrl:`${n.origin}/p2p/success`,failUrl:`${n.origin}/p2p/failed`,language:"ru"},i=`${Ht}/payment/${Hu[e]}`;try{const e=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(a)});return e.ok?await e.json():null}catch(e){return null}})(e,l);(e=>Boolean(e?.formUrl)&&Boolean(e?.orderId))(r)&&(n.transaction={orderId:r.orderId,type:i,url:a.href},a.assign(`${i}/?formUrl=${encodeURIComponent(r.formUrl)}`)),(e=>Boolean(e?.errorMessage)&&0!==e?.errorCode)(r)&&t.open({errorCode:r.errorCode,errorMessage:r.errorMessage})}),[e])},Ku={amount:1500},Xu=d((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",button:a,formType:l="private",...r})=>{const[s,{setValue:d}]=ln(!1),m=Gu(l),[{amount:h},{field:p,onSubmit:f}]=un(Ku,{onSubmit:m});return i((()=>{d(h<=0)}),[h]),c(g,{className:u("flex flex-col items-center",e),defaultPadding:"p-6xl",...r,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",onSubmit:f,children:[o(Uu,{valid:!s,label:n,max:3e5,min:1,...p("amount",{parse:Number,format:String})}),o("input",{type:"hidden",name:"amount",value:h}),a?.text?o(ur,{className:"w-full mt-lg",disabled:s,children:a.text}):null]})]})})),Ju=({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(G,{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})]}),Zu="relative h-full",Qu={small:"lg:min-w-64",normal:"lg:min-w-80 xl:min-w-96",big:"lg:min-w-[515px]"},eh=({noCardBorder:e,cardSize:t="normal",isNavButtons:n=!1,...a})=>{const{blocks:i}=a.block||{},l=i?.some(ah),r=n?{defaultPadding:"p-6xl pb-m"}:{};return E({...a,renderProps:(n,a,i)=>c("div",{className:th(n,{someCardsHighlighted:l}),children:[R(n,a,{className:nh(n,{someCardsHighlighted:l,showBorder:!e,cardSize:t}),...r,blockIndex:i}),ah(n)?Ju({className:"absolute top-0 -right-4 z-40"}):null]},String(i))})},th=(e,{someCardsHighlighted:t})=>u(Zu,t&&(ah(e)?"pt-3xl":"pt-3xl sm:pt-16")),nh=(e,{someCardsHighlighted:t,showBorder:n,cardSize:a="normal"})=>u(Zu,"min-w-80",Qu[a],t&&(ah(e)?"pt-3xl sm:pt-16":"pt-3xl"),Zd(n),n&&"h-full"),ah=e=>e?.content&&"isHighlighting"in e.content&&e.content.isHighlighting,ih=Lt((({className:e,visibleItemCount:t=0,noCardBorder:n,arrowsPadded:a=!0,isGap:i=!0,cardSize:l="normal",isNavButtons:r=!1,...s})=>o(g,{className:u(e),defaultPadding:"p-6xl",...s,children:o(Cm,{className:u("relative max-w-full"),visibleItemCount:t,snapAlign:"snap-start",gap:i?16:0,padding:0,arrowsPadded:a,navButtons:r?lh(s?.block?.blocks):[],hasBlur:!0,children:eh({noCardBorder:n,cardSize:l,isNavButtons:r,...s})})})),{childrenTypes:["CarouselCard","CarouselCatalogCard","CarouselRecommendationCard","CarouselTariffsCard","RichTextBlock","ProductBlock"],childSchema:()=>({isHighlighting:{title:"Выделить карточку",type:"boolean"}})}),lh=e=>e?.map((e=>{const t=e?.content;return{title:t?.title,description:t?.additionalDescription||t?.description}}))??[],rh="z-10 border border-solid w-full h-full",sh=u(rh,"absolute hidden @xl:block border-transparent"),oh=d((({className:e,title:t,description:n,button:a,...i})=>o(g,{className:u("sm:pl-6xl sm:pb-4xl @container-normal",e),defaultPadding:"p-0",...i,children:c("div",{className:"relative h-full",children:[o("div",{className:u(sh,"top-9 right-12 bg-green-dark")}),o("div",{className:u(sh,"top-6 right-8 bg-green")}),o("div",{className:u(sh,"top-3 right-4 bg-green-light")}),c("div",{className:u(rh,"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}),qe([a],{className:"mt-m sm:mt-6xl sm:justify-center",isVertical:!0})]})]})}))),ch={black:"bg-black",white:"bg-white"},dh=d((({className:e="",title:t,description:n,image:a,price:i,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(Pe,{className:"h-full",padding:d,title:o(k,{title:t,description:n,headlineVersion:"XS",isEmbedded:!0,align:s}),rightImage:a?.src?o(ie,{className:"flex justify-center align-center mb-xl",image:a}):null,buttons:qe([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(Oe,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),r.map(mh)]}):null,i?c(Oe,{size:"text-h3",align:"text-left",children:[i," ₽"]}):null]})}))),mh=(e,t)=>o("figure",{className:`w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${ch[e]}`},String(t)),uh=d((({icon:e,...t})=>{const n=fe(),{text:a,href:i,target:l,onClick:r}=n(t);return a?o("div",{className:u("p-3 rounded-lg bg-white text-secondary-text flex justify-center"),children:o("a",{role:"link",href:i,target:l,onClick:r,children:c("div",{className:"flex flex-col items-center gap-3 break-words max-w-[150px]",children:[e?o(ie,{className:"w-7 h-7 md:w-12 md:h-12",image:{...e,iconVersion:e?.iconVersion},alt:a}):null,o("div",{className:"font-light md:font-normal text-primary-text text-center text-xs md:text-sm whitespace-wrap",children:a})]})})}):null})),hh=d((({className:e,additionalDescription:t,description:n,links:a,title:i,...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:i,description:n,as:"h1",align:"text-left",headlineVersion:"XL"}),o(k,{className:"pt-m",description:t,align:"text-left",isEmbedded:!0})]}),a?.length?ph(a):null]})}))),ph=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(uh,{...e},String(t))))}),gh=(e,t)=>e?.map((({aspectName:e,params:n})=>({aspectName:e,params:"mindboxEvent"===e?{...n,eventJson:t}:n}))),fh=d((({className:e="",href:t,target:n,onClick:a,data:i,children:l})=>{const r=fe()({href:t,target:n,onClick:a});return o(t?"a":"div",{className:u("block",e),...t?r:{},role:t?"link":"none",...ye(i),children:l})})),xh=[{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"}}],yh=d((({className:e="",media:t,showButtonText:n,stretched:i,version:l="white",children:r})=>{if(!t?.length)return null;const[s,d]=a(),m=t?.map((e=>{const{href:t,icon:a,text:i}=e,{iconMapped:r}=(e=>xh.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{})(t),o=Ue(a)?a:r,c=n?{text:i}:{text:""},m=e?.icon?.iconVersion||"color";return!s&&i&&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},bh(i));return c("div",{className:u("flex flex-col gap-m xl:gap-xs",e),"aria-label":"Социальные сети",children:[o("div",{className:"flex gap-xs",children:qe(m,{className:vh(s??!1,i??!1,n),buttonClassName:h})}),r?o(Oe,{size:"text-s",font:"font-light",color:"text-secondary-text",children:r}):null]})})),bh=(e=!1)=>e?"flex-1 @lg:flex-initial justify-center":"",vh=(e,t,n=!1)=>u(e||t?"basis-full":"",t&&(!n||!e)?"flex-nowrap":""),Nh=d((({className:e,padding:t,description:n,additionalDescription:a,href:i,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(fh,{href:i,target:m,className:"h-full",data:gh(v),children:c(Pe,{className:"h-full",defaultPadding:"p-2xl",padding:t,insetTitle:o(k,{title:h,description:n,headlineVersion:"XS",isEmbedded:!0,align:p}),...tt(Ue(l)?o(ie,{image:l}):null,x),buttons:d.length?o(yh,{media:d,stretched:!0,showButtonText:!0,version:N?.version}):null,isImageAlwaysOnRight:y,isImageSecondary:b,imageAlign:"center",children:[o(je,{benefits:f}),s?o(Ae,{__html:s,isDotted:r,itemSize:"list-s"}):null,wh(a,p)]})})}))),wh=(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,Ch=new he,Sh=(e,t)=>{const{title:n,description:a,buttons:i}=e;return c("div",{className:"py-lg border-b border-main-divider",children:[n?o("div",{className:"opacity-80",children:o(Oe,{size:"text-m",color:"text-secondary-text",children:n})}):null,a?o("div",{className:"mt-2xs",children:o(Oe,{size:"text-xl",color:"text-primary-text",children:a})}):null,i?.length?o("div",{className:"text-primary-main",children:qe(i)}):null]},String(t))},kh=d((({className:e="",title:t,align:n="text-center",icon:s,button:d,visibleCellsCount:m=1,cardCells:h=[],options:p,data:f,...x})=>{const y=r((()=>h.map(Sh)),[h]),[b,v]=r((()=>m>0?[y.slice(0,m),y.slice(m)]:[y,[]]),[m,y]),[N,C]=a(!1);i((()=>Ch.subscribe("fold",(e=>{e&&p?.parent&&e.parent===p?.parent&&C(e.isUnfolded)}))),[p?.parent]);const S=l((()=>{Ch.fire("fold",{type:"fold",isUnfolded:!N,parent:p?.parent})}),[N,p?.parent]);return c(g,{className:u("flex flex-col",e),defaultPadding:"p-2xl",...x,children:[o(ie,{className:"self-center",image:s}),t?o(w,{className:u("pt-xs",n),headingType:"h5",title:t}):null,d?.text?o(Ce,{className:"w-full mt-m mb-lg",...d}):null,v.length?c(Zr,{children:[c("div",{children:[b,o(Qr,{isUnfolded:N,children:v})]}),h.length>=m?o(Jr,{className:"mt-m",label:N?"Скрыть":"Подробнее о тарифе",isUnfolded:N,embedded:!0,data:f,onClick:S}):null]}):o("div",{children:b})]})})),Ih=()=>{const e=globalThis.sessionStorage?.getItem("refreshToken"),t=globalThis.sessionStorage?.getItem("accessToken"),n=globalThis.localStorage.getItem("taskId"),a=Qt();if(!t||!e||!n)return a.assign("/"),()=>{};const i=async()=>{const n=await $r("/auth/refresh","POST",{refresh_token:e,access_token:t});if(401==n?.status&&a.assign("/"),n?.ok){const e=await n.json();globalThis.sessionStorage.setItem("refreshToken",e.refresh_token),globalThis.sessionStorage.setItem("accessToken",e.access_token)}};i();const l=setInterval(i,24e4);return()=>clearInterval(l)},Th=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]})]}))),Rh=d((({step:e=1,totalSteps:t=6,stepsTitles:n=[]})=>{const a=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(Th,{step:a,showPercentage:!1})]})})}));var Bh;!function(e){e.process="IN_PROCESS",e.ok="APPROVED",e.fail="CANCELLED",e.pre_decision="PRE_DECISION",e.approved="APPROVED",e.cancelled="CANCELLED",e.failed="FAILED",e.draft="DRAFT",e.rework="REVISION"}(Bh||(Bh={}));const Ph=e=>Lr("/user-data/getTaskStatus","POST",e),Eh=e=>$r("/user-data/sendSignalToProcess","POST",e),Dh=d((({title:e,interval:t=0,onEnd:n=yn})=>{const[i,l]=a(t);id({seconds:t,onTick:l,onEnd:n});const r=100-(t-i)/t*100;return c("div",{children:[e?o(k,{title:e,headlineVersion:"S"}):null,c("div",{className:"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) ${r}%, rgb(125, 126, 127) 0deg)`}}),o("div",{className:"z-10 flex items-center justify-center w-20 h-20 rounded-full bg-white text-primary-text text-m",children:o(td,{seconds:i})})]})]})})),_h=d((({title:e,description:t,sectionInfoTitle:n,sectionInfo:a,sectionAdditionalTitle:i,sectionInfoAdditional:l,buttonText:r,interval:s,onExpire:d=yn,...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"}),s?o(Dh,{interval:s,onEnd:d}):null]}),o(Ah,{title:n,items:a}),o(Ah,{title:i,items:l,countColumns:!0}),r?o(pr,{href:"/natural",text:r,version:"primary",className:"w-full mt-lg"}):null]}))),Ah=({title:e,items:t,countColumns:n=!1})=>{const a=Te();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(Oe,{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",Jl(n||a?1:2)),children:t.map(((e,t)=>o("div",{children:Mh(e)},t)))}):null]})]}):null},Mh=({label:e,description:t})=>c("div",{className:"flex flex-col",children:[o(Oe,{color:"text-secondary-text",size:"text-l",children:e}),o(Oe,{color:"text-primary-text",size:"text-xl",children:t})]}),Oh=d((()=>o(_h,{title:"Благодарим Вас за ожидание",description:"В настоящий момент Банк не может одобрить Вашу заявку на кредит. Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк».",buttonText:"Вернуться на главную"}))),zh=d((({onExpire:e})=>{const{statusInfo:t}=bi();return o(_h,{interval:300,title:"Заявка успешно отправлена",description:"Не закрывайте окно, скоро сообщим результат",sectionInfoTitle:"Заявленные условия по кредиту",sectionInfo:[{label:"Название продукта",description:"Кредитная карта"},{label:"Категория",description:t?.cardCategory}],onExpire:e})})),Vh=d((()=>{const{statusInfo:e}=bi(),t="courier"===e?.methodObtain;return o(_h,{title:"Благодарим вас за ожидание, но нам требуется больше времени для принятия решения",description:t?"":"Посетите выбранное отделение банка с необходимыми документами и так завершите оформление кредита.",sectionAdditionalTitle:t?"Адрес доставки":"В отделении Банка",sectionInfoAdditional:t?[{description:e?.deliveryAddress}]:[{label:"Регион",description:e?.regionRetail},{label:"Адрес",description:e?.addressRetail}],sectionInfo:[{label:"Основные документы:",description:"- Паспорт РФ"}],buttonText:"Вернуться на главную"})})),Fh=d((()=>{const{statusInfo:e}=bi();return o(_h,{title:"Банк одобрил вам кредит",description:"Обратитесь в отделение банка, чтобы завершить оформление и получит ваш кредит",sectionInfo:Lh(e),buttonText:"Вернуться на главную"})})),Lh=e=>{const t=[{label:"Название продукта",description:"Кредитная карта"},{label:"Категория",description:e?.cardCategory}];return e?.deliveryAddress&&e?.deliveryDate?t.concat([{label:"Адрес доставки",description:e?.deliveryAddress},{label:"Дата доставки",description:qt(e?.deliveryDate)}]):t},$h=["CREATE_APPLICATION_SHORT_SIGNAL","CREATE_APPLICATION_LOAN_V3_SIGNAL"],jh=d((()=>{const[e,t]=a(Bh.process),{taskId:n}=bi();i((()=>{(async()=>{for(const e of $h)await Eh({signalType:e,taskId:n})})()}),[n]);const r=l((async e=>{const a=await Ph({taskId:n});a&&a?.statusCd!==Bh.process&&(e(),t(a.statusCd))}),[n]);ad(r,3e4);const s=l((()=>t(Bh.rework)),[]);return Uh(e,s)})),Uh=(e,t)=>({IN_PROCESS:o(zh,{onExpire:t}),CANCELLED:o(Oh,{}),FAILED:o(Oh,{}),DRAFT:o(Oh,{}),APPROVED:o(Fh,{}),PRE_DECISION:o(Fh,{}),REVISION:o(Vh,{})}[e]||o(Vh,{})),qh=e=>(t,n)=>t.filter((e=>e)).map((t=>[Wh(n,e),Hh(t,e),Xh(t,e),Yh(t,e),Gh(t,e),Kh(t,e)].some(Boolean)?{...t,required:!1}:t)),Wh=(e,t)=>2===e&&"RETIREE"===t("employment")?.key,Hh=({name:e},t)=>"partInBusiness"===e&&"BUSINESS_OWNER"!==t("positionOrganization")?.key,Yh=({name:e,filledByEsia:t},n)=>e?.startsWith("address")&&n("esiaAccountTypeCd")?.key&&t,Gh=({name:e},t)=>"addressFact"===e&&t("addressMatch"),Kh=({condition:e},t)=>e?.name&&e?.values?.some((n=>{const a=t(e?.name);return n!==(a?.key??a)})),Xh=({name:e},t)=>"snils"===e&&Jh(t),Jh=e=>"PFR_CERTIFICATE"!==e("confirmationIncome")?.key,Zh={...Fc,...Lc},Qh=({field:e,inputs:t,params:n})=>t.map(Xl(e,n,Zh)),ep=({sections:e,field:t,step:n,params:a})=>e?.map((({inputs:e=[],columns:i,title:l},r)=>{const s=qh(tp(t))(e,n);return c("div",{className:u(Jl(i),"grid gap-x-m"),children:[Zl(l),Qh({field:t,inputs:s,params:a})]},`section-${r}`)})),tp=e=>t=>e(t)?.value,np=d((({step:e,isSending:t,onPrevStep:n})=>{const a=5===e;return c("div",{className:"flex justify-between gap-m",children:[o(nr,{version:"secondary",disabled:0===e,onClick:n,children:"Назад"}),o(ur,{isLoading:t,children:a?"Отправить заявку":"Далее"})]})})),ap=e=>{const{bankruptcyFlg:t,shareholderFlg:n,legalEntityName:a,creditInRshbCd:i}=e;return{bankruptcyFlg:t,shareholderFlg:n,nameLegalEntity:a,creditInRshbCd:i}},ip=e=>{const{currency:t,paymentSystem:n,cardCategory:a,codeWord:i}=e;return{currencyCode:t?{key:t}:void 0,paymentSystemTypeCd:n,classCard:a,codeWord:i}},lp=e=>{const{beginDate:t,employment:n,organizationName:a,inn:i,legalForm:l,organization:r,amountWorkers:s,employerActivities:o,employerOrganization:c,generalSeniority:d,lastJobExperience:m,experience5Years:u,jobsNumber:h,organizationPhone:p,organizationAddress:g,positionOrganization:f,partInBusiness:x}=e;return{employmentContractDate:qt(t||"",!0),employmentTypeCd:n,organizationName:a,organizationInn:i,organizationActivityTypeCd:o,organizationTypeCd:r,organizationKindCd:c,employeesNumberCd:s,opf:l,seniority:d,generalSeniority:u,jobsNumber:h,lastWorkDuration:m,positionCd:f,participantContacts:Nd({organizationPhone:p&&Wt(p)}),participantAddresses:wd({organizationAddress:g}),ownershipShare:"BUSINESS_OWNER"===f?.key?x:""}},rp=e=>{const{name:t,surname:n,middleName:a,limitedBirthday:i="",phone:l="",email:r,sex:s,birthPlace:o,dulIssueDate:c="",dulIssuedBy:d,dulNumber:m,dulSerie:u,dulSubdivisionCode:h,education:p,participantDateRegistration:g="",housing:f,addressRegistration:x,addressFact:y}=e;return{birthDate:qt(i,!0),midname:a,name:t,surname:n,birthPlace:o,dulIssueDate:qt(c,!0),dulIssuedBy:d,dulNumber:m,dulSerie:u,dulSubdivisionCode:h,educationLevelCd:p,registrationDate:qt(g,!0),houseTypeCd:f,participantContacts:Nd({phone:Wt(l),email:r}),participantAddresses:wd({addressRegistration:x,addressFact:y}),genderCd:s?{key:"male"===s?"MAN":"WOMAN"}:void 0}},sp=e=>{const{methodObtain:t,deliveryDate:n=""}=e,a="courier"===t;return a?{courierDeliveryFlg:a,deliveryDate:(i=n.toString().replace(/(GMT)[+-]\d{4}/,"GMT+0000"),i?new Date(i).toISOString().split(".")[0]:""),deliveryTimeCd:{value:"TIME_2"},office:{id:"3"}}:{};var i},op=e=>{const{addressRetail:t,methodObtain:n}=e;return t?.key&&"office"===n?{office:{id:t.key}}:{}},cp=(e,t)=>{switch(e){case 0:default:return{};case 1:return rp(t);case 2:return lp(t);case 3:return Cd(t);case 4:return ap(t);case 5:return(e=>{const{addressCourier:t,methodObtain:n}=e;return"courier"===n?{participantAddresses:wd({addressCourier:t})}:{}})(t)}},dp=[{paymentSystem:{key:"",text:""},currency:"810",codeWord:""},{surname:"",name:"",middleName:"",sex:"",limitedBirthday:void 0,birthPlace:"",phone:"",email:"",dulSerie:void 0,dulNumber:void 0,dulIssueDate: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:""},familyMembers:void 0,dependents: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:{key:"",text:""},addressRetail:{key:"",text:""},bankEmployeeCode:void 0,addressCourier:{fullAddress:"",fiasCode:""},methodObtain:"office",deliveryDate:void 0}],mp=e=>{try{return e?new Date(e):void 0}catch(e){return}},up=({step:e,onNextStep:t,onFinish:n})=>{const[a,{setTrue:i,setFalse:s}]=ln(!1),o=5===e,c=bi(),d=r((()=>((e,t)=>({...dp[e],...t,limitedBirthday:mp(t?.limitedBirthday),dulIssueDate:mp(t?.dulIssueDate),participantDateRegistration:mp(t?.participantDateRegistration),beginDate:mp(t?.beginDate),deliveryDate:mp(t?.deliveryDate)}))(e,c.leadForm)),[e,c.leadForm]),m=l((e=>{const{leadForm:t}=c;o&&e.ok&&t&&(c.statusInfo={regionRetail:t?.regionRetail?.text,addressRetail:t?.addressRetail?.text,deliveryAddress:t?.addressCourier?.fullAddress,cardCategory:t?.cardCategory?.text,deliveryDate:t?.deliveryDate,methodObtain:t?.methodObtain},c.leadForm=d)}),[o,d]),u=l((async a=>{i(),c.leadForm=a;try{const{taskId:i,profileId:l,participantId:r}=c;if(i&&l&&r){const t=await Yc((({participantId:e,taskId:t,profileId:n,formData:a,step:i=0})=>({sendToBank:!0,taskKind:"UNITED",task:{taskSource:Qt().origin,id:t,...op(a),authorizedAgentId:a?.bankEmployeeCode,participants:[{id:e,profile:{id:n},roleCd:{key:"BORROWER",value:"Заемщик"},...cp(i,a)}],...ip(a),...sp(a)}}))({participantId:r,taskId:i,profileId:l,step:e,formData:a}));m(t)}o?n?.():t()}catch(e){}finally{s()}}),[o,m]);return[d,u,a]},hp=d((({step:e,sections:t,onPrevStep:n,onNextStep:a,onFinish:i})=>{const s=r((()=>t?.flatMap((e=>e?.inputs||[]))),[t]),d=l((t=>Dl(qh((e=>t[e]))(s,e))(t)),[s]),[m,u,h]=up({step:e,onNextStep:a,onFinish:i}),[,{field:p,onSubmit:g}]=un(m,{formValidator:d,onSubmit:u});return c("form",{onSubmit:g,className:"space-y-m",children:[ep({sections:t,field:p,step:e}),o(np,{isSending:h,step:e,onPrevStep:n})]})})),pp=[[{title:"Персональные данные",columns:2,inputs:[{name:"surname",required:!0,dadata:!0,filledByEsia:!0},{name:"name",required:!0,dadata:!0,filledByEsia:!0},{name:"middleName",dadata:!0,filledByEsia:!0},{name:"sex",required:!0},{name:"limitedBirthday",required:!0,filledByEsia:!0},{name:"birthPlace",required:!0,filledByEsia:!0},{name:"phone",required:!0,filledByEsia:!0},{name:"email",required:!0,dadata:!0}]},{title:"Паспортные данные",columns:2,inputs:[{name:"dulSerie",required:!0,filledByEsia:!0},{name:"dulNumber",required:!0,filledByEsia:!0},{name:"dulIssueDate",required:!0,filledByEsia:!0},{name:"dulSubdivisionCode",required:!0,dadata:!0,filledByEsia:!0}]},{inputs:[{name:"dulIssuedBy",required:!0,dadata:!0,filledByEsia:!0},{name:"education",required:!0}]},{title:"Адрес регистрации по месту жительства",columns:1,inputs:[]},{inputs:[{name:"addressRegistration",required:!0,dadata:!0,filledByEsia:!0},{name:"addressMatch"}]},{columns:2,inputs:[{name:"participantDateRegistration",required:!0}]},{title:"Адрес фактического проживания (место пребывания РФ)",inputs:[]},{columns:2,inputs:[{name:"housing",required:!0}]},{inputs:[{name:"addressFact",required:!0,dadata:!0}]}],[{title:"Данные о трудоустройстве",inputs:[]},{inputs:[{name:"infoCard",label:"Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске"}]},{inputs:[{name:"employment",required:!0},{name:"organizationName",required:!0,dadata:!0}]},{columns:2,inputs:[{name:"inn",required:!0,dadata:!0},{name:"legalForm",required:!0}]},{inputs:[{name:"organization",required:!0},{name:"amountWorkers",required:!0}]},{columns:2,inputs:[{name:"employerActivities",required:!0},{name:"employerOrganization",required:!0},{name:"generalSeniority",required:!0},{name:"lastJobExperience",required:!0},{name:"experience5Years",required:!0},{name:"jobsNumber",required:!0}]},{inputs:[{name:"organizationPhone",label:"Телефон работодателя",required:!0},{name:"beginDate",required:!0}]},{columns:2,inputs:[{name:"positionOrganization",required:!0},{name:"partInBusiness",required:!0,condition:{name:"positionOrganization",values:["BUSINESS_OWNER"]}}]},{title:"Адрес работодателя",inputs:[]},{inputs:[{name:"organizationAddress",required:!0,dadata:!0}]}],[{title:"Семейное положение"},{columns:1,inputs:[{name:"familyStatus",required:!0}]},{columns:1,inputs:[{name:"dependents",required:!0}]},{columns:2,inputs:[{name:"familyMembers"},{name:"children",required:!0}]},{title:"Совокупный доход"},{inputs:[{name:"infoCard",label:"Сумма основного и дополнительных доходов после вычета налога"}]},{columns:1,inputs:[{name:"confirmationIncome",required:!0}]},{columns:1,inputs:[{name:"wages",required:!0}]},{columns:1,inputs:[{name:"mandatoryPayments",required:!0}]},{columns:1,inputs:[{name:"snils",required:!0}]},{columns:1,inputs:[{name:"conscription",required:!0}]},{columns:2,inputs:[{name:"armyIdFlg"}]}],[{title:"Дополнительные сведения",columns:1,inputs:[]},{inputs:[{name:"disablePeopleFlg"}]},{inputs:[{name:"bankruptcyFlg"}]},{inputs:[{name:"shareholderFlg"}]},{inputs:[{name:"legalEntityName"}]},{inputs:[{name:"creditInRshbCd"}]}]],gp=[[{title:"Параметры карты",inputs:[]},{inputs:[{name:"currency",required:!0},{name:"paymentSystem",required:!0},{name:"cardCategory",required:!0},{name:"codeWord",required:!0}]}],...pp,[{title:"Адрес",columns:1,inputs:[]},{inputs:[{name:"addressCourier",dadata:!0,condition:{name:"methodObtain",values:["courier"]},required:!0},{name:"deliveryDate",condition:{name:"methodObtain",values:["courier"]},required:!0},{name:"comment",condition:{name:"methodObtain",values:["courier"]}}]},{inputs:[{name:"regionRetail",required:!0,condition:{name:"methodObtain",values:["office"]}},{name:"addressRetail",required:!0,condition:{name:"methodObtain",values:["office"]}}]},{inputs:[{name:"infoCard",label:"Если представитель Банка помогал Вам в заведении заявки, введите здесь его код",condition:{name:"methodObtain",values:["office"]}},{name:"bankEmployeeCode",condition:{name:"methodObtain",values:["office"]}}]}]],fp=["Параметры карты","Персональные данные","Данные о трудоустройстве","Семейное положение и доход","Дополнительные сведения","Выбор способа получения"],xp=d((({className:e,...t})=>{const[n,r]=a(0),d=s(null),m=l((()=>d?.current?.scrollIntoView({behavior:"smooth"})),[d]);i(Ih,[]);const u=l((()=>{r((e=>Math.min(e+1,6))),m()}),[]),h=l((()=>{r((e=>Math.max(e-1,0))),m()}),[]),p=gp[n],[f,{setTrue:x}]=ln(!1);return o(g,{className:e,...t,children:c("div",{ref:d,className:"container grid grid-cols-12",children:[f?null:o(Rh,{stepsTitles:fp,step:n,totalSteps:6}),o("div",{className:"py-lg px-5xl mt-2xs bg-white col-span-12",children:f?o(jh,{}):o(hp,{step:n,sections:p,onNextStep:u,onPrevStep:h,onFinish:x},String(n))})]})})})),yp=d((({step:e=1,totalSteps:t=5,stepsTitles:n=[]})=>{const a=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(Th,{step:a,showPercentage:!1})]})})})),bp=d((({title:e,description:t,sectionInfoTitle:n,sectionInfo:a,sectionAdditionalTitle:i,sectionInfoAdditional:l,buttonText:r,interval:s,onExpire:d=yn,...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"}),s?o(Dh,{interval:s,onEnd:d}):null]}),o(vp,{title:n,items:a}),o(vp,{title:i,items:l,countColumns:!0}),r?o(pr,{href:"/natural",text:r,version:"primary",className:"w-full mt-lg"}):null]}))),vp=({title:e,items:t,countColumns:n=!1})=>{const a=Te();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(Oe,{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",Jl(n||a?1:2)),children:t.map(((e,t)=>o("div",{children:Np(e)},t)))}):null]})]}):null},Np=({label:e,description:t})=>c("div",{className:"flex flex-col",children:[o(Oe,{color:"text-secondary-text",size:"text-l",children:e}),o(Oe,{color:"text-primary-text",size:"text-xl",children:t})]}),wp=d((()=>o(bp,{title:"Благодарим Вас за ожидание",description:"В настоящий момент Банк не может одобрить Вашу заявку на кредит. Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк».",buttonText:"Вернуться на главную"}))),Cp=d((({onExpire:e})=>{const{statusInfo:t}=bi();return o(bp,{interval:300,title:"Заявка успешно отправлена",description:"Не закрывайте окно, скоро сообщим результат",sectionInfoTitle:"Заявленные условия по кредиту",sectionInfo:[{label:"Название продукта",description:"Кредит на любые цели"},{label:"Цель кредита",description:"На любые цели"},{label:"Сумма",description:`${t?.calculator?.moneyValue?.toLocaleString()??"0"} ₽`},{label:"Срок кредита",description:`${t?.calculator?.monthsValue??"0"} мес`},{label:"Тип платежа",description:t?.calculator?.isAnnuity?"Аннуитетный":"Дифференцированный"}],onExpire:e})})),Sp=d((()=>{const{statusInfo:e}=bi();return o(bp,{title:"Благодарим вас за ожидание, но нам требуется больше времени для принятия решения",description:"Посетите выбранное отделение банка с необходимыми документами и так завершите оформление кредита.",sectionAdditionalTitle:"В отделении Банка",sectionInfoAdditional:[{label:"Регион",description:e?.regionRetail},{label:"Адрес",description:e?.addressRetail}],sectionInfo:[{label:"Основные документы:",description:"- Паспорт РФ"}],buttonText:"Вернуться на главную"})})),kp=d((()=>{const{statusInfo:e}=bi();return o(bp,{title:"Банк одобрил вам кредит",description:"Обратитесь в отделение банка, чтобы завершить оформление и получит ваш кредит",sectionInfo:[{label:"Название продукта",description:"Кредит на любые цели"},{label:"Ставка",description:"14,5%"},{label:"Ежемесячный платеж",description:"86 052 ₽"},{label:"Срок кредита",description:e?.calculator?.monthsValue+" мес"},{label:"Тип платежа",description:e?.calculator?.isAnnuity?"Аннуитетный":"Дифференцированный"}],buttonText:"Вернуться на главную"})})),Ip=["CREATE_APPLICATION_SHORT_SIGNAL","CREATE_APPLICATION_LOAN_V3_SIGNAL"],Tp=d((()=>{const[e,t]=a(Bh.process),{taskId:n}=bi();i((()=>{(async()=>{for(const e of Ip)await Eh({signalType:e,taskId:n})})()}),[n]);const r=l((async e=>{const a=await Ph({taskId:n});a&&a?.statusCd!==Bh.process&&(e(),t(a.statusCd))}),[n]);ad(r,3e4);const s=l((()=>t(Bh.rework)),[]);return Rp(e,s)})),Rp=(e,t)=>({IN_PROCESS:o(Cp,{onExpire:t}),CANCELLED:o(wp,{}),FAILED:o(wp,{}),DRAFT:o(wp,{}),APPROVED:o(kp,{}),PRE_DECISION:o(kp,{}),REVISION:o(Sp,{})}[e]||o(Sp,{})),Bp=({field:e,inputs:t,params:n})=>t.map(Xl(e,n,{...Fc})),Pp=({sections:e,field:t,step:n,params:a})=>e?.map((({inputs:e=[],columns:i,title:l},r)=>{const s=qh(Ep(t))(e,n);return c("div",{className:u(Jl(i),"grid gap-x-m"),children:[Zl(l),Bp({field:t,inputs:s,params:a})]},`section-${r}`)})),Ep=e=>t=>e(t)?.value,Dp=d((({step:e,onPrevStep:t,isSending:n})=>{const a=5===e;return c("div",{className:"flex justify-between gap-m",children:[o(nr,{version:"secondary",disabled:0===e,onClick:t,children:"Назад"}),o(ur,{isLoading:n,children:a?"Отправить заявку":"Далее"})]})})),_p={annuity:{key:"ANNUITY",value:"Аннуитетный"},differential:{key:"DIFFERENTIAL",value:"Дифференцированный "}},Ap=e=>{const{moneyValue:t,monthsValue:n,isAnnuity:a}=e?.calculator??{};return{loanAmount:t,creditPeriod:n,paymentTypeCd:_p[a?"annuity":"differential"]}},Mp=e=>{const{addressRetail:t}=e;return{office:t?.key?{id:t.key}:void 0}},Op=(e,t)=>{switch(e){case 0:return(e=>{const{isInsurance:t,isSalaryClient:n}=e?.calculator??{};return{payrollCardRshbFlg:t,consentInsuranceFlg:n}})(t);case 1:return rp(t);case 2:return lp(t);case 3:return Cd(t);case 4:return ap(t);default:return{}}},zp=[{calculator:{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,dulIssueDate: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:{key:"",text:""},addressRetail:void 0,bankEmployeeCode:void 0}],Vp=e=>{try{return e?new Date(e):void 0}catch(e){return}},Fp=({step:e,onNextStep:t,onFinish:n})=>{const[a,{setTrue:i,setFalse:s}]=ln(!1),o=5===e,c=bi(),d=r((()=>((e,t)=>({...zp[e],...t,limitedBirthday:Vp(t?.limitedBirthday),dulIssueDate:Vp(t?.dulIssueDate),participantDateRegistration:Vp(t?.participantDateRegistration),beginDate:Vp(t?.beginDate),deliveryDate:Vp(t?.deliveryDate)}))(e,c.leadForm)),[e,c.leadForm]),m=l((e=>{const{leadForm:t}=c;o&&e.ok&&t&&(c.statusInfo={regionRetail:t?.regionRetail?.text,addressRetail:t?.addressRetail?.text,calculator:{monthsValue:t?.calculator?.monthsValue,moneyValue:t?.calculator?.moneyValue,isAnnuity:t?.calculator?.isAnnuity}},c.leadForm=d)}),[o,d]),u=l((async a=>{i(),c.leadForm=a;try{const{taskId:i,profileId:l,participantId:r}=c;if(i&&l&&r){const t=await Yc((({participantId:e,taskId:t,profileId:n,formData:a,step:i=0})=>({sendToBank:!0,taskKind:"UNITED",task:{taskSource:Qt().origin,id:t,authorizedAgentId:a?.bankEmployeeCode,participants:[{id:e,profile:{id:n},roleCd:{key:"BORROWER",value:"Заемщик"},...Op(i,a)}],...Ap(a),...Mp(a),esiaAccountTypeCd:{key:a?.esiaAccountTypeCd?.key}}}))({participantId:r,taskId:i,profileId:l,step:e,formData:a}));m(t)}t(),o&&n?.()}catch(e){}finally{s()}}),[o,m]);return[d,u,a]},Lp=d((({step:e,sections:t,programsSource:n,onPrevStep:a,onNextStep:i,onFinish:s})=>{const{programId:d}=bi(),m=n?.[d??""],u=r((()=>t?.flatMap((e=>e?.inputs??[]))),[t]),h=l((t=>Dl(qh((e=>t[e]))(u,e))(t)),[u]),[p,g,f]=Fp({step:e,onNextStep:i,onFinish:s}),[,{field:x,onSubmit:y}]=un(p,{formValidator:h,onSubmit:g});return c("form",{onSubmit:y,className:"space-y-m",children:[Pp({sections:t,field:x,step:e,params:{calcData:m}}),o(Dp,{step:e,isSending:f,onPrevStep:a})]})})),$p=[[{columns:1,inputs:[{name:"calculator"}]}],...pp,[{title:"Отделение Банка",columns:1,inputs:[]},{inputs:[{name:"regionRetail",required:!0}]},{inputs:[{name:"addressRetail",required:!0}]},{title:"Код представителя Банка",columns:1,inputs:[]},{inputs:[{name:"infoCard",label:"Если представитель Банка помогал Вам в заведении заявки, введите здесь его код"}]},{inputs:[{name:"bankEmployeeCode"}]}]],jp=["","Персональные данные","Данные о трудоустройстве","Семейное положение и доход","Дополнительные сведения","Отделение Банка"],Up=Lt((({className:e,programsSource:t,...n})=>{const[r,d]=a(0),m=s(null),u=l((()=>m?.current?.scrollIntoView({behavior:"smooth"})),[m]);i(Ih,[]);const h=l((()=>{d((e=>Math.min(e+1,5))),u()}),[]),p=l((()=>{d((e=>Math.max(e-1,0))),u()}),[]),f=$p[r],x=0===r,[y,{setTrue:b}]=ln(!1);return o(g,{className:e,...n,children:c("div",{ref:m,className:"container grid grid-cols-12",children:[x||y?null:o(yp,{stepsTitles:jp,step:r,totalSteps:5}),o("div",{className:"py-lg px-5xl mt-2xs bg-white col-span-12",children:y?o(Tp,{}):o(Lp,{step:r,sections:f,programsSource:t,onNextStep:h,onPrevStep:p,onFinish:b},String(r))})]})})})),qp=e=>"number"==typeof e?.minMonths&&"number"==typeof e?.maxMonths,Wp=(e,t)=>Array.from({length:t-e+1},((t,n)=>e+n)),Hp=1e9,Yp={sum:{min:1e4,max:Hp},period:3},Gp=Lt((({className:e,filtrationSchema:t={},resetButton:n,sumInput:a,periodInput:i,...l})=>{const[,{blocksToRender:r,blocksWithProps:s},{field:d,reset:m}]=zm(Yp,{block:l.block,page:l.options?.page,normalize:e=>({...e,period:Kp(e)})}),h=s.map((([,e])=>e?.paramsSource?.rows?.[0]?.rates)),p=Xp(h);return c(g,{className:u("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...l,children:[o(Bm,{filtrationSchema:t,resetButton:n,field:d,reset:m,children:c("div",{className:"@4xl:max-w-xs space-y-lg",children:[o(Uu,{label:a?.title,min:500,max:Hp,...d("sum",{parse:e=>({min:Number(e),max:Hp}),format:({min:e})=>String(e)})}),o(ua,{title:i?.title,items:["От 3 мес","До 5 лет"],list:p,...d("period")})]})}),o(km,{blocksToRender:r,...l})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>({...e?.filtrationSchema||{},paramsSource:{type:"object",title:"Адрес справочника"}})}),Kp=e=>At((e?.paramsSource?.rateRows||[]).filter(qp).flatMap((e=>Wp(e.minMonths,e.maxMonths)))),Xp=e=>At(e.flatMap((e=>e||[])).filter(qp).flatMap((e=>Wp(e.minMonths,e.maxMonths)))).sort(((e,t)=>e-t))||[],Jp=[{key:"10"},{key:"50"},{key:"100"}],Zp=({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(Vn,{className:"min-w-20",onChange:n,value:{key:String(e)},options:Jp,iconVersion:"black"})]})},Qp="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",eg=(e,t)=>{const{currentPage:n,onPageChange:a,totalPages:i}=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!==i&&((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,i)?o("div",{onClick:()=>a(l),className:Qp,"aria-label":`Страница ${l}`,children:l},String(t)):null},tg={width:"24",height:"24"},ng=({currentPage:e,onPageChange:t,totalPages:n})=>{const a=r((()=>Array.from({length:n}).fill({currentPage:e,onPageChange:t,totalPages:n})),[n,e]),i=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:i,children:o(G,{name:"ArrowLeftIcon",iconVersion:"black",imageClassName:ag(1===e),...tg})}),c("div",{className:"flex @lg:gap-2xs",children:[e>1?o("div",{onClick:d,className:Qp,"aria-label":"Страница 1",children:"1"}):null,e>3?o("div",{className:"py-m @lg:px-s",children:"..."}):null,a.map(eg),e<n-2?o("div",{className:"py-m @lg:px-s",children:"..."}):null,e<n?o("div",{onClick:m,className:Qp,"aria-label":`Страница ${n}`,children:n}):null]}),o("div",{onClick:s,children:o(G,{className:"rotate-180",name:"ArrowLeftIcon",iconVersion:"black",imageClassName:ag(e===n),...tg})})]})},ag=e=>e?"opacity-20":"cursor-pointer hover:opacity-60",ig=({currentPage:e,onPageChange:t,totalPages:n,itemCount:a,onItemCountChange:i})=>c("div",{className:"mt-3xl flex justify-between flex-col @lg:flex-row items-center select-none",role:"navigation","aria-label":"Пагинация",children:[o(ng,{currentPage:e,onPageChange:t,totalPages:n}),a&&i?o(Zp,{itemCount:a,onItemCountChange:i}):null]}),lg=d((({className:e,value:t,autoFocus:n,onChange:a,onFocus:i,placeholder:r="Поиск по сайту"})=>{const s=l((e=>{a&&a(e.target?.value||"")}),[a]);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(ie,{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",bn),value:t,type:"text",name:"search-bar-input",placeholder:r,autoFocus:n,onChange:s,onFocus:i})]})})),rg=d((({field:e,onClearFilter:t,filtrationState:n})=>c("div",{className:"grid grid-cols-12 mb-3xl @lg:space-x-xl",children:[o(lg,{className:"col-span-12 @lg:col-span-4 mt-auto",placeholder:"Поиск",...e("query")}),o(qa,{className:"col-span-12 @lg:col-span-3 mt-4 @lg:mt-0",label:"Период от",maxDate:n.endDate,...e("startDate")}),o(qa,{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(nr,{type:"reset",className:"w-full",version:"secondary",onClick:t,children:"Очистить"})})]}))),sg=d((({title:e,timestamp:t,publicId:n})=>{const a=fe(),{href:i}=a({href:`${Ht}/depository/${n}/file`});return c("div",{className:"flex gap-3 items-center py-lg border-gray border-opacity-50 border-b",children:[o(qm,{className:"shrink-0",icon:"DocDownloadIcon",iconVersion:"black"}),c("div",{className:"flex flex-col gap-x-6xl lg:flex-row lg:items-center",children:[t?o(Oe,{size:"text-m","font-weight":"font-light",children:qt(t)}):null,o("a",{className:"text-h6 hover:text-primary-active",href:i,download:!0,"aria-label":"Скачать",children:e})]})]},n)})),og=`${Ht}/depository`,cg={startDate:void 0,endDate:void 0,query:""},dg=Lt((({className:e,...t})=>{const[n,i]=a(0),[r,s]=a(10),[d,{field:m,reset:h}]=un(cg),{totalPages:p=0,items:f=[]}=(({size:e,page:t,query:n,startDate:a,endDate:i})=>{const l=a?qt(a,!0):"",r=i?qt(i,!0):"",s=new URLSearchParams(og);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}=Zn(og+o,_t);return{items:c?.content,totalPages:c?.totalPages}})({size:r,page:n,...d}),x=l((e=>i(e-1)),[]),y=l((e=>{r!==e?(s(e),i(0)):s(e)}),[]);return c(g,{className:u(e,"container p-6xl"),...t,children:[o(rg,{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(Oe,{size:"text-m",color:"text-secondary-text",children:"Дата"})}),o("span",{className:"col-span-8 @lg:col-span-10 hidden @lg:block",children:o(Oe,{size:"text-m",color:"text-secondary-text",children:"Тема"})})]}),f.length?f.map((e=>o(sg,{...e},String(e.publicId)))):o(Gd,{title:"Ничего не найдено",description:"Попробуйте очистить фильтры"}),o(ig,{currentPage:n+1,onPageChange:x,totalPages:p,itemCount:r,onItemCountChange:y})]})]})})),mg=e=>"Image"===e?.contentType&&e?.image?o(ie,{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,ug=d((({className:e="",title:t,description:n,error:a,button:i,...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:mg(a)}),o(k,{title:t,description:n,headlineVersion:"XL",isEmbedded:!0,className:"mb-2xl last:mb-0"}),i?.text?o(Ce,{version:i?.version,text:i?.text,...i}):null]}))),hg=`${Ht}/region`;function pg(e="Москва"){return yi().location??{name:e}}function gg(e="Москва"){const t=yi(),n=l((async()=>{if(!t.location){const n=await Dt(hg);t.location=n??{name:e}}}),[t,e]);return Zn(hg,n),t}var fg;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD",e.CNY="CNY"}(fg||(fg={}));const xg=new Intl.NumberFormat("ru",{style:"currency",currency:fg.RUB}),yg=e=>e?xg.format(e):"",bg="text-m font-light text-secondary-text ",vg=`${bg} text-left`,Ng=`${bg} pl-5xl text-center`,wg=`${bg} pl-5xl text-right`,Cg={USD:"DollarIcon",EUR:"EuroIcon",CNY:"ChineseYuanRenminbiIcon"},Sg=d((({className:e,exchangeCurrencyItems:t})=>c("table",{className:u("h-fit w-full",e),children:[o("thead",{children:c("tr",{children:[o("th",{className:vg,children:o(Oe,{size:"text-m",children:"Валюта"})}),o("th",{className:Ng,children:o(Oe,{size:"text-m",children:"Купить"})}),o("th",{className:wg,children:o(Oe,{size:"text-m",children:"Продать"})})]})}),o("tbody",{children:t.map(kg)})]}))),kg=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(ie,{image:{icon:Cg[t]},width:"24",height:"24"}):null,o(Oe,{size:"text-h6",children:t})]})}),o("td",{className:"pt-m pl-5xl text-center",children:o(Oe,{size:"text-h6",children:yg(e?.saleExchangeRate)})}),o("td",{className:"pt-m pl-5xl text-right",children:o(Oe,{size:"text-h6",children:yg(e?.buyExchangeRate)})})]},t)},Ig={icon:"GpsIcon"},Tg=d((({className:e="",address:t})=>c("div",{className:u("flex gap-s w-full justify-between @sm:justify-center",e),children:[o(qm,{...Ig,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:"Курс указан для заданного офиса"})]})]}))),Rg=(e,t,n)=>{const a=Number(Bg(e))*Math.pow(t,n?-1:1);return Number.isInteger(a)?a:((e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n})(a)},Bg=e=>e.replace(/[^\d.,]/g,"").replace(",",".");function Pg(e){if(!e)throw new Error("Value should be fulfilled");return e}const Eg=e=>t=>{const[,n]=Pg(e.find((([e])=>e(t))));return n(t)},Dg=e=>Eg(e.map((([e,t])=>[e,()=>t])));Dg.if=e=>new _g(void 0,e);class _g{parent;predicate;unit;get entry(){return[Pg(this.predicate),Pg(this.unit)]}constructor(e,t,n){this.parent=e,this.predicate=t,this.unit=n}if(e){return new _g(this,e)}then(e){return new _g(this.parent,this.predicate,e)}else(e){return Eg([...Ag(this),[()=>!0,e]])}}const Ag=e=>[...e?.parent?Ag(e.parent):[],e.entry],Mg=e=>Dg([[e=>e.value!==fg.RUB&&e.oppositeValue!==fg.RUB,()=>e.handleConvert(e.value,fg.RUB)],[e=>e.value===fg.RUB&&e.oppositeValue===fg.RUB,()=>e.handleConvert(e.value,fg.USD)],[e=>e.value===fg.RUB&&e.oppositeValue===fg.RUB,()=>e.handleConvert(e.value,fg.CNY)],[()=>!0,()=>e.handleConvert(e.value)]])(e)?.();function Og(e){const{placeholder:t,rates:n,selected:a,value:i,setValue:l,setSelected:r}=e,s=n.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),d={key:a,text:a};return c("div",{className:"relative flex",children:[o(wn,{className:"shrink-0 text-l w-full appearance-none -mr-20",placeholder:t,type:"text",value:i,onChange:l}),s.length?o(Vn,{className:"absolute right-0",isBorder:!1,onChange:e=>r(e.key),options:s,value:d}):null]})}const zg=d((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:i})=>{const[r,s]=a({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||fg.RUB,selectBuy:n?.[0]?.currency?.currency||fg.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:[Og({placeholder:"Хочу продать",rates:n,selected:r.selectSell,setSelected:Vg(r,d,n),value:r.inputSell,setValue:e=>Lg(d,n)(e,r.selectSell,r.selectBuy)}),Og({placeholder:"Получу",rates:t,selected:r.selectBuy,setSelected:Fg(r,d,t),value:r.inputBuy,setValue:e=>$g(d,t)(e,r.selectBuy,r.selectSell)})]}):null,i?.text?o(Ce,{text:i.text,version:i?.version,...i}):null]})})),Vg=(e,t,n)=>a=>{t({selectSell:a}),Mg({value:a,oppositeValue:e.selectBuy,handleConvert:(a=e.selectSell,i=e.selectBuy)=>{Lg(t,n)(e.inputSell,a,i)}})},Fg=(e,t,n)=>a=>{t({selectBuy:a}),Mg({value:a,oppositeValue:e.selectSell,handleConvert:(a=e.selectBuy,i=e.selectSell)=>$g(t,n)(e.inputBuy,a,i)})},Lg=(e,t)=>(n,a,i)=>{e({inputSell:Bg(n),selectBuy:i});const l=t.find((e=>e.currency?.currency===i))?.buyExchangeRate||t.find((e=>e.currency?.currency===a))?.buyExchangeRate;l&&e({inputBuy:String(Rg(n,l,a===fg.RUB)||"")})},$g=(e,t)=>(n,a,i)=>{e({inputBuy:Bg(n),selectSell:i});const l=t.find((e=>e.currency?.currency===i))?.saleExchangeRate||t.find((e=>e.currency?.currency===a))?.saleExchangeRate;l&&e({inputSell:String(Rg(n,l,a===fg.RUB)||"")})},jg=`${Ht}/exchangerates`;const Ug=d((({className:e="",title:t="Курсы обмена валют",button:n,...a})=>{const i=function(e){const t=e?.code||"000",{data:n}=Zn(jg+`?regionCode=${t}`,_t);return n||{}}(pg()),l=qg(i?.exchangeRate?.currencies),r=l.filter((e=>e.buyExchangeRate));r.unshift({currency:{currency:fg.RUB}});const s=l.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:fg.RUB}}),o(g,{className:u("box-border min-h-80",e),...a,children:o(Pe,{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(Sg,{className:"mb-xl",exchangeCurrencyItems:l}):null,o(Tg,{address:i?.address})]}),o(zg,{className:"grow w-1/2",currencyRatesBuy:r,currencyRatesSell:s,button:n})]})})})})),qg=e=>e?.filter((e=>[1,2,3].includes(e?.currency?.id)))||[],Wg=d((({className:e="",items:t})=>{const n=fe();return o("ul",{className:u("flex flex-col gap-s w-full",e),children:t?.map(Hg(n))})})),Hg=e=>({dataFooter:t,...n},a)=>{const{text:i,href:l,target:r,onClick:s}=e(n);return i?o("li",{className:"list-none",children:o("a",{className:"hover:text-primary-main font-light",role:"link",href:l,target:r||"_self",onClick:s,...ye(t),children:i||null})},String(a)):null},Yg=d((({navigationItems:e})=>o("div",{className:"w-full",role:"menu",children:Gg(e)}))),Gg=e=>e?.filter((e=>e.icon?.icon)).map(((e,t)=>o(Kg,{className:"w-full border-0 border-b border-solid border-main-divider last:border-b-0",item:e},String(t)))),Kg=d((({className:e,item:t})=>{const[n,{toggle:a}]=ln(!1);return c(Zr,{className:e,role:"menuitem",children:[c(nr,{className:u("w-full",t.icon?.icon?"py-xs":"py-lg"),embedded:!0,onClick:a,children:[c(Kr,{children:[o(qm,{className:"shrink-0",...t.icon}),o(Oe,{size:"text-h6",font:"font-normal",color:"text-primary-text",children:t.text})]}),o(Xr,{iconVersion:"color",size:"medium",isUnfolded:n})]}),o(Qr,{className:"flex flex-wrap gap-lg group-last:last:pb-0",isUnfolded:n,children:t.items?o(Wg,{items:t.items}):null})]})})),Xg=d((({className:e="",items:t=[]})=>t?.length?o("div",{className:u("space-y-m",e),children:t.map(Jg)}):null)),Jg=(e,t)=>c("div",{className:"space-y-m",children:[o("div",{children:o(Oe,{size:"text-l",font:"font-medium",children:e?.title})}),o("div",{className:"space-y-m",children:e.items?.map(Zg)})]},String(t)),Zg=(e,t)=>c("div",{className:"space-y-2xs",children:[o("div",{children:Qg(e.type,e.text)}),o(C,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e.description})]},String(t)),Qg=(e,t="")=>{switch(e){case"tel":return o("a",{className:"text-primary-text hover:text-primary-main no-underline",href:`tel:${ef(t)}`,children:o(Oe,{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})}},ef=e=>e.replaceAll(/\D/g,""),tf=d((({className:e="",index:t,text:n,...a})=>{const i=fe(),{href:l,target:r,onClick:s}=i(a);return o("a",{className:u("text-secondary-text",e),href:l,target:r,onClick:s,children:n||`Документ ${t}`})})),nf=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(Oe,{size:"text-l",font:"font-normal",children:t})}),n.map(((e,t)=>o(tf,{index:t,className:"text-l font-light lg:max-w-[292px]",...e},String(t))))]}):null}))),af=d((({className:e="",index:t,...n})=>{const a=fe(),{href:i,target:l,text:r,onClick:s}=a(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:i,target:l,onClick:s,children:r||`Документ ${t}`})})),lf=d((({className:e="",links:t,license:n})=>c("div",{className:u("@container space-y-lg",e),children:[n?o("div",{children:o(Oe,{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(af,{index:t,...e},String(t))))}):null]}))),rf=Lt((({className:e,footer:t,...n})=>{const{navigationItems:a}=n.options?.page?.navigation??{};n.options;const{documents:i,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(Yg,{navigationItems:a}),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(Ce,{className:"w-full",version:"primary",...m}):null,s.map(((e,t)=>o(yh,{media:e?.links??[],showButtonText:!1,stretched:!0,children:e?.title},String(t)))),p.map(((e,t)=>o(pr,{className:"text-s font-light",...e},`${e.href}_${t}`)))]})]}),o(nf,{title:d,links:l}),o(lf,{links:i,license:h})]})})),sf=Lt((({className:e,title:t,button:n,regionSource:i,data:l,...r})=>{const[s,d]=a({key:""}),m=i?.regions??[],h=m?.find((e=>e.name===s.key))?.href;return o(g,{className:e,defaultPadding:"p-6xl",...r,children:c("div",{className:"container space-y-m",children:[t?o(w,{headingType:"h3",title:t,className:"@xl:text-center"}):null,m?o(jn,{label:"Ваш регион",placeholder:"Выберите регион",isSearch:!0,options:m.map((({name:e=""})=>({key:e,text:e}))),value:s,onChange:d}):null,h?o("div",{className:"text-center",children:o(pr,{className:u("w-full @xl:w-auto"),href:h,target:"_blank",version:n?.version??"primary",data:gh(l,s?.key),children:n?.text?n.text:"Перейти"})}):null]})})})),of={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"},cf=d((({version:e,text:t,mobileText:n,...a})=>{const i=Te()?n:t;return i?o(Ce,{className:u("py-s px-lg font-light whitespace-nowrap",of["transparent"===e?"transparent":"default"]),...a,children:i}):null})),df=d((({bgColor:e,logo:t,alwaysShowLogo:n,internetBankButton:a,version:i,backwardButton:r})=>{const s=D(),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(Qc,{className:"my-2xs",bgColor:e,logo:h,data:u,showTitle:!1})}):mf(p,r),o(cf,{version:i,...a})]})})),mf=(e,t)=>t?c("button",{className:"flex items-center text-l my-2xs",onClick:e,type:"button","aria-label":"Кнопка назад",children:[o(G,{name:"ChevronLeftIcon",iconVersion:"black",width:"24",height:"24"}),t]}):null,uf={"bg-white":"primary",transparent:"transparent"},hf=Lt((({bgColor:e="bg-white",alwaysShowLogo:t=!1,version:n=uf[e],portal:a,logo:i={},...l})=>{const{backwardButton:r,logo:s={}}=l.options?.page?.common??{},{internetBankButton:c}=a||{},d=i.image?.icon||i.image?.src?i:s;return o(g,{tag:"header",defaultPadding:"",version:n,...l,children:o("div",{className:"container px-lg py-2xs box-border",children:o(df,{bgColor:e,logo:d,alwaysShowLogo:t,internetBankButton:c,version:n,backwardButton:r,...l})})})})),pf=(e=!1)=>e?{}:{padding:"p-0"},gf={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},ff=Lt((({className:e="",padding:t="p-0",gap:n="",isInnerPadding:a=!0,version:i="transparent",isTheme:l=!1,isCardBorder:r=!1,image:s,...c})=>{const d=D();return o(g,{className:u("relative flex flex-col",gf[n],s?.src?"bg-right-bottom bg-no-repeat":"",e),...s?.src?{style:{backgroundImage:`url(${Q(d)(s?.src)})`}}:{},padding:t,version:i,isTheme:l,...c,children:E({...c,extraProps:{className:u("w-full",Zd(r)),...pf(a)}})})}),{childrenTypes:[]}),xf=Lt((e=>o(ff,{...e})),{childrenTypes:[]}),yf=d((e=>{const{className:t,align:n,image:a,...i}=e,l=n?u("flex",Km[n]):"";return o(g,{className:u(l,t),defaultPadding:"p-0",...i,children:o(ie,{image:a})})})),bf=["байт","Кб","Мб","Гб","Тб","Пб"],vf=d((({icon:e,text:t,href:n,target:a,fileFormat:i,data:l,fileSize:r})=>{const s=r&&i?",":"",d=r??"",m=i?String(i):"";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:a,...ye(l),children:[e,t?c(Oe,{size:"text-l",font:"font-light",children:[t," ",Nf(d,m),o(Oe,{color:"text-secondary-text",children:n&&`${d+s+m}`})]}):null]})})),Nf=(e,t)=>e||t?o("span",{children:", "}):"",wf=(e,t)=>(n,a)=>{const i=q(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))} ${bf[n]}`})(n?.attachment?.fileSize||0):n?.fileSize,r="Attachment"===n?.docType?Sf(i):n?.fileFormat;return c("div",{role:"listitem",children:[o(vf,{text:n?.text,target:n?.target,href:i,fileFormat:r,fileSize:l,icon:Cf(t),data:n?.data}),o(Ae,{__html:n?.__html})]},String(a))},Cf=e=>e?o(ie,{className:"min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md",image:e,width:"24",height:"24"}):null,Sf=e=>{if(!e)return"";const t=e.lastIndexOf("."),n=new RegExp(/\/(.*)/),a=-1!==t?e.substring(t+1):"";return a.includes("/")?a.replace(n,""):a},kf=d((({href:e,__html:t,target:n,onClose:a})=>c(ir,{className:"my-6xl min-h-fit w-fit mx-auto",onClose:a,children:[t?o(Ae,{__html:t}):null,c("div",{className:"flex flex-row mx-auto w-fit gap-lg py-lg",children:[o(pr,{href:e,target:n,version:"primary",ariaLabel:"Ссылка на согласие",onClick:a,children:"Я согласен"}),o(nr,{type:"button",version:"secondary",onClick:a,children:"Я не согласен"})]}),o("div",{children:"Нажимая кнопку «Я СОГЛАСЕН» ниже Вы принимаете данные условия. Распространение или раскрытие любой части данного Заключения или любой информации, или рекомендации в нем запрещено.»"})]}))),If=d((({text:e,href:t,target:n,__html:a,icon:i})=>{const{open:r}=pn(kf),s=l((()=>r({__html:a,href:t,target:n})),[a,t,n]);return e?c("button",{className:"flex gap-s text-primary-text no-underline hover:text-primary-main",onClick:s,children:[Cf(i),o(Oe,{font:"font-light",children:e})]}):null})),Tf={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},Rf=Lt((({className:e="",title:t,description:n,align:a="text-center",documents:i,icon:l={icon:"DocIcon"},columnsMode:r="double",...s})=>{const d=D();return c(g,{className:u("space-y-lg",e),defaultPadding:"p-6xl",...s,children:[o(k,{title:t,description:n,align:a,headlineVersion:"M",as:"h2",isEmbedded:!0}),i?.length?o("div",{className:u("grid gap-xl","double"===r?"@md:grid-cols-2":"grid-cols-1",Tf[r]),role:"list",children:i.map(Bf(d,l))}):null]})})),Bf=(e,t)=>(n,a)=>{const i=n?.docType;return""===i?null:"reportSource"in n&&n?.reportSource?.__html?Pf(t)(n,a):wf(e,t)(n,a)},Pf=e=>(t,n)=>{const a={text:t.text,target:t.target,__html:t.reportSource?.__html};return t.reportSource?.__html&&t.text?c("div",{role:"listitem",children:[o(If,{...a,icon:e,href:Ef(t)?t?.href:t?.attachment?.src}),o(Ae,{__html:t?.__html})]},String(n)):null},Ef=e=>"href"in e,Df=Lt((({className:e,padding:t,align:n="text-left",buttons:a=[],description:i,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(ie,{className:"hidden lg:block",image:l}):null;return o(g,{className:u("min-h-80",e),padding:"p-0",version:p,...f,children:c(Pe,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:o(w,{headingType:s,title:h,className:u("whitespace-pre-wrap",n)}),rightImage:y,buttons:qe(a,{className:"flex-wrap"}),children:[i?o(Oe,{size:"text-xl","font-weight":"font-light",children:i}):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(Ae,{__html:r,itemSize:"list-m"}):null,o(Oe,{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(ie,{className:"w-fit",image:d})}):null,l?.src?o(ie,{className:"lg:hidden",image:l}):null]})]})})})),_f=(e,t)=>e&&"underlined"!==t?"primary":"secondary",Af=(e=[],t={})=>e.filter((({content:e={}})=>Mm(t,e))).length,Mf=(e,t)=>e===t;const Of=(e=>(t,n)=>t===n||Boolean(t&&n&&Object.keys(t).length===Object.keys(n).length&&Object.entries(t).every((([t,a])=>e(a,n[t])))))(function(...e){return(t,n)=>e.some((e=>e(t,n)))}(Mf,((e=Mf)=>(t,n)=>t===n||Boolean(t&&n&&t.length===n.length&&t.every(((t,a)=>e(t,n[a])))))())),zf=[],Vf={},Ff={primary:"bg-white/30",secondary:"bg-main-divider"},Lf={primary:{desktop:"text-white",mobile:"text-primary-text"},secondary:{desktop:"text-secondary-text",mobile:"text-secondary-text"}},$f=d((({count:e,version:t="secondary"})=>{const n=Te(),a=n?"bg-main-divider":Ff[t],i=Lf[t][n?"mobile":"desktop"];return o("div",{className:u("w-6 h-6 rounded-full flex items-center justify-center",a),role:"status","aria-label":`Количество ${e} доступных программ и сервисов`,children:o(Oe,{size:"text-xs",color:i,children:e})})})),jf=({text:e,description:t,icon:n,isActive:a,type:i})=>{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"}))(a);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(ie,{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"===i?l.text:l.oldText,children:e}),o("div",{className:"animated"===i?l.desc:l.oldDesc,children:t})]})]})},Uf={default:"px-xs",underlined:"px-m",animated:"px-m border border-gray cursor-pointer text-left border-b-0 mt-auto flex gap-2xs"},qf={default:"text-black sm:text-white",underlined:"text-primary-main border-b-2",animated:"text-white sm:text-white"},Wf={default:"bg-white",underlined:"bg-white",animated:"p-1 ease-in duration-300 bg-white text-primary-text h-[70px] w-96"},Hf={default:"bg-white sm:bg-primary-main",underlined:"bg-white",animated:"p-2 border-none bg-primary-main text-white h-20 w-96"},Yf=d((({tag:e="div",item:t={},isActive:n=!1,type:a="default",onClick:i})=>{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",Uf[a],n?Hf[a]:Wf[a]),"aria-label":"Список табов",onClick:i,...p,children:c("div",{className:u("h-full","flex justify-center items-center","text-center whitespace-nowrap",n?qf[a]:"text-secondary-text hover:text-primary-main"),role:"tab","aria-label":`Таб ${r}`,children:[jf({text:r,description:s,icon:d,isActive:n,type:a}),Number.isInteger(m)?o("div",{className:"ml-xs",role:"status","aria-label":`Количество программ и сервисов ${m}`,children:o($f,{count:m,version:_f(n,a)})}):null]})})})),Gf=d((e=>o(e?.item?.href?Kf:Xf,{...e}))),Kf=d((e=>{const t=fe(),n=l((()=>{e.onClick&&e.onClick(e.item||{})}),[e.onClick,e.item]),{onClick:a,...i}=t({...e.item,onClick:n});return o(Yf,{...e,tag:"a",item:i,onClick:a})})),Xf=d((({item:e={},onClick:t,...n})=>{const a=l((()=>{t&&t(e)}),[t,e]);return o(Yf,{item:e,onClick:a,...n})})),Jf=(e,t,n)=>(a,i)=>o(Gf,{isActive:a===e,onClick:t,type:n,item:a},String(i)),Zf=d((({className:e,tabsType:t="default",items:n=[],activeItem:a,onChange:i})=>o("div",{className:u("flex gap-x-2xs overflow-x-auto no-scrollbar",e),role:"tabpanel","aria-label":"Панель управления табами",children:n.map(Jf(a,i,t))}))),Qf={categories:[],extraOptions:[],propertyType:[],stage:[]},ex=Lt((({className:e,hotFilters:t,filtrationSchema:n={},resetButton:a,...i})=>{const[s,{blocksToRender:d},{field:m,reset:h,update:p}]=zm(Qf,{block:i.block,page:i.options?.page}),f=l(((e=Qf)=>p(e)),[]),x=(({hotFilters:e=zf,filtrationState:t=Vf,blocks:n=zf,onFiltrationStateChange:a})=>{const i=r((()=>Math.max(0,e.findIndex((e=>Of(e.filter,t))))),[e,t]),s=r((()=>e.map((t=>({text:t.text,count:Af(n,t.filter),version:_f(t===e[i])})))),[e,n,i]),o=l((t=>{a(e[s.indexOf(t)].filter)}),[e,s]);return{activeItem:s[i],items:s,onChange:o}})({hotFilters:t,filtrationState:s,blocks:i.block?.blocks,onFiltrationStateChange:f});return c(g,{className:u("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...i,children:[o(Zf,{...x}),o(Bm,{filtrationSchema:n,resetButton:a,field:m,reset:h}),o(km,{blocksToRender:d,...i})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>e?.filtrationSchema||{}}),tx="flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl",nx=d((({filters:e,field:{field:t,reset:n},onlyOffice:a,labels:i})=>{const l=a?5:6,r=(e||[]).map((e=>o(Za,{text:i[e],...t(e)},e))),[s,d]=l>0?[r.slice(0,l),r.slice(l)]:[r,[]],[m,{toggle:u}]=ln(!1);return o("div",{children:e?.length?o("div",{children:c(Zr,{children:[c("div",{children:[o("div",{className:tx,children:s}),o(Qr,{className:tx,isUnfolded:m,children:d})]}),c("div",{className:"flex space-x-lg",children:[a?o(Jr,{label:m?"Меньше фильтров":"Больше фильтров",isUnfolded:m,embedded:!0,short:!0,onClick:u}):null,c(nr,{embedded:!0,onClick:n,children:[o(Kr,{children:"Очистить фильтр"}),o(G,{name:"CloseIcon",size:"small"})]})]})]})}):null})})),ax=(e,t,n)=>{const a=_f("all"===t),i=_f("business"===t),l=(e,t,a)=>{const i=e.currentTarget===e.target&&"business"===t?r(a):a;return n(t),i},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(nr,{"data-id":"all",onClick:t=>l(t,"all",e),version:a,children:"Для физических лиц"}),o(nr,{"data-id":"business",onClick:t=>l(t,"business",e),version:i,children:"Для юридических лиц"})]})},ix=({__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(Ae,{__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(ie,{image:e.image}):null,e?.text?o(Oe,{size:"text-m",font:"font-light",children:e.text}):null]},String(t))))}):null]}):null,lx=(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(Oe,{size:"text-h2",color:"text-secondary-text",children:o("span",{suppressHydrationWarning:!0,children:` (${t})`})}):null]})}),rx=()=>{},sx=e=>"all"===e?"block":"hidden",ox=d((({className:e,data:t=[],isLoad:n,remoteWorkplaces:i=[],renderCard:l=rx,renderRemoteWorkplaceCard:r=rx,getBalloon:s=rx,getBalloonRemoteWorkplaces:d=rx,descriptionData:m,title:h})=>{const p=h?.includes("Офис"),[g,{field:f,reset:x}]=un(ws),{filteredItems:y,points:b,filteredRemoteWorkplaces:v,lengthItems:N}=Ts({data:t,remoteWorkplaces:i,filtrationState:g,getBalloon:s,getBalloonRemoteWorkplaces:d}),[w,C]=a("all");return c("div",{className:u("space-y-1",e),children:[c("div",{className:"bg-white",children:[c("div",{className:"p-3xl pb-0",children:[lx(h,N),m?ix(m):null,p&&ax(t,w,C),o("div",{className:u("pb-3xl",sx(w)),children:o(nx,{filters:cx([...t,...i]),field:{field:f,reset:x},onlyOffice:p,labels:Cs})})]}),o("div",{className:"h-[600px]",children:o(Es,{children:o(Or,{points:b,isLoad:n,className:"h-full"})})})]}),c(Es,{children:[y.map(l),v.map(r)]})]})})),cx=e=>Object.keys(ws).filter((t=>e.filter((e=>Ss[t](e))).length)),dx=e=>e?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:"",mx=({location:e,address:t,billAcceptorType:n,terminalType:a,billAcceptorEnable:i,atmCode:l="",atmAccess:r="",workTime:s},d)=>{const m=[{label:"Устройство",value:dx(a)},{label:"Модуль приема наличных",value:i?"Да":"Нет"},{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(Oe,{size:"text-h4",children:dx(e)}),t?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(G,{name:"GeolocationIcon",width:"24",height:"24"}),o(Oe,{size:"text-l",children:t})]}):null]}),o("div",{className:"whitespace-nowrap",children:o(ms,{color:"green",children:dx(s)})})]}),o(es,{children:o(Gr,{className:"flex-wrap",children:m?.map(((e,t)=>o(qr,{...e},String(t))))})})]},String(d))},ux=({address:e="",terminalType:t,atmCode:n=""})=>({header:`${dx(t)} №${n}`,body:e.toUpperCase()}),hx=[];const px=async e=>{const t=await Dt(e,{method:"GET"});return Array.isArray(t)?t:hx},gx={terminalTypeAtms:!0,terminalTypeTerm:!1,workAllTime:!1,billAcceptorEnable:!1,locationDisabledPeople:!1,designDisabledPeople:!1},fx={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)},xx=d((({descriptionData:e,className:t})=>{const n=pg(),a=n?.code??"000",{data:i,isLoad:l}=function(e){const{data:t,error:n}=Zn(`${Ht}/atms?regionCode=${e}`,px);return{data:t||hx,isLoad:!t&&!n}}(a);return o(ox,{className:t,filterItems:yx,data:i,isLoad:l,initFilterState:gx,renderCard:mx,getBalloon:ux,title:`Банкоматы филиала ${n?.name}`,descriptionData:e})})),yx=(e,t)=>{const n=Object.keys(t).filter((e=>t[e])),a=n.filter((e=>e.startsWith("terminalType"))),i=n.filter((e=>!a.includes(e)));return e.filter((e=>{const t=i.every((t=>fx[t](e))),n=!a.length||a.some((t=>fx[t](e)));return t&&n}))},bx=({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(Oe,{size:"text-h4",children:"Удаленное рабочее место"}),e?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(G,{name:"GeolocationIcon",width:"24",height:"24"}),o(Oe,{size:"text-l",children:e})]}):null]})}),o(es,{children:vx(t)})]},String(n)):null,vx=e=>c("div",{children:[c(Gr,{className:"flex",children:[o(qr,{label:"Операции для физических лиц",children:o(Oe,{children:"Оформление и обслуживание кредитов, счетов, вкладов"})}),o(qr,{label:"Операции для физических лиц",children:o(Oe,{children:"Оформление и обслуживание банковских карт"})}),o(qr,{label:"Операции для физических лиц",children:o(Oe,{children:"Инвестиционное и накопительное страхование"})}),o(qr,{label:"Операции для физических лиц",children:o(Oe,{children:"Безналичные операции в рублях, переводы без открытия счёта"})})]}),o("hr",{className:"text-main-divider pb-xl"}),o(qr,{label:"Режим работы",className:"max-w-none",children:o(Oe,{children:e})})]}),Nx=({address:e="",workScheduleDescription:t})=>({header:"Удаленное рабочее место",body:`${e} ${t}`}),wx={branches:[],remoteWorkplaces:[]};const Cx=async e=>await Dt(e,{method:"GET"})||wx,Sx=d((({className:e})=>{const t=pg(),n=t?.code??"000",{data:a,isLoad:i}=function(e="000"){const{data:t,error:n}=Zn(`${Ht}/branchesAndRemoteWorkplaces?regionCode=${encodeURIComponent(e)}`,Cx);return{data:t||wx,isLoad:!t&&!n}}(n);return o(ox,{className:e,data:a?.branches,isLoad:i,remoteWorkplaces:a?.remoteWorkplaces,renderCard:bs,renderRemoteWorkplaceCard:bx,getBalloon:Ns,getBalloonRemoteWorkplaces:Nx,title:`Офисы филиала ${t?.name}`})})),kx=d((({data:e,className:t,...n})=>{const a=e?.dataType??"offices";return o(g,{version:"transparent",className:u(t),defaultPadding:"p-0",...n,children:"offices"===a?o(Sx,{}):o(xx,{descriptionData:e})})})),Ix=d((({className:e,title:t,description:n="Блок в разработке...",...a})=>c(g,{className:u("box-border",e),...a,children:[o(k,{className:"max-w-[600px]",title:t,description:n,headlineVersion:"L",align:"text-left",isEmbedded:!0}),o(f,{})]}))),Tx=d((({className:e,padding:t,slides:n=[],...a})=>o(g,{className:u("overflow-hidden relative",e),padding:t,...a,children:o(Cm,{gap:0,padding:0,children:n.map((e=>e.productBlock)).map(((e,t)=>o("div",{className:"box-border h-full",children:o(et,{className:"px-5 h-full",headlineVersion:"L",...e,...a})},String(t))))})}))),Rx=d((({address:e,email:t,telephone:n,button:a,className:i="",__html:l,richVersion:r,icon:s,title:d,version:m="primary",...h})=>c(g,{className:u("box-border text-left space-y-s",i),version:m,...h,children:[c("div",{className:"w-full flex justify-between flex-row-reverse",children:[Ue(s)?o("div",{className:"w-10 h-7 sm:w-24 sm:h-16",children:o(ie,{image:s})}):null,d?o(w,{headingType:"h3",as:"h3",title:d}):null]}),c("div",{className:"w-full space-y-m",children:[l?Bx({__html:l,richVersion:r}):null,Px({label:"Адрес",data:e,iconName:"GeolocationIcon"}),Px({label:"Телефон(факс)",data:n,iconName:"PhoneIcon"}),Px({label:"E-mail",data:t,iconName:"MailIcon",dataColor:"text-primary-main"}),a?.text?qe([a]):null]})]}))),Bx=e=>o("div",{className:"border-b border-main-divider pb-lg",children:o(Ae,{...e,itemSize:"list-s"})}),Px=({label:e,data:t,iconName:n,dataColor:a=""})=>t?c("div",{className:"flex gap-s",children:[o(G,{iconVersion:"black",name:n,width:"24",height:"24"}),c("div",{className:"flex flex-col gap-2xs",children:[o(Oe,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e}),o(Oe,{size:"text-xl",color:a,children:t})]})]}):null,Ex=d((e=>{const{__html:t,richVersion:n="",...a}=e;return o(g,{defaultPadding:"p-0",...a,children:o(Ae,{__html:t,richVersion:n})})})),Dx=(e=!1)=>e?"flex flex-wrap group-last:last:pb-0":"grid grid-cols-12 [&>*]:pb-m",_x=Lt((({className:e="",isExpanded:t,isFoldButtonOnTop:n=!0,foldButtonVersion:a="default",label:i,version:l,role:r,...s})=>{const d=Te(),[m,{toggle:h}]=ln(t),p=o(Qr,{className:u("gap-lg",Dx(d)),isUnfolded:m,children:E({...s,extraProps:{className:"w-full",padding:"p-0"}})}),f="accordion"===a,x=o(Jr,{className:u(f?"text-h6 my-lg":"text-h4"),label:i,isUnfolded:m,embedded:f,onClick:h});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:r,...s,children:c(Zr,{children:[n?x:p,n?p:x]})})}),{childrenTypes:{exclude:["RollupItem"]}}),Ax=d((({name:e,text:t,value:n,checked:a,onChange:i,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(bn.split(" ").filter((e=>"rounded"!==e)),Xa,"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:a,onChange:e=>i?.(e.target.value),role:"radio"}),t?o(Oe,{color:"text-primary-text",children:t}):null]})}))),Mx=d((({className:e=""})=>{const[t,n]=a("option2"),i=l((e=>n(e)),[]);return c("div",{className:u("order-4",e),role:"radiogroup",children:[o(Ax,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===t,onChange:i}),o(Ax,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===t,onChange:i})]})})),Ox=d((({data:e,fieldLabel:t,fieldValue:n,selected:a,placeholder:i="",setSelected:l,label:r})=>{const s=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),c=s.find((e=>e.key===a));return o(Vn,{options:s,label:r,placeholder:i||a,onChange:e=>l(e.key),value:c})})),zx=d((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:a=[],selectedBranch:i,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(Ox,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),o("div",{className:"flex-1 min-w-0",children:o(Ox,{data:a,fieldValue:"branchCode",fieldLabel:"address",selected:i,setSelected:l,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Vx=["От 1 дня","До 365 дней"],Fx=d((({days:e,setDays:t})=>c("div",{className:"order-1",children:[o(Oe,{size:"text-m",font:"font-light",children:"Срок аренды"}),o(ua,{min:1,max:365,value:e,items:Vx,onChange:t})]}))),Lx=d((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:a=[],selectedBoxSize:i,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(Ox,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),o("div",{className:"flex-1 min-w-0",children:o(Ox,{data:a,fieldLabel:"safeBoxCasesSize",selected:i,setSelected:l,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),$x=d((({regions:e,selectedRegion:t,branches:n,selectedBranch:a,days:i,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(zx,{regions:e,selectedRegion:t,onSelectedRegion:e=>m({selectedRegion:e}),branches:n,selectedBranch:a,onSelectedBranch:jx(m)}),o(Fx,{days:i,setDays:e=>m({days:e})}),o(Lx,{caseVolumes:d,selectedCaseVolume:l,onSelectedCaseVolume:Ux(m),safeBoxCases:s,selectedBoxSize:r,onSelectedBoxSize:e=>m({selectedBoxSize:e})}),o("div",{className:"order-4",children:o(Oe,{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(Mx,{}),o(nr,{className:"order-6",version:"primary",onClick:u,children:"Офисы на карте"})]})]}))),jx=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Ux=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},qx=d((({days:e,tariffs:t=[]})=>{const n=Hx(e,t),a="На рисунке изображена пачка листов\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:[Wx("Аренда за",e),Wx("Цена",n+" ₽")]}),o("div",{className:"@xl:hidden order-3 mb-xs",children:o(C,{size:"text-s",font:"font-light",color:"text-secondary-text",children:a})}),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(G,{className:"@xl:h-60",name:"PackA4Icon"}),o("div",{className:"hidden @xl:inline opacity-80 whitespace-pre-line",children:o(C,{size:"text-s",font:"font-light",color:"text-white",children:a})})]})]})})),Wx=(e,t)=>c("div",{className:"flex justify-between items-center gap-y-xs @xl:flex-col @xl:items-start",children:[o(Oe,{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})]}),Hx=(e,t)=>{const n=Yx(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},Yx=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},Gx=(e,t)=>e.find((e=>e.branchCode===t)),Kx=d((e=>{const{regions:t,data:n,branches:a,onChange:l,onClick:r}=e;i((()=>{l({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,l]);const s=Gx(a,n.selectedBranch),d=Xx(s?.safeBoxCaseVolumes),m=Jx(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,u=Zx(m,n.selectedBoxSize);return c("div",{className:"flex flex-col @4xl:flex-row gap-4xl align-top",children:[o($x,{...n,regions:t,onClick:r,branches:a,caseVolumes:d,safeBoxCases:m,onChange:l}),o(qx,{days:n.days,tariffs:u})]})})),Xx=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Jx=(e,t)=>e?.find((e=>e.volume===t)),Zx=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,Qx=`${Ht}/safeboxes`,ey=[];const ty=async e=>await Dt(e,{method:"GET"})||ey,ny=d((({title:e,footnote:t,className:n="",...i})=>{const[r,s]=a(!1),d=l((()=>s((e=>!e))),[]),[m,u]=a({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),h=al(),p=ay(m.selectedRegion,h),f=function(e){const{data:t}=Zn(e?`${Qx}?regionCode=${e}`:null,ty);return t||ey}(p),x=l((e=>u((t=>({...t,...e})))),[u]),y=(b=Gx(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:"",...i,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(Kx,{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(Or,{points:y,className:"h-[640px]"}):null]})})),ay=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,iy={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"},ly=(e,t,n)=>(a,i)=>{const{button:l}=a;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:ry(e,n)(a,i)}),c("div",{className:u("flex flex-col justify-center h-fit w-full",{"min-h-6xl":e}),children:[sy(a),l?.text?o(Ce,{className:"box-border py-s w-full mt-lg",version:t,...l,children:l?.text}):null]})]})},String(i))},ry=(e,t)=>(n,a)=>{const i="secondary"===t?"white":"color",l=Boolean(n?.icon?.src),r=oy(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:cy({step:n,iconVersion:i,i:a,stepVersion:t})})})},sy=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",iy.description),children:e.description}):null,o(Ae,{__html:e.__html})]}),oy=(e,t)=>e&&t?"h-14 w-14":"h-11 w-11",cy=({step:e,iconVersion:t,i:n,stepVersion:a})=>{return Ue(e?.icon)?o(ie,{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"===a?iy.iconText:(i=a,"secondary"===i?"group-data-primary:text-white":"text-secondary-text")),children:n+1});var i},dy=d((({className:e="",title:t,description:n,steps:a=[],buttons:i,stepVersion:l="gray",version:r="primary",...s})=>{const d=a.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"}),a?.length?o("div",{className:"flex flex-col gap-6xl justify-between box-border",children:a.map(ly(d,r,l))}):null,qe(i,{isVertical:!0})]})})),my=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(G,{className:"w-6 h-6",name:t?.icon?.icon,iconVersion:e?"color":"black"}),t?.title||""]}))),uy=d((({className:e,head:t,children:n,onClose:a,onClick:i})=>c("div",{onClick:i,className:u("relative 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(ar,{className:"absolute top-1.5 right-0",onClose:a}),o("div",{className:"container",children:t})]}),o("div",{className:"container pb-6xl",children:n})]})));function hy(e,t,n){i((()=>e.subscribe(t,(e=>{const t=e?.type;if(t&&"string"==typeof t){const a=n[t];a&&a(e)}}))),[e,t,...Object.values(n)])}const py=()=>{const[e,{push:t,pop:n,clear:i}]=function(e=[]){const[t,n]=a(e),i=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:i,pop:r,remove:s,clear:o}]}();return hy(pe.observable,"dialog",{open:t,close:n,closeAll:i}),[e,{close:n,closeAll:i}]},gy=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:n,s1Matches:a,s2Matches:i}=function(e,t){const n=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),a=Array.from({length:e.length}),i=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++)a[r]||i[n]||e[r]!==t[n]||(l++,a[r]=!0,i[n]=!0)}return{m:l,s1Matches:a,s2Matches:i}}(e,t);if(0===n)return 0;const l=function(e,t,{s1Matches:n,s2Matches:a}){let i=0;for(let l=0,r=0;l<e.length;l++){if(!n[l])continue;let s=r;for(;s<t.length;s++)if(a[s]){r=s+1;break}e[l]!==t[s]&&i++}return i}(e,t,{s1Matches:a,s2Matches:i}),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 fy=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(Oe,{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(xy,{...e},String(t))))})]}):null,xy=d((({icon:e,...t})=>{const n=fe(),{text:a,target:i,href:l,onClick:r}=n(t);return c("div",{className:"flex gap-s items-center",children:[e?o(ie,{image:e}):null,a?o("a",{className:"hover:text-primary-hover",href:l,target:i,onClick:r,children:o(Oe,{size:"text-l",font:"font-light",color:"text-primary-text",children:a})}):null]})})),yy=(e,t)=>n=>n.name?o(fh,{href:`/branches/${n.slug}`,className:"mb-xs sm:mb-2xs hover:text-primary-hover",onClick:()=>t?.(n),data:gh(e,n.name),children:o(Oe,{size:"text-l",font:"font-light",children:n.name})},String(n.id)):null,by=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(bn,"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"})]}))),vy=d((({defaultLocation:e})=>{const t=pg(e),n=fe(),{href:a}=n({href:`/branches/${t.slug}`});return t?o("div",{className:"mb-s",children:c(C,{size:"text-l",color:"text-primary-text",children:["Сейчас выбран:",o(fh,{href:a,className:"inline mx-2xs text-primary-main",children:t.name})]})}):null})),Ny=d((({foreignOffices:e,branches:t,onClose:n})=>{const i=gg(t?.default),[s,d]=a(""),m=al(),u=r((()=>Cy(m).sort(((e,t)=>e.name.localeCompare(t.name)))),[m]),h=r((()=>((e,t)=>{const n=new Map;for(const a of e){const e=t(a),i=n.get(e)||[];n.set(e,[...i,a])}return n})(u,wy)),[u]),p=l((e=>{i.location=e,n?.()}),[i,n]);return c(ir,{className:"pb-20",head:c("div",{children:[o(Oe,{size:"text-h4",color:"text-primary-text",children:"Выберите филиал"}),o(vy,{defaultLocation:t?.default}),o(by,{onSearch:d,searchTerm:s})]}),onClose:n,children:[s&&s.length>=3?o("div",{children:u.filter((({name:e})=>e&&gy(e.toLowerCase())(s.toLowerCase())>=.8)).map(yy(t?.dataSelect,p))}):o("div",{className:"columns-1 sm:columns-3 md:columns-4 lg:columns-5",children:Array.from(h.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(Oe,{size:"text-h6",children:e})}),t.map(yy(f,g))]},e)))}),fy(e)]});var g,f})),wy=e=>e.name?.charAt(0)??"",Cy=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()??""}))),Sy=d((({menuRef:e,menuItem:t,locationDialogProps:n,onClose:a})=>{const l=pn(Ny,n),{name:r}=pg(),s=e?.current?.getBoundingClientRect(),c=Z(J.SITE_URL);return i((()=>{globalThis.frames["burger-menu-iframe"].postMessage({type:"currentLocation",data:r},"*")}),[r]),i((()=>{const e=e=>{if("location"===e.data.type&&l.open({}),"reload"===e.data.type&&a?.(),"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)}}),[a]),o(uy,{head:o("div",{className:"flex items-center justify-center px-xl",children:o(w,{as:"h4",title:t?.title,className:"font-medium"})}),onClick:e=>e.stopPropagation(),onClose:a,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})})})})),ky="burgerMenuDialog",Iy=({menuRef:e,centralMenuItem:t,locationDialogProps:n,onClose:a=yn})=>{const{open:i}=pn(Sy),[r]=py(),s=((e,t)=>Boolean(t.find((t=>t.id===e),e)))(ky,r),o=l((()=>i({menuRef:e,locationDialogProps:n,menuItem:t,onClose:a},{id:ky})),[e,n,t,a]);return[s,{toggle:s?a:o}]},Ty=[],Ry=Lt((({sticky:e,...t})=>{const{menuItems:n=Ty}=e??{},i=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]=a(-1),[f,x]=a(""),{closeAll:y}=ge(),b=l((()=>{p(-1),x(""),y()}),[y]),v=fn(b),N=s(null),[C,{toggle:S}]=Iy({menuRef:N,centralMenuItem:i,locationDialogProps:t.header,onClose:b}),k=(({menuRef:e,dialogRef:t,leftItems:n,rightItems:a,onClose:i})=>{const{open:r,close:s}=ge(),c=l((()=>{const e=document.getElementsByTagName("iframe")["iframe-dialog"];e.style.height=`${e?.contentWindow?.document.body.offsetHeight}px`}),[]);return l(((l,d)=>{const m="left"===d?n:a,u=e?.current?.getBoundingClientRect();r({id:"left"===d?n[l].title:a[l].title,dialog:o(uy,{className:"mt-[20%] border-t border-current",head:o("div",{className:"flex items-center justify-center px-xl",children:o(w,{as:"h4",title:m[l].description||m[l].title})}),onClick:e=>e.stopPropagation(),onClose:()=>{s(),i?.()},children:o("div",{className:"bg-white pb-20 pt-1 text-l",ref:t,children:o("iframe",{id:"iframe-dialog",src:m[l]?.src,width:u?.width??0,onLoad:c})})})})}),[c,n,a,i])})({menuRef:N,dialogRef:v,leftItems:m,rightItems:u,onClose:b}),I=l((e=>{e.stopPropagation(),b(),S()}),[b,S]),T=l(((e,t)=>{x(t),p(e),y(),k(e,t)}),[y,k]);return o(g,{className:"h-[74px] z-[100] relative",defaultPadding:"p-0",...t,children:c("div",{ref:N,className:"ml-auto container bg-white flex justify-center shadow-blue-gray",children:[m.map(By(T,"left",{activeIndex:h,currentItemPosition:f})),o(my,{item:i,isActive:C,onClick:e=>I(e)}),u.map(By(T,"right",{activeIndex:h,currentItemPosition:f}))]})})})),By=(e,t,n)=>(a,i,l)=>o(my,{item:a,isActive:l[n.activeIndex]?.title===a?.title&&n.currentItemPosition===t,onClick:r=>{l[n.activeIndex]?.title===a?.title&&n.currentItemPosition===t||r.stopPropagation(),e(i,t)}},a.title||String(i)),Py="hidden sm:flex absolute z-40",Ey={default:{item:"flex-1",gap:0,buttonTop:"top-0"},animated:{item:"flex",gap:8,buttonTop:"top-5"},underlined:{item:"",gap:0,buttonTop:"top-0"}},Dy=d((({className:e,items:t=[],activeItem:n,onChange:a,tabsType:l="default"})=>{const[r,s]=um({itemCount:t?.length||0});return i((()=>_y(r.current,t,n)),[]),c("div",{className:u("relative overflow-x-auto no-scrollbar",e),children:[o(im,{containerRef:r,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,itemClassName:Ey[l].item,gap:Ey[l].gap,children:t.map(Jf(n,a,l))}),s.canScrollLeft?o(xm,{className:u("left-6",Py,Ey[l].buttonTop),onClick:s.scrollLeft}):null,s.canScrollRight?o(ym,{className:u("right-6",Py,Ey[l].buttonTop),onClick:s.scrollRight}):null]})})),_y=(e,t,n)=>{const a=t.findIndex((e=>e===n));e&&a>0&&e.scrollTo({left:e?.children[a]?.offsetLeft,behavior:"smooth"})},Ay={default:{wrapper:"",component:""},animated:{wrapper:"border-b-8 border-primary-main bg-white",component:"m-auto"},underlined:{wrapper:"flex",component:"m-auto"}},My=({className:e="",tabsType:t="animated",...n})=>t?o("div",{className:u(Ay[t].wrapper,e),children:o(Dy,{className:Ay[t].component,tabsType:t,...n})}):null,Oy=Lt((({className:e="",tabs:t=[],block:n,tabsType:r,showCounter:s=!1,isSticky:d=!1,...m})=>{const h=zy(n??{}),p=D(),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]=a(Ly(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)));i((()=>{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=Fy(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:[My({className:u({"pb-1":n?.slots&&"default"===r,"sticky top-1 z-20":d&&!f}),items:Vy(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])=>P(t,{...m?.options,slotName:C,parent:n,extraProps:{className:e===C?"":"hidden"}})))})]})}),{slots:({tabs:e})=>e?.map(Fy)?.filter(Boolean)||[]}),zy=({__id:e,anchor:t})=>t??e??"tabs",Vy=(e,t)=>t?.length?t:e,Fy=(e,t)=>"group"===e?.type?e?.tabName||`Слот №${t+1}`:"",Ly=(e,t)=>t?Number(t):e.reduce(((e,t,n)=>t.selected?n:e),0),$y={comparison:"flex gap-m duration-1000",tariff:"flex gap-5xl flex-grow duration-1000"},jy=d((({children:e,activeIndex:t,columnWidth:n,version:a="comparison"})=>o("div",{className:"flex flex-1 overflow-hidden",children:o("div",{className:$y[a],style:{transform:`translateX(-${t*n}px)`},children:e})}))),Uy=d((({className:e="",isOpen:t,onClick:n})=>o(Jr,{className:e,label:t?"Скрыть":"Показать",isUnfolded:t,version:"secondary",short:!0,onClick:n}))),qy={Buttons:({buttons:e})=>qe(e,{buttonClassName:"basis-0"}),Img:({image:e})=>e?.src?o(ie,{image:e}):null,RichText:({__html:e,isDotted:t=!0})=>o("div",{className:"flex flex-col justify-between items-start text-h6",children:o(Ae,{__html:e,isDotted:t,itemSize:"list-m"})}),LabelDescription:({label:e,description:t})=>c("div",{className:"space-y-2xs",children:[e?o("div",{children:o(Oe,{size:"text-h6",children:e})}):null,t?o("div",{className:"lg:text-l font-light text-xs",children:o(Oe,{color:"text-secondary-text",children:t})}):null]}),Table:({isVisible:e,displayTable:t,tableSource:n,pdfUrl:a,isOpen:i})=>e?o(Uy,{className:"w-fit",isOpen:i,onClick:()=>{t({tableSource:n,pdfUrl:a})}}):null},Wy=d((({cell:e,fieldIdx:t,rowIdx:n,cellIdx:l,setTableInner:r,tableInner:s,openTableInnerIdx:o,setOpenTableInnerIdx:c})=>{const[d,m]=a(!0);i((()=>{l===o&&s||m(!0)}),[s,o]);return Hy({cell:e,cellProps:{rowIdx:n,cellIdx:l,fieldIdx:t,displayTable:e=>{m(!1),c(l),r(e)},isVisible:d}})})),Hy=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:n,...a}=e;if(!n||!(n in qy))return null;return o(qy[n],{...t,...a})},Yy=d((({cells:e,rowIdx:t,cellIdx:n,setTableInner:a,tableInner:i,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(Wy,{cell:e,fieldIdx:s,rowIdx:t,cellIdx:n,setTableInner:a,tableInner:i,openTableInnerIdx:l,setOpenTableInnerIdx:r},String(s)))):null}))),Gy=(e,t)=>140*((e=[])=>e.reduce(((e,t)=>e+t),0))(e.slice(0,t).map((e=>e?.cols?.length??1))),Ky=(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(Oe,{size:"text-h6",font:"font-light",children:e})},String(t))))}):null,Xy=d((({rows:e})=>{return o(im,{visibleItemCount:0,snapAlign:"snap-start",children:o("div",{children:e?.map((t=0,(e,n)=>{if(!e?.length)return null;const[a,...i]=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:[a?.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(Oe,{size:"text-xl",font:"font-light",children:a.data})}):null,o("div",{className:"flex flex-grow overflow-hidden",children:o("div",{className:l,style:{transform:`translateX(-${Gy(i,t)}px)`},children:i?.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(Oe,{size:"text-xl",children:e.data}):null,e?.cols?Ky(e.cols,t):null]},`row${n}`)))})})]},String(n))}))})});var t})),Jy=d((({activeTabIndex:e,items:t})=>o("div",{children:t.map(((t,n)=>{const a=`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(Oe,{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(Xy,{rows:t.rowsData})})})]},a)}))}))),Zy=(e=!1)=>""+(e?"text-white":"text-secondary-text"),Qy=d((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:a})=>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:()=>a(t),children:o(Oe,{size:"text-xl",font:"font-light",color:Zy(t===n),children:e||t+1})},e)))}):null,t?o(Ce,{className:"text-primary-main",href:t,version:"link",target:"_blank",appendLeft:o(G,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-3xs",width:"20",height:"20"}),text:"Скачать в PDF"}):null]}))),eb=Lt((({tableSource:e,pdfUrl:t,onClick:n})=>{const i=e?.tableData,[r,s]=a(0),d=l((e=>s(e)),[]),m=i?.[r]?.items??[],u=i?.map((e=>e.currency??""));return c("div",i?{className:"bg-white z-10",children:[o(Qy,{currencies:u,activeTabIndex:r,setActiveTabIndex:d,linkToPDF:t}),o(Jy,{activeTabIndex:r,items:m}),o(Uy,{className:"mt-xl",onClick:n,isOpen:!0})]}:{className:"my-lg space-y-m text-center",children:[o(Oe,{size:"text-h6",children:"Данных нет"}),o(Uy,{onClick:n,isOpen:!0})]})})),tb=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(eb,{...t,onClick:n})}):null]}))),nb=d((({row:{header:e,data:t},activeIndex:n,rowIdx:i,...r})=>{const[s,d]=a(void 0),m=l((e=>d(e)),[]),[h,p]=a(void 0),g=l((e=>p(e)),[]);return c(tb,{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(ie,{className:"hidden @4xl:block max-w-6 shrink-0",image:e.icon,width:"24",height:"24"}):null,e?.title?o(Oe,{size:"text-m",font:"font-light",color:"text-primary-text",children:e?.title}):null]})}),t?.length?o(jy,{activeIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>o(Yy,{cells:e,rowIdx:i,cellIdx:t,setTableInner:m,tableInner:s,openTableInnerIdx:h,setOpenTableInnerIdx:g,...r},String(t))))}):null]})})),ab=({className:e,btnClass:t,canDec:n,canInc:a,dec:i,inc:l})=>n||a?c("div",{children:[n?o(xm,{className:u("absolute z-40",t[0],e),onClick:i}):null,a?o(ym,{className:u("absolute z-40",t[1],e),onClick:l}):null]}):null,ib=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,ab({...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]})})),lb=d((({className:e="",title:t,description:n,rowHeaders:i,tariffsColumns:r,hiddenRowsNum:s=0,...d})=>{const m=r?.map((({data:e})=>e))||[],h=i?.map(((e,t)=>({header:e,data:m.map((e=>e?.[t]||[]))}))),p=m.length,[f,x]=((e,t=0)=>{const{itemCount:n,visibleItemCount:i}=e,[r,s]=a(t),o=l((()=>s((e=>Math.min(e+1,n-1)))),[n]),c=l((()=>s((e=>Math.max(e-1,0)))),[n]),d=i?n>i&&r<n-i: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(nb,{row:e,activeIndex:f,rowIdx:t,...d},String(t)))),[b,v]=s>0?[y.slice(0,-s),y.slice(-s)]:[y,[]],[N,{toggle:w}]=ln(!1);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?c(Zr,{children:[c(ib,{controls:x,children:[b,o(Qr,{isUnfolded:N,children:v})]}),o(Jr,{className:"text-h4",isUnfolded:N,onClick:w})]}):o(ib,{controls:x,children:y})})]})})),rb=d((({className:e="",title:t,description:n,iconVersion:a,__html:i,richVersion:l,...r})=>c(g,{className:u("flex gap-s sm:gap-m group-data-secondary:bg-primary-main/10",e),...r,children:["small"===a?sb():null,c("div",{className:"flex flex-col w-fit gap-2xs sm:gap-xs",children:[t?o(Oe,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,n?ob(n):null,i?o(Ae,{richVersion:l,__html:i}):null]})]}))),sb=()=>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"}),ob=e=>o(C,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),cb=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(Oe,{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(Oe,{size:"text-h2",children:n})}):null]}))),db=d((e=>{const{prefix:t,unit:n,suffix:a,...i}=e;return o(g,{defaultPadding:"p-0",...i,children:o(cb,{prefix:t,unit:n,suffix:a})})})),mb={AdTile:jt,ApplicationForm:br,ApplicationLeadForm:Yd,BankAccountFiltration:Lm,BenefitsBlock:Wm,BonusBenefitsBlock:Gm,ButtonsBlock:Xm,CalculatorBonus:au,CalculatorBusinessDeposit:hu,CalculatorCredit:_o,CalculatorDeposit:Eu,CalculatorRefinancing:Fu,CardTransfer:Xu,Carousel:ih,CarouselCard:oh,CarouselCatalogCard:dh,CarouselLinks:hh,CarouselRecommendationCard:Nh,CarouselTariffsCard:kh,CreditCardForm:xp,CreditForm:Up,DepositFiltration:Gp,Depository:dg,ErrorBlock:ug,ExchangeRateTile:Ug,Footer:rf,GrantSupport:sf,Header:hf,Headline:k,HorizontalLayout:xf,ImgBlock:yf,LinkDocs:Rf,MobileAppTile:Df,MortgageFiltration:ex,OfficesAtmsMap:kx,Placeholder:Ix,ProductBlock:$t,ProductGallery:Tx,RepresentativeOfficeInfo:Rx,RichTextBlock:Ex,RollupItem:_x,SafeDepositRental:ny,StepsBlock:dy,StickyBottomMenu:Ry,TabsLayout:Oy,TariffsTable:lb,TextBlock:rb,UnitBlock:db,VerticalLayout:ff},ub=me((()=>{i((()=>{tn()}),[]);const e=an();gn(globalThis,"click",(e=>t=>{const n=t.target?.closest("[data-aspects]");try{const a=JSON.parse(n?.dataset?.aspects??"[]");Zt({aspectsAttributes:a,aspects:e,ev:t})}catch(e){}e.forwardQuery?.(t)})(e))}));const hb="cookie",pb=d((({__html:e})=>{const[t,{setTrue:n,setFalse:a}]=ln();!function(e,t,n=300){i((()=>{const t=globalThis.setTimeout(e,n);return()=>{globalThis.clearTimeout(t)}}),t)}((()=>{globalThis.localStorage?.getItem(hb)||n()}),[],3e3);const r=l((()=>{globalThis.localStorage?.setItem(hb,"true"),a()}),[]);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(Ae,{__html:e})}),o("div",{className:"ml-s sm:ml-0 w-36 flex justify-end",children:o(ar,{className:"bg-main-gray rounded-md w-11 h-11",onClose:r})})]})}):null}));function gb(e){const t=l((({key:t})=>{"Escape"===t&&e()}),[e]);gn(globalThis.document,"keydown",t)}const fb=d((()=>{const[e,{close:t}]=py(),n=Boolean(e.length);return gb(t),i((()=>{n?globalThis.document?.body.classList.add("no-scrollbar","overflow-hidden"):globalThis.document?.body.classList.remove("no-scrollbar","overflow-hidden")}),[n]),n?o("div",{className:"fixed inset-0 z-50",children:e.map((({dialog:t,id:n},a)=>o("div",{className:u("absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar bg-black/50",{hidden:a!==e.length-1}),children:t},String(n||a))))}):null})),xb=d((()=>{const[e,t]=a(null),n=l((()=>{t(null)}),[]);return hy(pe.observable,"popup",{open:t,close:n}),gb(n),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",title:"Всплывающее окно",children:e.popup}):null})),yb="header",bb="footer",vb="sticky-footer",Nb={},wb=d((({className:e,data:t=Nb,blocksRegistry:n,blockDecorator:a})=>{const{slots:i,blocks:l,fallback:r,...s}=t,d=Vt(s,r);ub(),gg();const m={key:"",page:{slots:i,blocks:l,fallback:r,...d},blocksRegistry:n,blockDecorator:a,parent:t};return c("div",{"data-theme":t.colorPalette||"pc",children:[c("section",{className:u("@container relative",t.style,e),children:[i?.[yb]?.length?o("div",{className:"relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]",children:P(i?.[yb],{...m,slotName:yb})}):null,c("div",{className:"container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs",children:[E({block:t,options:m,extraProps:{className:"scroll-mt-12"}}),P(i?.[bb],{...m,slotName:bb})]})]}),i?.[vb]?.length?o("div",{className:"fixed w-full bottom-0 left-0 z-[100]",children:P(i?.[vb],{...m,slotName:vb})}):null,o(fb,{}),o(xb,{}),o(pb,{__html:d?.cookieContent?.__html})]})}));Object.assign(wb,{childrenTypes:[],slots:()=>[yb,bb,vb]});e.Blocks=mb,e.ContentPage=wb,e.handlerDecorator=me,e.joinList=Tm,e.locationNavigator=Qt,e.packageVersion="0.14.763",e.projectSettings=A,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=L,e.useRouter=D,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),l=n("useState"),a=n("useEffect"),i=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:l,...a}=t||{},i=n?.slots?.default,r=l||i&&i();return e(Object.assign(a,r&&{children:r}),n)}return t.inheritAttrs=!1,t},h=(...e)=>e.map((e=>u(e)?Object.entries(e).filter((([,e])=>e)).map((([e])=>e)):e)).flatMap((e=>e)).filter(Boolean).join(" "),u=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:l="p-xl",padding:a,block:i,tag:r="section",role:s,children:c,style:d})=>{const m=t&&n;return o(r,{className:h("@container font-sans",{group:m},p[t],a||l,e),...m?{"data-ver":t}:{},...i?.anchor?{id:i.anchor}:{},role:s,style:d,children:c})})),x=d((({className:e,size:t})=>o("figure",{className:h("m-0 mt-xl min-w-[80%]",e),children:f(t)}))),f=(e=3)=>y(100,e).map((e=>Math.floor(e))).map(b),b=(e,t)=>o("div",{style:{width:`${e||100}%`},className:"h-4 mt-xs bg-secondary-dark relative overflow-hidden animate-pulse"},String(t)),y=(e,t)=>[e].concat(t>0?y(e/1.618,t-1):[]),v={h1:"h1",h2:"h1",h3:"h2",h4:"h2",h5:"h3",h6:"h3"},w={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},N=d((({className:e="",headingType:t="h3",as:n="h3",title:l,children:a})=>{const i=v[n]||"h3";return o(i,{role:"heading",className:h("font-sans m-0",w[t],e),children:l||a})})),k=d((({children:e,...t})=>o("p",{className:h("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"}},C=d((({className:e,version:t="",headlineVersion:n="XL",title:l,description:a,align:i="text-center",as:r,isEmbedded:s=!1,isTheme:d=!1,...m})=>{const u=S[n],p={marginTop:u.descriptionStyle};return c(g,{className:h({"@container-normal":s},e),defaultPadding:s?"":"p-6xl",version:t,isTheme:d,...m,children:[l?o(N,{className:h("whitespace-pre-wrap",i),...u?.title,as:r||u?.title.as,title:l}):null,a?o(k,{size:u.descriptionSize,font:u.descriptionWeight,align:i,...p,children:a}):null]})})),I=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),T=[];function B(e,t,{className:n,...l}={}){const{key:a,blockDecorator:i=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 i({blockClassName:h(e.style?.length?e.style:"col-span-12",n),block:e,ancestors:s,render:({block:n,blockClassName:i})=>{const{content:r}=n;return d?o(d,{className:i,block:e,options:t,...r,...l},a):null}},a)}const M=[],P=(e,{key:t,ancestors:n=M,slotName:l=null,extraProps:a,renderProps:i=B,...r})=>{const s=a?(e,t)=>B(e,t,a):i;return(e||[]).map(((e,a)=>s(e,{...r,key:`${t||e.type}-${a}`,ancestors:r.parent?[...n||M,[r.parent,l]]:n},a)))};function V({block:e,options:t,children:n,extraProps:l,renderProps:a}){return n||(e&&t?P(e.blocks,{...t,parent:e,extraProps:l,renderProps:a}):null)}function R(){return R._impl()}R._impl=()=>({isReady:!1,href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),R.setup=e=>{R._impl=e};const z=["CDN","BASE_PATH"],D=new Proxy({_:{},setup(e){this._=e}},{get(e,t){const n=e._[t]||e[t];return z.includes(t)?(e=>e&&!e.endsWith("/")?`${e}/`:e)(n):n}}),_="http://_",$=(...e)=>{const t=e.filter(Boolean).map((e=>new URL(e,_))),n=t.find((e=>e.origin!==_))?.origin,l=L(t.map((e=>e.pathname))),a=j(...t.map((e=>e.searchParams))).toString(),i=t.find((e=>e.hash))?.hash;return[n,l,a?`?${a}`:"",i].filter(Boolean).join("")},j=(...e)=>{const t=new URLSearchParams;for(const n of e)for(const[e,l]of n)t.set(e,l);return t},L=e=>e.join("/").replace(/\/+/g,"/"),A=e=>Boolean(e?.includes(":")),O=(e,t)=>Boolean(e&&!A(e)&&(!t||"_self"===t)),E=e=>Boolean(e?.startsWith("#")),F=e=>t=>Boolean(e&&t&&e.startsWith(t)&&("/"===t||e===t||"/"===e[t.length]));var U=Object.freeze({__proto__:null,isURL:A,isLocalURL:O,isHash:E,withoutQuery:e=>(e??"").replace(/\?.*/,"").replace(/\/$/,""),hasPrefix:F,joinPath:$});const W="/api/",H=`${W}v1/storage`,Y=[D.CDN,W],K=e=>(t,n)=>{if(q(t))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`${H}/${t}/attachment`;const l=t?.startsWith("/");return $(F(t)(n)?"":n,l?"/":(a=e.pathname,a?.split("/").slice(0,-1).join("/")),t);var a},q=e=>!e||A(e)||E(e)||Y.some(F(e)),X={"":"",normal:"",color:"text-primary-main",black:"text-black",white:"text-black",gray:"text-gray"},G={small:"16",medium:"24",large:"48",xl:"78"},Z=d((({className:e="",imageClassName:t="",name:n="",alt:l=`Иконка ${n}`,title:a=l,iconVersion:i="color",size:r,width:s=r&&G[r],height:d=s})=>{const m=R(),u="normal"===i?`${n}.svg`:`sprites.svg#${n}`,p=K(m)($(D.CDN,"/icons/",u));return"normal"===i?o("img",{className:e,style:J(e,d),src:p,alt:l,title:a,"aria-hidden":"true",width:s,height:d}):o(Q,{className:e,children:c("svg",{className:h(X[i],{"w-full h-full":!s,invert:"white"===i},t),width:s,height:d,"aria-hidden":"true",children:[a?o("title",{children:a}):null,l?o("desc",{children:l}):null,o("use",{href:p,xlinkHref:p})]})})})),J=(e,t)=>{return e?.includes("h-")?{}:{height:(n=t,n&&!/\D/.test(n)?`${t}px`:t),width:"auto"};var n},Q=d((({className:e,children:t})=>e?o("div",{role:"img",className:e,children:t}):t)),ee=new Proxy({_:{},setup(e){this._=e}},{get:(e,t)=>e._[t]||e[t]});function te(e=""){try{return new URL(e).pathname}catch(e){return""}}const ne=e=>t=>{const n=t?.startsWith("/wcms-resources")?"":te(ee.SITE_URL);return t&&!A(t)?K(e)(t,n):t},le=(e,t)=>e?.media&&t?.media?e.media-t.media:0,ae=d((({className:e="",image:t,imageClassName:n=""})=>{const l=R();return c("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(le).map((({src:e,format:n,media:a},i)=>o("source",{srcSet:ne(l)(e),type:re(n),media:a?`(max-width: ${a}px)`:"",width:t?.size?.width,height:t?.size?.height},`${i}_${e}`))):null,t?.src?ie({...t,src:ne(l)(t.src)},n):null]})})),ie=(e,t="")=>o("img",{src:e.src,className:h("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}),re=e=>e?`image/${String(e)}`:void 0,se=d((({className:e="",image:t,imageClassName:n="",...l})=>t?.src||t?.icon?t.icon?o(Z,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...l}):o(ae,{className:e,imageClassName:n,image:t}):null)),oe={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","":""},ce="bg-main-divider text-main-disabled",de={primary:ce,secondary:ce,white:ce,link:"",transparent:"",gray:ce,"":""},me="text-center font-sans select-none",he={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","":""},ue=({className:e,rounded:t,version:n})=>[me,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?oe[n]:"",t?"rounded-full":"rounded-md",e].join(" "),pe=e=>pe._impl(e);function ge(e,t){const n=s({});return r((()=>new Proxy({},{get:(l,a)=>(n.current||={},n.current[a]||=n=>e.fire(t,{...n??{},type:a}),n.current[a])})),[e,t])}pe._impl=e=>e,pe.setup=e=>{pe._impl=e};class xe{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 fe=new xe,be=()=>ge(fe.emitter,"dialog");function ye(){const e=R(),{closeAll:t}=be();return n=>{const l=K(e)(n.href);return{...n,href:l,"aria-label":n.text,onClick:pe((a=>{n.onClick?.(a);const i=te(ee.SITE_URL);ve(l,n.target,i)&&(t(),a?.preventDefault(),e.push(((e,t="")=>e?.replace(t,"")||"/")(l,i)))}))}}}const ve=(e,t,n)=>O(e,t)&&!ee.SUB_PORTALS?.split(",")?.some(F(e))&&F(e)(n||"/"),we=e=>{try{return Array.isArray(e)&&e.length?{"data-aspects":JSON.stringify(e)}:{}}catch(e){return{}}},Ne=d((e=>{const{text:t,aboveText:n,appendLeft:l,appendRight:a,version:i="primary"}=e,r=Se(e)&&"hidden lg:block";return c("div",{className:h(ke(e),"flex gap-xs"),children:[l?o("div",{className:h(r,he[i]),children:l}):null,Se(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:h(r,he[i]),children:a}):null]})})),ke=e=>{const{version:t,aboveText:n,rounded:l}=e;if("link"===t)return"";const a=""+(n?"py-2.5 px-9":"py-4 px-9");return h("group/btn items-center justify-center",Se(e)?a:"h-12 w-12 m-auto",{"rounded-full":l})},Se=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Ce=({className:e,rounded:t,version:n})=>["inline-block",me,n?de[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Ie=d((({disabled:e,children:t,method:n="LINK",href:l,...a})=>{const r=(({method:e,href:t})=>i((n=>{if("POST"!==e||!t)return;n.preventDefault(),n.stopPropagation();const{origin:l,pathname:a,searchParams:i}=new URL(t||""),r=document.createElement("form");r.setAttribute("method","POST"),r.setAttribute("action",[l,a].join(""));for(const[e,t]of i.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()}),[e,t]))({method:n,href:l}),s=ye()({onClick:r,href:l,...a}),c=t??o(Ne,{...s});return o(e?Be:Te,{...s,children:c})})),Te=d((({className:e="",href:t,rel:n,target:l,ariaLabel:a,version:i,rounded:r,onClick:s,type:c,data:d,children:m,text:h})=>o("a",{className:ue({className:e,version:i,rounded:r}),href:t,rel:n,target:l,"aria-label":a||`Ссылка на ${h}`,role:t?"link":"button",onClick:s,type:c,...we(d),children:m}))),Be=d((({className:e,ariaLabel:t,version:n,rounded:l,children:a})=>o("button",{type:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Ce({className:e,rounded:l,version:n}),children:a})));function Me({version:e,handleClick:t,text:n="Вернуться назад",alwaysVisible:l=!1}){if(!n)return null;const a="primary"===e?"white":"black",i="primary"===e?"bg-primary-main":"bg-white";return c("div",{className:h(l?"flex":"hidden sm:flex","items-center gap-s"),children:[o("div",{className:h(ue({className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",rounded:!0}),i),onClick:t,children:o(se,{className:"w-4 h-4",image:{icon:"ArrowLeftIcon",iconVersion:a}})}),o(Ie,{version:"link",className:"group-data-secondary:text-white",text:n,ariaLabel:n,onClick:t,type:"button"})]})}const Pe=()=>{const[e,t]=l(true);return a((()=>{const e=globalThis.matchMedia?.("(max-width: 1024px)"),n=()=>{t(Boolean(e?.matches))};return e?.addEventListener("change",n),e?.matches&&t(!0),()=>{e?.removeEventListener("change",n)}}),[]),e},Ve={start:"@xl:self-start",center:"@xl:self-center",end:"@xl:self-end"},Re=(e,{className:t,imageAlign:n})=>e?o("div",{className:h("shrink-1/2 justify-self-center",n&&Ve[n],t),children:e}):null,ze=d((({className:e,version:t="primary",defaultPadding:n,padding:l="",title:a,buttons:r,leftImage:s,rightImage:d,imageAlign:m,insetTitle:u,isImageAlwaysOnRight:p=!1,isImageSecondary:g=!1,backwardButton:x,children:f,...b})=>{const y=Pe(),v=R(),w=i((()=>v.back()),[]),N=b.options?.page?.common?.backwardButton,k=x&&!y;return c("div",{className:h("relative flex flex-col gap-3xl overflow-hidden",l||n,e),children:[k&&Me({version:t,handleClick:w,text:N}),a?o("div",{className:"relative h-full",children:a}):null,c("div",{className:h("grow relative flex flex-col @xl:flex-row gap-3xl w-full",{"self-start @xl:w-auto":s}),children:[Re(s,{imageAlign:m,className:"mx-auto"}),c("div",{className:h("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:[u,f]}),_e(V({...b,extraProps:{className:"@container-normal"}})),Re(d,{className:h("@xl:justify-self-end @xl:col-start-2",{[De(p)]:r,"col-start-2 self-center":p,"hidden @xl:block":g}),imageAlign:m}),r?o("div",{className:"self-end",children:r}):null]})]})]})})),De=e=>h(e?"row-span-2":"@xl:row-span-2"),_e=e=>e?.length?o("div",{className:"flex items-start justify-end",children:e}):null,$e=(e,t="normal")=>e?.icon||e?.src?o("div",{className:h("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(se,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,je=d((({__html:e="",richVersion:t="",itemSize:n="list-m",isDotted:l=!0,children:a})=>e||a?o("div",{"data-component":"rich-text-container",children:o("div",{className:h(t,n,"md-container group-data-secondary:text-white group-data-gray:text-secondary-text",l?"":"without-dots"),dangerouslySetInnerHTML:e?{__html:e}:void 0,children:a})}):null)),Le=(e,t)=>e?o(k,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,Ae=d((({children:e,...t})=>o("span",{className:h("font-sans",Object.values(t)),children:e}))),Oe=(e,t)=>e?o(Ae,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,Ee=(e,t)=>["label"in e?Oe(e.label,t):null,"description"in e?o("span",{className:e.descriptionClassName,children:Le(e.description,t)},String(t)):null,"__html"in e?o(je,{...e},`rte-${t}`):null],Fe=d((({className:e,benefitsVersion:t,...n})=>c("div",{className:h("flex gap-m min-w-56 items-center",e),role:"listitem",children:["icon"in n?$e(n.icon,t):null,o("div",{children:Ee(n)})]}))),Ue=d((({className:e,benefitsVersion:t="normal",benefits:n})=>n?.length?o("div",{className:h("flex gap-x-m gap-y-s flex-col",e),role:"list",children:n.map(((e,n)=>o(Fe,{benefitsVersion:t,...e},String(n))))}):null)),We=d((({className:e,benefits:t})=>t?.length?o("div",{className:h("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)),He=d((({isTabularBenefits:e,...t})=>o(e?We:Ue,{...t}))),Ye=e=>Boolean(e?.src||e?.icon),Ke=(e,{className:t,buttonClassName:n,isVertical:l}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?o("div",{className:h("flex",l?"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:l,icon:a,iconRight:i,version:r,...s}=t||{},c=Xe(a,r),d=Xe(i,r);return l||a?.icon?o(Ie,{className:h("basis-full @lg:basis-auto",e),appendLeft:Ge({...a,iconVersion:c}),appendRight:Ge({...i,iconVersion:d}),version:r,text:l,...s},n?String(n):""):null},Xe=(e,t="secondary")=>{const n="secondary"===t?"color":"white";return e?.iconVersion||n},Ge=e=>Ye(e)&&o(se,{image:e,width:String(e?.size?.width||24),height:String(24)}),Ze=(e=0,{fixed:t}={})=>(n=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:t?e:0,maximumFractionDigits:e}).format(Number(n)||0),Je=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(Qe)}):null)),Qe=({label:e,amount:t,unit:n},l)=>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(Ae,{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:[Ze(2)(t)," ",n||"₽"]}):null]},String(l)),et=d((({className:e,tags:t})=>t?.length?o("div",{className:h("flex flex-wrap gap-xs",e),role:"list",children:t.map(tt)}):null)),tt=(e,t)=>o("div",{className:"p-xs border-solid border rounded-md border-gray",role:"listitem",children:o(Ae,{size:"text-m",font:"font-light",children:e})},String(t)),nt={XXL:"list-l",XL:"list-l",L:"list-m",M:"list-m",S:"list-s",XS:"list-s"},lt=d((({className:e,padding:t,defaultPadding:n,title:l,description:a,headlineVersion:i="L",align:r="text-left",benefitsVersion:s,isTabularBenefits:d,isDotted:m=!0,benefits:h,__html:u,richVersion:p,isFullWidthTitle:g,priceList:x=[],tags:f=[],buttons:b,image:y,imageOptions:{imageAlign:v="center",directionRight:w=!0,isImageAlwaysOnRight:N,isImageSecondary:k=!1}={},backwardButton:S,children:I,...T})=>{const B=y?.src?o(se,{image:y}):null,M=o(C,{title:l,description:a,headlineVersion:i,align:r,isEmbedded:!0}),P=h?.filter((e=>"__html"in e||"label"in e||"description"in e));return o(ze,{className:e,padding:t,defaultPadding:n,...g?{title:M}:{insetTitle:M},...at(B,w),isImageSecondary:k,imageAlign:v,isImageAlwaysOnRight:N,buttons:Ke(b),backwardButton:S,...T,children:c("div",{className:"flex flex-col sm:gap-xl gap-4xl",children:[P?.length?o(He,{benefitsVersion:s,isTabularBenefits:d,benefits:P}):null,u?o(je,{richVersion:p,__html:u,isDotted:m,itemSize:nt[i]}):null,I,x?.length?o(Je,{priceList:x}):null,it(f)]})})})),at=(e,t)=>t?{rightImage:e}:{leftImage:e},it=e=>e?.length?o(et,{tags:e}):null;class rt{_;constructor(e){this._=e}of(e){return new this.constructor(e instanceof rt?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 st=()=>!0,ot=(e,t)=>(...n)=>e(...n)&&t(...n),ct=(...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 dt=e=>Boolean(e&&Array.isArray(e)),mt=e=>Boolean(e&&"object"==typeof e&&!dt(e)),ht=e=>e;function ut(e){return e instanceof rt?e._:e}class pt extends rt{from(e){return this.of(e.map(((e=ht)=>([,t])=>e(t))(ut)))}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(dt(this._)?Array.from({length:Math.max(this._.length,Number(e)+1)},((n,l)=>l===e?t:this._[l])):Array.from({length:Number(e)+1},((n,l)=>l===e?t:void 0)))}}class gt extends rt{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 xt extends rt{from(e){return this.of(Object.fromEntries(e.map((([e,t])=>[e,ut(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 ft extends rt{proto=ct([e=>dt(this._)||"number"==typeof e,()=>pt.prototype],[e=>mt(this._)||"string"==typeof e,()=>xt.prototype],[st,()=>gt.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 bt=e=>e instanceof rt?e:new ft(e),yt=e=>{const t=(t,...n)=>ut(e(bt(t),...n));return t.fn=e,t},vt=[],wt=e=>e instanceof Function?e:t=>e===t,Nt=e=>(t,n,l=vt)=>bt(t).entries().reduce(((t,[n,a])=>Nt(e)(a,t,l.concat(n))),e(n,[l,bt(t)])),kt=yt(((e,[t,n])=>{const[l,...a]=t;return e.set(l,a.length?kt(e.get(l),[a,n]):n)})),St=yt(((e,t)=>t.reduce(kt.fn,e))),Ct=e=>Nt(((e,[t,n])=>It(n)?[...e,[t,ut(n)]]:e))(e,[]),It=e=>0===e.size();yt(((e,t=vt)=>t.reduce(((e,t)=>e.get(t)),e)));const Tt=yt(((e,[t,...n])=>n.length?e.set(t,Tt(e.get(t),n)):e.filter((([e])=>e!==t)))),Bt=(Mt=["$ref"]).map(((e,t)=>n=>wt(e)(n[t+n.length-Mt.length]))).reduceRight(ot,st);var Mt;const Pt=(e,t)=>(e=>e.includes("#")?e.substring(e.indexOf("#")+1).split("/").filter(Boolean):[])(t).reduce(Vt,e),Vt=ct([dt,(e,t)=>e[parseInt(t,10)]],[mt,(e,t)=>e[t]],[st,ht]),Rt=(e,t)=>((e,t={})=>n=>St(t,Ct(n).map((t=>e(t)))))((([e,n])=>{return Bt(e)?[(l=e,l.slice(0,-1)),Pt(t(n),n)]:[e,n];var l}))(e),zt=e=>Ct(e).filter(((e=ht)=>([t])=>e(t))(Bt)),Dt=e=>{return t=zt(e).map((([,e])=>e)),[...new Set(t)];var t};async function _t(e,t){try{return e?await $t(e,t):null}catch(e){console.error(e)}return null}const $t=async(e,t)=>(await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}})).json(),jt=e=>[...new Set(e)],Lt={},At=["/portal-resources"],Ot=(e,t)=>Rt(e,(e=>t?.[e])),Et=(e,t)=>{const n=Dt(e),[i,r]=l({});return a((()=>{Ft(n).then(r)}),[n.join()]),n.length?Ot(e,{...t,...i}):e},Ft=async(e,t={})=>{if(e.length){const n=await(async e=>Object.fromEntries((await Promise.allSettled(jt(e).filter((e=>!At.some((t=>e.startsWith(t))))).map((async e=>[e,Lt[e]||=await $t(e)])))).filter((e=>"fulfilled"===e.status)).map((({value:e})=>e))))(e),l={...t,...n},a=Object.entries(n).flatMap((([,e])=>Dt(e)));return a.length?Ft(a,l):l}return t};function Ut(e,t={}){const n=d((t=>{const n=Et((({block:e,options:t,className:n,defaultPadding:l,padding:a,isTheme:i,version:r,children:s,...o})=>o)(t),t.options?.page?.fallback);return o(e,{...t,...n})}));return Object.assign(n,t),n}const Wt=Ut((({className:e,padding:t,defaultPadding:n,...l})=>o(g,{className:h("overflow-hidden flex flex-col gap-3xl box-border",e),padding:"p-0",...l,children:o(lt,{defaultPadding:n||"p-6xl",padding:t,className:"grow h-full",...l})})),{childrenTypes:["UnitBlock"]}),Ht=d((e=>{const{items:t}=e.options?.page?.adSourceBook??{},n=r((()=>Yt(0,t?.length)),[t]),l=t?.[n];return l?o(Wt,{suppressHydrationWarning:!0,...l,...e}):o(g,{...e,children:o(x,{})})})),Yt=(e=0,t=0)=>Math.floor(Math.random()*(t-e)+e),Kt=(e,t=!1)=>{if("string"==typeof e)return e.split("-").reverse().join(".");{const n=String(e.getDate()).padStart(2,"0"),l=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getFullYear());return t?`${a}-${l}-${n}`:`${n}.${l}.${a}`}},qt=e=>e?.replace(/[^+\d]/g,""),Xt="/api/v1";const Gt=e=>e?{phone:qt(e)}:{},Zt=(e,t="birthday")=>e?{[t]:Kt(e)}:{},Jt=(e,t=!0)=>({[t?"regionBranch":"region"]:e}),Qt=(e,t=!0)=>({[t?"email":"mail"]:e}),en=(e="")=>e&&"+7 ("!==e?{secondaryPhoneNumber:qt(e)}:{},tn=({aspectsAttributes:e,aspects:t,ev:n})=>{for(const{aspectName:l,params:a}of e??[])t[l??""]?.(n,a)};function nn(){return nn._impl()}nn._impl=()=>({assign:(e,t)=>{globalThis.open(e,t||"_self")},get origin(){return globalThis.location.origin},get href(){return globalThis.location.href}}),nn.setup=e=>{nn._impl=e};const ln="rshb-query-params";function an(){const e=globalThis.location?.search||globalThis.sessionStorage?.getItem(ln)||"";return e&&globalThis.sessionStorage?.setItem(ln,e),e}const rn=e=>{const t=e.target?.closest("a"),n=nn();if(A(t?.href)&&!t?.href?.startsWith(n.origin)){e.preventDefault(),e.stopPropagation();const l=(e=>{const t=an();if(!A(e)||!t)return e;const n=new URL(e);for(const[e,l]of new URLSearchParams(t))n.searchParams.set(e,l);return n.toString()})(t?.href)||t?.href;l&&n.assign(l,t?.target)}};function sn(){return sn._impl()}function on(e=!1){const[t,n]=l(e),a=i((()=>n(!0)),[]),r=i((()=>n(!1)),[]),s=i((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:a,setFalse:r,toggle:s}]}sn._impl=()=>({forwardQuery:rn}),sn.setup=e=>{sn._impl=e};const cn=e=>t=>t&&Object.entries(e??{}).flatMap((([e,n])=>n?n(t[e]):[]))||[],dn=e=>!e?.length,mn=e=>t=>n=>e(n)?[]:[t],hn={},un=[];const pn=(e,t)=>e&&t&&(e===t||Object.keys({...e,...t}).every((n=>e[n]===t[n])));function gn(e,{resetOnSubmit:t,formValidator:n,normalizer:o,onChange:c,onSubmit:d}={}){const[m,h]=function(e,t,n){const[r,s]=l(e),o=i((e=>s((l=>{const a=e instanceof Function?e(l):e,i=t?t(a):a,r=pn(a,i)?a:i;return!pn(l,r)&&n?.(r),r}))),[t,n]);return a((()=>{t&&s(t)}),[t]),[r,o]}(e,o,c),[u,{setTrue:p,setFalse:g}]=on(!1),x=s({}),[f,{isValid:b,errors:y}]=function(e,t){const n=r((()=>t?.(e)??hn),[t,e]),l=r((()=>cn(n)(e)??un),[n,e]),a=dn(l);return[n,{isValid:a,errors:l}]}(m,n),v=i(((e,t={})=>{const{parse:n,format:l,onChange:a}=t,i=m[e],r=u||x.current?.[String(e)],s=t?.validator??f[e],o=r&&s?s(i):[];return{value:l?l(i):i,isDirty:r,errors:s&&o,error:o[0],onChange:t=>{x.current||={},x.current[String(e)]=!0;const l=n?n(t):t;a?.(l),h((t=>({...t,[e]:l})))}}}),[m,u,f,h]),w=i((e=>{x.current=e,h(e)}),[h]),N=i((()=>{x.current={},g(),h(e)}),[e,h]),k=i((e=>{e.preventDefault(),b?(t&&N(),d?.(m,e)):p()}),[t,m,b,N,d]);return[m,{errors:y,field:v,update:w,reset:N,onSubmit:k}]}const xn=d((e=>{const{className:t,title:n,children:l,...a}=e;return o(g,{className:t,defaultPadding:"p-6xl",...a,children:c("div",{className:"container space-y-lg",children:[n?o(N,{headingType:"h3",title:n,className:"@xl:text-center"}):null,l]})})}));function fn(e,t={}){const{open:n,close:l,...a}=be();return{open:i(((a,i={})=>n({dialog:o(e,{...t,...a,onClose:()=>{l(),a.onClose?.()}}),...i})),[e,n,l]),close:l,...a}}function bn(e,t,n,l){a((()=>{if(e&&n)return e.addEventListener(t,n,l),()=>{e.removeEventListener(t,n,l)}}),[e,t,n])}function yn(e){const t=s(null),n=i((n=>{t&&t.current&&n.target instanceof Node&&!t.current.contains(n.target)&&e()}),[e]);return bn(globalThis.document,"click",n),t}const vn=({label:e,errors:t})=>e&&t?`${e}*`:e,wn=()=>{},Nn="border border-solid outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text rounded",kn=e=>e?o(Ae,{size:"text-m",color:"text-primary-text",font:"font-light",children:e}):null,Sn=d((({key:e,className:t,id:n,name:l,type:r="text",label:d,placeholder:m,value:u="",valid:p=!0,pattern:g,autoFocus:x=!1,isTextarea:f=!1,disabled:b=!1,children:y,onChange:v,onFocus:w,onBlur:N})=>{const k=s(null),S=i((e=>{const t=(e.target?.value??"").trimStart();v&&v(t)}),[v]);a((()=>{x&&k.current?.focus()}),[x,k]);const C=y?"pr-3xl":"",I=(e=>e?Nn:"border-error")(p),T=d??l??n;return c("div",{className:h("relative",t),children:[c("label",{className:"space-y-xs",children:[kn(d),f?o("textarea",{className:h("block resize-y min-h-24",Cn,I),id:h("textarea",n),value:u,name:l||n,placeholder:m,disabled:b,"aria-label":T,onChange:S,onFocus:w,onBlur:N},e):o("input",{ref:k,className:h("h-14",Cn,C,I),id:n,type:r,value:u,name:l||n,placeholder:m,pattern:g,disabled:b,"aria-label":T,onChange:S,onFocus:w,onBlur:N},e)]}),y]})})),Cn="w-full border rounded-md text-primary-text outline-none p-m",In=e=>o("div",{className:"h-6",children:e?o(Ae,{size:"text-xs",font:"font-light",color:"text-error",children:e}):null}),Tn=d((({className:e,label:t,value:n="",placeholder:l,error:r,errors:s,onChange:d=wn,onBlur:m,isTextarea:u,type:p,isInteger:g=!1,maxLength:x,disabled:f=!1})=>{const[b,{setFalse:y,setTrue:v}]=on(),w=yn(y),N=i((e=>{!b&&v(),x?e.length<=x&&d(e):d(e)}),[b,d]);return a((()=>{g&&n&&d(Bn(n))}),[n]),c("div",{className:h("shrink-0 w-full",e),ref:w,onBlur:y,onFocus:v,children:[o("div",{children:o(Sn,{disabled:f,type:p||"text","aria-label":t,label:vn({label:t,errors:s}),valid:Boolean(!r),value:n,onChange:N,onBlur:m,isTextarea:u,placeholder:Mn(l,s,t)})}),In(r)]})})),Bn=(e="")=>e.replace(/[^\d]+/g,""),Mn=(e,t,n)=>t&&!n?`${e}*`:e,Pn=e=>e?.text||e?.key||"",Vn=(e,t)=>e?.length&&t?.trim()?e.filter((e=>e.text?.toLocaleLowerCase().includes(t?.trim().toLocaleLowerCase()))):e,Rn=d((({popupRef:e,options:t,value:n,query:l,onChange:a,iconVersion:i})=>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:Vn(t,l).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:Pn(e)}),o(Z,{name:"DoneSimpleIcon",width:"16",height:"16",iconVersion:i,className:h("absolute right-4 pt-3xs",{hidden:e.key!==n?.key})})]},e.key)))}):null));function zn({isOpen:e,options:t,value:n,query:l,onChange:r,onClose:c,iconVersion:d}){const m=ge(fe.emitter,"popup"),h=i((()=>{m.close(),c&&c()}),[c]),u=i((e=>{h(),r&&r(e)}),[h,r]),p=s(null),g=yn(h);return a((()=>{if(!e||!p.current)return;const a=p.current,{top:i,left:r,width:s,height:c}=a.getBoundingClientRect();m.open({popup:o(Rn,{popupRef:g,options:t,value:n,query:l,onChange:u,iconVersion:d}),top:i+window.scrollY+c,left:r,width:s})}),[e,t,n,l,u]),p}const Dn=d((({className:e,label:t,options:n=[],value:a,valid:r=!0,isBorder:s=!0,placeholder:d="",isSearch:m=!1,disabled:u=!1,iconVersion:p="black",onChange:g})=>{const[x,{setFalse:f,setTrue:b}]=on(),[y,v]=l(""),w=jn(u,n.length),N=x&&!w,k=i((()=>{w||b()}),[w]),S=i((()=>{v(""),f()}),[]),C=zn({isOpen:x,options:n,value:a,query:y,onChange:g,onClose:S,iconVersion:p});return c("div",{className:h("space-y-xs",e),children:[kn(t),c("div",{className:h("relative",N?"z-20":"z-10"),ref:C,children:[c("div",{className:h("h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden",$n(s,r,w)),onClick:N?S:k,children:[o("p",{className:"line-clamp-2 text-ellipsis",children:Pn(a)||d}),_n(N,p)]}),m&&N?o("div",{className:h("absolute top-0 w-full z-20"),children:o(Sn,{type:"text",value:y,autoFocus:!0,disabled:w,onChange:v})}):null]})]})})),_n=(e,t)=>o(Z,{className:h("absolute right-0 flex self-center",{"rotate-180":!e}),iconVersion:t,name:"ArrowUpIcon",width:"16",height:"16"}),$n=(e,t,n)=>h(e?"border rounded-md ":"",e&&!n?"hover:border-primary-hover":"",n?"bg-main-divider":"cursor-pointer ",t?"border-gray":"border-error"),jn=(e,t)=>e||0===t,Ln=d((({className:e="",label:t,error:n,errors:l,...a})=>c("div",{className:e,children:[o(Dn,{...a,valid:!n,label:vn({label:t,errors:l})}),In(n)]}))),An=[{text:"Торговый эквайринг",key:"trade"},{text:"СБП-эквайринг",key:"sbp"},{text:"Интернет-эквайринг",key:"internet"},{text:"Все виды эквайринга",key:"all"}],On=d((({field:e,input:t})=>o(Ln,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:An,...e(t?.name??"")}))),En=(e="")=>Boolean("trade"===e||"all"===e),Fn=e=>null!=e,Un=new Map,Wn=(e,t=Un)=>n=>{const l=Yn(n),a=t.get(l);if(l&&Fn(a))return a;const i=e(...n);return l&&Fn(i)&&t.set(l,Promise.resolve(i)),i},Hn=e=>Boolean(e?.every((e=>Array.isArray(e)?Hn(e):!e||"string"==typeof e))),Yn=e=>Hn(e)?e.toString():"",Kn=e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]);function qn(e,t,{fallback:n,cache:i}={}){const s=r((()=>Xn(e)),[e]),[o,c]=l(void 0),[d,m]=l(void 0);a((()=>{if(!s.some(Fn))return;let e=!1;const n=(t,n)=>{e||(c(t),m(n))};return(async()=>{try{n(await Wn(t,i)(s))}catch(e){n(void 0,e)}})(),()=>{e=!0}}),[t,i,s]);const h=n&&Kn(s)&&n[s[0]];return{data:!o&&h?h:o,error:d,mutate:()=>Promise.resolve(void 0)}}function Xn(e){return Array.isArray(e)?e:e instanceof Function?Xn(e()):[e]}const Gn=`${Xt}/branches`,Zn=[];const Jn=async e=>await _t(e,{method:"GET"})||Zn;function Qn(e=!1){const{data:t}=qn(`${Xt}${e?"/premiumBranchesByRegions":"/branchesByRegions"}`,$t);return Array.isArray(t)?t:[]}const el=(e="")=>"ULTRASERVICE"===e,tl=d((({field:e,input:t,params:n})=>{const l=el(n?.typeForm),i=e("region"),r=i?.value?.key,s=i?.value?.text,c=l?Qn(l)?.find((e=>e?.region===s))?.branches:function(e){const{data:t}=qn(e?`${Gn}?regionCode=${e}`:null,Jn);return t||Zn}(r)?.filter((e=>e?.address));return a((()=>{""!==i?.value?.key&&e?.("addressBranch")?.onChange?.("")}),[i?.value]),o(Ln,{label:"Отделение",placeholder:"Выберите отделение",options:(c||[]).map((({address:e=""})=>({key:e,text:e}))),...e(t?.name??""),isSearch:!0})})),nl=(e,{normalize:t,format:n})=>{const{value:a,onFocus:r,onBlur:s,onChange:o}=e,[c,d]=l(!1),m=i((e=>{d(!0),r&&r(e)}),[]),h=i((()=>{d(!1),o&&o(t(a)),s&&s()}),[o,a]);return{value:c||!n?a:n(a),onFocus:m,onBlur:h}},ll=(e,t,n)=>Math.max(t,Math.min(e,n));function al(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:l,value:a=e[0]||t,disabled:i,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:h("w-2 h-2 rounded-full",s<=t||i?"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:l,value:s,disabled:i,onChange:t=>{const n=al(t.target?.value),l=e.length?e[n]:n;r&&r(l||0)}})})]})}const rl=1,sl=100,ol=d((e=>{const{className:t,title:n,items:l=[],list:a=[],min:r=(a.length?0:rl),max:s=(a.length?a.length-1:sl),step:d=1,value:m=a[0]||r,disabled:u=!1,onChange:p}=e,g=nl(e,{normalize:(e=0)=>a.length?cl(a)(e):ll(e,r,s),format:Ze()}),x=i((e=>{p&&p(al(e.target?.value))}),[p]);return c("div",{className:t,children:[c("label",{className:"block relative",children:[n?o(Ae,{size:"text-m",font:"font-light",color:"text-primary-text",children:n}):null,o("input",{className:h("text-h3 w-full h-14","pl-m mt-xs box-border","text-primary-text",Nn,"disabled:border-gray disabled:bg-main-divider"),disabled:u,onChange:x,...g}),il({list:a,min:r,max:s,step:d,disabled:u,value:m,onChange:p})]}),dl(l)]})})),cl=e=>t=>e.reduce(((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)),dl=e=>o("div",{className:"flex justify-between my-xs",children:e.map(((e,t)=>o(Ae,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),ml=["От 1 000 ₽","До 1 000 000 000 ₽"],hl=d((({field:e,input:t})=>o(ol,{title:"Сумма, ₽",items:ml,min:1e3,max:1e9,...e(t?.name??"")}))),ul=d((({field:e,input:t})=>o(Tn,{label:"Годовая выручка, ₽",...e(t?.name??"")}))),pl=[{key:"client",text:"Клиент"},{key:"representative",text:"Представитель клиента"}],gl=d((({field:e,input:t})=>o(Ln,{label:"Тип обратившегося",...t,options:pl,...e("applierType")}))),xl=d((({field:e,input:t})=>o(Tn,{label:"ФИО или должность обслуживавшего Вас сотрудника Банка",...e(t?.name??"")}))),fl=({today:e,firstDayOfWeek:t,totalDays:n,currentMonth:l,currentYear:a,min:i,max:r,onDateClick:s})=>{const c=[];let d=1;for(let m=0;m<6;m++){const h=[];for(let c=0;c<7;c++)if(0===m&&c<t)h.push(o("td",{},`empty-${c}`));else if(d>n)h.push(o("td",{},`empty-${c}`));else{const t=new Date(a,l,d),n=bl(t,e),c=yl(t,i,r);h.push(o("td",{children:o("div",{className:vl(n,c),onClick:()=>!c&&s(t),children:d})},`day-${d}`)),d++}c.push(o("tr",{children:h},`row-${m}`))}return c},bl=(e,t)=>t&&e.toDateString()===t.toDateString(),yl=(e,t,n)=>t&&e.getTime()<t.getTime()||n&&e.getTime()>n.getTime(),vl=(e=!1,t=!1)=>h("p-s text-center rounded-md border",{"border-transparent hover:bg-gray":!e},t?"text-gray hover:bg-transparent":"cursor-pointer"),wl=["Пн","Вт","Ср","Чт","Пт","Сб","Вс"],Nl=d((({today:e,currentMonth:t,currentYear:n,min:l,max:a,onDateSelect:i=wn})=>{const{firstDayOfWeek:s,totalDays:d}=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:fl({firstDayOfWeek:s,today:e,totalDays:d,currentYear:n,currentMonth:t,min:l,max:a,onDateClick:i})})]})})),kl=["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"];const Sl=e=>"_"===e,Cl=e=>/\d/.test(e),Il=e=>Sl(e)||Cl(e),Tl=1940,Bl={name:"CalendarIcon",iconVersion:"black",width:"24",height:"24"},Ml=d((({setSelectedMonth:e,setSelectedYear:t,className:n,value:i,disabled:r,onChange:d,onClick:m})=>{const u=s(null),[p,g]=l(i||"");return a((()=>{g(i||"")}),[i]),a((()=>{Vl({inputValue:p,setSelectedMonth:e,setSelectedYear:t,onChange:d})}),[p]),c("div",{onClick:()=>{null!==u.current&&u.current.focus(),m?.()},className:h("relative",n),children:[o("input",{ref:u,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(function(e,t){const n=e.replace(/\D/g,"");if(""===n||n.length===t.length)return e;const l=[...t],a=l.findIndex(Sl),i=l.map(((e,t)=>Il(e)?l.slice(0,t).filter(Il).length:-1)),r=l.map(((e,t)=>Cl(e)?e:n.charAt(i[t])||e)),s=i.indexOf(n.length-1)+1;return r.slice(0,Math.max(a,s)).join("")}(t,"__.__.____"))},onBlur:()=>{Pl(p)?Vl({inputValue:p,setSelectedMonth:e,setSelectedYear:t,onChange:d}):g(i||"")},disabled:r}),r?null:o(Z,{className:"mr-s",...Bl})]})})),Pl=e=>{const[t,n,l]=e.split(".");if((e=>Number(e)>=Tl&&Number(e)<=(new Date).getFullYear())(l)&&(e=>Number(e)>0&&Number(e)<13)(n)){const e=new Date(Number(l),Number(n)-1,1);let a=0;for(;e.getMonth()===Number(n)-1;)e.setDate(e.getDate()+1),a++;return Number(t)>0&&Number(t)<=a}return!1},Vl=({inputValue:e,setSelectedMonth:t,setSelectedYear:n,onChange:l})=>{if(Pl(e)){const{day:a,month:i,year:r}=(e=>{const[t,n,l]=e.split(".");return{day:Number(t),month:Number(n)-1,year:Number(l)}})(e);t(i),n(r),l?.(new Date(r,i,a))}},Rl=({handleChangeVisibleCalendar:e,value:t,valid:n,onChange:l,setSelectedMonth:a,setSelectedYear:i,disabled:r=!1})=>o(Ml,{onChange:l,disabled:r,onClick:e,value:t&&Kt(t),setSelectedMonth:a,setSelectedYear:i,className:h("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")}),zl=kl.map((e=>({key:e}))),Dl=Array.from({length:(new Date).getFullYear()-Tl+1},((e,t)=>Tl+t)).reverse().map((e=>({key:String(e)}))),_l=(e,t)=>{const n=new Date(e,t,1);let l=0;for(;n.getMonth()===t;)l++,n.setDate(n.getDate()+1);return l},$l=({maxDateOfMonth:e,selectedYear:t,selectedMonth:n,value:l,onChange:a})=>{l&&a?.(new Date(t,n,Math.min(e,l.getDate())))},jl={name:"ArrowUpIcon",iconVersion:"black",width:"24",height:"24"},Ll={className:"min-w-32",iconVersion:"black",isBorder:!1},Al=d((({className:e="",label:t="",value:n,valid:r=!0,minDate:s,maxDate:d,disabled:m,onChange:u})=>{const[p,{setValue:g,setFalse:x}]=on(!1),[f,b]=l(n?.getMonth()||(new Date).getMonth()),[y,v]=l(n?.getFullYear()??(new Date).getFullYear()),w=i((e=>{u?.(e),x()}),[u]),{handlePrevMonth:N,handleNextMonth:k,handleSelectMonth:S,handleSelectYear:C,monthsOptions:I,yearsOptions:T,handleChangeVisibleCalendar:B,ref:M}=(({onShowCalendar:e,showCalendar:t,selectedMonth:n,onMonthSelect:l,onYearSelect:a,selectedYear:r,onChange:s,value:o})=>{const c=yn(i((()=>t&&e(!1)),[t]));return{handleChangeVisibleCalendar:i((()=>e(!t)),[t]),handleNextMonth:i((()=>{n+1<=11?l(n+1):(l(0),a(r+1))}),[n]),handlePrevMonth:i((()=>{n-1>=0?l(n-1):(l(11),a(r-1))}),[n]),handleSelectMonth:i((({key:e})=>{l(kl.indexOf(e));const t=_l(r,kl.indexOf(e));$l({maxDateOfMonth:t,selectedYear:r,selectedMonth:kl.indexOf(e),value:o,onChange:s})}),[o]),handleSelectYear:i((({key:e})=>{a(Number(e)),o&&s?.(new Date(Number(e),n,o?.getDate()))}),[o]),monthsOptions:zl,yearsOptions:Dl,ref:c}})({onYearSelect:v,onMonthSelect:b,onShowCalendar:g,selectedYear:y,selectedMonth:f,showCalendar:p,onChange:u,value:n}),P=((e,t)=>{const[n,i]=l(!1);return a((()=>{const n=()=>{if(e?.current){const{top:n}=e.current.getBoundingClientRect();i(n>t)}};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[e]),n})(M,370);return c("div",{className:h("space-y-xs",e),ref:M,children:[kn(t),c("div",{className:"relative",children:[Rl({handleChangeVisibleCalendar:B,value:n,valid:r,onChange:u,disabled:m,setSelectedMonth:b,setSelectedYear:v}),p&&!m?c("div",{className:h("absolute bg-white z-20 select-none",{"bottom-full":P}),children:[c("div",{className:"flex gap-s",children:[o("div",{className:"my-auto",onClick:N,children:o(Z,{...jl,className:"-rotate-90 cursor-pointer"})}),o(Dn,{onChange:S,value:{key:kl[f]},options:I,...Ll}),o(Dn,{onChange:C,value:{key:String(y)},options:T,...Ll}),o("div",{className:"my-auto",onClick:k,children:o(Z,{...jl,className:"rotate-90 cursor-pointer"})})]}),o(Nl,{today:n,currentMonth:f,currentYear:y,min:s,max:d,onDateSelect:w})]}):null]})]})})),Ol=d((({className:e,label:t,error:n,errors:l,...a})=>c("div",{className:h("shrink-0 w-full",e),children:[o(Al,{label:vn({label:t,errors:l}),valid:Boolean(!n),...a}),In(n)]}))),El=d((({field:e,input:t})=>o(Ol,{label:t?.label||"Дата рождения",...e(t?.name??"")}))),Fl=d((({field:e,input:t})=>o(Tn,{label:"Количество объектов инкассации",isInteger:!0,...e(t?.name??"")}))),Ul=d((({field:e,input:t})=>o(Tn,{className:"col-span-2",...e(t?.name??""),placeholder:"Ваше сообщение",isTextarea:!0}))),Wl=d((({field:e,input:t})=>o(Ol,{label:"Желаемая дата встречи",...e(t?.name??"")}))),Hl=d((({field:e,input:t})=>o(Tn,{label:"Электронная почта",...e(t?.name??""),...t}))),Yl=[{key:"ULTRASERVICE",text:"Ультра"}],Kl=[{key:"Физическое лицо"},{key:"Юридическое лицо / ИП"}],ql=[{key:"phone",text:"Телефонный звонок"},{key:"email",text:"Электронное сообщение"}],Xl=d((({field:e,input:t})=>o(Ln,{label:"Способ получения ответа",options:ql,...e(t?.name??"")}))),Gl=d((({field:e,input:t})=>o(Tn,{label:"ФИО",...e(t?.name??""),...t}))),Zl=d((({field:e,input:t})=>o(Tn,{label:"ИНН",isInteger:!0,maxLength:12,...t,...e(t?.name??"")}))),Jl=d((({className:e,viewBox:t,fill:n="none",width:l,height:a,paths:i,...r})=>o("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:l,height:a,children:i.map((({d:e,fill:t,...n},l)=>{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},l)}))}))),Ql="appearance-none w-5 h-5 border-solid flex-none",ea=[{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"}],ta=d((({className:e,value:t,text:n,disabled:l,isRadio:a,onChange:r})=>{const s=i((e=>{l||(e.preventDefault(),r&&r(!t))}),[r,l,t]),d=a?o("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):o(Jl,{paths:ea,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:h("flex items-center relative group/box",la(l)),onClick:s,children:[o("div",{className:h(Ql,"m-0",a?"rounded-full border-2":ia(t),!l&&t?"border-primary-main":"border-gray",l?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:aa(a),"aria-checked":Boolean(t),"aria-disabled":Boolean(l),"aria-label":n}),t?d:null,na(n)]})})})),na=e=>e?o("div",{className:"ml-s",children:o(Ae,{size:"text-l",font:"font-light",children:e})}):null,la=(e=!1)=>e?"cursor-not-allowed":"cursor-pointer",aa=(e=!1)=>e?"radio":"checkbox",ia=(e=!1)=>h("rounded border",{"bg-primary-main":e}),ra=d((({className:e,text:t,value:n,key:l,disabled:a,error:i,onChange:r})=>c("div",{className:h("shrink-0",e),children:[o(ta,{text:t,value:n,disabled:a,onChange:r},l),In(i)]}))),sa=d((({field:e,input:t})=>o(ra,{...e(t?.name??""),text:'Являюсь клиентом банка АО "Россельхозбанк"'}))),oa=`${Xt}/outservice`,ca=[];async function da(){const e=await _t(`${oa}/outserviceregions`);return e&&Array.isArray(e)?e:ca}const ma=d((({field:e,input:t})=>{const n=e("region"),l=n?.value?.key,{data:i}=qn("outServiceRegions",da),s=r((()=>i?.find((e=>e.code===l))?.localities?.map((e=>({key:e,text:e})))),[i,l]);return a((()=>{""!==l&&e?.(t?.name??"")?.onChange?.("")}),[l,t?.name??""]),o(Ln,{label:"Населенный пункт",placeholder:"Выберите город, где доступен сервис",options:s,...e(t?.name??""),isSearch:!0})})),ha=d((({field:e,input:t})=>o(Tn,{label:"Отчество (Обязательно, при наличии)",maxLength:60,...e(t?.name??""),...t}))),ua=d((({field:e,input:t})=>o(Tn,{label:"Имя",maxLength:60,...e(t?.name??""),...t}))),pa=d((({value:e=!1,text:t,type:n="checkbox",onChange:l})=>c("div",{role:n,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-s",onClick:()=>l&&l(!e),children:[o("div",{className:h("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:h("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-1/2":"left-[5%]")})}),t?o(Ae,{size:"text-l",font:"font-light",color:"text-primary-text",children:t}):null]}))),ga=d((({field:e,input:t})=>En(e("acquiringType")?.value?.key)?o(pa,{type:"radio",text:"Хочу онлайн-кассу",...e(t?.name??"")}):null)),xa=d((({field:e,input:t})=>o(Tn,{...e(t?.name??""),placeholder:"Укажите интересующий вас вопрос",isTextarea:!0,...t}))),fa=e=>"_"===e,ba=e=>/\d/.test(e),ya=e=>fa(e)||ba(e),va=[..."+7 (___) ___-__-__"],wa=va.findIndex(fa),Na=va.map(((e,t)=>ya(e)?va.slice(0,t).filter(ya).length:-1));const ka=d((({children:e,onChange:t,...n})=>{const l=i((e=>t&&t(function(e){const t=e.replace(/\D/g,""),n=va.map(((e,n)=>ba(e)?e:t.charAt(Na[n])||e)),l=Na.indexOf(t.length-1)+1;return(l?n.slice(0,Math.max(wa,l)):n).join("")}(e))),[t]),a=i((e=>{"+7 ("===e&&t&&t("")}),[]);return o(Sn,{...n,onChange:l,onFocus:e=>l(e?.target?.value||""),onBlur:e=>a(e?.target?.value||""),children:e})})),Sa=d((({className:e,label:t,error:n,...l})=>c("div",{className:h("shrink-0 w-full",e),children:[o(ka,{"aria-label":t,label:vn({label:t,errors:l?.errors}),valid:Boolean(!n),placeholder:"+7 (___) ___-__-__",...l}),In(n)]}))),Ca=d((({field:e,input:t})=>o(Sa,{label:"Телефон",...e(t?.name||"phone"),...t}))),Ia=d((({field:e})=>En(e("acquiringType")?.value?.key)?o(pa,{type:"radio",text:"Хочу POS-терминал",...e("posTerminal")}):null)),Ta=Ut((({field:e,input:t,source:n})=>o(Ln,{placeholder:"Выберите продукт",label:"Продукт",options:Ba(n?.productList),...e(t?.name??"")}))),Ba=e=>(e??[]).map((e=>({key:e,value:e}))),Ma=`${Xt}/regions`,Pa=[];function Va(e=Ma){const{data:t}=qn(e,$t);return Array.isArray(t)?t:Pa}const Ra=`${Xt}/outservice/outserviceregions`,za=d((({field:e,input:t,params:n})=>{var l;const a=Va((l=n?.typeForm,"OUTSERVICE"===l?Ra:void 0));return o(Ln,{label:t?.label||"Филиал",placeholder:"Выберите филиал",isSearch:!0,options:r((()=>a?.map((({code:e="",name:t=""})=>({key:e,text:t})))),[a]),...e(t?.name??"")})})),Da=d((({field:e,input:t})=>{const n=Qn(!0),l=r((()=>n?.map((({region:e})=>({key:e,text:e})))),[n]);return o(Ln,{label:"Регион",placeholder:"Выберите регион",options:l,...e(t?.name??"")})})),_a=d((({field:e,input:t})=>o(Tn,{label:"ФИО представителя",...t,...e("representativeName")}))),$a=(e,t)=>{const{value:n,isDirty:l}=e,a=l?t(n):[];return{...e,errors:a,error:a[0]}},ja=/^[\u0400-\u04FF\d\s]+$/u,La=mn((e=>null!=e&&""!==e)),Aa="Некорректно заполненное поле",Oa=e=>La(e??Aa),Ea=e=>mn((e=>e?.key&&""!==e?.key))(e??Aa),Fa=e=>mn((e=>"string"==typeof e&&e.length>1&&((e="")=>ja.test(e))(e)))(e??Aa),Ua=e=>/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/.test(e),Wa=e=>mn(Ua)(e),Ha=mn((e=>"boolean"==typeof e&&e))("Согласие обязательно"),Ya={fullName:Oa(),addressBranch:Ea(),desiredMeetingDate:Oa(),product:Oa(),localities:Oa(),partnerComments:Oa(),collectionCount:Oa(),acquiringType:Ea(),serviceType:Ea(),annualRevenue:Oa(),feedbackMethod:Ea(),serviceDirection:Ea(),secondaryPhone:Wa("Укажите номер телефона"),region:Ea(),situationDescription:Oa(),sufferedFrom:Oa(),applierType:Oa(),surname:Fa("Укажите свою фамилию на кириллице"),name:Fa("Укажите своё имя на кириллице"),middleName:Fa("Укажите своё отчество на кириллице"),birthday:Oa("Укажите дату рождения"),phone:Wa("Укажите номер телефона"),email:(Ka="Укажите электронную почту",mn((e=>/^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,4}$/.test(e)))(Ka)),inn:(e=>mn((e=>"string"==typeof e&&(10===e.length||12===e.length)))(e))("Укажите ИНН"),comment:Oa(),typeForm:Oa(),consentToReceiveMaterials:Ha,consentDataProcessing:Ha};var Ka;const qa=(e={})=>({name:t})=>Boolean(e[t??""]),Xa=e=>t=>!t?.condition||t.condition.values.find((n=>{const l=e?.[t?.condition?.name??""];return n===(l?.key??l)})),Ga=d((({field:e})=>{const t=e("secondaryPhone");return o(Sa,{label:"Дополнительный телефон",...t.value&&"+7 ("!==t.value?$a(t,Ya.secondaryPhone):t})})),Za=d((({field:e,input:t})=>o(Ln,{label:"Направление обслуживания",placeholder:"Выберите направление",options:Kl,...e(t?.name??"")}))),Ja=d((({field:e,input:t})=>o(Tn,{label:"Описание ситуации",...t,...e("situationDescription")}))),Qa=[{key:"blg",text:"Белгородской области"},{key:"brnsk",text:"Брянской области"},{key:"krsk",text:"Курской области"},{key:"chs",text:"От стихийного бедствия ЧС"}],ei=d((({field:e,input:t})=>o(Ln,{label:"Пострадал в",...t,options:Qa,...e("sufferedFrom")}))),ti=d((({field:e,input:t})=>o(Tn,{label:"Фамилия",maxLength:60,...e(t?.name??""),...t}))),ni=["От 1 мес","До 15 лет"],li=d((({field:e})=>o(ol,{title:"Срок, месяцев",items:ni,min:1,max:180,...e("term")}))),ai=d((({field:e,input:t})=>o(Ln,{label:"Тип обслуживания",options:Yl,...e(t?.name??"")}))),ii={horizontal:"@lg:flex-row",vertical:""},ri=d((({label:e,items:t,value:n,className:l,disabled:a=!1,orientation:i="horizontal",onChange:r})=>c("div",{className:"grid gap-xs whitespace-nowrap",children:[e?o("div",{role:"radiogroup","aria-label":e,children:o(Ae,{color:"text-secondary-text",font:"font-light",children:e})}):null,o("div",{className:h("flex flex-col gap-s",ii[i],l),role:"radiogroup","aria-label":"Группа кнопок",children:t?.map((({id:e,text:t})=>o(ta,{isRadio:!0,text:t,value:n===e,onChange:()=>r?.(e),disabled:a},String(e))))})]}))),si=[{id:"currencyControl",text:"Валютный контроль"},{id:"documentOperations",text:"Документарные операции"},{id:"conversionTransactions",text:"Конверсионные операции"},{id:"otherIssues",text:"Иные вопросы ВЭД"}],oi=d((({field:e,input:t})=>{const n=i((t=>{"currencyControl"!==t&&(e("inn").onChange?.(""),e("region").onChange?.(""))}),[]);return o("div",{className:"py-m gap-m grid @xl:flex @xl:items-center",children:o(ri,{className:"whitespace-normal",orientation:"horizontal",items:si,...e(t?.name??"",{onChange:n})})})})),ci=d((({field:e,input:t})=>o(ta,{text:"Согласен на получение информационных и аналитических материалов по электронной почте",...e(t?.name??"")})));const di={$ref:"/wcms-resources/outservice-productlist.json"},mi={fullName:Gl,addressBranch:tl,desiredMeetingDate:Wl,product:e=>o(Ta,{...e,source:di}),localities:ma,isClient:sa,partnerComments:xa,collectionCount:Fl,acquiringType:On,onlineCheckout:ga,posTerminal:Ia,serviceType:ai,term:li,amount:hl,annualRevenue:ul,vedTypes:oi,feedbackMethod:Xl,serviceDirection:Za,bankEmpolee:xl,secondaryPhone:Ga,applicationDate:e=>o(Tn,{label:"Дата и время обращения в Банк",...e}),region:e=>el(e?.params?.typeForm)?o(Da,{...e}):o(za,{...e}),consentToReceiveMaterials:ci,sufferedFrom:ei,situationDescription:Ja,representativeName:_a,applierType:gl,surname:ti,name:ua,middleName:ha,birthday:El,phone:Ca,email:Hl,inn:Zl,comment:Ul},hi=(e,t,n={})=>(l,a)=>{const i={...mi,...n}[String(l.name)];return function({input:e,field:t}){const{condition:n}=e,{value:l}=t(n?.name||"");return!n||n?.values?.find((e=>e===(l?.key??l)))}({input:l,field:e})&&i?o("div",{children:o(i,{field:e,input:l,params:t})},a):null},ui=e=>e?o("div",{className:"@xl:text-center @xl:col-span-2 mb-m",children:o(Ae,{size:"text-h6",children:e})}):null,pi={primary:h("text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active","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:h("text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","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")},gi=h("group/btn-embedded","bg-transparent border border-transparent outline-none"),xi=h("bg-main-gray text-main-disabled cursor-not-allowed"),fi=d((({className:e,type:t="button",version:n="primary",shape:l="default",embedded:a,disabled:s,role:c,ariaLabel:d,data:m,dataTheme:u,children:p,onClick:g=wn})=>{const x=i("tab"!==c?pe(g):g,[c,g]),f=r((()=>we(m)),[m]),b="round"===l;return o("button",{className:h("font-sans flex items-center gap-xs",{[pi[n]]:!s&&!a,[gi]:a,[xi]:s},a?"justify-between":"justify-center",a||b?"p-0":"px-9 py-4",{"rounded-md":"default"===l,"rounded-full":b},e),type:t,role:c,"aria-label":d,disabled:s,"aria-disabled":s?"true":void 0,"data-theme":u,...f,onClick:x,children:p})})),bi=d((({className:e,onClose:t})=>o("button",{className:h("flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none",e),onClick:t,title:"Закрыть",type:"button",children:o(Z,{name:"CloseIcon",width:"20",height:"20",iconVersion:"gray"})}))),yi=d((({className:e,head:t,children:n,onClose:l,onClick:a})=>c("div",{className:h("relative bg-white pt-0 p-lg",e),role:"dialog",title:"Диалог",onClick:a,children:[c("div",{className:"sticky py-xl top-0 bg-white z-10",children:[o(bi,{className:"absolute top-0 right-0",onClose:l}),o("div",{className:"container",children:t})]}),o("div",{className:"container pb-6xl",children:n})]}))),vi=d((({ok:e,typeForm:t,onClose:n})=>{const l="ANTIFRAUD"===t?"Сообщение отправлено. Для уточнения информации с Вами могут связаться работники Банка либо Вы\n можете самостоятельно позвонить по номеру контакт-центра +78001000100. Будьте внимательны, работники Банка\n не звонят с использованием мессенджеров.":"Совсем скоро мы с вами свяжемся";return o(yi,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto",onClose:n,children:c("div",{className:"flex flex-col gap-lg items-center rounded-md space-x-m",children:[o(se,{image:{icon:e?"ResponseOKIcon":"ResponseFailIcon",iconVersion:"normal"},width:"136",height:"136"}),o(C,{className:"w-full",title:e?"Ваша заявка отправлена":"Не удалось отправить заявку",description:e?l:"Пожалуйста, повторите позднее",headlineVersion:"XS",isEmbedded:!0}),o(fi,{type:"button",onClick:n,children:"Хорошо"})]})})})),wi=e=>{const{acquiringType:t,onlineCheckout:n,posTerminal:l,amount:a,term:i,annualRevenue:r,serviceType:s,vedTypes:o,region:c,inn:d,sufferedFrom:m,situationDescription:h,...u}=e,p=t||r?(e=>{const{acquiringType:t,onlineCheckout:n=!1,posTerminal:l=!1,term:a,amount:i,annualRevenue:r}=e;return t?`Вид эквайринга=${t?.text||""}${En(t?.key)?`/Онлайн касса=${n}/POS-терминал=${l}`:"/Онлайн касса=false/POS-терминал=false"}`:`Сумма=${i}/Срок=${a}/Выручка=${r}`})(e):null,g={...u,...Si(o),...ki(c),...d&&{inn:d},...p?{partnerComments:p}:{},...s?{typeForm:s}:{},...Ni(m,h?.text)};return Object.fromEntries(Object.entries(g)?.map((([e,t])=>[e,t?.key||t])))},Ni=(e,t)=>e||t?{comment:`${e||""};${t||""}`}:{},ki=e=>e?.key||e?.text?{region:e?.text||e?.key}:{},Si=e=>e?{vedTypes:Object.fromEntries(si.map((({id:t})=>[t,t===e])))}:{},Ci={typeForm:"",region:{key:"",text:""},addressBranch:{key:"",text:""},surname:"",name:"",phone:"",secondaryPhone:"",comment:"",product:"",partnerComments:"",annualRevenue:"",term:12,amount:1e5,acquiringType:An[0],serviceType:Yl[0],feedbackMethod:ql[0],serviceDirection:Kl[0],vedTypes:si[0].id,birthday:void 0,isClient:!1,onlineCheckout:!1,posTerminal:!1,consentToReceiveMaterials:!1,consentDataProcessing:!1,addressRetail:{key:"",text:""}},Ii=(e,t="")=>({...Object.fromEntries(e.map((e=>[e.name,"vedTypes"===e?.name&&e?.defaultValue||Ci[e.name||""]]))),typeForm:{key:t,text:""}}),Ti=d((({color:e="text-primary-main",position:t="absolute",blur:n=!0,size:l="big"})=>o("div",{className:h("flex justify-center items-center h-full w-full z-50",t,{"backdrop-blur":n}),children:o("div",{className:h("inline-block","animate-spin rounded-full","border-solid border-current","border-r-transparent","small"===l?"border-4 h-8 w-8":"border-8 h-28 w-28",e),role:"status"})}))),Bi=d((({isLoading:e,disabled:t,children:n,...l})=>c(fi,{type:"submit",disabled:e||t,...l,children:[e?o(Ti,{blur:!0,size:"small"}):null,n]}))),Mi={primary:pi.primary,secondary:pi.secondary,white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"text-primary-main",gray:pi.secondary,transparent:"","":""},Pi=d((e=>{const t=ye(),{className:n,href:l,target:a,text:i,aboveText:r,version:s="link",rel:c,ariaLabel:d,data:m,children:u,onClick:p}=t(e),g="link"!==s;return o("a",{className:h("group/btn inline-flex items-center h-fit","font-sans no-underline select-none","border border-transparent focus:border-primary-text focus:border","cursor-pointer",{[Mi[s]]:Boolean(s),[r?"px-9 py-2.5":"px-9 py-4"]:g,"rounded-md":g},n),href:l,target:a,rel:c,"aria-label":d??`Ссылка на ${i}`,role:l?"link":"button",onClick:p,...we(m),children:u??Vi(i,r)})})),Vi=(e,t)=>e||t?c("div",{className:"whitespace-pre",children:[t?o("div",{className:"font-light text-left text-xs",children:t}):null,o("div",{className:h("text-left",{"text-s -mt-3xs":Boolean(t)}),children:e})]}):null,Ri=d((({text:e,link:t})=>c(k,{size:"text-l",font:"font-light",color:"text-secondary-text",children:[e?o(Ae,{children:e}):null,t?o(Pi,{...t,ariaLabel:"условия передачи данных",children:t.text}):null]}))),zi=(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(ta,{...e}),o(Ri,{link:t})]}),In($a(e,Ha).error)]}):o(Ri,{text:"Нажимая кнопку, вы подтверждаете согласие с ",link:t}),o(Bi,{className:"w-full @xl:w-auto",children:n?.text?n.text:"Отправить заявку"})]}),Di={send:async function(e,t=!1){const{typeForm:n,region:l,phone:a="",email:i,birthday:r,desiredMeetingDate:s,inn:o,addressBranch:c,secondaryPhone:d="",bankEmpolee:m,applicationDate:h,serviceDirection:u,...p}=e,g=t&&"Юридическое лицо / ИП"!==u,x=`${Xt}${g?"/lead":"/sendcorporatelead"}`,f={typeForm:n,...Jt(l,g),...Qt(i,g),...Gt(a),...Zt(s,"desiredMeetingDate"),...g?Zt(r):{inn:o},..."FEEDBACK"===n?{}:{addressBranch:c,bankEmpolee:m,applicationDate:h,...en(d)},...p};try{const e=await fetch(x,{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(f)});return e?.ok?await e.json():null}catch(e){return null}}},_i=d((({className:e,title:t,typeForm:n="",sections:l=[],button:a,link:s,endpoint:d,additionalParams:m,isContacts:u,data:p,...g})=>{const x=r((()=>l?.flatMap((e=>e?.inputs))||[]),[l]),f=r((()=>Ii(x,n)),[x,n]),b=r((()=>((e,t={})=>{const n=e.filter((e=>Boolean(e?.required&&e?.name))),l={...Ya,...t},a=n.some((e=>e.condition?.values)),i=Object.fromEntries(n.filter(qa(l)).map((({name:e})=>[e,l[e??""]])));return e=>a?Object.fromEntries(n.filter(qa(l)).filter(Xa(e)).map((({name:e})=>[e,l[e??""]]))):i})(x)),[x]),y=fn(vi),v=sn(),w=i((async(e,t)=>{const l=wi({...e,...m}),a=Boolean(await Di.send(l,"lead"===d));y.open({ok:a,typeForm:n}),a&&tn({aspectsAttributes:p,aspects:v,ev:t})}),[n]),[,{field:k,onSubmit:S}]=gn(f,{resetOnSubmit:!0,formValidator:b,onSubmit:w}),C=(e=>e?.find((e=>"consentDataProcessing"===e?.name)))(x)?.name;return c(xn,{className:h("container space-y-m",e),title:t,...g,children:[c("form",{onSubmit:S,children:[l.map(((e,t)=>{return c("div",{className:h((l=e.columns,2===l?"@xl:grid-cols-2":""),"grid gap-x-m"),children:[ui(e.title),(e?.inputs||[])?.map(hi(k,{typeForm:n}))]},`section-${t}`);var l})),zi(C?k("consentDataProcessing"):void 0,s,a)]}),u?c("div",{className:"space-y-m",children:[o(N,{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(se,{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(se,{image:{icon:"MailIcon"},width:"24",height:"24"}),o("span",{children:"ved@rshb.ru"})]})]})]}):null]})})),$i=d((({title:e,description:t})=>{const n=Pe();return c("div",{className:"bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center",children:[o(se,{image:{icon:"MagnifierIcon",iconVersion:"normal"},width:"120",height:"120"}),o(C,{title:e,description:t,headlineVersion:n?"L":"S",isEmbedded:!0,className:"space-y-s"})]})})),ji=e=>e%2!=0,Li=d((({className:e,children:t})=>o("span",{className:h("inline-flex items-center text-start gap-s group-[]/btn-embedded:text-primary-main",e),children:t}))),Ai=d((({isUnfolded:e,...t})=>o(Z,{name:e?"ArrowUpIcon":"ArrowDownIcon",size:"small",iconVersion:"",...t}))),Oi=d((({className:e,isUnfolded:t,short:n,label:l=(t?"Скрыть":"Развернуть"),embedded:a,...i})=>c(fi,{className:h({"w-full":!n},e),embedded:a,shape:n?"default":"square",role:"tab","aria-label":"Кнопка сворачивающейся секции",...i,children:[o(Li,{children:l}),o(Ai,{isUnfolded:t,iconVersion:a?"color":""})]}))),Ei=d((({className:e,role:t="tablist",children:n})=>o("div",{className:h(e),role:t,children:n})));const Fi=d((({className:e,isUnfolded:t,children:n})=>{const l=s(null),i=function(e,t){const n=s(null);return a((()=>{const t=n?.current;if(!t)return;const l=new ResizeObserver((n=>{e(t,n[0])}));return l.observe(t),()=>{l.disconnect()}}),[e,...t]),n}((e=>{l.current&&(l.current.style.maxHeight=t?`${e.scrollHeight}px`:"")}),[t]);return o("div",{ref:l,className:h("transition-max-h duration-300 overflow-hidden",{"max-h-0":Boolean(l.current||!t)}),role:"tabpanel","aria-label":"Сворачивающаяся секция",children:o("div",{className:e,ref:i,children:n})})})),Ui="space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs",Wi=d((({topItemsCount:e=0,label:t,block:n,blocksToRender:l=[],...a})=>{const[i,r]=e>0?[l.slice(0,e),l.slice(e)]:[l,[]],[s,{toggle:d}]=on(!1);return c("div",{className:h("space-y-2xs",{hidden:!l.length}),children:[c("div",{className:h(Ui),children:[P(i,{...a.options,parent:n}),ji(i.length)?o(Ht,{className:"col-span-6",...a}):null]}),c(Ei,{children:[c(Fi,{className:h(Ui),isUnfolded:s,children:[P(r,{...a.options,parent:n}),ji(r.length)?o(Ht,{className:"col-span-6",...a}):null]}),o(Oi,{className:h("text-h4",{hidden:e<1}),label:t,isUnfolded:s,disabled:!r?.length,dataTheme:a.options?.page?.colorPalette,onClick:d})]})]})})),Hi=(e=!1)=>e?"border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider":"",Yi=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),Ki=10;function qi(e=0){const t=Math.round(e*Ki);return Array.from({length:t}).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const Xi=d((({className:e,style:t,idx:n,activeIndex:l,observerOptions:c,children:d,onIntersection:m})=>{const u=function(e,{sensitivity:t,rootRef:n}={}){const l=s(null),i=r((()=>({threshold:qi(t),root:n?.current})),[t,n?.current]);return a((()=>{if(!l.current)return;const t=new IntersectionObserver(e,i);return t.observe(l.current),()=>{t.disconnect()}}),[e,i]),l}(i((e=>{e.length&&m&&m(n||0,e[e.length-1])}),[m,n]),c);return o("div",{className:h("inline-block snap-always box-border",e),style:t,"aria-current":Boolean(n===l),ref:u,role:"listitem",children:d})})),Gi=["min-w-full","lg:min-w-[50%]","lg:min-w-[33.3%]","lg:min-w-[25%]"],Zi=d((({className:e,itemClassName:t,containerRef:n,activeIndex:l,visibleItemCount:a=0,gap:r=0,padding:c=0,listType:d="horizontal-list",snapAlign:m="snap-center",minHeight:u,children:p,onVisibleItemsChange:g,onVisibleIndicesChange:x})=>{const f={sensitivity:1,rootRef:n},b=s([]),y=i(((e,t)=>{const n=[...b.current||[]];n[e]=t,b.current=n,g&&g(n),x&&x(Qi(n))}),[g,x]),v=a>0?r*Number(a)-1:0,w="vertical-list"===d,N="horizontal-list"===d,k={...N?Ji(c,v):{},...w?Yi(u):{},gap:`${r}px`};return o("div",{className:h("box-border overflow-auto no-scrollbar",d,e),style:k,ref:n,role:"list",children:(S=(e,n)=>o(Xi,{className:h(m,a?Gi[a-1]:"",{"h-full":w},t),style:N?Ji(c/4):{},activeIndex:l,idx:n,observerOptions:f,onIntersection:y,children:e},String(n)),e=>null==e?e:Array.isArray(e)?e.map(S):S(e,0))(p)});var S})),Ji=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Qi=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),er={"horizontal-list":"w-6","vertical-list":"h-6"},tr=({activeIndex:e,onClick:t,listType:n="horizontal-list"})=>(l,a)=>o("div",{className:h("cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white",a===e?er[n]:"w-2 h-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>t(a)},String(a)),nr=({activeIndex:e,onClick:t})=>(n,l)=>{const a=l===e,i=a?"min-w-[350px] bg-white shadow-dark-blue border-none p-6":"min-w-72 ease-in duration-300 bg-white/10 px-xl py-lg hover: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(l),"aria-label":n?.title,className:h("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",i),children:[o("div",{className:r,children:n?.title}),o("div",{className:h("text-secondary-text font-light",s),children:n?.description})]},String(l))},lr=e=>e,ar=(e=lr)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),ir=ar(),rr=(e=lr)=>ar((t=>-e(t))),sr=rr(),or=e=>t=>e.scrollWidth/t,cr=e=>(t,n)=>{e.scrollBy({left:n*or(e)(t),behavior:"smooth"})},dr=({itemCount:e,onVisibleIndicesChange:t})=>{const n=s(null),[a,r]=l([]),o=i((e=>{r((t=>{return(n=t)===(l=e)||Boolean(n&&l&&n?.length===l?.length&&n.every(((e,t)=>e===l[t])))?t:e;var n,l})),t&&t(e)}),[t]),[c,d]=a.length?[rr()(a),ar()(a)]:[-1,-1],m=c>0,h=d<e-1,u=i((()=>{var t;n.current&&(m?cr(n.current)(e,-1):(t=n.current).scrollTo({left:t.scrollWidth,behavior:"smooth"}))}),[e,m]),p=i((()=>{n.current&&(h?cr(n.current)(e,1):n.current.scrollTo({left:0,behavior:"smooth"}))}),[e,h]),g=i(((e,t={behavior:"smooth",block:"nearest",inline:"center"})=>{n?.current&&n.current.children[e]?.scrollIntoView(t)}),[n]);return[n,{scrollLeft:u,scrollRight:p,scrollTo:g,canScrollLeft:m,canScrollRight:h,visibleIndicesRange:[c,d],handleVisibleIndicesChange:o}]},mr={"horizontal-list":"mx-auto mt-lg w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},hr=d((({className:e="",activeIndex:t=0,dotCount:n=0,listType:l="horizontal-list",version:r,navButtons:s=[],containerRef:c,containerScroll:d})=>{const m=Pe(),[u,p]=dr({itemCount:s.length}),g=ur(Boolean(s?.length));a((()=>{s?.length&&t>=0&&u?.current&&p.scrollTo(t,g)}),[t]);const x=i((e=>{e!==t&&c?.current&&d?.scrollTo(e,g)}),[c?.current]);return s?.length&&!m?o(Zi,{containerRef:u,snapAlign:"snap-start",itemClassName:"h-36 flex items-stretch w-screen",gap:8,children:s.map(nr({activeIndex:t,onClick:x}))}):n?o("div",{className:h("flex gap-xs",mr[l],r?"group":"",e,{"pb-xl":s?.length&&m}),"data-ver":r,children:Array.from({length:n}).fill(null).map(tr({activeIndex:t,onClick:x,listType:l}))}):null})),ur=(e=!1)=>({behavior:e?"auto":"smooth"}),pr=d((({className:e,name:t,...n})=>o(fi,{className:h("w-12 h-12 min-w-12 min-h-12",e),shape:"round",...n,children:o(Z,{name:t,iconVersion:"",size:"small"})}))),gr=d((e=>o(pr,{name:"ArrowLeftIcon",version:"secondary",ariaLabel:"Пролистать влево",...e}))),xr=d((e=>o(pr,{name:"ArrowRightIcon",version:"secondary",ariaLabel:"Пролистать вправо",...e}))),fr="absolute top-0 bottom-0 z-40 hidden @lg:block w-20 pointer-events-none",br=d((({className:e,scroll:t,hasBlur:n,arrowsPadded:l,isBottom:a})=>{const{canScrollLeft:i,canScrollRight:r,scrollLeft:s,scrollRight:d}=t,m=l&&!a;return c("div",{className:e,children:[n?yr(t):null,i?o(gr,{className:h(vr(a),m?"left-1":"left-0"),onClick:s}):null,r?o(xr,{className:h(vr(a),m?"right-1":"right-0"),onClick:d}):null]})})),yr=e=>c("div",{children:[e.canScrollLeft?o("div",{className:h(fr,"left-0 bg-opacity-from-white group-data-secondary:bg-none")}):null,e.canScrollRight?o("div",{className:h(fr,"right-0 bg-opacity-to-white group-data-secondary:bg-none")}):null]}),vr=(e=!1)=>h("absolute z-40",e?"bottom-[56px]":"top-[calc(50%-24px)]"),wr=d((({className:e,version:t,gap:n=14,padding:l=16,visibleItemCount:a=1,listType:i="horizontal-list",snapAlign:r,minHeight:s,showArrows:d,hasBlur:m,arrowsPadded:u,showDots:p,children:g,onVisibleIndicesChange:x,navButtons:f})=>{const b=Array.isArray(g)?g.length:0,[y,v]=dr({itemCount:b,onVisibleIndicesChange:x}),[w]=v.visibleIndicesRange;return c("div",{className:h(e,"vertical-list"===i?"relative h-full":""),children:[o(Zi,{containerRef:y,activeIndex:w,visibleItemCount:a,gap:n,padding:l,listType:i,snapAlign:r,minHeight:s,onVisibleIndicesChange:v.handleVisibleIndicesChange,children:g}),o(br,{className:h(!d&&"hidden lg:block"),scroll:v,hasBlur:m,arrowsPadded:u,isBottom:Boolean(f?.length)}),o(hr,{className:h(!p&&"lg:hidden"),activeIndex:w,dotCount:b,listType:i,version:t,navButtons:f,containerRef:y,containerScroll:v})]})})),Nr=({blocksToRender:e,...t})=>o(wr,{visibleItemCount:0,gap:0,arrowsPadded:!0,children:P(e,{...t.options,parent:t.block,renderProps:(e,t,n)=>o("div",{className:h("relative min-w-80",Hi(!0)),children:B(e,t)},String(n))})}),kr=d((({blocksSection:e,blocksToRender:t=[],notFound:n,...l})=>{switch(e?.view){case"grid":return c("div",{children:[Sr(n,t),o(Wi,{...e,...l,blocksToRender:t})]});case"carousel":return c("div",{className:"relative",children:[Sr(n,t),Nr({...l,blocksToRender:t})]});default:return null}})),Sr=(e,t)=>e&&!t.length?o($i,{...e}):null,Cr=e=>t=>t.reduce(((t,n,l)=>t.length?t.concat({...e,key:`sep-${l}`},n):[n]),[]),Ir=d((({value:e,onChange:t,items:n=[],multiple:l})=>n.map((n=>o(pa,{text:n?.title,value:[e].flatMap((e=>e)).includes(n.value),onChange:()=>(n=>{if(!t)return;const a=e?.includes(n);t(l?a?(e||[]).filter((e=>e!==n)):[...e||[],n]:a?[]:[n])})(n.value),type:l?"checkbox":"radio"},n.value))))),Tr=d((({children:e,filtrationSchema:t,resetButton:n,field:l,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,Cr(o("div",{className:"h-full w-px bg-gray hidden @4xl:block"}))(Object.entries(t).map(Br(l)).filter(Boolean))]}),n?o("div",{children:o(fi,{type:"reset",className:"w-full @4xl:w-56 @4xl:ml-s",onClick:a,children:n?.text})}):null]}))),Br=e=>([t,n])=>{const l=n?.type;return"array"===l?Mr(t,e)(n):null},Mr=(e,t)=>n=>{const l=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(Ae,{size:"text-m",font:"font-medium",color:"text-primary-text",children:n.title})}):null,o(Ir,{items:l,multiple:!n?.single,...t(e)})]},e)},Pr=e=>e;function Vr(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const Rr=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,zr=(e,t)=>Object.entries(e).map((([n,l])=>"number"==typeof l?Array.isArray(t[n])?((e,t)=>n=>Rr(t[e])||Rr(n[e])||n[e]?.includes(t[e]))(n,e):((e,t)=>n=>Rr(t[e])||Rr(n[e])||Dr(t[e])<=Dr(n[e]))(n,e):"object"==typeof l&&"min"in l&&"max"in l?((e,t)=>n=>Rr(t[e])||Rr(n[e])||Dr(t[e]?.min)>=Dr(n[e]?.min)&&Dr(t[e]?.min)<=Dr(n[e]?.max))(n,e):Array.isArray(l)?((e,t)=>n=>Rr(t[e])||Rr(n[e])||t[e]?.every((t=>n[e]?.includes(t))))(n,e):((e,t)=>n=>Rr(t[e])||Rr(n[e])||t[e]===n[e])(n,e))).every((e=>e(t))),Dr=e=>Number(e||0),_r=(e,{block:t,page:n,normalize:l=Pr})=>{const a=t?.blocks||[],[i,s]=gn(e),o=r((()=>Vr(a,a.map((e=>Ot(e.content,n?.fallback))))),[a,n?.fallback]),c=i===e?a:((e,t)=>(n=Pr)=>e?.filter((([,e])=>zr(t,n(e)||{}))).map((([e])=>e)))(o,i)(l);return[i,{blocksToRender:c,blocksWithProps:o},s]},$r={},jr={},Lr=Ut((({className:e,filtrationSchema:t=$r,consumerField:n={},resetButton:l,...a})=>{const[,{blocksToRender:i},{field:r,reset:s}]=_r(jr,{block:a.block,page:a.options?.page}),d=o(Dn,{className:"w-64",label:n?.title,options:Ar(n),...r("consumer",{parse:({key:e})=>[e],format:([e]=[])=>Ar(n).find((t=>t.key===e))||{key:""}})});return c(g,{className:h(e),defaultPadding:"p-0",version:"transparent",...a,children:[o(Tr,{filtrationSchema:t,field:r,reset:s,children:c("div",{children:[d,o("div",{children:o(fi,{type:"reset",className:"mt-lg w-64",onClick:s,version:l?.version,children:l?.text})})]})}),o(kr,{blocksToRender:i,...a})]})}),{childrenTypes:["CarouselTariffsCard"],childSchema:e=>({...e?.filtrationSchema,...e?.consumerField?{consumer:e?.consumerField}:{}})}),Ar=e=>Vr(e.items?.enum||[],e.items?.enumNames||[]).map((([e,t])=>({key:e,text:t}))),Or=(e=!1)=>e?"text-left":"text-center",Er={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},Fr=d((({className:e,iconBgVersion:t="primary",size:n,icon:l,...a})=>{const i=`${n?.width??44}px`;return l?o("div",{className:h("rounded-icon object-fit flex justify-center items-center",Er[t],e),style:{width:i,height:i},role:"figure",children:o(Z,{name:l,width:"54%",...a})}):null})),Ur=d((({className:e="",title:t,benefitList:n,...l})=>{const a=Pe();return c(g,{className:e,defaultPadding:"p-6xl",...l,children:[t?o(N,{headingType:"h3",as:"h2",className:Or(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(Wr)}):null]})})),Wr=({label:e,description:t,__html:n,icon:l,isDotted:a=!1,iconBgVersion:i},r)=>c("div",{className:"flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]",role:"listitem",children:[l?.icon?o(Fr,{className:"shrink-0",iconBgVersion:i,...l}):null,l?.src?o(se,{className:"shrink-0",image:l}):null,e?c("div",{className:"@sm:h-full space-y-xs",children:[o(N,{headingType:"h6",children:e}),o(Ae,{size:"text-l",color:"text-secondary-text group-data-secondary:text-white/80",font:"font-light",children:t}),n?o(je,{__html:n,isDotted:a,itemSize:"list-s"}):null]}):null]},String(r)),Hr=(e,t,n)=>{return o(wr,{children:e.map((l=n,({icon:e,title:t,description:n},a)=>c("div",{className:h("flex flex-col gap-1","justify-between p-m h-full border border-gray",{"justify-center":!n&&!t}),children:[t?o(Ae,{size:"text-h6",font:"font-normal",align:l,children:t}):null,e?o(se,{image:e,height:"180",className:"w-auto mx-auto"}):null,n?o(Ae,{size:"text-h6",font:"font-normal",align:l,children:n}):null]},String(a))))});var l},Yr=d((({bonusBenefits:e,cardTextAlign:t="text-center",className:n="",columnsCount:l="4",subtitle:a,title:i,...r})=>c(g,{className:h("space-y-3xl",n),defaultPadding:"p-6xl",...r,children:[o(C,{defaultPadding:"",title:i,description:a,headlineVersion:"M"}),e?.length?Hr(e,0,t):null]}))),Kr={start:"justify-start",center:"justify-center",end:"justify-end"},qr=d((({buttons:e,className:t="",align:n,...l})=>{const a=n&&h("flex",Kr[n]);return o(g,{className:h("!bg-transparent",a,t),defaultPadding:"p-0",...l,children:Ke(e)})})),Xr=d((({className:e,title:t,children:n,...l})=>c(g,{className:h("space-y-xl",e),defaultPadding:"p-4xl",...l,children:[t?o(N,{className:"text-center",title:t}):null,n]}))),Gr="flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl",Zr="flex flex-col lg:w-1/2 gap-2xl",Jr="flex flex-col gap-y-xl min-w-52",Qr=d((({value:e,fractionDigits:t,fixed:n,prefix:l,postfix:a})=>o(Ae,{size:"text-h3",children:"number"==typeof e?[l,Ze(t,{fixed:n})(e),a].filter(Boolean).join(" "):e}))),es=d((({className:e,title:t,value:n,color:l="text-secondary-text",...a})=>c("div",{className:h("flex justify-between @xl:flex-col",e),children:[t?o(Ae,{size:"text-l",font:"font-light",color:l,children:t}):null,n?o(Qr,{value:n,...a}):o(Ae,{size:"text-h3",children:"-"})]}))),ts=(e,t)=>e?o(k,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:e},String(t)):null,ns=d((({rate:e=0,title:t="Ставка",unit:n,fractionDigits:l=2,depositeName:a,isShowDepositeName:i,color:r="text-secondary-text"})=>c("div",{children:[o(Ae,{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:Ze(l,{fixed:!0})(e)}),n?o("span",{className:"text-7xl mt-5",children:n}):null]}),a&&i?o("div",{className:"absolute bottom-2 w-full text-left whitespace-nowrap",children:a}):null]})]}))),ls=d((({title:e="Ставка"})=>c("div",{className:"space-y-s min-w-96",children:[o(Ae,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),o(Z,{className:"w-10 h-auto lg:w-40",name:"PercentIcon"}),o("div",{className:"w-64",children:o(k,{size:"text-xl",font:"font-light",color:"text-primary-text",children:"Процентная ставка не найдена, выберите другие параметры"})})]}))),as=({title:e="Ставка",rate:t=0,unit:n="%",fractionDigits:l=2,color:a="text-secondary-text",children:i,...r})=>t?c("div",{className:"flex flex-col",children:[o("div",{className:"hidden lg:block min-w-96",children:o(ns,{title:e,rate:t,unit:n,fractionDigits:l,color:a,...r})}),o(es,{className:"lg:hidden",title:e,value:t,postfix:n,fractionDigits:l,fixed:!0,color:a,...r}),i]}):o(ls,{title:e,...r}),is=({isShowItems:e=!0,step:t=1e3,postfix:n="₽",...l})=>o(ol,{items:e?[`От ${Ze(1)(l.min||0)} ${n}`,`До ${Ze(1)(l.max||0)} ${n}`]:[],step:t,...l}),rs={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},ss={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},os=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:l}=e,[a,i]=((e,t,n)=>{const{maxBonus:l=5e3,prefMonthsNum:a=rs.prefMonthsNum,prefTravelBonusRate:i=rs.prefTravelBonusRate,prefRestBonusRate:r=.01,travelBonusRate:s=.015,restBonusRate:o=.01}=e,c=Math.min(Math.round(i*t)+Math.round(r*n),l);return[c,c*a+Math.min(Math.round(s*t)+Math.round(o*n),l)*(12-a)]})(t||ss,n,l);return{...t,...e,monthBonus:a,yearBonus:i}},cs=Ut((({className:e="",title:t,calcSource:n,buttons:l,footnote:a,...i})=>{const[r,{field:s}]=gn({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:d,maxSumTravel:m,minSumOther:u,maxSumOther:p,monthBonus:g,yearBonus:x}=os(r,n);return o(Xr,{className:e,title:t,...i,children:c("section",{className:h(Gr,e),children:[c("div",{className:Zr,children:[is({title:"Сумма покупок в категории путешествия, ₽",min:d,max:m,step:500,isShowItems:!1,...s("travelExpenseValue")}),is({title:"Сумма покупок в остальных категориях, ₽",min:u,max:p,step:500,isShowItems:!1,...s("restExpenseValue")})]}),o("div",{className:"mb-s",children:g>=0?as({title:"Баллов за месяц",rate:g,fractionDigits:0,unit:"",color:"text-primary-text"}):null}),c("div",{className:Jr,children:[x>=0?o(es,{title:"Баллов за год",value:x,color:"text-primary-text"}):null,Ke(l,{isVertical:!0}),ts(a)]})]})})})),ds=Math.round(29.5),ms=(e,t=0)=>e?.sum?e.sum:t,hs=(e,t=0)=>e?.period&&e.period>=1&&e.period<=60?e.period:t,us=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,ps=({items:e,title:t,mobileTitle:n=t,orientation:l="horizontal",value:a,onChange:i,...r})=>c("div",{className:"grid gap-s whitespace-nowrap",children:[t?o("div",{className:"hidden @5xl:block",role:"radiogroup","aria-label":t,children:o(Ae,{color:"text-secondary-text",font:"font-light",children:t})}):null,n?o("div",{className:"@5xl:hidden",role:"radiogroup","aria-label":n,children:o(Ae,{color:"text-secondary-text",font:"font-light",children:n})}):null,o(ri,{orientation:l,items:e,value:e[a?0:1].id,onChange:t=>i&&i(t===e[0].id),...r})]}),gs=e=>ps({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),xs=" (c капитализацией)",fs=({income:e,finalSum:t,postfix:n="₽",buttons:l=[],footnotes:a=[],isCapitalization:i=!1})=>c("div",{className:Jr,children:[o(es,{title:`Доход в конце срока${i?xs:""}`,value:e,postfix:n,prefix:"+"}),o(es,{title:`Сумма в конце срока${i?xs:""}`,value:t,postfix:n}),Ke(l,{isVertical:!0}),a?.map(ts)]}),bs=([e,t],n,l=[])=>n&&n[e]&&n[t]?{[e]:n[e],[t]:n[t]}:ys([e,t],l),ys=([e,t],n=[])=>({[e]:n.length?sr(n.filter((t=>"number"==typeof t[e])).map((t=>t[e]))):0,[t]:n.length?ir(n.filter((t=>"number"==typeof t[e])).map((e=>e[t]))):0}),vs=(e,[t,n],l)=>e>=l[t]&&e<=l[n],ws={UL:"businessdepositrates",IP:"selfemployeddepositrates"};const Ns={minSum:1e3,maxSum:100000001,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,depositeName:"Депозит 'Стабильный'"},ks=(e,t)=>{const{daysValue:n,moneyValue:l,isPartialWithdrawal:a,isReplenished:i,isMonthlyInterestPayment:r}=e,s=i||a,o=n<90||n>730,c=function(e){const t=e?.rateType?ws[e?.rateType]:"",{data:n}=qn(t?`${Xt}/depositrates/${t}`:null,$t);return Array.isArray(n)?n:[]}(t),d=c?.find((e=>r===e.isMonthlyInterestPayment&&Ss(s,e)&&vs(l,["minSum","maxSum"],e)&&vs(n,["minDays","maxDays"],e)))||Ns,{rate:m}=d,h=Cs(m,e),u=l+h,p=c||[Ns];return{...d,...ys(["minSum","maxSum"],p),...ys(["minDays","maxDays"],p),...e,isDisabledOperatingDeposit:o,income:h,finalSum:u}},Ss=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,Cs=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,daysValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a/30)-l):Math.round(l*e*a/365/100)},Is=Ut((({className:e="",title:t,buttons:n,footnote:l,bottomFootnote:a,isShowDepositeName:i,defaultParams:r,rateParams:s,...d})=>{const[m,{field:u}]=gn({moneyValue:ms(r,1e5),daysValue:hs(r,60),isReplenished:Boolean(r?.isReplenished),isPartialWithdrawal:Boolean(r?.isPartialWithdrawal),isMonthlyInterestPayment:Boolean(r?.isMonthlyInterestPayment)}),p=ks(m,s),{income:g,finalSum:x,rate:f,depositeName:b}=p;return o(Xr,{className:e,title:t,...d,children:c("section",{className:h(Gr,e),children:[c("div",{className:Zr,children:[is({title:"Сумма, ₽",min:p.minSum,max:p.maxSum,...u("moneyValue"),value:p.moneyValue}),(y={title:"Срок, дней",min:p.minDays,max:p.maxDays,...u("daysValue"),value:p.daysValue},o(ol,{items:[`От ${us(y.min||0)}`,`До ${us(y.max||0)}`],step:1,...y})),c("div",{className:"flex flex-col sm:flex-row gap-y-m gap-x-5xl",children:[Ts(p,u),gs({title:"Выплата процентов",orientation:"vertical",...u("isMonthlyInterestPayment"),className:"sm:flex-col"})]})]}),as({rate:f,depositeName:b,isShowDepositeName:i}),fs({income:g,finalSum:x,buttons:n,footnotes:[l,a]})]})});var y})),Ts=(e,t)=>c("div",{className:"space-y-s",children:[o(Ae,{color:"text-secondary-text",font:"font-light",children:"Параметры"}),c("div",{className:"flex flex-col gap-y-lg sm:gap-y-s",children:[o(ta,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),o(ta,{disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal})]})]}),Bs=(e=[],t=!1)=>Ms([(e,t)=>e>t,(e,t)=>e?.minSum<t?.minSum],e?.filter((e=>t===Boolean(e?.isNewClient)))),Ms=(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]},Ps=({min:e=0,max:t=0,availableMonths:n,...l})=>o(ol,{items:[`От ${Vs(e)}`,`До ${Vs(t)}`],step:1,...n?.length?{list:n}:{min:e,max:t},...l}),Vs=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,Rs=e=>ps({...e,className:"sm:flex-col",items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]}),zs=({field:e,defParams:t,calcParams:n,map:l,monthsValue:a="maxMonths"})=>{Object.entries(l).forEach((([n,l])=>{e?.(n)?.onChange?.(t?.[l])})),e?.("monthsValue")?.onChange?.(ll(t?.[a],n.minMonths,n.maxMonths))},Ds=(e,t)=>{const{isAnnuity:n,moneyValue:l,monthsValue:a,moneyExtra:i}=t;if(0===e)return 0;if(n){const t=e/1200;return i?(l+i)*(t+t/(Math.pow(1+t,a)-1)):l*(t+t/(Math.pow(1+t,a)-1))}return Math.round(l/a)+l*(e/1200)},_s={minSum:1e4,maxSum:5e6,minMonths:1,maxMonths:60,rate:0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},$s=e=>js({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&js({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&js({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&js({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),js=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:l,viewSettingFieldKey:a})=>!!n&&!n[a]||t[l]===e[l],Ls=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,i=t?.rateRows||[_s],r=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>$s({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:s,maxSum:o}=bs(["minSum","maxSum"],r,i),{minMonths:c,maxMonths:d}=bs(["minMonths","maxMonths"],r,i),m=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:l,monthsValue:a})=>e?.find((e=>$s({row:e,userInputParams:t,paramsViewSettings:n})&&vs(l,["minSum","maxSum"],e)&&vs(a,["minMonths","maxMonths"],e)))||_s)({rateRows:i,userInputParams:e,paramsViewSettings:n,moneyValue:l,monthsValue:a}),{rate:h}=m,u=Ds(h,e);return{...m,...e,minSum:s,maxSum:o,minMonths:c,maxMonths:d,moneyValue:l,monthsValue:a,monthlyPayment:u}},As=(e={})=>Boolean(Object.values(e).filter((e=>e)).length),Os={isSalaryClient:"isSalaryClient",isStateEmployee:"isStateEmployee",isPensionClient:"isPensionClient",isInsurance:"isInsurance",moneyValue:"maxSum"},Es=Ut((({className:e,title:t,calcSource:n,buttons:l,footnote:i,paramsViewSettings:r,defaultParams:s,onChange:d,...m})=>{const u=(p=n?.rateRows,Ms([(e,t)=>e<t,(e,t)=>e?.maxSum>t?.maxSum],p));var p;const[g,{field:x}]=gn({moneyValue:ms(s,2e5),monthsValue:hs(s,ds),isAnnuity:Boolean(s?.isAnnuity),isInsurance:Boolean(s?.isEnableInsurance),isSalaryClient:Boolean(s?.isEnableSalaryClient),isPensionClient:Boolean(s?.isEnablePensionClient),isStateEmployee:Boolean(s?.isEnableStateEmployee)},{onChange:d}),f=Ls(g,n,r),b=Rs({title:"Тип платежа",orientation:"vertical",...x("isAnnuity")}),{onChange:y}=x("moneyValue"),{onChange:v}=x("monthsValue");return a((()=>{y&&y(ll(g.moneyValue,f.minSum,f.maxSum))}),[f.minSum,f.maxSum]),a((()=>{v&&v(ll(g.monthsValue,f.minMonths,f.maxMonths))}),[f.minMonths,f.maxMonths]),a((()=>{!As(s)&&u&&zs({field:x,defParams:u,calcParams:f,map:Os,monthsValue:"minMonths"})}),[n,s]),o(Xr,{className:e,title:t,...m,children:c("section",{className:h(Gr,e),children:[c("div",{className:Zr,children:[is({title:"Сумма кредита, ₽",step:500,min:f.minSum,max:f.maxSum,...x("moneyValue"),value:f.moneyValue}),Ps({title:"Срок кредита, месяцев",min:f.minMonths,max:f.maxMonths,...x("monthsValue"),value:f.monthsValue}),Fs({...f,...r},x),o("div",{className:"sm:hidden",children:b})]}),c("div",{className:h(Jr,"@4xl:w-1/2"),children:[o(es,{title:"Полная стоимость кредита",value:n?.totalLoanCost}),o(es,{title:"Ставка",value:f?.rate,fractionDigits:2,postfix:"%"}),o(es,{title:"Ежемесячный платёж",value:f.monthlyPayment,postfix:"₽"}),o("div",{className:"hidden sm:block mb-lg",children:b}),Ke(l,{isVertical:!0}),ts(i)]})]})})})),Fs=(e,t)=>c("div",{className:"flex flex-col gap-y-2xl",children:[e.isShowSalaryClient?o(ta,{text:"Получаю зарплату на счёт\nв Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient,className:"whitespace-pre-line sm:whitespace-normal"}):null,e.isShowStateEmployee?o(ta,{text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?o(ta,{text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?o(ta,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),Us=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let n=1;for(;n<t.length;){const[e,l]=t[n-1],[a,i]=t[n];l>=a?t.splice(n-1,2,[e,Math.max(l,i)]):n++}return t},Ws={minSum:5e4,maxSum:100000001,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0,isReplenish:!1,isWithdrawn:!1,type:""},Hs=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,i=t?.[0]?qs(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=>[Ks({row:t,userInputParams:e,paramKey:"isReplenish",isExclude:o}),Ks({row:t,userInputParams:e,paramKey:"isWithdrawn",isExclude:c}),Ks({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:r}),Ks({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:s}),d||e?.isNewClient===t?.isNewClient,vs(l,["minSum","maxSum"],t),vs(a||i,["minMonths","maxMonths"],t)].every(Boolean)))||Ws,{rate:h}=m,u=Ys(h,e),p=l+u,g=t||[Ws];return{...m,...ys(["minSum","maxSum"],g),...ys(["minMonths","maxMonths"],g),availableMonths:Us(g.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,n=1)=>Array.from({length:Math.abs(t-e)/n+1},((l,a)=>t>=e?e+a*n:e-a*n)))(e,t))),...e,defaultMonth:i,income:u,finalSum:p}},Ys=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,monthsValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a)-l):Math.round(l*e*30*a/365/100)},Ks=({row:e,userInputParams:t,paramKey:n,isExclude:l})=>l||t[n]===e[n],qs=(e,t)=>e+Math.round((t-e)/2),Xs=(e="rub")=>"rub"===e,Gs=(e,t)=>{const{minMonths:n,maxMonths:l}=ys(["minMonths","maxMonths"],eo(t,e?.currency)),a=e.monthsValue||Math.round((n+l)/2);return{monthsValue:ll(a,n,l)}},Zs=(e,t)=>{const{minSum:n,maxSum:l}=ys(["minSum","maxSum"],eo(t,e?.currency)),a=e.moneyValue||n;return{moneyValue:ll(a,n,l)}},Js=(e,t)=>({currency:e?.currency??t?.map((e=>e.currency))?.[0]}),Qs=e=>{const t=Xs(e?.currency?.key);return{isReplenish:t&&e?.isReplenish,isWithdrawn:t&&e?.isWithdrawn}},eo=(e,t)=>{const{rates:n}=e?.find((e=>e?.currency.key===t?.key))??{};return n??e?.[0]?.rates},to=(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?ps({title:"Пополнение",...t("isReplenish"),value:e.isReplenish,orientation:"vertical",items:[{id:"withReplenish",text:"С пополнением"},{id:"withoutReplenish",text:"Без пополнения"}],disabled:n}):null,e.isShowWithdrawn?ps({title:"Снятие",...t("isWithdrawn"),value:e.isWithdrawn,orientation:"vertical",items:[{id:"wthDrawn",text:"Со снятием"},{id:"noWithdrawn",text:"Без снятия"}],disabled:n}):null]}),no(e.isShowReplenish||e.isShowWithdrawn),c("div",{className:"flex gap-lg",children:[e.isShowMonthlyInterestPayment?gs({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment,orientation:"vertical"}):null,e.isShowRemoteRegistration?(l={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration,orientation:"vertical"},ps({...l,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]}),no(e.isShowNewClient),e.isShowNewClient?o(ta,{text:"Новый вкладчик",...t("isNewClient")}):null]});var l},no=(e=!1)=>e?o("div",{className:"border-b border-main-divider w-full"}):null,lo={isMonthlyInterestPayment:"isMonthlyInterestPayment",isRemoteRegistration:"isRemoteRegistration",isReplenish:"isReplenish",isWithdrawn:"isWithdrawn",moneyValue:"minSum"},ao={text:"₽",key:"rub"},io=Ut((({className:e,title:t,calcSource:n,buttons:l=[],footnote:r="",paramsViewSettings:s,defaultParams:d,...m})=>{const{rows:u}=n??{},p=u?.map((e=>e.currency))??[ao],g=i((e=>t=>e?{...t,...Qs(t),...Zs(t,e),...Gs(t,e),...Js(t,e)}:t)(u),[u]),[x,{field:f}]=gn({moneyValue:ms(d,2e4),monthsValue:hs(d,1),isMonthlyInterestPayment:Boolean(d?.isMonthlyInterestPayment),isRemoteRegistration:Boolean(d?.isRemoteRegistration),isReplenish:Boolean(d?.isReplenish),isWithdrawn:Boolean(d?.isWithdrawn),isNewClient:Boolean(d?.isNewClient),currency:ao},{normalizer:g}),b=f?.("currency")?.value??ao,y=f?.("isNewClient")?.value,v=eo(u,b),w=Hs(x,v,s),{rate:N,income:k,finalSum:S,type:C=""}=w,I=i((()=>{zs({field:f,defParams:Bs(v,y),calcParams:w,monthsValue:"minMonths",map:lo})}),[f,u]);a((()=>{!As(d)&&v&&I()}),[d,u]);const T=N===Bs(v,y)?.rate;return o(Xr,{className:e,title:t,...m,children:c("section",{className:h(Gr,e),children:[c("div",{className:Zr,children:[c("div",{className:"flex gap-m",children:[is({className:"w-full",title:`Сумма, ${b?.text}`,min:w.minSum,max:w.maxSum,...f("moneyValue"),value:w.moneyValue,postfix:b?.text,step:ro(b?.key)}),u&&u?.length>1?o(Ln,{label:"Валюта",options:p,...f("currency")}):null]}),Ps({title:"Срок, месяцев",min:w.minMonths,max:w.maxMonths,availableMonths:w.availableMonths,...f("monthsValue"),value:w.monthsValue}),to({...w,...s},f)]}),as({rate:N,children:oo(I,T)}),fs({income:k,finalSum:S,buttons:[...l,so(n?.buttons,C)],footnotes:[r],postfix:b?.text,isCapitalization:f("isMonthlyInterestPayment").value})]})})})),ro=(e="")=>Xs(e)?1e3:100,so=(e=[],t="")=>{const{type:n,...l}=e.find((e=>e.type===t))??{};return l},oo=(e,t=!1)=>t?null:o(fi,{type:"button",version:"secondary",onClick:e,children:"Показать максимальную ставку"}),co=e=>mo({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&mo({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),mo=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:l,viewSettingFieldKey:a})=>!!n&&!n[a]||t[l]===e[l],ho={minSum:1e4,maxSum:3e6,minSumOld:0,maxSumOld:25e5,minSumExtra:0,maxSumExtra:5e5,minMonths:13,maxMonths:60,rate:0,isExtraMoney:!1,isSalaryClient:!1,isInsurance:!0},uo=(e,t,n)=>{const{moneyValue:l,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r}=e,s=t?.rateRows||[ho],o=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>co({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:c,maxSum:d}=bs(["minSum","maxSum"],o,s),{minMonths:m,maxMonths:h}=bs(["minMonths","maxMonths"],o,s),u=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:l,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r})=>e?.find((e=>co({row:e,userInputParams:t,paramsViewSettings:n})&&vs(l+r,["minSum","maxSum"],e)&&vs(i,["minSumOld","maxSumOld"],e)&&vs(r,["minSumExtra","maxSumExtra"],e)&&vs(a,["minMonths","maxMonths"],e)))||ho)({rateRows:s,userInputParams:e,paramsViewSettings:n,moneyValue:l,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r}),{rate:p}=u,g=Ds(p,e),x=e.oldMonthlyPayment-g;return{...u,...e,minSum:c,maxSum:d,minMonths:m,maxMonths:h,moneyValue:l,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r,monthlyPayment:g,benefit:x}},po=Ut((({className:e="",title:t,calcSource:n,buttons:l,footnote:a,paramsViewSettings:i,...r})=>{const[s,{field:d}]=gn({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isExtraMoney:!1,moneyValue:7e5,oldMonthlyPayment:0,monthsValue:48,moneyExtra:0}),m=uo(s,n,i),u=Rs({title:"",mobileTitle:"Тип платежа",orientation:"vertical",...d("isAnnuity")});return o(Xr,{className:e,title:t,...r,children:c("section",{className:h(Gr,e),children:[c("div",{className:Zr,children:[is({title:"Остаток долга в других банках, ₽ ",step:500,min:m.minSum,max:m.maxSum-m.maxSumExtra,...d("moneyValue"),value:m.moneyValue}),is({title:"Ежемесячный платёж в других банках, ₽",step:500,min:m.minSumOld,max:m.maxSumOld,...d("oldMonthlyPayment"),value:m.oldMonthlyPayment}),Ps({title:"Новый срок кредита, месяцев",min:m.minMonths,max:m.maxMonths,...d("monthsValue"),value:m.monthsValue}),go({...m,...i},d),m.isExtraMoney?is({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:u})]}),c("div",{className:h(Jr,"@4xl:w-1/2"),children:[o(es,{title:"Полная стоимость кредита",value:n?.totalLoanCost}),o(es,{title:"Ставка",value:m?.rate,fractionDigits:2,postfix:"%"}),o(es,{title:"Ежемесячный платёж",value:m.monthlyPayment,postfix:"₽"}),m.benefit>0?o(es,{title:"Выгода в месяц",value:m.benefit,postfix:"₽"}):null,o("div",{className:"hidden sm:block mb-lg",children:u}),Ke(l,{isVertical:!0}),ts(a)]})]})})})),go=(e,t)=>c("div",{className:"space-y-lg sm:space-y-s",children:[e.isShowSalaryClient?o(ta,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowInsurance?o(ta,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null,o(ta,{text:"Получить дополнительную сумму",...t("isExtraMoney"),value:e.isExtraMoney})]}),xo=d((e=>{const{onChange:t,min:n,max:l,defaultValue:a="0",fractionDigits:r=0,...s}=e,c=nl(e,{normalize:(e=a)=>n&&l?String(ll(Number(fo(e)),n,l)):fo(e),format:Ze(r)}),d=i((e=>t&&t(fo(e))),[t]);return o(Sn,{onChange:d,...s,...c})})),fo=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),bo=d((e=>o(xo,{...e,fractionDigits:2,children:o("div",{className:"absolute right-4 bottom-4",children:o(Ae,{size:"text-xl",font:"font-light",children:"₽"})})})));function yo(e,t){for(const[n,l]of e.entries())null!=l?t.setItem(n,l):t.removeItem(n)}function vo(e,t){return yo(e,t),yo(t,e),e.bus.watch((({type:e,event:n})=>{null!=n?t.setItem(e,n):t.removeItem(e)}))}class wo{storage;bus;get size(){return this.storage?.length??0}constructor(e,t=new xe){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)}}class No{bus;store=new Map;get size(){return this.store.size}constructor(e=new xe){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)}}const ko={};function So(e,t=ko){const n=s(null),o=function(){const[,e]=l(0);return i((()=>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,l)=>(n.current||=new Set,n.current.add(l),e.getItem(l)),has:(t,l)=>(n.current||=new Set,n.current.add(l),e.hasItem(l)),set:(t,n,l)=>(e.setItem(n,l),!0),deleteProperty:(t,n)=>(e.removeItem(n),!0)})),[e])}const Co=new No;function Io(){return So(Co)}vo(Co,new wo(globalThis?.sessionStorage));const To={private:"p2p/registerP2P",business:"b2c/registerB2C"},Bo=({onClose:e,errorCode:t,errorMessage:n})=>{const l=t?`Код ошибки - ${t}`:"Пожалуйста, повторите позднее";return o(yi,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto",onClose:e,children:c("div",{className:"flex flex-col gap-lg items-center rounded-md space-x-m",children:[o(se,{image:{icon:"ResponseFailIcon",iconVersion:"normal"},width:"136",height:"136"}),o(C,{className:"w-full",title:"Ошибка перевода",description:l,headlineVersion:"XS",isEmbedded:!0}),n?c("div",{className:"bg-secondary-dark rounded-xl px-4 pt-4 pb-8 grid gap-4 grid-cols-12",children:[c("div",{className:"col-span-8",children:[" ",n]}),o("div",{className:"col-span-4",children:o(se,{image:{icon:"ResponseFailIcon",iconVersion:"normal"}})})]}):null]})})},Mo=e=>{const t=fn(Bo),n=Io(),l=nn(),a="private"===e?"p2p":"b2c";return i((async({amount:i})=>{const r=await(async(e,t)=>{const n=nn(),l={amount:String(t),currency:"643",returnUrl:`${n.origin}/p2p/success`,failUrl:`${n.origin}/p2p/failed`,language:"ru"},a=`${Xt}/payment/${To[e]}`;try{const e=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(l)});return e.ok?await e.json():null}catch(e){return null}})(e,i);(e=>Boolean(e?.formUrl)&&Boolean(e?.orderId))(r)&&(n.transaction={orderId:r.orderId,type:a,url:l.href},l.assign(`${a}/?formUrl=${encodeURIComponent(r.formUrl)}`)),(e=>Boolean(e?.errorMessage)&&0!==e?.errorCode)(r)&&t.open({errorCode:r.errorCode,errorMessage:r.errorMessage})}),[e])},Po={amount:1500},Vo=d((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",button:l,formType:i="private",...r})=>{const[s,{setValue:d}]=on(!1),m=Mo(i),[{amount:u},{field:p,onSubmit:x}]=gn(Po,{onSubmit:m});return a((()=>{d(u<=0)}),[u]),c(g,{className:h("flex flex-col items-center",e),defaultPadding:"p-6xl",...r,children:[t?o(N,{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",onSubmit:x,children:[o(bo,{valid:!s,label:n,max:3e5,min:1,...p("amount",{parse:Number,format:String})}),o("input",{type:"hidden",name:"amount",value:u}),l?.text?o(Bi,{className:"w-full mt-lg",disabled:s,children:l.text}):null]})]})})),Ro=({className:e,text:t="ХИТ"}={})=>c("div",{className:h("w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-main-black",e),children:[o(Z,{iconVersion:"black",name:"HeartIcon",width:"24",height:"24"}),o(k,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:t})]}),zo="relative h-full",Do={small:"lg:min-w-64",normal:"lg:min-w-80 xl:min-w-96",big:"lg:min-w-[515px]"},_o=({noCardBorder:e,cardSize:t="normal",isNavButtons:n=!1,...l})=>{const{blocks:a}=l.block||{},i=a?.some(Lo),r=n?{defaultPadding:"p-6xl pb-m"}:{};return V({...l,renderProps:(n,l,a)=>c("div",{className:$o(n,{someCardsHighlighted:i}),children:[B(n,l,{className:jo(n,{someCardsHighlighted:i,showBorder:!e,cardSize:t}),...r,blockIndex:a}),Lo(n)?Ro({className:"absolute top-0 -right-4 z-40"}):null]},String(a))})},$o=(e,{someCardsHighlighted:t})=>h(zo,t&&(Lo(e)?"pt-3xl":"pt-3xl sm:pt-16")),jo=(e,{someCardsHighlighted:t,showBorder:n,cardSize:l="normal"})=>h(zo,"min-w-80",Do[l],t&&(Lo(e)?"pt-3xl sm:pt-16":"pt-3xl"),Hi(n),n&&"h-full"),Lo=e=>e?.content&&"isHighlighting"in e.content&&e.content.isHighlighting,Ao=Ut((({className:e,visibleItemCount:t=0,noCardBorder:n,arrowsPadded:l=!0,isGap:a=!0,cardSize:i="normal",isNavButtons:r=!1,...s})=>o(g,{className:h(e),defaultPadding:"p-6xl",...s,children:o(wr,{className:h("relative max-w-full"),visibleItemCount:t,snapAlign:"snap-start",gap:a?16:0,padding:0,arrowsPadded:l,navButtons:r?Oo(s?.block?.blocks):[],hasBlur:!0,children:_o({noCardBorder:n,cardSize:i,isNavButtons:r,...s})})})),{childrenTypes:["CarouselCard","CarouselCatalogCard","CarouselRecommendationCard","CarouselTariffsCard","RichTextBlock","ProductBlock"],childSchema:()=>({isHighlighting:{title:"Выделить карточку",type:"boolean"}})}),Oo=e=>e?.map((e=>{const t=e?.content;return{title:t?.title,description:t?.additionalDescription||t?.description}}))??[],Eo="z-10 border border-solid w-full h-full",Fo=h(Eo,"absolute hidden @xl:block border-transparent"),Uo=d((({className:e,title:t,description:n,button:l,...a})=>o(g,{className:h("sm:pl-6xl sm:pb-4xl @container-normal",e),defaultPadding:"p-0",...a,children:c("div",{className:"relative h-full",children:[o("div",{className:h(Fo,"top-9 right-12 bg-green-dark")}),o("div",{className:h(Fo,"top-6 right-8 bg-green")}),o("div",{className:h(Fo,"top-3 right-4 bg-green-light")}),c("div",{className:h(Eo,"relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-more-light"),children:[o(C,{title:t,description:n,headlineVersion:"XS",align:"text-left",isEmbedded:!0}),Ke([l],{className:"mt-m sm:mt-6xl sm:justify-center",isVertical:!0})]})]})}))),Wo={black:"bg-black",white:"bg-white"},Ho=d((({className:e="",title:t,description:n,image:l,price:a,button:i,colors:r=[],align:s="text-left",padding:d,...m})=>o(g,{className:h("flex flex-col justify-left",e),defaultPadding:"p-2xl",...m,children:c(ze,{className:"h-full",padding:d,title:o(C,{title:t,description:n,headlineVersion:"XS",isEmbedded:!0,align:s}),rightImage:l?.src?o(se,{className:"flex justify-center align-center mb-xl",image:l}):null,buttons:Ke([i],{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(Ae,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),r.map(Yo)]}):null,a?c(Ae,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null]})}))),Yo=(e,t)=>o("figure",{className:`w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${Wo[e]}`},String(t)),Ko=d((({icon:e,...t})=>{const n=ye(),{text:l,href:a,target:i,onClick:r}=n(t);return l?o("div",{className:h("p-3 rounded-lg bg-white text-secondary-text flex justify-center"),children:o("a",{role:"link",href:a,target:i,onClick:r,children:c("div",{className:"flex flex-col items-center gap-3 break-words max-w-[150px]",children:[e?o(se,{className:"w-7 h-7 md:w-12 md:h-12",image:{...e,iconVersion:e?.iconVersion},alt:l}):null,o("div",{className:"font-light md:font-normal text-primary-text text-center text-xs md:text-sm whitespace-wrap",children:l})]})})}):null})),qo=d((({className:e,additionalDescription:t,description:n,links:l,title:a,...i})=>o(g,{defaultPadding:"p-5xl",className:h("overflow-hidden",e),...i,children:c("div",{className:"flex flex-col lg:flex-row gap-5 justify-between",children:[c("div",{className:"flex-1",children:[o(C,{isEmbedded:!0,title:a,description:n,as:"h1",align:"text-left",headlineVersion:"XL"}),o(C,{className:"pt-m",description:t,align:"text-left",isEmbedded:!0})]}),l?.length?Xo(l):null]})}))),Xo=e=>o("div",{className:h("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(Ko,{...e},String(t))))}),Go=(e,t)=>e?.map((({aspectName:e,params:n})=>({aspectName:e,params:"mindboxEvent"===e?{...n,eventJson:t}:n}))),Zo=d((({className:e="",href:t,target:n,onClick:l,data:a,children:i})=>{const r=ye()({href:t,target:n,onClick:l});return o(t?"a":"div",{className:h("block",e),...t?r:{},role:t?"link":"none",...we(a),children:i})})),Jo=[{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"}}],Qo=d((({className:e="",media:t,showButtonText:n,stretched:a,version:i="white",children:r})=>{if(!t?.length)return null;const[s,d]=l(),m=t?.map((e=>{const{href:t,icon:l,text:a}=e,{iconMapped:r}=(e=>Jo.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{})(t),o=Ye(l)?l: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??i}})),u=h("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},ec(a));return c("div",{className:h("flex flex-col gap-m xl:gap-xs",e),"aria-label":"Социальные сети",children:[o("div",{className:"flex gap-xs",children:Ke(m,{className:tc(s??!1,a??!1,n),buttonClassName:u})}),r?o(Ae,{size:"text-s",font:"font-light",color:"text-secondary-text",children:r}):null]})})),ec=(e=!1)=>e?"flex-1 @lg:flex-initial justify-center":"",tc=(e,t,n=!1)=>h(e||t?"basis-full":"",t&&(!n||!e)?"flex-nowrap":""),nc=d((({className:e,padding:t,description:n,additionalDescription:l,href:a,icon:i,isDotted:r,__html:s,socialMedia:d=[],target:m,title:u,align:p="text-left",benefits:x,imageOptions:{directionRight:f=!0,isImageAlwaysOnRight:b=false,isImageSecondary:y=!1}={},data:v,...w})=>o(g,{className:h("relative min-h-28 group-data-gray:bg-main-divider/50",e),defaultPadding:"p-0",...w,children:o(Zo,{href:a,target:m,className:"h-full",data:Go(v),children:c(ze,{className:"h-full",defaultPadding:"p-2xl",padding:t,insetTitle:o(C,{title:u,description:n,headlineVersion:"XS",isEmbedded:!0,align:p}),...at(Ye(i)?o(se,{image:i}):null,f),buttons:d.length?o(Qo,{media:d,stretched:!0,showButtonText:!0,version:w?.version}):null,isImageAlwaysOnRight:b,isImageSecondary:y,imageAlign:"center",children:[o(He,{benefits:x}),s?o(je,{__html:s,isDotted:r,itemSize:"list-s"}):null,lc(l,p)]})})}))),lc=(e,t)=>e?o(k,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",align:t,children:e}):null,ac=new xe,ic=(e,t)=>{const{title:n,description:l,buttons:a}=e;return c("div",{className:"py-lg border-b border-main-divider",children:[n?o("div",{className:"opacity-80",children:o(Ae,{size:"text-m",color:"text-secondary-text",children:n})}):null,l?o("div",{className:"mt-2xs",children:o(Ae,{size:"text-xl",color:"text-primary-text",children:l})}):null,a?.length?o("div",{className:"text-primary-main",children:Ke(a)}):null]},String(t))},rc=d((({className:e="",title:t,align:n="text-center",icon:s,button:d,visibleCellsCount:m=1,cardCells:u=[],options:p,data:x,...f})=>{const b=r((()=>u.map(ic)),[u]),[y,v]=r((()=>m>0?[b.slice(0,m),b.slice(m)]:[b,[]]),[m,b]),[w,k]=l(!1);a((()=>ac.subscribe("fold",(e=>{e&&p?.parent&&e.parent===p?.parent&&k(e.isUnfolded)}))),[p?.parent]);const S=i((()=>{ac.fire("fold",{type:"fold",isUnfolded:!w,parent:p?.parent})}),[w,p?.parent]);return c(g,{className:h("flex flex-col",e),defaultPadding:"p-2xl",...f,children:[o(se,{className:"self-center",image:s}),t?o(N,{className:h("pt-xs",n),headingType:"h5",title:t}):null,d?.text?o(Ie,{className:"w-full mt-m mb-lg",...d}):null,v.length?c(Ei,{children:[c("div",{children:[y,o(Fi,{isUnfolded:w,children:v})]}),u.length>=m?o(Oi,{className:"mt-m",label:w?"Скрыть":"Подробнее о тарифе",isUnfolded:w,embedded:!0,data:x,onClick:S}):null]}):o("div",{children:y})]})})),sc=e=>"number"==typeof e?.minMonths&&"number"==typeof e?.maxMonths,oc=(e,t)=>Array.from({length:t-e+1},((t,n)=>e+n)),cc=1e9,dc={sum:{min:1e4,max:cc},period:3},mc=Ut((({className:e,filtrationSchema:t={},resetButton:n,sumInput:l,periodInput:a,...i})=>{const[,{blocksToRender:r,blocksWithProps:s},{field:d,reset:m}]=_r(dc,{block:i.block,page:i.options?.page,normalize:e=>({...e,period:hc(e)})}),u=s.map((([,e])=>e?.paramsSource?.rows?.[0]?.rates)),p=uc(u);return c(g,{className:h("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...i,children:[o(Tr,{filtrationSchema:t,resetButton:n,field:d,reset:m,children:c("div",{className:"@4xl:max-w-xs space-y-lg",children:[o(bo,{label:l?.title,min:500,max:cc,...d("sum",{parse:e=>({min:Number(e),max:cc}),format:({min:e})=>String(e)})}),o(ol,{title:a?.title,items:["От 3 мес","До 5 лет"],list:p,...d("period")})]})}),o(kr,{blocksToRender:r,...i})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>({...e?.filtrationSchema||{},paramsSource:{type:"object",title:"Адрес справочника"}})}),hc=e=>jt((e?.paramsSource?.rateRows||[]).filter(sc).flatMap((e=>oc(e.minMonths,e.maxMonths)))),uc=e=>jt(e.flatMap((e=>e||[])).filter(sc).flatMap((e=>oc(e.minMonths,e.maxMonths)))).sort(((e,t)=>e-t))||[],pc=[{key:"10"},{key:"50"},{key:"100"}],gc=({itemCount:e,onItemCountChange:t})=>{const n=i((({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(Dn,{className:"min-w-20",onChange:n,value:{key:String(e)},options:pc,iconVersion:"black"})]})},xc="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",fc=(e,t)=>{const{currentPage:n,onPageChange:l,totalPages:a}=e,i=t+1;return i===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:i},String(t)):1!==i&&i!==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))(i,n,a)?o("div",{onClick:()=>l(i),className:xc,"aria-label":`Страница ${i}`,children:i},String(t)):null},bc={width:"24",height:"24"},yc=({currentPage:e,onPageChange:t,totalPages:n})=>{const l=r((()=>Array.from({length:n}).fill({currentPage:e,onPageChange:t,totalPages:n})),[n,e]),a=i((()=>{e>1&&t(e-1)}),[e]),s=i((()=>{e<n&&t(e+1)}),[e,n]),d=i((()=>t(1)),[]),m=i((()=>t(n)),[n]);return c("div",{className:"flex gap-m items-center",children:[o("div",{onClick:a,children:o(Z,{name:"ArrowLeftIcon",iconVersion:"black",imageClassName:vc(1===e),...bc})}),c("div",{className:"flex @lg:gap-2xs",children:[e>1?o("div",{onClick:d,className:xc,"aria-label":"Страница 1",children:"1"}):null,e>3?o("div",{className:"py-m @lg:px-s",children:"..."}):null,l.map(fc),e<n-2?o("div",{className:"py-m @lg:px-s",children:"..."}):null,e<n?o("div",{onClick:m,className:xc,"aria-label":`Страница ${n}`,children:n}):null]}),o("div",{onClick:s,children:o(Z,{className:"rotate-180",name:"ArrowLeftIcon",iconVersion:"black",imageClassName:vc(e===n),...bc})})]})},vc=e=>e?"opacity-20":"cursor-pointer hover:opacity-60",wc=({currentPage:e,onPageChange:t,totalPages:n,itemCount:l,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(yc,{currentPage:e,onPageChange:t,totalPages:n}),l&&a?o(gc,{itemCount:l,onItemCountChange:a}):null]}),Nc=d((({className:e,value:t,autoFocus:n,onChange:l,onFocus:a,placeholder:r="Поиск по сайту"})=>{const s=i((e=>{l&&l(e.target?.value||"")}),[l]);return c("div",{className:h("relative",e),role:"form",children:[o("div",{className:"absolute h-full flex items-center pl-m pointer-events-none",children:o(se,{image:{icon:"LoupeIcon",iconVersion:"black"},width:"24",height:"24"})}),o("input",{className:h("h-14 w-full px-10 text-l text-black box-border rounded-md",Nn),value:t,type:"text",name:"search-bar-input",placeholder:r,autoFocus:n,onChange:s,onFocus:a})]})})),kc=d((({field:e,onClearFilter:t,filtrationState:n})=>c("div",{className:"grid grid-cols-12 mb-3xl @lg:space-x-xl",children:[o(Nc,{className:"col-span-12 @lg:col-span-4 mt-auto",placeholder:"Поиск",...e("query")}),o(Al,{className:"col-span-12 @lg:col-span-3 mt-4 @lg:mt-0",label:"Период от",maxDate:n.endDate,...e("startDate")}),o(Al,{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(fi,{type:"reset",className:"w-full",version:"secondary",onClick:t,children:"Очистить"})})]}))),Sc=d((({title:e,timestamp:t,publicId:n})=>{const l=ye(),{href:a}=l({href:`${Xt}/depository/${n}/file`});return c("div",{className:"flex gap-3 items-center py-lg border-gray border-opacity-50 border-b",children:[o(Fr,{className:"shrink-0",icon:"DocDownloadIcon",iconVersion:"black"}),c("div",{className:"flex flex-col gap-x-6xl lg:flex-row lg:items-center",children:[t?o(Ae,{size:"text-m","font-weight":"font-light",children:Kt(t)}):null,o("a",{className:"text-h6 hover:text-primary-active",href:a,download:!0,"aria-label":"Скачать",children:e})]})]},n)})),Cc=`${Xt}/depository`,Ic={startDate:void 0,endDate:void 0,query:""},Tc=Ut((({className:e,...t})=>{const[n,a]=l(0),[r,s]=l(10),[d,{field:m,reset:u}]=gn(Ic),{totalPages:p=0,items:x=[]}=(({size:e,page:t,query:n,startDate:l,endDate:a})=>{const i=l?Kt(l,!0):"",r=a?Kt(a,!0):"",s=new URLSearchParams(Cc);s.set("page",String(t)),s.set("size",String(e)),s.set("query",n),s.set("timestampStart",i),s.set("timestampEnd",r);const o=`?${s.toString()}`,{data:c}=qn(Cc+o,$t);return{items:c?.content,totalPages:c?.totalPages}})({size:r,page:n,...d}),f=i((e=>a(e-1)),[]),b=i((e=>{r!==e?(s(e),a(0)):s(e)}),[]);return c(g,{className:h(e,"container p-6xl"),...t,children:[o(kc,{filtrationState:d,field:m,onClearFilter:u}),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(Ae,{size:"text-m",color:"text-secondary-text",children:"Дата"})}),o("span",{className:"col-span-8 @lg:col-span-10 hidden @lg:block",children:o(Ae,{size:"text-m",color:"text-secondary-text",children:"Тема"})})]}),x.length?x.map((e=>o(Sc,{...e},String(e.publicId)))):o($i,{title:"Ничего не найдено",description:"Попробуйте очистить фильтры"}),o(wc,{currentPage:n+1,onPageChange:f,totalPages:p,itemCount:r,onItemCountChange:b})]})]})})),Bc=e=>"Image"===e?.contentType&&e?.image?o(se,{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,Mc=d((({className:e="",title:t,description:n,error:l,button:a,...i})=>c(g,{className:h("flex flex-col justify-center items-center",e),defaultPadding:h("p-6xl"),version:"transparent",...i,children:[o("div",{className:"flex justify-center",children:Bc(l)}),o(C,{title:t,description:n,headlineVersion:"XL",isEmbedded:!0,className:"mb-2xl last:mb-0"}),a?.text?o(Ie,{version:a?.version,text:a?.text,...a}):null]}))),Pc=new No;function Vc(e){return So(Pc,e)}vo(Pc,new wo(globalThis?.localStorage));const Rc=`${Xt}/region`;function zc(e="Москва"){return Vc().location??{name:e}}function Dc(e="Москва"){const t=Vc(),n=i((async()=>{if(!t.location){const n=await _t(Rc);t.location=n??{name:e}}}),[t,e]);return qn(Rc,n),t}var _c;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD",e.CNY="CNY"}(_c||(_c={}));const $c=new Intl.NumberFormat("ru",{style:"currency",currency:_c.RUB}),jc=e=>e?$c.format(e):"",Lc="text-m font-light text-secondary-text ",Ac=`${Lc} text-left`,Oc=`${Lc} pl-5xl text-center`,Ec=`${Lc} pl-5xl text-right`,Fc={USD:"DollarIcon",EUR:"EuroIcon",CNY:"ChineseYuanRenminbiIcon"},Uc=d((({className:e,exchangeCurrencyItems:t})=>c("table",{className:h("h-fit w-full",e),children:[o("thead",{children:c("tr",{children:[o("th",{className:Ac,children:o(Ae,{size:"text-m",children:"Валюта"})}),o("th",{className:Oc,children:o(Ae,{size:"text-m",children:"Купить"})}),o("th",{className:Ec,children:o(Ae,{size:"text-m",children:"Продать"})})]})}),o("tbody",{children:t.map(Wc)})]}))),Wc=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(se,{image:{icon:Fc[t]},width:"24",height:"24"}):null,o(Ae,{size:"text-h6",children:t})]})}),o("td",{className:"pt-m pl-5xl text-center",children:o(Ae,{size:"text-h6",children:jc(e?.saleExchangeRate)})}),o("td",{className:"pt-m pl-5xl text-right",children:o(Ae,{size:"text-h6",children:jc(e?.buyExchangeRate)})})]},t)},Hc={icon:"GpsIcon"},Yc=d((({className:e="",address:t})=>c("div",{className:h("flex gap-s w-full justify-between @sm:justify-center",e),children:[o(Fr,{...Hc,iconBgVersion:"primary",className:"shrink-0"}),c("div",{className:"space-y-2xs whitespace-pre-wrap",children:[t?o(k,{size:"text-l",color:"text-primary-main",children:t}):null,o(k,{size:"text-m",color:"text-secondary-text",children:"Курс указан для заданного офиса"})]})]}))),Kc=(e,t,n)=>{const l=Number(qc(e))*Math.pow(t,n?-1:1);return Number.isInteger(l)?l:((e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n})(l)},qc=e=>e.replace(/[^\d.,]/g,"").replace(",",".");function Xc(e){if(!e)throw new Error("Value should be fulfilled");return e}const Gc=e=>t=>{const[,n]=Xc(e.find((([e])=>e(t))));return n(t)},Zc=e=>Gc(e.map((([e,t])=>[e,()=>t])));Zc.if=e=>new Jc(void 0,e);class Jc{parent;predicate;unit;get entry(){return[Xc(this.predicate),Xc(this.unit)]}constructor(e,t,n){this.parent=e,this.predicate=t,this.unit=n}if(e){return new Jc(this,e)}then(e){return new Jc(this.parent,this.predicate,e)}else(e){return Gc([...Qc(this),[()=>!0,e]])}}const Qc=e=>[...e?.parent?Qc(e.parent):[],e.entry],ed=e=>Zc([[e=>e.value!==_c.RUB&&e.oppositeValue!==_c.RUB,()=>e.handleConvert(e.value,_c.RUB)],[e=>e.value===_c.RUB&&e.oppositeValue===_c.RUB,()=>e.handleConvert(e.value,_c.USD)],[e=>e.value===_c.RUB&&e.oppositeValue===_c.RUB,()=>e.handleConvert(e.value,_c.CNY)],[()=>!0,()=>e.handleConvert(e.value)]])(e)?.();function td(e){const{placeholder:t,rates:n,selected:l,value:a,setValue:i,setSelected:r}=e,s=n.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),d={key:l,text:l};return c("div",{className:"relative flex",children:[o(Sn,{className:"shrink-0 text-l w-full appearance-none -mr-20",placeholder:t,type:"text",value:a,onChange:i}),s.length?o(Dn,{className:"absolute right-0",isBorder:!1,onChange:e=>r(e.key),options:s,value:d}):null]})}const nd=d((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:a})=>{const[r,s]=l({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||_c.RUB,selectBuy:n?.[0]?.currency?.currency||_c.USD}),d=i((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:[td({placeholder:"Хочу продать",rates:n,selected:r.selectSell,setSelected:ld(r,d,n),value:r.inputSell,setValue:e=>id(d,n)(e,r.selectSell,r.selectBuy)}),td({placeholder:"Получу",rates:t,selected:r.selectBuy,setSelected:ad(r,d,t),value:r.inputBuy,setValue:e=>rd(d,t)(e,r.selectBuy,r.selectSell)})]}):null,a?.text?o(Ie,{text:a.text,version:a?.version,...a}):null]})})),ld=(e,t,n)=>l=>{t({selectSell:l}),ed({value:l,oppositeValue:e.selectBuy,handleConvert:(l=e.selectSell,a=e.selectBuy)=>{id(t,n)(e.inputSell,l,a)}})},ad=(e,t,n)=>l=>{t({selectBuy:l}),ed({value:l,oppositeValue:e.selectSell,handleConvert:(l=e.selectBuy,a=e.selectSell)=>rd(t,n)(e.inputBuy,l,a)})},id=(e,t)=>(n,l,a)=>{e({inputSell:qc(n),selectBuy:a});const i=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===l))?.buyExchangeRate;i&&e({inputBuy:String(Kc(n,i,l===_c.RUB)||"")})},rd=(e,t)=>(n,l,a)=>{e({inputBuy:qc(n),selectSell:a});const i=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===l))?.saleExchangeRate;i&&e({inputSell:String(Kc(n,i,l===_c.RUB)||"")})},sd=`${Xt}/exchangerates`;const od=d((({className:e="",title:t="Курсы обмена валют",button:n,...l})=>{const a=function(e){const t=e?.code||"000",{data:n}=qn(sd+`?regionCode=${t}`,$t);return n||{}}(zc()),i=cd(a?.exchangeRate?.currencies),r=i.filter((e=>e.buyExchangeRate));r.unshift({currency:{currency:_c.RUB}});const s=i.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:_c.RUB}}),o(g,{className:h("box-border min-h-80",e),...l,children:o(ze,{className:"h-full",title:o(N,{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:[i?o(Uc,{className:"mb-xl",exchangeCurrencyItems:i}):null,o(Yc,{address:a?.address})]}),o(nd,{className:"grow w-1/2",currencyRatesBuy:r,currencyRatesSell:s,button:n})]})})})})),cd=e=>e?.filter((e=>[1,2,3].includes(e?.currency?.id)))||[],dd=d((({className:e="",items:t})=>{const n=ye();return o("ul",{className:h("flex flex-col gap-s w-full",e),children:t?.map(md(n))})})),md=e=>({dataFooter:t,...n},l)=>{const{text:a,href:i,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:i,target:r||"_self",onClick:s,...we(t),children:a||null})},String(l)):null},hd=d((({navigationItems:e})=>o("div",{className:"w-full",role:"menu",children:ud(e)}))),ud=e=>e?.filter((e=>e.icon?.icon)).map(((e,t)=>o(pd,{className:"w-full border-0 border-b border-solid border-main-divider last:border-b-0",item:e},String(t)))),pd=d((({className:e,item:t})=>{const[n,{toggle:l}]=on(!1);return c(Ei,{className:e,role:"menuitem",children:[c(fi,{className:h("w-full",t.icon?.icon?"py-xs":"py-lg"),embedded:!0,onClick:l,children:[c(Li,{children:[o(Fr,{className:"shrink-0",...t.icon}),o(Ae,{size:"text-h6",font:"font-normal",color:"text-primary-text",children:t.text})]}),o(Ai,{iconVersion:"color",size:"medium",isUnfolded:n})]}),o(Fi,{className:"flex flex-wrap gap-lg group-last:last:pb-0",isUnfolded:n,children:t.items?o(dd,{items:t.items}):null})]})})),gd=d((({className:e="",items:t=[]})=>t?.length?o("div",{className:h("space-y-m",e),children:t.map(xd)}):null)),xd=(e,t)=>c("div",{className:"space-y-m",children:[o("div",{children:o(Ae,{size:"text-l",font:"font-medium",children:e?.title})}),o("div",{className:"space-y-m",children:e.items?.map(fd)})]},String(t)),fd=(e,t)=>c("div",{className:"space-y-2xs",children:[o("div",{children:bd(e.type,e.text)}),o(k,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e.description})]},String(t)),bd=(e,t="")=>{switch(e){case"tel":return o("a",{className:"text-primary-text hover:text-primary-main no-underline",href:`tel:${yd(t)}`,children:o(Ae,{size:"text-h6",children:t})});case"email":return o("a",{className:"no-underline",href:`mailto:${t}`,children:o(k,{size:"text-xl",font:"font-light",color:"text-primary-text",children:t})});default:return o("span",{children:t})}},yd=e=>e.replaceAll(/\D/g,""),vd=d((({className:e="",index:t,text:n,...l})=>{const a=ye(),{href:i,target:r,onClick:s}=a(l);return o("a",{className:h("text-secondary-text",e),href:i,target:r,onClick:s,children:n||`Документ ${t}`})})),wd=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(Ae,{size:"text-l",font:"font-normal",children:t})}),n.map(((e,t)=>o(vd,{index:t,className:"text-l font-light lg:max-w-[292px]",...e},String(t))))]}):null}))),Nd=d((({className:e="",index:t,...n})=>{const l=ye(),{href:a,target:i,text:r,onClick:s}=l(n);return o("a",{className:h("text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px]",e),href:a,target:i,onClick:s,children:r||`Документ ${t}`})})),kd=d((({className:e="",links:t,license:n})=>c("div",{className:h("@container space-y-lg",e),children:[n?o("div",{children:o(Ae,{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(Nd,{index:t,...e},String(t))))}):null]}))),Sd=Ut((({className:e,footer:t,...n})=>{const{navigationItems:l}=n.options?.page?.navigation??{};n.options;const{documents:a,relatedEnterprises:i,contacts:r,mediaLinks:s=[],horizontalNavigationTitle:d,feedbackButton:m,license:u,otherLinks:p=[]}=t??{};return c(g,{tag:"footer",className:h("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(hd,{navigationItems:l}),o("div",{className:"border-t border-main-divider lg:hidden w-full"}),c("div",{className:h("w-full lg:w-52","flex flex-col shrink-0 overflow-hidden space-y-xl"),children:[o(gd,{items:r}),m?o(Ie,{className:"w-full",version:"primary",...m}):null,s.map(((e,t)=>o(Qo,{media:e?.links??[],showButtonText:!1,stretched:!0,children:e?.title},String(t)))),p.map(((e,t)=>o(Pi,{className:"text-s font-light",...e},`${e.href}_${t}`)))]})]}),o(wd,{title:d,links:i}),o(kd,{links:a,license:u})]})})),Cd=Ut((({className:e,title:t,button:n,regionSource:a,data:i,...r})=>{const[s,d]=l({key:""}),m=a?.regions??[],u=m?.find((e=>e.name===s.key))?.href;return o(g,{className:e,defaultPadding:"p-6xl",...r,children:c("div",{className:"container space-y-m",children:[t?o(N,{headingType:"h3",title:t,className:"@xl:text-center"}):null,m?o(Ln,{label:"Ваш регион",placeholder:"Выберите регион",isSearch:!0,options:m.map((({name:e=""})=>({key:e,text:e}))),value:s,onChange:d}):null,u?o("div",{className:"text-center",children:o(Pi,{className:h("w-full @xl:w-auto"),href:u,target:"_blank",version:n?.version??"primary",data:Go(i,s?.key),children:n?.text?n.text:"Перейти"})}):null]})})})),Id={width:"103",height:"21"},Td={"bg-white":"color",transparent:"white"},Bd={"bg-white":"text-primary-main",transparent:"text-white"},Md=(e,t,n)=>o(se,{image:t?.src?t:{icon:t?.icon||"LogoIcon",iconVersion:Td[e]},className:Bd[e],width:n?.width,height:n?.height}),Pd={"bg-white":"text-primary-text",transparent:"text-white"},Vd=d((({className:e,href:t="/",logo:n,children:l,targetBlank:a,bgColor:i="bg-white",showTitle:r=!0,data:s})=>c("a",{className:h("inline-flex items-center font-sans no-underline",e),href:n?.href??t,target:a?"_blank":"_self","aria-label":n?.title??"Россельхозбанк",...we(s),children:[Md(i,n?.image,Id),r?l??o("div",{className:"ml-s",children:o(Ae,{font:"font-medium",color:Pd[i],size:"text-s",children:n?.title??"Россельхозбанк"})}):null]}))),Rd={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"},zd=d((({version:e,text:t,mobileText:n,...l})=>{const a=Pe()?n:t;return a?o(Ie,{className:h("py-s px-lg font-light whitespace-nowrap",Rd["transparent"===e?"transparent":"default"]),...l,children:a}):null})),Dd=d((({bgColor:e,logo:t,alwaysShowLogo:n,internetBankButton:l,version:a,backwardButton:r})=>{const s=R(),d="/"===s.pathname,{dataFooter:m,dataHeader:h,...u}=t??{},p=i((()=>{s.back()}),[s]);return c("div",{className:"flex items-center justify-between w-full",children:[n||d?o("div",{children:o(Vd,{className:"my-2xs",bgColor:e,logo:u,data:h,showTitle:!1})}):_d(p,r),o(zd,{version:a,...l})]})})),_d=(e,t)=>t?c("button",{className:"flex items-center text-l my-2xs",onClick:e,type:"button","aria-label":"Кнопка назад",children:[o(Z,{name:"ChevronLeftIcon",iconVersion:"black",width:"24",height:"24"}),t]}):null,$d={"bg-white":"primary",transparent:"transparent"},jd=Ut((({bgColor:e="bg-white",alwaysShowLogo:t=!1,version:n=$d[e],portal:l,logo:a={},...i})=>{const{backwardButton:r,logo:s={}}=i.options?.page?.common??{},{internetBankButton:c}=l||{},d=a.image?.icon||a.image?.src?a:s;return o(g,{tag:"header",defaultPadding:"",version:n,...i,children:o("div",{className:"container px-lg py-2xs box-border",children:o(Dd,{bgColor:e,logo:d,alwaysShowLogo:t,internetBankButton:c,version:n,backwardButton:r,...i})})})})),Ld=(e=!1)=>e?{}:{padding:"p-0"},Ad={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},Od=Ut((({className:e="",padding:t="p-0",gap:n="",isInnerPadding:l=!0,version:a="transparent",isTheme:i=!1,isCardBorder:r=!1,image:s,...c})=>{const d=R();return o(g,{className:h("relative flex flex-col",Ad[n],s?.src?"bg-right-bottom bg-no-repeat":"",e),...s?.src?{style:{backgroundImage:`url(${ne(d)(s?.src)})`}}:{},padding:t,version:a,isTheme:i,...c,children:V({...c,extraProps:{className:h("w-full",Hi(r)),...Ld(l)}})})}),{childrenTypes:[]}),Ed=Ut((e=>o(Od,{...e})),{childrenTypes:[]}),Fd=d((e=>{const{className:t,align:n,image:l,...a}=e,i=n?h("flex",Kr[n]):"";return o(g,{className:h(i,t),defaultPadding:"p-0",...a,children:o(se,{image:l})})})),Ud=["байт","Кб","Мб","Гб","Тб","Пб"],Wd=d((({icon:e,text:t,href:n,target:l,fileFormat:a,data:i,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:l,...we(i),children:[e,t?c(Ae,{size:"text-l",font:"font-light",children:[t," ",Hd(d,m),o(Ae,{color:"text-secondary-text",children:n&&`${d+s+m}`})]}):null]})})),Hd=(e,t)=>e||t?o("span",{children:", "}):"",Yd=(e,t)=>(n,l)=>{const a=K(e)("Attachment"===n?.docType?n?.attachment?.src:n?.href),i="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))} ${Ud[n]}`})(n?.attachment?.fileSize||0):n?.fileSize,r="Attachment"===n?.docType?qd(a):n?.fileFormat;return c("div",{role:"listitem",children:[o(Wd,{text:n?.text,target:n?.target,href:a,fileFormat:r,fileSize:i,icon:Kd(t),data:n?.data}),o(je,{__html:n?.__html})]},String(l))},Kd=e=>e?o(se,{className:"min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md",image:e,width:"24",height:"24"}):null,qd=e=>{if(!e)return"";const t=e.lastIndexOf("."),n=new RegExp(/\/(.*)/),l=-1!==t?e.substring(t+1):"";return l.includes("/")?l.replace(n,""):l},Xd=d((({href:e,__html:t,target:n,onClose:l})=>c(yi,{className:"my-6xl min-h-fit w-fit mx-auto",onClose:l,children:[t?o(je,{__html:t}):null,c("div",{className:"flex flex-row mx-auto w-fit gap-lg py-lg",children:[o(Pi,{href:e,target:n,version:"primary",ariaLabel:"Ссылка на согласие",onClick:l,children:"Я согласен"}),o(fi,{type:"button",version:"secondary",onClick:l,children:"Я не согласен"})]}),o("div",{children:"Нажимая кнопку «Я СОГЛАСЕН» ниже Вы принимаете данные условия. Распространение или раскрытие любой части данного Заключения или любой информации, или рекомендации в нем запрещено.»"})]}))),Gd=d((({text:e,href:t,target:n,__html:l,icon:a})=>{const{open:r}=fn(Xd),s=i((()=>r({__html:l,href:t,target:n})),[l,t,n]);return e?c("button",{className:"flex gap-s text-primary-text no-underline hover:text-primary-main",onClick:s,children:[Kd(a),o(Ae,{font:"font-light",children:e})]}):null})),Zd={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},Jd=Ut((({className:e="",title:t,description:n,align:l="text-center",documents:a,icon:i={icon:"DocIcon"},columnsMode:r="double",...s})=>{const d=R();return c(g,{className:h("space-y-lg",e),defaultPadding:"p-6xl",...s,children:[o(C,{title:t,description:n,align:l,headlineVersion:"M",as:"h2",isEmbedded:!0}),a?.length?o("div",{className:h("grid gap-xl","double"===r?"@md:grid-cols-2":"grid-cols-1",Zd[r]),role:"list",children:a.map(Qd(d,i))}):null]})})),Qd=(e,t)=>(n,l)=>{const a=n?.docType;return""===a?null:"reportSource"in n&&n?.reportSource?.__html?em(t)(n,l):Yd(e,t)(n,l)},em=e=>(t,n)=>{const l={text:t.text,target:t.target,__html:t.reportSource?.__html};return t.reportSource?.__html&&t.text?c("div",{role:"listitem",children:[o(Gd,{...l,icon:e,href:tm(t)?t?.href:t?.attachment?.src}),o(je,{__html:t?.__html})]},String(n)):null},tm=e=>"href"in e,nm=Ut((({className:e,padding:t,align:n="text-left",buttons:l=[],description:a,image:i,__html:r,headingType:s,qr:d,additionalDescription:m="",title:u="Мобильное приложение",version:p="primary",...x})=>{const f="secondary"===p?"p-m min-w-32":"min-w-24",b=i?.src?o(se,{className:"hidden lg:block",image:i}):null;return o(g,{className:h("min-h-80",e),padding:"p-0",version:p,...x,children:c(ze,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:o(N,{headingType:s,title:u,className:h("whitespace-pre-wrap",n)}),rightImage:b,buttons:Ke(l,{className:"flex-wrap"}),children:[a?o(Ae,{size:"text-xl","font-weight":"font-light",children:a}):null,c("div",{className:h("gap-m","flex flex-1 flex-col","flex-col items-start @xl:flex-row @xl:items-center"),children:[r?o(je,{__html:r,itemSize:"list-m"}):null,o(Ae,{size:"text-m","font-weight":"font-light",color:"text-secondary-text",children:m}),d?.src?o("div",{className:h("flex justify-center bg-white rounded-md @xl:-order-1",f),children:o(se,{className:"w-fit",image:d})}):null,i?.src?o(se,{className:"lg:hidden",image:i}):null]})]})})})),lm=(e,t)=>e&&"underlined"!==t?"primary":"secondary",am=(e=[],t={})=>e.filter((({content:e={}})=>zr(t,e))).length,im=(e,t)=>e===t;const rm=(e=>(t,n)=>t===n||Boolean(t&&n&&Object.keys(t).length===Object.keys(n).length&&Object.entries(t).every((([t,l])=>e(l,n[t])))))(function(...e){return(t,n)=>e.some((e=>e(t,n)))}(im,((e=im)=>(t,n)=>t===n||Boolean(t&&n&&t.length===n.length&&t.every(((t,l)=>e(t,n[l])))))())),sm=[],om={},cm={primary:"bg-white/30",secondary:"bg-main-divider"},dm={primary:{desktop:"text-white",mobile:"text-primary-text"},secondary:{desktop:"text-secondary-text",mobile:"text-secondary-text"}},mm=d((({count:e,version:t="secondary"})=>{const n=Pe(),l=n?"bg-main-divider":cm[t],a=dm[t][n?"mobile":"desktop"];return o("div",{className:h("w-6 h-6 rounded-full flex items-center justify-center",l),role:"status","aria-label":`Количество ${e} доступных программ и сервисов`,children:o(Ae,{size:"text-xs",color:a,children:e})})})),hm=({text:e,description:t,icon:n,isActive:l,type:a})=>{const i=(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"}))(l);return c("div",{className:h("cursor-pointer text-left border-b-0 flex gap-2xs"),"aria-label":e,"aria-labelledby":`${e}-label`,children:[n?o(se,{className:h("h-6 w-6 min-w-6 min-h-6",i.icon),image:{...n,iconVersion:n?.iconVersion??i.iconVersion},width:"24",height:"24",alt:e}):null,c("div",{className:"border-0",children:[o("div",{className:"animated"===a?i.text:i.oldText,children:e}),o("div",{className:"animated"===a?i.desc:i.oldDesc,children:t})]})]})},um={default:"px-xs",underlined:"px-m",animated:"px-m border border-gray cursor-pointer text-left border-b-0 mt-auto flex gap-2xs"},pm={default:"text-black sm:text-white",underlined:"text-primary-main border-b-2",animated:"text-white sm:text-white"},gm={default:"bg-white",underlined:"bg-white",animated:"p-1 ease-in duration-300 bg-white text-primary-text h-[70px] w-96"},xm={default:"bg-white sm:bg-primary-main",underlined:"bg-white",animated:"p-2 border-none bg-primary-main text-white h-20 w-96"},fm=d((({tag:e="div",item:t={},isActive:n=!1,type:l="default",onClick:a})=>{const i=e,{text:r,description:s,icon:d,count:m,tabName:u,...p}=t;return o(i,{className:h("h-12","block flex-1","cursor-pointer",um[l],n?xm[l]:gm[l]),"aria-label":"Список табов",onClick:a,...p,children:c("div",{className:h("h-full","flex justify-center items-center","text-center whitespace-nowrap",n?pm[l]:"text-secondary-text hover:text-primary-main"),role:"tab","aria-label":`Таб ${r}`,children:[hm({text:r,description:s,icon:d,isActive:n,type:l}),Number.isInteger(m)?o("div",{className:"ml-xs",role:"status","aria-label":`Количество программ и сервисов ${m}`,children:o(mm,{count:m,version:lm(n,l)})}):null]})})})),bm=d((e=>o(e?.item?.href?ym:vm,{...e}))),ym=d((e=>{const t=ye(),n=i((()=>{e.onClick&&e.onClick(e.item||{})}),[e.onClick,e.item]),{onClick:l,...a}=t({...e.item,onClick:n});return o(fm,{...e,tag:"a",item:a,onClick:l})})),vm=d((({item:e={},onClick:t,...n})=>{const l=i((()=>{t&&t(e)}),[t,e]);return o(fm,{item:e,onClick:l,...n})})),wm=(e,t,n)=>(l,a)=>o(bm,{isActive:l===e,onClick:t,type:n,item:l},String(a)),Nm=d((({className:e,tabsType:t="default",items:n=[],activeItem:l,onChange:a})=>o("div",{className:h("flex gap-x-2xs overflow-x-auto no-scrollbar",e),role:"tabpanel","aria-label":"Панель управления табами",children:n.map(wm(l,a,t))}))),km={categories:[],extraOptions:[],propertyType:[],stage:[]},Sm=Ut((({className:e,hotFilters:t,filtrationSchema:n={},resetButton:l,...a})=>{const[s,{blocksToRender:d},{field:m,reset:u,update:p}]=_r(km,{block:a.block,page:a.options?.page}),x=i(((e=km)=>p(e)),[]),f=(({hotFilters:e=sm,filtrationState:t=om,blocks:n=sm,onFiltrationStateChange:l})=>{const a=r((()=>Math.max(0,e.findIndex((e=>rm(e.filter,t))))),[e,t]),s=r((()=>e.map((t=>({text:t.text,count:am(n,t.filter),version:lm(t===e[a])})))),[e,n,a]),o=i((t=>{l(e[s.indexOf(t)].filter)}),[e,s]);return{activeItem:s[a],items:s,onChange:o}})({hotFilters:t,filtrationState:s,blocks:a.block?.blocks,onFiltrationStateChange:x});return c(g,{className:h("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...a,children:[o(Nm,{...f}),o(Tr,{filtrationSchema:n,resetButton:l,field:m,reset:u}),o(kr,{blocksToRender:d,...a})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>e?.filtrationSchema||{}}),Cm=!Boolean("object"==typeof globalThis.process&&globalThis.process&&globalThis.process.version),Im=d((({children:e})=>Cm?e:null)),Tm="/icons/MapMarkerClusterIcon.svg",Bm="/icons/MapMarkerClusterYellowIcon.svg";function Mm({yandexMaps:e,map:t,points:n,isLoad:l}){if(l||!n)return;if(t.geoObjects.removeAll(),!n.length)return;const a=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),i=Pm("offices",e,a);if(n.length&&n.every((e=>"type"in e))){const l=Pm("workplaces",e,a),r=Vm(n.filter((e=>"workplaces"===e.type)),"workplaces",e),s=Vm(n.filter((e=>"offices"===e.type)),"offices",e);i.add(s),l.add(r),t.geoObjects.add(l),t.geoObjects.add(i)}else{const l=Vm(n,"offices",e);i.add(l),t.geoObjects.add(i)}t.setBounds(e.util.bounds.fromPoints(n.map((e=>e.coords)))).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Pm=(e,t,n)=>new t.Clusterer({clusterIcons:[{href:"offices"===e?Tm:Bm,size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),Vm=(e,t,n)=>e.map((({coords:e,content:l})=>new n.Placemark(e,{balloonContentHeader:l?.header,balloonContentBody:l?.body,balloonContentFooter:l?.footer,hintContent:l?.hint},{iconLayout:"default#image",iconImageHref:"offices"===t?Tm:Bm,iconImageSize:[78,84],iconImageOffset:[-35,-50]}))),Rm={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",font:"text-center font-sans"},zm={...Rm,border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center"},Dm=(e,t,n)=>o("div",{className:`select-none cursor-pointer py-m w-12 bg-white ${Object.values(zm).join(" ")} ${n}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.current.geoObjects.add(t.geoObjects)}))},children:o(Z,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),_m=e=>globalThis[e];function $m(e,t,n=!0){const[i,r]=l(void 0);return a((()=>{let l=!0;return((e,t)=>{const n=document.getElementById(t);if(n){const t=_m(e);return t?Promise.resolve(t):new Promise((t=>{n.addEventListener("load",(()=>{t(_m(e))}))}))}return new Promise(((n,l)=>{const a=document.createElement("script");a.src=t,a.async=!0,a.id=t,a.addEventListener("load",(()=>{n(_m(e))})),a.addEventListener("error",(e=>{l(e)})),document.head.appendChild(a)}))})(e,t).then((e=>{l&&r(e)})).catch((e=>{console.error(`Failed to initialize external namespace: ${e}`)})),()=>{if(l=!1,n){const e=document.getElementById(t);e&&document.head.removeChild(e),r(void 0)}}}),[e,t,n]),i}const jm={...Rm,border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center"},Lm=d((({yandexMaps:e,direction:t="in"})=>{const n="in"===t?"PlusIcon":"MinusIcon";return o("div",{onClick:()=>{const n=e.current.getZoom(),l="in"===t?n+1:n-1;e.current.setZoom(l,{checkZoomRange:!0})},className:`${Object.values(jm).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:o(Z,{name:n,width:"20",height:"16"})})})),Am=[55.753995,37.614069],Om=d((({points:e,className:t="",zoom:n=5,isLoad:l,selectedAddress:i})=>{const r=s(null),d=s(null),m=$m("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${D.YANDEX_MAP_API_KEY||""}&lang=ru_RU`,!1);if(a((()=>{r.current?Mm({yandexMaps:m,map:r.current,points:e,isLoad:l}):m?.ready((()=>{r.current||(r.current=new m.Map(d.current,{center:Em(e),zoom:n,controls:[],suppressMapOpenBlock:!0})),Mm({yandexMaps:m,map:r.current,points:e,isLoad:l})})),r.current&&i&&m?.geocode(i).then((e=>{const t=e.geoObjects.get(0).geometry.getCoordinates();r.current.setCenter(t),r.current.setZoom(18)}))}),[m,e,n,l,i]),!m)return null;const u="z-10";return c("div",{ref:d,className:h("relative","w-full",t),children:[l?o(Ti,{}):null,c("div",{className:h("absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md",u),children:[o(Lm,{yandexMaps:r}),o(Lm,{yandexMaps:r,direction:"out"})]}),Dm(r,m,h("right-2 top-80",u))]})})),Em=e=>{const t=[Um(Fm(e,0)),Um(Fm(e,1))];return t.every((e=>e))?t:Am},Fm=(e,t)=>e.map((e=>e.coords?.[t])),Um=e=>e.length&&e.reduce(((e,t)=>e+t))/e.length,Wm={workingSaturday:!1,premiumService:!1,privateBanking:!1,remoteWorkplace:!1,serviceDisabledPeople:!1,sellingCoins:!1,buyingCoins:!1,bullionOperations:!1,preciousMetalsOperations:!1,transferringDataToBiometricSystem:!1},Hm={safeBoxCaseVolumes:"Аренда индивидуальных сейфовых ячеек",workingSaturday:"Открыты по субботам",terminalTypeAtms:"Банкоматы",terminalTypeTerm:"Терминалы",workAllTime:"Круглосуточно",billAcceptorEnable:"Прием наличных",premiumService:"Премиальное обслуживание",privateBanking:"Услуга Private banking",sellingCoins:"Продажа монет из драгоценных металлов",buyingCoins:"Покупка монет из драгоценных металлов",bullionOperations:"Операции со слитками",preciousMetalsOperations:"Операции с драгоценными металлами",transferringDataToBiometricSystem:"Передача фото и голоса в Единую биометрическую систему",locationDisabledPeople:"Для маломобильных",designDisabledPeople:"Для слабовидящих",remoteWorkplace:"Удаленное рабочее место",serviceDisabledPeople:"Для маломобильных граждан"},Ym={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)},Km="flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl",qm=d((({filters:e,field:{field:t,reset:n},onlyOffice:l,labels:a})=>{const i=l?5:6,r=(e||[]).map((e=>o(ta,{text:a[e],...t(e)},e))),[s,d]=i>0?[r.slice(0,i),r.slice(i)]:[r,[]],[m,{toggle:h}]=on(!1);return o("div",{children:e?.length?o("div",{children:c(Ei,{children:[c("div",{children:[o("div",{className:Km,children:s}),o(Fi,{className:Km,isUnfolded:m,children:d})]}),c("div",{className:"flex space-x-lg",children:[l?o(Oi,{label:m?"Меньше фильтров":"Больше фильтров",isUnfolded:m,embedded:!0,short:!0,onClick:h}):null,c(fi,{embedded:!0,onClick:n,children:[o(Li,{children:"Очистить фильтр"}),o(Z,{name:"CloseIcon",size:"small"})]})]})]})}):null})})),Xm=(e,t,n)=>{const l=lm("all"===t),a=lm("business"===t),i=(e,t,l)=>{const a=e.currentTarget===e.target&&"business"===t?r(l):l;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(fi,{"data-id":"all",onClick:t=>i(t,"all",e),version:l,children:"Для физических лиц"}),o(fi,{"data-id":"business",onClick:t=>i(t,"business",e),version:a,children:"Для юридических лиц"})]})},Gm=({__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(je,{__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(se,{image:e.image}):null,e?.text?o(Ae,{size:"text-m",font:"font-light",children:e.text}):null]},String(t))))}):null]}):null,Zm=(e,t)=>o("div",{className:"flex flex-col sm:flex-row gap-xs mb-2xl",children:c(N,{headingType:"h3",children:[o("span",{suppressHydrationWarning:!0,children:e}),t?o(Ae,{size:"text-h2",color:"text-secondary-text",children:o("span",{suppressHydrationWarning:!0,children:` (${t})`})}):null]})}),Jm=(e,t)=>{const n=Object.keys(t).filter((e=>t[e]));return e.filter((e=>n.every((t=>Ym[t](e)))))},Qm=()=>{},eh=()=>{},th=e=>"all"===e?"block":"hidden",nh=d((({className:e,data:t=[],isLoad:n,remoteWorkplaces:a=[],renderCard:i=eh,renderRemoteWorkplaceCard:s=eh,getBalloon:d=eh,getBalloonRemoteWorkplaces:m=eh,descriptionData:u,title:p})=>{const g=p?.includes("Офис"),[x,{field:f,reset:b}]=gn(Wm),{filteredItems:y,points:v,filteredRemoteWorkplaces:w,lengthItems:N}=(({data:e,remoteWorkplaces:t=[],filtrationState:n={},getBalloon:l=Qm,getBalloonRemoteWorkplaces:a=Qm})=>{const[i,s,o,c]=r((()=>{const i=Jm(e,n),r=Jm(t,n),s=[...i.map((e=>({type:"offices",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:l(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[i,s,r,i.length+r?.length]}),[e,t,n,l,a]);return{filteredItems:i,points:s,filteredRemoteWorkplaces:o,lengthItems:c}})({data:t,remoteWorkplaces:a,filtrationState:x,getBalloon:d,getBalloonRemoteWorkplaces:m}),[k,S]=l("all");return c("div",{className:h("space-y-1",e),children:[c("div",{className:"bg-white",children:[c("div",{className:"p-3xl pb-0",children:[Zm(p,N),u?Gm(u):null,g&&Xm(t,k,S),o("div",{className:h("pb-3xl",th(k)),children:o(qm,{filters:lh([...t,...a]),field:{field:f,reset:b},onlyOffice:g,labels:Hm})})]}),o("div",{className:"h-[600px]",children:o(Im,{children:o(Om,{points:v,isLoad:n,className:"h-full"})})})]}),c(Im,{children:[y.map(i),w.map(s)]})]})})),lh=e=>Object.keys(Wm).filter((t=>e.filter((e=>Ym[t](e))).length)),ah=e=>e?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:"",ih={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"}},rh=d((({className:e,children:t,color:n="gray"})=>c("div",{className:h("sm:p-s sm:border sm:border-green rounded-md flex items-center h-fit",ih[n].border,e),children:[o("div",{className:"block pr-m sm:pr-0 sm:hidden",children:o(se,{image:{icon:"SmallClockIcon"},width:"24",height:"24"})}),o(Ae,{size:"text-m",color:ih[n].text,children:t})]}))),sh=d((({value:e,subText:t,children:n,isPhone:l,...a})=>{const i=(Array.isArray(e)?e:e?.split(",")??[]).filter(Boolean);return[i.length,n,t].every((e=>!e))?null:oh({textItems:i,subText:t,children:n,isPhone:l,...a})})),oh=({label:e,labelSize:t="text-m",textItems:n,subColor:l,subText:a,className:i,children:r,isPhone:s=!1})=>c("div",{className:h("flex gap-2xs flex-col h-full max-w-[300px]",i),children:[e?o(Ae,{color:"text-secondary-text",font:"font-light",size:t,children:e}):null,r||ch(n,s),a?o(Ae,{color:l,size:"text-m",children:a}):null]}),ch=(e,t)=>e.filter(Boolean).map(((e,n)=>o(Ae,{size:"text-l",children:t?o("a",{href:`tel:${dh(e)}`,children:e.trim()}):e.trim()},String(n)))),dh=e=>e.replace(/\D/g,""),mh=d((({className:e,children:t})=>o("div",{className:h("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}))),hh=d((({children:e})=>{const[t,{toggle:n}]=on(!1);return c("div",{children:[o("div",{className:"hidden sm:block",children:e}),c(Ei,{className:"block sm:hidden",children:[o(Fi,{isUnfolded:t,children:e}),o(Oi,{className:"my-m mr-m border-b border-solid border-main-divider",label:t?"Скрыть":"Подробнее",isUnfolded:t,embedded:!0,onClick:n})]})]})})),uh=({location:e,address:t,billAcceptorType:n,terminalType:l,billAcceptorEnable:a,atmCode:i="",atmAccess:r="",workTime:s},d)=>{const m=[{label:"Устройство",value:ah(l)},{label:"Модуль приема наличных",value:a?"Да":"Нет"},{label:"Прием наличных пачкой",value:"банкомат принимает пачками"===n?"Да":"Нет"},{label:"Доступность",value:["внешняя установка","территория банка"].includes(r)?"Общедоступный":""},{label:"Регистрационный номер",value:i}];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(Ae,{size:"text-h4",children:ah(e)}),t?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(Z,{name:"GeolocationIcon",width:"24",height:"24"}),o(Ae,{size:"text-l",children:t})]}):null]}),o("div",{className:"whitespace-nowrap",children:o(rh,{color:"green",children:ah(s)})})]}),o(hh,{children:o(mh,{className:"flex-wrap",children:m?.map(((e,t)=>o(sh,{...e},String(t))))})})]},String(d))},ph=({address:e="",terminalType:t,atmCode:n=""})=>({header:`${ah(t)} №${n}`,body:e.toUpperCase()}),gh=[];const xh=async e=>{const t=await _t(e,{method:"GET"});return Array.isArray(t)?t:gh},fh={terminalTypeAtms:!0,terminalTypeTerm:!1,workAllTime:!1,billAcceptorEnable:!1,locationDisabledPeople:!1,designDisabledPeople:!1},bh={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)},yh=d((({descriptionData:e,className:t})=>{const n=zc(),l=n?.code??"000",{data:a,isLoad:i}=function(e){const{data:t,error:n}=qn(`${Xt}/atms?regionCode=${e}`,xh);return{data:t||gh,isLoad:!t&&!n}}(l);return o(nh,{className:t,filterItems:vh,data:a,isLoad:i,initFilterState:fh,renderCard:uh,getBalloon:ph,title:`Банкоматы филиала ${n?.name}`,descriptionData:e})})),vh=(e,t)=>{const n=Object.keys(t).filter((e=>t[e])),l=n.filter((e=>e.startsWith("terminalType"))),a=n.filter((e=>!l.includes(e)));return e.filter((e=>{const t=a.every((t=>bh[t](e))),n=!l.length||l.some((t=>bh[t](e)));return t&&n}))},wh=e=>{const t=kh(e);return o(sh,{label:"Режим работы",value:t,className:"max-w-none"})},Nh=({workTime:e="",lunchHour:t="",daysOff:n=""},l=!1)=>e?[`${l?"Суббота":"Будние дни"}: ${e}`,t?`перерыв: ${t}`:"",n?`не работает: ${n}`:""].filter(Boolean).join("; "):"",kh=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))),l=e.filter((e=>!e.status)).map((e=>e.short?.toLowerCase())).join(", ");return[Nh({workTime:t?.workTime,lunchHour:t?.lunchHour,daysOff:n?"":l}),Nh({workTime:n?.workTime,lunchHour:n?.lunchHour,daysOff:l},!0)].filter(Boolean)},Sh=[["workingMonday","Пн","Понедельник"],["workingTuesday","Вт","Вторник"],["workingWednesday","Ср","Среда"],["workingThursday","Чт","Четверг"],["workingFriday","Пт","Пятница"],["workingSaturday","Сб","Суббота"],["workingSunday","Вс","Воскресенье"]],Ch=e=>Sh.map((([t,n,l])=>({key:t,title:l,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??"")}}))),Ih=e=>{if(!e)return null;const t=Th(e);return c(mh,{className:"border-none",children:[o(sh,{label:"Для юридических лиц",labelSize:"text-l",children:o("div",{className:"flex gap-1",children:t.map(Bh)})}),o(sh,{label:"Режим работы",className:"max-w-none",children:o(Ae,{children:e})})]})},Th=e=>{const t=Sh.map((([,e])=>({short:e,status:!0}))),n=e.split("/")??[],l=n[n.length-1]?.toLowerCase();return l?.includes("выходной")?t.map((e=>({...e,status:!l?.includes(e.short.toLowerCase())}))):t},Bh=({short:e,status:t},n)=>o("div",{className:h("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(Ae,{size:"text-xs",children:e})},String(n)),Mh=({currency:e,buyExchangeRate:t,saleExchangeRate:n},l)=>c("div",{className:"flex gap-lg h-full",children:[e?.currency?o(sh,{label:"Валюта",value:e.currency}):null,t?o(sh,{label:"Купить",value:String(t)}):null,n?o(sh,{label:"Продать",value:String(n)}):null]},String(l)),Ph=(new Date).getDay(),Vh=e=>{const[t]=e?.slice(Ph-1)??[];if(!t)return null;const{lunchHour:n,status:l,workTime:a,hasLunch:i}=t;return l?c("div",{className:"flex gap-s items-start whitespace-nowrap",children:[a?o(rh,{color:"green",children:a}):null,n&&i?o(rh,{color:"yellow",children:`перерыв: ${n}`}):null]}):o(rh,{color:"red",children:"Выходной"})},Rh=({lunchHour:e,hasLunch:t=!1,status:n=!1})=>n?e&&t?`Перерыв ${e}`:e:"Не работает",zh=({title:e,status:t,workTime:n,lunchHour:l,hasLunch:a},i)=>o(sh,{label:e,value:t&&n?n:"",subText:Rh({lunchHour:l,hasLunch:a,status:t}),subColor:!t||a?"text-error":"text-green-dark"},String(i)),Dh=e=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p>`,_h=e=>`<p><b>Режим обслуживания физ. и юр. лиц:<br/></b> ${e}</p>`,$h=(e,t)=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${t}</p>`,jh=(e,t)=>{if(!e.workSchedule)return null;const n=Ch(e.workSchedule);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(Ae,{size:"text-h4",children:e.name}),e.address?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(Z,{name:"GeolocationIcon",width:"24",height:"24"}),o(Ae,{size:"text-l",children:e.address})]}):null]}),Vh(n)]}),o(hh,{children:Lh(e)})]},String(t))},Lh=({phone:e,fax:t,phoneBusiness:n,phoneNatural:l,phoneCallCentre:a,phoneCurrencyControl:i,workSchedule:r,exchangeRate:s})=>{const d=Ch(r),m=r?.businessScheduleVisibleTag?"Для физических лиц":"Для физических и юридических лиц";return c("div",{children:[c(mh,{className:"flex-wrap border-b border-solid border-main-divider",children:[o(sh,{label:"Факс",value:t,isPhone:!0}),o(sh,{label:"Телефон филиала",value:e,isPhone:!0}),o(sh,{label:"Для обращений юридических лиц",value:n,isPhone:!0}),o(sh,{label:"Обслуживание физических лиц",value:l,isPhone:!0}),o(sh,{label:"Для консультаций по валютному контролю",value:i,isPhone:!0}),o(sh,{label:"Контакт-центр",value:a,isPhone:!0})]}),r?.isMatchesPattern?o(mh,{children:o(sh,{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(zh)})})}):c(mh,{children:[o(sh,{label:m,labelSize:"text-l",children:o("div",{className:"flex gap-1",children:d?.map(Bh)})}),wh(d)]}),r?.businessScheduleVisibleTag?Ih(r?.businessScheduleDescription):null,s?.currencies?.length?o(mh,{className:"flex-wrap",children:s?.currencies?.map(Mh)}):null]})},Ah=({name:e="",address:t="",workSchedule:n})=>{const l=(a=e)?`${a?.charAt(0)?.toUpperCase()}${a?.slice(1)}`:"";var a;const i=`${t} ${(e=>{const t=Ch(e),n=e?kh(t):"",l=e?e.businessScheduleDescription:"";return e?e.businessScheduleVisibleTag?e.businessScheduleVisibleTag&&null===e.businessScheduleDescription?Dh(n):$h(n,l):_h(n):""})(n)}`;return{header:l,body:i}},Oh=({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(Ae,{size:"text-h4",children:"Удаленное рабочее место"}),e?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(Z,{name:"GeolocationIcon",width:"24",height:"24"}),o(Ae,{size:"text-l",children:e})]}):null]})}),o(hh,{children:Eh(t)})]},String(n)):null,Eh=e=>c("div",{children:[c(mh,{className:"flex",children:[o(sh,{label:"Операции для физических лиц",children:o(Ae,{children:"Оформление и обслуживание кредитов, счетов, вкладов"})}),o(sh,{label:"Операции для физических лиц",children:o(Ae,{children:"Оформление и обслуживание банковских карт"})}),o(sh,{label:"Операции для физических лиц",children:o(Ae,{children:"Инвестиционное и накопительное страхование"})}),o(sh,{label:"Операции для физических лиц",children:o(Ae,{children:"Безналичные операции в рублях, переводы без открытия счёта"})})]}),o("hr",{className:"text-main-divider pb-xl"}),o(sh,{label:"Режим работы",className:"max-w-none",children:o(Ae,{children:e})})]}),Fh=({address:e="",workScheduleDescription:t})=>({header:"Удаленное рабочее место",body:`${e} ${t}`}),Uh={branches:[],remoteWorkplaces:[]};const Wh=async e=>await _t(e,{method:"GET"})||Uh,Hh=d((({className:e})=>{const t=zc(),n=t?.code??"000",{data:l,isLoad:a}=function(e="000"){const{data:t,error:n}=qn(`${Xt}/branchesAndRemoteWorkplaces?regionCode=${encodeURIComponent(e)}`,Wh);return{data:t||Uh,isLoad:!t&&!n}}(n);return o(nh,{className:e,data:l?.branches,isLoad:a,remoteWorkplaces:l?.remoteWorkplaces,renderCard:jh,renderRemoteWorkplaceCard:Oh,getBalloon:Ah,getBalloonRemoteWorkplaces:Fh,title:`Офисы филиала ${t?.name}`})})),Yh=d((({data:e,className:t,...n})=>{const l=e?.dataType??"offices";return o(g,{version:"transparent",className:h(t),defaultPadding:"p-0",...n,children:"offices"===l?o(Hh,{}):o(yh,{descriptionData:e})})})),Kh=d((({className:e,title:t,description:n="Блок в разработке...",...l})=>c(g,{className:h("box-border",e),...l,children:[o(C,{className:"max-w-[600px]",title:t,description:n,headlineVersion:"L",align:"text-left",isEmbedded:!0}),o(x,{})]}))),qh=d((({className:e,padding:t,slides:n=[],...l})=>o(g,{className:h("overflow-hidden relative",e),padding:t,...l,children:o(wr,{gap:0,padding:0,children:n.map((e=>e.productBlock)).map(((e,t)=>o("div",{className:"box-border h-full",children:o(lt,{className:"px-5 h-full",headlineVersion:"L",...e,...l})},String(t))))})}))),Xh=d((({address:e,email:t,telephone:n,button:l,className:a="",__html:i,richVersion:r,icon:s,title:d,version:m="primary",...u})=>c(g,{className:h("box-border text-left space-y-s",a),version:m,...u,children:[c("div",{className:"w-full flex justify-between flex-row-reverse",children:[Ye(s)?o("div",{className:"w-10 h-7 sm:w-24 sm:h-16",children:o(se,{image:s})}):null,d?o(N,{headingType:"h3",as:"h3",title:d}):null]}),c("div",{className:"w-full space-y-m",children:[i?Gh({__html:i,richVersion:r}):null,Zh({label:"Адрес",data:e,iconName:"GeolocationIcon"}),Zh({label:"Телефон(факс)",data:n,iconName:"PhoneIcon"}),Zh({label:"E-mail",data:t,iconName:"MailIcon",dataColor:"text-primary-main"}),l?.text?Ke([l]):null]})]}))),Gh=e=>o("div",{className:"border-b border-main-divider pb-lg",children:o(je,{...e,itemSize:"list-s"})}),Zh=({label:e,data:t,iconName:n,dataColor:l=""})=>t?c("div",{className:"flex gap-s",children:[o(Z,{iconVersion:"black",name:n,width:"24",height:"24"}),c("div",{className:"flex flex-col gap-2xs",children:[o(Ae,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e}),o(Ae,{size:"text-xl",color:l,children:t})]})]}):null,Jh=d((e=>{const{__html:t,richVersion:n="",...l}=e;return o(g,{defaultPadding:"p-0",...l,children:o(je,{__html:t,richVersion:n})})})),Qh=(e=!1)=>e?"flex flex-wrap group-last:last:pb-0":"grid grid-cols-12 [&>*]:pb-m",eu=Ut((({className:e="",isExpanded:t,isFoldButtonOnTop:n=!0,foldButtonVersion:l="default",label:a,version:i,role:r,...s})=>{const d=Pe(),[m,{toggle:u}]=on(t),p=o(Fi,{className:h("gap-lg",Qh(d)),isUnfolded:m,children:V({...s,extraProps:{className:"w-full",padding:"p-0"}})}),x="accordion"===l,f=o(Oi,{className:h(x?"text-h6 my-lg":"text-h4"),label:a,isUnfolded:m,embedded:x,onClick:u});return o(g,{className:h("w-full border-0 border-b border-solid border-main-divider last:border-b-0",e),defaultPadding:"p-0",tag:"div",version:"transparent",role:r,...s,children:c(Ei,{children:[n?f:p,n?p:f]})})}),{childrenTypes:{exclude:["RollupItem"]}}),tu=d((({name:e,text:t,value:n,checked:l,onChange:a,className:i})=>o("div",{className:i,children:c("label",{className:"font-sans flex gap-s items-center relative cursor-pointer",children:[o("input",{className:h(Nn.split(" ").filter((e=>"rounded"!==e)),Ql,"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:l,onChange:e=>a?.(e.target.value),role:"radio"}),t?o(Ae,{color:"text-primary-text",children:t}):null]})}))),nu=d((({className:e=""})=>{const[t,n]=l("option2"),a=i((e=>n(e)),[]);return c("div",{className:h("order-4",e),role:"radiogroup",children:[o(tu,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===t,onChange:a}),o(tu,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===t,onChange:a})]})})),lu=d((({data:e,fieldLabel:t,fieldValue:n,selected:l,placeholder:a="",setSelected:i,label:r})=>{const s=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),c=s.find((e=>e.key===l));return o(Dn,{options:s,label:r,placeholder:a||l,onChange:e=>i(e.key),value:c})})),au=d((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:l=[],selectedBranch:a,onSelectedBranch:i})=>c("div",{className:"flex flex-col @xl:flex-row gap-m order-1",children:[o("div",{className:"flex-1 min-w-0",children:o(lu,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),o("div",{className:"flex-1 min-w-0",children:o(lu,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:i,label:"Отделение",placeholder:"Выберите отделение"})})]}))),iu=["От 1 дня","До 365 дней"],ru=d((({days:e,setDays:t})=>c("div",{className:"order-1",children:[o(Ae,{size:"text-m",font:"font-light",children:"Срок аренды"}),o(ol,{min:1,max:365,value:e,items:iu,onChange:t})]}))),su=d((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:l=[],selectedBoxSize:a,onSelectedBoxSize:i})=>c("div",{className:"flex flex-col @xl:flex-row gap-m order-1",children:[o("div",{className:"flex-1 min-w-0",children:o(lu,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),o("div",{className:"flex-1 min-w-0",children:o(lu,{data:l,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:i,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),ou=d((({regions:e,selectedRegion:t,branches:n,selectedBranch:l,days:a,selectedCaseVolume:i,selectedBoxSize:r,safeBoxCases:s,caseVolumes:d,onChange:m,onClick:h})=>c("div",{className:"contents @xl:block flex-1 space-y-xl",children:[o(au,{regions:e,selectedRegion:t,onSelectedRegion:e=>m({selectedRegion:e}),branches:n,selectedBranch:l,onSelectedBranch:cu(m)}),o(ru,{days:a,setDays:e=>m({days:e})}),o(su,{caseVolumes:d,selectedCaseVolume:i,onSelectedCaseVolume:du(m),safeBoxCases:s,selectedBoxSize:r,onSelectedBoxSize:e=>m({selectedBoxSize:e})}),o("div",{className:"order-4",children:o(Ae,{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(nu,{}),o(fi,{className:"order-6",version:"primary",onClick:h,children:"Офисы на карте"})]})]}))),cu=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},du=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},mu=d((({days:e,tariffs:t=[]})=>{const n=uu(e,t),l="На рисунке изображена пачка листов\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:[hu("Аренда за",e),hu("Цена",n+" ₽")]}),o("div",{className:"@xl:hidden order-3 mb-xs",children:o(k,{size:"text-s",font:"font-light",color:"text-secondary-text",children:l})}),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(Z,{className:"@xl:h-60",name:"PackA4Icon"}),o("div",{className:"hidden @xl:inline opacity-80 whitespace-pre-line",children:o(k,{size:"text-s",font:"font-light",color:"text-white",children:l})})]})]})})),hu=(e,t)=>c("div",{className:"flex justify-between items-center gap-y-xs @xl:flex-col @xl:items-start",children:[o(Ae,{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})]}),uu=(e,t)=>{const n=pu(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},pu=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},gu=(e,t)=>e.find((e=>e.branchCode===t)),xu=d((e=>{const{regions:t,data:n,branches:l,onChange:i,onClick:r}=e;a((()=>{i({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,i]);const s=gu(l,n.selectedBranch),d=fu(s?.safeBoxCaseVolumes),m=bu(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,h=yu(m,n.selectedBoxSize);return c("div",{className:"flex flex-col @4xl:flex-row gap-4xl align-top",children:[o(ou,{...n,regions:t,onClick:r,branches:l,caseVolumes:d,safeBoxCases:m,onChange:i}),o(mu,{days:n.days,tariffs:h})]})})),fu=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],bu=(e,t)=>e?.find((e=>e.volume===t)),yu=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,vu=`${Xt}/safeboxes`,wu=[];const Nu=async e=>await _t(e,{method:"GET"})||wu,ku=d((({title:e,footnote:t,className:n="",...a})=>{const[r,s]=l(!1),d=i((()=>s((e=>!e))),[]),[m,h]=l({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),u=Va(),p=Su(m.selectedRegion,u),x=function(e){const{data:t}=qn(e?`${vu}?regionCode=${e}`:null,Nu);return t||wu}(p),f=i((e=>h((t=>({...t,...e})))),[h]),b=(y=gu(x,m.selectedBranch)||x,Array.isArray(y)?y.map((e=>({coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)].filter(Boolean),content:void 0}))).filter((e=>e.coords&&2===e.coords.length)):y?.gpsLatitude&&y?.gpsLongitude?[{coords:[y.gpsLatitude,y.gpsLongitude]}]:[]);var y;return c(g,{className:n,defaultPadding:"",...a,children:[c("div",{className:"p-4xl space-y-xl",children:[e?o(N,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-s text-center"}):null,o(xu,{regions:u,branches:x,data:{...m,selectedRegion:p},onClick:d,onChange:f}),t?o(k,{size:"text-s",font:"font-light",children:t}):null]}),b.length&&r?o(Om,{points:b,className:"h-[640px]"}):null]})})),Su=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Cu={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"},Iu=(e,t,n)=>(l,a)=>{const{button:i}=l;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:Tu(e,n)(l,a)}),c("div",{className:h("flex flex-col justify-center h-fit w-full",{"min-h-6xl":e}),children:[Bu(l),i?.text?o(Ie,{className:"box-border py-s w-full mt-lg",version:t,...i,children:i?.text}):null]})]})},String(a))},Tu=(e,t)=>(n,l)=>{const a="secondary"===t?"white":"color",i=Boolean(n?.icon?.src),r=Mu(e,i),s=i?"transparent"===t:t;return o(g,{className:h("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:Pu({step:n,iconVersion:a,i:l,stepVersion:t})})})},Bu=e=>c("div",{children:[e?.label?o(k,{size:"text-l",align:"text-left",children:e.label}):null,e?.description?o("div",{className:h("text-s font-light text-left",Cu.description),children:e.description}):null,o(je,{__html:e.__html})]}),Mu=(e,t)=>e&&t?"h-14 w-14":"h-11 w-11",Pu=({step:e,iconVersion:t,i:n,stepVersion:l})=>{return Ye(e?.icon)?o(se,{image:{...e.icon,iconVersion:e.icon?.iconVersion||t},imageClassName:"max-w-full max-h-full",width:"24",height:"24"}):o("span",{className:h("text-h4","transparent"===l?Cu.iconText:(a=l,"secondary"===a?"group-data-primary:text-white":"text-secondary-text")),children:n+1});var a},Vu=d((({className:e="",title:t,description:n,steps:l=[],buttons:a,stepVersion:i="gray",version:r="primary",...s})=>{const d=l.length>3;return c(g,{className:h("box-border flex flex-col gap-xl",e),defaultPadding:"p-6xl",version:r,...s,children:[o(C,{title:t,description:n,headlineVersion:"M",isEmbedded:!0,align:"text-left"}),l?.length?o("div",{className:"flex flex-col gap-6xl justify-between box-border",children:l.map(Iu(d,r,i))}):null,Ke(a,{isVertical:!0})]})})),Ru=d((({isActive:e,item:t,onClick:n})=>c("div",{className:h(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(Z,{className:"w-6 h-6",name:t?.icon?.icon,iconVersion:e?"color":"black"}),t?.title||""]}))),zu=d((({className:e,head:t,children:n,onClose:l,onClick:a})=>c("div",{onClick:a,className:h("relative 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(bi,{className:"absolute top-1.5 right-0",onClose:l}),o("div",{className:"container",children:t})]}),o("div",{className:"container pb-6xl",children:n})]})));function Du(e,t,n){a((()=>e.subscribe(t,(e=>{const t=e?.type;if(t&&"string"==typeof t){const l=n[t];l&&l(e)}}))),[e,t,...Object.values(n)])}const _u=()=>{const[e,{push:t,pop:n,clear:a}]=function(e=[]){const[t,n]=l(e),a=i((e=>n((t=>[...t,e]))),[]),r=i((()=>n((e=>e.slice(0,-1)))),[]),s=i((e=>n((t=>t.filter((t=>t!==e))))),[]),o=i((()=>n([])),[]);return[t,{setList:n,push:a,pop:r,remove:s,clear:o}]}();return Du(fe.observable,"dialog",{open:t,close:n,closeAll:a}),[e,{close:n,closeAll:a}]},$u=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:n,s1Matches:l,s2Matches:a}=function(e,t){const n=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),l=Array.from({length:e.length}),a=Array.from({length:t.length});let i=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++)l[r]||a[n]||e[r]!==t[n]||(i++,l[r]=!0,a[n]=!0)}return{m:i,s1Matches:l,s2Matches:a}}(e,t);if(0===n)return 0;const i=function(e,t,{s1Matches:n,s2Matches:l}){let a=0;for(let i=0,r=0;i<e.length;i++){if(!n[i])continue;let s=r;for(;s<t.length;s++)if(l[s]){r=s+1;break}e[i]!==t[s]&&a++}return a}(e,t,{s1Matches:l,s2Matches:a}),r=(n/e.length+n/t.length+(n-i/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 ju=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(Ae,{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(Lu,{...e},String(t))))})]}):null,Lu=d((({icon:e,...t})=>{const n=ye(),{text:l,target:a,href:i,onClick:r}=n(t);return c("div",{className:"flex gap-s items-center",children:[e?o(se,{image:e}):null,l?o("a",{className:"hover:text-primary-hover",href:i,target:a,onClick:r,children:o(Ae,{size:"text-l",font:"font-light",color:"text-primary-text",children:l})}):null]})})),Au=(e,t)=>n=>n.name?o(Zo,{href:`/branches/${n.slug}`,className:"mb-xs sm:mb-2xs hover:text-primary-hover",onClick:()=>t?.(n),data:Go(e,n.name),children:o(Ae,{size:"text-l",font:"font-light",children:n.name})},String(n.id)):null,Ou=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:h(Nn,"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"})]}))),Eu=d((({defaultLocation:e})=>{const t=zc(e),n=ye(),{href:l}=n({href:`/branches/${t.slug}`});return t?o("div",{className:"mb-s",children:c(k,{size:"text-l",color:"text-primary-text",children:["Сейчас выбран:",o(Zo,{href:l,className:"inline mx-2xs text-primary-main",children:t.name})]})}):null})),Fu=d((({foreignOffices:e,branches:t,onClose:n})=>{const a=Dc(t?.default),[s,d]=l(""),m=Va(),h=r((()=>Wu(m).sort(((e,t)=>e.name.localeCompare(t.name)))),[m]),u=r((()=>((e,t)=>{const n=new Map;for(const l of e){const e=t(l),a=n.get(e)||[];n.set(e,[...a,l])}return n})(h,Uu)),[h]),p=i((e=>{a.location=e,n?.()}),[a,n]);return c(yi,{className:"pb-20",head:c("div",{children:[o(Ae,{size:"text-h4",color:"text-primary-text",children:"Выберите филиал"}),o(Eu,{defaultLocation:t?.default}),o(Ou,{onSearch:d,searchTerm:s})]}),onClose:n,children:[s&&s.length>=3?o("div",{children:h.filter((({name:e})=>e&&$u(e.toLowerCase())(s.toLowerCase())>=.8)).map(Au(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,x=t?.dataSelect,([e,t])=>c("div",{className:"break-inside-avoid mb-2xl w-56",children:[o("div",{className:"mb-s",children:o(Ae,{size:"text-h6",children:e})}),t.map(Au(x,g))]},e)))}),ju(e)]});var g,x})),Uu=e=>e.name?.charAt(0)??"",Wu=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()??""}))),Hu=d((({menuRef:e,menuItem:t,locationDialogProps:n,onClose:l})=>{const i=fn(Fu,n),{name:r}=zc(),s=e?.current?.getBoundingClientRect(),c=te(ee.SITE_URL);return a((()=>{globalThis.frames["burger-menu-iframe"].postMessage({type:"currentLocation",data:r},"*")}),[r]),a((()=>{const e=e=>{if("location"===e.data.type&&i.open({}),"reload"===e.data.type&&l?.(),"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)}}),[l]),o(zu,{head:o("div",{className:"flex items-center justify-center px-xl",children:o(N,{as:"h4",title:t?.title,className:"font-medium"})}),onClick:e=>e.stopPropagation(),onClose:l,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})})})})),Yu="burgerMenuDialog",Ku=({menuRef:e,centralMenuItem:t,locationDialogProps:n,onClose:l=wn})=>{const{open:a}=fn(Hu),[r]=_u(),s=((e,t)=>Boolean(t.find((t=>t.id===e),e)))(Yu,r),o=i((()=>a({menuRef:e,locationDialogProps:n,menuItem:t,onClose:l},{id:Yu})),[e,n,t,l]);return[s,{toggle:s?l:o}]},qu=[],Xu=Ut((({sticky:e,...t})=>{const{menuItems:n=qu}=e??{},a=n.find((e=>"Меню"===e.title)),r=n.filter((e=>"Меню"!==e.title)),d=Math.floor(r.length/2),m=r.slice(0,d),h=r.slice(d),[u,p]=l(-1),[x,f]=l(""),{closeAll:b}=be(),y=i((()=>{p(-1),f(""),b()}),[b]),v=yn(y),w=s(null),[k,{toggle:S}]=Ku({menuRef:w,centralMenuItem:a,locationDialogProps:t.header,onClose:y}),C=(({menuRef:e,dialogRef:t,leftItems:n,rightItems:l,onClose:a})=>{const{open:r,close:s}=be(),c=i((()=>{const e=document.getElementsByTagName("iframe")["iframe-dialog"];e.style.height=`${e?.contentWindow?.document.body.offsetHeight}px`}),[]);return i(((i,d)=>{const m="left"===d?n:l,h=e?.current?.getBoundingClientRect();r({id:"left"===d?n[i].title:l[i].title,dialog:o(zu,{className:"mt-[20%] border-t border-current",head:o("div",{className:"flex items-center justify-center px-xl",children:o(N,{as:"h4",title:m[i].description||m[i].title})}),onClick:e=>e.stopPropagation(),onClose:()=>{s(),a?.()},children:o("div",{className:"bg-white pb-20 pt-1 text-l",ref:t,children:o("iframe",{id:"iframe-dialog",src:m[i]?.src,width:h?.width??0,onLoad:c})})})})}),[c,n,l,a])})({menuRef:w,dialogRef:v,leftItems:m,rightItems:h,onClose:y}),I=i((e=>{e.stopPropagation(),y(),S()}),[y,S]),T=i(((e,t)=>{f(t),p(e),b(),C(e,t)}),[b,C]);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(Gu(T,"left",{activeIndex:u,currentItemPosition:x})),o(Ru,{item:a,isActive:k,onClick:e=>I(e)}),h.map(Gu(T,"right",{activeIndex:u,currentItemPosition:x}))]})})})),Gu=(e,t,n)=>(l,a,i)=>o(Ru,{item:l,isActive:i[n.activeIndex]?.title===l?.title&&n.currentItemPosition===t,onClick:r=>{i[n.activeIndex]?.title===l?.title&&n.currentItemPosition===t||r.stopPropagation(),e(a,t)}},l.title||String(a)),Zu="hidden sm:flex absolute z-40",Ju={default:{item:"flex-1",gap:0,buttonTop:"top-0"},animated:{item:"flex",gap:8,buttonTop:"top-5"},underlined:{item:"",gap:0,buttonTop:"top-0"}},Qu=d((({className:e,items:t=[],activeItem:n,onChange:l,tabsType:i="default"})=>{const[r,s]=dr({itemCount:t?.length||0});return a((()=>ep(r.current,t,n)),[]),c("div",{className:h("relative overflow-x-auto no-scrollbar",e),children:[o(Zi,{containerRef:r,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,itemClassName:Ju[i].item,gap:Ju[i].gap,children:t.map(wm(n,l,i))}),s.canScrollLeft?o(gr,{className:h("left-6",Zu,Ju[i].buttonTop),onClick:s.scrollLeft}):null,s.canScrollRight?o(xr,{className:h("right-6",Zu,Ju[i].buttonTop),onClick:s.scrollRight}):null]})})),ep=(e,t,n)=>{const l=t.findIndex((e=>e===n));e&&l>0&&e.scrollTo({left:e?.children[l]?.offsetLeft,behavior:"smooth"})},tp={default:{wrapper:"",component:""},animated:{wrapper:"border-b-8 border-primary-main bg-white",component:"m-auto"},underlined:{wrapper:"flex",component:"m-auto"}},np=({className:e="",tabsType:t="animated",...n})=>t?o("div",{className:h(tp[t].wrapper,e),children:o(Qu,{className:tp[t].component,tabsType:t,...n})}):null,lp=Ut((({className:e="",tabs:t=[],block:n,tabsType:r,showCounter:s=!1,isSticky:d=!1,...m})=>{const u=ap(n??{}),p=R(),x=t.every((e=>"link"===e?.type)),f=s?t.map((e=>({...e,count:"group"===e?.type?n?.slots?.[e?.tabName??""]?.length??0:0}))):t,{isReady:b}=p,[y,v]=l(sp(f,((e="")=>{const t=globalThis?.location?.href;return t?new URL(t).searchParams.get(e):null})(u))),w=f[y],N=f.findIndex((e=>Boolean(e.selected)));a((()=>{const e=p.query[u]?f.findIndex(((e,t)=>"group"===e.type&&(e?.tabName??String(t))===p.query[u])):N;v(-1===e?0:e)}),[b,N,u]);const k=rp(f[y],y),S=i((e=>{const t=f.indexOf(e),n=f[t];v(t),"group"===n.type&&((e,t)=>{const n=new URLSearchParams(p.query);e.text?n.set(u,e?.tabName??String(t)):n.delete(u),p.replace(`${p.pathname}?${n}`,"",{scroll:!1})})(e,t)}),[f]);return c(g,{className:h({"sticky top-1 z-20":d&&x},e),defaultPadding:"p-0",block:n,...m,children:[np({className:h({"pb-1":n?.slots&&"default"===r,"sticky top-1 z-20":d&&!x}),items:ip(t,f),activeItem:w,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])=>P(t,{...m?.options,slotName:k,parent:n,extraProps:{className:e===k?"":"hidden"}})))})]})}),{slots:({tabs:e})=>e?.map(rp)?.filter(Boolean)||[]}),ap=({__id:e,anchor:t})=>t??e??"tabs",ip=(e,t)=>t?.length?t:e,rp=(e,t)=>"group"===e?.type?e?.tabName||`Слот №${t+1}`:"",sp=(e,t)=>t?Number(t):e.reduce(((e,t,n)=>t.selected?n:e),0),op={comparison:"flex gap-m duration-1000",tariff:"flex gap-5xl flex-grow duration-1000"},cp=d((({children:e,activeIndex:t,columnWidth:n,version:l="comparison"})=>o("div",{className:"flex flex-1 overflow-hidden",children:o("div",{className:op[l],style:{transform:`translateX(-${t*n}px)`},children:e})}))),dp=d((({className:e="",isOpen:t,onClick:n})=>o(Oi,{className:e,label:t?"Скрыть":"Показать",isUnfolded:t,version:"secondary",short:!0,onClick:n}))),mp={Buttons:({buttons:e})=>Ke(e,{buttonClassName:"basis-0"}),Img:({image:e})=>e?.src?o(se,{image:e}):null,RichText:({__html:e,isDotted:t=!0})=>o("div",{className:"flex flex-col justify-between items-start text-h6",children:o(je,{__html:e,isDotted:t,itemSize:"list-m"})}),LabelDescription:({label:e,description:t})=>c("div",{className:"space-y-2xs",children:[e?o("div",{children:o(Ae,{size:"text-h6",children:e})}):null,t?o("div",{className:"lg:text-l font-light text-xs",children:o(Ae,{color:"text-secondary-text",children:t})}):null]}),Table:({isVisible:e,displayTable:t,tableSource:n,pdfUrl:l,isOpen:a})=>e?o(dp,{className:"w-fit",isOpen:a,onClick:()=>{t({tableSource:n,pdfUrl:l})}}):null},hp=d((({cell:e,fieldIdx:t,rowIdx:n,cellIdx:i,setTableInner:r,tableInner:s,openTableInnerIdx:o,setOpenTableInnerIdx:c})=>{const[d,m]=l(!0);a((()=>{i===o&&s||m(!0)}),[s,o]);return up({cell:e,cellProps:{rowIdx:n,cellIdx:i,fieldIdx:t,displayTable:e=>{m(!1),c(i),r(e)},isVisible:d}})})),up=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:n,...l}=e;if(!n||!(n in mp))return null;return o(mp[n],{...t,...l})},pp=d((({cells:e,rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:i,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(hp,{cell:e,fieldIdx:s,rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r},String(s)))):null}))),gp=(e,t)=>140*((e=[])=>e.reduce(((e,t)=>e+t),0))(e.slice(0,t).map((e=>e?.cols?.length??1))),xp=(e,t)=>e?.length>0?o("div",{className:h("flex",{"text-secondary-text":0===t}),children:e.map(((e,t)=>o("div",{className:"w-20 mx-lg",children:o(Ae,{size:"text-h6",font:"font-light",children:e})},String(t))))}):null,fp=d((({rows:e})=>{return o(Zi,{visibleItemCount:0,snapAlign:"snap-start",children:o("div",{children:e?.map((t=0,(e,n)=>{if(!e?.length)return null;const[l,...a]=e,i=h("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:[l?.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(Ae,{size:"text-xl",font:"font-light",children:l.data})}):null,o("div",{className:"flex flex-grow overflow-hidden",children:o("div",{className:i,style:{transform:`translateX(-${gp(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(Ae,{size:"text-xl",children:e.data}):null,e?.cols?xp(e.cols,t):null]},`row${n}`)))})})]},String(n))}))})});var t})),bp=d((({activeTabIndex:e,items:t})=>o("div",{children:t.map(((t,n)=>{const l=`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(Ae,{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(fp,{rows:t.rowsData})})})]},l)}))}))),yp=(e=!1)=>""+(e?"text-white":"text-secondary-text"),vp=d((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:l})=>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:h("rounded-md px-4 py-3 cursor-pointer",{"bg-primary-main":t===n}),onClick:()=>l(t),children:o(Ae,{size:"text-xl",font:"font-light",color:yp(t===n),children:e||t+1})},e)))}):null,t?o(Ie,{className:"text-primary-main",href:t,version:"link",target:"_blank",appendLeft:o(Z,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-3xs",width:"20",height:"20"}),text:"Скачать в PDF"}):null]}))),wp=Ut((({tableSource:e,pdfUrl:t,onClick:n})=>{const a=e?.tableData,[r,s]=l(0),d=i((e=>s(e)),[]),m=a?.[r]?.items??[],h=a?.map((e=>e.currency??""));return c("div",a?{className:"bg-white z-10",children:[o(vp,{currencies:h,activeTabIndex:r,setActiveTabIndex:d,linkToPDF:t}),o(bp,{activeTabIndex:r,items:m}),o(dp,{className:"mt-xl",onClick:n,isOpen:!0})]}:{className:"my-lg space-y-m text-center",children:[o(Ae,{size:"text-h6",children:"Данных нет"}),o(dp,{onClick:n,isOpen:!0})]})})),Np=d((({children:e,tableInner:t,onHideContentClick:n})=>c("div",{className:"self-start flex flex-col",role:"row",children:[o("div",{className:h("@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(wp,{...t,onClick:n})}):null]}))),kp=d((({row:{header:e,data:t},activeIndex:n,rowIdx:a,...r})=>{const[s,d]=l(void 0),m=i((e=>d(e)),[]),[u,p]=l(void 0),g=i((e=>p(e)),[]);return c(Np,{onHideContentClick:()=>d(void 0),tableInner:s,...r,children:[o("div",{className:h("text-s","w-80 flex-shrink-0"),children:c("div",{className:"flex gap-m items-center",role:"cell",children:[e?.icon?o(se,{className:"hidden @4xl:block max-w-6 shrink-0",image:e.icon,width:"24",height:"24"}):null,e?.title?o(Ae,{size:"text-m",font:"font-light",color:"text-primary-text",children:e?.title}):null]})}),t?.length?o(cp,{activeIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>o(pp,{cells:e,rowIdx:a,cellIdx:t,setTableInner:m,tableInner:s,openTableInnerIdx:u,setOpenTableInnerIdx:g,...r},String(t))))}):null]})})),Sp=({className:e,btnClass:t,canDec:n,canInc:l,dec:a,inc:i})=>n||l?c("div",{children:[n?o(gr,{className:h("absolute z-40",t[0],e),onClick:a}):null,l?o(xr,{className:h("absolute z-40",t[1],e),onClick:i}):null]}):null,Cp=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,Sp({...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]})})),Ip=d((({className:e="",title:t,description:n,rowHeaders:a,tariffsColumns:r,hiddenRowsNum:s=0,...d})=>{const m=r?.map((({data:e})=>e))||[],u=a?.map(((e,t)=>({header:e,data:m.map((e=>e?.[t]||[]))}))),p=m.length,[x,f]=((e,t=0)=>{const{itemCount:n,visibleItemCount:a}=e,[r,s]=l(t),o=i((()=>s((e=>Math.min(e+1,n-1)))),[n]),c=i((()=>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}),b=(u||[]).map(((e,t)=>o(kp,{row:e,activeIndex:x,rowIdx:t,...d},String(t)))),[y,v]=s>0?[b.slice(0,-s),b.slice(-s)]:[b,[]],[w,{toggle:N}]=on(!1);return c(g,{className:h("relative space-y-6xl @4xl:space-y-xl",e),defaultPadding:"p-6xl",...d,children:[o(C,{title:t,description:n,headlineVersion:"M",isEmbedded:!0,align:"text-center"}),o("div",{className:"space-y-m overflow-hidden",children:s>0?c(Ei,{children:[c(Cp,{controls:f,children:[y,o(Fi,{isUnfolded:w,children:v})]}),o(Oi,{className:"text-h4",isUnfolded:w,onClick:N})]}):o(Cp,{controls:f,children:b})})]})})),Tp=d((({className:e="",title:t,description:n,iconVersion:l,__html:a,richVersion:i,...r})=>c(g,{className:h("flex gap-s sm:gap-m group-data-secondary:bg-primary-main/10",e),...r,children:["small"===l?Bp():null,c("div",{className:"flex flex-col w-fit gap-2xs sm:gap-xs",children:[t?o(Ae,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,n?Mp(n):null,a?o(je,{richVersion:i,__html:a}):null]})]}))),Bp=()=>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"}),Mp=e=>o(k,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),Pp=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(Ae,{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(Ae,{size:"text-h2",children:n})}):null]}))),Vp=d((e=>{const{prefix:t,unit:n,suffix:l,...a}=e;return o(g,{defaultPadding:"p-0",...a,children:o(Pp,{prefix:t,unit:n,suffix:l})})})),Rp={AdTile:Ht,ApplicationForm:_i,BankAccountFiltration:Lr,BenefitsBlock:Ur,BonusBenefitsBlock:Yr,ButtonsBlock:qr,CalculatorBonus:cs,CalculatorBusinessDeposit:Is,CalculatorCredit:Es,CalculatorDeposit:io,CalculatorRefinancing:po,CardTransfer:Vo,Carousel:Ao,CarouselCard:Uo,CarouselCatalogCard:Ho,CarouselLinks:qo,CarouselRecommendationCard:nc,CarouselTariffsCard:rc,DepositFiltration:mc,Depository:Tc,ErrorBlock:Mc,ExchangeRateTile:od,Footer:Sd,GrantSupport:Cd,Header:jd,Headline:C,HorizontalLayout:Ed,ImgBlock:Fd,LinkDocs:Jd,MobileAppTile:nm,MortgageFiltration:Sm,OfficesAtmsMap:Yh,Placeholder:Kh,ProductBlock:Wt,ProductGallery:qh,RepresentativeOfficeInfo:Xh,RichTextBlock:Jh,RollupItem:eu,SafeDepositRental:ku,StepsBlock:Vu,StickyBottomMenu:Xu,TabsLayout:lp,TariffsTable:Ip,TextBlock:Tp,UnitBlock:Vp,VerticalLayout:Od},zp=pe((()=>{a((()=>{an()}),[]);const e=sn();bn(globalThis,"click",(e=>t=>{const n=t.target?.closest("[data-aspects]");try{const l=JSON.parse(n?.dataset?.aspects??"[]");tn({aspectsAttributes:l,aspects:e,ev:t})}catch(e){}e.forwardQuery?.(t)})(e))}));const Dp="cookie",_p=d((({__html:e})=>{const[t,{setTrue:n,setFalse:l}]=on();!function(e,t,n=300){a((()=>{const t=globalThis.setTimeout(e,n);return()=>{globalThis.clearTimeout(t)}}),t)}((()=>{globalThis.localStorage?.getItem(Dp)||n()}),[],3e3);const r=i((()=>{globalThis.localStorage?.setItem(Dp,"true"),l()}),[]);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(je,{__html:e})}),o("div",{className:"ml-s sm:ml-0 w-36 flex justify-end",children:o(bi,{className:"bg-main-gray rounded-md w-11 h-11",onClose:r})})]})}):null}));function $p(e){const t=i((({key:t})=>{"Escape"===t&&e()}),[e]);bn(globalThis.document,"keydown",t)}const jp=d((()=>{const[e,{close:t}]=_u(),n=Boolean(e.length);return $p(t),a((()=>{n?globalThis.document?.body.classList.add("no-scrollbar","overflow-hidden"):globalThis.document?.body.classList.remove("no-scrollbar","overflow-hidden")}),[n]),n?o("div",{className:"fixed inset-0 z-50",children:e.map((({dialog:t,id:n},l)=>o("div",{className:h("absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar bg-black/50",{hidden:l!==e.length-1}),children:t},String(n||l))))}):null})),Lp=d((()=>{const[e,t]=l(null),n=i((()=>{t(null)}),[]);return Du(fe.observable,"popup",{open:t,close:n}),$p(n),e?o("div",{className:h("z-50",e.fixed?"fixed":"absolute"),style:{left:`${e.left}px`,top:`${e.top}px`,...e.width?{width:`${e.width}px`}:{}},role:"dialog",title:"Всплывающее окно",children:e.popup}):null})),Ap="header",Op="footer",Ep="sticky-footer",Fp={},Up=d((({className:e,data:t=Fp,blocksRegistry:n,blockDecorator:l})=>{const{slots:a,blocks:i,fallback:r,...s}=t,d=Et(s,r);zp(),Dc();const m={key:"",page:{slots:a,blocks:i,fallback:r,...d},blocksRegistry:n,blockDecorator:l,parent:t};return c("div",{"data-theme":t.colorPalette||"pc",children:[c("section",{className:h("@container relative",t.style,e),children:[a?.[Ap]?.length?o("div",{className:"relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]",children:P(a?.[Ap],{...m,slotName:Ap})}):null,c("div",{className:"container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs",children:[V({block:t,options:m,extraProps:{className:"scroll-mt-12"}}),P(a?.[Op],{...m,slotName:Op})]})]}),a?.[Ep]?.length?o("div",{className:"fixed w-full bottom-0 left-0 z-[100]",children:P(a?.[Ep],{...m,slotName:Ep})}):null,o(jp,{}),o(Lp,{}),o(_p,{__html:d?.cookieContent?.__html})]})}));Object.assign(Up,{childrenTypes:[],slots:()=>[Ap,Op,Ep]});e.Blocks=Rp,e.ContentPage=Up,e.handlerDecorator=pe,e.joinList=Cr,e.locationNavigator=nn,e.packageVersion="0.14.765",e.projectSettings=D,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=U,e.useRouter=R,Object.defineProperty(e,"__esModule",{value:!0})}));
|