@redneckz/wildless-cms-uni-blocks 0.14.602 → 0.14.604
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +369 -58
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
- package/bundle/components/ApplicationForm/renderInputs.d.ts +3 -0
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
- package/bundle/components/CreditForm/CreditForm.d.ts +13 -0
- package/bundle/components/CreditForm/CreditFormContent.d.ts +28 -0
- package/bundle/components/CreditForm/CreditFormProgress.d.ts +6 -0
- package/bundle/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
- package/bundle/components/CreditForm/creditFormStepsData.d.ts +140 -0
- package/bundle/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/bundle/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
- package/dist/components/ApplicationForm/renderInputs.d.ts +3 -0
- package/dist/components/ApplicationForm/renderInputs.js +16 -0
- package/dist/components/ApplicationForm/renderInputs.js.map +1 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -12
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.d.ts +13 -0
- package/dist/components/CreditForm/CreditForm.js +40 -0
- package/dist/components/CreditForm/CreditForm.js.map +1 -0
- package/dist/components/CreditForm/CreditFormContent.d.ts +28 -0
- package/dist/components/CreditForm/CreditFormContent.js +2 -0
- package/dist/components/CreditForm/CreditFormContent.js.map +1 -0
- package/dist/components/CreditForm/CreditFormProgress.d.ts +6 -0
- package/dist/components/CreditForm/CreditFormProgress.js +11 -0
- package/dist/components/CreditForm/CreditFormProgress.js.map +1 -0
- package/dist/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
- package/dist/components/CreditForm/StepsNavigationButtons.js +20 -0
- package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -0
- package/dist/components/CreditForm/creditFormStepsData.d.ts +140 -0
- package/dist/components/CreditForm/creditFormStepsData.js +217 -0
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js +9 -0
- package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js +9 -0
- package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +14 -0
- package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js +9 -0
- package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +11 -0
- package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/MandatoryIncome.js +9 -0
- package/dist/ui-kit/FormField/Fields/MandatoryIncome.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/OtherIncomeField.js +9 -0
- package/dist/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/OtherPayments.js +9 -0
- package/dist/ui-kit/FormField/Fields/OtherPayments.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +9 -0
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ShareholderFlgField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/getField.js +20 -0
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +9 -0
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/FormField/validators.js +1 -1
- package/dist/ui-kit/FormField/validators.js.map +1 -1
- package/dist/ui-kit/InfoCard/InfoCard.js +1 -1
- package/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/dist/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/dist/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
- package/lib/components/ApplicationForm/renderInputs.d.ts +2 -0
- package/lib/components/ApplicationForm/renderInputs.js +13 -0
- package/lib/components/ApplicationForm/renderInputs.js.map +1 -0
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -11
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.d.ts +13 -0
- package/lib/components/CreditForm/CreditForm.fixture.d.ts +6 -0
- package/lib/components/CreditForm/CreditForm.js +38 -0
- package/lib/components/CreditForm/CreditForm.js.map +1 -0
- package/lib/components/CreditForm/CreditFormContent.d.ts +28 -0
- package/lib/components/CreditForm/CreditFormContent.js +2 -0
- package/lib/components/CreditForm/CreditFormContent.js.map +1 -0
- package/lib/components/CreditForm/CreditFormProgress.d.ts +6 -0
- package/lib/components/CreditForm/CreditFormProgress.js +9 -0
- package/lib/components/CreditForm/CreditFormProgress.js.map +1 -0
- package/lib/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
- package/lib/components/CreditForm/StepsNavigationButtons.js +18 -0
- package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -0
- package/lib/components/CreditForm/creditFormStepsData.d.ts +140 -0
- package/lib/components/CreditForm/creditFormStepsData.js +215 -0
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js +7 -0
- package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js +7 -0
- package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +12 -0
- package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js +7 -0
- package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +9 -0
- package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/MandatoryIncome.js +7 -0
- package/lib/ui-kit/FormField/Fields/MandatoryIncome.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/OtherIncomeField.js +7 -0
- package/lib/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/OtherPayments.js +7 -0
- package/lib/ui-kit/FormField/Fields/OtherPayments.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +7 -0
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ShareholderFlgField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/getField.js +20 -0
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +9 -0
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/FormField/validators.js +1 -1
- package/lib/ui-kit/FormField/validators.js.map +1 -1
- package/lib/ui-kit/InfoCard/InfoCard.js +1 -1
- package/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/lib/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/lib/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +369 -58
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
- package/mobile/bundle/components/ApplicationForm/renderInputs.d.ts +3 -0
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
- package/mobile/bundle/components/CreditForm/CreditForm.d.ts +13 -0
- package/mobile/bundle/components/CreditForm/CreditFormContent.d.ts +28 -0
- package/mobile/bundle/components/CreditForm/CreditFormProgress.d.ts +6 -0
- package/mobile/bundle/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
- package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +140 -0
- package/mobile/bundle/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
- package/mobile/dist/components/ApplicationForm/renderInputs.d.ts +3 -0
- package/mobile/dist/components/ApplicationForm/renderInputs.js +16 -0
- package/mobile/dist/components/ApplicationForm/renderInputs.js.map +1 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -12
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.d.ts +13 -0
- package/mobile/dist/components/CreditForm/CreditForm.js +40 -0
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -0
- package/mobile/dist/components/CreditForm/CreditFormContent.d.ts +28 -0
- package/mobile/dist/components/CreditForm/CreditFormContent.js +2 -0
- package/mobile/dist/components/CreditForm/CreditFormContent.js.map +1 -0
- package/mobile/dist/components/CreditForm/CreditFormProgress.d.ts +6 -0
- package/mobile/dist/components/CreditForm/CreditFormProgress.js +11 -0
- package/mobile/dist/components/CreditForm/CreditFormProgress.js.map +1 -0
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +20 -0
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -0
- package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +140 -0
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +217 -0
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +14 -0
- package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +11 -0
- package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +20 -0
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +9 -0
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/validators.js +1 -1
- package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/dist/ui-kit/InfoCard/InfoCard.js +1 -1
- package/mobile/dist/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -1
- package/mobile/lib/components/ApplicationForm/renderInputs.d.ts +3 -0
- package/mobile/lib/components/ApplicationForm/renderInputs.js +13 -0
- package/mobile/lib/components/ApplicationForm/renderInputs.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -11
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +11 -3
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +10 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.d.ts +13 -0
- package/mobile/lib/components/CreditForm/CreditForm.js +38 -0
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -0
- package/mobile/lib/components/CreditForm/CreditFormContent.d.ts +28 -0
- package/mobile/lib/components/CreditForm/CreditFormContent.js +2 -0
- package/mobile/lib/components/CreditForm/CreditFormContent.js.map +1 -0
- package/mobile/lib/components/CreditForm/CreditFormProgress.d.ts +6 -0
- package/mobile/lib/components/CreditForm/CreditFormProgress.js +9 -0
- package/mobile/lib/components/CreditForm/CreditFormProgress.js.map +1 -0
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.d.ts +6 -0
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +18 -0
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -0
- package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +140 -0
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +215 -0
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +12 -0
- package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +9 -0
- package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +20 -0
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +9 -0
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/validators.js +1 -1
- package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/lib/ui-kit/InfoCard/InfoCard.js +1 -1
- package/mobile/lib/ui-kit/InfoCard/InfoCard.js.map +1 -1
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.d.ts +1 -0
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
- package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +11 -1
- package/mobile/src/components/ApplicationForm/renderInputs.tsx +25 -0
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -26
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +12 -2
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +10 -0
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +1 -1
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/CreditForm/CreditForm.tsx +76 -0
- package/mobile/src/components/CreditForm/CreditFormContent.ts +34 -0
- package/mobile/src/components/CreditForm/CreditFormProgress.tsx +27 -0
- package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +47 -0
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +215 -0
- package/mobile/src/ui-kit/FormField/Fields/BankEmployeeCodeField.tsx +15 -0
- package/mobile/src/ui-kit/FormField/Fields/BankruptcyFlgField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +22 -0
- package/mobile/src/ui-kit/FormField/Fields/DisablePeopleFlgField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +15 -0
- package/mobile/src/ui-kit/FormField/Fields/MandatoryIncome.tsx +15 -0
- package/mobile/src/ui-kit/FormField/Fields/OtherIncomeField.tsx +15 -0
- package/mobile/src/ui-kit/FormField/Fields/OtherPayments.tsx +15 -0
- package/mobile/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +15 -0
- package/mobile/src/ui-kit/FormField/Fields/ShareholderFlgField.tsx +12 -0
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +11 -1
- package/mobile/src/ui-kit/FormField/getField.tsx +21 -0
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +9 -0
- package/mobile/src/ui-kit/FormField/validators.ts +1 -1
- package/mobile/src/ui-kit/InfoCard/InfoCard.tsx +1 -1
- package/mobile/src/ui-kit/ProgressBar/ProgressBar.tsx +13 -10
- package/package.json +2 -2
- package/src/components/ApplicationForm/ApplicationFormContent.ts +11 -1
- package/src/components/ApplicationForm/renderInputs.tsx +25 -0
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -26
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +12 -2
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +10 -0
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +1 -1
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/CreditForm/CreditForm.fixture.tsx +6 -0
- package/src/components/CreditForm/CreditForm.tsx +76 -0
- package/src/components/CreditForm/CreditFormContent.ts +34 -0
- package/src/components/CreditForm/CreditFormProgress.tsx +27 -0
- package/src/components/CreditForm/StepsNavigationButtons.tsx +47 -0
- package/src/components/CreditForm/creditFormStepsData.tsx +215 -0
- package/src/icons/IconName.ts +6 -356
- package/src/ui-kit/FormField/Fields/BankEmployeeCodeField.tsx +15 -0
- package/src/ui-kit/FormField/Fields/BankruptcyFlgField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +22 -0
- package/src/ui-kit/FormField/Fields/DisablePeopleFlgField.tsx +12 -0
- package/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +15 -0
- package/src/ui-kit/FormField/Fields/MandatoryIncome.tsx +15 -0
- package/src/ui-kit/FormField/Fields/OtherIncomeField.tsx +15 -0
- package/src/ui-kit/FormField/Fields/OtherPayments.tsx +15 -0
- package/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +15 -0
- package/src/ui-kit/FormField/Fields/ShareholderFlgField.tsx +12 -0
- package/src/ui-kit/FormField/NameFieldDef.ts +11 -1
- package/src/ui-kit/FormField/getField.tsx +21 -0
- package/src/ui-kit/FormField/getObjectValidator.tsx +9 -0
- package/src/ui-kit/FormField/validators.ts +1 -1
- package/src/ui-kit/InfoCard/InfoCard.tsx +1 -1
- package/src/ui-kit/ProgressBar/ProgressBar.tsx +13 -10
package/bundle/bundle.umd.js
CHANGED
|
@@ -1446,7 +1446,7 @@
|
|
|
1446
1446
|
return false;
|
|
1447
1447
|
};
|
|
1448
1448
|
const snilsValidator = (errorMsg) => validator(snilsValidate)(errorMsg);
|
|
1449
|
-
const emailValidate = (email) => /^[^\s@]+@[^\s@]+\.[a-zA-Z]{2}$/.test(email);
|
|
1449
|
+
const emailValidate = (email) => /^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,4}$/.test(email);
|
|
1450
1450
|
const emailValidator = (errorMsg) => validator((_) => emailValidate(_))(errorMsg);
|
|
1451
1451
|
|
|
1452
1452
|
const validatorObj = {
|
|
@@ -1516,6 +1516,15 @@
|
|
|
1516
1516
|
sex: defaultValidator('Укажите свой пол'),
|
|
1517
1517
|
participantAddress: defaultValidator('Необходимо выбрать адрес'),
|
|
1518
1518
|
participantDateRegistration: defaultValidator('Укажите дату регистрации'),
|
|
1519
|
+
retirementIncome: defaultValidator(),
|
|
1520
|
+
otherIncome: defaultValidator(),
|
|
1521
|
+
mandatoryIncome: defaultValidator(),
|
|
1522
|
+
otherPayments: defaultValidator(),
|
|
1523
|
+
disablePeopleFlg: defaultValidator(),
|
|
1524
|
+
bankruptcyFlg: defaultValidator(),
|
|
1525
|
+
shareholderFlg: defaultValidator(),
|
|
1526
|
+
legalEntityName: defaultValidator(),
|
|
1527
|
+
bankEmployeeCode: defaultValidator(),
|
|
1519
1528
|
};
|
|
1520
1529
|
const getObjectValidator = (inputs) => {
|
|
1521
1530
|
const requiredInputs = getNamesFromInput(inputs.filter((_) => ('required' in _ ? _.required : false)));
|
|
@@ -1782,8 +1791,12 @@
|
|
|
1782
1791
|
|
|
1783
1792
|
const ArmyIdFlgField = JSX(({ field }) => (jsx(CheckboxWithError, { text: "\u041D\u0430\u043B\u0438\u0447\u0438\u0435 \u0432\u043E\u0435\u043D\u043D\u043E\u0433\u043E \u0431\u0438\u043B\u0435\u0442\u0430", ...getValidation(field('armyIdFlg'), validatorObj.armyIdFlg) })));
|
|
1784
1793
|
|
|
1794
|
+
const BankEmpoleeCodeField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041A\u043E\u0434 \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044F \u0411\u0430\u043D\u043A\u0430", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434", type: "number", ...getValidation(field('bankEmployeeCode'), validatorObj.bankEmployeeCode, input?.required), ...input })));
|
|
1795
|
+
|
|
1785
1796
|
const BankEmpoleeField = JSX(({ field }) => (jsx(InputControl, { label: "\u0424\u0418\u041E \u0438\u043B\u0438 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u0432\u0448\u0435\u0433\u043E \u0412\u0430\u0441 \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A\u0430 \u0411\u0430\u043D\u043A\u0430", ...field('bankEmpolee') })));
|
|
1786
1797
|
|
|
1798
|
+
const BankruptcyFlgField = JSX(({ field }) => (jsx(CheckboxWithError, { text: "\u0412 \u043E\u0442\u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u043C\u0435\u043D\u044F \u0432\u0435\u0434\u0451\u0442\u0441\u044F \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0441\u0442\u0432\u043E \u043F\u043E \u0434\u0435\u043B\u0443 \u043E \u0431\u0430\u043D\u043A\u0440\u043E\u0442\u0441\u0442\u0432\u0435", ...getValidation(field('bankruptcyFlg'), validatorObj.bankruptcyFlg) })));
|
|
1799
|
+
|
|
1787
1800
|
const useElementSpace = (ref, heightEl) => {
|
|
1788
1801
|
const [spaceAbove, setSpaceAbove] = useState(false);
|
|
1789
1802
|
useEffect(() => {
|
|
@@ -2069,10 +2082,20 @@
|
|
|
2069
2082
|
|
|
2070
2083
|
const ConsentField = JSX(({ field, input }) => input && input.name ? (jsx(CheckboxWithDoc, { text: CONSENTS[input.name]?.text, docId: CONSENTS[input.name]?.docId, ...getValidation(field(input.name), validatorObj[input.name], input?.required) })) : null);
|
|
2071
2084
|
|
|
2085
|
+
const LABEL_TEXT =
|
|
2086
|
+
// eslint-disable-next-line max-len
|
|
2087
|
+
'Имеет ли юридическое лицо, акционером / участником / членом / пайщиком / вкладчиком с долей участия более 20% уставного капитала руководителем, которого Вы являетесь, кредит в АО «Россельзбанк»';
|
|
2088
|
+
const CreditInRshbCdField = JSX(({ field, input }) => {
|
|
2089
|
+
const { data: creditInRshbCd } = useLeadFormData('creditInRshbCd');
|
|
2090
|
+
return (jsx(SelectField, { field: field, source: creditInRshbCd, label: LABEL_TEXT, fieldName: "creditInRshbCd", input: input }));
|
|
2091
|
+
});
|
|
2092
|
+
|
|
2072
2093
|
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", ...getValidation(field('dependents'), validatorObj.dependents, input?.required), ...input })));
|
|
2073
2094
|
|
|
2074
2095
|
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) })));
|
|
2075
2096
|
|
|
2097
|
+
const DisablePeopleFlgField = JSX(({ field }) => (jsx(CheckboxWithError, { text: "\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u0438\u043D\u0432\u0430\u043B\u0438\u0434\u043E\u043C", ...getValidation(field('disablePeopleFlg'), validatorObj.disablePeopleFlg) })));
|
|
2098
|
+
|
|
2076
2099
|
const DulIssueDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0432\u044B\u0434\u0430\u0447\u0438", ...getValidation(field('dulIssueDateField'), validatorObj.dulIssueDateField, input?.required) })));
|
|
2077
2100
|
|
|
2078
2101
|
const DulIssuedByField = JSX(({ field, input }) => {
|
|
@@ -2157,6 +2180,10 @@
|
|
|
2157
2180
|
|
|
2158
2181
|
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", ...getValidation(field('lastJobExperience'), validatorObj.lastJobExperience, input?.required), ...input })));
|
|
2159
2182
|
|
|
2183
|
+
const LegalEntityNameField = JSX(({ field, input }) => {
|
|
2184
|
+
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) }));
|
|
2185
|
+
});
|
|
2186
|
+
|
|
2160
2187
|
const LegalFormField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u041F\u0424", placeholder: "\u041E\u041E\u041E, \u041F\u0410\u041E \u0438 \u0434\u0440.", ...getValidation(field('legalForm'), validatorObj.legalForm, input?.required), ...input })));
|
|
2161
2188
|
|
|
2162
2189
|
const REGIONS_URL = '/api/v1/regions';
|
|
@@ -2179,6 +2206,8 @@
|
|
|
2179
2206
|
return (jsx(SelectControl, { label: "\u041D\u0430\u0441\u0435\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u0443\u043D\u043A\u0442", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0433\u043E\u0440\u043E\u0434, \u0433\u0434\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0441\u0435\u0440\u0432\u0438\u0441", options: localities, ...getValidation(field('localities'), validatorObj.localities, input?.required), isSearch: true }));
|
|
2180
2207
|
});
|
|
2181
2208
|
|
|
2209
|
+
const MandatoryIncomeField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0421\u043E\u0432\u043E\u043A\u0443\u043F\u043D\u044B\u0439 \u0434\u043E\u0445\u043E\u0434 \u0432 \u043C\u0435\u0441\u044F\u0446 \u043F\u043E\u0441\u043B\u0435 \u0432\u044B\u0447\u0435\u0442\u0430 \u043D\u0430\u043B\u043E\u0433\u043E\u0432 (\u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0430, \u043F\u0440\u0435\u043C\u0438\u0438)", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('mandatoryIncome'), validatorObj.mandatoryIncome, input?.required), ...input })));
|
|
2210
|
+
|
|
2182
2211
|
const MiddleNameField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...getValidation(field('middleName'), validatorObj.middleName), ...input })));
|
|
2183
2212
|
|
|
2184
2213
|
const NameField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0418\u043C\u044F", ...getValidation(field('name'), validatorObj.name, input?.required), ...input })));
|
|
@@ -2200,6 +2229,10 @@
|
|
|
2200
2229
|
return (jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...input, ...getValidation(field('organizationName'), validatorObj.organizationName, input?.required), onDaDataChange: onDaDataChange }));
|
|
2201
2230
|
});
|
|
2202
2231
|
|
|
2232
|
+
const OtherIncomeField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0418\u043D\u044B\u0435 \u0434\u043E\u0445\u043E\u0434\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('otherIncome'), validatorObj.otherIncome, input?.required), ...input })));
|
|
2233
|
+
|
|
2234
|
+
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 })));
|
|
2235
|
+
|
|
2203
2236
|
const ParticipantAddressField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field('participantAddress'), validatorObj.participantAddress, input?.required), ...input })));
|
|
2204
2237
|
|
|
2205
2238
|
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) })));
|
|
@@ -2261,6 +2294,8 @@
|
|
|
2261
2294
|
return (jsx(SelectControl, { label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", options: regions, ...getValidation(field('region'), validatorObj.region, input?.required) }));
|
|
2262
2295
|
});
|
|
2263
2296
|
|
|
2297
|
+
const RetirementIncomeField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041F\u0435\u043D\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u0434\u043E\u0445\u043E\u0434\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('retirementIncome'), validatorObj.retirementIncome, input?.required), ...input })));
|
|
2298
|
+
|
|
2264
2299
|
const SecondaryPhoneField = JSX(({ field }) => {
|
|
2265
2300
|
const fieldPhone = field('secondaryPhone');
|
|
2266
2301
|
return (jsx(InputPhoneControl, { label: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0442\u0435\u043B\u0435\u0444\u043E\u043D", ...(!fieldPhone.value || fieldPhone.value === '+7 ('
|
|
@@ -2284,6 +2319,8 @@
|
|
|
2284
2319
|
];
|
|
2285
2320
|
const SexField = JSX(({ field, input }) => (jsx(RadioButtonGroupControl, { label: "\u041F\u043E\u043B", orientation: "horizontal", items: SEX_TYPES, ...getValidation(field('sex'), validatorObj.sex, input?.required) })));
|
|
2286
2321
|
|
|
2322
|
+
const ShareholderFlgField = JSX(({ field }) => (jsx(CheckboxWithError, { text: "\u042F \u044F\u0432\u043B\u044F\u044E\u0441\u044C \u0430\u043A\u0446\u0438\u043E\u043D\u0435\u0440\u043E\u043C / \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u043E\u043C / \u0447\u043B\u0435\u043D\u043E\u043C / \u043F\u0430\u0439\u0449\u0438\u043A\u043E\u043C / \u0432\u043A\u043B\u0430\u0434\u0447\u0438\u043A\u043E\u043C \u0441 \u0434\u043E\u043B\u0435\u0439 \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0431\u043E\u043B\u0435\u0435 20% \u0443\u0441\u0442\u0430\u0432\u043D\u043E\u0433\u043E \u043A\u0430\u043F\u0438\u0442\u0430\u043B\u0430 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043B\u0438\u0446\u0430", ...getValidation(field('shareholderFlg'), validatorObj.shareholderFlg) })));
|
|
2323
|
+
|
|
2287
2324
|
const isPlaceholder = (_) => _ === '_';
|
|
2288
2325
|
const isDigit = (_) => /\d/.test(_);
|
|
2289
2326
|
const isWildcard = (_) => isPlaceholder(_) || isDigit(_);
|
|
@@ -2433,6 +2470,16 @@
|
|
|
2433
2470
|
dulIssuedBy: jsx(DulIssuedByField, { field: field, input: input }),
|
|
2434
2471
|
participantAddress: jsx(ParticipantAddressField, { field: field, input: input }),
|
|
2435
2472
|
participantDateRegistration: jsx(ParticipantDateRegistrationField, { field: field, input: input }),
|
|
2473
|
+
retirementIncome: jsx(RetirementIncomeField, { field: field, input: input }),
|
|
2474
|
+
otherIncome: jsx(OtherIncomeField, { field: field, input: input }),
|
|
2475
|
+
mandatoryIncome: jsx(MandatoryIncomeField, { field: field, input: input }),
|
|
2476
|
+
otherPayments: jsx(OtherPaymentsField, { field: field, input: input }),
|
|
2477
|
+
disablePeopleFlg: jsx(DisablePeopleFlgField, { field: field, input: input }),
|
|
2478
|
+
bankruptcyFlg: jsx(BankruptcyFlgField, { field: field, input: input }),
|
|
2479
|
+
shareholderFlg: jsx(ShareholderFlgField, { field: field, input: input }),
|
|
2480
|
+
legalEntityName: jsx(LegalEntityNameField, { field: field, input: input }),
|
|
2481
|
+
creditInRshbCd: jsx(CreditInRshbCdField, { field: field, input: input }),
|
|
2482
|
+
bankEmployeeCode: jsx(BankEmpoleeCodeField, { field: field, input: input }),
|
|
2436
2483
|
};
|
|
2437
2484
|
return isRenderField({ input, field }) ? (jsx("div", { children: InputsMap[input?.name] }, String(i))) : null;
|
|
2438
2485
|
};
|
|
@@ -2633,53 +2680,6 @@
|
|
|
2633
2680
|
return [storedValue, setValue];
|
|
2634
2681
|
}
|
|
2635
2682
|
|
|
2636
|
-
const initialFormState = {
|
|
2637
|
-
typeForm: '',
|
|
2638
|
-
region: { key: '', text: '' },
|
|
2639
|
-
addressBranch: { key: '', text: '' },
|
|
2640
|
-
surname: '',
|
|
2641
|
-
name: '',
|
|
2642
|
-
phone: '',
|
|
2643
|
-
secondaryPhone: '',
|
|
2644
|
-
comment: '',
|
|
2645
|
-
product: '',
|
|
2646
|
-
partnerComments: '',
|
|
2647
|
-
annualRevenue: '',
|
|
2648
|
-
term: 12,
|
|
2649
|
-
amount: 100000,
|
|
2650
|
-
acquiringType: ACQUIRING_TYPES[0],
|
|
2651
|
-
serviceType: SERVICE_TYPES[0],
|
|
2652
|
-
feedbackMethod: FEEDBACK_METHOD[0],
|
|
2653
|
-
serviceDirection: SERVICE_DIRECTIONS[0],
|
|
2654
|
-
vedTypes: VED_TYPES[0],
|
|
2655
|
-
birthday: undefined,
|
|
2656
|
-
isClient: false,
|
|
2657
|
-
onlineCheckout: false,
|
|
2658
|
-
posTerminal: false,
|
|
2659
|
-
consentToReceiveMaterials: false,
|
|
2660
|
-
consentDataProcessing: false,
|
|
2661
|
-
processPersonalDataLeadFlg: false,
|
|
2662
|
-
consentProviderFlg: false,
|
|
2663
|
-
consentPhotoFlg: false,
|
|
2664
|
-
consentAssignmentClaimsFlg: false,
|
|
2665
|
-
consentCollectionFlg: false,
|
|
2666
|
-
consentInformFlg: false,
|
|
2667
|
-
participantAddress: '',
|
|
2668
|
-
participantDateRegistration: undefined,
|
|
2669
|
-
};
|
|
2670
|
-
const getInitialFormState = (inputs, savedForm, typeForm = '') => {
|
|
2671
|
-
if (savedForm) {
|
|
2672
|
-
const formState = JSON.parse(savedForm);
|
|
2673
|
-
formState.birthday = new Date(formState?.birthday || 0);
|
|
2674
|
-
return formState;
|
|
2675
|
-
}
|
|
2676
|
-
const formState = Object.fromEntries(inputs.map((_) => [
|
|
2677
|
-
_.name,
|
|
2678
|
-
(_.fieldType === 'ved' && _?.defaultValue) || initialFormState[_.name],
|
|
2679
|
-
]));
|
|
2680
|
-
return { ...formState, typeForm: { key: typeForm, text: '' } };
|
|
2681
|
-
};
|
|
2682
|
-
|
|
2683
2683
|
const Foldable = JSX(({ className = '', isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
|
|
2684
2684
|
const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
|
|
2685
2685
|
const onToggle = useCallback(() => {
|
|
@@ -2737,6 +2737,62 @@
|
|
|
2737
2737
|
});
|
|
2738
2738
|
const renderGeneralCheckbox = (generalCheckBox) => (foldableData) => (jsxs("div", { className: "flex items-start", children: [generalCheckBox, jsx("button", { onClick: foldableData.onToggle, className: "px-m py-2xs", children: jsx(Icon, { className: "text-primary-text", name: foldableData.isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" }) })] }));
|
|
2739
2739
|
|
|
2740
|
+
const renderInputs = ({ field, typeForm = '', inputs }) => {
|
|
2741
|
+
const { consentInputs, restInputs } = splitInputs(inputs || []);
|
|
2742
|
+
return consentInputs.length > 2 ? (jsxs("div", { children: [restInputs.map(getField(field, typeForm)), jsx(GroupedConsents, { inputs: consentInputs, field: field })] })) : ((inputs || [])?.map(getField(field, typeForm)));
|
|
2743
|
+
};
|
|
2744
|
+
const splitInputs = (inputs) => ({
|
|
2745
|
+
consentInputs: inputs?.filter((_) => Object.keys(CONSENTS).includes(_.name)) || [],
|
|
2746
|
+
restInputs: inputs?.filter((_) => !Object.keys(CONSENTS).includes(_.name)) || [],
|
|
2747
|
+
});
|
|
2748
|
+
|
|
2749
|
+
const initialFormState = {
|
|
2750
|
+
typeForm: '',
|
|
2751
|
+
region: { key: '', text: '' },
|
|
2752
|
+
addressBranch: { key: '', text: '' },
|
|
2753
|
+
surname: '',
|
|
2754
|
+
name: '',
|
|
2755
|
+
phone: '',
|
|
2756
|
+
secondaryPhone: '',
|
|
2757
|
+
comment: '',
|
|
2758
|
+
product: '',
|
|
2759
|
+
partnerComments: '',
|
|
2760
|
+
annualRevenue: '',
|
|
2761
|
+
term: 12,
|
|
2762
|
+
amount: 100000,
|
|
2763
|
+
acquiringType: ACQUIRING_TYPES[0],
|
|
2764
|
+
serviceType: SERVICE_TYPES[0],
|
|
2765
|
+
feedbackMethod: FEEDBACK_METHOD[0],
|
|
2766
|
+
serviceDirection: SERVICE_DIRECTIONS[0],
|
|
2767
|
+
vedTypes: VED_TYPES[0],
|
|
2768
|
+
birthday: undefined,
|
|
2769
|
+
isClient: false,
|
|
2770
|
+
onlineCheckout: false,
|
|
2771
|
+
posTerminal: false,
|
|
2772
|
+
consentToReceiveMaterials: false,
|
|
2773
|
+
consentDataProcessing: false,
|
|
2774
|
+
processPersonalDataLeadFlg: false,
|
|
2775
|
+
consentProviderFlg: false,
|
|
2776
|
+
consentPhotoFlg: false,
|
|
2777
|
+
consentAssignmentClaimsFlg: false,
|
|
2778
|
+
consentCollectionFlg: false,
|
|
2779
|
+
consentInformFlg: false,
|
|
2780
|
+
participantAddress: '',
|
|
2781
|
+
participantDateRegistration: undefined,
|
|
2782
|
+
};
|
|
2783
|
+
const getInitialFormState = (inputs, savedForm, typeForm = '') => {
|
|
2784
|
+
if (savedForm) {
|
|
2785
|
+
const formState = JSON.parse(savedForm);
|
|
2786
|
+
formState.birthday = new Date(formState?.birthday || 0);
|
|
2787
|
+
return formState;
|
|
2788
|
+
}
|
|
2789
|
+
const formState = Object.fromEntries(inputs.map((_) => [
|
|
2790
|
+
_.name,
|
|
2791
|
+
(_.fieldType === 'ved' && _?.defaultValue) || initialFormState[_.name],
|
|
2792
|
+
]));
|
|
2793
|
+
return { ...formState, typeForm: { key: typeForm, text: '' } };
|
|
2794
|
+
};
|
|
2795
|
+
|
|
2740
2796
|
const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
|
|
2741
2797
|
|
|
2742
2798
|
const getUpdateUserProfileData = (profileId, formData) => {
|
|
@@ -3074,7 +3130,7 @@
|
|
|
3074
3130
|
};
|
|
3075
3131
|
const acceptedConsents = Object.keys(CONSENTS)
|
|
3076
3132
|
.filter((_) => formData[_])
|
|
3077
|
-
.map((_) => CONSENTS[_]);
|
|
3133
|
+
.map((_) => CONSENTS[_]?.text);
|
|
3078
3134
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
3079
3135
|
const verifyPhoneDialog = useVerifyPhoneDialog({
|
|
3080
3136
|
close: handleSuccessVerify,
|
|
@@ -3132,14 +3188,6 @@
|
|
|
3132
3188
|
}, [responseType]);
|
|
3133
3189
|
return (jsx(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: jsxs("form", { onSubmit: onSubmit, className: "space-y-m", children: [sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs({ field, typeForm, inputs: _?.inputs })] }, `section-${i}`))), renderSubmitButton(button)] }) }));
|
|
3134
3190
|
});
|
|
3135
|
-
const renderInputs = ({ field, typeForm = '', inputs }) => {
|
|
3136
|
-
const { consentInputs, restInputs } = splitInputs(inputs || []);
|
|
3137
|
-
return consentInputs.length > 2 ? (jsxs("div", { children: [restInputs.map(getField(field, typeForm)), jsx(GroupedConsents, { inputs: consentInputs, field: field })] })) : ((inputs || [])?.map(getField(field, typeForm)));
|
|
3138
|
-
};
|
|
3139
|
-
const splitInputs = (inputs) => ({
|
|
3140
|
-
consentInputs: inputs?.filter((_) => Object.keys(CONSENTS).includes(_.name)) || [],
|
|
3141
|
-
restInputs: inputs?.filter((_) => !Object.keys(CONSENTS).includes(_.name)) || [],
|
|
3142
|
-
});
|
|
3143
3191
|
|
|
3144
3192
|
const NotFound = JSX(({ title, description }) => {
|
|
3145
3193
|
const isMobileMode = useMobileMode();
|
|
@@ -4777,6 +4825,268 @@
|
|
|
4777
4825
|
const renderBlocks = (info) => (jsx("div", { className: "flex gap-5xl grow basis-0", children: info.map((column, i) => renderBlocksColumn({ column, i })) }));
|
|
4778
4826
|
const renderBlocksColumn = ({ column, i }) => column ? (jsx("div", { className: "flex flex-col gap-xl grow basis-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (jsxs("div", { children: [jsx(Headline, { title: title, description: description, headlineVersion: "XS", align: "text-left", isEmbedded: true }), additionalDescription ? (jsx("div", { className: "mt-xs opacity-80", children: jsx(Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null, jsx("div", { className: style({ 'mt-xl': Boolean(button?.text) }), children: renderButtonsSection([button]) })] }, String(key)))) }, `col-${String(i)}`)) : null;
|
|
4779
4827
|
|
|
4828
|
+
const InfoCard = JSX(({ __html, icon, iconVersion = 'black' }) => (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 }) }), jsx(RichText, { __html: __html })] })));
|
|
4829
|
+
|
|
4830
|
+
const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (jsxs("div", { children: [jsx("div", { className: "h-4 w-full bg-gray relative", children: jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), jsxs("div", { className: "relative", children: [showPercentage ? jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? jsx("div", { className: "text-right mr-4 text-gray", children: description }) : null] })] })));
|
|
4831
|
+
|
|
4832
|
+
const CreditFormProgress = JSX(({ step = 1, totalSteps = 5, stepsTitles = [] }) => {
|
|
4833
|
+
const progress = useMemo(() => (step / totalSteps) * 100, [step, totalSteps]);
|
|
4834
|
+
return (jsx("div", { className: "py-lg px-5xl bg-white col-span-12", children: jsxs("div", { children: [jsxs("span", { className: "font-bold", children: ["\u0428\u0430\u0433 ", step, " \u0438\u0437 ", totalSteps, "."] }), ' ', stepsTitles[step - 1] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }) }));
|
|
4835
|
+
});
|
|
4836
|
+
|
|
4837
|
+
/* eslint-disable max-lines */
|
|
4838
|
+
/* eslint-disable max-len */
|
|
4839
|
+
const stepsSectionsMap = {
|
|
4840
|
+
1: [
|
|
4841
|
+
{
|
|
4842
|
+
title: 'Персональные данные',
|
|
4843
|
+
columns: 2,
|
|
4844
|
+
inputs: [
|
|
4845
|
+
{ fieldType: 'common', name: 'surname', required: true, dadata: true },
|
|
4846
|
+
{ fieldType: 'common', name: 'name', required: true, dadata: true },
|
|
4847
|
+
{ fieldType: 'common', name: 'middleName', dadata: true },
|
|
4848
|
+
{ fieldType: 'common', name: 'sex', required: true },
|
|
4849
|
+
{ fieldType: 'common', name: 'birthday', required: true },
|
|
4850
|
+
{ fieldType: 'common', name: 'birthPlace', required: true },
|
|
4851
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
4852
|
+
{ fieldType: 'common', name: 'email', required: true, dadata: true },
|
|
4853
|
+
],
|
|
4854
|
+
},
|
|
4855
|
+
{
|
|
4856
|
+
title: 'Паспортные данные',
|
|
4857
|
+
columns: 2,
|
|
4858
|
+
inputs: [
|
|
4859
|
+
{ fieldType: 'common', name: 'dulSerie', required: true },
|
|
4860
|
+
{ fieldType: 'common', name: 'dulNumber', required: true },
|
|
4861
|
+
{ fieldType: 'common', name: 'dulIssueDateField', required: true },
|
|
4862
|
+
{ fieldType: 'common', name: 'dulSubdivisionCode', required: true, dadata: true },
|
|
4863
|
+
],
|
|
4864
|
+
},
|
|
4865
|
+
{
|
|
4866
|
+
inputs: [
|
|
4867
|
+
{ fieldType: 'common', name: 'dulIssuedBy', required: true, dadata: true },
|
|
4868
|
+
{
|
|
4869
|
+
fieldType: 'common',
|
|
4870
|
+
name: 'education',
|
|
4871
|
+
required: true,
|
|
4872
|
+
},
|
|
4873
|
+
],
|
|
4874
|
+
},
|
|
4875
|
+
{
|
|
4876
|
+
title: 'Адрес регистрации по месту жительства',
|
|
4877
|
+
columns: 2,
|
|
4878
|
+
inputs: [
|
|
4879
|
+
{ fieldType: 'common', name: 'participantAddress', required: true },
|
|
4880
|
+
{ fieldType: 'common', name: 'participantAddress', required: true, dadata: true },
|
|
4881
|
+
],
|
|
4882
|
+
},
|
|
4883
|
+
{
|
|
4884
|
+
title: 'Адрес фактического проживания (место пребывания РФ)',
|
|
4885
|
+
columns: 2,
|
|
4886
|
+
inputs: [
|
|
4887
|
+
{ fieldType: 'common', name: 'fullAddress', required: true, dadata: true },
|
|
4888
|
+
{ fieldType: 'common', name: 'housing', required: true },
|
|
4889
|
+
],
|
|
4890
|
+
},
|
|
4891
|
+
],
|
|
4892
|
+
2: [
|
|
4893
|
+
{
|
|
4894
|
+
title: 'Данные о трудоустройстве',
|
|
4895
|
+
inputs: [],
|
|
4896
|
+
},
|
|
4897
|
+
{
|
|
4898
|
+
inputs: [
|
|
4899
|
+
{
|
|
4900
|
+
fieldType: 'info',
|
|
4901
|
+
text: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
|
|
4902
|
+
},
|
|
4903
|
+
],
|
|
4904
|
+
},
|
|
4905
|
+
{
|
|
4906
|
+
inputs: [
|
|
4907
|
+
{ fieldType: 'common', name: 'employment', required: true },
|
|
4908
|
+
{ fieldType: 'common', name: 'organizationName', required: true, dadata: true },
|
|
4909
|
+
],
|
|
4910
|
+
},
|
|
4911
|
+
{
|
|
4912
|
+
columns: 2,
|
|
4913
|
+
inputs: [
|
|
4914
|
+
{ fieldType: 'common', name: 'inn', required: true, dadata: true },
|
|
4915
|
+
{ fieldType: 'common', name: 'legalForm', required: true },
|
|
4916
|
+
],
|
|
4917
|
+
},
|
|
4918
|
+
{
|
|
4919
|
+
inputs: [
|
|
4920
|
+
{ fieldType: 'common', name: 'organization', required: true },
|
|
4921
|
+
{ fieldType: 'common', name: 'amountWorkers', required: true },
|
|
4922
|
+
],
|
|
4923
|
+
},
|
|
4924
|
+
{
|
|
4925
|
+
columns: 2,
|
|
4926
|
+
inputs: [
|
|
4927
|
+
{ fieldType: 'common', name: 'employerActivities', required: true },
|
|
4928
|
+
{ fieldType: 'common', name: 'employerOrganization', required: true },
|
|
4929
|
+
{ fieldType: 'common', name: 'generalSeniority', required: true },
|
|
4930
|
+
{ fieldType: 'common', name: 'lastJobExperience', required: true },
|
|
4931
|
+
{ fieldType: 'common', name: 'experience5Years', required: true },
|
|
4932
|
+
{ fieldType: 'common', name: 'jobsNumber', required: true },
|
|
4933
|
+
],
|
|
4934
|
+
},
|
|
4935
|
+
{
|
|
4936
|
+
inputs: [
|
|
4937
|
+
{ fieldType: 'common', name: 'phone', label: 'Телефон работодателя', required: true },
|
|
4938
|
+
{ fieldType: 'common', name: 'beginDate', required: true },
|
|
4939
|
+
{ fieldType: 'common', name: 'positionOrganization', required: true },
|
|
4940
|
+
],
|
|
4941
|
+
},
|
|
4942
|
+
{
|
|
4943
|
+
title: 'Адрес работодателя',
|
|
4944
|
+
inputs: [],
|
|
4945
|
+
},
|
|
4946
|
+
{
|
|
4947
|
+
inputs: [{ fieldType: 'common', name: 'fullAddress', required: true }],
|
|
4948
|
+
},
|
|
4949
|
+
],
|
|
4950
|
+
3: [
|
|
4951
|
+
{
|
|
4952
|
+
title: 'Семейное положение',
|
|
4953
|
+
},
|
|
4954
|
+
{
|
|
4955
|
+
columns: 1,
|
|
4956
|
+
inputs: [{ fieldType: 'common', name: 'familyStatus' }],
|
|
4957
|
+
},
|
|
4958
|
+
{
|
|
4959
|
+
columns: 1,
|
|
4960
|
+
inputs: [{ fieldType: 'common', name: 'dependents' }],
|
|
4961
|
+
},
|
|
4962
|
+
{
|
|
4963
|
+
columns: 2,
|
|
4964
|
+
inputs: [
|
|
4965
|
+
{ fieldType: 'common', name: 'familyMembers' },
|
|
4966
|
+
{ fieldType: 'common', name: 'familyMembers' },
|
|
4967
|
+
{ fieldType: 'common', name: 'retirementIncome' },
|
|
4968
|
+
{ fieldType: 'common', name: 'otherIncome' },
|
|
4969
|
+
],
|
|
4970
|
+
},
|
|
4971
|
+
{
|
|
4972
|
+
title: 'Совокупный доход',
|
|
4973
|
+
},
|
|
4974
|
+
{
|
|
4975
|
+
inputs: [
|
|
4976
|
+
{
|
|
4977
|
+
fieldType: 'info',
|
|
4978
|
+
text: 'Сумма основного и дополнительных доходов после вычета налога',
|
|
4979
|
+
},
|
|
4980
|
+
],
|
|
4981
|
+
},
|
|
4982
|
+
{
|
|
4983
|
+
columns: 1,
|
|
4984
|
+
inputs: [{ fieldType: 'common', name: 'mandatoryIncome' }],
|
|
4985
|
+
},
|
|
4986
|
+
{
|
|
4987
|
+
columns: 1,
|
|
4988
|
+
inputs: [{ fieldType: 'common', name: 'otherPayments' }],
|
|
4989
|
+
},
|
|
4990
|
+
{
|
|
4991
|
+
columns: 1,
|
|
4992
|
+
inputs: [{ fieldType: 'common', name: 'snils' }],
|
|
4993
|
+
},
|
|
4994
|
+
{
|
|
4995
|
+
columns: 2,
|
|
4996
|
+
inputs: [{ fieldType: 'common', name: 'armyIdFlg' }],
|
|
4997
|
+
},
|
|
4998
|
+
],
|
|
4999
|
+
4: [
|
|
5000
|
+
{
|
|
5001
|
+
title: 'Дополнительные сведения',
|
|
5002
|
+
columns: 1,
|
|
5003
|
+
inputs: [],
|
|
5004
|
+
},
|
|
5005
|
+
{
|
|
5006
|
+
inputs: [{ fieldType: 'common', name: 'disablePeopleFlg' }],
|
|
5007
|
+
},
|
|
5008
|
+
{
|
|
5009
|
+
inputs: [{ fieldType: 'common', name: 'bankruptcyFlg' }],
|
|
5010
|
+
},
|
|
5011
|
+
{
|
|
5012
|
+
inputs: [{ fieldType: 'common', name: 'shareholderFlg' }],
|
|
5013
|
+
},
|
|
5014
|
+
{
|
|
5015
|
+
inputs: [{ fieldType: 'common', name: 'legalEntityName' }],
|
|
5016
|
+
},
|
|
5017
|
+
{
|
|
5018
|
+
inputs: [{ fieldType: 'common', name: 'creditInRshbCd' }],
|
|
5019
|
+
},
|
|
5020
|
+
],
|
|
5021
|
+
5: [
|
|
5022
|
+
{
|
|
5023
|
+
title: 'Отделение Банка',
|
|
5024
|
+
columns: 1,
|
|
5025
|
+
inputs: [],
|
|
5026
|
+
},
|
|
5027
|
+
{
|
|
5028
|
+
inputs: [{ fieldType: 'common', name: 'region' }],
|
|
5029
|
+
},
|
|
5030
|
+
{
|
|
5031
|
+
inputs: [{ fieldType: 'common', name: 'addressBranch' }],
|
|
5032
|
+
},
|
|
5033
|
+
{
|
|
5034
|
+
title: 'Код представителя Банка',
|
|
5035
|
+
columns: 1,
|
|
5036
|
+
inputs: [],
|
|
5037
|
+
},
|
|
5038
|
+
{
|
|
5039
|
+
inputs: [
|
|
5040
|
+
{
|
|
5041
|
+
fieldType: 'info',
|
|
5042
|
+
text: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
|
|
5043
|
+
},
|
|
5044
|
+
],
|
|
5045
|
+
},
|
|
5046
|
+
{
|
|
5047
|
+
inputs: [{ fieldType: 'common', name: 'bankEmployeeCode' }],
|
|
5048
|
+
},
|
|
5049
|
+
],
|
|
5050
|
+
};
|
|
5051
|
+
|
|
5052
|
+
const StepsNavigationButtons = JSX(({ step, setStep, totalSteps }) => {
|
|
5053
|
+
const handleNext = () => {
|
|
5054
|
+
if (step < totalSteps) {
|
|
5055
|
+
setStep(step + 1);
|
|
5056
|
+
}
|
|
5057
|
+
};
|
|
5058
|
+
const handlePrev = () => {
|
|
5059
|
+
if (step > 1) {
|
|
5060
|
+
setStep(step - 1);
|
|
5061
|
+
}
|
|
5062
|
+
};
|
|
5063
|
+
return (jsxs("div", { className: 'flex justify-between', children: [jsx(Button, { onClick: handlePrev, className: style('w-full @xl:w-auto'), type: "button", version: "secondary", disabled: step === 1, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { onClick: handleNext, className: style('w-full @xl:w-auto'), type: "button", disabled: step === totalSteps, children: "\u0414\u0430\u043B\u0435\u0435" })] }));
|
|
5064
|
+
});
|
|
5065
|
+
|
|
5066
|
+
const STEPS_COUNT = 5;
|
|
5067
|
+
const STEPS_TITLES = [
|
|
5068
|
+
'Персональные данные',
|
|
5069
|
+
'Данные о трудоустройстве',
|
|
5070
|
+
'Данные о доходах и расходах',
|
|
5071
|
+
'Дополнительные сведения',
|
|
5072
|
+
'Отделение Банка',
|
|
5073
|
+
];
|
|
5074
|
+
const CreditForm = JSX(({ className, typeForm = '', sections = [], ...rest }) => {
|
|
5075
|
+
const [step, setStep] = useState(1);
|
|
5076
|
+
const inputs = (sections?.flatMap((_) => _?.inputs) || []);
|
|
5077
|
+
const initialFormState = getInitialFormState(inputs, typeForm);
|
|
5078
|
+
const handleSubmit = () => false;
|
|
5079
|
+
const [, { field, onSubmit }] = useForm(initialFormState, { onSubmit: handleSubmit });
|
|
5080
|
+
return (jsx(BlockWrapper, { className: style('bg-transparent', className), defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container grid grid-cols-12", children: [jsx(CreditFormProgress, { stepsTitles: STEPS_TITLES, step: step, totalSteps: STEPS_COUNT }), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: jsxs("form", { onSubmit: onSubmit, className: "space-y-m", children: [renderStep$1({ sections: stepsSectionsMap[step], typeForm, field }), jsx(StepsNavigationButtons, { step: step, setStep: setStep, totalSteps: STEPS_COUNT })] }) })] }) }));
|
|
5081
|
+
});
|
|
5082
|
+
const renderStep$1 = ({ sections, field, typeForm }) => {
|
|
5083
|
+
return sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderInfo$1(_?.inputs), renderTitle(_?.title), renderInputs({ field, typeForm, inputs: _?.inputs })] }, `section-${i}`)));
|
|
5084
|
+
};
|
|
5085
|
+
const renderInfo$1 = (inputs = []) => {
|
|
5086
|
+
const infoInputs = inputs.filter((_) => _.fieldType === 'info');
|
|
5087
|
+
return infoInputs.length ? infoInputs.map(({ text }) => jsx(InfoCard, { __html: text })) : null;
|
|
5088
|
+
};
|
|
5089
|
+
|
|
4780
5090
|
const isRateRow = (rateRow) => typeof rateRow?.minMonths === 'number' && typeof rateRow?.maxMonths === 'number';
|
|
4781
5091
|
|
|
4782
5092
|
const numberRange = (start, end) => Array.from({ length: end - start + 1 }, (_, i) => start + i);
|
|
@@ -7360,6 +7670,7 @@
|
|
|
7360
7670
|
CarouselRecommendationCard,
|
|
7361
7671
|
CarouselTariffsCard,
|
|
7362
7672
|
ContactsBlock,
|
|
7673
|
+
CreditForm,
|
|
7363
7674
|
DepositFiltration,
|
|
7364
7675
|
Depository,
|
|
7365
7676
|
ErrorBlock,
|
|
@@ -7566,7 +7877,7 @@
|
|
|
7566
7877
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
7567
7878
|
});
|
|
7568
7879
|
|
|
7569
|
-
const packageVersion = "0.14.
|
|
7880
|
+
const packageVersion = "0.14.603";
|
|
7570
7881
|
|
|
7571
7882
|
exports.Blocks = Blocks;
|
|
7572
7883
|
exports.ContentPage = ContentPage;
|