@redneckz/wildless-cms-uni-blocks 0.14.677 → 0.14.679
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 +79 -60
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/renderInputs.d.ts +1 -5
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
- package/bundle/ui-kit/FormField/Fields/BirthdayField.d.ts +1 -5
- package/bundle/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +2 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/bundle/ui-kit/FormField/getField.d.ts +1 -1
- package/bundle/ui-kit/FormField/validators.d.ts +1 -0
- package/dist/components/ApplicationForm/renderInputs.d.ts +1 -5
- package/dist/components/ApplicationForm/renderInputs.js +2 -2
- package/dist/components/ApplicationForm/renderInputs.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +2 -2
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/pasreEsiaProfile.js +1 -1
- package/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/dist/components/CreditCardForm/creditCardFormStepsData.js +7 -2
- package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/dist/components/CreditCardForm/formStateMap.js +1 -1
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/dist/components/CreditCardForm/getInitialFormState.js +1 -1
- package/dist/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditCardForm/getSecondStepData.js +2 -2
- package/dist/components/CreditCardForm/getSecondStepData.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js +7 -2
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/formStateMap.js +1 -1
- package/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/dist/components/CreditForm/getFirstStepData.js +2 -2
- package/dist/components/CreditForm/getFirstStepData.js.map +1 -1
- package/dist/components/CreditForm/getInitialFormState.js +1 -1
- package/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/BirthdayField.d.ts +1 -5
- package/dist/ui-kit/FormField/Fields/BirthdayField.js +1 -18
- package/dist/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/LimitedBirthdayField.js +11 -0
- package/dist/ui-kit/FormField/Fields/LimitedBirthdayField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/MiddleNameField.js +10 -1
- package/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +6 -7
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/getField.d.ts +1 -1
- package/dist/ui-kit/FormField/getField.js +4 -2
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +1 -0
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/FormField/validators.d.ts +1 -0
- package/dist/ui-kit/FormField/validators.js +15 -1
- package/dist/ui-kit/FormField/validators.js.map +1 -1
- package/lib/components/ApplicationForm/renderInputs.d.ts +1 -5
- package/lib/components/ApplicationForm/renderInputs.js +2 -2
- package/lib/components/ApplicationForm/renderInputs.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +2 -2
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/pasreEsiaProfile.js +1 -1
- package/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/lib/components/CreditCardForm/creditCardFormStepsData.js +7 -2
- package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/lib/components/CreditCardForm/formStateMap.js +1 -1
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/lib/components/CreditCardForm/getInitialFormState.js +1 -1
- package/lib/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditCardForm/getSecondStepData.js +2 -2
- package/lib/components/CreditCardForm/getSecondStepData.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js +7 -2
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/formStateMap.js +1 -1
- package/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/lib/components/CreditForm/getFirstStepData.js +2 -2
- package/lib/components/CreditForm/getFirstStepData.js.map +1 -1
- package/lib/components/CreditForm/getInitialFormState.js +1 -1
- package/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/BirthdayField.d.ts +1 -5
- package/lib/ui-kit/FormField/Fields/BirthdayField.js +1 -18
- package/lib/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/LimitedBirthdayField.js +9 -0
- package/lib/ui-kit/FormField/Fields/LimitedBirthdayField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/MiddleNameField.js +10 -1
- package/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +6 -7
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/getField.d.ts +1 -1
- package/lib/ui-kit/FormField/getField.js +4 -2
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +2 -1
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/FormField/validators.d.ts +1 -0
- package/lib/ui-kit/FormField/validators.js +13 -0
- package/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +79 -60
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/renderInputs.d.ts +1 -5
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
- package/mobile/bundle/ui-kit/FormField/Fields/BirthdayField.d.ts +1 -5
- package/mobile/bundle/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/getField.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/validators.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/renderInputs.d.ts +1 -5
- package/mobile/dist/components/ApplicationForm/renderInputs.js +2 -2
- package/mobile/dist/components/ApplicationForm/renderInputs.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +2 -2
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +7 -2
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getInitialFormState.js +1 -1
- package/mobile/dist/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getSecondStepData.js +2 -2
- package/mobile/dist/components/CreditCardForm/getSecondStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +7 -2
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/formStateMap.js +1 -1
- package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditForm/getFirstStepData.js +2 -2
- package/mobile/dist/components/CreditForm/getFirstStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getInitialFormState.js +1 -1
- package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.d.ts +1 -5
- package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.js +1 -18
- package/mobile/dist/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/LimitedBirthdayField.js +11 -0
- package/mobile/dist/ui-kit/FormField/Fields/LimitedBirthdayField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js +10 -1
- package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +6 -7
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getField.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +4 -2
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +1 -0
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/validators.d.ts +1 -0
- package/mobile/dist/ui-kit/FormField/validators.js +15 -1
- package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderInputs.d.ts +1 -5
- package/mobile/lib/components/ApplicationForm/renderInputs.js +2 -2
- package/mobile/lib/components/ApplicationForm/renderInputs.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +2 -2
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +7 -2
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getInitialFormState.js +1 -1
- package/mobile/lib/components/CreditCardForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getSecondStepData.js +2 -2
- package/mobile/lib/components/CreditCardForm/getSecondStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +7 -2
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/formStateMap.js +1 -1
- package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditForm/getFirstStepData.js +2 -2
- package/mobile/lib/components/CreditForm/getFirstStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getInitialFormState.js +1 -1
- package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.d.ts +1 -5
- package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.js +1 -18
- package/mobile/lib/ui-kit/FormField/Fields/BirthdayField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/LimitedBirthdayField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/LimitedBirthdayField.js +9 -0
- package/mobile/lib/ui-kit/FormField/Fields/LimitedBirthdayField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js +10 -1
- package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +6 -7
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getField.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +4 -2
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +2 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/validators.d.ts +1 -0
- package/mobile/lib/ui-kit/FormField/validators.js +13 -0
- package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/src/components/ApplicationForm/renderInputs.tsx +3 -12
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +1 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +3 -1
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
- package/mobile/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +1 -1
- package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +7 -2
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +1 -1
- package/mobile/src/components/CreditCardForm/getInitialFormState.tsx +1 -1
- package/mobile/src/components/CreditCardForm/getSecondStepData.tsx +2 -2
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +7 -2
- package/mobile/src/components/CreditForm/formStateMap.tsx +1 -1
- package/mobile/src/components/CreditForm/getFirstStepData.tsx +2 -2
- package/mobile/src/components/CreditForm/getInitialFormState.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/BirthdayField.tsx +6 -36
- package/mobile/src/ui-kit/FormField/Fields/LimitedBirthdayField.tsx +16 -0
- package/mobile/src/ui-kit/FormField/Fields/MiddleNameField.tsx +22 -9
- package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +7 -13
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +1 -0
- package/mobile/src/ui-kit/FormField/getField.tsx +4 -3
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +2 -0
- package/mobile/src/ui-kit/FormField/validators.ts +19 -0
- package/package.json +1 -1
- package/src/components/ApplicationForm/renderInputs.tsx +3 -12
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +3 -1
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
- package/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +1 -1
- package/src/components/CreditCardForm/creditCardFormStepsData.tsx +7 -2
- package/src/components/CreditCardForm/formStateMap.tsx +1 -1
- package/src/components/CreditCardForm/getInitialFormState.tsx +1 -1
- package/src/components/CreditCardForm/getSecondStepData.tsx +2 -2
- package/src/components/CreditForm/creditFormStepsData.tsx +7 -2
- package/src/components/CreditForm/formStateMap.tsx +1 -1
- package/src/components/CreditForm/getFirstStepData.tsx +2 -2
- package/src/components/CreditForm/getInitialFormState.tsx +1 -1
- package/src/ui-kit/FormField/Fields/BirthdayField.tsx +6 -36
- package/src/ui-kit/FormField/Fields/LimitedBirthdayField.tsx +16 -0
- package/src/ui-kit/FormField/Fields/MiddleNameField.tsx +22 -9
- package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +7 -13
- package/src/ui-kit/FormField/NameFieldDef.ts +1 -0
- package/src/ui-kit/FormField/getField.tsx +4 -3
- package/src/ui-kit/FormField/getObjectValidator.tsx +2 -0
- package/src/ui-kit/FormField/validators.ts +19 -0
|
@@ -1570,6 +1570,9 @@
|
|
|
1570
1570
|
|
|
1571
1571
|
const ERROR_MESSAGE = 'Некорректно заполненное поле';
|
|
1572
1572
|
const ADDRESS_ERROR_MESSAGE = 'Укажите регион, город/населенный пункт, улицу, дом';
|
|
1573
|
+
const MIN_AGE = 23;
|
|
1574
|
+
const MAX_AGE = 75;
|
|
1575
|
+
const AGE_ERROR_MESSAGE = 'Допустимый возраст заёмщика - от 23 до 75 лет';
|
|
1573
1576
|
const defaultValidator = (errorMsg) => required(errorMsg ?? ERROR_MESSAGE);
|
|
1574
1577
|
const defaultSelectValidator = (errorMsg) => validator((_) => _?.key && _?.key !== '')(errorMsg ?? ERROR_MESSAGE);
|
|
1575
1578
|
const jobNumberValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length > 0 && _.length <= 2)(errorMsg ?? ERROR_MESSAGE);
|
|
@@ -1606,6 +1609,16 @@
|
|
|
1606
1609
|
const codeWordValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length >= 3 && _.length <= 21 && isCyrillic(_))(errorMsg ?? ERROR_MESSAGE);
|
|
1607
1610
|
const cyrillicPattern = /^[\u0400-\u04FF\d]+$/u;
|
|
1608
1611
|
const isCyrillic = (_ = '') => cyrillicPattern.test(_);
|
|
1612
|
+
const limitedBirthdayValidate = (date) => {
|
|
1613
|
+
const today = new Date();
|
|
1614
|
+
const minDate = new Date(today.getFullYear() - MIN_AGE, today.getMonth(), today.getDate());
|
|
1615
|
+
const maxDate = new Date(today.getFullYear() - MAX_AGE, today.getMonth(), today.getDate());
|
|
1616
|
+
if (!date || date > minDate || date < maxDate) {
|
|
1617
|
+
return false;
|
|
1618
|
+
}
|
|
1619
|
+
return true;
|
|
1620
|
+
};
|
|
1621
|
+
const limitedBirthdayValidator = () => validator(limitedBirthdayValidate)(AGE_ERROR_MESSAGE);
|
|
1609
1622
|
|
|
1610
1623
|
const validatorObj = {
|
|
1611
1624
|
typeForm: defaultValidator(),
|
|
@@ -1618,6 +1631,7 @@
|
|
|
1618
1631
|
secondaryPhone: phoneValidator('Укажите номер телефона'),
|
|
1619
1632
|
organizationPhone: phoneValidator('Укажите номер телефона'),
|
|
1620
1633
|
birthday: defaultValidator('Укажите дату рождения'),
|
|
1634
|
+
limitedBirthday: limitedBirthdayValidator(),
|
|
1621
1635
|
birthPlace: defaultValidator('Укажите место рождения'),
|
|
1622
1636
|
education: defaultValidator('Выберите ваше образование'),
|
|
1623
1637
|
housing: defaultValidator('Выберите тип жилья'),
|
|
@@ -3019,26 +3033,10 @@
|
|
|
3019
3033
|
|
|
3020
3034
|
const BeginDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430 \u0440\u0430\u0431\u043E\u0442\u044B \u043D\u0430 \u0442\u0435\u043A\u0443\u0449\u0435\u043C \u043C\u0435\u0441\u0442\u0435", ...getValidation(field('beginDate'), validatorObj.beginDate, input?.required), ...input })));
|
|
3021
3035
|
|
|
3022
|
-
const
|
|
3023
|
-
const MAX_AGE = 75;
|
|
3024
|
-
const AGE_ERROR_MESSAGE = 'Допустимый возраст заёмщика - от 23 до 75 лет';
|
|
3025
|
-
const FIELD_NAME$8 = 'birthday';
|
|
3026
|
-
const BirthdayField = JSX(({ field, input, isRetailForm = false }) => {
|
|
3027
|
-
const { value } = field(FIELD_NAME$8);
|
|
3028
|
-
return (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field(FIELD_NAME$8), validatorObj.birthday, input?.required), error: isRetailForm && value && !birthdayValidate(value) ? AGE_ERROR_MESSAGE : '', disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$8) }));
|
|
3029
|
-
});
|
|
3030
|
-
const birthdayValidate = (date) => {
|
|
3031
|
-
const today = new Date();
|
|
3032
|
-
const minDate = new Date(today.getFullYear() - MIN_AGE, today.getMonth(), today.getDate());
|
|
3033
|
-
const maxDate = new Date(today.getFullYear() - MAX_AGE, today.getMonth(), today.getDate());
|
|
3034
|
-
if (!date || date > minDate || date < maxDate) {
|
|
3035
|
-
return false;
|
|
3036
|
-
}
|
|
3037
|
-
return true;
|
|
3038
|
-
};
|
|
3036
|
+
const BirthdayField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthday'), validatorObj.birthday, input?.required) })));
|
|
3039
3037
|
|
|
3040
|
-
const FIELD_NAME$
|
|
3041
|
-
const BirthPlaceField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041C\u0435\u0441\u0442\u043E \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthPlace'), validatorObj.birthPlace, input?.required), ...input, disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3038
|
+
const FIELD_NAME$9 = 'birthPlace';
|
|
3039
|
+
const BirthPlaceField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041C\u0435\u0441\u0442\u043E \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthPlace'), validatorObj.birthPlace, input?.required), ...input, disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$9) })));
|
|
3042
3040
|
|
|
3043
3041
|
const getCardTypes = async (paymentSystemType) => {
|
|
3044
3042
|
const response = await doRequest('/dictionaryFiltered', 'POST', {
|
|
@@ -3170,30 +3168,30 @@
|
|
|
3170
3168
|
|
|
3171
3169
|
const DisablePeopleFlgField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u0438\u043D\u0432\u0430\u043B\u0438\u0434\u043E\u043C", ...getValidation(field('disablePeopleFlg'), validatorObj.disablePeopleFlg, input?.required) })));
|
|
3172
3170
|
|
|
3173
|
-
const FIELD_NAME$
|
|
3174
|
-
const DulIssueDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0432\u044B\u0434\u0430\u0447\u0438", ...getValidation(field(FIELD_NAME$
|
|
3171
|
+
const FIELD_NAME$8 = 'dulIssueDateField';
|
|
3172
|
+
const DulIssueDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0432\u044B\u0434\u0430\u0447\u0438", ...getValidation(field(FIELD_NAME$8), validatorObj.dulIssueDateField, input?.required), disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$8) })));
|
|
3175
3173
|
|
|
3176
|
-
const FIELD_NAME$
|
|
3174
|
+
const FIELD_NAME$7 = 'dulIssuedBy';
|
|
3177
3175
|
const DulIssuedByField = JSX(({ field, input }) => {
|
|
3178
3176
|
const { value: dulSubdivisionCode, onChange: changeDulSubdivisionCode } = field('dulSubdivisionCode');
|
|
3179
3177
|
const onDaDataChange = useCallback((item) => {
|
|
3180
3178
|
changeDulSubdivisionCode?.(item?.data?.code?.replace('-', ''));
|
|
3181
3179
|
}, []);
|
|
3182
|
-
return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3180
|
+
return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$7), label: "\u041A\u0435\u043C \u0432\u044B\u0434\u0430\u043D", ...input, ...getValidation(field(FIELD_NAME$7), validatorObj.dulIssuedBy, input?.required), onDaDataChange: onDaDataChange, daDataQueryPrefix: dulSubdivisionCode }));
|
|
3183
3181
|
});
|
|
3184
3182
|
|
|
3185
|
-
const FIELD_NAME$
|
|
3186
|
-
const DulNumberField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3183
|
+
const FIELD_NAME$6 = 'dulNumber';
|
|
3184
|
+
const DulNumberField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$6), label: "\u041D\u043E\u043C\u0435\u0440 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", type: "number", maxLength: 6, ...getValidation(field('dulNumber'), validatorObj.dulNumber, input?.required) })));
|
|
3187
3185
|
|
|
3188
|
-
const FIELD_NAME$
|
|
3189
|
-
const DulSerieField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3186
|
+
const FIELD_NAME$5 = 'dulSerie';
|
|
3187
|
+
const DulSerieField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$5), label: "\u0421\u0435\u0440\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", type: "number", maxLength: 4, ...getValidation(field('dulSerie'), validatorObj.dulSerie, input?.required) })));
|
|
3190
3188
|
|
|
3191
|
-
const FIELD_NAME$
|
|
3189
|
+
const FIELD_NAME$4 = 'dulSubdivisionCode';
|
|
3192
3190
|
const DulSubdivisionCodeField = JSX(({ field, input }) => {
|
|
3193
3191
|
const onDaDataChange = useCallback((item) => {
|
|
3194
3192
|
field?.('dulIssuedBy')?.onChange?.(item?.data?.name);
|
|
3195
3193
|
}, []);
|
|
3196
|
-
return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3194
|
+
return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$4), label: "\u041A\u043E\u0434 \u043F\u043E\u0434\u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F", type: "number", maxLength: 6, ...input, ...getValidation(field(FIELD_NAME$4), validatorObj.dulSubdivisionCode, input?.required), onDaDataChange: onDaDataChange }));
|
|
3197
3195
|
});
|
|
3198
3196
|
|
|
3199
3197
|
const EducationField = JSX(({ field, input }) => {
|
|
@@ -3287,6 +3285,9 @@
|
|
|
3287
3285
|
|
|
3288
3286
|
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 })));
|
|
3289
3287
|
|
|
3288
|
+
const FIELD_NAME$3 = 'limitedBirthday';
|
|
3289
|
+
const LimitedBirthdayField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field(FIELD_NAME$3), validatorObj.limitedBirthday, input?.required), disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$3) })));
|
|
3290
|
+
|
|
3290
3291
|
const OUT_SERVICE_BASE_URL = `${API_BASE_URI}/outservice`;
|
|
3291
3292
|
const EMPTY_REGIONS$1 = [];
|
|
3292
3293
|
async function getOutServiceRegions() {
|
|
@@ -3317,8 +3318,16 @@
|
|
|
3317
3318
|
];
|
|
3318
3319
|
const MethodObtainField = JSX(({ field, input }) => (jsx(RadioButtonGroupControl, { orientation: "horizontal", items: METHODS_OF_OBTAIN, ...getValidation(field('methodObtain'), validatorObj.methodObtain, input?.required) })));
|
|
3319
3320
|
|
|
3320
|
-
const FIELD_NAME$
|
|
3321
|
-
const MiddleNameField = JSX(({ field, input }) =>
|
|
3321
|
+
const FIELD_NAME$2 = 'middleName';
|
|
3322
|
+
const MiddleNameField = JSX(({ field, input }) => {
|
|
3323
|
+
const onDaDataChange = useCallback((item) => {
|
|
3324
|
+
const dadataGender = item?.data?.gender;
|
|
3325
|
+
if (dadataGender && dadataGender !== 'UNKNOWN') {
|
|
3326
|
+
field('sex')?.onChange?.(dadataGender.toLowerCase());
|
|
3327
|
+
}
|
|
3328
|
+
}, []);
|
|
3329
|
+
return (jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", maxLength: 60, disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$2), ...getValidation(field(FIELD_NAME$2), validatorObj.middleName, input?.required), ...input, onDaDataChange: onDaDataChange }));
|
|
3330
|
+
});
|
|
3322
3331
|
|
|
3323
3332
|
const NameField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0418\u043C\u044F", maxLength: 60, disabled: input?.filledByEsia && isEsiaAuthorize(field, input.name ?? ''), ...getValidation(field('name'), validatorObj.name, input?.required), ...input })));
|
|
3324
3333
|
|
|
@@ -3344,14 +3353,12 @@
|
|
|
3344
3353
|
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) })));
|
|
3345
3354
|
|
|
3346
3355
|
const MAX_PART = 100;
|
|
3356
|
+
const FIELD_NAME$1 = 'partInBusiness';
|
|
3347
3357
|
const PartInBusinessField = JSX(({ field, input }) => {
|
|
3348
|
-
const
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
};
|
|
3352
|
-
const handleChange = (value) => partInBusinessField?.onChange &&
|
|
3353
|
-
partInBusinessField?.onChange(String(Number(value) > MAX_PART ? MAX_PART : Number(value) || ''));
|
|
3354
|
-
return (jsx(InputControl, { label: "\u0414\u043E\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0432 \u0431\u0438\u0437\u043D\u0435\u0441\u0435", placeholder: "\u0432 %", type: "number", maxLength: 3, ...partInBusinessField, ...input, onChange: handleChange, value: isBusinessOwner ? partInBusinessField?.value : '', disabled: !isBusinessOwner }));
|
|
3358
|
+
const onChange = useCallback((value) => {
|
|
3359
|
+
field(FIELD_NAME$1)?.onChange?.(String(Number(value) > MAX_PART ? MAX_PART : Number(value) || ''));
|
|
3360
|
+
}, []);
|
|
3361
|
+
return (jsx(InputControl, { label: "\u0414\u043E\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0432 \u0431\u0438\u0437\u043D\u0435\u0441\u0435", placeholder: "\u0432 %", type: "number", maxLength: 3, ...getValidation(field(FIELD_NAME$1), validatorObj.partInBusiness, input?.required), ...input, onChange: onChange }));
|
|
3355
3362
|
});
|
|
3356
3363
|
|
|
3357
3364
|
const PartnerCommentsField = JSX(({ field, input }) => {
|
|
@@ -3543,7 +3550,7 @@
|
|
|
3543
3550
|
const PRODUCT_REF = {
|
|
3544
3551
|
$ref: '/wcms-resources/outservice-productlist.json',
|
|
3545
3552
|
};
|
|
3546
|
-
const getField = (field, typeForm
|
|
3553
|
+
const getField = (field, typeForm) => (input, i) => {
|
|
3547
3554
|
const isPremium = typeForm === 'ULTRASERVICE' || typeForm === 'PREMIUMSERVICE';
|
|
3548
3555
|
const InputsMap = {
|
|
3549
3556
|
surname: jsx(SurnameField, { field: field, input: input }),
|
|
@@ -3566,7 +3573,8 @@
|
|
|
3566
3573
|
comment: jsx(CommentField, { field: field, input: input }),
|
|
3567
3574
|
addressBranch: jsx(AddressBranchField, { field: field, input: input, isPremium: isPremium }),
|
|
3568
3575
|
sex: jsx(SexField, { field: field, input: input }),
|
|
3569
|
-
birthday: jsx(BirthdayField, { field: field, input: input
|
|
3576
|
+
birthday: jsx(BirthdayField, { field: field, input: input }),
|
|
3577
|
+
limitedBirthday: jsx(LimitedBirthdayField, { field: field, input: input }),
|
|
3570
3578
|
birthPlace: jsx(BirthPlaceField, { field: field, input: input }),
|
|
3571
3579
|
desiredMeetingDate: jsx(DesiredMeetingDateField, { field: field, input: input }),
|
|
3572
3580
|
product: jsx(ProductField, { field: field, source: PRODUCT_REF }),
|
|
@@ -3824,9 +3832,9 @@
|
|
|
3824
3832
|
});
|
|
3825
3833
|
const renderGeneralCheckbox = (generalCheckBox) => (foldableData) => (jsxs("div", { className: "flex items-start", children: [generalCheckBox, jsx("button", { onClick: foldableData.onToggle, className: "px-m py-2xs", type: "button", children: jsx(Icon, { className: "text-primary-text", name: foldableData.isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" }) })] }));
|
|
3826
3834
|
|
|
3827
|
-
const renderInputs$2 = ({ field, typeForm = '', inputs
|
|
3835
|
+
const renderInputs$2 = ({ field, typeForm = '', inputs }) => {
|
|
3828
3836
|
const { consentInputs, restInputs } = splitInputs(inputs || []);
|
|
3829
|
-
return consentInputs.length > 2 ? (jsxs("div", { children: [restInputs.map(getField(field, typeForm
|
|
3837
|
+
return consentInputs.length > 2 ? (jsxs("div", { children: [restInputs.map(getField(field, typeForm)), jsx(GroupedConsents, { inputs: consentInputs, field: field })] })) : ((inputs || [])?.map(getField(field, typeForm)));
|
|
3830
3838
|
};
|
|
3831
3839
|
const splitInputs = (inputs) => ({
|
|
3832
3840
|
consentInputs: inputs?.filter((_) => Object.keys(CONSENTS).includes(_.name || '')) || [],
|
|
@@ -3855,6 +3863,7 @@
|
|
|
3855
3863
|
serviceDirection: SERVICE_DIRECTIONS[0],
|
|
3856
3864
|
vedTypes: VED_TYPES[0],
|
|
3857
3865
|
birthday: undefined,
|
|
3866
|
+
limitedBirthday: undefined,
|
|
3858
3867
|
isClient: false,
|
|
3859
3868
|
onlineCheckout: false,
|
|
3860
3869
|
posTerminal: false,
|
|
@@ -3875,7 +3884,7 @@
|
|
|
3875
3884
|
const getInitialFormState$2 = (inputs, savedForm, typeForm = '') => {
|
|
3876
3885
|
if (savedForm) {
|
|
3877
3886
|
const formStateCopy = { ...savedForm };
|
|
3878
|
-
formStateCopy.
|
|
3887
|
+
formStateCopy.limitedBirthday = new Date(formStateCopy?.limitedBirthday || 0);
|
|
3879
3888
|
return formStateCopy;
|
|
3880
3889
|
}
|
|
3881
3890
|
const formState = Object.fromEntries(inputs.map((_) => [
|
|
@@ -4313,7 +4322,7 @@
|
|
|
4313
4322
|
}, []);
|
|
4314
4323
|
|
|
4315
4324
|
const getLeadFormTaskData = ({ participantId, taskId, profileId, formData, }) => {
|
|
4316
|
-
const { name, surname, middleName,
|
|
4325
|
+
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
4317
4326
|
return {
|
|
4318
4327
|
sendToBank: true,
|
|
4319
4328
|
taskKind: 'SHORT',
|
|
@@ -4322,7 +4331,7 @@
|
|
|
4322
4331
|
id: taskId,
|
|
4323
4332
|
participants: [
|
|
4324
4333
|
{
|
|
4325
|
-
birthDate:
|
|
4334
|
+
birthDate: limitedBirthday && formatDate(limitedBirthday, true),
|
|
4326
4335
|
id: participantId,
|
|
4327
4336
|
midname: middleName,
|
|
4328
4337
|
name,
|
|
@@ -4441,7 +4450,7 @@
|
|
|
4441
4450
|
name: profile?.name,
|
|
4442
4451
|
surname: profile?.surname,
|
|
4443
4452
|
middleName: profile?.midname,
|
|
4444
|
-
|
|
4453
|
+
limitedBirthday: profile?.birthDate,
|
|
4445
4454
|
phone: normalizePhone(profile?.phone),
|
|
4446
4455
|
email: profile?.email,
|
|
4447
4456
|
dulIssueDateField: document?.dulIssueDate,
|
|
@@ -4545,7 +4554,7 @@
|
|
|
4545
4554
|
reset();
|
|
4546
4555
|
}
|
|
4547
4556
|
}, [responseType]);
|
|
4548
|
-
return (jsx(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: jsxs("form", { onSubmit: onSubmit, className: "space-y-m relative", children: [isLoading ? jsx(Loader, { blur: false }) : null, sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$2({ field, inputs: _?.inputs
|
|
4557
|
+
return (jsx(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: jsxs("form", { onSubmit: onSubmit, className: "space-y-m relative", children: [isLoading ? jsx(Loader, { blur: false }) : null, sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$2({ field, inputs: _?.inputs })] }, `section-${i}`))), renderSubmitButton(button)] }) }));
|
|
4549
4558
|
});
|
|
4550
4559
|
|
|
4551
4560
|
const NotFound = JSX(({ title, description }) => {
|
|
@@ -6350,7 +6359,7 @@
|
|
|
6350
6359
|
name: '',
|
|
6351
6360
|
middleName: '',
|
|
6352
6361
|
sex: '',
|
|
6353
|
-
|
|
6362
|
+
limitedBirthday: undefined,
|
|
6354
6363
|
birthPlace: '',
|
|
6355
6364
|
phone: '',
|
|
6356
6365
|
email: '',
|
|
@@ -6432,7 +6441,7 @@
|
|
|
6432
6441
|
const getInitialFormState$1 = (step, localStorageData) => ({
|
|
6433
6442
|
...formStateMap$1[step],
|
|
6434
6443
|
...localStorageData,
|
|
6435
|
-
|
|
6444
|
+
limitedBirthday: transformStringToData$1(localStorageData?.limitedBirthday),
|
|
6436
6445
|
dulIssueDateField: transformStringToData$1(localStorageData?.dulIssueDateField),
|
|
6437
6446
|
participantDateRegistration: transformStringToData$1(localStorageData?.participantDateRegistration),
|
|
6438
6447
|
beginDate: transformStringToData$1(localStorageData?.beginDate),
|
|
@@ -6540,9 +6549,9 @@
|
|
|
6540
6549
|
};
|
|
6541
6550
|
|
|
6542
6551
|
const getSecondStepData$1 = (formData) => {
|
|
6543
|
-
const { name, surname, middleName,
|
|
6552
|
+
const { name, surname, middleName, limitedBirthday = '', phone = '', email, sex, birthPlace, dulIssueDateField = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, } = formData;
|
|
6544
6553
|
return {
|
|
6545
|
-
birthDate: formatDate(
|
|
6554
|
+
birthDate: formatDate(limitedBirthday, true),
|
|
6546
6555
|
midname: middleName,
|
|
6547
6556
|
name,
|
|
6548
6557
|
surname,
|
|
@@ -6758,7 +6767,7 @@
|
|
|
6758
6767
|
{ fieldType: 'common', name: 'name', required: true, dadata: true, filledByEsia: true },
|
|
6759
6768
|
{ fieldType: 'common', name: 'middleName', dadata: true, filledByEsia: true },
|
|
6760
6769
|
{ fieldType: 'common', name: 'sex', required: true },
|
|
6761
|
-
{ fieldType: 'common', name: '
|
|
6770
|
+
{ fieldType: 'common', name: 'limitedBirthday', required: true, filledByEsia: true },
|
|
6762
6771
|
{ fieldType: 'common', name: 'birthPlace', required: true },
|
|
6763
6772
|
{ fieldType: 'common', name: 'phone', required: true },
|
|
6764
6773
|
{ fieldType: 'common', name: 'email', required: true, dadata: true },
|
|
@@ -6887,7 +6896,12 @@
|
|
|
6887
6896
|
columns: 2,
|
|
6888
6897
|
inputs: [
|
|
6889
6898
|
{ fieldType: 'common', name: 'positionOrganization', required: false },
|
|
6890
|
-
{
|
|
6899
|
+
{
|
|
6900
|
+
fieldType: 'common',
|
|
6901
|
+
name: 'partInBusiness',
|
|
6902
|
+
required: true,
|
|
6903
|
+
condition: { name: 'positionOrganization', values: ['BUSINESS_OWNER'] },
|
|
6904
|
+
},
|
|
6891
6905
|
],
|
|
6892
6906
|
},
|
|
6893
6907
|
{
|
|
@@ -7236,7 +7250,7 @@
|
|
|
7236
7250
|
name: '',
|
|
7237
7251
|
middleName: '',
|
|
7238
7252
|
sex: '',
|
|
7239
|
-
|
|
7253
|
+
limitedBirthday: undefined,
|
|
7240
7254
|
birthPlace: '',
|
|
7241
7255
|
phone: '',
|
|
7242
7256
|
email: '',
|
|
@@ -7304,7 +7318,7 @@
|
|
|
7304
7318
|
const getInitialFormState = (step, localStorageData) => ({
|
|
7305
7319
|
...formStateMap[step],
|
|
7306
7320
|
...localStorageData,
|
|
7307
|
-
|
|
7321
|
+
limitedBirthday: transformStringToData(localStorageData?.limitedBirthday),
|
|
7308
7322
|
dulIssueDateField: transformStringToData(localStorageData?.dulIssueDateField),
|
|
7309
7323
|
participantDateRegistration: transformStringToData(localStorageData?.participantDateRegistration),
|
|
7310
7324
|
beginDate: transformStringToData(localStorageData?.beginDate),
|
|
@@ -7377,9 +7391,9 @@
|
|
|
7377
7391
|
};
|
|
7378
7392
|
|
|
7379
7393
|
const getFirstStepData = (formData) => {
|
|
7380
|
-
const { name, surname, middleName,
|
|
7394
|
+
const { name, surname, middleName, limitedBirthday = '', phone = '', email, sex, birthPlace, dulIssueDateField = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, } = formData;
|
|
7381
7395
|
return {
|
|
7382
|
-
birthDate: formatDate(
|
|
7396
|
+
birthDate: formatDate(limitedBirthday, true),
|
|
7383
7397
|
midname: middleName,
|
|
7384
7398
|
name,
|
|
7385
7399
|
surname,
|
|
@@ -7601,7 +7615,7 @@
|
|
|
7601
7615
|
{ fieldType: 'common', name: 'name', required: true, dadata: true, filledByEsia: true },
|
|
7602
7616
|
{ fieldType: 'common', name: 'middleName', dadata: true, filledByEsia: true },
|
|
7603
7617
|
{ fieldType: 'common', name: 'sex', required: true },
|
|
7604
|
-
{ fieldType: 'common', name: '
|
|
7618
|
+
{ fieldType: 'common', name: 'limitedBirthday', required: true, filledByEsia: true },
|
|
7605
7619
|
{ fieldType: 'common', name: 'birthPlace', required: true, filledByEsia: true },
|
|
7606
7620
|
{ fieldType: 'common', name: 'phone', required: true, filledByEsia: true },
|
|
7607
7621
|
{ fieldType: 'common', name: 'email', required: true, dadata: true },
|
|
@@ -7730,7 +7744,12 @@
|
|
|
7730
7744
|
columns: 2,
|
|
7731
7745
|
inputs: [
|
|
7732
7746
|
{ fieldType: 'common', name: 'positionOrganization', required: false },
|
|
7733
|
-
{
|
|
7747
|
+
{
|
|
7748
|
+
fieldType: 'common',
|
|
7749
|
+
name: 'partInBusiness',
|
|
7750
|
+
required: true,
|
|
7751
|
+
condition: { name: 'positionOrganization', values: ['BUSINESS_OWNER'] },
|
|
7752
|
+
},
|
|
7734
7753
|
],
|
|
7735
7754
|
},
|
|
7736
7755
|
{
|
|
@@ -9919,7 +9938,7 @@
|
|
|
9919
9938
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
9920
9939
|
});
|
|
9921
9940
|
|
|
9922
|
-
const packageVersion = "0.14.
|
|
9941
|
+
const packageVersion = "0.14.678";
|
|
9923
9942
|
|
|
9924
9943
|
exports.Blocks = Blocks;
|
|
9925
9944
|
exports.ContentPage = ContentPage;
|