@redneckz/wildless-cms-uni-blocks 0.14.657 → 0.14.658
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/bundle.umd.js +209 -170
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +19 -11
- package/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +0 -2
- package/bundle/components/CreditCardForm/calculateInputs.d.ts +5 -0
- package/bundle/components/CreditCardForm/formStateMap.d.ts +2 -74
- package/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/bundle/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/bundle/components/CreditCardForm/renderInputs.d.ts +7 -1
- package/bundle/components/CreditCardForm/renderStep.d.ts +5 -5
- package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/bundle/components/CreditForm/CreditFormContent.d.ts +0 -8
- package/bundle/components/CreditForm/CreditFormStep.d.ts +0 -2
- package/bundle/components/CreditForm/calculateInputs.d.ts +5 -0
- package/bundle/components/CreditForm/formStateMap.d.ts +2 -73
- package/bundle/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/bundle/components/CreditForm/renderInputs.d.ts +7 -1
- package/bundle/components/CreditForm/renderStep.d.ts +5 -4
- package/bundle/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/bundle/ui-kit/FormField/isEsiaAuthorize.d.ts +1 -1
- package/bundle/ui-kit/Input/InputProps.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +19 -11
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardForm.js +1 -2
- package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/dist/components/CreditCardForm/CreditCardFormStep.d.ts +0 -2
- package/dist/components/CreditCardForm/CreditCardFormStep.js +4 -3
- package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/dist/components/CreditCardForm/calculateInputs.d.ts +5 -0
- package/dist/components/CreditCardForm/calculateInputs.js +28 -0
- package/dist/components/CreditCardForm/calculateInputs.js.map +1 -0
- package/dist/components/CreditCardForm/formStateMap.d.ts +2 -74
- package/dist/components/CreditCardForm/formStateMap.js +18 -14
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/dist/components/CreditCardForm/getInitialFormState.js +19 -24
- package/dist/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/dist/components/CreditCardForm/renderInfo.js +3 -5
- package/dist/components/CreditCardForm/renderInfo.js.map +1 -1
- package/dist/components/CreditCardForm/renderInputs.d.ts +7 -1
- package/dist/components/CreditCardForm/renderInputs.js +1 -1
- package/dist/components/CreditCardForm/renderInputs.js.map +1 -1
- package/dist/components/CreditCardForm/renderStep.d.ts +5 -5
- package/dist/components/CreditCardForm/renderStep.js +7 -1
- package/dist/components/CreditCardForm/renderStep.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +4 -4
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.js +1 -3
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/CreditFormContent.d.ts +0 -8
- package/dist/components/CreditForm/CreditFormStep.d.ts +0 -2
- package/dist/components/CreditForm/CreditFormStep.js +3 -2
- package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/dist/components/CreditForm/calculateInputs.d.ts +5 -0
- package/dist/components/CreditForm/calculateInputs.js +28 -0
- package/dist/components/CreditForm/calculateInputs.js.map +1 -0
- package/dist/components/CreditForm/creditFormStepsData.js +2 -2
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/formStateMap.d.ts +2 -73
- package/dist/components/CreditForm/formStateMap.js +14 -14
- package/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/dist/components/CreditForm/getCreditFormTaskData.js +3 -1
- package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/dist/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/dist/components/CreditForm/getInitialFormState.js +19 -21
- package/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditForm/renderInputs.d.ts +7 -1
- package/dist/components/CreditForm/renderInputs.js +1 -1
- package/dist/components/CreditForm/renderInputs.js.map +1 -1
- package/dist/components/CreditForm/renderStep.d.ts +5 -4
- package/dist/components/CreditForm/renderStep.js +6 -1
- package/dist/components/CreditForm/renderStep.js.map +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/dist/components/CreditForm/useCreditFormAPI.js +4 -13
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AddressFactField.js +3 -0
- package/dist/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AddressField.js +1 -9
- package/dist/ui-kit/FormField/Fields/AddressField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AddressMatchField.js +2 -2
- package/dist/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js +1 -1
- package/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js +1 -1
- package/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/BeginDateField.js +1 -2
- package/dist/ui-kit/FormField/Fields/BeginDateField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/BirthPlaceField.js +3 -1
- package/dist/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/BirthdayField.js +4 -2
- package/dist/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- 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/DisablePeopleFlgField.js +1 -1
- package/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulIssueDateField.js +2 -1
- package/dist/ui-kit/FormField/Fields/DulIssueDateField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulIssuedByField.js +2 -1
- package/dist/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulNumberField.js +2 -1
- package/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulSerieField.js +2 -1
- package/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -1
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/Experience5YearsField.js +1 -2
- package/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +1 -2
- package/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/InnField.js +1 -2
- package/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/JobsNumberField.js +1 -2
- package/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +1 -2
- package/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/LegalFormField.js +1 -2
- package/dist/ui-kit/FormField/Fields/LegalFormField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/MiddleNameField.js +2 -1
- package/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/NameField.js +1 -1
- package/dist/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/OrganizationNameField.js +1 -2
- package/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +2 -3
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PhoneField.js +5 -4
- package/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ShareholderFlgField.js +1 -1
- package/dist/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/SurnameField.js +2 -1
- package/dist/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +4 -7
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/FormField/getValidation.js +1 -1
- package/dist/ui-kit/FormField/getValidation.js.map +1 -1
- package/dist/ui-kit/FormField/isEsiaAuthorize.d.ts +1 -1
- package/dist/ui-kit/FormField/isEsiaAuthorize.js +1 -1
- package/dist/ui-kit/FormField/isEsiaAuthorize.js.map +1 -1
- package/dist/ui-kit/Input/InputControl.js +2 -2
- package/dist/ui-kit/Input/InputControl.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +19 -11
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardForm.js +1 -2
- package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/lib/components/CreditCardForm/CreditCardFormStep.d.ts +0 -2
- package/lib/components/CreditCardForm/CreditCardFormStep.js +4 -3
- package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/lib/components/CreditCardForm/calculateInputs.d.ts +5 -0
- package/lib/components/CreditCardForm/calculateInputs.js +24 -0
- package/lib/components/CreditCardForm/calculateInputs.js.map +1 -0
- package/lib/components/CreditCardForm/formStateMap.d.ts +2 -74
- package/lib/components/CreditCardForm/formStateMap.js +18 -14
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/lib/components/CreditCardForm/getInitialFormState.js +18 -23
- package/lib/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/lib/components/CreditCardForm/renderInfo.js +3 -5
- package/lib/components/CreditCardForm/renderInfo.js.map +1 -1
- package/lib/components/CreditCardForm/renderInputs.d.ts +7 -1
- package/lib/components/CreditCardForm/renderInputs.js +1 -1
- package/lib/components/CreditCardForm/renderInputs.js.map +1 -1
- package/lib/components/CreditCardForm/renderStep.d.ts +5 -5
- package/lib/components/CreditCardForm/renderStep.js +7 -1
- package/lib/components/CreditCardForm/renderStep.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +4 -4
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.js +1 -3
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/CreditFormContent.d.ts +0 -8
- package/lib/components/CreditForm/CreditFormStep.d.ts +0 -2
- package/lib/components/CreditForm/CreditFormStep.js +3 -2
- package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/lib/components/CreditForm/calculateInputs.d.ts +5 -0
- package/lib/components/CreditForm/calculateInputs.js +24 -0
- package/lib/components/CreditForm/calculateInputs.js.map +1 -0
- package/lib/components/CreditForm/creditFormStepsData.js +2 -2
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/formStateMap.d.ts +2 -73
- package/lib/components/CreditForm/formStateMap.js +14 -14
- package/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/lib/components/CreditForm/getCreditFormTaskData.js +3 -1
- package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/lib/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/lib/components/CreditForm/getInitialFormState.js +18 -20
- package/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditForm/renderInputs.d.ts +7 -1
- package/lib/components/CreditForm/renderInputs.js +1 -1
- package/lib/components/CreditForm/renderInputs.js.map +1 -1
- package/lib/components/CreditForm/renderStep.d.ts +5 -4
- package/lib/components/CreditForm/renderStep.js +6 -1
- package/lib/components/CreditForm/renderStep.js.map +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/lib/components/CreditForm/useCreditFormAPI.js +4 -13
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/AddressFactField.js +3 -0
- package/lib/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/AddressField.js +1 -9
- package/lib/ui-kit/FormField/Fields/AddressField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/AddressMatchField.js +2 -2
- package/lib/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js +1 -1
- package/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js +1 -1
- package/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/BeginDateField.js +1 -2
- package/lib/ui-kit/FormField/Fields/BeginDateField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/BirthPlaceField.js +3 -1
- package/lib/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/BirthdayField.js +4 -2
- package/lib/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- 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/DisablePeopleFlgField.js +1 -1
- package/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulIssueDateField.js +2 -1
- package/lib/ui-kit/FormField/Fields/DulIssueDateField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulIssuedByField.js +2 -1
- package/lib/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulNumberField.js +2 -1
- package/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulSerieField.js +2 -1
- package/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -1
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/Experience5YearsField.js +1 -2
- package/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +1 -2
- package/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/InnField.js +1 -2
- package/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/JobsNumberField.js +1 -2
- package/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +1 -2
- package/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/LegalFormField.js +1 -2
- package/lib/ui-kit/FormField/Fields/LegalFormField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/MiddleNameField.js +2 -1
- package/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/NameField.js +1 -1
- package/lib/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/OrganizationNameField.js +1 -2
- package/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +2 -3
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PhoneField.js +5 -4
- package/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ShareholderFlgField.js +1 -1
- package/lib/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/SurnameField.js +2 -1
- package/lib/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +4 -7
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/FormField/getValidation.js +1 -1
- package/lib/ui-kit/FormField/getValidation.js.map +1 -1
- package/lib/ui-kit/FormField/isEsiaAuthorize.d.ts +1 -1
- package/lib/ui-kit/FormField/isEsiaAuthorize.js +1 -1
- package/lib/ui-kit/FormField/isEsiaAuthorize.js.map +1 -1
- package/lib/ui-kit/Input/InputControl.js +2 -2
- package/lib/ui-kit/Input/InputControl.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +209 -170
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +19 -11
- package/mobile/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +0 -2
- package/mobile/bundle/components/CreditCardForm/calculateInputs.d.ts +5 -0
- package/mobile/bundle/components/CreditCardForm/formStateMap.d.ts +2 -74
- package/mobile/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/mobile/bundle/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +7 -1
- package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +5 -5
- package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/CreditFormContent.d.ts +0 -8
- package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +0 -2
- package/mobile/bundle/components/CreditForm/calculateInputs.d.ts +5 -0
- package/mobile/bundle/components/CreditForm/formStateMap.d.ts +2 -73
- package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/renderInputs.d.ts +7 -1
- package/mobile/bundle/components/CreditForm/renderStep.d.ts +5 -4
- package/mobile/bundle/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/bundle/ui-kit/FormField/isEsiaAuthorize.d.ts +1 -1
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +19 -11
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js +1 -2
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.d.ts +0 -2
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +4 -3
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/calculateInputs.d.ts +5 -0
- package/mobile/dist/components/CreditCardForm/calculateInputs.js +28 -0
- package/mobile/dist/components/CreditCardForm/calculateInputs.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/formStateMap.d.ts +2 -74
- package/mobile/dist/components/CreditCardForm/formStateMap.js +18 -14
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/getInitialFormState.js +19 -24
- package/mobile/dist/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/mobile/dist/components/CreditCardForm/renderInfo.js +3 -5
- package/mobile/dist/components/CreditCardForm/renderInfo.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +7 -1
- package/mobile/dist/components/CreditCardForm/renderInputs.js +1 -1
- package/mobile/dist/components/CreditCardForm/renderInputs.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/renderStep.d.ts +5 -5
- package/mobile/dist/components/CreditCardForm/renderStep.js +7 -1
- package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +4 -4
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.js +1 -3
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormContent.d.ts +0 -8
- package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +0 -2
- package/mobile/dist/components/CreditForm/CreditFormStep.js +3 -2
- package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/calculateInputs.d.ts +5 -0
- package/mobile/dist/components/CreditForm/calculateInputs.js +28 -0
- package/mobile/dist/components/CreditForm/calculateInputs.js.map +1 -0
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +2 -2
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/formStateMap.d.ts +2 -73
- package/mobile/dist/components/CreditForm/formStateMap.js +14 -14
- package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +3 -1
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/mobile/dist/components/CreditForm/getInitialFormState.js +19 -21
- package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderInputs.d.ts +7 -1
- package/mobile/dist/components/CreditForm/renderInputs.js +1 -1
- package/mobile/dist/components/CreditForm/renderInputs.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderStep.d.ts +5 -4
- package/mobile/dist/components/CreditForm/renderStep.js +6 -1
- package/mobile/dist/components/CreditForm/renderStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js +4 -13
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.js +3 -0
- package/mobile/dist/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.js +1 -9
- package/mobile/dist/ui-kit/FormField/Fields/AddressField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressMatchField.js +2 -2
- package/mobile/dist/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/BeginDateField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/BeginDateField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/BirthPlaceField.js +3 -1
- package/mobile/dist/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.js +4 -2
- package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- 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/DisablePeopleFlgField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulIssueDateField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulIssueDateField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulIssuedByField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/LegalFormField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/LegalFormField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/NameField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +2 -3
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js +5 -4
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/SurnameField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +4 -7
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getValidation.js +1 -1
- package/mobile/dist/ui-kit/FormField/getValidation.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/isEsiaAuthorize.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/isEsiaAuthorize.js +1 -1
- package/mobile/dist/ui-kit/FormField/isEsiaAuthorize.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputControl.js +2 -2
- package/mobile/dist/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +19 -11
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js +1 -2
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.d.ts +0 -2
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +4 -3
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/calculateInputs.d.ts +5 -0
- package/mobile/lib/components/CreditCardForm/calculateInputs.js +24 -0
- package/mobile/lib/components/CreditCardForm/calculateInputs.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/formStateMap.d.ts +2 -74
- package/mobile/lib/components/CreditCardForm/formStateMap.js +18 -14
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/getInitialFormState.js +18 -23
- package/mobile/lib/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/mobile/lib/components/CreditCardForm/renderInfo.js +3 -5
- package/mobile/lib/components/CreditCardForm/renderInfo.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +7 -1
- package/mobile/lib/components/CreditCardForm/renderInputs.js +1 -1
- package/mobile/lib/components/CreditCardForm/renderInputs.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/renderStep.d.ts +5 -5
- package/mobile/lib/components/CreditCardForm/renderStep.js +7 -1
- package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +4 -4
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.js +1 -3
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormContent.d.ts +0 -8
- package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +0 -2
- package/mobile/lib/components/CreditForm/CreditFormStep.js +3 -2
- package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/calculateInputs.d.ts +5 -0
- package/mobile/lib/components/CreditForm/calculateInputs.js +24 -0
- package/mobile/lib/components/CreditForm/calculateInputs.js.map +1 -0
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +2 -2
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/formStateMap.d.ts +2 -73
- package/mobile/lib/components/CreditForm/formStateMap.js +14 -14
- package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +3 -1
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getInitialFormState.d.ts +2 -2
- package/mobile/lib/components/CreditForm/getInitialFormState.js +18 -20
- package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderInputs.d.ts +7 -1
- package/mobile/lib/components/CreditForm/renderInputs.js +1 -1
- package/mobile/lib/components/CreditForm/renderInputs.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderStep.d.ts +5 -4
- package/mobile/lib/components/CreditForm/renderStep.js +6 -1
- package/mobile/lib/components/CreditForm/renderStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.d.ts +2 -2
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js +4 -13
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.js +3 -0
- package/mobile/lib/ui-kit/FormField/Fields/AddressFactField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.js +1 -9
- package/mobile/lib/ui-kit/FormField/Fields/AddressField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressMatchField.js +2 -2
- package/mobile/lib/ui-kit/FormField/Fields/AddressMatchField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ArmyIdFlgField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/BankruptcyFlgField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/BeginDateField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/BeginDateField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/BirthPlaceField.js +3 -1
- package/mobile/lib/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.js +4 -2
- package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- 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/DisablePeopleFlgField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DisablePeopleFlgField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulIssueDateField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulIssueDateField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulIssuedByField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulIssuedByField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/GeneralSeniorityField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/LastJobExperienceField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/LegalFormField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/LegalFormField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/NameField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +2 -3
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js +5 -4
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ShareholderFlgField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/SurnameField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/SurnameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +4 -7
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getValidation.js +1 -1
- package/mobile/lib/ui-kit/FormField/getValidation.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/isEsiaAuthorize.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/isEsiaAuthorize.js +1 -1
- package/mobile/lib/ui-kit/FormField/isEsiaAuthorize.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputControl.js +2 -2
- package/mobile/lib/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +1 -1
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +20 -8
- package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +0 -5
- package/mobile/src/components/CreditCardForm/CreditCardFormContent.ts +2 -2
- package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +8 -7
- package/mobile/src/components/CreditCardForm/calculateInputs.ts +44 -0
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +19 -89
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -1
- package/mobile/src/components/CreditCardForm/getInitialFormState.tsx +24 -26
- package/mobile/src/components/CreditCardForm/renderInfo.tsx +3 -9
- package/mobile/src/components/CreditCardForm/renderInputs.tsx +9 -2
- package/mobile/src/components/CreditCardForm/renderStep.tsx +24 -12
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +9 -11
- package/mobile/src/components/CreditForm/CreditForm.tsx +3 -9
- package/mobile/src/components/CreditForm/CreditFormContent.ts +0 -9
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +6 -6
- package/mobile/src/components/CreditForm/calculateInputs.ts +44 -0
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +2 -2
- package/mobile/src/components/CreditForm/formStateMap.tsx +15 -88
- package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +3 -1
- package/mobile/src/components/CreditForm/getInitialFormState.tsx +24 -23
- package/mobile/src/components/CreditForm/renderInputs.tsx +9 -2
- package/mobile/src/components/CreditForm/renderStep.tsx +22 -11
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +9 -22
- package/mobile/src/ui-kit/FormField/Fields/AddressFactField.tsx +3 -0
- package/mobile/src/ui-kit/FormField/Fields/AddressField.tsx +2 -15
- package/mobile/src/ui-kit/FormField/Fields/AddressMatchField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/ArmyIdFlgField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/BankruptcyFlgField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/BeginDateField.tsx +1 -6
- package/mobile/src/ui-kit/FormField/Fields/BirthPlaceField.tsx +4 -0
- package/mobile/src/ui-kit/FormField/Fields/BirthdayField.tsx +6 -2
- package/mobile/src/ui-kit/FormField/Fields/DependentsField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/DisablePeopleFlgField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/DulIssueDateField.tsx +4 -2
- package/mobile/src/ui-kit/FormField/Fields/DulIssuedByField.tsx +4 -2
- package/mobile/src/ui-kit/FormField/Fields/DulNumberField.tsx +4 -2
- package/mobile/src/ui-kit/FormField/Fields/DulSerieField.tsx +4 -2
- package/mobile/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +5 -7
- package/mobile/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +2 -7
- package/mobile/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +2 -7
- package/mobile/src/ui-kit/FormField/Fields/InnField.tsx +2 -7
- package/mobile/src/ui-kit/FormField/Fields/JobsNumberField.tsx +2 -7
- package/mobile/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +2 -7
- package/mobile/src/ui-kit/FormField/Fields/LegalFormField.tsx +1 -6
- package/mobile/src/ui-kit/FormField/Fields/MiddleNameField.tsx +5 -3
- package/mobile/src/ui-kit/FormField/Fields/NameField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +1 -6
- package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +2 -7
- package/mobile/src/ui-kit/FormField/Fields/PhoneField.tsx +13 -14
- package/mobile/src/ui-kit/FormField/Fields/ShareholderFlgField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/Fields/SurnameField.tsx +4 -2
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +6 -7
- package/mobile/src/ui-kit/FormField/getValidation.tsx +1 -1
- package/mobile/src/ui-kit/FormField/isEsiaAuthorize.ts +2 -2
- package/mobile/src/ui-kit/Input/InputControl.tsx +2 -2
- package/mobile/src/ui-kit/Input/InputProps.ts +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +20 -8
- package/src/components/CreditCardForm/CreditCardForm.tsx +0 -5
- package/src/components/CreditCardForm/CreditCardFormContent.ts +2 -2
- package/src/components/CreditCardForm/CreditCardFormStep.tsx +8 -7
- package/src/components/CreditCardForm/calculateInputs.ts +44 -0
- package/src/components/CreditCardForm/formStateMap.tsx +19 -89
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -1
- package/src/components/CreditCardForm/getInitialFormState.tsx +24 -26
- package/src/components/CreditCardForm/renderInfo.tsx +3 -9
- package/src/components/CreditCardForm/renderInputs.tsx +9 -2
- package/src/components/CreditCardForm/renderStep.tsx +24 -12
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +9 -11
- package/src/components/CreditForm/CreditForm.tsx +3 -9
- package/src/components/CreditForm/CreditFormContent.ts +0 -9
- package/src/components/CreditForm/CreditFormStep.tsx +6 -6
- package/src/components/CreditForm/calculateInputs.ts +44 -0
- package/src/components/CreditForm/creditFormStepsData.tsx +2 -2
- package/src/components/CreditForm/formStateMap.tsx +15 -88
- package/src/components/CreditForm/getCreditFormTaskData.ts +3 -1
- package/src/components/CreditForm/getInitialFormState.tsx +24 -23
- package/src/components/CreditForm/renderInputs.tsx +9 -2
- package/src/components/CreditForm/renderStep.tsx +22 -11
- package/src/components/CreditForm/useCreditFormAPI.tsx +9 -22
- package/src/ui-kit/FormField/Fields/AddressFactField.tsx +3 -0
- package/src/ui-kit/FormField/Fields/AddressField.tsx +2 -15
- package/src/ui-kit/FormField/Fields/AddressMatchField.tsx +2 -2
- package/src/ui-kit/FormField/Fields/ArmyIdFlgField.tsx +2 -2
- package/src/ui-kit/FormField/Fields/BankruptcyFlgField.tsx +2 -2
- package/src/ui-kit/FormField/Fields/BeginDateField.tsx +1 -6
- package/src/ui-kit/FormField/Fields/BirthPlaceField.tsx +4 -0
- package/src/ui-kit/FormField/Fields/BirthdayField.tsx +6 -2
- package/src/ui-kit/FormField/Fields/DependentsField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/DisablePeopleFlgField.tsx +2 -2
- package/src/ui-kit/FormField/Fields/DulIssueDateField.tsx +4 -2
- package/src/ui-kit/FormField/Fields/DulIssuedByField.tsx +4 -2
- package/src/ui-kit/FormField/Fields/DulNumberField.tsx +4 -2
- package/src/ui-kit/FormField/Fields/DulSerieField.tsx +4 -2
- package/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +5 -7
- package/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +2 -7
- package/src/ui-kit/FormField/Fields/GeneralSeniorityField.tsx +2 -7
- package/src/ui-kit/FormField/Fields/InnField.tsx +2 -7
- package/src/ui-kit/FormField/Fields/JobsNumberField.tsx +2 -7
- package/src/ui-kit/FormField/Fields/LastJobExperienceField.tsx +2 -7
- package/src/ui-kit/FormField/Fields/LegalFormField.tsx +1 -6
- package/src/ui-kit/FormField/Fields/MiddleNameField.tsx +5 -3
- package/src/ui-kit/FormField/Fields/NameField.tsx +2 -2
- package/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +1 -6
- package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +2 -7
- package/src/ui-kit/FormField/Fields/PhoneField.tsx +13 -14
- package/src/ui-kit/FormField/Fields/ShareholderFlgField.tsx +2 -2
- package/src/ui-kit/FormField/Fields/SurnameField.tsx +4 -2
- package/src/ui-kit/FormField/getObjectValidator.tsx +6 -7
- package/src/ui-kit/FormField/getValidation.tsx +1 -1
- package/src/ui-kit/FormField/isEsiaAuthorize.ts +2 -2
- package/src/ui-kit/Input/InputControl.tsx +2 -2
- package/src/ui-kit/Input/InputProps.ts +1 -1
- package/bundle/components/CreditCardForm/getFilteredInputs.d.ts +0 -3
- package/bundle/ui-kit/FormField/calculateIsRequired.d.ts +0 -2
- package/dist/components/CreditCardForm/getFilteredInputs.d.ts +0 -3
- package/dist/components/CreditCardForm/getFilteredInputs.js +0 -11
- package/dist/components/CreditCardForm/getFilteredInputs.js.map +0 -1
- package/dist/ui-kit/FormField/calculateIsRequired.d.ts +0 -2
- package/dist/ui-kit/FormField/calculateIsRequired.js +0 -5
- package/dist/ui-kit/FormField/calculateIsRequired.js.map +0 -1
- package/lib/components/CreditCardForm/getFilteredInputs.d.ts +0 -3
- package/lib/components/CreditCardForm/getFilteredInputs.js +0 -8
- package/lib/components/CreditCardForm/getFilteredInputs.js.map +0 -1
- package/lib/ui-kit/FormField/calculateIsRequired.d.ts +0 -2
- package/lib/ui-kit/FormField/calculateIsRequired.js +0 -2
- package/lib/ui-kit/FormField/calculateIsRequired.js.map +0 -1
- package/mobile/bundle/components/CreditCardForm/getFilteredInputs.d.ts +0 -3
- package/mobile/bundle/ui-kit/FormField/calculateIsRequired.d.ts +0 -2
- package/mobile/dist/components/CreditCardForm/getFilteredInputs.d.ts +0 -3
- package/mobile/dist/components/CreditCardForm/getFilteredInputs.js +0 -11
- package/mobile/dist/components/CreditCardForm/getFilteredInputs.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/calculateIsRequired.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/calculateIsRequired.js +0 -5
- package/mobile/dist/ui-kit/FormField/calculateIsRequired.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/getFilteredInputs.d.ts +0 -3
- package/mobile/lib/components/CreditCardForm/getFilteredInputs.js +0 -8
- package/mobile/lib/components/CreditCardForm/getFilteredInputs.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/calculateIsRequired.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/calculateIsRequired.js +0 -2
- package/mobile/lib/ui-kit/FormField/calculateIsRequired.js.map +0 -1
- package/mobile/src/components/CreditCardForm/getFilteredInputs.tsx +0 -18
- package/mobile/src/ui-kit/FormField/calculateIsRequired.ts +0 -6
- package/src/components/CreditCardForm/getFilteredInputs.tsx +0 -18
- package/src/ui-kit/FormField/calculateIsRequired.ts +0 -6
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.checkCondition = exports.calculateInputs = void 0;
|
|
3
|
+
const calculateInputs = (getValue) => (inputs, step) => inputs
|
|
4
|
+
.filter((_) => _)
|
|
5
|
+
.map((_) => {
|
|
6
|
+
if ([
|
|
7
|
+
checkIsRetiree(step, getValue),
|
|
8
|
+
checkBusinessOwner(_, getValue),
|
|
9
|
+
checkConsentPfrFlg(_, getValue),
|
|
10
|
+
checkAddressFillFromESIA(_, getValue),
|
|
11
|
+
(0, exports.checkCondition)(_, getValue),
|
|
12
|
+
].some(Boolean)) {
|
|
13
|
+
return { ..._, required: false };
|
|
14
|
+
}
|
|
15
|
+
return _;
|
|
16
|
+
});
|
|
17
|
+
exports.calculateInputs = calculateInputs;
|
|
18
|
+
const checkIsRetiree = (step, getValue) => step === 2 && getValue('employment')?.key === 'RETIREE';
|
|
19
|
+
const checkBusinessOwner = ({ name }, getValue) => name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
|
|
20
|
+
const checkConsentPfrFlg = ({ name }, getValue) => name === 'snils' && !getValue('consentPfrFlg');
|
|
21
|
+
const checkAddressFillFromESIA = ({ name, filledByEsia }, getValue) => name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
|
|
22
|
+
const checkCondition = ({ condition }, getValue) => condition?.name &&
|
|
23
|
+
condition?.values?.some((_) => {
|
|
24
|
+
const dataValue = getValue(condition?.name);
|
|
25
|
+
return _ !== (dataValue?.key ?? dataValue);
|
|
26
|
+
});
|
|
27
|
+
exports.checkCondition = checkCondition;
|
|
28
|
+
//# sourceMappingURL=calculateInputs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculateInputs.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/calculateInputs.ts"],"names":[],"mappings":";;AAMO,MAAM,eAAe,GAAG,CAAC,QAAkB,EAAE,EAAE,CAAC,CAAC,MAAkB,EAAE,IAAY,EAAE,EAAE,CAC1F,MAAM;KACH,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;KAChB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;IACT,IACE;QACE,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC;QAC9B,kBAAkB,CAAC,CAAC,EAAE,QAAQ,CAAC;QAC/B,kBAAkB,CAAC,CAAC,EAAE,QAAQ,CAAC;QAC/B,wBAAwB,CAAC,CAAC,EAAE,QAAQ,CAAC;QACrC,IAAA,sBAAc,EAAC,CAAC,EAAE,QAAQ,CAAC;KAC5B,CAAC,IAAI,CAAC,OAAO,CAAC,EACf;QACA,OAAO,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;KAClC;IAED,OAAO,CAAC,CAAC;AACX,CAAC,CAAC,CAAC;AAjBM,QAAA,eAAe,mBAiBrB;AAEP,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,QAAkB,EAAE,EAAE,CAC1D,IAAI,KAAK,CAAC,IAAI,QAAQ,CAAC,YAAY,CAAC,EAAE,GAAG,KAAK,SAAS,CAAC;AAE1D,MAAM,kBAAkB,GAAG,CAAC,EAAE,IAAI,EAAY,EAAE,QAAkB,EAAE,EAAE,CACpE,IAAI,KAAK,gBAAgB,IAAI,QAAQ,CAAC,sBAAsB,CAAC,EAAE,GAAG,KAAK,gBAAgB,CAAC;AAE1F,MAAM,kBAAkB,GAAG,CAAC,EAAE,IAAI,EAAY,EAAE,QAAkB,EAAE,EAAE,CACpE,IAAI,KAAK,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEjD,MAAM,wBAAwB,GAAG,CAAC,EAAE,IAAI,EAAE,YAAY,EAAY,EAAE,QAAkB,EAAE,EAAE,CACxF,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,IAAI,QAAQ,CAAC,mBAAmB,CAAC,EAAE,GAAG,IAAI,YAAY,CAAC;AAE7E,MAAM,cAAc,GAAG,CAAC,EAAE,SAAS,EAAY,EAAE,QAAkB,EAAE,EAAE,CAC5E,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QAC5B,MAAM,SAAS,GAAG,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAE5C,OAAO,CAAC,KAAK,CAAE,SAAoB,EAAE,GAAG,IAAI,SAAS,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;AANQ,QAAA,cAAc,kBAMtB"}
|
|
@@ -1,74 +1,2 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
export declare type FormStateDeliveryType = {
|
|
4
|
-
regionRetail?: string;
|
|
5
|
-
bankEmployeeCode?: string;
|
|
6
|
-
methodObtain?: 'office' | 'courier';
|
|
7
|
-
deliveryDate?: Date;
|
|
8
|
-
addressRetail?: Address;
|
|
9
|
-
addressCourier?: Address;
|
|
10
|
-
};
|
|
11
|
-
export interface FormStateMap {
|
|
12
|
-
0: {
|
|
13
|
-
currency?: string;
|
|
14
|
-
paymentSystem?: string;
|
|
15
|
-
cardCategory?: Option;
|
|
16
|
-
codeWord?: string;
|
|
17
|
-
};
|
|
18
|
-
1: {
|
|
19
|
-
surname?: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
middleName?: string;
|
|
22
|
-
sex?: string;
|
|
23
|
-
birthday?: Date;
|
|
24
|
-
birthPlace?: string;
|
|
25
|
-
phone?: string;
|
|
26
|
-
email?: string;
|
|
27
|
-
dulSerie?: number;
|
|
28
|
-
dulNumber?: number;
|
|
29
|
-
dulIssueDateField?: Date;
|
|
30
|
-
dulSubdivisionCode?: string;
|
|
31
|
-
dulIssuedBy?: string;
|
|
32
|
-
addressRegistration?: Address;
|
|
33
|
-
participantDateRegistration?: Date;
|
|
34
|
-
addressFact?: Address;
|
|
35
|
-
housing?: string;
|
|
36
|
-
};
|
|
37
|
-
2: {
|
|
38
|
-
amountWorkers?: Option;
|
|
39
|
-
beginDate?: Date;
|
|
40
|
-
employerActivities?: Option;
|
|
41
|
-
employerOrganization?: Option;
|
|
42
|
-
employment?: Option;
|
|
43
|
-
experience5Years?: string;
|
|
44
|
-
inn?: number;
|
|
45
|
-
jobsNumber?: string;
|
|
46
|
-
lastJobExperience?: string;
|
|
47
|
-
legalForm?: string;
|
|
48
|
-
organization?: Option;
|
|
49
|
-
organizationAddress?: Address;
|
|
50
|
-
organizationName?: string;
|
|
51
|
-
organizationPhone?: string;
|
|
52
|
-
partInBusiness?: number;
|
|
53
|
-
positionOrganization?: Option;
|
|
54
|
-
};
|
|
55
|
-
3: {
|
|
56
|
-
familyStatus?: Option;
|
|
57
|
-
dependents?: number;
|
|
58
|
-
familyMembers?: number;
|
|
59
|
-
confirmationIncome?: Option;
|
|
60
|
-
mandatoryIncome?: number;
|
|
61
|
-
otherPayments?: number;
|
|
62
|
-
snils?: string;
|
|
63
|
-
armyIdFlg?: boolean;
|
|
64
|
-
};
|
|
65
|
-
4: {
|
|
66
|
-
disablePeopleFlg?: boolean;
|
|
67
|
-
bankruptcyFlg?: boolean;
|
|
68
|
-
shareholderFlg?: boolean;
|
|
69
|
-
legalEntityName?: string;
|
|
70
|
-
creditInRshbCd?: Option;
|
|
71
|
-
};
|
|
72
|
-
5: FormStateDeliveryType;
|
|
73
|
-
}
|
|
74
|
-
export declare const formStateMap: FormStateMap;
|
|
1
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
2
|
+
export declare const formStateMap: Partial<FormState>[];
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.formStateMap = void 0;
|
|
3
|
-
/* eslint-disable max-lines */
|
|
4
3
|
const PaymentSystemField_1 = require("../../ui-kit/FormField/Fields/PaymentSystemField");
|
|
5
|
-
exports.formStateMap =
|
|
6
|
-
|
|
4
|
+
exports.formStateMap = [
|
|
5
|
+
{
|
|
7
6
|
paymentSystem: PaymentSystemField_1.PAYMENT_SYSTEM_TYPES[0].id,
|
|
8
7
|
currency: 'rub',
|
|
9
8
|
codeWord: '',
|
|
10
9
|
},
|
|
11
|
-
|
|
10
|
+
{
|
|
12
11
|
surname: '',
|
|
13
12
|
name: '',
|
|
14
13
|
middleName: '',
|
|
@@ -31,18 +30,23 @@ exports.formStateMap = {
|
|
|
31
30
|
fullAddress: '',
|
|
32
31
|
fiasCode: '',
|
|
33
32
|
},
|
|
34
|
-
housing:
|
|
33
|
+
housing: undefined,
|
|
34
|
+
methodObtain: 'office',
|
|
35
|
+
addressCourier: {
|
|
36
|
+
fullAddress: '',
|
|
37
|
+
fiasCode: '',
|
|
38
|
+
},
|
|
35
39
|
},
|
|
36
|
-
|
|
40
|
+
{
|
|
37
41
|
amountWorkers: { key: '', text: '' },
|
|
38
42
|
beginDate: undefined,
|
|
39
43
|
employerActivities: { key: '', text: '' },
|
|
40
44
|
employerOrganization: { key: '', text: '' },
|
|
41
45
|
employment: { key: '', text: '' },
|
|
42
|
-
experience5Years:
|
|
46
|
+
experience5Years: undefined,
|
|
43
47
|
inn: undefined,
|
|
44
|
-
jobsNumber:
|
|
45
|
-
lastJobExperience:
|
|
48
|
+
jobsNumber: undefined,
|
|
49
|
+
lastJobExperience: undefined,
|
|
46
50
|
legalForm: '',
|
|
47
51
|
organization: { key: '', text: '' },
|
|
48
52
|
organizationAddress: {
|
|
@@ -54,7 +58,7 @@ exports.formStateMap = {
|
|
|
54
58
|
partInBusiness: undefined,
|
|
55
59
|
positionOrganization: { key: '', text: '' },
|
|
56
60
|
},
|
|
57
|
-
|
|
61
|
+
{
|
|
58
62
|
familyStatus: { key: '', text: '' },
|
|
59
63
|
dependents: undefined,
|
|
60
64
|
familyMembers: undefined,
|
|
@@ -64,26 +68,26 @@ exports.formStateMap = {
|
|
|
64
68
|
snils: '',
|
|
65
69
|
armyIdFlg: false,
|
|
66
70
|
},
|
|
67
|
-
|
|
71
|
+
{
|
|
68
72
|
disablePeopleFlg: false,
|
|
69
73
|
bankruptcyFlg: false,
|
|
70
74
|
shareholderFlg: false,
|
|
71
75
|
legalEntityName: '',
|
|
72
76
|
creditInRshbCd: undefined,
|
|
73
77
|
},
|
|
74
|
-
|
|
78
|
+
{
|
|
75
79
|
regionRetail: '',
|
|
76
80
|
addressRetail: {
|
|
77
81
|
fullAddress: '',
|
|
78
82
|
fiasCode: '',
|
|
79
83
|
},
|
|
84
|
+
bankEmployeeCode: undefined,
|
|
80
85
|
addressCourier: {
|
|
81
86
|
fullAddress: '',
|
|
82
87
|
fiasCode: '',
|
|
83
88
|
},
|
|
84
|
-
bankEmployeeCode: '',
|
|
85
89
|
methodObtain: 'office',
|
|
86
90
|
deliveryDate: undefined,
|
|
87
91
|
},
|
|
88
|
-
|
|
92
|
+
];
|
|
89
93
|
//# sourceMappingURL=formStateMap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formStateMap.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/formStateMap.tsx"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"formStateMap.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/formStateMap.tsx"],"names":[],"mappings":";;AAAA,yFAAwF;AAG3E,QAAA,YAAY,GAAyB;IAChD;QACE,aAAa,EAAE,yCAAoB,CAAC,CAAC,CAAC,CAAC,EAAE;QACzC,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,EAAE;KACb;IACD;QACE,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,EAAE;QACR,UAAU,EAAE,EAAE;QACd,GAAG,EAAE,EAAE;QACP,QAAQ,EAAE,SAAS;QACnB,UAAU,EAAE,EAAE;QACd,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,EAAE;QACT,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,SAAS;QACpB,iBAAiB,EAAE,SAAS;QAC5B,kBAAkB,EAAE,EAAE;QACtB,WAAW,EAAE,EAAE;QACf,mBAAmB,EAAE;YACnB,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,EAAE;SACb;QACD,2BAA2B,EAAE,SAAS;QACtC,WAAW,EAAE;YACX,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,EAAE;SACb;QACD,OAAO,EAAE,SAAS;QAClB,YAAY,EAAE,QAAQ;QACtB,cAAc,EAAE;YACd,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,EAAE;SACb;KACF;IACD;QACE,aAAa,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QACpC,SAAS,EAAE,SAAS;QACpB,kBAAkB,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QACzC,oBAAoB,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QAC3C,UAAU,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QACjC,gBAAgB,EAAE,SAAS;QAC3B,GAAG,EAAE,SAAS;QACd,UAAU,EAAE,SAAS;QACrB,iBAAiB,EAAE,SAAS;QAC5B,SAAS,EAAE,EAAE;QACb,YAAY,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QACnC,mBAAmB,EAAE;YACnB,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,EAAE;SACb;QACD,gBAAgB,EAAE,EAAE;QACpB,iBAAiB,EAAE,EAAE;QACrB,cAAc,EAAE,SAAS;QACzB,oBAAoB,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;KAC5C;IACD;QACE,YAAY,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QACnC,UAAU,EAAE,SAAS;QACrB,aAAa,EAAE,SAAS;QACxB,kBAAkB,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QACzC,eAAe,EAAE,SAAS;QAC1B,aAAa,EAAE,SAAS;QACxB,KAAK,EAAE,EAAE;QACT,SAAS,EAAE,KAAK;KACjB;IACD;QACE,gBAAgB,EAAE,KAAK;QACvB,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,KAAK;QACrB,eAAe,EAAE,EAAE;QACnB,cAAc,EAAE,SAAS;KAC1B;IACD;QACE,YAAY,EAAE,EAAE;QAChB,aAAa,EAAE;YACb,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,EAAE;SACb;QACD,gBAAgB,EAAE,SAAS;QAC3B,cAAc,EAAE;YACd,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,EAAE;SACb;QACD,YAAY,EAAE,QAAQ;QACtB,YAAY,EAAE,SAAS;KACxB;CACF,CAAC"}
|
|
@@ -12,7 +12,9 @@ const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData,
|
|
|
12
12
|
task: {
|
|
13
13
|
taskSource: globalThis.location.origin,
|
|
14
14
|
id: taskId,
|
|
15
|
-
|
|
15
|
+
office: {
|
|
16
|
+
id: '650',
|
|
17
|
+
},
|
|
16
18
|
authorizedAgentId: formData?.bankEmployeeCode,
|
|
17
19
|
participants: [
|
|
18
20
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCreditCardFormTaskData.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/getCreditCardFormTaskData.ts"],"names":[],"mappings":";;AAEA,yDAAsD;AACtD,yDAAsD;AACtD,2DAAwD;AACxD,2DAAwD;AACxD,yDAAsD;AAU/C,MAAM,yBAAyB,GAAG,CAAC,EACxC,aAAa,EACb,MAAM,EACN,SAAS,EACT,QAAQ,EACR,IAAI,GAAG,CAAC,GACuB,EAAsB,EAAE;IACvD,OAAO;QACL,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE;YACJ,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM;YACtC,EAAE,EAAE,MAAM;YACV,
|
|
1
|
+
{"version":3,"file":"getCreditCardFormTaskData.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/getCreditCardFormTaskData.ts"],"names":[],"mappings":";;AAEA,yDAAsD;AACtD,yDAAsD;AACtD,2DAAwD;AACxD,2DAAwD;AACxD,yDAAsD;AAU/C,MAAM,yBAAyB,GAAG,CAAC,EACxC,aAAa,EACb,MAAM,EACN,SAAS,EACT,QAAQ,EACR,IAAI,GAAG,CAAC,GACuB,EAAsB,EAAE;IACvD,OAAO;QACL,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE;YACJ,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM;YACtC,EAAE,EAAE,MAAM;YACV,MAAM,EAAE;gBACN,EAAE,EAAE,KAAK;aACV;YACD,iBAAiB,EAAE,QAAQ,EAAE,gBAAgB;YAC7C,YAAY,EAAE;gBACZ;oBACE,EAAE,EAAE,aAAa;oBACjB,OAAO,EAAE;wBACP,EAAE,EAAE,SAAS;qBACd;oBACD,MAAM,EAAE;wBACN,GAAG,EAAE,UAAU;wBACf,KAAK,EAAE,SAAS;qBACjB;oBACD,GAAG,kBAAkB,CAAC,IAAI,EAAE,QAAQ,CAAC;iBACtC;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAhCW,QAAA,yBAAyB,6BAgCpC;AAEF,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,QAAmB,EAAwB,EAAE;IACrF,QAAQ,IAAI,EAAE;QACZ,KAAK,CAAC;YACJ,OAAO,IAAA,mCAAgB,EAAC,QAAQ,CAAC,CAAC;QACpC,KAAK,CAAC;YACJ,OAAO,IAAA,qCAAiB,EAAC,QAAQ,CAAC,CAAC;QACrC,KAAK,CAAC;YACJ,OAAO,IAAA,mCAAgB,EAAC,QAAQ,CAAC,CAAC;QACpC,KAAK,CAAC;YACJ,OAAO,IAAA,qCAAiB,EAAC,QAAQ,CAAC,CAAC;QACrC,KAAK,CAAC;YACJ,OAAO,IAAA,mCAAgB,EAAC,QAAQ,CAAC,CAAC;QACpC,KAAK,CAAC;YACJ,OAAO;YACL,sDAAsD;aACvD,CAAC;QACJ;YACE,OAAO,EAAE,CAAC;KACb;AACH,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare const getInitialFormState:
|
|
1
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
2
|
+
export declare const getInitialFormState: (step: number, localStorageData: Record<string, any> | null) => FormState;
|
|
@@ -1,30 +1,25 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.getInitialFormState = void 0;
|
|
3
3
|
const formStateMap_1 = require("./formStateMap");
|
|
4
|
-
const getInitialFormState = (step, localStorageData) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
4
|
+
const getInitialFormState = (step, localStorageData) => ({
|
|
5
|
+
...formStateMap_1.formStateMap[step],
|
|
6
|
+
...localStorageData,
|
|
7
|
+
birthday: transformStringToData(localStorageData?.birthday),
|
|
8
|
+
dulIssueDateField: transformStringToData(localStorageData?.dulIssueDateField),
|
|
9
|
+
participantDateRegistration: transformStringToData(localStorageData?.participantDateRegistration),
|
|
10
|
+
beginDate: transformStringToData(localStorageData?.beginDate),
|
|
11
|
+
deliveryDate: transformStringToData(localStorageData?.deliveryDate),
|
|
12
|
+
});
|
|
13
|
+
exports.getInitialFormState = getInitialFormState;
|
|
14
|
+
const transformStringToData = (text) => {
|
|
15
|
+
if (!text) {
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
18
|
+
try {
|
|
19
|
+
return new Date(text);
|
|
20
|
+
}
|
|
21
|
+
catch (_) {
|
|
22
|
+
return undefined;
|
|
23
23
|
}
|
|
24
|
-
return {
|
|
25
|
-
...formStateMap_1.formStateMap[step],
|
|
26
|
-
...localStorageData,
|
|
27
|
-
};
|
|
28
24
|
};
|
|
29
|
-
exports.getInitialFormState = getInitialFormState;
|
|
30
25
|
//# sourceMappingURL=getInitialFormState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/getInitialFormState.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/getInitialFormState.tsx"],"names":[],"mappings":";;AACA,iDAA8C;AAEvC,MAAM,mBAAmB,GAAG,CACjC,IAAY,EACZ,gBAA4C,EACjC,EAAE,CAAC,CAAC;IACf,GAAG,2BAAY,CAAC,IAAI,CAAC;IACrB,GAAG,gBAAgB;IACnB,QAAQ,EAAE,qBAAqB,CAAC,gBAAgB,EAAE,QAAkB,CAAC;IACrE,iBAAiB,EAAE,qBAAqB,CAAC,gBAAgB,EAAE,iBAA2B,CAAC;IACvF,2BAA2B,EAAE,qBAAqB,CAChD,gBAAgB,EAAE,2BAAqC,CACxD;IACD,SAAS,EAAE,qBAAqB,CAAC,gBAAgB,EAAE,SAAmB,CAAC;IACvE,YAAY,EAAE,qBAAqB,CAAC,gBAAgB,EAAE,YAAsB,CAAC;CAC9E,CAAC,CAAC;AAbU,QAAA,mBAAmB,uBAa7B;AAEH,MAAM,qBAAqB,GAAG,CAAC,IAAa,EAAE,EAAE;IAC9C,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,SAAS,CAAC;KAClB;IAED,IAAI;QACF,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;KACvB;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,SAAS,CAAC;KAClB;AACH,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
3
|
-
|
|
4
|
-
export declare const renderInfo: (state?: FormStateDeliveryType, inputs?: FieldDef[]) => JSX.Element[] | null;
|
|
3
|
+
export declare const renderInfo: (inputs?: FieldDef[]) => JSX.Element[] | null;
|
|
@@ -2,12 +2,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.renderInfo = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const InfoCard_1 = require("../../ui-kit/InfoCard/InfoCard");
|
|
5
|
-
const
|
|
6
|
-
const renderInfo = (state, inputs = []) => {
|
|
5
|
+
const renderInfo = (inputs = []) => {
|
|
7
6
|
const infoInputs = inputs.filter((_) => _.fieldType === 'info');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
? filteredInputs.map(({ text, name }, i) => (0, jsx_runtime_1.jsx)(InfoCard_1.InfoCard, { __html: text }, `${name}_${i}`))
|
|
7
|
+
return infoInputs.length
|
|
8
|
+
? infoInputs.map(({ text, name }, i) => (0, jsx_runtime_1.jsx)(InfoCard_1.InfoCard, { __html: text }, `${name}_${i}`))
|
|
11
9
|
: null;
|
|
12
10
|
};
|
|
13
11
|
exports.renderInfo = renderInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderInfo.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/renderInfo.tsx"],"names":[],"mappings":";;;AAAA,6DAA0D;
|
|
1
|
+
{"version":3,"file":"renderInfo.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/renderInfo.tsx"],"names":[],"mappings":";;;AAAA,6DAA0D;AAGnD,MAAM,UAAU,GAAG,CAAC,SAAqB,EAAE,EAAE,EAAE;IACpD,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,MAAM,CAAC,CAAC;IAEhE,OAAO,UAAU,CAAC,MAAM;QACtB,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,uBAAC,mBAAQ,IAAsB,MAAM,EAAE,IAAI,IAA5B,GAAG,IAAI,IAAI,CAAC,EAAE,CAAkB,CAAC;QACxF,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AANW,QAAA,UAAU,cAMrB"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
2
|
+
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
3
|
+
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
4
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
5
|
+
export interface RenderInputsProps {
|
|
6
|
+
inputs: FieldDef[];
|
|
7
|
+
field: FormFieldRegisterer<FormState>;
|
|
8
|
+
}
|
|
3
9
|
export declare const renderInputs: ({ field, inputs }: RenderInputsProps) => (JSX.Element | null)[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.renderInputs = void 0;
|
|
3
3
|
const getField_1 = require("../../ui-kit/FormField/getField");
|
|
4
|
-
const renderInputs = ({ field, inputs }) =>
|
|
4
|
+
const renderInputs = ({ field, inputs }) => inputs.map((0, getField_1.getField)(field, ''));
|
|
5
5
|
exports.renderInputs = renderInputs;
|
|
6
6
|
//# sourceMappingURL=renderInputs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderInputs.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/renderInputs.tsx"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"renderInputs.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/renderInputs.tsx"],"names":[],"mappings":";;AACA,8DAA2D;AASpD,MAAM,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAqB,EAAE,EAAE,CACnE,MAAM,CAAC,GAAG,CAAC,IAAA,mBAAQ,EAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;AADrB,QAAA,YAAY,gBACS"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type FormFieldRegisterer, type FormOperatorProps } from '../../hooks/useForm';
|
|
3
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
4
|
import { type CreditCardSectionsProps } from './CreditCardFormContent';
|
|
4
|
-
|
|
5
|
-
export declare type CustomSubmit = FormOperatorProps<FormStateMap[keyof FormStateMap]>['onSubmit'];
|
|
5
|
+
export declare type CustomSubmit = FormOperatorProps<FormState>['onSubmit'];
|
|
6
6
|
export interface StepProps {
|
|
7
7
|
sections?: CreditCardSectionsProps[];
|
|
8
|
-
field: FormFieldRegisterer<
|
|
8
|
+
field: FormFieldRegisterer<FormState>;
|
|
9
9
|
registerSubmit?: (submit: CustomSubmit) => void;
|
|
10
|
-
|
|
10
|
+
step: number;
|
|
11
11
|
}
|
|
12
|
-
export declare const renderStep: ({ sections, field,
|
|
12
|
+
export declare const renderStep: ({ sections, field, step }: StepProps) => JSX.Element[] | undefined;
|
|
@@ -4,8 +4,14 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const inputColumnStyle_1 = require("../../ui-kit/FormField/inputColumnStyle");
|
|
5
5
|
const renderTitle_1 = require("../../ui-kit/FormField/renderTitle");
|
|
6
6
|
const style_1 = require("../../utils/style");
|
|
7
|
+
const calculateInputs_1 = require("./calculateInputs");
|
|
7
8
|
const renderInfo_1 = require("./renderInfo");
|
|
8
9
|
const renderInputs_1 = require("./renderInputs");
|
|
9
|
-
const renderStep = ({ sections, field,
|
|
10
|
+
const renderStep = ({ sections, field, step }) => sections?.map(({ inputs: origInputs = [], columns, title }, i) => {
|
|
11
|
+
const inputs = (0, calculateInputs_1.calculateInputs)(getValue(field))(origInputs, step);
|
|
12
|
+
const filteredInputs = inputs.filter((_) => !(0, calculateInputs_1.checkCondition)(_, getValue(field)));
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(columns), 'grid gap-x-m'), children: [(0, renderInfo_1.renderInfo)(filteredInputs), (0, renderTitle_1.renderTitle)(title), (0, renderInputs_1.renderInputs)({ field, inputs })] }, `section-${i}`));
|
|
14
|
+
});
|
|
10
15
|
exports.renderStep = renderStep;
|
|
16
|
+
const getValue = (field) => (name) => field(name)?.value;
|
|
11
17
|
//# sourceMappingURL=renderStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderStep.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/renderStep.tsx"],"names":[],"mappings":";;;AACA,8EAA4E;AAC5E,oEAAiE;AACjE,6CAA0C;
|
|
1
|
+
{"version":3,"file":"renderStep.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/renderStep.tsx"],"names":[],"mappings":";;;AACA,8EAA4E;AAC5E,oEAAiE;AACjE,6CAA0C;AAE1C,uDAAmF;AAEnF,6CAA0C;AAC1C,iDAA8C;AAWvC,MAAM,UAAU,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAa,EAAE,EAAE,CACjE,QAAQ,EAAE,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,EAAE;IAC/D,MAAM,MAAM,GAAG,IAAA,iCAAe,EAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAElE,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,gCAAc,EAAC,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAEjF,OAAO,CACL,iCAA0B,SAAS,EAAE,IAAA,aAAK,EAAC,IAAA,oCAAiB,EAAC,OAAO,CAAC,EAAE,cAAc,CAAC,aACnF,IAAA,uBAAU,EAAC,cAAc,CAAC,EAC1B,IAAA,yBAAW,EAAC,KAAK,CAAC,EAClB,IAAA,2BAAY,EAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,KAHxB,WAAW,CAAC,EAAE,CAIlB,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAbQ,QAAA,UAAU,cAalB;AAEL,MAAM,QAAQ,GACZ,CAAC,KAAqC,EAAY,EAAE,CACpD,CAAC,IAAI,EAAE,EAAE,CACP,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
2
|
-
import { type
|
|
2
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
3
|
declare type CreditCardFormApiProps = {
|
|
4
4
|
step: number;
|
|
5
5
|
inputs: FieldDef[];
|
|
@@ -8,6 +8,6 @@ declare type CreditCardFormApiProps = {
|
|
|
8
8
|
finishForm?: (bool: boolean) => void;
|
|
9
9
|
};
|
|
10
10
|
export declare const useCreditCardFormAPI: ({ step, inputs, onNextStep, saveStep, finishForm, }: CreditCardFormApiProps) => {
|
|
11
|
-
handleSubmit: (formData:
|
|
11
|
+
handleSubmit: (formData: FormState) => Promise<void | "OK" | "Fail">;
|
|
12
12
|
};
|
|
13
13
|
export {};
|
|
@@ -6,15 +6,15 @@ const useLocalStorage_1 = require("../../hooks/useLocalStorage");
|
|
|
6
6
|
const getObjectValidator_1 = require("../../ui-kit/FormField/getObjectValidator");
|
|
7
7
|
const objectValidator_1 = require("../../validation/objectValidator");
|
|
8
8
|
const validator_1 = require("../../validation/validator");
|
|
9
|
+
const calculateInputs_1 = require("./calculateInputs");
|
|
9
10
|
const getCreditCardFormTaskData_1 = require("./getCreditCardFormTaskData");
|
|
10
|
-
const getFilteredInputs_1 = require("./getFilteredInputs");
|
|
11
11
|
const useCreditCardFormAPI = ({ step, inputs, onNextStep, saveStep, finishForm, }) => {
|
|
12
12
|
const [taskId] = (0, useLocalStorage_1.useLocalStorage)('taskId');
|
|
13
13
|
const [profileId] = (0, useLocalStorage_1.useLocalStorage)('profileId');
|
|
14
14
|
const [participantId] = (0, useLocalStorage_1.useLocalStorage)('participantId');
|
|
15
15
|
const handleSubmit = (0, hooks_1.useCallback)(async (formData) => {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const feedbackValidator = (0, objectValidator_1.objectValidator)((0, getObjectValidator_1.getObjectValidator)((0, calculateInputs_1.calculateInputs)(getValue(formData))(inputs, step)));
|
|
17
|
+
console.log((0, getObjectValidator_1.getObjectValidator)((0, calculateInputs_1.calculateInputs)(getValue(formData))(inputs, step)));
|
|
18
18
|
if (!(0, validator_1.isValidationSuccess)(feedbackValidator(formData))) {
|
|
19
19
|
return console.warn('validation fail');
|
|
20
20
|
}
|
|
@@ -44,5 +44,5 @@ const useCreditCardFormAPI = ({ step, inputs, onNextStep, saveStep, finishForm,
|
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
exports.useCreditCardFormAPI = useCreditCardFormAPI;
|
|
47
|
-
const
|
|
47
|
+
const getValue = (formData) => (name) => formData[name];
|
|
48
48
|
//# sourceMappingURL=useCreditCardFormAPI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreditCardFormAPI.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/useCreditCardFormAPI.tsx"],"names":[],"mappings":";;AAAA,uDAA0D;AAC1D,uEAAoE;AACpE,iEAA8D;AAC9D,kFAA+E;AAC/E,sEAAmE;AACnE,0DAAiE;AAGjE,
|
|
1
|
+
{"version":3,"file":"useCreditCardFormAPI.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/useCreditCardFormAPI.tsx"],"names":[],"mappings":";;AAAA,uDAA0D;AAC1D,uEAAoE;AACpE,iEAA8D;AAC9D,kFAA+E;AAC/E,sEAAmE;AACnE,0DAAiE;AAGjE,uDAAmE;AACnE,2EAAwE;AAUjE,MAAM,oBAAoB,GAAG,CAAC,EACnC,IAAI,EACJ,MAAM,EACN,UAAU,EACV,QAAQ,EACR,UAAU,GACa,EAAE,EAAE;IAC3B,MAAM,CAAC,MAAM,CAAC,GAAG,IAAA,iCAAe,EAAS,QAAQ,CAAC,CAAC;IACnD,MAAM,CAAC,SAAS,CAAC,GAAG,IAAA,iCAAe,EAAS,WAAW,CAAC,CAAC;IACzD,MAAM,CAAC,aAAa,CAAC,GAAG,IAAA,iCAAe,EAAS,eAAe,CAAC,CAAC;IAEjE,MAAM,YAAY,GAAG,IAAA,mBAAW,EAAC,KAAK,EAAE,QAAmB,EAAE,EAAE;QAC7D,MAAM,iBAAiB,GAAG,IAAA,iCAAe,EACvC,IAAA,uCAAkB,EAAC,IAAA,iCAAe,EAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CACtE,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,IAAA,uCAAkB,EAAC,IAAA,iCAAe,EAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QACnF,IAAI,CAAC,IAAA,+BAAmB,EAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,EAAE;YACrD,OAAO,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;SACxC;QAED,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAEnB,IAAI;YACF,IAAI,MAAM,IAAI,SAAS,IAAI,aAAa,EAAE;gBACxC,MAAM,IAAA,+BAAc,EAClB,IAAA,qDAAyB,EAAC;oBACxB,aAAa;oBACb,MAAM;oBACN,SAAS;oBACT,IAAI;oBACJ,QAAQ,EAAE,QAAe;iBAC1B,CAAC,CACH,CAAC;aACH;SACF;QAAC,OAAO,EAAE,EAAE;YACX,OAAO,MAAM,CAAC;SACf;QAED,UAAU,EAAE,CAAC;QAEb,IAAI,IAAI,KAAK,CAAC,EAAE;YACd,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC;SACpB;QAED,OAAO,IAAI,CAAC;IACd,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACL,YAAY;KACb,CAAC;AACJ,CAAC,CAAC;AAlDW,QAAA,oBAAoB,wBAkD/B;AAEF,MAAM,QAAQ,GACZ,CAAC,QAAmB,EAAY,EAAE,CAClC,CAAC,IAAI,EAAE,EAAE,CACP,QAAQ,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -30,12 +30,10 @@ exports.CreditForm = (0, uni_jsx_1.JSX)(({ className, ...rest }) => {
|
|
|
30
30
|
setStep((_) => Math.max(_ - 1, 0));
|
|
31
31
|
}, []);
|
|
32
32
|
const sections = (0, hooks_1.useMemo)(() => creditFormStepsData_1.stepsSectionsMap[step], [step]);
|
|
33
|
-
const inputs = (sections?.flatMap((_) => _?.inputs) || []);
|
|
34
33
|
const isStartStep = step === 0;
|
|
35
34
|
const [isFormFinished, setIsFormFinished] = (0, hooks_1.useState)(false);
|
|
36
|
-
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('bg-transparent', className), defaultPadding: "p-0", ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container grid grid-cols-12", children: [isStartStep || isFormFinished ? null : ((0, jsx_runtime_1.jsx)(CreditFormProgress_1.CreditFormProgress, { stepsTitles: WIZARD_TITLES, step: step, totalSteps: WIZARD_STEPS })), (0, jsx_runtime_1.jsx)("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: (0, jsx_runtime_1.jsx)(CreditFormStep_1.CreditFormStep, { step: step,
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: (0, style_1.style)('bg-transparent', className), defaultPadding: "p-0", ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: "container grid grid-cols-12", children: [isStartStep || isFormFinished ? null : ((0, jsx_runtime_1.jsx)(CreditFormProgress_1.CreditFormProgress, { stepsTitles: WIZARD_TITLES, step: step, totalSteps: WIZARD_STEPS })), (0, jsx_runtime_1.jsx)("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: (0, jsx_runtime_1.jsx)(CreditFormStep_1.CreditFormStep, { step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep, isFormFinished: isFormFinished, finishForm: setIsFormFinished, renderStep: isStartStep
|
|
37
36
|
? ({ registerSubmit, field }) => ((0, jsx_runtime_1.jsx)(CalculatorCredit_1.CalculatorCredit, { ...{
|
|
38
|
-
// TODO: Remove "as never"
|
|
39
37
|
defaultParams: {
|
|
40
38
|
sum: field('moneyValue').value,
|
|
41
39
|
period: field('monthsValue').value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreditForm.js","sourceRoot":"","sources":["../../../src/components/CreditForm/CreditForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwF;AACxF,+EAA4E;
|
|
1
|
+
{"version":3,"file":"CreditForm.js","sourceRoot":"","sources":["../../../src/components/CreditForm/CreditForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwF;AACxF,+EAA4E;AAC5E,4DAAyD;AAEzD,6CAA0C;AAC1C,2EAAwE;AAExE,6DAA0D;AAC1D,qDAAkD;AAClD,+DAAyD;AAIzD,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,aAAa,GAAG;IACpB,EAAE;IACF,qBAAqB;IACrB,0BAA0B;IAC1B,6BAA6B;IAC7B,yBAAyB;IACzB,iBAAiB;CAClB,CAAC;AAEW,QAAA,UAAU,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC9E,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC;IAEpC,IAAA,iBAAS,EAAC,uCAAkB,EAAE,EAAE,CAAC,CAAC;IAElC,MAAM,cAAc,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACtC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC;IAChD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,cAAc,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACtC,uBAAuB;QACvB,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACrC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,QAAQ,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,sCAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAE/D,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,CAAC;IAC/B,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAE5D,OAAO,CACL,uBAAC,2BAAY,IAAC,SAAS,EAAE,IAAA,aAAK,EAAC,gBAAgB,EAAE,SAAS,CAAC,EAAE,cAAc,EAAC,KAAK,KAAK,IAAI,YACxF,iCAAK,SAAS,EAAC,6BAA6B,aACzC,WAAW,IAAI,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CACtC,uBAAC,uCAAkB,IAAC,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,GAAI,CACzF,EACD,gCAAK,SAAS,EAAC,0CAA0C,YACvD,uBAAC,+BAAc,IAEb,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,cAAc,EAC1B,UAAU,EAAE,cAAc,EAC1B,cAAc,EAAE,cAAc,EAC9B,UAAU,EAAE,iBAAiB,EAC7B,UAAU,EACR,WAAW;4BACT,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC7B,uBAAC,mCAAgB,OACX;oCACF,aAAa,EAAE;wCACb,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,KAAK;wCAC9B,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,KAAK;wCAClC,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,KAAK;qCACpC;oCACD,KAAK,EAAE,qBAAqB;oCAC5B,QAAQ,EACN,wFAAwF;oCAC1F,UAAU,EAAE;wCACV,IAAI,EAAE,6CAA6C;qCACpD;iCACF,EACD,cAAc,EAAE,cAAc,GAC9B,CACH;4BACH,CAAC,CAAC,SAAS,IA3BV,MAAM,CAAC,IAAI,CAAC,CA6BjB,GACE,IACF,GACO,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
2
1
|
import { type TitleProps } from '../../model/HeadlineType';
|
|
3
2
|
import { type InputSectionsType } from '../../model/InputSectionsType';
|
|
4
3
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
5
|
-
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
6
|
-
import { type FormStateMap } from './formStateMap';
|
|
7
4
|
/**
|
|
8
5
|
* @title Форма заявки на потребительский кредит настраиваемая
|
|
9
6
|
*/
|
|
@@ -11,8 +8,3 @@ export declare type CreditFormContent = UniBlockContent & TitleProps & InputSect
|
|
|
11
8
|
/** @title Номер кредитной программы */
|
|
12
9
|
programId?: string;
|
|
13
10
|
};
|
|
14
|
-
/** @hidden */
|
|
15
|
-
export interface RenderInputsProps {
|
|
16
|
-
inputs?: FieldDef[];
|
|
17
|
-
field: FormFieldRegisterer<FormStateMap[keyof FormStateMap]>;
|
|
18
|
-
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type SectionsProps } from '../../model/InputSectionsType';
|
|
3
|
-
import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
|
|
4
3
|
import { type StepProps } from './renderStep';
|
|
5
4
|
export interface CreditFormStepProps {
|
|
6
5
|
step: number;
|
|
7
6
|
sections: SectionsProps[];
|
|
8
|
-
inputs: FieldDef[];
|
|
9
7
|
onNextStep: () => void;
|
|
10
8
|
onPrevStep: () => void;
|
|
11
9
|
renderStep?: (props: StepProps) => JSX.Element | JSX.Element[] | undefined;
|
|
@@ -10,10 +10,11 @@ const getInitialFormState_1 = require("./getInitialFormState");
|
|
|
10
10
|
const renderStep_1 = require("./renderStep");
|
|
11
11
|
const StepsNavigationButtons_1 = require("./StepsNavigationButtons");
|
|
12
12
|
const useCreditFormAPI_1 = require("./useCreditFormAPI");
|
|
13
|
-
exports.CreditFormStep = (0, uni_jsx_1.JSX)(({ step, sections, onPrevStep, onNextStep,
|
|
13
|
+
exports.CreditFormStep = (0, uni_jsx_1.JSX)(({ step, sections, onPrevStep, onNextStep, renderStep = renderStep_1.renderStep, isFormFinished, finishForm, }) => {
|
|
14
14
|
const [localStorageData, saveStep] = (0, useLocalStorage_1.useLocalStorage)('leadForm');
|
|
15
15
|
const initialState = (0, getInitialFormState_1.getInitialFormState)(step, localStorageData);
|
|
16
16
|
const customSubmit = (0, hooks_1.useRef)(undefined);
|
|
17
|
+
const inputs = (sections?.flatMap((_) => _?.inputs) || []);
|
|
17
18
|
const registerSubmit = (0, hooks_1.useCallback)((submit) => {
|
|
18
19
|
customSubmit.current = submit;
|
|
19
20
|
}, []);
|
|
@@ -29,6 +30,6 @@ exports.CreditFormStep = (0, uni_jsx_1.JSX)(({ step, sections, onPrevStep, onNex
|
|
|
29
30
|
handleSubmit({ ...formData, ...customSubmit.current?.(ev) });
|
|
30
31
|
},
|
|
31
32
|
});
|
|
32
|
-
return isFormFinished ? ((0, jsx_runtime_1.jsx)(CreditFormStatusTracker_1.CreditFormStatusTracker, {})) : ((0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "space-y-m", children: [renderStep({ sections, field, registerSubmit }), (0, jsx_runtime_1.jsx)(StepsNavigationButtons_1.StepsNavigationButtons, { step: step, onPrevStep: onPrevStep })] }));
|
|
33
|
+
return isFormFinished ? ((0, jsx_runtime_1.jsx)(CreditFormStatusTracker_1.CreditFormStatusTracker, {})) : ((0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "space-y-m", children: [renderStep({ sections, field, step, registerSubmit }), (0, jsx_runtime_1.jsx)(StepsNavigationButtons_1.StepsNavigationButtons, { step: step, onPrevStep: onPrevStep })] }));
|
|
33
34
|
});
|
|
34
35
|
//# sourceMappingURL=CreditFormStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreditFormStep.js","sourceRoot":"","sources":["../../../src/components/CreditForm/CreditFormStep.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAClE,iDAA8C;AAC9C,iEAA8D;
|
|
1
|
+
{"version":3,"file":"CreditFormStep.js","sourceRoot":"","sources":["../../../src/components/CreditForm/CreditFormStep.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAkE;AAClE,iDAA8C;AAC9C,iEAA8D;AAI9D,uEAAoE;AACpE,+DAA4D;AAC5D,6CAAkG;AAClG,qEAAkE;AAClE,yDAAsD;AAYzC,QAAA,cAAc,GAAG,IAAA,aAAG,EAC/B,CAAC,EACC,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,GAAG,uBAAiB,EAC9B,cAAc,EACd,UAAU,GACX,EAAE,EAAE;IACH,MAAM,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GAAG,IAAA,iCAAe,EAAsB,UAAU,CAAC,CAAC;IACtF,MAAM,YAAY,GAAG,IAAA,yCAAmB,EAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;IAEjE,MAAM,YAAY,GAAG,IAAA,cAAM,EAA2B,SAAS,CAAC,CAAC;IAEjE,MAAM,MAAM,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAgB,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,CAAe,CAAC;IAExF,MAAM,cAAc,GAAG,IAAA,mBAAW,EAAC,CAAC,MAAqB,EAAE,EAAE;QAC3D,YAAY,CAAC,OAAO,GAAG,MAAM,CAAC;IAChC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,mCAAgB,EAAC;QACxC,IAAI;QACJ,MAAM;QACN,UAAU;QACV,QAAQ;QACR,UAAU;KACX,CAAC,CAAC;IAEH,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,YAAY,EAAE;QACpD,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,EAAE,EAAE;YACzB,YAAY,CAAC,EAAE,GAAG,QAAQ,EAAE,GAAG,YAAY,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,EAAe,CAAC,CAAC;QAC5E,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,cAAc,CAAC,CAAC,CAAC,CACtB,uBAAC,iDAAuB,KAAG,CAC5B,CAAC,CAAC,CAAC,CACF,kCAAM,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAC,WAAW,aAC5C,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,EACtD,uBAAC,+CAAsB,IAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,GAAI,IACzD,CACR,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type FieldDef } from '../ApplicationForm/ApplicationFormContent';
|
|
2
|
+
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
|
+
export declare type GetValue = <K extends keyof FormState>(name: K) => FormState[K];
|
|
4
|
+
export declare const calculateInputs: (getValue: GetValue) => (inputs: FieldDef[], step: number) => FieldDef[];
|
|
5
|
+
export declare const checkCondition: ({ condition }: FieldDef, getValue: GetValue) => boolean | undefined;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.checkCondition = exports.calculateInputs = void 0;
|
|
3
|
+
const calculateInputs = (getValue) => (inputs, step) => inputs
|
|
4
|
+
.filter((_) => _)
|
|
5
|
+
.map((_) => {
|
|
6
|
+
if ([
|
|
7
|
+
checkIsRetiree(step, getValue),
|
|
8
|
+
checkBusinessOwner(_, getValue),
|
|
9
|
+
checkConsentPfrFlg(_, getValue),
|
|
10
|
+
checkAddressFillFromESIA(_, getValue),
|
|
11
|
+
(0, exports.checkCondition)(_, getValue),
|
|
12
|
+
].some(Boolean)) {
|
|
13
|
+
return { ..._, required: false };
|
|
14
|
+
}
|
|
15
|
+
return _;
|
|
16
|
+
});
|
|
17
|
+
exports.calculateInputs = calculateInputs;
|
|
18
|
+
const checkIsRetiree = (step, getValue) => step === 2 && getValue('employment')?.key === 'RETIREE';
|
|
19
|
+
const checkBusinessOwner = ({ name }, getValue) => name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
|
|
20
|
+
const checkConsentPfrFlg = ({ name }, getValue) => name === 'snils' && !getValue('consentPfrFlg');
|
|
21
|
+
const checkAddressFillFromESIA = ({ name, filledByEsia }, getValue) => name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
|
|
22
|
+
const checkCondition = ({ condition }, getValue) => condition?.name &&
|
|
23
|
+
condition?.values?.some((_) => {
|
|
24
|
+
const dataValue = getValue(condition?.name);
|
|
25
|
+
return _ !== (dataValue?.key ?? dataValue);
|
|
26
|
+
});
|
|
27
|
+
exports.checkCondition = checkCondition;
|
|
28
|
+
//# sourceMappingURL=calculateInputs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculateInputs.js","sourceRoot":"","sources":["../../../src/components/CreditForm/calculateInputs.ts"],"names":[],"mappings":";;AAMO,MAAM,eAAe,GAAG,CAAC,QAAkB,EAAE,EAAE,CAAC,CAAC,MAAkB,EAAE,IAAY,EAAE,EAAE,CAC1F,MAAM;KACH,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;KAChB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;IACT,IACE;QACE,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC;QAC9B,kBAAkB,CAAC,CAAC,EAAE,QAAQ,CAAC;QAC/B,kBAAkB,CAAC,CAAC,EAAE,QAAQ,CAAC;QAC/B,wBAAwB,CAAC,CAAC,EAAE,QAAQ,CAAC;QACrC,IAAA,sBAAc,EAAC,CAAC,EAAE,QAAQ,CAAC;KAC5B,CAAC,IAAI,CAAC,OAAO,CAAC,EACf;QACA,OAAO,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;KAClC;IAED,OAAO,CAAC,CAAC;AACX,CAAC,CAAC,CAAC;AAjBM,QAAA,eAAe,mBAiBrB;AAEP,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,QAAkB,EAAE,EAAE,CAC1D,IAAI,KAAK,CAAC,IAAI,QAAQ,CAAC,YAAY,CAAC,EAAE,GAAG,KAAK,SAAS,CAAC;AAE1D,MAAM,kBAAkB,GAAG,CAAC,EAAE,IAAI,EAAY,EAAE,QAAkB,EAAE,EAAE,CACpE,IAAI,KAAK,gBAAgB,IAAI,QAAQ,CAAC,sBAAsB,CAAC,EAAE,GAAG,KAAK,gBAAgB,CAAC;AAE1F,MAAM,kBAAkB,GAAG,CAAC,EAAE,IAAI,EAAY,EAAE,QAAkB,EAAE,EAAE,CACpE,IAAI,KAAK,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEjD,MAAM,wBAAwB,GAAG,CAAC,EAAE,IAAI,EAAE,YAAY,EAAY,EAAE,QAAkB,EAAE,EAAE,CACxF,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,IAAI,QAAQ,CAAC,mBAAmB,CAAC,EAAE,GAAG,IAAI,YAAY,CAAC;AAE7E,MAAM,cAAc,GAAG,CAAC,EAAE,SAAS,EAAY,EAAE,QAAkB,EAAE,EAAE,CAC5E,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QAC5B,MAAM,SAAS,GAAG,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAE5C,OAAO,CAAC,KAAK,CAAE,SAAoB,EAAE,GAAG,IAAI,SAAS,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;AANQ,QAAA,cAAc,kBAMtB"}
|
|
@@ -22,8 +22,8 @@ exports.stepsSectionsMap = [
|
|
|
22
22
|
{ fieldType: 'common', name: 'middleName', dadata: true, filledByEsia: true },
|
|
23
23
|
{ fieldType: 'common', name: 'sex', required: true },
|
|
24
24
|
{ fieldType: 'common', name: 'birthday', required: true, filledByEsia: true },
|
|
25
|
-
{ fieldType: 'common', name: 'birthPlace', required: true },
|
|
26
|
-
{ fieldType: 'common', name: 'phone', required: true },
|
|
25
|
+
{ fieldType: 'common', name: 'birthPlace', required: true, filledByEsia: true },
|
|
26
|
+
{ fieldType: 'common', name: 'phone', required: true, filledByEsia: true },
|
|
27
27
|
{ fieldType: 'common', name: 'email', required: true, dadata: true },
|
|
28
28
|
],
|
|
29
29
|
},
|