@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
package/bundle/bundle.umd.js
CHANGED
|
@@ -1562,6 +1562,9 @@
|
|
|
1562
1562
|
|
|
1563
1563
|
const ERROR_MESSAGE = 'Некорректно заполненное поле';
|
|
1564
1564
|
const ADDRESS_ERROR_MESSAGE = 'Укажите регион, город/населенный пункт, улицу, дом';
|
|
1565
|
+
const MIN_AGE = 23;
|
|
1566
|
+
const MAX_AGE = 75;
|
|
1567
|
+
const AGE_ERROR_MESSAGE = 'Допустимый возраст заёмщика - от 23 до 75 лет';
|
|
1565
1568
|
const defaultValidator = (errorMsg) => required(errorMsg ?? ERROR_MESSAGE);
|
|
1566
1569
|
const defaultSelectValidator = (errorMsg) => validator((_) => _?.key && _?.key !== '')(errorMsg ?? ERROR_MESSAGE);
|
|
1567
1570
|
const jobNumberValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length > 0 && _.length <= 2)(errorMsg ?? ERROR_MESSAGE);
|
|
@@ -1598,6 +1601,16 @@
|
|
|
1598
1601
|
const codeWordValidator = (errorMsg) => validator((_) => typeof _ === 'string' && _.length >= 3 && _.length <= 21 && isCyrillic(_))(errorMsg ?? ERROR_MESSAGE);
|
|
1599
1602
|
const cyrillicPattern = /^[\u0400-\u04FF\d]+$/u;
|
|
1600
1603
|
const isCyrillic = (_ = '') => cyrillicPattern.test(_);
|
|
1604
|
+
const limitedBirthdayValidate = (date) => {
|
|
1605
|
+
const today = new Date();
|
|
1606
|
+
const minDate = new Date(today.getFullYear() - MIN_AGE, today.getMonth(), today.getDate());
|
|
1607
|
+
const maxDate = new Date(today.getFullYear() - MAX_AGE, today.getMonth(), today.getDate());
|
|
1608
|
+
if (!date || date > minDate || date < maxDate) {
|
|
1609
|
+
return false;
|
|
1610
|
+
}
|
|
1611
|
+
return true;
|
|
1612
|
+
};
|
|
1613
|
+
const limitedBirthdayValidator = () => validator(limitedBirthdayValidate)(AGE_ERROR_MESSAGE);
|
|
1601
1614
|
|
|
1602
1615
|
const validatorObj = {
|
|
1603
1616
|
typeForm: defaultValidator(),
|
|
@@ -1610,6 +1623,7 @@
|
|
|
1610
1623
|
secondaryPhone: phoneValidator('Укажите номер телефона'),
|
|
1611
1624
|
organizationPhone: phoneValidator('Укажите номер телефона'),
|
|
1612
1625
|
birthday: defaultValidator('Укажите дату рождения'),
|
|
1626
|
+
limitedBirthday: limitedBirthdayValidator(),
|
|
1613
1627
|
birthPlace: defaultValidator('Укажите место рождения'),
|
|
1614
1628
|
education: defaultValidator('Выберите ваше образование'),
|
|
1615
1629
|
housing: defaultValidator('Выберите тип жилья'),
|
|
@@ -3011,26 +3025,10 @@
|
|
|
3011
3025
|
|
|
3012
3026
|
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 })));
|
|
3013
3027
|
|
|
3014
|
-
const
|
|
3015
|
-
const MAX_AGE = 75;
|
|
3016
|
-
const AGE_ERROR_MESSAGE = 'Допустимый возраст заёмщика - от 23 до 75 лет';
|
|
3017
|
-
const FIELD_NAME$8 = 'birthday';
|
|
3018
|
-
const BirthdayField = JSX(({ field, input, isRetailForm = false }) => {
|
|
3019
|
-
const { value } = field(FIELD_NAME$8);
|
|
3020
|
-
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) }));
|
|
3021
|
-
});
|
|
3022
|
-
const birthdayValidate = (date) => {
|
|
3023
|
-
const today = new Date();
|
|
3024
|
-
const minDate = new Date(today.getFullYear() - MIN_AGE, today.getMonth(), today.getDate());
|
|
3025
|
-
const maxDate = new Date(today.getFullYear() - MAX_AGE, today.getMonth(), today.getDate());
|
|
3026
|
-
if (!date || date > minDate || date < maxDate) {
|
|
3027
|
-
return false;
|
|
3028
|
-
}
|
|
3029
|
-
return true;
|
|
3030
|
-
};
|
|
3028
|
+
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) })));
|
|
3031
3029
|
|
|
3032
|
-
const FIELD_NAME$
|
|
3033
|
-
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$
|
|
3030
|
+
const FIELD_NAME$9 = 'birthPlace';
|
|
3031
|
+
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) })));
|
|
3034
3032
|
|
|
3035
3033
|
const getCardTypes = async (paymentSystemType) => {
|
|
3036
3034
|
const response = await doRequest('/dictionaryFiltered', 'POST', {
|
|
@@ -3162,30 +3160,30 @@
|
|
|
3162
3160
|
|
|
3163
3161
|
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) })));
|
|
3164
3162
|
|
|
3165
|
-
const FIELD_NAME$
|
|
3166
|
-
const DulIssueDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0432\u044B\u0434\u0430\u0447\u0438", ...getValidation(field(FIELD_NAME$
|
|
3163
|
+
const FIELD_NAME$8 = 'dulIssueDateField';
|
|
3164
|
+
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) })));
|
|
3167
3165
|
|
|
3168
|
-
const FIELD_NAME$
|
|
3166
|
+
const FIELD_NAME$7 = 'dulIssuedBy';
|
|
3169
3167
|
const DulIssuedByField = JSX(({ field, input }) => {
|
|
3170
3168
|
const { value: dulSubdivisionCode, onChange: changeDulSubdivisionCode } = field('dulSubdivisionCode');
|
|
3171
3169
|
const onDaDataChange = useCallback((item) => {
|
|
3172
3170
|
changeDulSubdivisionCode?.(item?.data?.code?.replace('-', ''));
|
|
3173
3171
|
}, []);
|
|
3174
|
-
return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3172
|
+
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 }));
|
|
3175
3173
|
});
|
|
3176
3174
|
|
|
3177
|
-
const FIELD_NAME$
|
|
3178
|
-
const DulNumberField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3175
|
+
const FIELD_NAME$6 = 'dulNumber';
|
|
3176
|
+
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) })));
|
|
3179
3177
|
|
|
3180
|
-
const FIELD_NAME$
|
|
3181
|
-
const DulSerieField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3178
|
+
const FIELD_NAME$5 = 'dulSerie';
|
|
3179
|
+
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) })));
|
|
3182
3180
|
|
|
3183
|
-
const FIELD_NAME$
|
|
3181
|
+
const FIELD_NAME$4 = 'dulSubdivisionCode';
|
|
3184
3182
|
const DulSubdivisionCodeField = JSX(({ field, input }) => {
|
|
3185
3183
|
const onDaDataChange = useCallback((item) => {
|
|
3186
3184
|
field?.('dulIssuedBy')?.onChange?.(item?.data?.name);
|
|
3187
3185
|
}, []);
|
|
3188
|
-
return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3186
|
+
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 }));
|
|
3189
3187
|
});
|
|
3190
3188
|
|
|
3191
3189
|
const EducationField = JSX(({ field, input }) => {
|
|
@@ -3279,6 +3277,9 @@
|
|
|
3279
3277
|
|
|
3280
3278
|
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 })));
|
|
3281
3279
|
|
|
3280
|
+
const FIELD_NAME$3 = 'limitedBirthday';
|
|
3281
|
+
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) })));
|
|
3282
|
+
|
|
3282
3283
|
const OUT_SERVICE_BASE_URL = `${API_BASE_URI}/outservice`;
|
|
3283
3284
|
const EMPTY_REGIONS$1 = [];
|
|
3284
3285
|
async function getOutServiceRegions() {
|
|
@@ -3309,8 +3310,16 @@
|
|
|
3309
3310
|
];
|
|
3310
3311
|
const MethodObtainField = JSX(({ field, input }) => (jsx(RadioButtonGroupControl, { orientation: "horizontal", items: METHODS_OF_OBTAIN, ...getValidation(field('methodObtain'), validatorObj.methodObtain, input?.required) })));
|
|
3311
3312
|
|
|
3312
|
-
const FIELD_NAME$
|
|
3313
|
-
const MiddleNameField = JSX(({ field, input }) =>
|
|
3313
|
+
const FIELD_NAME$2 = 'middleName';
|
|
3314
|
+
const MiddleNameField = JSX(({ field, input }) => {
|
|
3315
|
+
const onDaDataChange = useCallback((item) => {
|
|
3316
|
+
const dadataGender = item?.data?.gender;
|
|
3317
|
+
if (dadataGender && dadataGender !== 'UNKNOWN') {
|
|
3318
|
+
field('sex')?.onChange?.(dadataGender.toLowerCase());
|
|
3319
|
+
}
|
|
3320
|
+
}, []);
|
|
3321
|
+
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 }));
|
|
3322
|
+
});
|
|
3314
3323
|
|
|
3315
3324
|
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 })));
|
|
3316
3325
|
|
|
@@ -3336,14 +3345,12 @@
|
|
|
3336
3345
|
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) })));
|
|
3337
3346
|
|
|
3338
3347
|
const MAX_PART = 100;
|
|
3348
|
+
const FIELD_NAME$1 = 'partInBusiness';
|
|
3339
3349
|
const PartInBusinessField = JSX(({ field, input }) => {
|
|
3340
|
-
const
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
};
|
|
3344
|
-
const handleChange = (value) => partInBusinessField?.onChange &&
|
|
3345
|
-
partInBusinessField?.onChange(String(Number(value) > MAX_PART ? MAX_PART : Number(value) || ''));
|
|
3346
|
-
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 }));
|
|
3350
|
+
const onChange = useCallback((value) => {
|
|
3351
|
+
field(FIELD_NAME$1)?.onChange?.(String(Number(value) > MAX_PART ? MAX_PART : Number(value) || ''));
|
|
3352
|
+
}, []);
|
|
3353
|
+
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 }));
|
|
3347
3354
|
});
|
|
3348
3355
|
|
|
3349
3356
|
const PartnerCommentsField = JSX(({ field, input }) => {
|
|
@@ -3535,7 +3542,7 @@
|
|
|
3535
3542
|
const PRODUCT_REF = {
|
|
3536
3543
|
$ref: '/wcms-resources/outservice-productlist.json',
|
|
3537
3544
|
};
|
|
3538
|
-
const getField = (field, typeForm
|
|
3545
|
+
const getField = (field, typeForm) => (input, i) => {
|
|
3539
3546
|
const isPremium = typeForm === 'ULTRASERVICE' || typeForm === 'PREMIUMSERVICE';
|
|
3540
3547
|
const InputsMap = {
|
|
3541
3548
|
surname: jsx(SurnameField, { field: field, input: input }),
|
|
@@ -3558,7 +3565,8 @@
|
|
|
3558
3565
|
comment: jsx(CommentField, { field: field, input: input }),
|
|
3559
3566
|
addressBranch: jsx(AddressBranchField, { field: field, input: input, isPremium: isPremium }),
|
|
3560
3567
|
sex: jsx(SexField, { field: field, input: input }),
|
|
3561
|
-
birthday: jsx(BirthdayField, { field: field, input: input
|
|
3568
|
+
birthday: jsx(BirthdayField, { field: field, input: input }),
|
|
3569
|
+
limitedBirthday: jsx(LimitedBirthdayField, { field: field, input: input }),
|
|
3562
3570
|
birthPlace: jsx(BirthPlaceField, { field: field, input: input }),
|
|
3563
3571
|
desiredMeetingDate: jsx(DesiredMeetingDateField, { field: field, input: input }),
|
|
3564
3572
|
product: jsx(ProductField, { field: field, source: PRODUCT_REF }),
|
|
@@ -3816,9 +3824,9 @@
|
|
|
3816
3824
|
});
|
|
3817
3825
|
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" }) })] }));
|
|
3818
3826
|
|
|
3819
|
-
const renderInputs$2 = ({ field, typeForm = '', inputs
|
|
3827
|
+
const renderInputs$2 = ({ field, typeForm = '', inputs }) => {
|
|
3820
3828
|
const { consentInputs, restInputs } = splitInputs(inputs || []);
|
|
3821
|
-
return consentInputs.length > 2 ? (jsxs("div", { children: [restInputs.map(getField(field, typeForm
|
|
3829
|
+
return consentInputs.length > 2 ? (jsxs("div", { children: [restInputs.map(getField(field, typeForm)), jsx(GroupedConsents, { inputs: consentInputs, field: field })] })) : ((inputs || [])?.map(getField(field, typeForm)));
|
|
3822
3830
|
};
|
|
3823
3831
|
const splitInputs = (inputs) => ({
|
|
3824
3832
|
consentInputs: inputs?.filter((_) => Object.keys(CONSENTS).includes(_.name || '')) || [],
|
|
@@ -3847,6 +3855,7 @@
|
|
|
3847
3855
|
serviceDirection: SERVICE_DIRECTIONS[0],
|
|
3848
3856
|
vedTypes: VED_TYPES[0],
|
|
3849
3857
|
birthday: undefined,
|
|
3858
|
+
limitedBirthday: undefined,
|
|
3850
3859
|
isClient: false,
|
|
3851
3860
|
onlineCheckout: false,
|
|
3852
3861
|
posTerminal: false,
|
|
@@ -3867,7 +3876,7 @@
|
|
|
3867
3876
|
const getInitialFormState$2 = (inputs, savedForm, typeForm = '') => {
|
|
3868
3877
|
if (savedForm) {
|
|
3869
3878
|
const formStateCopy = { ...savedForm };
|
|
3870
|
-
formStateCopy.
|
|
3879
|
+
formStateCopy.limitedBirthday = new Date(formStateCopy?.limitedBirthday || 0);
|
|
3871
3880
|
return formStateCopy;
|
|
3872
3881
|
}
|
|
3873
3882
|
const formState = Object.fromEntries(inputs.map((_) => [
|
|
@@ -4305,7 +4314,7 @@
|
|
|
4305
4314
|
}, []);
|
|
4306
4315
|
|
|
4307
4316
|
const getLeadFormTaskData = ({ participantId, taskId, profileId, formData, }) => {
|
|
4308
|
-
const { name, surname, middleName,
|
|
4317
|
+
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
4309
4318
|
return {
|
|
4310
4319
|
sendToBank: true,
|
|
4311
4320
|
taskKind: 'SHORT',
|
|
@@ -4314,7 +4323,7 @@
|
|
|
4314
4323
|
id: taskId,
|
|
4315
4324
|
participants: [
|
|
4316
4325
|
{
|
|
4317
|
-
birthDate:
|
|
4326
|
+
birthDate: limitedBirthday && formatDate(limitedBirthday, true),
|
|
4318
4327
|
id: participantId,
|
|
4319
4328
|
midname: middleName,
|
|
4320
4329
|
name,
|
|
@@ -4433,7 +4442,7 @@
|
|
|
4433
4442
|
name: profile?.name,
|
|
4434
4443
|
surname: profile?.surname,
|
|
4435
4444
|
middleName: profile?.midname,
|
|
4436
|
-
|
|
4445
|
+
limitedBirthday: profile?.birthDate,
|
|
4437
4446
|
phone: normalizePhone(profile?.phone),
|
|
4438
4447
|
email: profile?.email,
|
|
4439
4448
|
dulIssueDateField: document?.dulIssueDate,
|
|
@@ -4537,7 +4546,7 @@
|
|
|
4537
4546
|
reset();
|
|
4538
4547
|
}
|
|
4539
4548
|
}, [responseType]);
|
|
4540
|
-
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
|
|
4549
|
+
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)] }) }));
|
|
4541
4550
|
});
|
|
4542
4551
|
|
|
4543
4552
|
const InfoCard = JSX(({ __html, icon = 'InfoCircleIcon', iconVersion = 'black', link }) => (jsxs("div", { className: "flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m", children: [jsx("div", { className: "rounded-full bg-white p-xs", children: jsx(Icon, { name: icon, width: "24", height: "24", iconVersion: iconVersion }) }), jsxs("div", { className: "", children: [jsx(RichText, { __html: __html }), link?.text ? jsx(LinkButton, { className: "text-primary-main", children: link.text }) : null] })] })));
|
|
@@ -6370,7 +6379,7 @@
|
|
|
6370
6379
|
name: '',
|
|
6371
6380
|
middleName: '',
|
|
6372
6381
|
sex: '',
|
|
6373
|
-
|
|
6382
|
+
limitedBirthday: undefined,
|
|
6374
6383
|
birthPlace: '',
|
|
6375
6384
|
phone: '',
|
|
6376
6385
|
email: '',
|
|
@@ -6452,7 +6461,7 @@
|
|
|
6452
6461
|
const getInitialFormState$1 = (step, localStorageData) => ({
|
|
6453
6462
|
...formStateMap$1[step],
|
|
6454
6463
|
...localStorageData,
|
|
6455
|
-
|
|
6464
|
+
limitedBirthday: transformStringToData$1(localStorageData?.limitedBirthday),
|
|
6456
6465
|
dulIssueDateField: transformStringToData$1(localStorageData?.dulIssueDateField),
|
|
6457
6466
|
participantDateRegistration: transformStringToData$1(localStorageData?.participantDateRegistration),
|
|
6458
6467
|
beginDate: transformStringToData$1(localStorageData?.beginDate),
|
|
@@ -6560,9 +6569,9 @@
|
|
|
6560
6569
|
};
|
|
6561
6570
|
|
|
6562
6571
|
const getSecondStepData$1 = (formData) => {
|
|
6563
|
-
const { name, surname, middleName,
|
|
6572
|
+
const { name, surname, middleName, limitedBirthday = '', phone = '', email, sex, birthPlace, dulIssueDateField = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, } = formData;
|
|
6564
6573
|
return {
|
|
6565
|
-
birthDate: formatDate(
|
|
6574
|
+
birthDate: formatDate(limitedBirthday, true),
|
|
6566
6575
|
midname: middleName,
|
|
6567
6576
|
name,
|
|
6568
6577
|
surname,
|
|
@@ -6778,7 +6787,7 @@
|
|
|
6778
6787
|
{ fieldType: 'common', name: 'name', required: true, dadata: true, filledByEsia: true },
|
|
6779
6788
|
{ fieldType: 'common', name: 'middleName', dadata: true, filledByEsia: true },
|
|
6780
6789
|
{ fieldType: 'common', name: 'sex', required: true },
|
|
6781
|
-
{ fieldType: 'common', name: '
|
|
6790
|
+
{ fieldType: 'common', name: 'limitedBirthday', required: true, filledByEsia: true },
|
|
6782
6791
|
{ fieldType: 'common', name: 'birthPlace', required: true },
|
|
6783
6792
|
{ fieldType: 'common', name: 'phone', required: true },
|
|
6784
6793
|
{ fieldType: 'common', name: 'email', required: true, dadata: true },
|
|
@@ -6907,7 +6916,12 @@
|
|
|
6907
6916
|
columns: 2,
|
|
6908
6917
|
inputs: [
|
|
6909
6918
|
{ fieldType: 'common', name: 'positionOrganization', required: false },
|
|
6910
|
-
{
|
|
6919
|
+
{
|
|
6920
|
+
fieldType: 'common',
|
|
6921
|
+
name: 'partInBusiness',
|
|
6922
|
+
required: true,
|
|
6923
|
+
condition: { name: 'positionOrganization', values: ['BUSINESS_OWNER'] },
|
|
6924
|
+
},
|
|
6911
6925
|
],
|
|
6912
6926
|
},
|
|
6913
6927
|
{
|
|
@@ -7256,7 +7270,7 @@
|
|
|
7256
7270
|
name: '',
|
|
7257
7271
|
middleName: '',
|
|
7258
7272
|
sex: '',
|
|
7259
|
-
|
|
7273
|
+
limitedBirthday: undefined,
|
|
7260
7274
|
birthPlace: '',
|
|
7261
7275
|
phone: '',
|
|
7262
7276
|
email: '',
|
|
@@ -7324,7 +7338,7 @@
|
|
|
7324
7338
|
const getInitialFormState = (step, localStorageData) => ({
|
|
7325
7339
|
...formStateMap[step],
|
|
7326
7340
|
...localStorageData,
|
|
7327
|
-
|
|
7341
|
+
limitedBirthday: transformStringToData(localStorageData?.limitedBirthday),
|
|
7328
7342
|
dulIssueDateField: transformStringToData(localStorageData?.dulIssueDateField),
|
|
7329
7343
|
participantDateRegistration: transformStringToData(localStorageData?.participantDateRegistration),
|
|
7330
7344
|
beginDate: transformStringToData(localStorageData?.beginDate),
|
|
@@ -7397,9 +7411,9 @@
|
|
|
7397
7411
|
};
|
|
7398
7412
|
|
|
7399
7413
|
const getFirstStepData = (formData) => {
|
|
7400
|
-
const { name, surname, middleName,
|
|
7414
|
+
const { name, surname, middleName, limitedBirthday = '', phone = '', email, sex, birthPlace, dulIssueDateField = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, } = formData;
|
|
7401
7415
|
return {
|
|
7402
|
-
birthDate: formatDate(
|
|
7416
|
+
birthDate: formatDate(limitedBirthday, true),
|
|
7403
7417
|
midname: middleName,
|
|
7404
7418
|
name,
|
|
7405
7419
|
surname,
|
|
@@ -7621,7 +7635,7 @@
|
|
|
7621
7635
|
{ fieldType: 'common', name: 'name', required: true, dadata: true, filledByEsia: true },
|
|
7622
7636
|
{ fieldType: 'common', name: 'middleName', dadata: true, filledByEsia: true },
|
|
7623
7637
|
{ fieldType: 'common', name: 'sex', required: true },
|
|
7624
|
-
{ fieldType: 'common', name: '
|
|
7638
|
+
{ fieldType: 'common', name: 'limitedBirthday', required: true, filledByEsia: true },
|
|
7625
7639
|
{ fieldType: 'common', name: 'birthPlace', required: true, filledByEsia: true },
|
|
7626
7640
|
{ fieldType: 'common', name: 'phone', required: true, filledByEsia: true },
|
|
7627
7641
|
{ fieldType: 'common', name: 'email', required: true, dadata: true },
|
|
@@ -7750,7 +7764,12 @@
|
|
|
7750
7764
|
columns: 2,
|
|
7751
7765
|
inputs: [
|
|
7752
7766
|
{ fieldType: 'common', name: 'positionOrganization', required: false },
|
|
7753
|
-
{
|
|
7767
|
+
{
|
|
7768
|
+
fieldType: 'common',
|
|
7769
|
+
name: 'partInBusiness',
|
|
7770
|
+
required: true,
|
|
7771
|
+
condition: { name: 'positionOrganization', values: ['BUSINESS_OWNER'] },
|
|
7772
|
+
},
|
|
7754
7773
|
],
|
|
7755
7774
|
},
|
|
7756
7775
|
{
|
|
@@ -10305,7 +10324,7 @@
|
|
|
10305
10324
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10306
10325
|
});
|
|
10307
10326
|
|
|
10308
|
-
const packageVersion = "0.14.
|
|
10327
|
+
const packageVersion = "0.14.678";
|
|
10309
10328
|
|
|
10310
10329
|
exports.Blocks = Blocks;
|
|
10311
10330
|
exports.ContentPage = ContentPage;
|