@redneckz/wildless-cms-uni-blocks 0.14.631 → 0.14.633
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/api/RetailAPI/updateUserTask.d.ts +93 -22
- package/bundle/api/dadataHints/dadataHintsType.d.ts +15 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +330 -111
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +37 -18
- package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
- package/bundle/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts +0 -1
- package/bundle/components/CreditForm/getCreditFormTaskData.d.ts +11 -0
- package/bundle/components/CreditForm/getFirstStepData.d.ts +3 -0
- package/bundle/components/CreditForm/getFourthStepData.d.ts +3 -0
- package/bundle/components/CreditForm/getInitialFormState.d.ts +22 -21
- package/bundle/components/CreditForm/getSecondStepData.d.ts +3 -0
- package/bundle/components/CreditForm/getThirdStepData.d.ts +3 -0
- package/bundle/components/CreditForm/useCreditFormApi.d.ts +2 -1
- package/bundle/components/CreditForm/utils.d.ts +18 -0
- package/bundle/ui-kit/Calculator/UnknownRate.d.ts +0 -1
- package/bundle/ui-kit/Calculator/renderRate.d.ts +1 -2
- package/bundle/ui-kit/FormField/Fields/AddressField.d.ts +2 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/api/RetailAPI/updateUserTask.d.ts +93 -22
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/dist/api/dadataHints/dadataHintsType.d.ts +15 -1
- package/dist/api/dadataHints/hintsListsOptions.js +3 -2
- package/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +37 -18
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +38 -0
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -0
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +2 -2
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/CalculatorBonus/CalculatorBonus.js +0 -1
- package/dist/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
- package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +1 -2
- package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
- package/dist/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts +0 -1
- package/dist/components/CalculatorBusinessDeposit/useBusinessDepositParams.js +0 -9
- package/dist/components/CalculatorBusinessDeposit/useBusinessDepositParams.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStep.js +1 -0
- package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js +9 -4
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/getCreditFormTaskData.d.ts +11 -0
- package/dist/components/CreditForm/getCreditFormTaskData.js +47 -0
- package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -0
- package/dist/components/CreditForm/getFirstStepData.d.ts +3 -0
- package/dist/components/CreditForm/getFirstStepData.js +35 -0
- package/dist/components/CreditForm/getFirstStepData.js.map +1 -0
- package/dist/components/CreditForm/getFourthStepData.d.ts +3 -0
- package/dist/components/CreditForm/getFourthStepData.js +13 -0
- package/dist/components/CreditForm/getFourthStepData.js.map +1 -0
- package/dist/components/CreditForm/getInitialFormState.d.ts +22 -21
- package/dist/components/CreditForm/getInitialFormState.js +30 -21
- package/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditForm/getSecondStepData.d.ts +3 -0
- package/dist/components/CreditForm/getSecondStepData.js +28 -0
- package/dist/components/CreditForm/getSecondStepData.js.map +1 -0
- package/dist/components/CreditForm/getThirdStepData.d.ts +3 -0
- package/dist/components/CreditForm/getThirdStepData.js +19 -0
- package/dist/components/CreditForm/getThirdStepData.js.map +1 -0
- package/dist/components/CreditForm/useCreditFormApi.d.ts +2 -1
- package/dist/components/CreditForm/useCreditFormApi.js +17 -3
- package/dist/components/CreditForm/useCreditFormApi.js.map +1 -1
- package/dist/components/CreditForm/utils.d.ts +18 -0
- package/dist/components/CreditForm/utils.js +62 -0
- package/dist/components/CreditForm/utils.js.map +1 -0
- package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/dist/ui-kit/Calculator/UnknownRate.d.ts +0 -1
- package/dist/ui-kit/Calculator/UnknownRate.js +1 -1
- package/dist/ui-kit/Calculator/UnknownRate.js.map +1 -1
- package/dist/ui-kit/Calculator/renderRate.d.ts +1 -2
- package/dist/ui-kit/Calculator/renderRate.js +1 -1
- package/dist/ui-kit/Calculator/renderRate.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AddressField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/AddressField.js +36 -0
- package/dist/ui-kit/FormField/Fields/AddressField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/DependentsField.js +1 -1
- package/dist/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulNumberField.js +1 -1
- package/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulSerieField.js +1 -1
- package/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +1 -1
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/EmploymentField.js +1 -1
- package/dist/ui-kit/FormField/Fields/EmploymentField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/Experience5YearsField.js +1 -1
- package/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/FamilyMembersField.js +1 -1
- package/dist/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +1 -1
- package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/JobsNumberField.js +1 -1
- package/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +1 -1
- package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +1 -1
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PhoneField.js +1 -1
- package/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/SelectField.js +7 -3
- package/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/dist/ui-kit/FormField/getField.js +5 -4
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +4 -2
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/api/RetailAPI/updateUserTask.d.ts +93 -22
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/lib/api/dadataHints/dadataHintsType.d.ts +15 -1
- package/lib/api/dadataHints/hintsListsOptions.js +3 -2
- package/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +37 -18
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +35 -0
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -0
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +2 -2
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/CalculatorBonus/CalculatorBonus.js +0 -1
- package/lib/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.fixture.d.ts +1 -0
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +1 -2
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
- package/lib/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts +0 -1
- package/lib/components/CalculatorBusinessDeposit/useBusinessDepositParams.js +0 -9
- package/lib/components/CalculatorBusinessDeposit/useBusinessDepositParams.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStep.js +1 -0
- package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js +9 -4
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/getCreditFormTaskData.d.ts +11 -0
- package/lib/components/CreditForm/getCreditFormTaskData.js +44 -0
- package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -0
- package/lib/components/CreditForm/getFirstStepData.d.ts +3 -0
- package/lib/components/CreditForm/getFirstStepData.js +32 -0
- package/lib/components/CreditForm/getFirstStepData.js.map +1 -0
- package/lib/components/CreditForm/getFourthStepData.d.ts +3 -0
- package/lib/components/CreditForm/getFourthStepData.js +10 -0
- package/lib/components/CreditForm/getFourthStepData.js.map +1 -0
- package/lib/components/CreditForm/getInitialFormState.d.ts +22 -21
- package/lib/components/CreditForm/getInitialFormState.js +30 -21
- package/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditForm/getSecondStepData.d.ts +3 -0
- package/lib/components/CreditForm/getSecondStepData.js +25 -0
- package/lib/components/CreditForm/getSecondStepData.js.map +1 -0
- package/lib/components/CreditForm/getThirdStepData.d.ts +3 -0
- package/lib/components/CreditForm/getThirdStepData.js +16 -0
- package/lib/components/CreditForm/getThirdStepData.js.map +1 -0
- package/lib/components/CreditForm/useCreditFormApi.d.ts +2 -1
- package/lib/components/CreditForm/useCreditFormApi.js +17 -3
- package/lib/components/CreditForm/useCreditFormApi.js.map +1 -1
- package/lib/components/CreditForm/utils.d.ts +18 -0
- package/lib/components/CreditForm/utils.js +57 -0
- package/lib/components/CreditForm/utils.js.map +1 -0
- package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/lib/ui-kit/Calculator/UnknownRate.d.ts +0 -1
- package/lib/ui-kit/Calculator/UnknownRate.js +1 -1
- package/lib/ui-kit/Calculator/UnknownRate.js.map +1 -1
- package/lib/ui-kit/Calculator/renderRate.d.ts +1 -2
- package/lib/ui-kit/Calculator/renderRate.js +1 -1
- package/lib/ui-kit/Calculator/renderRate.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/AddressField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/AddressField.js +34 -0
- package/lib/ui-kit/FormField/Fields/AddressField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/DependentsField.js +1 -1
- package/lib/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulNumberField.js +1 -1
- package/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulSerieField.js +1 -1
- package/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +1 -1
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/EmploymentField.js +1 -1
- package/lib/ui-kit/FormField/Fields/EmploymentField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/Experience5YearsField.js +1 -1
- package/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/FamilyMembersField.js +1 -1
- package/lib/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +1 -1
- package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/JobsNumberField.js +1 -1
- package/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +1 -1
- package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +1 -1
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PhoneField.js +1 -1
- package/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/SelectField.js +7 -3
- package/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/lib/ui-kit/FormField/getField.js +5 -4
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +4 -2
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +93 -22
- package/mobile/bundle/api/dadataHints/dadataHintsType.d.ts +15 -1
- package/mobile/bundle/bundle.umd.js +330 -111
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +37 -18
- package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
- package/mobile/bundle/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts +0 -1
- package/mobile/bundle/components/CreditForm/getCreditFormTaskData.d.ts +11 -0
- package/mobile/bundle/components/CreditForm/getFirstStepData.d.ts +3 -0
- package/mobile/bundle/components/CreditForm/getFourthStepData.d.ts +3 -0
- package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +22 -21
- package/mobile/bundle/components/CreditForm/getSecondStepData.d.ts +3 -0
- package/mobile/bundle/components/CreditForm/getThirdStepData.d.ts +3 -0
- package/mobile/bundle/components/CreditForm/useCreditFormApi.d.ts +2 -1
- package/mobile/bundle/components/CreditForm/utils.d.ts +18 -0
- package/mobile/bundle/ui-kit/Calculator/UnknownRate.d.ts +0 -1
- package/mobile/bundle/ui-kit/Calculator/renderRate.d.ts +1 -2
- package/mobile/bundle/ui-kit/FormField/Fields/AddressField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +93 -22
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/dist/api/dadataHints/dadataHintsType.d.ts +15 -1
- package/mobile/dist/api/dadataHints/hintsListsOptions.js +3 -2
- package/mobile/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +37 -18
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +38 -0
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -0
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +2 -2
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/CalculatorBonus/CalculatorBonus.js +0 -1
- package/mobile/dist/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
- package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +1 -2
- package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
- package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts +0 -1
- package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositParams.js +0 -9
- package/mobile/dist/components/CalculatorBusinessDeposit/useBusinessDepositParams.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStep.js +1 -0
- package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +9 -4
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.d.ts +11 -0
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +47 -0
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -0
- package/mobile/dist/components/CreditForm/getFirstStepData.d.ts +3 -0
- package/mobile/dist/components/CreditForm/getFirstStepData.js +35 -0
- package/mobile/dist/components/CreditForm/getFirstStepData.js.map +1 -0
- package/mobile/dist/components/CreditForm/getFourthStepData.d.ts +3 -0
- package/mobile/dist/components/CreditForm/getFourthStepData.js +13 -0
- package/mobile/dist/components/CreditForm/getFourthStepData.js.map +1 -0
- package/mobile/dist/components/CreditForm/getInitialFormState.d.ts +22 -21
- package/mobile/dist/components/CreditForm/getInitialFormState.js +30 -21
- package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditForm/getSecondStepData.d.ts +3 -0
- package/mobile/dist/components/CreditForm/getSecondStepData.js +28 -0
- package/mobile/dist/components/CreditForm/getSecondStepData.js.map +1 -0
- package/mobile/dist/components/CreditForm/getThirdStepData.d.ts +3 -0
- package/mobile/dist/components/CreditForm/getThirdStepData.js +19 -0
- package/mobile/dist/components/CreditForm/getThirdStepData.js.map +1 -0
- package/mobile/dist/components/CreditForm/useCreditFormApi.d.ts +2 -1
- package/mobile/dist/components/CreditForm/useCreditFormApi.js +17 -3
- package/mobile/dist/components/CreditForm/useCreditFormApi.js.map +1 -1
- package/mobile/dist/components/CreditForm/utils.d.ts +18 -0
- package/mobile/dist/components/CreditForm/utils.js +62 -0
- package/mobile/dist/components/CreditForm/utils.js.map +1 -0
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/UnknownRate.d.ts +0 -1
- package/mobile/dist/ui-kit/Calculator/UnknownRate.js +1 -1
- package/mobile/dist/ui-kit/Calculator/UnknownRate.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/renderRate.d.ts +1 -2
- package/mobile/dist/ui-kit/Calculator/renderRate.js +1 -1
- package/mobile/dist/ui-kit/Calculator/renderRate.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.js +36 -0
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/EmploymentField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/SelectField.js +7 -3
- package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +5 -4
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +4 -2
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +93 -22
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/lib/api/dadataHints/dadataHintsType.d.ts +15 -1
- package/mobile/lib/api/dadataHints/hintsListsOptions.js +3 -2
- package/mobile/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +37 -18
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +10 -0
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +35 -0
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +2 -2
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/CalculatorBonus/CalculatorBonus.js +0 -1
- package/mobile/lib/components/CalculatorBonus/CalculatorBonus.js.map +1 -1
- package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +1 -2
- package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
- package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositParams.d.ts +0 -1
- package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositParams.js +0 -9
- package/mobile/lib/components/CalculatorBusinessDeposit/useBusinessDepositParams.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStep.js +1 -0
- package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +9 -4
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.d.ts +11 -0
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +44 -0
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -0
- package/mobile/lib/components/CreditForm/getFirstStepData.d.ts +3 -0
- package/mobile/lib/components/CreditForm/getFirstStepData.js +32 -0
- package/mobile/lib/components/CreditForm/getFirstStepData.js.map +1 -0
- package/mobile/lib/components/CreditForm/getFourthStepData.d.ts +3 -0
- package/mobile/lib/components/CreditForm/getFourthStepData.js +10 -0
- package/mobile/lib/components/CreditForm/getFourthStepData.js.map +1 -0
- package/mobile/lib/components/CreditForm/getInitialFormState.d.ts +22 -21
- package/mobile/lib/components/CreditForm/getInitialFormState.js +30 -21
- package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditForm/getSecondStepData.d.ts +3 -0
- package/mobile/lib/components/CreditForm/getSecondStepData.js +25 -0
- package/mobile/lib/components/CreditForm/getSecondStepData.js.map +1 -0
- package/mobile/lib/components/CreditForm/getThirdStepData.d.ts +3 -0
- package/mobile/lib/components/CreditForm/getThirdStepData.js +16 -0
- package/mobile/lib/components/CreditForm/getThirdStepData.js.map +1 -0
- package/mobile/lib/components/CreditForm/useCreditFormApi.d.ts +2 -1
- package/mobile/lib/components/CreditForm/useCreditFormApi.js +17 -3
- package/mobile/lib/components/CreditForm/useCreditFormApi.js.map +1 -1
- package/mobile/lib/components/CreditForm/utils.d.ts +18 -0
- package/mobile/lib/components/CreditForm/utils.js +57 -0
- package/mobile/lib/components/CreditForm/utils.js.map +1 -0
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
- package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/UnknownRate.d.ts +0 -1
- package/mobile/lib/ui-kit/Calculator/UnknownRate.js +1 -1
- package/mobile/lib/ui-kit/Calculator/UnknownRate.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/renderRate.d.ts +1 -2
- package/mobile/lib/ui-kit/Calculator/renderRate.js +1 -1
- package/mobile/lib/ui-kit/Calculator/renderRate.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.js +34 -0
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/EmploymentField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/FamilyMembersField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/SelectField.js +7 -3
- package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +5 -4
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +4 -2
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/src/api/RetailAPI/updateUserTask.ts +103 -22
- package/mobile/src/api/dadataHints/dadataHintsType.ts +18 -1
- package/mobile/src/api/dadataHints/hintsListsOptions.ts +3 -2
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +40 -19
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +50 -0
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +2 -2
- package/mobile/src/components/CalculatorBonus/CalculatorBonus.tsx +1 -1
- package/mobile/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx +2 -2
- package/mobile/src/components/CalculatorBusinessDeposit/useBusinessDepositParams.ts +1 -10
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +1 -0
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +9 -4
- package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +61 -0
- package/mobile/src/components/CreditForm/getFirstStepData.tsx +54 -0
- package/mobile/src/components/CreditForm/getFourthStepData.ts +13 -0
- package/mobile/src/components/CreditForm/getInitialFormState.tsx +52 -42
- package/mobile/src/components/CreditForm/getSecondStepData.tsx +44 -0
- package/mobile/src/components/CreditForm/getThirdStepData.ts +27 -0
- package/mobile/src/components/CreditForm/useCreditFormApi.tsx +22 -3
- package/mobile/src/components/CreditForm/utils.ts +69 -0
- package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/mobile/src/ui-kit/Calculator/UnknownRate.tsx +12 -22
- package/mobile/src/ui-kit/Calculator/renderRate.tsx +5 -7
- package/mobile/src/ui-kit/FormField/Fields/AddressField.tsx +47 -0
- package/mobile/src/ui-kit/FormField/Fields/DependentsField.tsx +1 -0
- package/mobile/src/ui-kit/FormField/Fields/DulNumberField.tsx +1 -0
- package/mobile/src/ui-kit/FormField/Fields/DulSerieField.tsx +1 -0
- package/mobile/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +2 -1
- package/mobile/src/ui-kit/FormField/Fields/EmploymentField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +1 -0
- package/mobile/src/ui-kit/FormField/Fields/FamilyMembersField.tsx +1 -0
- package/mobile/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +1 -0
- package/mobile/src/ui-kit/FormField/Fields/JobsNumberField.tsx +1 -0
- package/mobile/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +1 -0
- package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/PhoneField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +4 -2
- package/mobile/src/ui-kit/FormField/SelectField.tsx +8 -8
- package/mobile/src/ui-kit/FormField/getField.tsx +5 -4
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +4 -2
- package/package.json +1 -1
- package/src/api/RetailAPI/updateUserTask.ts +103 -22
- package/src/api/dadataHints/dadataHintsType.ts +18 -1
- package/src/api/dadataHints/hintsListsOptions.ts +3 -2
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +40 -19
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +50 -0
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +2 -2
- package/src/components/CalculatorBonus/CalculatorBonus.tsx +1 -1
- package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.fixture.tsx +15 -3
- package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx +2 -2
- package/src/components/CalculatorBusinessDeposit/useBusinessDepositParams.ts +1 -10
- package/src/components/CreditForm/CreditFormStep.tsx +1 -0
- package/src/components/CreditForm/creditFormStepsData.tsx +9 -4
- package/src/components/CreditForm/getCreditFormTaskData.ts +61 -0
- package/src/components/CreditForm/getFirstStepData.tsx +54 -0
- package/src/components/CreditForm/getFourthStepData.ts +13 -0
- package/src/components/CreditForm/getInitialFormState.tsx +52 -42
- package/src/components/CreditForm/getSecondStepData.tsx +44 -0
- package/src/components/CreditForm/getThirdStepData.ts +27 -0
- package/src/components/CreditForm/useCreditFormApi.tsx +22 -3
- package/src/components/CreditForm/utils.ts +69 -0
- package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
- package/src/ui-kit/Calculator/UnknownRate.tsx +12 -22
- package/src/ui-kit/Calculator/renderRate.tsx +5 -7
- package/src/ui-kit/FormField/Fields/AddressField.tsx +47 -0
- package/src/ui-kit/FormField/Fields/DependentsField.tsx +1 -0
- package/src/ui-kit/FormField/Fields/DulNumberField.tsx +1 -0
- package/src/ui-kit/FormField/Fields/DulSerieField.tsx +1 -0
- package/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +2 -1
- package/src/ui-kit/FormField/Fields/EmploymentField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +1 -0
- package/src/ui-kit/FormField/Fields/FamilyMembersField.tsx +1 -0
- package/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +1 -0
- package/src/ui-kit/FormField/Fields/JobsNumberField.tsx +1 -0
- package/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +1 -0
- package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/PhoneField.tsx +1 -1
- package/src/ui-kit/FormField/NameFieldDef.ts +4 -2
- package/src/ui-kit/FormField/SelectField.tsx +8 -8
- package/src/ui-kit/FormField/getField.tsx +5 -4
- package/src/ui-kit/FormField/getObjectValidator.tsx +4 -2
- package/bundle/api/RetailAPI/utils/getUpdateUserTask.d.ts +0 -10
- package/bundle/ui-kit/FormField/Fields/FullAddressField.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +0 -2
- package/dist/api/RetailAPI/utils/getUpdateUserTask.d.ts +0 -10
- package/dist/api/RetailAPI/utils/getUpdateUserTask.js +0 -47
- package/dist/api/RetailAPI/utils/getUpdateUserTask.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/FullAddressField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/FullAddressField.js +0 -9
- package/dist/ui-kit/FormField/Fields/FullAddressField.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/ParticipantAddressField.js +0 -9
- package/dist/ui-kit/FormField/Fields/ParticipantAddressField.js.map +0 -1
- package/lib/api/RetailAPI/utils/getUpdateUserTask.d.ts +0 -10
- package/lib/api/RetailAPI/utils/getUpdateUserTask.js +0 -44
- package/lib/api/RetailAPI/utils/getUpdateUserTask.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/FullAddressField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/FullAddressField.js +0 -7
- package/lib/ui-kit/FormField/Fields/FullAddressField.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/ParticipantAddressField.js +0 -7
- package/lib/ui-kit/FormField/Fields/ParticipantAddressField.js.map +0 -1
- package/mobile/bundle/api/RetailAPI/utils/getUpdateUserTask.d.ts +0 -10
- package/mobile/bundle/ui-kit/FormField/Fields/FullAddressField.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +0 -2
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.d.ts +0 -10
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.js +0 -47
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserTask.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/FullAddressField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/FullAddressField.js +0 -9
- package/mobile/dist/ui-kit/FormField/Fields/FullAddressField.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantAddressField.js +0 -9
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantAddressField.js.map +0 -1
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.d.ts +0 -10
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.js +0 -44
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserTask.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/FullAddressField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/FullAddressField.js +0 -7
- package/mobile/lib/ui-kit/FormField/Fields/FullAddressField.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantAddressField.js +0 -7
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantAddressField.js.map +0 -1
- package/mobile/src/api/RetailAPI/utils/getUpdateUserTask.ts +0 -66
- package/mobile/src/ui-kit/FormField/Fields/FullAddressField.tsx +0 -13
- package/mobile/src/ui-kit/FormField/Fields/ParticipantAddressField.tsx +0 -17
- package/src/api/RetailAPI/utils/getUpdateUserTask.ts +0 -66
- package/src/ui-kit/FormField/Fields/FullAddressField.tsx +0 -13
- package/src/ui-kit/FormField/Fields/ParticipantAddressField.tsx +0 -17
package/bundle/bundle.umd.js
CHANGED
|
@@ -1239,8 +1239,9 @@
|
|
|
1239
1239
|
dulIssuedBy: PASSPORT_FMS_HINTS_LIST_OPTIONS,
|
|
1240
1240
|
organizationName: ORGANIZATION_NAME_HINTS_LIST_OPTIONS,
|
|
1241
1241
|
inn: ORGANIZATION_INN_HINTS_LIST_OPTIONS,
|
|
1242
|
-
|
|
1243
|
-
|
|
1242
|
+
addressRegistration: ADDRESS_HINTS_LIST_OPTIONS,
|
|
1243
|
+
addressFact: ADDRESS_HINTS_LIST_OPTIONS,
|
|
1244
|
+
organizationAddress: ADDRESS_HINTS_LIST_OPTIONS,
|
|
1244
1245
|
};
|
|
1245
1246
|
|
|
1246
1247
|
const debounce = (fn, delay = 600) => {
|
|
@@ -1459,6 +1460,7 @@
|
|
|
1459
1460
|
addressBranch: defaultSelectValidator(),
|
|
1460
1461
|
phone: phoneValidator('Укажите номер телефона'),
|
|
1461
1462
|
secondaryPhone: phoneValidator('Укажите номер телефона'),
|
|
1463
|
+
organizationPhone: phoneValidator('Укажите номер телефона'),
|
|
1462
1464
|
birthday: defaultValidator('Укажите дату рождения'),
|
|
1463
1465
|
birthPlace: defaultValidator('Укажите место рождения'),
|
|
1464
1466
|
education: defaultValidator('Выберите ваше образование'),
|
|
@@ -1484,7 +1486,7 @@
|
|
|
1484
1486
|
experience5Years: jobNumberValidator('Укажите общий стаж за последние 5 лет'),
|
|
1485
1487
|
jobsNumber: jobNumberValidator('Укажите количество мест работы за последние 5 лет'),
|
|
1486
1488
|
beginDate: defaultValidator('Укажите дату заключения трудового договора'),
|
|
1487
|
-
|
|
1489
|
+
addressFact: defaultValidator(),
|
|
1488
1490
|
partnerComments: defaultValidator(),
|
|
1489
1491
|
collectionCount: defaultValidator(),
|
|
1490
1492
|
comment: defaultValidator(),
|
|
@@ -1513,7 +1515,8 @@
|
|
|
1513
1515
|
conscription: defaultValidator(),
|
|
1514
1516
|
armyIdFlg: agreementValidator,
|
|
1515
1517
|
sex: defaultValidator('Укажите свой пол'),
|
|
1516
|
-
|
|
1518
|
+
addressRegistration: defaultValidator('Необходимо выбрать адрес'),
|
|
1519
|
+
organizationAddress: defaultValidator('Необходимо выбрать адрес'),
|
|
1517
1520
|
participantDateRegistration: defaultValidator('Укажите дату регистрации'),
|
|
1518
1521
|
retirementIncome: defaultValidator(),
|
|
1519
1522
|
otherIncome: defaultValidator(),
|
|
@@ -1668,6 +1671,34 @@
|
|
|
1668
1671
|
})), ...getValidation(field('addressBranch'), validatorObj.addressBranch, input?.required), isSearch: true }));
|
|
1669
1672
|
});
|
|
1670
1673
|
|
|
1674
|
+
const AddressField = JSX(({ field, input }) => {
|
|
1675
|
+
const fieldName = input?.name || 'addressRegistration';
|
|
1676
|
+
const fieldValue = field(fieldName).value;
|
|
1677
|
+
const onDaDataChange = useCallback((item) => {
|
|
1678
|
+
field?.(fieldName)?.onChange?.({
|
|
1679
|
+
apartment: item?.data?.flat,
|
|
1680
|
+
city: item?.data?.city,
|
|
1681
|
+
district: item?.data?.area_with_type,
|
|
1682
|
+
fullAddress: item?.value,
|
|
1683
|
+
fiasCode: item?.data?.fias_id,
|
|
1684
|
+
house: item?.data?.house,
|
|
1685
|
+
locality: item?.data?.settlement_with_type,
|
|
1686
|
+
okatoRegionCode: item?.data?.okato,
|
|
1687
|
+
postcode: item?.data?.postal_code,
|
|
1688
|
+
region: item?.data?.region,
|
|
1689
|
+
regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
|
|
1690
|
+
street: item?.data?.house,
|
|
1691
|
+
});
|
|
1692
|
+
}, []);
|
|
1693
|
+
const onChange = useCallback((value) => {
|
|
1694
|
+
field?.(fieldName)?.onChange?.({
|
|
1695
|
+
...field(fieldName).value,
|
|
1696
|
+
fullAddress: value,
|
|
1697
|
+
});
|
|
1698
|
+
}, []);
|
|
1699
|
+
return (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field(fieldName), validatorObj[fieldName], input?.required), value: fieldValue.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
|
|
1700
|
+
});
|
|
1701
|
+
|
|
1671
1702
|
const useNormalizedInput = (props, { normalize, format }) => {
|
|
1672
1703
|
const { value, onFocus, onBlur, onChange } = props;
|
|
1673
1704
|
const [isFocused, setIsFocused] = useState(false);
|
|
@@ -1744,10 +1775,14 @@
|
|
|
1744
1775
|
};
|
|
1745
1776
|
|
|
1746
1777
|
const SelectField = UniBlock(({ field, source, label, fieldName, input }) => {
|
|
1747
|
-
const
|
|
1748
|
-
|
|
1778
|
+
const leadOptions = (source &&
|
|
1779
|
+
source?.map((_) => ({
|
|
1780
|
+
key: _.key || '',
|
|
1781
|
+
text: _.value,
|
|
1782
|
+
}))) ||
|
|
1783
|
+
[];
|
|
1784
|
+
return (jsx(SelectControl, { placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0438\u0437 \u0441\u043F\u0438\u0441\u043A\u0430", label: label, options: leadOptions, ...getValidation(field(fieldName), validatorObj[fieldName], input?.required) }));
|
|
1749
1785
|
});
|
|
1750
|
-
const arrayToOptions$1 = (array) => (array ?? []).map((_) => ({ key: _, text: _ }));
|
|
1751
1786
|
|
|
1752
1787
|
const AmountWorkersField = JSX(({ field, input }) => {
|
|
1753
1788
|
const { data: amountWorkers } = useLeadFormData('EMPLOYEES_NUMBER');
|
|
@@ -2179,7 +2214,7 @@
|
|
|
2179
2214
|
return (jsx(SelectField, { field: field, source: creditInRshbCd, label: LABEL_TEXT, fieldName: "creditInRshbCd", input: input }));
|
|
2180
2215
|
});
|
|
2181
2216
|
|
|
2182
|
-
const DependentsField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0436\u0434\u0438\u0432\u0435\u043D\u0446\u0435\u0432", placeholder: "\u0417\u0430 \u0438\u0441\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0434\u0435\u0442\u0435\u0439 \u0434\u043E 18 \u043B\u0435\u0442", inputLength: 2, ...getValidation(field('dependents'), validatorObj.dependents, input?.required), ...input })));
|
|
2217
|
+
const DependentsField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0436\u0434\u0438\u0432\u0435\u043D\u0446\u0435\u0432", placeholder: "\u0417\u0430 \u0438\u0441\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0434\u0435\u0442\u0435\u0439 \u0434\u043E 18 \u043B\u0435\u0442", type: "number", inputLength: 2, ...getValidation(field('dependents'), validatorObj.dependents, input?.required), ...input })));
|
|
2183
2218
|
|
|
2184
2219
|
const DesiredMeetingDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0416\u0435\u043B\u0430\u0435\u043C\u0430\u044F \u0434\u0430\u0442\u0430 \u0432\u0441\u0442\u0440\u0435\u0447\u0438", ...getValidation(field('desiredMeetingDate'), validatorObj.meetingDay, input?.required) })));
|
|
2185
2220
|
|
|
@@ -2195,15 +2230,15 @@
|
|
|
2195
2230
|
return (jsx(InputControl, { label: "\u041A\u0435\u043C \u0432\u044B\u0434\u0430\u043D", ...input, ...getValidation(field('dulIssuedBy'), validatorObj.dulIssuedBy, input?.required), onDaDataChange: onDaDataChange, daDataQueryPrefix: dulSubdivisionCode }));
|
|
2196
2231
|
});
|
|
2197
2232
|
|
|
2198
|
-
const DulNumberField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041D\u043E\u043C\u0435\u0440 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", inputLength: 6, ...getValidation(field('dulNumber'), validatorObj.dulNumber, input?.required) })));
|
|
2233
|
+
const DulNumberField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041D\u043E\u043C\u0435\u0440 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", type: "number", inputLength: 6, ...getValidation(field('dulNumber'), validatorObj.dulNumber, input?.required) })));
|
|
2199
2234
|
|
|
2200
|
-
const DulSerieField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0421\u0435\u0440\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", inputLength: 4, ...getValidation(field('dulSerie'), validatorObj.dulSerie, input?.required) })));
|
|
2235
|
+
const DulSerieField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0421\u0435\u0440\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", type: "number", inputLength: 4, ...getValidation(field('dulSerie'), validatorObj.dulSerie, input?.required) })));
|
|
2201
2236
|
|
|
2202
2237
|
const DulSubdivisionCodeField = JSX(({ field, input }) => {
|
|
2203
2238
|
const onDaDataChange = useCallback((item) => {
|
|
2204
2239
|
field?.('dulIssuedBy')?.onChange?.(item?.data?.name);
|
|
2205
2240
|
}, []);
|
|
2206
|
-
return (jsx(InputControl, { label: "\u041A\u043E\u0434 \u043F\u043E\u0434\u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F",
|
|
2241
|
+
return (jsx(InputControl, { label: "\u041A\u043E\u0434 \u043F\u043E\u0434\u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F", type: "number", inputLength: 6, ...input, ...getValidation(field('dulSubdivisionCode'), validatorObj.dulSubdivisionCode, input?.required), onDaDataChange: onDaDataChange }));
|
|
2207
2242
|
});
|
|
2208
2243
|
|
|
2209
2244
|
const EducationField = JSX(({ field, input }) => {
|
|
@@ -2227,15 +2262,15 @@
|
|
|
2227
2262
|
});
|
|
2228
2263
|
|
|
2229
2264
|
const EmploymentField = JSX(({ field, input }) => {
|
|
2230
|
-
const { data: employment } = useLeadFormData('
|
|
2265
|
+
const { data: employment } = useLeadFormData('EMPLOYMENT_INFO_UNITED');
|
|
2231
2266
|
return (jsx(SelectField, { field: field, source: employment, label: "\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435", fieldName: "employment", input: input }));
|
|
2232
2267
|
});
|
|
2233
2268
|
|
|
2234
2269
|
const ExpensesField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0440\u0430\u0441\u0445\u043E\u0434\u044B \u0432 \u043C\u0435\u0441\u044F\u0446", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('expenses'), validatorObj.expenses, input?.required), ...input })));
|
|
2235
2270
|
|
|
2236
|
-
const Experience5YearsField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0421\u0442\u0430\u0436", placeholder: "\u0417\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 5 \u043B\u0435\u0442", inputLength: 2, ...getValidation(field('experience5Years'), validatorObj.experience5Years, input?.required), ...input })));
|
|
2271
|
+
const Experience5YearsField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0421\u0442\u0430\u0436", placeholder: "\u0417\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 5 \u043B\u0435\u0442", type: "number", inputLength: 2, ...getValidation(field('experience5Years'), validatorObj.experience5Years, input?.required), ...input })));
|
|
2237
2272
|
|
|
2238
|
-
const FamilyMembersField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0447\u043B\u0435\u043D\u043E\u0432 \u0441\u0435\u043C\u044C\u0438", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", inputLength: 2, ...getValidation(field('familyMembers'), validatorObj.familyMembers, input?.required), ...input })));
|
|
2273
|
+
const FamilyMembersField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0447\u043B\u0435\u043D\u043E\u0432 \u0441\u0435\u043C\u044C\u0438", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", inputLength: 2, ...getValidation(field('familyMembers'), validatorObj.familyMembers, input?.required), ...input })));
|
|
2239
2274
|
|
|
2240
2275
|
const FamilyStatusField = JSX(({ field, input }) => {
|
|
2241
2276
|
const { data: familyStatus } = useLeadFormData('MARITAL_STATUS');
|
|
@@ -2257,11 +2292,9 @@
|
|
|
2257
2292
|
|
|
2258
2293
|
const FeedbackMethodField = JSX(({ field, input }) => (jsx(SelectControl, { label: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043E\u0442\u0432\u0435\u0442\u0430", options: FEEDBACK_METHOD, ...getValidation(field('feedbackMethod'), validatorObj.feedbackMethod, input?.required) })));
|
|
2259
2294
|
|
|
2260
|
-
const FullAddressField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field('fullAddress'), validatorObj.fullAddress, input?.required), ...input })));
|
|
2261
|
-
|
|
2262
2295
|
const FullNameField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0424\u0418\u041E", ...getValidation(field('fullName'), validatorObj.fullName, input?.required), ...input })));
|
|
2263
2296
|
|
|
2264
|
-
const GeneralSeniorityField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0431\u0449\u0438\u0439 \u0441\u0442\u0430\u0436", inputLength: 2, placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043B\u0435\u0442", ...getValidation(field('generalSeniority'), validatorObj.generalSeniority, input?.required), ...input })));
|
|
2297
|
+
const GeneralSeniorityField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0431\u0449\u0438\u0439 \u0441\u0442\u0430\u0436", type: "number", inputLength: 2, placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043B\u0435\u0442", ...getValidation(field('generalSeniority'), validatorObj.generalSeniority, input?.required), ...input })));
|
|
2265
2298
|
|
|
2266
2299
|
const HousingField = JSX(({ field, input }) => {
|
|
2267
2300
|
const { data: housing } = useLeadFormData('HOUSE_TYPE');
|
|
@@ -2278,9 +2311,9 @@
|
|
|
2278
2311
|
|
|
2279
2312
|
const IsClientField = JSX(({ field }) => (jsx(CheckboxWithError, { ...field('isClient'), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' })));
|
|
2280
2313
|
|
|
2281
|
-
const JobsNumberField = JSX(({ field, input }) => (jsx(InputControl, { 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", inputLength: 2, ...getValidation(field('jobsNumber'), validatorObj.jobsNumber, input?.required), ...input })));
|
|
2314
|
+
const JobsNumberField = JSX(({ field, input }) => (jsx(InputControl, { 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", type: "number", inputLength: 2, ...getValidation(field('jobsNumber'), validatorObj.jobsNumber, input?.required), ...input })));
|
|
2282
2315
|
|
|
2283
|
-
const LastJobExperienceField = JSX(({ field, input }) => (jsx(InputControl, { 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", inputLength: 2, ...getValidation(field('lastJobExperience'), validatorObj.lastJobExperience, input?.required), ...input })));
|
|
2316
|
+
const LastJobExperienceField = JSX(({ field, input }) => (jsx(InputControl, { 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", inputLength: 2, ...getValidation(field('lastJobExperience'), validatorObj.lastJobExperience, input?.required), ...input })));
|
|
2284
2317
|
|
|
2285
2318
|
const LegalEntityNameField = JSX(({ field, input }) => {
|
|
2286
2319
|
return (jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043B\u0438\u0446\u0430", ...input, ...getValidation(field('legalEntityName'), validatorObj.legalEntityName, input?.required) }));
|
|
@@ -2337,8 +2370,6 @@
|
|
|
2337
2370
|
|
|
2338
2371
|
const OtherPaymentsField = JSX(({ field, input }) => (jsx(InputControl, { 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", type: "number", ...getValidation(field('otherPayments'), validatorObj.otherPayments, input?.required), ...input })));
|
|
2339
2372
|
|
|
2340
|
-
const ParticipantAddressField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field('participantAddress'), validatorObj.participantAddress, input?.required), ...input })));
|
|
2341
|
-
|
|
2342
2373
|
const ParticipantDateRegistrationField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043F\u043E \u043C\u0435\u0441\u0442\u0443 \u0436\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430", ...getValidation(field('participantDateRegistration'), validatorObj.participantDateRegistration, input?.required) })));
|
|
2343
2374
|
|
|
2344
2375
|
const MAX_PART = 100;
|
|
@@ -2348,7 +2379,7 @@
|
|
|
2348
2379
|
};
|
|
2349
2380
|
const handleChange = (value) => partInBusinessField?.onChange &&
|
|
2350
2381
|
partInBusinessField?.onChange(String(Number(value) > MAX_PART ? MAX_PART : Number(value) || ''));
|
|
2351
|
-
return (jsx(InputControl, { label: "\u0414\u043E\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0432 \u0431\u0438\u0437\u043D\u0435\u0441\u0435", placeholder: "\u0432 %",
|
|
2382
|
+
return (jsx(InputControl, { label: "\u0414\u043E\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0432 \u0431\u0438\u0437\u043D\u0435\u0441\u0435", placeholder: "\u0432 %", type: "number", inputLength: 3, ...partInBusinessField, ...input, onChange: handleChange }));
|
|
2352
2383
|
});
|
|
2353
2384
|
|
|
2354
2385
|
const PartnerCommentsField = JSX(({ field, input }) => {
|
|
@@ -2382,7 +2413,7 @@
|
|
|
2382
2413
|
|
|
2383
2414
|
const InputPhoneControl = JSX(({ className, label, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(PhoneInput, { "aria-label": label, label: getRequiredLabel({ label, errors: rest?.errors }), valid: Boolean(!error), placeholder: "+7 (___) ___-__-__", ...rest }), renderErrorText(error)] })));
|
|
2384
2415
|
|
|
2385
|
-
const PhoneField = JSX(({ field, input }) => (jsx(InputPhoneControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...getValidation(field('phone'), validatorObj.phone, input?.required), ...input })));
|
|
2416
|
+
const PhoneField = JSX(({ field, input }) => (jsx(InputPhoneControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...getValidation(field(input?.name || 'phone'), validatorObj.phone, input?.required), ...input })));
|
|
2386
2417
|
|
|
2387
2418
|
const PositionOrganizationField = JSX(({ field, input }) => {
|
|
2388
2419
|
const { data: positionOrganization } = useLeadFormData('POSITION');
|
|
@@ -3161,6 +3192,7 @@
|
|
|
3161
3192
|
name: jsx(NameField, { field: field, input: input }),
|
|
3162
3193
|
middleName: jsx(MiddleNameField, { field: field, input: input }),
|
|
3163
3194
|
phone: jsx(PhoneField, { field: field, input: input }),
|
|
3195
|
+
organizationPhone: jsx(PhoneField, { field: field, input: input }),
|
|
3164
3196
|
email: jsx(EmailField, { field: field, input: input }),
|
|
3165
3197
|
fullName: jsx(FullNameField, { field: field, input: input }),
|
|
3166
3198
|
inn: jsx(InnField, { field: field, input: input }),
|
|
@@ -3171,7 +3203,8 @@
|
|
|
3171
3203
|
experience5Years: jsx(Experience5YearsField, { field: field, input: input }),
|
|
3172
3204
|
jobsNumber: jsx(JobsNumberField, { field: field, input: input }),
|
|
3173
3205
|
beginDate: jsx(BeginDateField, { field: field, input: input }),
|
|
3174
|
-
|
|
3206
|
+
addressFact: jsx(AddressField, { field: field, input: input }),
|
|
3207
|
+
organizationAddress: jsx(AddressField, { field: field, input: input }),
|
|
3175
3208
|
comment: jsx(CommentField, { field: field, input: input }),
|
|
3176
3209
|
addressBranch: jsx(AddressBranchField, { field: field, input: input, isPremium: isPremium }),
|
|
3177
3210
|
sex: jsx(SexField, { field: field, input: input }),
|
|
@@ -3225,7 +3258,7 @@
|
|
|
3225
3258
|
dulIssueDateField: jsx(DulIssueDateField, { field: field, input: input }),
|
|
3226
3259
|
dulSubdivisionCode: jsx(DulSubdivisionCodeField, { field: field, input: input }),
|
|
3227
3260
|
dulIssuedBy: jsx(DulIssuedByField, { field: field, input: input }),
|
|
3228
|
-
|
|
3261
|
+
addressRegistration: jsx(AddressField, { field: field, input: input }),
|
|
3229
3262
|
participantDateRegistration: jsx(ParticipantDateRegistrationField, { field: field, input: input }),
|
|
3230
3263
|
retirementIncome: jsx(RetirementIncomeField, { field: field, input: input }),
|
|
3231
3264
|
otherIncome: jsx(OtherIncomeField, { field: field, input: input }),
|
|
@@ -3441,6 +3474,7 @@
|
|
|
3441
3474
|
name: '',
|
|
3442
3475
|
phone: '',
|
|
3443
3476
|
secondaryPhone: '',
|
|
3477
|
+
organizationPhone: '',
|
|
3444
3478
|
comment: '',
|
|
3445
3479
|
product: '',
|
|
3446
3480
|
partnerComments: '',
|
|
@@ -3462,7 +3496,7 @@
|
|
|
3462
3496
|
consentProviderFlg: false,
|
|
3463
3497
|
consentOthersFlg: false,
|
|
3464
3498
|
consentInformFlg: false,
|
|
3465
|
-
|
|
3499
|
+
addressRegistration: '',
|
|
3466
3500
|
participantDateRegistration: undefined,
|
|
3467
3501
|
};
|
|
3468
3502
|
const getInitialFormState$1 = (inputs, savedForm, typeForm = '') => {
|
|
@@ -3510,48 +3544,6 @@
|
|
|
3510
3544
|
};
|
|
3511
3545
|
};
|
|
3512
3546
|
|
|
3513
|
-
const getUpdateUserTaskData = ({ participantId, taskId, profileId, formData, }) => {
|
|
3514
|
-
const { name = '', surname = '', middleName = '', birthday = '', phone = '', email = '', } = formData;
|
|
3515
|
-
return {
|
|
3516
|
-
sendToBank: true,
|
|
3517
|
-
taskKind: 'SHORT',
|
|
3518
|
-
task: {
|
|
3519
|
-
taskSource: globalThis.location.origin,
|
|
3520
|
-
id: taskId,
|
|
3521
|
-
participants: [
|
|
3522
|
-
{
|
|
3523
|
-
birthDate: formatDate(birthday, true),
|
|
3524
|
-
id: participantId,
|
|
3525
|
-
midname: middleName,
|
|
3526
|
-
name: name,
|
|
3527
|
-
surname: surname,
|
|
3528
|
-
profile: {
|
|
3529
|
-
id: profileId,
|
|
3530
|
-
},
|
|
3531
|
-
participantContacts: [
|
|
3532
|
-
{
|
|
3533
|
-
contactTypeCd: {
|
|
3534
|
-
key: 'EMAIL',
|
|
3535
|
-
},
|
|
3536
|
-
value: email,
|
|
3537
|
-
},
|
|
3538
|
-
{
|
|
3539
|
-
contactTypeCd: {
|
|
3540
|
-
key: 'MAIN_PHONE',
|
|
3541
|
-
},
|
|
3542
|
-
value: formatPhone(phone),
|
|
3543
|
-
},
|
|
3544
|
-
],
|
|
3545
|
-
roleCd: {
|
|
3546
|
-
key: 'BORROWER',
|
|
3547
|
-
value: 'Заемщик',
|
|
3548
|
-
},
|
|
3549
|
-
},
|
|
3550
|
-
],
|
|
3551
|
-
},
|
|
3552
|
-
};
|
|
3553
|
-
};
|
|
3554
|
-
|
|
3555
3547
|
const ICON_SIZE$1 = { width: '118', height: '24' };
|
|
3556
3548
|
|
|
3557
3549
|
const logoTitleSizeStyle = '';
|
|
@@ -3892,6 +3884,95 @@
|
|
|
3892
3884
|
};
|
|
3893
3885
|
};
|
|
3894
3886
|
|
|
3887
|
+
const fieldsNamesToContactKeysMap = {
|
|
3888
|
+
email: 'EMAIL',
|
|
3889
|
+
phone: 'MAIN_PHONE',
|
|
3890
|
+
organizationPhone: 'ORGANIZATION_PHONE',
|
|
3891
|
+
};
|
|
3892
|
+
const fieldsNamesToAddressKeysMap = {
|
|
3893
|
+
addressRegistration: 'REGISTRATION',
|
|
3894
|
+
addressFact: 'RESIDENTAL',
|
|
3895
|
+
organizationAddress: 'WORK',
|
|
3896
|
+
};
|
|
3897
|
+
const fieldsNamesToIncomeKeysMap = {
|
|
3898
|
+
mandatoryIncome: 'INCOME_AVERAGE',
|
|
3899
|
+
otherPayments: 'MANDATORY_PAYMENTS',
|
|
3900
|
+
};
|
|
3901
|
+
const getParticipantContacts = (fields) => Object.entries(fields).reduce((acc, [key, value]) => {
|
|
3902
|
+
if (key in fieldsNamesToContactKeysMap) {
|
|
3903
|
+
return [
|
|
3904
|
+
...acc,
|
|
3905
|
+
{
|
|
3906
|
+
contactTypeCd: {
|
|
3907
|
+
key: fieldsNamesToContactKeysMap[key],
|
|
3908
|
+
},
|
|
3909
|
+
value,
|
|
3910
|
+
},
|
|
3911
|
+
];
|
|
3912
|
+
}
|
|
3913
|
+
return acc;
|
|
3914
|
+
}, []);
|
|
3915
|
+
const getParticipantAddresses = (fields) => Object.entries(fields).reduce((acc, [key, value]) => {
|
|
3916
|
+
if (key in fieldsNamesToAddressKeysMap) {
|
|
3917
|
+
return [
|
|
3918
|
+
...acc,
|
|
3919
|
+
{
|
|
3920
|
+
addressType: {
|
|
3921
|
+
key: fieldsNamesToAddressKeysMap[key],
|
|
3922
|
+
},
|
|
3923
|
+
...value,
|
|
3924
|
+
},
|
|
3925
|
+
];
|
|
3926
|
+
}
|
|
3927
|
+
return acc;
|
|
3928
|
+
}, []);
|
|
3929
|
+
const getParticipantIncomes = (fields) => Object.entries(fields).reduce((acc, [key, value]) => {
|
|
3930
|
+
if (key in fieldsNamesToIncomeKeysMap) {
|
|
3931
|
+
return [
|
|
3932
|
+
...acc,
|
|
3933
|
+
{
|
|
3934
|
+
incomeTypeCd: {
|
|
3935
|
+
key: fieldsNamesToIncomeKeysMap[key],
|
|
3936
|
+
},
|
|
3937
|
+
value,
|
|
3938
|
+
},
|
|
3939
|
+
];
|
|
3940
|
+
}
|
|
3941
|
+
return acc;
|
|
3942
|
+
}, []);
|
|
3943
|
+
|
|
3944
|
+
const getLeadFormTaskData = ({ participantId, taskId, profileId, formData, }) => {
|
|
3945
|
+
const { name, surname, middleName, birthday, phone, email } = formData;
|
|
3946
|
+
return {
|
|
3947
|
+
sendToBank: true,
|
|
3948
|
+
taskKind: 'SHORT',
|
|
3949
|
+
task: {
|
|
3950
|
+
taskSource: globalThis.location.origin,
|
|
3951
|
+
id: taskId,
|
|
3952
|
+
participants: [
|
|
3953
|
+
{
|
|
3954
|
+
birthDate: birthday && formatDate(birthday, true),
|
|
3955
|
+
id: participantId,
|
|
3956
|
+
midname: middleName,
|
|
3957
|
+
name,
|
|
3958
|
+
surname,
|
|
3959
|
+
profile: {
|
|
3960
|
+
id: profileId,
|
|
3961
|
+
},
|
|
3962
|
+
participantContacts: getParticipantContacts({
|
|
3963
|
+
phone: phone && formatPhone(phone),
|
|
3964
|
+
email,
|
|
3965
|
+
}),
|
|
3966
|
+
roleCd: {
|
|
3967
|
+
key: 'BORROWER',
|
|
3968
|
+
value: 'Заемщик',
|
|
3969
|
+
},
|
|
3970
|
+
},
|
|
3971
|
+
],
|
|
3972
|
+
},
|
|
3973
|
+
};
|
|
3974
|
+
};
|
|
3975
|
+
|
|
3895
3976
|
const useApplicationLeadApi = ({ inputs, programId, nextStepLink, saveForm, }) => {
|
|
3896
3977
|
const [responseStatus, setResponseStatus] = useState('');
|
|
3897
3978
|
const [, setTaskId] = useLocalStorage('taskId');
|
|
@@ -3953,7 +4034,7 @@
|
|
|
3953
4034
|
profileId,
|
|
3954
4035
|
programId,
|
|
3955
4036
|
});
|
|
3956
|
-
await updateUserTask(
|
|
4037
|
+
await updateUserTask(getLeadFormTaskData({
|
|
3957
4038
|
participantId,
|
|
3958
4039
|
taskId,
|
|
3959
4040
|
profileId,
|
|
@@ -4548,7 +4629,7 @@
|
|
|
4548
4629
|
const CalculatorLayout = JSX(({ className, title, children, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-xl', className), defaultPadding: "p-4xl", ...rest, children: [title ? jsx(Heading, { className: "text-center", title: title }) : null, children] })));
|
|
4549
4630
|
|
|
4550
4631
|
const CalculatorStyle = {
|
|
4551
|
-
wrapper: 'flex flex-col justify-between
|
|
4632
|
+
wrapper: 'flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl',
|
|
4552
4633
|
input: 'flex flex-col lg:max-w-80 lg:w-1/2 gap-2xl',
|
|
4553
4634
|
result: 'flex flex-col gap-y-xl min-w-52',
|
|
4554
4635
|
};
|
|
@@ -4566,9 +4647,9 @@
|
|
|
4566
4647
|
|
|
4567
4648
|
const Rate = JSX(({ rate = 0, title = 'Ставка', unit, fractionDigits = 2, depositeName, isShowDepositeName, color = 'text-secondary-text', }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color: color, children: title }), jsxs("div", { className: "relative", children: [jsxs("div", { className: "flex @xl:justify-center gradient-color-text", children: [jsx("span", { className: "font-mohave text-title-huge -mt-m tracking-[-15px]", children: toLocalNumberFormat(fractionDigits, { fixed: true })(rate) }), unit ? jsx("span", { className: "text-7xl mt-5", children: unit }) : null] }), depositeName && isShowDepositeName ? (jsx("div", { className: "absolute bottom-2 w-full text-left whitespace-nowrap", children: depositeName })) : null] })] })));
|
|
4568
4649
|
|
|
4569
|
-
const UnknownRate = JSX(({ title = 'Ставка'
|
|
4650
|
+
const UnknownRate = JSX(({ title = 'Ставка' }) => (jsxs("div", { className: "space-y-s min-w-96", children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title }), jsx(Icon, { className: "w-10 h-auto lg:w-40", name: "PercentIcon" }), jsx("div", { className: "w-64", children: jsx(Paragraph, { size: "text-xl", font: "font-light", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u0443\u044E \u0441\u0443\u043C\u043C\u0443 \u0438\u043B\u0438 \u0441\u0440\u043E\u043A" }) })] })));
|
|
4570
4651
|
|
|
4571
|
-
const renderRate = ({ title = 'Ставка', rate = 0, unit = '%', fractionDigits = 2,
|
|
4652
|
+
const renderRate = ({ title = 'Ставка', rate = 0, unit = '%', fractionDigits = 2, color = 'text-secondary-text', children, ...rest }) => rate ? (jsxs("div", { className: "flex flex-col", children: [jsx("div", { className: "hidden lg:block min-w-96", children: jsx(Rate, { title: title, rate: rate, unit: unit, fractionDigits: fractionDigits, color: color, ...rest }) }), jsx(CalculatorValue, { className: "lg:hidden", title: title, value: rate, postfix: unit, fractionDigits: fractionDigits, fixed: true, color: color, ...rest }), children] })) : (jsx(UnknownRate, { title: title, ...rest }));
|
|
4572
4653
|
|
|
4573
4654
|
const DEFAULT_MONEY_STEP = 1000;
|
|
4574
4655
|
const renderWantedSumInput = ({ isShowItems = true, step = DEFAULT_MONEY_STEP, postfix = '₽', ...rest }) => (jsx(InputRange, { items: isShowItems
|
|
@@ -4650,7 +4731,6 @@
|
|
|
4650
4731
|
title: 'Баллов за месяц',
|
|
4651
4732
|
rate: monthBonus,
|
|
4652
4733
|
fractionDigits: 0,
|
|
4653
|
-
isUnknownRateShown: false,
|
|
4654
4734
|
unit: '',
|
|
4655
4735
|
color: 'text-primary-text',
|
|
4656
4736
|
})
|
|
@@ -4715,7 +4795,6 @@
|
|
|
4715
4795
|
|
|
4716
4796
|
const BUSINESS_MIN_DAYS = 1;
|
|
4717
4797
|
const BUSINESS_MAX_DAYS = 1095;
|
|
4718
|
-
const BUSINESS_RATE_MIN_DAYS = 30; // порог количества дней, при которых ставка не доступна
|
|
4719
4798
|
const BUSINESS_OPERATING_MIN_DAYS = 90;
|
|
4720
4799
|
const BUSINESS_OPERATING_MAX_DAYS = 730;
|
|
4721
4800
|
const DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS = {
|
|
@@ -4734,14 +4813,6 @@
|
|
|
4734
4813
|
const isOperatingDeposit = isReplenished || isPartialWithdrawal;
|
|
4735
4814
|
const isDisabledOperatingDeposit = daysValue < BUSINESS_OPERATING_MIN_DAYS || daysValue > BUSINESS_OPERATING_MAX_DAYS;
|
|
4736
4815
|
const rateRows = useBusinessDepositRates(rateParams);
|
|
4737
|
-
if (daysValue <= BUSINESS_RATE_MIN_DAYS) {
|
|
4738
|
-
return {
|
|
4739
|
-
...DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS,
|
|
4740
|
-
...userInputParams,
|
|
4741
|
-
isDisabledOperatingDeposit,
|
|
4742
|
-
isUnavailableByTerm: true,
|
|
4743
|
-
};
|
|
4744
|
-
}
|
|
4745
4816
|
const businessDepositCalculatorSourceBookParams = rateRows?.find((_) => {
|
|
4746
4817
|
return (isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
|
|
4747
4818
|
checkIsOperatingDeposit(isOperatingDeposit, _) &&
|
|
@@ -4789,7 +4860,7 @@
|
|
|
4789
4860
|
isMonthlyInterestPayment: Boolean(defaultParams?.isMonthlyInterestPayment),
|
|
4790
4861
|
});
|
|
4791
4862
|
const calculatorParams = useBusinessDepositParams(userInputParams, rateParams);
|
|
4792
|
-
const { income, finalSum, rate,
|
|
4863
|
+
const { income, finalSum, rate, depositeName } = calculatorParams;
|
|
4793
4864
|
return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
|
|
4794
4865
|
title: 'Сумма, ₽',
|
|
4795
4866
|
min: calculatorParams.minSum,
|
|
@@ -4811,7 +4882,6 @@
|
|
|
4811
4882
|
rate,
|
|
4812
4883
|
depositeName,
|
|
4813
4884
|
isShowDepositeName,
|
|
4814
|
-
isUnavailableByTerm,
|
|
4815
4885
|
}), renderDepositResult({
|
|
4816
4886
|
income,
|
|
4817
4887
|
finalSum,
|
|
@@ -5709,7 +5779,7 @@
|
|
|
5709
5779
|
});
|
|
5710
5780
|
|
|
5711
5781
|
const formStateMap = {
|
|
5712
|
-
|
|
5782
|
+
0: {
|
|
5713
5783
|
surname: '',
|
|
5714
5784
|
name: '',
|
|
5715
5785
|
middleName: '',
|
|
@@ -5723,30 +5793,39 @@
|
|
|
5723
5793
|
dulIssueDateField: undefined,
|
|
5724
5794
|
dulSubdivisionCode: '',
|
|
5725
5795
|
dulIssuedBy: '',
|
|
5726
|
-
|
|
5796
|
+
addressRegistration: {
|
|
5797
|
+
fullAddress: '',
|
|
5798
|
+
fiasCode: '',
|
|
5799
|
+
},
|
|
5727
5800
|
participantDateRegistration: undefined,
|
|
5728
|
-
|
|
5801
|
+
addressFact: {
|
|
5802
|
+
fullAddress: '',
|
|
5803
|
+
fiasCode: '',
|
|
5804
|
+
},
|
|
5729
5805
|
housing: '',
|
|
5730
5806
|
},
|
|
5731
|
-
|
|
5732
|
-
employment: { key: '', text: '' },
|
|
5733
|
-
organizationName: '',
|
|
5734
|
-
inn: undefined,
|
|
5735
|
-
legalForm: '',
|
|
5736
|
-
organization: { key: '', text: '' },
|
|
5807
|
+
1: {
|
|
5737
5808
|
amountWorkers: { key: '', text: '' },
|
|
5809
|
+
beginDate: undefined,
|
|
5738
5810
|
employerActivities: { key: '', text: '' },
|
|
5739
5811
|
employerOrganization: { key: '', text: '' },
|
|
5740
|
-
|
|
5812
|
+
employment: { key: '', text: '' },
|
|
5741
5813
|
experience5Years: '',
|
|
5814
|
+
inn: undefined,
|
|
5742
5815
|
jobsNumber: '',
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5816
|
+
lastJobExperience: '',
|
|
5817
|
+
legalForm: '',
|
|
5818
|
+
organization: { key: '', text: '' },
|
|
5819
|
+
organizationAddress: {
|
|
5820
|
+
fullAddress: '',
|
|
5821
|
+
fiasCode: '',
|
|
5822
|
+
},
|
|
5823
|
+
organizationName: '',
|
|
5824
|
+
organizationPhone: '',
|
|
5746
5825
|
partInBusiness: undefined,
|
|
5747
|
-
|
|
5826
|
+
positionOrganization: { key: '', text: '' },
|
|
5748
5827
|
},
|
|
5749
|
-
|
|
5828
|
+
2: {
|
|
5750
5829
|
familyStatus: { key: '', text: '' },
|
|
5751
5830
|
dependents: undefined,
|
|
5752
5831
|
familyMembers: undefined,
|
|
@@ -5755,14 +5834,14 @@
|
|
|
5755
5834
|
snils: '',
|
|
5756
5835
|
armyIdFlg: false,
|
|
5757
5836
|
},
|
|
5758
|
-
|
|
5759
|
-
disablePeopleFlg:
|
|
5760
|
-
bankruptcyFlg:
|
|
5761
|
-
shareholderFlg:
|
|
5837
|
+
3: {
|
|
5838
|
+
disablePeopleFlg: false,
|
|
5839
|
+
bankruptcyFlg: false,
|
|
5840
|
+
shareholderFlg: false,
|
|
5762
5841
|
legalEntityName: '',
|
|
5763
|
-
creditInRshbCd:
|
|
5842
|
+
creditInRshbCd: undefined,
|
|
5764
5843
|
},
|
|
5765
|
-
|
|
5844
|
+
4: {
|
|
5766
5845
|
regionRetail: '',
|
|
5767
5846
|
addressRetail: '',
|
|
5768
5847
|
bankEmployeeCode: '',
|
|
@@ -5791,13 +5870,147 @@
|
|
|
5791
5870
|
return (jsxs("div", { className: 'flex justify-between', children: [jsx(Button, { onClick: onPrevStep, className: style('w-full @xl:w-auto'), type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { className: style('w-full @xl:w-auto'), type: "submit", children: "\u0414\u0430\u043B\u0435\u0435" })] }));
|
|
5792
5871
|
});
|
|
5793
5872
|
|
|
5794
|
-
const
|
|
5873
|
+
const getFirstStepData = (formData) => {
|
|
5874
|
+
const { name, surname, middleName, birthday = '', phone = '', email, sex, birthPlace, dulIssueDateField = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, } = formData;
|
|
5875
|
+
return {
|
|
5876
|
+
birthDate: formatDate(birthday, true),
|
|
5877
|
+
midname: middleName,
|
|
5878
|
+
name,
|
|
5879
|
+
surname,
|
|
5880
|
+
birthPlace,
|
|
5881
|
+
dulIssueDate: formatDate(dulIssueDateField, true),
|
|
5882
|
+
dulIssuedBy,
|
|
5883
|
+
dulNumber,
|
|
5884
|
+
dulSerie,
|
|
5885
|
+
dulSubdivisionCode,
|
|
5886
|
+
educationLevelCd: education,
|
|
5887
|
+
registrationDate: formatDate(participantDateRegistration, true),
|
|
5888
|
+
houseTypeCd: housing,
|
|
5889
|
+
participantContacts: getParticipantContacts({
|
|
5890
|
+
phone: formatPhone(phone),
|
|
5891
|
+
email,
|
|
5892
|
+
}),
|
|
5893
|
+
participantAddresses: getParticipantAddresses({ addressRegistration, addressFact }),
|
|
5894
|
+
genderCd: sex
|
|
5895
|
+
? {
|
|
5896
|
+
key: sex === 'male' ? 'MAN' : 'WOMAN',
|
|
5897
|
+
}
|
|
5898
|
+
: undefined,
|
|
5899
|
+
};
|
|
5900
|
+
};
|
|
5901
|
+
|
|
5902
|
+
const getFourthStepData = (formData) => {
|
|
5903
|
+
const { bankruptcyFlg, shareholderFlg, legalEntityName, creditInRshbCd } = formData;
|
|
5904
|
+
return {
|
|
5905
|
+
bankruptcyFlg,
|
|
5906
|
+
shareholderFlg,
|
|
5907
|
+
nameLegalEntity: legalEntityName,
|
|
5908
|
+
creditInRshbCd,
|
|
5909
|
+
};
|
|
5910
|
+
};
|
|
5911
|
+
|
|
5912
|
+
const getSecondStepData = (formData) => {
|
|
5913
|
+
const { employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
|
|
5914
|
+
return {
|
|
5915
|
+
employmentTypeCd: employment,
|
|
5916
|
+
organizationName,
|
|
5917
|
+
organizationInn: inn,
|
|
5918
|
+
organizationActivityTypeCd: employerActivities,
|
|
5919
|
+
organizationTypeCd: organization,
|
|
5920
|
+
organizationKindCd: employerOrganization,
|
|
5921
|
+
employeesNumberCd: amountWorkers,
|
|
5922
|
+
opf: legalForm,
|
|
5923
|
+
seniority: generalSeniority,
|
|
5924
|
+
generalSeniority: experience5Years,
|
|
5925
|
+
jobsNumber,
|
|
5926
|
+
lastWorkDuration: lastJobExperience,
|
|
5927
|
+
positionCd: positionOrganization,
|
|
5928
|
+
participantContacts: getParticipantContacts({
|
|
5929
|
+
organizationPhone: organizationPhone && formatPhone(organizationPhone),
|
|
5930
|
+
}),
|
|
5931
|
+
participantAddresses: getParticipantAddresses({ organizationAddress }),
|
|
5932
|
+
};
|
|
5933
|
+
};
|
|
5934
|
+
|
|
5935
|
+
const getThirdStepData = (formData) => {
|
|
5936
|
+
const { familyStatus, dependents, familyMembers, mandatoryIncome, otherPayments, snils, armyIdFlg, } = formData;
|
|
5937
|
+
return {
|
|
5938
|
+
maritalStatusCd: familyStatus,
|
|
5939
|
+
totalDependents: familyMembers,
|
|
5940
|
+
otherDependents: dependents,
|
|
5941
|
+
participantIncomes: getParticipantIncomes({
|
|
5942
|
+
mandatoryIncome,
|
|
5943
|
+
otherPayments,
|
|
5944
|
+
}),
|
|
5945
|
+
snils: snils?.replaceAll(' ', ''),
|
|
5946
|
+
armyIdFlg,
|
|
5947
|
+
};
|
|
5948
|
+
};
|
|
5949
|
+
|
|
5950
|
+
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
5951
|
+
return {
|
|
5952
|
+
sendToBank: true,
|
|
5953
|
+
taskKind: 'UNITED',
|
|
5954
|
+
task: {
|
|
5955
|
+
taskSource: globalThis.location.origin,
|
|
5956
|
+
id: taskId,
|
|
5957
|
+
//TODO: Добавить id офиса
|
|
5958
|
+
authorizedAgentId: formData?.bankEmployeeCode,
|
|
5959
|
+
participants: [
|
|
5960
|
+
{
|
|
5961
|
+
id: participantId,
|
|
5962
|
+
profile: {
|
|
5963
|
+
id: profileId,
|
|
5964
|
+
},
|
|
5965
|
+
roleCd: {
|
|
5966
|
+
key: 'BORROWER',
|
|
5967
|
+
value: 'Заемщик',
|
|
5968
|
+
},
|
|
5969
|
+
...getCurrentStepData(step, formData),
|
|
5970
|
+
},
|
|
5971
|
+
],
|
|
5972
|
+
},
|
|
5973
|
+
};
|
|
5974
|
+
};
|
|
5975
|
+
const getCurrentStepData = (step, formData) => {
|
|
5976
|
+
switch (step) {
|
|
5977
|
+
case 0:
|
|
5978
|
+
return getFirstStepData(formData);
|
|
5979
|
+
case 1:
|
|
5980
|
+
return getSecondStepData(formData);
|
|
5981
|
+
case 2:
|
|
5982
|
+
return getThirdStepData(formData);
|
|
5983
|
+
case 3:
|
|
5984
|
+
return getFourthStepData(formData);
|
|
5985
|
+
default:
|
|
5986
|
+
return getFirstStepData(formData);
|
|
5987
|
+
}
|
|
5988
|
+
};
|
|
5989
|
+
|
|
5990
|
+
const useCreditFormApi = ({ inputs, step, onNextStep, saveStep }) => {
|
|
5991
|
+
const [taskId] = useLocalStorage('taskId');
|
|
5992
|
+
const [profileId] = useLocalStorage('profileId');
|
|
5993
|
+
const [participantId] = useLocalStorage('participantId');
|
|
5795
5994
|
const handleSubmit = useCallback(async (formData) => {
|
|
5796
5995
|
const feedbackValidator = objectValidator(getObjectValidator(inputs));
|
|
5797
5996
|
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
5798
5997
|
return console.warn('validation fail');
|
|
5799
5998
|
}
|
|
5800
5999
|
saveStep(formData);
|
|
6000
|
+
try {
|
|
6001
|
+
if (taskId && profileId && participantId) {
|
|
6002
|
+
await updateUserTask(getCreditFormTaskData({
|
|
6003
|
+
participantId,
|
|
6004
|
+
taskId,
|
|
6005
|
+
profileId,
|
|
6006
|
+
step,
|
|
6007
|
+
formData: formData,
|
|
6008
|
+
}));
|
|
6009
|
+
}
|
|
6010
|
+
}
|
|
6011
|
+
catch (ex) {
|
|
6012
|
+
return 'Fail';
|
|
6013
|
+
}
|
|
5801
6014
|
onNextStep();
|
|
5802
6015
|
return 'OK';
|
|
5803
6016
|
}, []);
|
|
@@ -5811,6 +6024,7 @@
|
|
|
5811
6024
|
const initialState = getInitialFormState(step, localStorageData);
|
|
5812
6025
|
const { handleSubmit } = useCreditFormApi({
|
|
5813
6026
|
inputs,
|
|
6027
|
+
step,
|
|
5814
6028
|
onNextStep: onNextStep,
|
|
5815
6029
|
saveStep,
|
|
5816
6030
|
});
|
|
@@ -5868,7 +6082,7 @@
|
|
|
5868
6082
|
inputs: [],
|
|
5869
6083
|
},
|
|
5870
6084
|
{
|
|
5871
|
-
inputs: [{ fieldType: 'common', name: '
|
|
6085
|
+
inputs: [{ fieldType: 'common', name: 'addressRegistration', required: true, dadata: true }],
|
|
5872
6086
|
},
|
|
5873
6087
|
{
|
|
5874
6088
|
columns: 2,
|
|
@@ -5878,7 +6092,7 @@
|
|
|
5878
6092
|
title: 'Адрес фактического проживания (место пребывания РФ)',
|
|
5879
6093
|
columns: 2,
|
|
5880
6094
|
inputs: [
|
|
5881
|
-
{ fieldType: 'common', name: '
|
|
6095
|
+
{ fieldType: 'common', name: 'addressFact', required: true, dadata: true },
|
|
5882
6096
|
{ fieldType: 'common', name: 'housing' },
|
|
5883
6097
|
],
|
|
5884
6098
|
},
|
|
@@ -5928,7 +6142,12 @@
|
|
|
5928
6142
|
},
|
|
5929
6143
|
{
|
|
5930
6144
|
inputs: [
|
|
5931
|
-
{
|
|
6145
|
+
{
|
|
6146
|
+
fieldType: 'common',
|
|
6147
|
+
name: 'organizationPhone',
|
|
6148
|
+
label: 'Телефон работодателя',
|
|
6149
|
+
required: true,
|
|
6150
|
+
},
|
|
5932
6151
|
{ fieldType: 'common', name: 'beginDate', required: true },
|
|
5933
6152
|
],
|
|
5934
6153
|
},
|
|
@@ -5944,7 +6163,7 @@
|
|
|
5944
6163
|
inputs: [],
|
|
5945
6164
|
},
|
|
5946
6165
|
{
|
|
5947
|
-
inputs: [{ fieldType: 'common', name: '
|
|
6166
|
+
inputs: [{ fieldType: 'common', name: 'organizationAddress', required: true, dadata: true }],
|
|
5948
6167
|
},
|
|
5949
6168
|
],
|
|
5950
6169
|
[
|
|
@@ -8325,7 +8544,7 @@
|
|
|
8325
8544
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
8326
8545
|
});
|
|
8327
8546
|
|
|
8328
|
-
const packageVersion = "0.14.
|
|
8547
|
+
const packageVersion = "0.14.632";
|
|
8329
8548
|
|
|
8330
8549
|
exports.Blocks = Blocks;
|
|
8331
8550
|
exports.ContentPage = ContentPage;
|