@redneckz/wildless-cms-uni-blocks 0.14.826 → 0.14.828
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/bundle.umd.js +296 -251
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +5 -0
- package/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/bundle/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/bundle/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -2
- package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -4
- package/bundle/retail/api/checkCode.d.ts +1 -0
- package/bundle/retail/api/{updateProfileEsia.d.ts → esiaRequestProfile.d.ts} +11 -4
- package/bundle/retail/api/updateUserTask.d.ts +1 -0
- package/bundle/retail/api/uploadFile.d.ts +1 -1
- package/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/bundle/retail/utils/isEsiaAuthorize.d.ts +2 -1
- package/bundle/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +5 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +26 -8
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +22 -0
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -0
- package/dist/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/dist/components/ApplicationLeadForm/applicationFormData.js +6 -31
- package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +8 -2
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.js +84 -54
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -2
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +53 -53
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -4
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +16 -24
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/retail/api/checkCode.d.ts +1 -0
- package/dist/retail/api/checkCode.js +3 -2
- package/dist/retail/api/checkCode.js.map +1 -1
- package/{lib/retail/api/updateProfileEsia.d.ts → dist/retail/api/esiaRequestProfile.d.ts} +11 -4
- package/dist/retail/api/esiaRequestProfile.js +10 -0
- package/dist/retail/api/esiaRequestProfile.js.map +1 -0
- package/dist/retail/api/updateUserTask.d.ts +1 -0
- package/dist/retail/api/updateUserTask.js.map +1 -1
- package/dist/retail/api/uploadFile.d.ts +1 -1
- package/dist/retail/api/uploadFile.js +2 -3
- package/dist/retail/api/uploadFile.js.map +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js +2 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/dist/retail/components/Fields/AddressField.js +1 -1
- package/dist/retail/components/Fields/AddressField.js.map +1 -1
- package/dist/retail/components/Fields/BeginDateField.js +2 -1
- package/dist/retail/components/Fields/BeginDateField.js.map +1 -1
- package/dist/retail/components/Fields/BirthPlaceField.js +1 -2
- package/dist/retail/components/Fields/BirthPlaceField.js.map +1 -1
- package/dist/retail/components/Fields/ConfirmationIncomeField.js +4 -1
- package/dist/retail/components/Fields/ConfirmationIncomeField.js.map +1 -1
- package/dist/retail/components/Fields/DaDataInnField.js +2 -1
- package/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/dist/retail/components/Fields/DulIssueDateField.js +1 -1
- package/dist/retail/components/Fields/DulIssueDateField.js.map +1 -1
- package/dist/retail/components/Fields/DulIssuedByField.js +1 -1
- package/dist/retail/components/Fields/DulIssuedByField.js.map +1 -1
- package/dist/retail/components/Fields/DulNumberField.js +1 -1
- package/dist/retail/components/Fields/DulNumberField.js.map +1 -1
- package/dist/retail/components/Fields/DulSerieField.js +1 -1
- package/dist/retail/components/Fields/DulSerieField.js.map +1 -1
- package/dist/retail/components/Fields/DulSubdivisionCodeField.js +1 -1
- package/dist/retail/components/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/dist/retail/components/Fields/Experience5YearsField.js +2 -1
- package/dist/retail/components/Fields/Experience5YearsField.js.map +1 -1
- package/dist/retail/components/Fields/GeneralSeniorityField.js +2 -1
- package/dist/retail/components/Fields/GeneralSeniorityField.js.map +1 -1
- package/dist/retail/components/Fields/JobsNumberField.js +2 -1
- package/dist/retail/components/Fields/JobsNumberField.js.map +1 -1
- package/dist/retail/components/Fields/LastJobExperienceField.js +2 -1
- package/dist/retail/components/Fields/LastJobExperienceField.js.map +1 -1
- package/dist/retail/components/Fields/LimitedBirthdayField.js +1 -1
- package/dist/retail/components/Fields/LimitedBirthdayField.js.map +1 -1
- package/dist/retail/components/Fields/MiddleNameField.js +1 -1
- package/dist/retail/components/Fields/MiddleNameField.js.map +1 -1
- package/dist/retail/components/Fields/NameField.js +1 -1
- package/dist/retail/components/Fields/NameField.js.map +1 -1
- package/dist/retail/components/Fields/OrganizationNameField.js +2 -1
- package/dist/retail/components/Fields/OrganizationNameField.js.map +1 -1
- package/dist/retail/components/Fields/SurnameField.js +1 -2
- package/dist/retail/components/Fields/SurnameField.js.map +1 -1
- package/dist/retail/components/Fields/WagesField.js +2 -1
- package/dist/retail/components/Fields/WagesField.js.map +1 -1
- package/dist/retail/content.js +11 -5
- package/dist/retail/content.js.map +1 -1
- package/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/dist/retail/utils/isEsiaAuthorize.d.ts +2 -1
- package/dist/retail/utils/isEsiaAuthorize.js +3 -1
- package/dist/retail/utils/isEsiaAuthorize.js.map +1 -1
- package/dist/retail/utils/mainFormStateMap.js +1 -0
- package/dist/retail/utils/mainFormStateMap.js.map +1 -1
- package/dist/retail/utils/renderStep.js +5 -1
- package/dist/retail/utils/renderStep.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/MiddleNameField.js +1 -1
- package/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/NameField.js +1 -1
- package/dist/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PhoneField.js +2 -1
- package/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/SurnameField.js +1 -1
- package/dist/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/dist/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/dist/ui-kit/FormField/shouldRenderField.js +1 -1
- package/dist/ui-kit/FormField/shouldRenderField.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +5 -0
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +26 -8
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +20 -0
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -0
- package/lib/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/lib/components/ApplicationLeadForm/applicationFormData.js +5 -30
- package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +8 -2
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.js +84 -54
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -2
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +53 -53
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -4
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +16 -24
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/retail/api/checkCode.d.ts +1 -0
- package/lib/retail/api/checkCode.js +1 -1
- package/lib/retail/api/checkCode.js.map +1 -1
- package/{mobile/bundle/retail/api/updateProfileEsia.d.ts → lib/retail/api/esiaRequestProfile.d.ts} +11 -4
- package/lib/retail/api/esiaRequestProfile.js +7 -0
- package/lib/retail/api/esiaRequestProfile.js.map +1 -0
- package/lib/retail/api/updateUserTask.d.ts +1 -0
- package/lib/retail/api/updateUserTask.js.map +1 -1
- package/lib/retail/api/uploadFile.d.ts +1 -1
- package/lib/retail/api/uploadFile.js +2 -3
- package/lib/retail/api/uploadFile.js.map +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js +2 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/lib/retail/components/Fields/AddressField.js +1 -1
- package/lib/retail/components/Fields/AddressField.js.map +1 -1
- package/lib/retail/components/Fields/BeginDateField.js +2 -1
- package/lib/retail/components/Fields/BeginDateField.js.map +1 -1
- package/lib/retail/components/Fields/BirthPlaceField.js +1 -2
- package/lib/retail/components/Fields/BirthPlaceField.js.map +1 -1
- package/lib/retail/components/Fields/ConfirmationIncomeField.js +5 -2
- package/lib/retail/components/Fields/ConfirmationIncomeField.js.map +1 -1
- package/lib/retail/components/Fields/DaDataInnField.js +2 -1
- package/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/lib/retail/components/Fields/DulIssueDateField.js +1 -1
- package/lib/retail/components/Fields/DulIssueDateField.js.map +1 -1
- package/lib/retail/components/Fields/DulIssuedByField.js +1 -1
- package/lib/retail/components/Fields/DulIssuedByField.js.map +1 -1
- package/lib/retail/components/Fields/DulNumberField.js +1 -1
- package/lib/retail/components/Fields/DulNumberField.js.map +1 -1
- package/lib/retail/components/Fields/DulSerieField.js +1 -1
- package/lib/retail/components/Fields/DulSerieField.js.map +1 -1
- package/lib/retail/components/Fields/DulSubdivisionCodeField.js +1 -1
- package/lib/retail/components/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/lib/retail/components/Fields/Experience5YearsField.js +2 -1
- package/lib/retail/components/Fields/Experience5YearsField.js.map +1 -1
- package/lib/retail/components/Fields/GeneralSeniorityField.js +2 -1
- package/lib/retail/components/Fields/GeneralSeniorityField.js.map +1 -1
- package/lib/retail/components/Fields/JobsNumberField.js +2 -1
- package/lib/retail/components/Fields/JobsNumberField.js.map +1 -1
- package/lib/retail/components/Fields/LastJobExperienceField.js +2 -1
- package/lib/retail/components/Fields/LastJobExperienceField.js.map +1 -1
- package/lib/retail/components/Fields/LimitedBirthdayField.js +1 -1
- package/lib/retail/components/Fields/LimitedBirthdayField.js.map +1 -1
- package/lib/retail/components/Fields/MiddleNameField.js +1 -1
- package/lib/retail/components/Fields/MiddleNameField.js.map +1 -1
- package/lib/retail/components/Fields/NameField.js +1 -1
- package/lib/retail/components/Fields/NameField.js.map +1 -1
- package/lib/retail/components/Fields/OrganizationNameField.js +2 -1
- package/lib/retail/components/Fields/OrganizationNameField.js.map +1 -1
- package/lib/retail/components/Fields/SurnameField.js +1 -2
- package/lib/retail/components/Fields/SurnameField.js.map +1 -1
- package/lib/retail/components/Fields/WagesField.js +2 -1
- package/lib/retail/components/Fields/WagesField.js.map +1 -1
- package/lib/retail/content.js +11 -5
- package/lib/retail/content.js.map +1 -1
- package/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/lib/retail/utils/isEsiaAuthorize.d.ts +2 -1
- package/lib/retail/utils/isEsiaAuthorize.js +3 -1
- package/lib/retail/utils/isEsiaAuthorize.js.map +1 -1
- package/lib/retail/utils/mainFormStateMap.js +1 -0
- package/lib/retail/utils/mainFormStateMap.js.map +1 -1
- package/lib/retail/utils/renderStep.js +6 -2
- package/lib/retail/utils/renderStep.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/MiddleNameField.js +1 -1
- package/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/NameField.js +1 -1
- package/lib/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PhoneField.js +2 -1
- package/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/SurnameField.js +1 -1
- package/lib/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/lib/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/lib/ui-kit/FormField/shouldRenderField.js +1 -1
- package/lib/ui-kit/FormField/shouldRenderField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +296 -251
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +5 -0
- package/mobile/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/mobile/bundle/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -2
- package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -4
- package/mobile/bundle/retail/api/checkCode.d.ts +1 -0
- package/{dist/retail/api/updateProfileEsia.d.ts → mobile/bundle/retail/api/esiaRequestProfile.d.ts} +11 -4
- package/mobile/bundle/retail/api/updateUserTask.d.ts +1 -0
- package/mobile/bundle/retail/api/uploadFile.d.ts +1 -1
- package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/retail/utils/isEsiaAuthorize.d.ts +2 -1
- package/mobile/bundle/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +5 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +26 -8
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +22 -0
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -0
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js +6 -31
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +8 -2
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js +84 -54
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -2
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +53 -53
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -4
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +16 -24
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/retail/api/checkCode.d.ts +1 -0
- package/mobile/dist/retail/api/checkCode.js +3 -2
- package/mobile/dist/retail/api/checkCode.js.map +1 -1
- package/mobile/dist/retail/api/esiaRequestProfile.d.ts +84 -0
- package/mobile/dist/retail/api/esiaRequestProfile.js +10 -0
- package/mobile/dist/retail/api/esiaRequestProfile.js.map +1 -0
- package/mobile/dist/retail/api/updateUserTask.d.ts +1 -0
- package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
- package/mobile/dist/retail/api/uploadFile.d.ts +1 -1
- package/mobile/dist/retail/api/uploadFile.js +2 -3
- package/mobile/dist/retail/api/uploadFile.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +2 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/dist/retail/components/Fields/AddressField.js +1 -1
- package/mobile/dist/retail/components/Fields/AddressField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/BeginDateField.js +2 -1
- package/mobile/dist/retail/components/Fields/BeginDateField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/BirthPlaceField.js +1 -2
- package/mobile/dist/retail/components/Fields/BirthPlaceField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/ConfirmationIncomeField.js +4 -1
- package/mobile/dist/retail/components/Fields/ConfirmationIncomeField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/DaDataInnField.js +2 -1
- package/mobile/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/DulIssueDateField.js +1 -1
- package/mobile/dist/retail/components/Fields/DulIssueDateField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/DulIssuedByField.js +1 -1
- package/mobile/dist/retail/components/Fields/DulIssuedByField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/DulNumberField.js +1 -1
- package/mobile/dist/retail/components/Fields/DulNumberField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/DulSerieField.js +1 -1
- package/mobile/dist/retail/components/Fields/DulSerieField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/DulSubdivisionCodeField.js +1 -1
- package/mobile/dist/retail/components/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/Experience5YearsField.js +2 -1
- package/mobile/dist/retail/components/Fields/Experience5YearsField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/GeneralSeniorityField.js +2 -1
- package/mobile/dist/retail/components/Fields/GeneralSeniorityField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/JobsNumberField.js +2 -1
- package/mobile/dist/retail/components/Fields/JobsNumberField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/LastJobExperienceField.js +2 -1
- package/mobile/dist/retail/components/Fields/LastJobExperienceField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/LimitedBirthdayField.js +1 -1
- package/mobile/dist/retail/components/Fields/LimitedBirthdayField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/MiddleNameField.js +1 -1
- package/mobile/dist/retail/components/Fields/MiddleNameField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/NameField.js +1 -1
- package/mobile/dist/retail/components/Fields/NameField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/OrganizationNameField.js +2 -1
- package/mobile/dist/retail/components/Fields/OrganizationNameField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/SurnameField.js +1 -2
- package/mobile/dist/retail/components/Fields/SurnameField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/WagesField.js +2 -1
- package/mobile/dist/retail/components/Fields/WagesField.js.map +1 -1
- package/mobile/dist/retail/content.js +11 -5
- package/mobile/dist/retail/content.js.map +1 -1
- package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/dist/retail/utils/isEsiaAuthorize.d.ts +2 -1
- package/mobile/dist/retail/utils/isEsiaAuthorize.js +3 -1
- package/mobile/dist/retail/utils/isEsiaAuthorize.js.map +1 -1
- package/mobile/dist/retail/utils/mainFormStateMap.js +1 -0
- package/mobile/dist/retail/utils/mainFormStateMap.js.map +1 -1
- package/mobile/dist/retail/utils/renderStep.js +5 -1
- package/mobile/dist/retail/utils/renderStep.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/NameField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/SurnameField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/shouldRenderField.js +1 -1
- package/mobile/dist/ui-kit/FormField/shouldRenderField.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +5 -0
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +26 -8
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +20 -0
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js +5 -30
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +8 -2
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js +84 -54
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +1 -2
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +53 -53
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -4
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +16 -24
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/retail/api/checkCode.d.ts +1 -0
- package/mobile/lib/retail/api/checkCode.js +1 -1
- package/mobile/lib/retail/api/checkCode.js.map +1 -1
- package/mobile/lib/retail/api/esiaRequestProfile.d.ts +84 -0
- package/mobile/lib/retail/api/esiaRequestProfile.js +7 -0
- package/mobile/lib/retail/api/esiaRequestProfile.js.map +1 -0
- package/mobile/lib/retail/api/updateUserTask.d.ts +1 -0
- package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
- package/mobile/lib/retail/api/uploadFile.d.ts +1 -1
- package/mobile/lib/retail/api/uploadFile.js +2 -3
- package/mobile/lib/retail/api/uploadFile.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +2 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/lib/retail/components/Fields/AddressField.js +1 -1
- package/mobile/lib/retail/components/Fields/AddressField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/BeginDateField.js +2 -1
- package/mobile/lib/retail/components/Fields/BeginDateField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/BirthPlaceField.js +1 -2
- package/mobile/lib/retail/components/Fields/BirthPlaceField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/ConfirmationIncomeField.js +5 -2
- package/mobile/lib/retail/components/Fields/ConfirmationIncomeField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/DaDataInnField.js +2 -1
- package/mobile/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/DulIssueDateField.js +1 -1
- package/mobile/lib/retail/components/Fields/DulIssueDateField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/DulIssuedByField.js +1 -1
- package/mobile/lib/retail/components/Fields/DulIssuedByField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/DulNumberField.js +1 -1
- package/mobile/lib/retail/components/Fields/DulNumberField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/DulSerieField.js +1 -1
- package/mobile/lib/retail/components/Fields/DulSerieField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/DulSubdivisionCodeField.js +1 -1
- package/mobile/lib/retail/components/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/Experience5YearsField.js +2 -1
- package/mobile/lib/retail/components/Fields/Experience5YearsField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/GeneralSeniorityField.js +2 -1
- package/mobile/lib/retail/components/Fields/GeneralSeniorityField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/JobsNumberField.js +2 -1
- package/mobile/lib/retail/components/Fields/JobsNumberField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/LastJobExperienceField.js +2 -1
- package/mobile/lib/retail/components/Fields/LastJobExperienceField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/LimitedBirthdayField.js +1 -1
- package/mobile/lib/retail/components/Fields/LimitedBirthdayField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/MiddleNameField.js +1 -1
- package/mobile/lib/retail/components/Fields/MiddleNameField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/NameField.js +1 -1
- package/mobile/lib/retail/components/Fields/NameField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/OrganizationNameField.js +2 -1
- package/mobile/lib/retail/components/Fields/OrganizationNameField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/SurnameField.js +1 -2
- package/mobile/lib/retail/components/Fields/SurnameField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/WagesField.js +2 -1
- package/mobile/lib/retail/components/Fields/WagesField.js.map +1 -1
- package/mobile/lib/retail/content.js +11 -5
- package/mobile/lib/retail/content.js.map +1 -1
- package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/lib/retail/utils/isEsiaAuthorize.d.ts +2 -1
- package/mobile/lib/retail/utils/isEsiaAuthorize.js +3 -1
- package/mobile/lib/retail/utils/isEsiaAuthorize.js.map +1 -1
- package/mobile/lib/retail/utils/mainFormStateMap.js +1 -0
- package/mobile/lib/retail/utils/mainFormStateMap.js.map +1 -1
- package/mobile/lib/retail/utils/renderStep.js +6 -2
- package/mobile/lib/retail/utils/renderStep.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/NameField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/SurnameField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/shouldRenderField.js +1 -1
- package/mobile/lib/ui-kit/FormField/shouldRenderField.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +31 -10
- package/mobile/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +51 -0
- package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +5 -31
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -1
- package/mobile/src/components/ApplicationLeadForm/parseEsiaProfile.ts +92 -67
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +60 -65
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +32 -48
- package/mobile/src/retail/api/checkCode.ts +1 -1
- package/mobile/src/retail/api/{updateProfileEsia.ts → esiaRequestProfile.ts} +16 -5
- package/mobile/src/retail/api/updateUserTask.ts +1 -0
- package/mobile/src/retail/api/uploadFile.ts +2 -3
- package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +2 -0
- package/mobile/src/retail/components/Fields/AddressField.tsx +1 -1
- package/mobile/src/retail/components/Fields/BeginDateField.tsx +2 -0
- package/mobile/src/retail/components/Fields/BirthPlaceField.tsx +1 -3
- package/mobile/src/retail/components/Fields/ConfirmationIncomeField.tsx +16 -7
- package/mobile/src/retail/components/Fields/DaDataInnField.tsx +2 -0
- package/mobile/src/retail/components/Fields/DulIssueDateField.tsx +1 -1
- package/mobile/src/retail/components/Fields/DulIssuedByField.tsx +1 -1
- package/mobile/src/retail/components/Fields/DulNumberField.tsx +1 -1
- package/mobile/src/retail/components/Fields/DulSerieField.tsx +1 -1
- package/mobile/src/retail/components/Fields/DulSubdivisionCodeField.tsx +1 -1
- package/mobile/src/retail/components/Fields/Experience5YearsField.tsx +2 -0
- package/mobile/src/retail/components/Fields/GeneralSeniorityField.tsx +2 -0
- package/mobile/src/retail/components/Fields/JobsNumberField.tsx +2 -0
- package/mobile/src/retail/components/Fields/LastJobExperienceField.tsx +2 -0
- package/mobile/src/retail/components/Fields/LimitedBirthdayField.tsx +1 -1
- package/mobile/src/retail/components/Fields/MiddleNameField.tsx +1 -1
- package/mobile/src/retail/components/Fields/NameField.tsx +1 -1
- package/mobile/src/retail/components/Fields/OrganizationNameField.tsx +2 -0
- package/mobile/src/retail/components/Fields/SurnameField.tsx +1 -3
- package/mobile/src/retail/components/Fields/WagesField.tsx +2 -0
- package/mobile/src/retail/content.tsx +11 -5
- package/mobile/src/retail/model/NameFieldDef.ts +1 -0
- package/mobile/src/retail/utils/isEsiaAuthorize.ts +5 -2
- package/mobile/src/retail/utils/mainFormStateMap.ts +1 -0
- package/mobile/src/retail/utils/renderStep.tsx +7 -4
- package/mobile/src/ui-kit/FormField/Fields/MiddleNameField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/NameField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/PhoneField.tsx +9 -1
- package/mobile/src/ui-kit/FormField/Fields/SurnameField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/shouldRenderField.tsx +2 -1
- package/package.json +2 -2
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +31 -10
- package/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +51 -0
- package/src/components/ApplicationLeadForm/applicationFormData.tsx +5 -31
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -1
- package/src/components/ApplicationLeadForm/parseEsiaProfile.ts +92 -67
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +60 -65
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +32 -48
- package/src/retail/api/checkCode.ts +1 -1
- package/src/retail/api/{updateProfileEsia.ts → esiaRequestProfile.ts} +16 -5
- package/src/retail/api/updateUserTask.ts +1 -0
- package/src/retail/api/uploadFile.ts +2 -3
- package/src/retail/components/DraftDialog/parseDraftTask.ts +2 -0
- package/src/retail/components/Fields/AddressField.tsx +1 -1
- package/src/retail/components/Fields/BeginDateField.tsx +2 -0
- package/src/retail/components/Fields/BirthPlaceField.tsx +1 -3
- package/src/retail/components/Fields/ConfirmationIncomeField.tsx +16 -7
- package/src/retail/components/Fields/DaDataInnField.tsx +2 -0
- package/src/retail/components/Fields/DulIssueDateField.tsx +1 -1
- package/src/retail/components/Fields/DulIssuedByField.tsx +1 -1
- package/src/retail/components/Fields/DulNumberField.tsx +1 -1
- package/src/retail/components/Fields/DulSerieField.tsx +1 -1
- package/src/retail/components/Fields/DulSubdivisionCodeField.tsx +1 -1
- package/src/retail/components/Fields/Experience5YearsField.tsx +2 -0
- package/src/retail/components/Fields/GeneralSeniorityField.tsx +2 -0
- package/src/retail/components/Fields/JobsNumberField.tsx +2 -0
- package/src/retail/components/Fields/LastJobExperienceField.tsx +2 -0
- package/src/retail/components/Fields/LimitedBirthdayField.tsx +1 -1
- package/src/retail/components/Fields/MiddleNameField.tsx +1 -1
- package/src/retail/components/Fields/NameField.tsx +1 -1
- package/src/retail/components/Fields/OrganizationNameField.tsx +2 -0
- package/src/retail/components/Fields/SurnameField.tsx +1 -3
- package/src/retail/components/Fields/WagesField.tsx +2 -0
- package/src/retail/content.tsx +11 -5
- package/src/retail/model/NameFieldDef.ts +1 -0
- package/src/retail/utils/isEsiaAuthorize.ts +5 -2
- package/src/retail/utils/mainFormStateMap.ts +1 -0
- package/src/retail/utils/renderStep.tsx +7 -4
- package/src/ui-kit/FormField/Fields/MiddleNameField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/NameField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/PhoneField.tsx +9 -1
- package/src/ui-kit/FormField/Fields/SurnameField.tsx +1 -1
- package/src/ui-kit/FormField/shouldRenderField.tsx +2 -1
- package/bundle/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/bundle/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/dist/retail/api/updateProfileEsia.js +0 -6
- package/dist/retail/api/updateProfileEsia.js.map +0 -1
- package/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +0 -34
- package/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js +0 -15
- package/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/lib/retail/api/updateProfileEsia.js +0 -3
- package/lib/retail/api/updateProfileEsia.js.map +0 -1
- package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.fixture.d.ts +0 -5
- package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +0 -32
- package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js +0 -12
- package/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/mobile/bundle/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/mobile/bundle/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/mobile/dist/retail/api/updateProfileEsia.d.ts +0 -77
- package/mobile/dist/retail/api/updateProfileEsia.js +0 -6
- package/mobile/dist/retail/api/updateProfileEsia.js.map +0 -1
- package/mobile/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/mobile/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +0 -34
- package/mobile/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/mobile/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/mobile/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js +0 -15
- package/mobile/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/mobile/lib/retail/api/updateProfileEsia.d.ts +0 -77
- package/mobile/lib/retail/api/updateProfileEsia.js +0 -3
- package/mobile/lib/retail/api/updateProfileEsia.js.map +0 -1
- package/mobile/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/mobile/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +0 -32
- package/mobile/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/mobile/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/mobile/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js +0 -12
- package/mobile/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/mobile/src/retail/components/EsiaLoginDialog/EsiaLoginDialog.tsx +0 -65
- package/mobile/src/retail/components/EsiaLoginDialog/useEsiaLoginDialog.tsx +0 -13
- package/src/retail/components/EsiaLoginDialog/EsiaLoginDialog.fixture.tsx +0 -7
- package/src/retail/components/EsiaLoginDialog/EsiaLoginDialog.tsx +0 -65
- package/src/retail/components/EsiaLoginDialog/useEsiaLoginDialog.tsx +0 -13
|
@@ -1990,11 +1990,13 @@
|
|
|
1990
1990
|
});
|
|
1991
1991
|
|
|
1992
1992
|
const ESIA_FIELD_NAME = 'esiaAccountTypeCd';
|
|
1993
|
-
const isEsiaAuthorize = (field, name) =>
|
|
1993
|
+
const isEsiaAuthorize = (field, input, name = '') => input?.filledByEsia &&
|
|
1994
|
+
Boolean(field(ESIA_FIELD_NAME)?.value?.key) &&
|
|
1995
|
+
field(input?.name ?? name).value;
|
|
1994
1996
|
|
|
1995
|
-
const MiddleNameField$1 = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", maxLength: 60, disabled:
|
|
1997
|
+
const MiddleNameField$1 = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", maxLength: 60, disabled: isEsiaAuthorize(field, input), ...field(input?.name ?? ''), ...input })));
|
|
1996
1998
|
|
|
1997
|
-
const NameField$1 = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0418\u043C\u044F", maxLength: 60, disabled:
|
|
1999
|
+
const NameField$1 = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0418\u043C\u044F", maxLength: 60, disabled: isEsiaAuthorize(field, input), ...field(input?.name ?? ''), ...input })));
|
|
1998
2000
|
|
|
1999
2001
|
const SlideCheckbox = JSX(({ value = false, text, type = 'checkbox', onChange }) => (jsxs("div", { role: type, "aria-checked": value, className: "flex justify-start items-center w-full cursor-pointer mb-s", onClick: () => onChange && onChange(!value), children: [jsx("div", { className: style('relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl', value ? 'bg-primary-main' : 'bg-main-divider'), children: jsx("div", { className: style('absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full', value ? 'left-1/2' : 'left-[5%]') }) }), text ? (jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text })) : null] })));
|
|
2000
2002
|
|
|
@@ -2030,7 +2032,7 @@
|
|
|
2030
2032
|
|
|
2031
2033
|
const PhoneField = JSX(({ field, input }) => {
|
|
2032
2034
|
const fieldName = input?.name || 'phone';
|
|
2033
|
-
return jsx(InputPhoneControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...field(fieldName), ...input });
|
|
2035
|
+
return (jsx(InputPhoneControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", disabled: isEsiaAuthorize(field, input, fieldName), ...field(fieldName), ...input }));
|
|
2034
2036
|
});
|
|
2035
2037
|
|
|
2036
2038
|
const PosTerminalField = JSX(({ field }) => isAcquiringTrade(field('acquiringType')?.value?.key) ? (jsx(SlideCheckbox, { type: "radio", text: "\u0425\u043E\u0447\u0443 POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })) : null);
|
|
@@ -2174,7 +2176,7 @@
|
|
|
2174
2176
|
];
|
|
2175
2177
|
const SufferedFromField = JSX(({ field, input }) => (jsx(SelectControl, { label: "\u041F\u043E\u0441\u0442\u0440\u0430\u0434\u0430\u043B \u0432", ...input, options: SUFFERED_FROM_TYPES, ...field('sufferedFrom') })));
|
|
2176
2178
|
|
|
2177
|
-
const SurnameField$1 = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", maxLength: 60, disabled:
|
|
2179
|
+
const SurnameField$1 = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", maxLength: 60, disabled: isEsiaAuthorize(field, input), ...field(input?.name ?? ''), ...input })));
|
|
2178
2180
|
|
|
2179
2181
|
const MIN_CREDIT_TERM = 1;
|
|
2180
2182
|
const MAX_CREDIT_TERM = 180;
|
|
@@ -2210,7 +2212,7 @@
|
|
|
2210
2212
|
function shouldRenderField({ input, field, }) {
|
|
2211
2213
|
const { condition } = input;
|
|
2212
2214
|
const { value } = field(condition?.name || '');
|
|
2213
|
-
return !condition || condition?.values?.
|
|
2215
|
+
return !condition || condition?.values?.includes(value?.key ?? value);
|
|
2214
2216
|
}
|
|
2215
2217
|
|
|
2216
2218
|
const PRODUCT_REF = {
|
|
@@ -2675,11 +2677,11 @@
|
|
|
2675
2677
|
{
|
|
2676
2678
|
columns: 2,
|
|
2677
2679
|
inputs: [
|
|
2678
|
-
{ name: 'surname', required: true, dadata: true },
|
|
2679
|
-
{ name: 'name', required: true, dadata: true },
|
|
2680
|
-
{ name: 'middleName', dadata: true },
|
|
2681
|
-
{ name: 'limitedBirthday', required: true },
|
|
2682
|
-
{ name: 'phone', required: true },
|
|
2680
|
+
{ name: 'surname', required: true, dadata: true, filledByEsia: true },
|
|
2681
|
+
{ name: 'name', required: true, dadata: true, filledByEsia: true },
|
|
2682
|
+
{ name: 'middleName', dadata: true, filledByEsia: true },
|
|
2683
|
+
{ name: 'limitedBirthday', required: true, filledByEsia: true },
|
|
2684
|
+
{ name: 'phone', required: true, filledByEsia: true },
|
|
2683
2685
|
{ name: 'email', required: true, dadata: true },
|
|
2684
2686
|
],
|
|
2685
2687
|
},
|
|
@@ -2689,6 +2691,57 @@
|
|
|
2689
2691
|
];
|
|
2690
2692
|
};
|
|
2691
2693
|
|
|
2694
|
+
const getTraceId = () => {
|
|
2695
|
+
const result = new Uint8Array(8);
|
|
2696
|
+
globalThis.crypto.getRandomValues(result);
|
|
2697
|
+
return result.reduce((acc, _) => `${acc}${_.toString(16).padStart(2, '0')}`, '');
|
|
2698
|
+
};
|
|
2699
|
+
|
|
2700
|
+
const fetchRetailJSON = async (url, method, body) => {
|
|
2701
|
+
try {
|
|
2702
|
+
const response = await doRequest(url, method, body);
|
|
2703
|
+
return response.json();
|
|
2704
|
+
}
|
|
2705
|
+
catch (err) {
|
|
2706
|
+
console.error(err);
|
|
2707
|
+
return null;
|
|
2708
|
+
}
|
|
2709
|
+
};
|
|
2710
|
+
async function doRequest(url, method, body) {
|
|
2711
|
+
const traceId = getTraceId();
|
|
2712
|
+
return globalThis?.fetch?.(`${RETAIL_API_BASE_URI}${url}`, {
|
|
2713
|
+
method,
|
|
2714
|
+
headers: {
|
|
2715
|
+
'Content-Type': 'application/json',
|
|
2716
|
+
'X-B3-Sampled': '1',
|
|
2717
|
+
'X-B3-Spanid': traceId,
|
|
2718
|
+
'X-B3-Traceid': traceId,
|
|
2719
|
+
...getAuthorizationHeaders(),
|
|
2720
|
+
},
|
|
2721
|
+
credentials: 'include',
|
|
2722
|
+
body: body ? JSON.stringify(body) : null,
|
|
2723
|
+
});
|
|
2724
|
+
}
|
|
2725
|
+
const getAuthorizationHeaders = () => {
|
|
2726
|
+
const token = sessionStorage.getItem('accessToken');
|
|
2727
|
+
return token ? { Authorization: `Bearer ${token}` } : null;
|
|
2728
|
+
};
|
|
2729
|
+
|
|
2730
|
+
const getLink = (body) => fetchRetailJSON('/esia/getLink', 'POST', body);
|
|
2731
|
+
|
|
2732
|
+
const EsiaLoginBanner = JSX(() => {
|
|
2733
|
+
const navigator = locationNavigator();
|
|
2734
|
+
const handleAuth = useCallback(async () => {
|
|
2735
|
+
const resp = await getLink({
|
|
2736
|
+
redirectUri: globalThis.location.origin + globalThis.location.pathname,
|
|
2737
|
+
});
|
|
2738
|
+
if (resp?.link) {
|
|
2739
|
+
navigator.assign(resp.link);
|
|
2740
|
+
}
|
|
2741
|
+
}, []);
|
|
2742
|
+
return (jsxs("div", { className: "flex gap-lg items-center rounded-md bg-main-gray p-4xl", children: [jsxs("div", { className: "flex flex-col justify-around w-full", children: [jsx("p", { className: "mb-m text-xl", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), jsxs("ul", { className: "list-disc list-inside mb-4xl", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { className: "block mb-xl self-center @md:hidden", image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "80", width: "80" }), jsx(Button, { type: "button", onClick: handleAuth, className: "w-full @md:w-fit", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C" })] }), jsx(Img, { className: "hidden @md:block", image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "164" })] }));
|
|
2743
|
+
});
|
|
2744
|
+
|
|
2692
2745
|
const debounce = (fn, delay = 600) => {
|
|
2693
2746
|
let timerId;
|
|
2694
2747
|
const debouncedCallback = (...args) => {
|
|
@@ -2929,7 +2982,7 @@
|
|
|
2929
2982
|
qcHouse: '',
|
|
2930
2983
|
});
|
|
2931
2984
|
}, []);
|
|
2932
|
-
return (jsx(DaDataInputControl, { disabled:
|
|
2985
|
+
return (jsx(DaDataInputControl, { disabled: isEsiaAuthorize(field, input, fieldName), label: "\u0410\u0434\u0440\u0435\u0441", ...field(fieldName), value: fieldValue?.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
|
|
2933
2986
|
});
|
|
2934
2987
|
const getAddressFromDaDataItem = (item) => ({
|
|
2935
2988
|
apartment: item?.data?.flat,
|
|
@@ -3575,42 +3628,6 @@
|
|
|
3575
3628
|
const mapByIndex = (points, index) => points.map((_) => _.coords?.[index]);
|
|
3576
3629
|
const getArraySumAndAverage = (arr) => arr.length && arr.reduce((a, b) => a + b) / arr.length;
|
|
3577
3630
|
|
|
3578
|
-
const getTraceId = () => {
|
|
3579
|
-
const result = new Uint8Array(8);
|
|
3580
|
-
globalThis.crypto.getRandomValues(result);
|
|
3581
|
-
return result.reduce((acc, _) => `${acc}${_.toString(16).padStart(2, '0')}`, '');
|
|
3582
|
-
};
|
|
3583
|
-
|
|
3584
|
-
const fetchRetailJSON = async (url, method, body) => {
|
|
3585
|
-
try {
|
|
3586
|
-
const response = await doRequest(url, method, body);
|
|
3587
|
-
return response.json();
|
|
3588
|
-
}
|
|
3589
|
-
catch (err) {
|
|
3590
|
-
console.error(err);
|
|
3591
|
-
return null;
|
|
3592
|
-
}
|
|
3593
|
-
};
|
|
3594
|
-
async function doRequest(url, method, body) {
|
|
3595
|
-
const traceId = getTraceId();
|
|
3596
|
-
return globalThis?.fetch?.(`${RETAIL_API_BASE_URI}${url}`, {
|
|
3597
|
-
method,
|
|
3598
|
-
headers: {
|
|
3599
|
-
'Content-Type': 'application/json',
|
|
3600
|
-
'X-B3-Sampled': '1',
|
|
3601
|
-
'X-B3-Spanid': traceId,
|
|
3602
|
-
'X-B3-Traceid': traceId,
|
|
3603
|
-
...getAuthorizationHeaders(),
|
|
3604
|
-
},
|
|
3605
|
-
credentials: 'include',
|
|
3606
|
-
body: body ? JSON.stringify(body) : null,
|
|
3607
|
-
});
|
|
3608
|
-
}
|
|
3609
|
-
const getAuthorizationHeaders = () => {
|
|
3610
|
-
const token = sessionStorage.getItem('accessToken');
|
|
3611
|
-
return token ? { Authorization: `Bearer ${token}` } : null;
|
|
3612
|
-
};
|
|
3613
|
-
|
|
3614
3631
|
const fetchRegionOffices = async (regionKey) => {
|
|
3615
3632
|
const response = await fetchRetailJSON('/public-data/regionOffices', 'POST', {
|
|
3616
3633
|
regionRfCd: {
|
|
@@ -3840,10 +3857,9 @@
|
|
|
3840
3857
|
|
|
3841
3858
|
const BankruptcyFlgField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u0412 \u043E\u0442\u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u043C\u0435\u043D\u044F \u0432\u0435\u0434\u0451\u0442\u0441\u044F \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0441\u0442\u0432\u043E \u043F\u043E \u0434\u0435\u043B\u0443 \u043E \u0431\u0430\u043D\u043A\u0440\u043E\u0442\u0441\u0442\u0432\u0435", ...field(input?.name ?? '') })));
|
|
3842
3859
|
|
|
3843
|
-
const BeginDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430 \u0440\u0430\u0431\u043E\u0442\u044B \u043D\u0430 \u0442\u0435\u043A\u0443\u0449\u0435\u043C \u043C\u0435\u0441\u0442\u0435", ...field(input?.name ?? ''), ...input })));
|
|
3860
|
+
const BeginDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430 \u0440\u0430\u0431\u043E\u0442\u044B \u043D\u0430 \u0442\u0435\u043A\u0443\u0449\u0435\u043C \u043C\u0435\u0441\u0442\u0435", ...field(input?.name ?? ''), ...input, disabled: isEsiaAuthorize(field, input) })));
|
|
3844
3861
|
|
|
3845
|
-
const
|
|
3846
|
-
const BirthPlaceField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u041C\u0435\u0441\u0442\u043E \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...field(input?.name ?? ''), ...input, disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$2) })));
|
|
3862
|
+
const BirthPlaceField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u041C\u0435\u0441\u0442\u043E \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...field(input?.name ?? ''), ...input, disabled: isEsiaAuthorize(field, input) })));
|
|
3847
3863
|
|
|
3848
3864
|
const safeJsonParse = (data) => {
|
|
3849
3865
|
try {
|
|
@@ -3904,7 +3920,8 @@
|
|
|
3904
3920
|
|
|
3905
3921
|
const ConfirmationIncomeField = JSX(({ field, input }) => {
|
|
3906
3922
|
const { data: confirmationIncome } = useLeadFormData('INCOME_CERT_UNITED');
|
|
3907
|
-
|
|
3923
|
+
const filledByEsia = isEsiaAuthorize(field, input);
|
|
3924
|
+
return (jsxs("div", { className: "space-y-xl", children: [filledByEsia ? (jsx(InfoCard, { __html: "\u0414\u043B\u044F \u0432\u044B\u0431\u043E\u0440\u0430 \u0438\u043D\u043E\u0433\u043E \u0441\u043F\u043E\u0441\u043E\u0431\u0430 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u0434\u043E\u0445\u043E\u0434\u0430, \u043E\u0444\u043E\u0440\u043C\u0438\u0442\u0435 \u043D\u043E\u0432\u0443\u044E \u0437\u0430\u044F\u0432\u043A\u0443 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442 \u0431\u0435\u0437 \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043D\u0430 \u043F\u043E\u0440\u0442\u0430\u043B\u0435 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" })) : null, jsx(SelectField, { field: field, source: confirmationIncome, label: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u0434\u043E\u0445\u043E\u0434\u0430", fieldName: "confirmationIncome", input: input, disabled: filledByEsia })] }));
|
|
3908
3925
|
});
|
|
3909
3926
|
|
|
3910
3927
|
const ConscriptionField = JSX(({ field, input }) => {
|
|
@@ -4245,12 +4262,12 @@
|
|
|
4245
4262
|
});
|
|
4246
4263
|
const renderCreditParamsForm$1 = (params, field) => (jsxs("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: `Получаю зарплату на счёт\nв Россельхозбанке`, ...field('isSalaryClient'), value: params.isSalaryClient, className: "whitespace-pre-line sm:whitespace-normal" })) : null, params.isShowStateEmployee ? (jsx(Checkbox, { text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('isStateEmployee'), value: params.isStateEmployee })) : null, params.isShowPensionClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u043F\u0435\u043D\u0441\u0438\u044E \u043D\u0430 \u043A\u0430\u0440\u0442\u0443 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0430", ...field('isPensionClient'), value: params.isPensionClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null] }));
|
|
4247
4264
|
|
|
4248
|
-
const FIELD_NAME
|
|
4265
|
+
const FIELD_NAME = 'calculator';
|
|
4249
4266
|
const CreditCalcField = JSX(({ field, params }) => {
|
|
4250
4267
|
const handleChange = useCallback((_) => {
|
|
4251
|
-
field(FIELD_NAME
|
|
4268
|
+
field(FIELD_NAME).onChange?.(_);
|
|
4252
4269
|
}, []);
|
|
4253
|
-
return (jsx(CalculatorCredit, { ...params?.calcData, padding: "p-0", defaultParams: defaultValueAdapter(field(FIELD_NAME
|
|
4270
|
+
return (jsx(CalculatorCredit, { ...params?.calcData, padding: "p-0", defaultParams: defaultValueAdapter(field(FIELD_NAME).value), onChange: handleChange }));
|
|
4254
4271
|
});
|
|
4255
4272
|
const PARAMS_MAP = {
|
|
4256
4273
|
moneyValue: 'sum',
|
|
@@ -4448,7 +4465,7 @@
|
|
|
4448
4465
|
}
|
|
4449
4466
|
})();
|
|
4450
4467
|
}, [employerActivities, employerOrganization, organization, amountWorkers]);
|
|
4451
|
-
return (jsx(DaDataInputControl, { label: "\u0418\u041D\u041D", isInteger: true, maxLength: 12, ...input, ...field(input?.name ?? ''), onDaDataChange: onDaDataChange }));
|
|
4468
|
+
return (jsx(DaDataInputControl, { label: "\u0418\u041D\u041D", isInteger: true, maxLength: 12, ...input, ...field(input?.name ?? ''), onDaDataChange: onDaDataChange, disabled: isEsiaAuthorize(field, input) }));
|
|
4452
4469
|
});
|
|
4453
4470
|
|
|
4454
4471
|
const DeliveryDateFiels = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438", ...field(input?.name ?? ''), minDate: new Date() })));
|
|
@@ -4467,7 +4484,7 @@
|
|
|
4467
4484
|
const DulIssueDateField = JSX(({ field, input }) => {
|
|
4468
4485
|
const birthDate = field('limitedBirthday')?.value;
|
|
4469
4486
|
const startDulIssueDate = useMemo(() => new Date(birthDate?.getFullYear() + 14, birthDate?.getMonth(), birthDate?.getDate()), [birthDate]);
|
|
4470
|
-
return (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0432\u044B\u0434\u0430\u0447\u0438", ...field(input?.name ?? ''), disabled:
|
|
4487
|
+
return (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0432\u044B\u0434\u0430\u0447\u0438", ...field(input?.name ?? ''), disabled: isEsiaAuthorize(field, input), minDate: startDulIssueDate }));
|
|
4471
4488
|
});
|
|
4472
4489
|
|
|
4473
4490
|
const DulIssuedByField = JSX(({ field, input }) => {
|
|
@@ -4475,18 +4492,18 @@
|
|
|
4475
4492
|
const onDaDataChange = useCallback((item) => {
|
|
4476
4493
|
changeDulSubdivisionCode?.(item?.data?.code?.replace('-', ''));
|
|
4477
4494
|
}, []);
|
|
4478
|
-
return (jsx(DaDataInputControl, { disabled:
|
|
4495
|
+
return (jsx(DaDataInputControl, { disabled: isEsiaAuthorize(field, input), label: "\u041A\u0435\u043C \u0432\u044B\u0434\u0430\u043D", ...input, ...field(input?.name ?? ''), onDaDataChange: onDaDataChange, daDataQueryPrefix: dulSubdivisionCode }));
|
|
4479
4496
|
});
|
|
4480
4497
|
|
|
4481
|
-
const DulNumberField = JSX(({ field, input }) => (jsx(DaDataInputControl, { disabled:
|
|
4498
|
+
const DulNumberField = JSX(({ field, input }) => (jsx(DaDataInputControl, { disabled: isEsiaAuthorize(field, input), label: "\u041D\u043E\u043C\u0435\u0440 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", isInteger: true, maxLength: 6, ...field(input?.name ?? '') })));
|
|
4482
4499
|
|
|
4483
|
-
const DulSerieField = JSX(({ field, input }) => (jsx(DaDataInputControl, { disabled:
|
|
4500
|
+
const DulSerieField = JSX(({ field, input }) => (jsx(DaDataInputControl, { disabled: isEsiaAuthorize(field, input), label: "\u0421\u0435\u0440\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", isInteger: true, maxLength: 4, ...field(input?.name ?? '') })));
|
|
4484
4501
|
|
|
4485
4502
|
const DulSubdivisionCodeField = JSX(({ field, input }) => {
|
|
4486
4503
|
const onDaDataChange = useCallback((item) => {
|
|
4487
4504
|
field?.('dulIssuedBy')?.onChange?.(item?.data?.name);
|
|
4488
4505
|
}, []);
|
|
4489
|
-
return (jsx(DaDataInputControl, { disabled:
|
|
4506
|
+
return (jsx(DaDataInputControl, { disabled: isEsiaAuthorize(field, input), label: "\u041A\u043E\u0434 \u043F\u043E\u0434\u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F", isInteger: true, maxLength: 6, ...input, ...field(input?.name ?? ''), onDaDataChange: onDaDataChange }));
|
|
4490
4507
|
});
|
|
4491
4508
|
|
|
4492
4509
|
const EducationField = JSX(({ field, input }) => {
|
|
@@ -4531,7 +4548,7 @@
|
|
|
4531
4548
|
const MIN_YEARS = 0;
|
|
4532
4549
|
const Experience5YearsField = JSX(({ field, input }) => {
|
|
4533
4550
|
const onChange = useCallback((value) => field(input?.name ?? '')?.onChange?.(String(clamp(Number(value), MIN_YEARS, MAX_YEARS))), []);
|
|
4534
|
-
return (jsx(DaDataInputControl, { label: "\u0421\u0442\u0430\u0436", placeholder: "\u0417\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 5 \u043B\u0435\u0442", type: "number", ...field(input?.name ?? ''), ...input, onChange: onChange }));
|
|
4551
|
+
return (jsx(DaDataInputControl, { label: "\u0421\u0442\u0430\u0436", placeholder: "\u0417\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 5 \u043B\u0435\u0442", type: "number", ...field(input?.name ?? ''), ...input, onChange: onChange, disabled: isEsiaAuthorize(field, input) }));
|
|
4535
4552
|
});
|
|
4536
4553
|
|
|
4537
4554
|
const FamilyMembersField = JSX(({ field, input }) => {
|
|
@@ -4552,7 +4569,7 @@
|
|
|
4552
4569
|
return (jsx(SelectField, { field: field, source: familyStatus, label: "\u0421\u0435\u043C\u0435\u0439\u043D\u043E\u0435 \u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435", fieldName: "familyStatus", input: input }));
|
|
4553
4570
|
});
|
|
4554
4571
|
|
|
4555
|
-
const GeneralSeniorityField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u041E\u0431\u0449\u0438\u0439 \u0441\u0442\u0430\u0436", type: "number", maxLength: 2, placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043B\u0435\u0442", ...field(input?.name ?? ''), ...input })));
|
|
4572
|
+
const GeneralSeniorityField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u041E\u0431\u0449\u0438\u0439 \u0441\u0442\u0430\u0436", type: "number", maxLength: 2, placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043B\u0435\u0442", ...field(input?.name ?? ''), ...input, disabled: isEsiaAuthorize(field, input) })));
|
|
4556
4573
|
|
|
4557
4574
|
const HousingField = JSX(({ field, input }) => {
|
|
4558
4575
|
const { data: housing } = useLeadFormData('HOUSE_TYPE');
|
|
@@ -4561,9 +4578,9 @@
|
|
|
4561
4578
|
|
|
4562
4579
|
const InfoCardField = JSX(({ input }) => (jsx(InfoCard, { __html: input?.label })));
|
|
4563
4580
|
|
|
4564
|
-
const JobsNumberField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043C\u0435\u0441\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u0437\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 5 \u043B\u0435\u0442", placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043C\u0435\u0441\u0442", isInteger: true, maxLength: 2, ...field(input?.name ?? ''), ...input })));
|
|
4581
|
+
const JobsNumberField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043C\u0435\u0441\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u0437\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 5 \u043B\u0435\u0442", placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043C\u0435\u0441\u0442", isInteger: true, maxLength: 2, ...field(input?.name ?? ''), ...input, disabled: isEsiaAuthorize(field, input) })));
|
|
4565
4582
|
|
|
4566
|
-
const LastJobExperienceField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u0421\u0442\u0430\u0436 \u043D\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u043C \u0440\u0430\u0431\u043E\u0447\u0435\u043C \u043C\u0435\u0441\u0442\u0435", placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043B\u0435\u0442", type: "number", maxLength: 2, ...field(input?.name ?? ''), ...input })));
|
|
4583
|
+
const LastJobExperienceField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u0421\u0442\u0430\u0436 \u043D\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u043C \u0440\u0430\u0431\u043E\u0447\u0435\u043C \u043C\u0435\u0441\u0442\u0435", placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043B\u0435\u0442", type: "number", maxLength: 2, ...field(input?.name ?? ''), ...input, disabled: isEsiaAuthorize(field, input) })));
|
|
4567
4584
|
|
|
4568
4585
|
const latinPattern = /^[\u0041-\u005A\u0061-\u007A\s]+$/u;
|
|
4569
4586
|
const isLatin = (_ = '') => latinPattern.test(_);
|
|
@@ -4684,7 +4701,7 @@
|
|
|
4684
4701
|
|
|
4685
4702
|
const LegalFormField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u041E\u041F\u0424", placeholder: "\u041E\u041E\u041E, \u041F\u0410\u041E \u0438 \u0434\u0440.", ...field(input?.name ?? ''), ...input })));
|
|
4686
4703
|
|
|
4687
|
-
const LimitedBirthdayField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...field(input?.name ?? ''), disabled:
|
|
4704
|
+
const LimitedBirthdayField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...field(input?.name ?? ''), disabled: isEsiaAuthorize(field, input) })));
|
|
4688
4705
|
|
|
4689
4706
|
const MandatoryPaymentsField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0432\u044B\u043F\u043B\u0430\u0442\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", isInteger: true, ...field(input?.name ?? ''), ...input })));
|
|
4690
4707
|
|
|
@@ -4700,7 +4717,7 @@
|
|
|
4700
4717
|
field('middleName')?.onChange?.(value);
|
|
4701
4718
|
}
|
|
4702
4719
|
}, [field]);
|
|
4703
|
-
return (jsx(DaDataInputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", maxLength: 60, disabled:
|
|
4720
|
+
return (jsx(DaDataInputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", maxLength: 60, disabled: isEsiaAuthorize(field, input), ...field(input?.name ?? ''), ...input, onChange: onChange }));
|
|
4704
4721
|
});
|
|
4705
4722
|
|
|
4706
4723
|
const NameField = JSX(({ field, input }) => {
|
|
@@ -4709,7 +4726,7 @@
|
|
|
4709
4726
|
field('name')?.onChange?.(value);
|
|
4710
4727
|
}
|
|
4711
4728
|
}, [field]);
|
|
4712
|
-
return (jsx(DaDataInputControl, { label: "\u0418\u043C\u044F", maxLength: 60, disabled:
|
|
4729
|
+
return (jsx(DaDataInputControl, { label: "\u0418\u043C\u044F", maxLength: 60, disabled: isEsiaAuthorize(field, input), ...field(input?.name ?? ''), ...input, onChange: onChange }));
|
|
4713
4730
|
});
|
|
4714
4731
|
|
|
4715
4732
|
const OrganizationField = JSX(({ field, input }) => {
|
|
@@ -4729,7 +4746,7 @@
|
|
|
4729
4746
|
field?.('inn')?.onChange?.(item.data?.inn);
|
|
4730
4747
|
updateOrganizationFields(store, field, item);
|
|
4731
4748
|
}, []);
|
|
4732
|
-
return (jsx(DaDataInputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...input, ...field(input?.name ?? ''), onDaDataChange: onDaDataChange }));
|
|
4749
|
+
return (jsx(DaDataInputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...input, ...field(input?.name ?? ''), disabled: isEsiaAuthorize(field, input), onDaDataChange: onDaDataChange }));
|
|
4733
4750
|
});
|
|
4734
4751
|
|
|
4735
4752
|
const OtherIncomeField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u0418\u043D\u044B\u0435 \u0434\u043E\u0445\u043E\u0434\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", isInteger: true, ...field(input?.name ?? ''), ...input })));
|
|
@@ -4864,19 +4881,18 @@
|
|
|
4864
4881
|
|
|
4865
4882
|
const SnilsField = JSX(({ field, input }) => (jsx(InputSnilsControl, { label: "\u0421\u041D\u0418\u041B\u0421", maxLength: 14, ...field(input?.name ?? ''), ...input })));
|
|
4866
4883
|
|
|
4867
|
-
const FIELD_NAME = 'surname';
|
|
4868
4884
|
const SurnameField = JSX(({ field, input }) => {
|
|
4869
4885
|
const onChange = useCallback((value) => {
|
|
4870
4886
|
if (retailCyrillicPattern.test(value) || value.length === 0) {
|
|
4871
4887
|
field('surname')?.onChange?.(value);
|
|
4872
4888
|
}
|
|
4873
4889
|
}, [field]);
|
|
4874
|
-
return (jsx(DaDataInputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", maxLength: 60, disabled:
|
|
4890
|
+
return (jsx(DaDataInputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", maxLength: 60, disabled: isEsiaAuthorize(field, input), ...field(input?.name ?? ''), ...input, onChange: onChange }));
|
|
4875
4891
|
});
|
|
4876
4892
|
|
|
4877
4893
|
const TotalIncomeField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u0421\u043E\u0432\u043E\u043A\u0443\u043F\u043D\u044B\u0439 \u043E\u0444\u0438\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u0434\u043E\u0445\u043E\u0434 \u0432 \u043C\u0435\u0441\u044F\u0446 \u043F\u043E\u0441\u043B\u0435 \u0432\u044B\u0447\u0435\u0442\u0430 \u043D\u0430\u043B\u043E\u0433\u043E\u0432 (\u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0430, \u043F\u0440\u0435\u043C\u0438\u0438)", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", isInteger: true, ...field(input?.name ?? ''), ...input })));
|
|
4878
4894
|
|
|
4879
|
-
const WagesField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u0421\u043E\u0432\u043E\u043A\u0443\u043F\u043D\u044B\u0439 \u0434\u043E\u0445\u043E\u0434 \u0432 \u043C\u0435\u0441\u044F\u0446 \u043F\u043E\u0441\u043B\u0435 \u0432\u044B\u0447\u0435\u0442\u0430 \u043D\u0430\u043B\u043E\u0433\u043E\u0432 (\u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0430, \u043F\u0440\u0435\u043C\u0438\u0438)", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", isInteger: true, ...field(input?.name ?? ''), ...input })));
|
|
4895
|
+
const WagesField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u0421\u043E\u0432\u043E\u043A\u0443\u043F\u043D\u044B\u0439 \u0434\u043E\u0445\u043E\u0434 \u0432 \u043C\u0435\u0441\u044F\u0446 \u043F\u043E\u0441\u043B\u0435 \u0432\u044B\u0447\u0435\u0442\u0430 \u043D\u0430\u043B\u043E\u0433\u043E\u0432 (\u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0430, \u043F\u0440\u0435\u043C\u0438\u0438)", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", isInteger: true, ...field(input?.name ?? ''), ...input, disabled: isEsiaAuthorize(field, input) })));
|
|
4880
4896
|
|
|
4881
4897
|
const DELIVERY_CITIES_REF = {
|
|
4882
4898
|
$ref: '/wcms-resources/delivery-cities-data.json',
|
|
@@ -5506,7 +5522,7 @@
|
|
|
5506
5522
|
const participant = task.participants[0];
|
|
5507
5523
|
const { classCard: cardCategory, codeWord, paymentSystemTypeCd: paymentSystem, currencyCode: currency, } = task;
|
|
5508
5524
|
const { loanAmount: moneyValue, creditPeriod: monthsValue, paymentTypeCd } = task;
|
|
5509
|
-
const { birthDate: limitedBirthday, midname: middleName, name, surname, birthPlace, dulIssueDate: dulIssueDate, dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, educationLevelCd: education, registrationDate: participantDateRegistration, houseTypeCd: housing, genderCd, participantContacts = [], participantAddresses = [], employmentContractDate: beginDate, employmentTypeCd: employment, organizationName, organizationInn: inn, organizationActivityTypeCd: employerActivities, organizationTypeCd: organization, organizationKindCd: employerOrganization, employeesNumberCd: amountWorkers, opf: legalForm, seniority: generalSeniority, generalSeniority: experience5Years, jobsNumber, lastWorkDuration: lastJobExperience, positionCd: positionOrganization, maritalStatusCd: familyStatus, childrenDependents: children, totalDependents: familyMembers, otherDependents: dependents, militaryStatusCd: conscription, participantIncomes, snils, armyIdFlg, bankruptcyFlg, shareholderFlg, nameLegalEntity: legalEntityName, creditInRshbCd, payrollCardRshbFlg: isInsurance, consentInsuranceFlg: isSalaryClient, incomeCertificateCd, } = participant;
|
|
5525
|
+
const { birthDate: limitedBirthday, midname: middleName, name, surname, birthPlace, dulIssueDate: dulIssueDate, dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, educationLevelCd: education, registrationDate: participantDateRegistration, houseTypeCd: housing, genderCd, participantContacts = [], participantAddresses = [], employmentContractDate: beginDate, employmentTypeCd: employment, organizationName, organizationInn: inn, organizationActivityTypeCd: employerActivities, organizationTypeCd: organization, organizationKindCd: employerOrganization, employeesNumberCd: amountWorkers, opf: legalForm, seniority: generalSeniority, generalSeniority: experience5Years, jobsNumber, lastWorkDuration: lastJobExperience, positionCd: positionOrganization, maritalStatusCd: familyStatus, childrenDependents: children, totalDependents: familyMembers, otherDependents: dependents, militaryStatusCd: conscription, participantIncomes, snils, armyIdFlg, bankruptcyFlg, shareholderFlg, nameLegalEntity: legalEntityName, creditInRshbCd, payrollCardRshbFlg: isInsurance, consentInsuranceFlg: isSalaryClient, incomeCertificateCd, profile, } = participant;
|
|
5510
5526
|
return {
|
|
5511
5527
|
currency: currency?.key,
|
|
5512
5528
|
paymentSystem: getSelectValue(paymentSystem),
|
|
@@ -5558,6 +5574,7 @@
|
|
|
5558
5574
|
monthsValue,
|
|
5559
5575
|
isAnnuity: paymentTypeCd?.key === 'ANNUITY',
|
|
5560
5576
|
},
|
|
5577
|
+
esiaAccountTypeCd: profile?.esiaAccountTypeCd,
|
|
5561
5578
|
...getParticipantIncomes(participantIncomes),
|
|
5562
5579
|
...getParticipantAddresses(participantAddresses),
|
|
5563
5580
|
...getParticipantContacts(participantContacts),
|
|
@@ -5612,39 +5629,6 @@
|
|
|
5612
5629
|
};
|
|
5613
5630
|
};
|
|
5614
5631
|
|
|
5615
|
-
const getLink = (body) => fetchRetailJSON('/esia/getLink', 'POST', body);
|
|
5616
|
-
|
|
5617
|
-
const EsiaLoginDialog = JSX(({ onClose }) => {
|
|
5618
|
-
const navigator = locationNavigator();
|
|
5619
|
-
const retailFormStore = useRetailFormStore();
|
|
5620
|
-
const handleAuth = useCallback(async () => {
|
|
5621
|
-
const resp = await getLink({
|
|
5622
|
-
redirectUri: globalThis.location.origin + globalThis.location.pathname,
|
|
5623
|
-
});
|
|
5624
|
-
if (resp?.link) {
|
|
5625
|
-
navigator.assign(resp.link);
|
|
5626
|
-
globalThis.location.href = resp.link;
|
|
5627
|
-
}
|
|
5628
|
-
}, []);
|
|
5629
|
-
const handleClose = useCallback(() => {
|
|
5630
|
-
if (retailFormStore.leadForm) {
|
|
5631
|
-
const leadForm = { ...retailFormStore.leadForm };
|
|
5632
|
-
delete leadForm.esiaAccountTypeCd;
|
|
5633
|
-
retailFormStore.leadForm = leadForm;
|
|
5634
|
-
}
|
|
5635
|
-
onClose?.();
|
|
5636
|
-
}, []);
|
|
5637
|
-
return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex items-center justify-around w-full px-m", children: [jsxs("ul", { className: "list-disc", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), jsxs("div", { className: "@container flex flex-wrap gap-lg w-full", children: [jsx(Button, { type: "button", onClick: handleAuth, className: "w-full md:w-auto", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), jsx(Button, { type: "button", version: "secondary", onClick: handleClose, className: "w-full md:w-auto", children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
|
|
5638
|
-
});
|
|
5639
|
-
|
|
5640
|
-
const useEsiaLoginDialog = (nextStepLink) => {
|
|
5641
|
-
const { open } = useDialog(EsiaLoginDialog);
|
|
5642
|
-
const navigator = locationNavigator();
|
|
5643
|
-
return useCallback(() => {
|
|
5644
|
-
open({ onClose: () => navigator.assign(nextStepLink) });
|
|
5645
|
-
}, [open, nextStepLink]);
|
|
5646
|
-
};
|
|
5647
|
-
|
|
5648
5632
|
// TODO Не должно быть импортов из бизнес-слоя в API слой. Только наоборот.
|
|
5649
5633
|
const getUpdateUserProfileData = (profileId, formData, consents) => {
|
|
5650
5634
|
const { name = '', surname = '', middleName = '', limitedBirthday = '', phone = '', email = '', } = formData;
|
|
@@ -5766,79 +5750,80 @@
|
|
|
5766
5750
|
|
|
5767
5751
|
/* eslint-disable max-lines */
|
|
5768
5752
|
// eslint-disable-next-line max-lines-per-function
|
|
5769
|
-
const useApplicationLeadApi = ({ programId, nextStepLink, productType,
|
|
5753
|
+
const useApplicationLeadApi = ({ programId, nextStepLink, productType, data, }) => {
|
|
5770
5754
|
const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
|
|
5771
5755
|
const [ok, setOK] = useState();
|
|
5772
5756
|
const saveUserData = useSaveUserData();
|
|
5773
5757
|
const sendAspects = useSendLeadFormAspects({ data });
|
|
5774
5758
|
const navigator = locationNavigator();
|
|
5775
|
-
const
|
|
5776
|
-
|
|
5759
|
+
const goToNextStep = useCallback(() => {
|
|
5760
|
+
navigator.assign(nextStepLink);
|
|
5761
|
+
}, []);
|
|
5762
|
+
const consentBkiDialog = useConsentBkiDialog(goToNextStep);
|
|
5777
5763
|
const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
|
|
5778
5764
|
const draftDialog = useDraftDialog();
|
|
5779
5765
|
const handleSubmit = useCallback(async (formData) => {
|
|
5780
|
-
if (esiaError) {
|
|
5781
|
-
navigator.assign(nextStepLink);
|
|
5782
|
-
return;
|
|
5783
|
-
}
|
|
5784
5766
|
try {
|
|
5785
5767
|
startSending();
|
|
5786
5768
|
const transformedFormData = transformFormData(formData);
|
|
5787
5769
|
const profileId = await createUserProfile({
|
|
5788
5770
|
profile: { phone: formatPhone(transformedFormData.phone) },
|
|
5789
5771
|
});
|
|
5790
|
-
if (profileId
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5772
|
+
if (!profileId) {
|
|
5773
|
+
throw new Error();
|
|
5774
|
+
}
|
|
5775
|
+
const sendCurrentTask = async () => {
|
|
5776
|
+
await updateUserData({
|
|
5777
|
+
programId,
|
|
5778
|
+
profileId,
|
|
5779
|
+
formData: transformedFormData,
|
|
5780
|
+
productType,
|
|
5781
|
+
saveUserData,
|
|
5782
|
+
sendAspects,
|
|
5783
|
+
});
|
|
5784
|
+
verifyPhoneDialog.close();
|
|
5785
|
+
if (productType === 'debitCard') {
|
|
5786
|
+
goToNextStep();
|
|
5787
|
+
}
|
|
5788
|
+
else {
|
|
5789
|
+
consentBkiDialog.open(transformedFormData.phone, profileId);
|
|
5790
|
+
}
|
|
5791
|
+
};
|
|
5792
|
+
const handleSuccessVerify = async () => {
|
|
5793
|
+
try {
|
|
5794
|
+
const lastTaskId = await getLastTaskStatus({ profileId, programId });
|
|
5795
|
+
if (lastTaskId) {
|
|
5796
|
+
const task = await getTaskById({ taskId: lastTaskId });
|
|
5797
|
+
verifyPhoneDialog.close();
|
|
5798
|
+
draftDialog.open({
|
|
5799
|
+
task,
|
|
5800
|
+
isFromLead: true,
|
|
5801
|
+
sendAspects,
|
|
5802
|
+
onClose: sendCurrentTask,
|
|
5803
|
+
});
|
|
5803
5804
|
}
|
|
5804
5805
|
else {
|
|
5805
|
-
|
|
5806
|
-
}
|
|
5807
|
-
};
|
|
5808
|
-
const handleSuccessVerify = async () => {
|
|
5809
|
-
try {
|
|
5810
|
-
const lastTaskId = await getLastTaskStatus({ profileId, programId });
|
|
5811
|
-
if (lastTaskId) {
|
|
5812
|
-
const task = await getTaskById({ taskId: lastTaskId });
|
|
5813
|
-
verifyPhoneDialog.close();
|
|
5814
|
-
draftDialog.open({
|
|
5815
|
-
task,
|
|
5816
|
-
isFromLead: true,
|
|
5817
|
-
sendAspects,
|
|
5818
|
-
onClose: sendCurrentTask,
|
|
5819
|
-
});
|
|
5820
|
-
}
|
|
5821
|
-
else {
|
|
5822
|
-
await sendCurrentTask();
|
|
5823
|
-
}
|
|
5824
|
-
}
|
|
5825
|
-
catch {
|
|
5826
|
-
setOK(false);
|
|
5806
|
+
await sendCurrentTask();
|
|
5827
5807
|
}
|
|
5828
|
-
}
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5808
|
+
}
|
|
5809
|
+
catch {
|
|
5810
|
+
setOK(false);
|
|
5811
|
+
}
|
|
5812
|
+
};
|
|
5813
|
+
const acceptedConsents = getAcceptedConsents(transformedFormData, productType);
|
|
5814
|
+
verifyPhoneDialog.open({
|
|
5815
|
+
phone: transformedFormData.phone,
|
|
5816
|
+
consents: acceptedConsents,
|
|
5817
|
+
onSuccess: handleSuccessVerify,
|
|
5818
|
+
});
|
|
5837
5819
|
}
|
|
5838
5820
|
catch {
|
|
5839
5821
|
setOK(false);
|
|
5840
5822
|
}
|
|
5841
|
-
|
|
5823
|
+
finally {
|
|
5824
|
+
endSending();
|
|
5825
|
+
}
|
|
5826
|
+
}, []);
|
|
5842
5827
|
return { isSending, ok, handleSubmit };
|
|
5843
5828
|
};
|
|
5844
5829
|
const getAcceptedConsents = (formData, productType) => {
|
|
@@ -5927,7 +5912,10 @@
|
|
|
5927
5912
|
}
|
|
5928
5913
|
}, [target, key]);
|
|
5929
5914
|
|
|
5930
|
-
const
|
|
5915
|
+
const esiaRequestProfile = (body) => fetchRetailJSON('/esia/requestProfile', 'POST', body).then((res) => {
|
|
5916
|
+
saveToken(res);
|
|
5917
|
+
return res;
|
|
5918
|
+
});
|
|
5931
5919
|
|
|
5932
5920
|
const initialFormState = {
|
|
5933
5921
|
surname: '',
|
|
@@ -5945,19 +5933,24 @@
|
|
|
5945
5933
|
consentPhotoFlg: false,
|
|
5946
5934
|
consentFATCA: false,
|
|
5947
5935
|
};
|
|
5948
|
-
const getInitialFormState$1 = (inputs, savedForm) => {
|
|
5936
|
+
const getInitialFormState$1 = (inputs, savedForm, esiaAuthSuccess) => {
|
|
5949
5937
|
if (savedForm) {
|
|
5950
|
-
return {
|
|
5938
|
+
return {
|
|
5939
|
+
...savedForm,
|
|
5940
|
+
limitedBirthday: new Date(savedForm?.limitedBirthday || 0),
|
|
5941
|
+
...(!esiaAuthSuccess && {
|
|
5942
|
+
esiaAccountTypeCd: { key: '' },
|
|
5943
|
+
}),
|
|
5944
|
+
};
|
|
5951
5945
|
}
|
|
5952
5946
|
const formState = Object.fromEntries(inputs.map((_) => [_.name, initialFormState[_.name || '']]));
|
|
5953
5947
|
return { ...formState };
|
|
5954
5948
|
};
|
|
5955
5949
|
|
|
5956
|
-
const uploadFile = async (file,
|
|
5950
|
+
const uploadFile = async (file, documentCategory, isPDF = false) => {
|
|
5957
5951
|
const fd = new FormData();
|
|
5958
|
-
fd.append('taskId', taskId);
|
|
5959
5952
|
fd.append('documentCategory', documentCategory);
|
|
5960
|
-
fd.append('file', file, '
|
|
5953
|
+
fd.append('file', file, `file.${isPDF ? 'pdf' : 'xml'}`);
|
|
5961
5954
|
const res = await globalThis
|
|
5962
5955
|
?.fetch?.(`/light-api-cash/v1/file`, {
|
|
5963
5956
|
method: 'POST',
|
|
@@ -5971,23 +5964,13 @@
|
|
|
5971
5964
|
return res;
|
|
5972
5965
|
};
|
|
5973
5966
|
|
|
5974
|
-
const parseEsiaProfile = async (esiaProfile,
|
|
5975
|
-
|
|
5967
|
+
const parseEsiaProfile = async (esiaProfile, isDebit) => {
|
|
5968
|
+
checkEsiaData(esiaProfile);
|
|
5969
|
+
const isFullEsiaData = !isDebit && checkEsiaAdditionalDocument(esiaProfile);
|
|
5976
5970
|
const { profile, addInfo, document, addressRegistration, addressFact, esiaAdditionalDocument } = esiaProfile;
|
|
5977
|
-
|
|
5978
|
-
if (
|
|
5979
|
-
await
|
|
5980
|
-
document: esiaAdditionalDocument.pdfFileWorkbook,
|
|
5981
|
-
taskId,
|
|
5982
|
-
category: 'CONFIRMING_INCOME_DOC',
|
|
5983
|
-
files,
|
|
5984
|
-
});
|
|
5985
|
-
await saveDocument({
|
|
5986
|
-
document: esiaAdditionalDocument.pdfFilePayout,
|
|
5987
|
-
taskId,
|
|
5988
|
-
category: 'CONFIRMING_EMPLOYMENT_DOC',
|
|
5989
|
-
files,
|
|
5990
|
-
});
|
|
5971
|
+
let files = [];
|
|
5972
|
+
if (isFullEsiaData) {
|
|
5973
|
+
files = await saveDocuments(esiaAdditionalDocument);
|
|
5991
5974
|
}
|
|
5992
5975
|
const mainData = {
|
|
5993
5976
|
name: profile.name,
|
|
@@ -6004,11 +5987,11 @@
|
|
|
6004
5987
|
birthPlace: addInfo.birthPlace,
|
|
6005
5988
|
addressRegistration: buildAddress(addressRegistration),
|
|
6006
5989
|
addressFact: buildAddress(addressFact),
|
|
6007
|
-
esiaAccountTypeCd: profile.esiaAccountType,
|
|
5990
|
+
esiaAccountTypeCd: isDebit ? profile.esiaAccountType : { key: '' },
|
|
6008
5991
|
};
|
|
6009
5992
|
return {
|
|
6010
5993
|
...mainData,
|
|
6011
|
-
...(
|
|
5994
|
+
...(isFullEsiaData && {
|
|
6012
5995
|
snils: addInfo.snils,
|
|
6013
5996
|
inn: esiaAdditionalDocument.inn,
|
|
6014
5997
|
wages: Math.floor(esiaAdditionalDocument.averageMonthlyIncome)?.toString(),
|
|
@@ -6017,6 +6000,9 @@
|
|
|
6017
6000
|
generalSeniority: getYearFromMonth(esiaAdditionalDocument.workLength).toString(),
|
|
6018
6001
|
lastJobExperience: getYearFromMonth(esiaAdditionalDocument.workLengthLastJob).toString(),
|
|
6019
6002
|
jobsNumber: esiaAdditionalDocument.jobsNumberInFiveYears.toString(),
|
|
6003
|
+
esiaAccountTypeCd: profile.esiaAccountType,
|
|
6004
|
+
confirmationIncome: { key: 'SFR_CERTIFICATE', text: 'Запрос Банком доходов из СФР' },
|
|
6005
|
+
employment: { key: 'WORK', text: 'Работаю' },
|
|
6020
6006
|
files,
|
|
6021
6007
|
}),
|
|
6022
6008
|
};
|
|
@@ -6049,43 +6035,60 @@
|
|
|
6049
6035
|
};
|
|
6050
6036
|
};
|
|
6051
6037
|
const getYearFromMonth = (month) => Math.floor(month / 12);
|
|
6052
|
-
const
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6038
|
+
const saveDocuments = async (esiaAdditionalDocument) => {
|
|
6039
|
+
const files = [];
|
|
6040
|
+
const documents = [
|
|
6041
|
+
{
|
|
6042
|
+
file: esiaAdditionalDocument.pdfFileWorkbook,
|
|
6043
|
+
category: 'CONFIRMING_INCOME_DOC',
|
|
6044
|
+
isPDF: true,
|
|
6045
|
+
},
|
|
6046
|
+
{
|
|
6047
|
+
file: esiaAdditionalDocument.pdfFilePayout,
|
|
6048
|
+
category: 'CONFIRMING_EMPLOYMENT_DOC',
|
|
6049
|
+
isPDF: true,
|
|
6050
|
+
},
|
|
6051
|
+
{
|
|
6052
|
+
file: esiaAdditionalDocument.pdfFileSigPayout,
|
|
6053
|
+
category: 'CONFIRMING_EMPLOYMENT_DOC',
|
|
6054
|
+
isPDF: true,
|
|
6055
|
+
},
|
|
6056
|
+
{
|
|
6057
|
+
file: esiaAdditionalDocument.xmlFilePayout,
|
|
6058
|
+
category: 'CONFIRMING_EMPLOYMENT_DOC',
|
|
6059
|
+
isPDF: false,
|
|
6060
|
+
},
|
|
6061
|
+
{
|
|
6062
|
+
file: esiaAdditionalDocument.xmlFileSigPayout,
|
|
6063
|
+
category: 'CONFIRMING_EMPLOYMENT_DOC',
|
|
6064
|
+
isPDF: false,
|
|
6065
|
+
},
|
|
6066
|
+
{
|
|
6067
|
+
file: esiaAdditionalDocument.xmlFileWorkbook,
|
|
6068
|
+
category: 'CONFIRMING_INCOME_DOC',
|
|
6069
|
+
isPDF: false,
|
|
6070
|
+
},
|
|
6071
|
+
{
|
|
6072
|
+
file: esiaAdditionalDocument.pdfFileSigWorkbook,
|
|
6073
|
+
category: 'CONFIRMING_INCOME_DOC',
|
|
6074
|
+
isPDF: true,
|
|
6075
|
+
},
|
|
6076
|
+
{
|
|
6077
|
+
file: esiaAdditionalDocument.xmlFileSigWorkbook,
|
|
6078
|
+
category: 'CONFIRMING_INCOME_DOC',
|
|
6079
|
+
isPDF: false,
|
|
6080
|
+
},
|
|
6083
6081
|
];
|
|
6084
|
-
|
|
6085
|
-
|
|
6082
|
+
for (const doc of documents) {
|
|
6083
|
+
const contentType = doc.isPDF ? 'data:application/pdf;base64' : 'data:application/xml;base64';
|
|
6084
|
+
await fetch(`${contentType},${doc.file}`)
|
|
6085
|
+
.then((res) => res.blob())
|
|
6086
|
+
.then((value) => uploadFile(value, doc.category, doc.isPDF))
|
|
6087
|
+
.then((file) => files.push(file));
|
|
6086
6088
|
}
|
|
6089
|
+
return files;
|
|
6087
6090
|
};
|
|
6088
|
-
const
|
|
6091
|
+
const checkEsiaData = (esiaProfile) => {
|
|
6089
6092
|
const { profile, document, addressRegistration } = esiaProfile;
|
|
6090
6093
|
const data = [
|
|
6091
6094
|
profile.name,
|
|
@@ -6093,7 +6096,6 @@
|
|
|
6093
6096
|
profile.midname,
|
|
6094
6097
|
profile.birthDate,
|
|
6095
6098
|
profile.phone,
|
|
6096
|
-
profile.email,
|
|
6097
6099
|
document.dulIssueDate,
|
|
6098
6100
|
document.dulIssuedBy,
|
|
6099
6101
|
document.dulNumber,
|
|
@@ -6102,79 +6104,101 @@
|
|
|
6102
6104
|
addressRegistration,
|
|
6103
6105
|
profile.esiaAccountType,
|
|
6104
6106
|
];
|
|
6105
|
-
if (!data.every(
|
|
6107
|
+
if (!data.every(Boolean)) {
|
|
6106
6108
|
throw new Error();
|
|
6107
6109
|
}
|
|
6108
6110
|
};
|
|
6111
|
+
const checkEsiaAdditionalDocument = (esiaProfile) => {
|
|
6112
|
+
const { esiaAdditionalDocument } = esiaProfile;
|
|
6113
|
+
const data = [
|
|
6114
|
+
esiaAdditionalDocument?.inn,
|
|
6115
|
+
esiaAdditionalDocument?.averageMonthlyIncome?.toString(),
|
|
6116
|
+
esiaAdditionalDocument?.startWorkDate,
|
|
6117
|
+
esiaAdditionalDocument?.workLengthInFiveYears?.toString(),
|
|
6118
|
+
esiaAdditionalDocument?.workLength?.toString(),
|
|
6119
|
+
esiaAdditionalDocument?.workLengthLastJob?.toString(),
|
|
6120
|
+
esiaAdditionalDocument?.jobsNumberInFiveYears?.toString(),
|
|
6121
|
+
esiaAdditionalDocument?.pdfFilePayout,
|
|
6122
|
+
esiaAdditionalDocument?.pdfFileWorkbook,
|
|
6123
|
+
esiaAdditionalDocument?.pdfFileSigPayout,
|
|
6124
|
+
esiaAdditionalDocument?.xmlFilePayout,
|
|
6125
|
+
esiaAdditionalDocument?.xmlFileSigPayout,
|
|
6126
|
+
esiaAdditionalDocument?.xmlFileWorkbook,
|
|
6127
|
+
esiaAdditionalDocument?.pdfFileSigWorkbook,
|
|
6128
|
+
esiaAdditionalDocument?.xmlFileSigWorkbook,
|
|
6129
|
+
];
|
|
6130
|
+
return data.every(Boolean);
|
|
6131
|
+
};
|
|
6109
6132
|
|
|
6110
|
-
const useInitApplicationLead = ({ inputs,
|
|
6111
|
-
const navigator = locationNavigator();
|
|
6112
|
-
const [isLoading, { setTrue: startLoading, setFalse: endLoading }] = useBool(false);
|
|
6133
|
+
const useInitApplicationLead = ({ inputs, productType, setEsiaStatus, esiaAuthSuccess, }) => {
|
|
6113
6134
|
const leadFormStore = useLeadFormStore();
|
|
6114
6135
|
const saveForm = useSetter(leadFormStore, 'leadForm');
|
|
6115
|
-
const initialFormState = useMemo(() => getInitialFormState$1(inputs, leadFormStore.leadForm), [inputs, leadFormStore.leadForm]);
|
|
6116
|
-
const
|
|
6117
|
-
|
|
6136
|
+
const initialFormState = useMemo(() => getInitialFormState$1(inputs, leadFormStore.leadForm, esiaAuthSuccess), [inputs, leadFormStore.leadForm]);
|
|
6137
|
+
const requestEsiaProfile = useCallback(async (code, state) => {
|
|
6138
|
+
setEsiaStatus(EsiaStatuses.Pending);
|
|
6118
6139
|
try {
|
|
6119
|
-
const data = await
|
|
6120
|
-
profileId,
|
|
6140
|
+
const data = await esiaRequestProfile({
|
|
6121
6141
|
code,
|
|
6122
6142
|
state,
|
|
6123
6143
|
redirectUri: globalThis.location?.href,
|
|
6144
|
+
authorize: true,
|
|
6124
6145
|
});
|
|
6125
|
-
if (data
|
|
6126
|
-
const parsedData = await parseEsiaProfile(data,
|
|
6146
|
+
if (data) {
|
|
6147
|
+
const parsedData = await parseEsiaProfile(data, productType === 'debitCard');
|
|
6127
6148
|
saveForm((_) => ({
|
|
6128
6149
|
..._,
|
|
6129
6150
|
...parsedData,
|
|
6130
6151
|
}));
|
|
6152
|
+
setEsiaStatus(EsiaStatuses.Success);
|
|
6131
6153
|
}
|
|
6132
|
-
navigator.assign(nextStepLink);
|
|
6133
6154
|
}
|
|
6134
6155
|
catch {
|
|
6135
|
-
|
|
6136
|
-
}
|
|
6137
|
-
finally {
|
|
6138
|
-
endLoading();
|
|
6156
|
+
setEsiaStatus(EsiaStatuses.Error);
|
|
6139
6157
|
}
|
|
6140
|
-
}, [
|
|
6158
|
+
}, []);
|
|
6141
6159
|
useEffect(() => {
|
|
6142
6160
|
leadFormStore.productType = productType;
|
|
6143
|
-
const profileId = (safeJsonParse(globalThis.localStorage?.getItem('profileId') ?? ''));
|
|
6144
6161
|
const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
|
|
6145
6162
|
const code = params.get('code');
|
|
6146
6163
|
const state = params.get('state');
|
|
6147
|
-
if (
|
|
6148
|
-
|
|
6164
|
+
if (code && state) {
|
|
6165
|
+
requestEsiaProfile(code, state);
|
|
6149
6166
|
}
|
|
6150
6167
|
else {
|
|
6151
6168
|
sessionStorage.removeItem('accessToken');
|
|
6152
6169
|
sessionStorage.removeItem('refreshToken');
|
|
6153
6170
|
}
|
|
6154
6171
|
}, []);
|
|
6155
|
-
return
|
|
6172
|
+
return initialFormState;
|
|
6156
6173
|
};
|
|
6157
6174
|
|
|
6175
|
+
var EsiaStatuses;
|
|
6176
|
+
(function (EsiaStatuses) {
|
|
6177
|
+
EsiaStatuses["Success"] = "SUCCESS";
|
|
6178
|
+
EsiaStatuses["Error"] = "ERROR";
|
|
6179
|
+
EsiaStatuses["Pending"] = "PENDING";
|
|
6180
|
+
})(EsiaStatuses || (EsiaStatuses = {}));
|
|
6158
6181
|
const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, ...rest }) => {
|
|
6159
|
-
const [
|
|
6182
|
+
const [esiaStatus, setEsiaStatus] = useState();
|
|
6183
|
+
const leadForm = useRef(null);
|
|
6160
6184
|
const applicationFormData = useMemo(() => getApplicationFormData(productType), [productType]);
|
|
6161
6185
|
const inputs = useMemo(() => getInputs(applicationFormData), [applicationFormData]);
|
|
6162
6186
|
const extendedValidatorObj = useMemo(() => getExtendedValidatorObj(productType), [productType]);
|
|
6163
6187
|
const formValidator = useMemo(() => getFormValidator(inputs, extendedValidatorObj), [inputs, extendedValidatorObj]);
|
|
6164
|
-
const
|
|
6188
|
+
const initialFormState = useInitApplicationLead({
|
|
6165
6189
|
inputs,
|
|
6166
6190
|
nextStepLink,
|
|
6167
6191
|
productType,
|
|
6168
|
-
|
|
6192
|
+
setEsiaStatus,
|
|
6193
|
+
esiaAuthSuccess: esiaStatus === EsiaStatuses.Success,
|
|
6169
6194
|
});
|
|
6170
6195
|
const { isSending, ok, handleSubmit } = useApplicationLeadApi({
|
|
6171
6196
|
programId,
|
|
6172
6197
|
nextStepLink,
|
|
6173
6198
|
productType,
|
|
6174
|
-
esiaError,
|
|
6175
6199
|
data,
|
|
6176
6200
|
});
|
|
6177
|
-
const [, { field, onSubmit }] = useForm(initialFormState, {
|
|
6201
|
+
const [, { field, onSubmit, reset }] = useForm(initialFormState, {
|
|
6178
6202
|
formValidator,
|
|
6179
6203
|
onSubmit: handleSubmit,
|
|
6180
6204
|
});
|
|
@@ -6184,7 +6208,17 @@
|
|
|
6184
6208
|
responseTypeDialog.open({ ok });
|
|
6185
6209
|
}
|
|
6186
6210
|
}, [ok]);
|
|
6187
|
-
|
|
6211
|
+
useEffect(() => {
|
|
6212
|
+
if (esiaStatus && leadForm?.current) {
|
|
6213
|
+
leadForm.current.scrollIntoView({
|
|
6214
|
+
block: 'start',
|
|
6215
|
+
});
|
|
6216
|
+
}
|
|
6217
|
+
if (esiaStatus === EsiaStatuses.Success) {
|
|
6218
|
+
reset();
|
|
6219
|
+
}
|
|
6220
|
+
}, [leadForm?.current, esiaStatus]);
|
|
6221
|
+
return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [!esiaStatus ? jsx(EsiaLoginBanner, {}) : null, jsxs("form", { onSubmit: onSubmit, className: "space-y-m relative", ref: leadForm, children: [esiaStatus === EsiaStatuses.Pending ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$1({ field, inputs: _?.inputs }, productType)] }, `section-${i}`))), renderSubmitButton(button, isSending), esiaStatus === EsiaStatuses.Error ? (jsx(Text, { size: "text-m", font: "font-medium", color: "text-error", children: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438 \u0434\u043B\u044F \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0437\u0430\u044F\u0432\u043A\u0438 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0432\u0440\u0443\u0447\u043D\u0443\u044E." })) : null] })] }));
|
|
6188
6222
|
});
|
|
6189
6223
|
const getInputs = (applicationFormData) => (applicationFormData?.flatMap((_) => _?.inputs) || []);
|
|
6190
6224
|
const getExtendedValidatorObj = (productType) => ({
|
|
@@ -7798,7 +7832,11 @@
|
|
|
7798
7832
|
|
|
7799
7833
|
const renderStep = ({ sections, field, step, params, }) => sections?.map(({ inputs: origInputs = [], columns, title, condition }, i) => {
|
|
7800
7834
|
const inputs = calculateInputs(getValue(field))(origInputs, step);
|
|
7801
|
-
|
|
7835
|
+
const cleanElements = [
|
|
7836
|
+
!checkCondition({ condition }, getValue(field)) ? renderTitle(title) : null,
|
|
7837
|
+
...renderInputs({ field, inputs, params }),
|
|
7838
|
+
].filter(Boolean);
|
|
7839
|
+
return cleanElements.length ? (jsx("div", { className: style(inputColumnStyles(columns), 'grid gap-x-m'), children: cleanElements }, `section-${i}`)) : null;
|
|
7802
7840
|
});
|
|
7803
7841
|
const getValue = (field) => (name) => field(name)?.value;
|
|
7804
7842
|
|
|
@@ -7888,6 +7926,7 @@
|
|
|
7888
7926
|
mandatoryPayments: undefined,
|
|
7889
7927
|
snils: '',
|
|
7890
7928
|
armyIdFlg: false,
|
|
7929
|
+
esiaAccountTypeCd: { key: '', text: '' },
|
|
7891
7930
|
},
|
|
7892
7931
|
{
|
|
7893
7932
|
bankruptcyFlg: false,
|
|
@@ -8282,7 +8321,7 @@
|
|
|
8282
8321
|
label: 'Телефон работодателя',
|
|
8283
8322
|
required: true,
|
|
8284
8323
|
},
|
|
8285
|
-
{ name: 'beginDate', required: true },
|
|
8324
|
+
{ name: 'beginDate', required: true, filledByEsia: true },
|
|
8286
8325
|
],
|
|
8287
8326
|
},
|
|
8288
8327
|
{
|
|
@@ -8324,16 +8363,22 @@
|
|
|
8324
8363
|
title: 'Совокупный доход',
|
|
8325
8364
|
},
|
|
8326
8365
|
{
|
|
8366
|
+
columns: 1,
|
|
8327
8367
|
inputs: [
|
|
8328
8368
|
{
|
|
8329
|
-
name: '
|
|
8330
|
-
|
|
8369
|
+
name: 'confirmationIncome',
|
|
8370
|
+
required: true,
|
|
8371
|
+
filledByEsia: true,
|
|
8331
8372
|
},
|
|
8332
8373
|
],
|
|
8333
8374
|
},
|
|
8334
8375
|
{
|
|
8335
|
-
|
|
8336
|
-
|
|
8376
|
+
inputs: [
|
|
8377
|
+
{
|
|
8378
|
+
name: 'infoCard',
|
|
8379
|
+
label: 'Сумма основного и дополнительных доходов после вычета налога',
|
|
8380
|
+
},
|
|
8381
|
+
],
|
|
8337
8382
|
},
|
|
8338
8383
|
{
|
|
8339
8384
|
columns: 1,
|
|
@@ -10929,7 +10974,7 @@
|
|
|
10929
10974
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10930
10975
|
});
|
|
10931
10976
|
|
|
10932
|
-
const packageVersion = "0.14.
|
|
10977
|
+
const packageVersion = "0.14.827";
|
|
10933
10978
|
|
|
10934
10979
|
exports.Blocks = Blocks;
|
|
10935
10980
|
exports.ContentPage = ContentPage;
|