@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
|
@@ -1247,8 +1247,9 @@
|
|
|
1247
1247
|
dulIssuedBy: PASSPORT_FMS_HINTS_LIST_OPTIONS,
|
|
1248
1248
|
organizationName: ORGANIZATION_NAME_HINTS_LIST_OPTIONS,
|
|
1249
1249
|
inn: ORGANIZATION_INN_HINTS_LIST_OPTIONS,
|
|
1250
|
-
|
|
1251
|
-
|
|
1250
|
+
addressRegistration: ADDRESS_HINTS_LIST_OPTIONS,
|
|
1251
|
+
addressFact: ADDRESS_HINTS_LIST_OPTIONS,
|
|
1252
|
+
organizationAddress: ADDRESS_HINTS_LIST_OPTIONS,
|
|
1252
1253
|
};
|
|
1253
1254
|
|
|
1254
1255
|
const debounce = (fn, delay = 600) => {
|
|
@@ -1467,6 +1468,7 @@
|
|
|
1467
1468
|
addressBranch: defaultSelectValidator(),
|
|
1468
1469
|
phone: phoneValidator('Укажите номер телефона'),
|
|
1469
1470
|
secondaryPhone: phoneValidator('Укажите номер телефона'),
|
|
1471
|
+
organizationPhone: phoneValidator('Укажите номер телефона'),
|
|
1470
1472
|
birthday: defaultValidator('Укажите дату рождения'),
|
|
1471
1473
|
birthPlace: defaultValidator('Укажите место рождения'),
|
|
1472
1474
|
education: defaultValidator('Выберите ваше образование'),
|
|
@@ -1492,7 +1494,7 @@
|
|
|
1492
1494
|
experience5Years: jobNumberValidator('Укажите общий стаж за последние 5 лет'),
|
|
1493
1495
|
jobsNumber: jobNumberValidator('Укажите количество мест работы за последние 5 лет'),
|
|
1494
1496
|
beginDate: defaultValidator('Укажите дату заключения трудового договора'),
|
|
1495
|
-
|
|
1497
|
+
addressFact: defaultValidator(),
|
|
1496
1498
|
partnerComments: defaultValidator(),
|
|
1497
1499
|
collectionCount: defaultValidator(),
|
|
1498
1500
|
comment: defaultValidator(),
|
|
@@ -1521,7 +1523,8 @@
|
|
|
1521
1523
|
conscription: defaultValidator(),
|
|
1522
1524
|
armyIdFlg: agreementValidator,
|
|
1523
1525
|
sex: defaultValidator('Укажите свой пол'),
|
|
1524
|
-
|
|
1526
|
+
addressRegistration: defaultValidator('Необходимо выбрать адрес'),
|
|
1527
|
+
organizationAddress: defaultValidator('Необходимо выбрать адрес'),
|
|
1525
1528
|
participantDateRegistration: defaultValidator('Укажите дату регистрации'),
|
|
1526
1529
|
retirementIncome: defaultValidator(),
|
|
1527
1530
|
otherIncome: defaultValidator(),
|
|
@@ -1676,6 +1679,34 @@
|
|
|
1676
1679
|
})), ...getValidation(field('addressBranch'), validatorObj.addressBranch, input?.required), isSearch: true }));
|
|
1677
1680
|
});
|
|
1678
1681
|
|
|
1682
|
+
const AddressField = JSX(({ field, input }) => {
|
|
1683
|
+
const fieldName = input?.name || 'addressRegistration';
|
|
1684
|
+
const fieldValue = field(fieldName).value;
|
|
1685
|
+
const onDaDataChange = useCallback((item) => {
|
|
1686
|
+
field?.(fieldName)?.onChange?.({
|
|
1687
|
+
apartment: item?.data?.flat,
|
|
1688
|
+
city: item?.data?.city,
|
|
1689
|
+
district: item?.data?.area_with_type,
|
|
1690
|
+
fullAddress: item?.value,
|
|
1691
|
+
fiasCode: item?.data?.fias_id,
|
|
1692
|
+
house: item?.data?.house,
|
|
1693
|
+
locality: item?.data?.settlement_with_type,
|
|
1694
|
+
okatoRegionCode: item?.data?.okato,
|
|
1695
|
+
postcode: item?.data?.postal_code,
|
|
1696
|
+
region: item?.data?.region,
|
|
1697
|
+
regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
|
|
1698
|
+
street: item?.data?.house,
|
|
1699
|
+
});
|
|
1700
|
+
}, []);
|
|
1701
|
+
const onChange = useCallback((value) => {
|
|
1702
|
+
field?.(fieldName)?.onChange?.({
|
|
1703
|
+
...field(fieldName).value,
|
|
1704
|
+
fullAddress: value,
|
|
1705
|
+
});
|
|
1706
|
+
}, []);
|
|
1707
|
+
return (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field(fieldName), validatorObj[fieldName], input?.required), value: fieldValue.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
|
|
1708
|
+
});
|
|
1709
|
+
|
|
1679
1710
|
const useNormalizedInput = (props, { normalize, format }) => {
|
|
1680
1711
|
const { value, onFocus, onBlur, onChange } = props;
|
|
1681
1712
|
const [isFocused, setIsFocused] = useState(false);
|
|
@@ -1752,10 +1783,14 @@
|
|
|
1752
1783
|
};
|
|
1753
1784
|
|
|
1754
1785
|
const SelectField = UniBlock(({ field, source, label, fieldName, input }) => {
|
|
1755
|
-
const
|
|
1756
|
-
|
|
1786
|
+
const leadOptions = (source &&
|
|
1787
|
+
source?.map((_) => ({
|
|
1788
|
+
key: _.key || '',
|
|
1789
|
+
text: _.value,
|
|
1790
|
+
}))) ||
|
|
1791
|
+
[];
|
|
1792
|
+
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) }));
|
|
1757
1793
|
});
|
|
1758
|
-
const arrayToOptions$1 = (array) => (array ?? []).map((_) => ({ key: _, text: _ }));
|
|
1759
1794
|
|
|
1760
1795
|
const AmountWorkersField = JSX(({ field, input }) => {
|
|
1761
1796
|
const { data: amountWorkers } = useLeadFormData('EMPLOYEES_NUMBER');
|
|
@@ -2187,7 +2222,7 @@
|
|
|
2187
2222
|
return (jsx(SelectField, { field: field, source: creditInRshbCd, label: LABEL_TEXT, fieldName: "creditInRshbCd", input: input }));
|
|
2188
2223
|
});
|
|
2189
2224
|
|
|
2190
|
-
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 })));
|
|
2225
|
+
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 })));
|
|
2191
2226
|
|
|
2192
2227
|
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) })));
|
|
2193
2228
|
|
|
@@ -2203,15 +2238,15 @@
|
|
|
2203
2238
|
return (jsx(InputControl, { label: "\u041A\u0435\u043C \u0432\u044B\u0434\u0430\u043D", ...input, ...getValidation(field('dulIssuedBy'), validatorObj.dulIssuedBy, input?.required), onDaDataChange: onDaDataChange, daDataQueryPrefix: dulSubdivisionCode }));
|
|
2204
2239
|
});
|
|
2205
2240
|
|
|
2206
|
-
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) })));
|
|
2241
|
+
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) })));
|
|
2207
2242
|
|
|
2208
|
-
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) })));
|
|
2243
|
+
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) })));
|
|
2209
2244
|
|
|
2210
2245
|
const DulSubdivisionCodeField = JSX(({ field, input }) => {
|
|
2211
2246
|
const onDaDataChange = useCallback((item) => {
|
|
2212
2247
|
field?.('dulIssuedBy')?.onChange?.(item?.data?.name);
|
|
2213
2248
|
}, []);
|
|
2214
|
-
return (jsx(InputControl, { label: "\u041A\u043E\u0434 \u043F\u043E\u0434\u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F",
|
|
2249
|
+
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 }));
|
|
2215
2250
|
});
|
|
2216
2251
|
|
|
2217
2252
|
const EducationField = JSX(({ field, input }) => {
|
|
@@ -2235,15 +2270,15 @@
|
|
|
2235
2270
|
});
|
|
2236
2271
|
|
|
2237
2272
|
const EmploymentField = JSX(({ field, input }) => {
|
|
2238
|
-
const { data: employment } = useLeadFormData('
|
|
2273
|
+
const { data: employment } = useLeadFormData('EMPLOYMENT_INFO_UNITED');
|
|
2239
2274
|
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 }));
|
|
2240
2275
|
});
|
|
2241
2276
|
|
|
2242
2277
|
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 })));
|
|
2243
2278
|
|
|
2244
|
-
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 })));
|
|
2279
|
+
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 })));
|
|
2245
2280
|
|
|
2246
|
-
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 })));
|
|
2281
|
+
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 })));
|
|
2247
2282
|
|
|
2248
2283
|
const FamilyStatusField = JSX(({ field, input }) => {
|
|
2249
2284
|
const { data: familyStatus } = useLeadFormData('MARITAL_STATUS');
|
|
@@ -2265,11 +2300,9 @@
|
|
|
2265
2300
|
|
|
2266
2301
|
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) })));
|
|
2267
2302
|
|
|
2268
|
-
const FullAddressField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field('fullAddress'), validatorObj.fullAddress, input?.required), ...input })));
|
|
2269
|
-
|
|
2270
2303
|
const FullNameField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0424\u0418\u041E", ...getValidation(field('fullName'), validatorObj.fullName, input?.required), ...input })));
|
|
2271
2304
|
|
|
2272
|
-
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 })));
|
|
2305
|
+
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 })));
|
|
2273
2306
|
|
|
2274
2307
|
const HousingField = JSX(({ field, input }) => {
|
|
2275
2308
|
const { data: housing } = useLeadFormData('HOUSE_TYPE');
|
|
@@ -2286,9 +2319,9 @@
|
|
|
2286
2319
|
|
|
2287
2320
|
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"' })));
|
|
2288
2321
|
|
|
2289
|
-
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 })));
|
|
2322
|
+
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 })));
|
|
2290
2323
|
|
|
2291
|
-
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 })));
|
|
2324
|
+
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 })));
|
|
2292
2325
|
|
|
2293
2326
|
const LegalEntityNameField = JSX(({ field, input }) => {
|
|
2294
2327
|
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) }));
|
|
@@ -2345,8 +2378,6 @@
|
|
|
2345
2378
|
|
|
2346
2379
|
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 })));
|
|
2347
2380
|
|
|
2348
|
-
const ParticipantAddressField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field('participantAddress'), validatorObj.participantAddress, input?.required), ...input })));
|
|
2349
|
-
|
|
2350
2381
|
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) })));
|
|
2351
2382
|
|
|
2352
2383
|
const MAX_PART = 100;
|
|
@@ -2356,7 +2387,7 @@
|
|
|
2356
2387
|
};
|
|
2357
2388
|
const handleChange = (value) => partInBusinessField?.onChange &&
|
|
2358
2389
|
partInBusinessField?.onChange(String(Number(value) > MAX_PART ? MAX_PART : Number(value) || ''));
|
|
2359
|
-
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 %",
|
|
2390
|
+
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 }));
|
|
2360
2391
|
});
|
|
2361
2392
|
|
|
2362
2393
|
const PartnerCommentsField = JSX(({ field, input }) => {
|
|
@@ -2390,7 +2421,7 @@
|
|
|
2390
2421
|
|
|
2391
2422
|
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)] })));
|
|
2392
2423
|
|
|
2393
|
-
const PhoneField = JSX(({ field, input }) => (jsx(InputPhoneControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...getValidation(field('phone'), validatorObj.phone, input?.required), ...input })));
|
|
2424
|
+
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 })));
|
|
2394
2425
|
|
|
2395
2426
|
const PositionOrganizationField = JSX(({ field, input }) => {
|
|
2396
2427
|
const { data: positionOrganization } = useLeadFormData('POSITION');
|
|
@@ -3169,6 +3200,7 @@
|
|
|
3169
3200
|
name: jsx(NameField, { field: field, input: input }),
|
|
3170
3201
|
middleName: jsx(MiddleNameField, { field: field, input: input }),
|
|
3171
3202
|
phone: jsx(PhoneField, { field: field, input: input }),
|
|
3203
|
+
organizationPhone: jsx(PhoneField, { field: field, input: input }),
|
|
3172
3204
|
email: jsx(EmailField, { field: field, input: input }),
|
|
3173
3205
|
fullName: jsx(FullNameField, { field: field, input: input }),
|
|
3174
3206
|
inn: jsx(InnField, { field: field, input: input }),
|
|
@@ -3179,7 +3211,8 @@
|
|
|
3179
3211
|
experience5Years: jsx(Experience5YearsField, { field: field, input: input }),
|
|
3180
3212
|
jobsNumber: jsx(JobsNumberField, { field: field, input: input }),
|
|
3181
3213
|
beginDate: jsx(BeginDateField, { field: field, input: input }),
|
|
3182
|
-
|
|
3214
|
+
addressFact: jsx(AddressField, { field: field, input: input }),
|
|
3215
|
+
organizationAddress: jsx(AddressField, { field: field, input: input }),
|
|
3183
3216
|
comment: jsx(CommentField, { field: field, input: input }),
|
|
3184
3217
|
addressBranch: jsx(AddressBranchField, { field: field, input: input, isPremium: isPremium }),
|
|
3185
3218
|
sex: jsx(SexField, { field: field, input: input }),
|
|
@@ -3233,7 +3266,7 @@
|
|
|
3233
3266
|
dulIssueDateField: jsx(DulIssueDateField, { field: field, input: input }),
|
|
3234
3267
|
dulSubdivisionCode: jsx(DulSubdivisionCodeField, { field: field, input: input }),
|
|
3235
3268
|
dulIssuedBy: jsx(DulIssuedByField, { field: field, input: input }),
|
|
3236
|
-
|
|
3269
|
+
addressRegistration: jsx(AddressField, { field: field, input: input }),
|
|
3237
3270
|
participantDateRegistration: jsx(ParticipantDateRegistrationField, { field: field, input: input }),
|
|
3238
3271
|
retirementIncome: jsx(RetirementIncomeField, { field: field, input: input }),
|
|
3239
3272
|
otherIncome: jsx(OtherIncomeField, { field: field, input: input }),
|
|
@@ -3449,6 +3482,7 @@
|
|
|
3449
3482
|
name: '',
|
|
3450
3483
|
phone: '',
|
|
3451
3484
|
secondaryPhone: '',
|
|
3485
|
+
organizationPhone: '',
|
|
3452
3486
|
comment: '',
|
|
3453
3487
|
product: '',
|
|
3454
3488
|
partnerComments: '',
|
|
@@ -3470,7 +3504,7 @@
|
|
|
3470
3504
|
consentProviderFlg: false,
|
|
3471
3505
|
consentOthersFlg: false,
|
|
3472
3506
|
consentInformFlg: false,
|
|
3473
|
-
|
|
3507
|
+
addressRegistration: '',
|
|
3474
3508
|
participantDateRegistration: undefined,
|
|
3475
3509
|
};
|
|
3476
3510
|
const getInitialFormState$1 = (inputs, savedForm, typeForm = '') => {
|
|
@@ -3518,48 +3552,6 @@
|
|
|
3518
3552
|
};
|
|
3519
3553
|
};
|
|
3520
3554
|
|
|
3521
|
-
const getUpdateUserTaskData = ({ participantId, taskId, profileId, formData, }) => {
|
|
3522
|
-
const { name = '', surname = '', middleName = '', birthday = '', phone = '', email = '', } = formData;
|
|
3523
|
-
return {
|
|
3524
|
-
sendToBank: true,
|
|
3525
|
-
taskKind: 'SHORT',
|
|
3526
|
-
task: {
|
|
3527
|
-
taskSource: globalThis.location.origin,
|
|
3528
|
-
id: taskId,
|
|
3529
|
-
participants: [
|
|
3530
|
-
{
|
|
3531
|
-
birthDate: formatDate(birthday, true),
|
|
3532
|
-
id: participantId,
|
|
3533
|
-
midname: middleName,
|
|
3534
|
-
name: name,
|
|
3535
|
-
surname: surname,
|
|
3536
|
-
profile: {
|
|
3537
|
-
id: profileId,
|
|
3538
|
-
},
|
|
3539
|
-
participantContacts: [
|
|
3540
|
-
{
|
|
3541
|
-
contactTypeCd: {
|
|
3542
|
-
key: 'EMAIL',
|
|
3543
|
-
},
|
|
3544
|
-
value: email,
|
|
3545
|
-
},
|
|
3546
|
-
{
|
|
3547
|
-
contactTypeCd: {
|
|
3548
|
-
key: 'MAIN_PHONE',
|
|
3549
|
-
},
|
|
3550
|
-
value: formatPhone(phone),
|
|
3551
|
-
},
|
|
3552
|
-
],
|
|
3553
|
-
roleCd: {
|
|
3554
|
-
key: 'BORROWER',
|
|
3555
|
-
value: 'Заемщик',
|
|
3556
|
-
},
|
|
3557
|
-
},
|
|
3558
|
-
],
|
|
3559
|
-
},
|
|
3560
|
-
};
|
|
3561
|
-
};
|
|
3562
|
-
|
|
3563
3555
|
const ICON_SIZE$1 = { width: '103', height: '21' };
|
|
3564
3556
|
|
|
3565
3557
|
const logoTitleSizeStyle = 'text-s';
|
|
@@ -3900,6 +3892,95 @@
|
|
|
3900
3892
|
};
|
|
3901
3893
|
};
|
|
3902
3894
|
|
|
3895
|
+
const fieldsNamesToContactKeysMap = {
|
|
3896
|
+
email: 'EMAIL',
|
|
3897
|
+
phone: 'MAIN_PHONE',
|
|
3898
|
+
organizationPhone: 'ORGANIZATION_PHONE',
|
|
3899
|
+
};
|
|
3900
|
+
const fieldsNamesToAddressKeysMap = {
|
|
3901
|
+
addressRegistration: 'REGISTRATION',
|
|
3902
|
+
addressFact: 'RESIDENTAL',
|
|
3903
|
+
organizationAddress: 'WORK',
|
|
3904
|
+
};
|
|
3905
|
+
const fieldsNamesToIncomeKeysMap = {
|
|
3906
|
+
mandatoryIncome: 'INCOME_AVERAGE',
|
|
3907
|
+
otherPayments: 'MANDATORY_PAYMENTS',
|
|
3908
|
+
};
|
|
3909
|
+
const getParticipantContacts = (fields) => Object.entries(fields).reduce((acc, [key, value]) => {
|
|
3910
|
+
if (key in fieldsNamesToContactKeysMap) {
|
|
3911
|
+
return [
|
|
3912
|
+
...acc,
|
|
3913
|
+
{
|
|
3914
|
+
contactTypeCd: {
|
|
3915
|
+
key: fieldsNamesToContactKeysMap[key],
|
|
3916
|
+
},
|
|
3917
|
+
value,
|
|
3918
|
+
},
|
|
3919
|
+
];
|
|
3920
|
+
}
|
|
3921
|
+
return acc;
|
|
3922
|
+
}, []);
|
|
3923
|
+
const getParticipantAddresses = (fields) => Object.entries(fields).reduce((acc, [key, value]) => {
|
|
3924
|
+
if (key in fieldsNamesToAddressKeysMap) {
|
|
3925
|
+
return [
|
|
3926
|
+
...acc,
|
|
3927
|
+
{
|
|
3928
|
+
addressType: {
|
|
3929
|
+
key: fieldsNamesToAddressKeysMap[key],
|
|
3930
|
+
},
|
|
3931
|
+
...value,
|
|
3932
|
+
},
|
|
3933
|
+
];
|
|
3934
|
+
}
|
|
3935
|
+
return acc;
|
|
3936
|
+
}, []);
|
|
3937
|
+
const getParticipantIncomes = (fields) => Object.entries(fields).reduce((acc, [key, value]) => {
|
|
3938
|
+
if (key in fieldsNamesToIncomeKeysMap) {
|
|
3939
|
+
return [
|
|
3940
|
+
...acc,
|
|
3941
|
+
{
|
|
3942
|
+
incomeTypeCd: {
|
|
3943
|
+
key: fieldsNamesToIncomeKeysMap[key],
|
|
3944
|
+
},
|
|
3945
|
+
value,
|
|
3946
|
+
},
|
|
3947
|
+
];
|
|
3948
|
+
}
|
|
3949
|
+
return acc;
|
|
3950
|
+
}, []);
|
|
3951
|
+
|
|
3952
|
+
const getLeadFormTaskData = ({ participantId, taskId, profileId, formData, }) => {
|
|
3953
|
+
const { name, surname, middleName, birthday, phone, email } = formData;
|
|
3954
|
+
return {
|
|
3955
|
+
sendToBank: true,
|
|
3956
|
+
taskKind: 'SHORT',
|
|
3957
|
+
task: {
|
|
3958
|
+
taskSource: globalThis.location.origin,
|
|
3959
|
+
id: taskId,
|
|
3960
|
+
participants: [
|
|
3961
|
+
{
|
|
3962
|
+
birthDate: birthday && formatDate(birthday, true),
|
|
3963
|
+
id: participantId,
|
|
3964
|
+
midname: middleName,
|
|
3965
|
+
name,
|
|
3966
|
+
surname,
|
|
3967
|
+
profile: {
|
|
3968
|
+
id: profileId,
|
|
3969
|
+
},
|
|
3970
|
+
participantContacts: getParticipantContacts({
|
|
3971
|
+
phone: phone && formatPhone(phone),
|
|
3972
|
+
email,
|
|
3973
|
+
}),
|
|
3974
|
+
roleCd: {
|
|
3975
|
+
key: 'BORROWER',
|
|
3976
|
+
value: 'Заемщик',
|
|
3977
|
+
},
|
|
3978
|
+
},
|
|
3979
|
+
],
|
|
3980
|
+
},
|
|
3981
|
+
};
|
|
3982
|
+
};
|
|
3983
|
+
|
|
3903
3984
|
const useApplicationLeadApi = ({ inputs, programId, nextStepLink, saveForm, }) => {
|
|
3904
3985
|
const [responseStatus, setResponseStatus] = useState('');
|
|
3905
3986
|
const [, setTaskId] = useLocalStorage('taskId');
|
|
@@ -3961,7 +4042,7 @@
|
|
|
3961
4042
|
profileId,
|
|
3962
4043
|
programId,
|
|
3963
4044
|
});
|
|
3964
|
-
await updateUserTask(
|
|
4045
|
+
await updateUserTask(getLeadFormTaskData({
|
|
3965
4046
|
participantId,
|
|
3966
4047
|
taskId,
|
|
3967
4048
|
profileId,
|
|
@@ -4522,7 +4603,7 @@
|
|
|
4522
4603
|
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] })));
|
|
4523
4604
|
|
|
4524
4605
|
const CalculatorStyle = {
|
|
4525
|
-
wrapper: 'flex flex-col justify-between
|
|
4606
|
+
wrapper: 'flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl',
|
|
4526
4607
|
input: 'flex flex-col lg:max-w-80 lg:w-1/2 gap-2xl',
|
|
4527
4608
|
result: 'flex flex-col gap-y-xl min-w-52',
|
|
4528
4609
|
};
|
|
@@ -4540,9 +4621,9 @@
|
|
|
4540
4621
|
|
|
4541
4622
|
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] })] })));
|
|
4542
4623
|
|
|
4543
|
-
const UnknownRate = JSX(({ title = 'Ставка'
|
|
4624
|
+
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" }) })] })));
|
|
4544
4625
|
|
|
4545
|
-
const renderRate = ({ title = 'Ставка', rate = 0, unit = '%', fractionDigits = 2,
|
|
4626
|
+
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 }));
|
|
4546
4627
|
|
|
4547
4628
|
const DEFAULT_MONEY_STEP = 1000;
|
|
4548
4629
|
const renderWantedSumInput = ({ isShowItems = true, step = DEFAULT_MONEY_STEP, postfix = '₽', ...rest }) => (jsx(InputRange, { items: isShowItems
|
|
@@ -4624,7 +4705,6 @@
|
|
|
4624
4705
|
title: 'Баллов за месяц',
|
|
4625
4706
|
rate: monthBonus,
|
|
4626
4707
|
fractionDigits: 0,
|
|
4627
|
-
isUnknownRateShown: false,
|
|
4628
4708
|
unit: '',
|
|
4629
4709
|
color: 'text-primary-text',
|
|
4630
4710
|
})
|
|
@@ -4689,7 +4769,6 @@
|
|
|
4689
4769
|
|
|
4690
4770
|
const BUSINESS_MIN_DAYS = 1;
|
|
4691
4771
|
const BUSINESS_MAX_DAYS = 1095;
|
|
4692
|
-
const BUSINESS_RATE_MIN_DAYS = 30; // порог количества дней, при которых ставка не доступна
|
|
4693
4772
|
const BUSINESS_OPERATING_MIN_DAYS = 90;
|
|
4694
4773
|
const BUSINESS_OPERATING_MAX_DAYS = 730;
|
|
4695
4774
|
const DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS = {
|
|
@@ -4708,14 +4787,6 @@
|
|
|
4708
4787
|
const isOperatingDeposit = isReplenished || isPartialWithdrawal;
|
|
4709
4788
|
const isDisabledOperatingDeposit = daysValue < BUSINESS_OPERATING_MIN_DAYS || daysValue > BUSINESS_OPERATING_MAX_DAYS;
|
|
4710
4789
|
const rateRows = useBusinessDepositRates(rateParams);
|
|
4711
|
-
if (daysValue <= BUSINESS_RATE_MIN_DAYS) {
|
|
4712
|
-
return {
|
|
4713
|
-
...DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS,
|
|
4714
|
-
...userInputParams,
|
|
4715
|
-
isDisabledOperatingDeposit,
|
|
4716
|
-
isUnavailableByTerm: true,
|
|
4717
|
-
};
|
|
4718
|
-
}
|
|
4719
4790
|
const businessDepositCalculatorSourceBookParams = rateRows?.find((_) => {
|
|
4720
4791
|
return (isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
|
|
4721
4792
|
checkIsOperatingDeposit(isOperatingDeposit, _) &&
|
|
@@ -4763,7 +4834,7 @@
|
|
|
4763
4834
|
isMonthlyInterestPayment: Boolean(defaultParams?.isMonthlyInterestPayment),
|
|
4764
4835
|
});
|
|
4765
4836
|
const calculatorParams = useBusinessDepositParams(userInputParams, rateParams);
|
|
4766
|
-
const { income, finalSum, rate,
|
|
4837
|
+
const { income, finalSum, rate, depositeName } = calculatorParams;
|
|
4767
4838
|
return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
|
|
4768
4839
|
title: 'Сумма, ₽',
|
|
4769
4840
|
min: calculatorParams.minSum,
|
|
@@ -4785,7 +4856,6 @@
|
|
|
4785
4856
|
rate,
|
|
4786
4857
|
depositeName,
|
|
4787
4858
|
isShowDepositeName,
|
|
4788
|
-
isUnavailableByTerm,
|
|
4789
4859
|
}), renderDepositResult({
|
|
4790
4860
|
income,
|
|
4791
4861
|
finalSum,
|
|
@@ -5681,7 +5751,7 @@
|
|
|
5681
5751
|
const InfoCard = JSX(({ __html, icon = 'InfoCircleIcon', iconVersion = 'black', link }) => (jsxs("div", { className: "flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m", children: [jsx("div", { className: "rounded-full bg-white p-xs", children: jsx(Icon, { name: icon, width: "24", height: "24", iconVersion: iconVersion }) }), jsxs("div", { className: "", children: [jsx(RichText, { __html: __html }), link?.text ? jsx(LinkButton, { className: "text-primary-main", children: link.text }) : null] })] })));
|
|
5682
5752
|
|
|
5683
5753
|
const formStateMap = {
|
|
5684
|
-
|
|
5754
|
+
0: {
|
|
5685
5755
|
surname: '',
|
|
5686
5756
|
name: '',
|
|
5687
5757
|
middleName: '',
|
|
@@ -5695,30 +5765,39 @@
|
|
|
5695
5765
|
dulIssueDateField: undefined,
|
|
5696
5766
|
dulSubdivisionCode: '',
|
|
5697
5767
|
dulIssuedBy: '',
|
|
5698
|
-
|
|
5768
|
+
addressRegistration: {
|
|
5769
|
+
fullAddress: '',
|
|
5770
|
+
fiasCode: '',
|
|
5771
|
+
},
|
|
5699
5772
|
participantDateRegistration: undefined,
|
|
5700
|
-
|
|
5773
|
+
addressFact: {
|
|
5774
|
+
fullAddress: '',
|
|
5775
|
+
fiasCode: '',
|
|
5776
|
+
},
|
|
5701
5777
|
housing: '',
|
|
5702
5778
|
},
|
|
5703
|
-
|
|
5704
|
-
employment: { key: '', text: '' },
|
|
5705
|
-
organizationName: '',
|
|
5706
|
-
inn: undefined,
|
|
5707
|
-
legalForm: '',
|
|
5708
|
-
organization: { key: '', text: '' },
|
|
5779
|
+
1: {
|
|
5709
5780
|
amountWorkers: { key: '', text: '' },
|
|
5781
|
+
beginDate: undefined,
|
|
5710
5782
|
employerActivities: { key: '', text: '' },
|
|
5711
5783
|
employerOrganization: { key: '', text: '' },
|
|
5712
|
-
|
|
5784
|
+
employment: { key: '', text: '' },
|
|
5713
5785
|
experience5Years: '',
|
|
5786
|
+
inn: undefined,
|
|
5714
5787
|
jobsNumber: '',
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5788
|
+
lastJobExperience: '',
|
|
5789
|
+
legalForm: '',
|
|
5790
|
+
organization: { key: '', text: '' },
|
|
5791
|
+
organizationAddress: {
|
|
5792
|
+
fullAddress: '',
|
|
5793
|
+
fiasCode: '',
|
|
5794
|
+
},
|
|
5795
|
+
organizationName: '',
|
|
5796
|
+
organizationPhone: '',
|
|
5718
5797
|
partInBusiness: undefined,
|
|
5719
|
-
|
|
5798
|
+
positionOrganization: { key: '', text: '' },
|
|
5720
5799
|
},
|
|
5721
|
-
|
|
5800
|
+
2: {
|
|
5722
5801
|
familyStatus: { key: '', text: '' },
|
|
5723
5802
|
dependents: undefined,
|
|
5724
5803
|
familyMembers: undefined,
|
|
@@ -5727,14 +5806,14 @@
|
|
|
5727
5806
|
snils: '',
|
|
5728
5807
|
armyIdFlg: false,
|
|
5729
5808
|
},
|
|
5730
|
-
|
|
5731
|
-
disablePeopleFlg:
|
|
5732
|
-
bankruptcyFlg:
|
|
5733
|
-
shareholderFlg:
|
|
5809
|
+
3: {
|
|
5810
|
+
disablePeopleFlg: false,
|
|
5811
|
+
bankruptcyFlg: false,
|
|
5812
|
+
shareholderFlg: false,
|
|
5734
5813
|
legalEntityName: '',
|
|
5735
|
-
creditInRshbCd:
|
|
5814
|
+
creditInRshbCd: undefined,
|
|
5736
5815
|
},
|
|
5737
|
-
|
|
5816
|
+
4: {
|
|
5738
5817
|
regionRetail: '',
|
|
5739
5818
|
addressRetail: '',
|
|
5740
5819
|
bankEmployeeCode: '',
|
|
@@ -5763,13 +5842,147 @@
|
|
|
5763
5842
|
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" })] }));
|
|
5764
5843
|
});
|
|
5765
5844
|
|
|
5766
|
-
const
|
|
5845
|
+
const getFirstStepData = (formData) => {
|
|
5846
|
+
const { name, surname, middleName, birthday = '', phone = '', email, sex, birthPlace, dulIssueDateField = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, } = formData;
|
|
5847
|
+
return {
|
|
5848
|
+
birthDate: formatDate(birthday, true),
|
|
5849
|
+
midname: middleName,
|
|
5850
|
+
name,
|
|
5851
|
+
surname,
|
|
5852
|
+
birthPlace,
|
|
5853
|
+
dulIssueDate: formatDate(dulIssueDateField, true),
|
|
5854
|
+
dulIssuedBy,
|
|
5855
|
+
dulNumber,
|
|
5856
|
+
dulSerie,
|
|
5857
|
+
dulSubdivisionCode,
|
|
5858
|
+
educationLevelCd: education,
|
|
5859
|
+
registrationDate: formatDate(participantDateRegistration, true),
|
|
5860
|
+
houseTypeCd: housing,
|
|
5861
|
+
participantContacts: getParticipantContacts({
|
|
5862
|
+
phone: formatPhone(phone),
|
|
5863
|
+
email,
|
|
5864
|
+
}),
|
|
5865
|
+
participantAddresses: getParticipantAddresses({ addressRegistration, addressFact }),
|
|
5866
|
+
genderCd: sex
|
|
5867
|
+
? {
|
|
5868
|
+
key: sex === 'male' ? 'MAN' : 'WOMAN',
|
|
5869
|
+
}
|
|
5870
|
+
: undefined,
|
|
5871
|
+
};
|
|
5872
|
+
};
|
|
5873
|
+
|
|
5874
|
+
const getFourthStepData = (formData) => {
|
|
5875
|
+
const { bankruptcyFlg, shareholderFlg, legalEntityName, creditInRshbCd } = formData;
|
|
5876
|
+
return {
|
|
5877
|
+
bankruptcyFlg,
|
|
5878
|
+
shareholderFlg,
|
|
5879
|
+
nameLegalEntity: legalEntityName,
|
|
5880
|
+
creditInRshbCd,
|
|
5881
|
+
};
|
|
5882
|
+
};
|
|
5883
|
+
|
|
5884
|
+
const getSecondStepData = (formData) => {
|
|
5885
|
+
const { employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
|
|
5886
|
+
return {
|
|
5887
|
+
employmentTypeCd: employment,
|
|
5888
|
+
organizationName,
|
|
5889
|
+
organizationInn: inn,
|
|
5890
|
+
organizationActivityTypeCd: employerActivities,
|
|
5891
|
+
organizationTypeCd: organization,
|
|
5892
|
+
organizationKindCd: employerOrganization,
|
|
5893
|
+
employeesNumberCd: amountWorkers,
|
|
5894
|
+
opf: legalForm,
|
|
5895
|
+
seniority: generalSeniority,
|
|
5896
|
+
generalSeniority: experience5Years,
|
|
5897
|
+
jobsNumber,
|
|
5898
|
+
lastWorkDuration: lastJobExperience,
|
|
5899
|
+
positionCd: positionOrganization,
|
|
5900
|
+
participantContacts: getParticipantContacts({
|
|
5901
|
+
organizationPhone: organizationPhone && formatPhone(organizationPhone),
|
|
5902
|
+
}),
|
|
5903
|
+
participantAddresses: getParticipantAddresses({ organizationAddress }),
|
|
5904
|
+
};
|
|
5905
|
+
};
|
|
5906
|
+
|
|
5907
|
+
const getThirdStepData = (formData) => {
|
|
5908
|
+
const { familyStatus, dependents, familyMembers, mandatoryIncome, otherPayments, snils, armyIdFlg, } = formData;
|
|
5909
|
+
return {
|
|
5910
|
+
maritalStatusCd: familyStatus,
|
|
5911
|
+
totalDependents: familyMembers,
|
|
5912
|
+
otherDependents: dependents,
|
|
5913
|
+
participantIncomes: getParticipantIncomes({
|
|
5914
|
+
mandatoryIncome,
|
|
5915
|
+
otherPayments,
|
|
5916
|
+
}),
|
|
5917
|
+
snils: snils?.replaceAll(' ', ''),
|
|
5918
|
+
armyIdFlg,
|
|
5919
|
+
};
|
|
5920
|
+
};
|
|
5921
|
+
|
|
5922
|
+
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
5923
|
+
return {
|
|
5924
|
+
sendToBank: true,
|
|
5925
|
+
taskKind: 'UNITED',
|
|
5926
|
+
task: {
|
|
5927
|
+
taskSource: globalThis.location.origin,
|
|
5928
|
+
id: taskId,
|
|
5929
|
+
//TODO: Добавить id офиса
|
|
5930
|
+
authorizedAgentId: formData?.bankEmployeeCode,
|
|
5931
|
+
participants: [
|
|
5932
|
+
{
|
|
5933
|
+
id: participantId,
|
|
5934
|
+
profile: {
|
|
5935
|
+
id: profileId,
|
|
5936
|
+
},
|
|
5937
|
+
roleCd: {
|
|
5938
|
+
key: 'BORROWER',
|
|
5939
|
+
value: 'Заемщик',
|
|
5940
|
+
},
|
|
5941
|
+
...getCurrentStepData(step, formData),
|
|
5942
|
+
},
|
|
5943
|
+
],
|
|
5944
|
+
},
|
|
5945
|
+
};
|
|
5946
|
+
};
|
|
5947
|
+
const getCurrentStepData = (step, formData) => {
|
|
5948
|
+
switch (step) {
|
|
5949
|
+
case 0:
|
|
5950
|
+
return getFirstStepData(formData);
|
|
5951
|
+
case 1:
|
|
5952
|
+
return getSecondStepData(formData);
|
|
5953
|
+
case 2:
|
|
5954
|
+
return getThirdStepData(formData);
|
|
5955
|
+
case 3:
|
|
5956
|
+
return getFourthStepData(formData);
|
|
5957
|
+
default:
|
|
5958
|
+
return getFirstStepData(formData);
|
|
5959
|
+
}
|
|
5960
|
+
};
|
|
5961
|
+
|
|
5962
|
+
const useCreditFormApi = ({ inputs, step, onNextStep, saveStep }) => {
|
|
5963
|
+
const [taskId] = useLocalStorage('taskId');
|
|
5964
|
+
const [profileId] = useLocalStorage('profileId');
|
|
5965
|
+
const [participantId] = useLocalStorage('participantId');
|
|
5767
5966
|
const handleSubmit = useCallback(async (formData) => {
|
|
5768
5967
|
const feedbackValidator = objectValidator(getObjectValidator(inputs));
|
|
5769
5968
|
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
5770
5969
|
return console.warn('validation fail');
|
|
5771
5970
|
}
|
|
5772
5971
|
saveStep(formData);
|
|
5972
|
+
try {
|
|
5973
|
+
if (taskId && profileId && participantId) {
|
|
5974
|
+
await updateUserTask(getCreditFormTaskData({
|
|
5975
|
+
participantId,
|
|
5976
|
+
taskId,
|
|
5977
|
+
profileId,
|
|
5978
|
+
step,
|
|
5979
|
+
formData: formData,
|
|
5980
|
+
}));
|
|
5981
|
+
}
|
|
5982
|
+
}
|
|
5983
|
+
catch (ex) {
|
|
5984
|
+
return 'Fail';
|
|
5985
|
+
}
|
|
5773
5986
|
onNextStep();
|
|
5774
5987
|
return 'OK';
|
|
5775
5988
|
}, []);
|
|
@@ -5783,6 +5996,7 @@
|
|
|
5783
5996
|
const initialState = getInitialFormState(step, localStorageData);
|
|
5784
5997
|
const { handleSubmit } = useCreditFormApi({
|
|
5785
5998
|
inputs,
|
|
5999
|
+
step,
|
|
5786
6000
|
onNextStep: onNextStep,
|
|
5787
6001
|
saveStep,
|
|
5788
6002
|
});
|
|
@@ -5840,7 +6054,7 @@
|
|
|
5840
6054
|
inputs: [],
|
|
5841
6055
|
},
|
|
5842
6056
|
{
|
|
5843
|
-
inputs: [{ fieldType: 'common', name: '
|
|
6057
|
+
inputs: [{ fieldType: 'common', name: 'addressRegistration', required: true, dadata: true }],
|
|
5844
6058
|
},
|
|
5845
6059
|
{
|
|
5846
6060
|
columns: 2,
|
|
@@ -5850,7 +6064,7 @@
|
|
|
5850
6064
|
title: 'Адрес фактического проживания (место пребывания РФ)',
|
|
5851
6065
|
columns: 2,
|
|
5852
6066
|
inputs: [
|
|
5853
|
-
{ fieldType: 'common', name: '
|
|
6067
|
+
{ fieldType: 'common', name: 'addressFact', required: true, dadata: true },
|
|
5854
6068
|
{ fieldType: 'common', name: 'housing' },
|
|
5855
6069
|
],
|
|
5856
6070
|
},
|
|
@@ -5900,7 +6114,12 @@
|
|
|
5900
6114
|
},
|
|
5901
6115
|
{
|
|
5902
6116
|
inputs: [
|
|
5903
|
-
{
|
|
6117
|
+
{
|
|
6118
|
+
fieldType: 'common',
|
|
6119
|
+
name: 'organizationPhone',
|
|
6120
|
+
label: 'Телефон работодателя',
|
|
6121
|
+
required: true,
|
|
6122
|
+
},
|
|
5904
6123
|
{ fieldType: 'common', name: 'beginDate', required: true },
|
|
5905
6124
|
],
|
|
5906
6125
|
},
|
|
@@ -5916,7 +6135,7 @@
|
|
|
5916
6135
|
inputs: [],
|
|
5917
6136
|
},
|
|
5918
6137
|
{
|
|
5919
|
-
inputs: [{ fieldType: 'common', name: '
|
|
6138
|
+
inputs: [{ fieldType: 'common', name: 'organizationAddress', required: true, dadata: true }],
|
|
5920
6139
|
},
|
|
5921
6140
|
],
|
|
5922
6141
|
[
|
|
@@ -7931,7 +8150,7 @@
|
|
|
7931
8150
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
7932
8151
|
});
|
|
7933
8152
|
|
|
7934
|
-
const packageVersion = "0.14.
|
|
8153
|
+
const packageVersion = "0.14.632";
|
|
7935
8154
|
|
|
7936
8155
|
exports.Blocks = Blocks;
|
|
7937
8156
|
exports.ContentPage = ContentPage;
|