@redneckz/wildless-cms-uni-blocks 0.14.916 → 0.14.918
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 +160 -121
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -2
- package/bundle/retail/api/getDictionaries.d.ts +2 -0
- package/bundle/retail/components/Fields/BankEmployeeCodeField.d.ts +3 -1
- package/bundle/retail/hooks/useReferalProgramm.d.ts +1 -0
- package/bundle/retail/model/LeadFormState.d.ts +1 -1
- package/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/bundle/retail/utils/getOrganizationParams.d.ts +6 -0
- package/bundle/retail/validator/validators.d.ts +2 -0
- package/bundle/ui-kit/FormField/validators.d.ts +1 -0
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +3 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -2
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +5 -21
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/CreditCardForm/creditCardFormStepsData.js +21 -18
- package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/dist/components/CreditCardForm/formStateMap.js +6 -0
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js +14 -17
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/retail/adaptors/getPersonalInfoData.js +1 -9
- package/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/dist/retail/api/getDictionaries.d.ts +2 -0
- package/dist/retail/api/getDictionaries.js +13 -0
- package/dist/retail/api/getDictionaries.js.map +1 -0
- package/dist/retail/components/DraftDialog/parseDraftTask.js +1 -0
- package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/dist/retail/components/Fields/AmountWorkersField.js +0 -8
- package/dist/retail/components/Fields/AmountWorkersField.js.map +1 -1
- package/dist/retail/components/Fields/BankEmployeeCodeField.d.ts +3 -1
- package/dist/retail/components/Fields/BankEmployeeCodeField.js +17 -2
- package/dist/retail/components/Fields/BankEmployeeCodeField.js.map +1 -1
- package/dist/retail/components/Fields/DaDataInnField.js +21 -8
- package/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/dist/retail/components/Fields/EmployerActivitiesField.js +0 -8
- package/dist/retail/components/Fields/EmployerActivitiesField.js.map +1 -1
- package/dist/retail/components/Fields/EmployerOrganizationField.js +0 -8
- package/dist/retail/components/Fields/EmployerOrganizationField.js.map +1 -1
- package/dist/retail/components/Fields/OrganizationField.js +0 -8
- package/dist/retail/components/Fields/OrganizationField.js.map +1 -1
- package/dist/retail/components/Fields/OrganizationNameField.js +12 -2
- package/dist/retail/components/Fields/OrganizationNameField.js.map +1 -1
- package/dist/retail/content.js +4 -11
- package/dist/retail/content.js.map +1 -1
- package/dist/retail/hooks/useReferalProgramm.d.ts +1 -0
- package/dist/retail/hooks/useReferalProgramm.js +43 -0
- package/dist/retail/hooks/useReferalProgramm.js.map +1 -0
- package/dist/retail/inputs.js +1 -1
- package/dist/retail/inputs.js.map +1 -1
- package/dist/retail/model/LeadFormState.d.ts +1 -1
- package/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/dist/retail/utils/getMainFormStateMap.js +1 -6
- package/dist/retail/utils/getMainFormStateMap.js.map +1 -1
- package/dist/retail/utils/getOrganizationParams.d.ts +6 -0
- package/dist/retail/utils/getOrganizationParams.js +7 -1
- package/dist/retail/utils/getOrganizationParams.js.map +1 -1
- package/dist/retail/utils/updateOrganizationFields.js +2 -0
- package/dist/retail/utils/updateOrganizationFields.js.map +1 -1
- package/dist/retail/validator/getRetailFormValidator.js +2 -0
- package/dist/retail/validator/getRetailFormValidator.js.map +1 -1
- package/dist/retail/validator/validators.d.ts +2 -0
- package/dist/retail/validator/validators.js +6 -1
- package/dist/retail/validator/validators.js.map +1 -1
- package/dist/ui-kit/FormField/validators.d.ts +1 -0
- package/dist/ui-kit/FormField/validators.js +4 -3
- package/dist/ui-kit/FormField/validators.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +3 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -2
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +5 -21
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/CreditCardForm/creditCardFormStepsData.js +21 -18
- package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/lib/components/CreditCardForm/formStateMap.js +6 -0
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js +14 -17
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/retail/adaptors/getPersonalInfoData.js +2 -10
- package/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/lib/retail/api/getDictionaries.d.ts +2 -0
- package/lib/retail/api/getDictionaries.js +10 -0
- package/lib/retail/api/getDictionaries.js.map +1 -0
- package/lib/retail/components/DraftDialog/parseDraftTask.js +1 -0
- package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/lib/retail/components/Fields/AmountWorkersField.js +0 -8
- package/lib/retail/components/Fields/AmountWorkersField.js.map +1 -1
- package/lib/retail/components/Fields/BankEmployeeCodeField.d.ts +3 -1
- package/lib/retail/components/Fields/BankEmployeeCodeField.js +17 -2
- package/lib/retail/components/Fields/BankEmployeeCodeField.js.map +1 -1
- package/lib/retail/components/Fields/DaDataInnField.js +22 -9
- package/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/lib/retail/components/Fields/EmployerActivitiesField.js +0 -8
- package/lib/retail/components/Fields/EmployerActivitiesField.js.map +1 -1
- package/lib/retail/components/Fields/EmployerOrganizationField.js +0 -8
- package/lib/retail/components/Fields/EmployerOrganizationField.js.map +1 -1
- package/lib/retail/components/Fields/OrganizationField.js +0 -8
- package/lib/retail/components/Fields/OrganizationField.js.map +1 -1
- package/lib/retail/components/Fields/OrganizationNameField.js +13 -3
- package/lib/retail/components/Fields/OrganizationNameField.js.map +1 -1
- package/lib/retail/content.js +4 -11
- package/lib/retail/content.js.map +1 -1
- package/lib/retail/hooks/useReferalProgramm.d.ts +1 -0
- package/lib/retail/hooks/useReferalProgramm.js +40 -0
- package/lib/retail/hooks/useReferalProgramm.js.map +1 -0
- package/lib/retail/inputs.js +2 -2
- package/lib/retail/inputs.js.map +1 -1
- package/lib/retail/model/LeadFormState.d.ts +1 -1
- package/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/lib/retail/utils/getMainFormStateMap.js +1 -6
- package/lib/retail/utils/getMainFormStateMap.js.map +1 -1
- package/lib/retail/utils/getOrganizationParams.d.ts +6 -0
- package/lib/retail/utils/getOrganizationParams.js +6 -0
- package/lib/retail/utils/getOrganizationParams.js.map +1 -1
- package/lib/retail/utils/updateOrganizationFields.js +2 -0
- package/lib/retail/utils/updateOrganizationFields.js.map +1 -1
- package/lib/retail/validator/getRetailFormValidator.js +3 -1
- package/lib/retail/validator/getRetailFormValidator.js.map +1 -1
- package/lib/retail/validator/validators.d.ts +2 -0
- package/lib/retail/validator/validators.js +3 -0
- package/lib/retail/validator/validators.js.map +1 -1
- package/lib/ui-kit/FormField/validators.d.ts +1 -0
- package/lib/ui-kit/FormField/validators.js +1 -1
- package/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +160 -121
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -2
- package/mobile/bundle/retail/api/getDictionaries.d.ts +2 -0
- package/mobile/bundle/retail/components/Fields/BankEmployeeCodeField.d.ts +3 -1
- package/mobile/bundle/retail/hooks/useReferalProgramm.d.ts +1 -0
- package/mobile/bundle/retail/model/LeadFormState.d.ts +1 -1
- package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/retail/utils/getOrganizationParams.d.ts +6 -0
- package/mobile/bundle/retail/validator/validators.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/validators.d.ts +1 -0
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +3 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -2
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +5 -21
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +21 -18
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js +6 -0
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +14 -17
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/retail/adaptors/getPersonalInfoData.js +1 -9
- package/mobile/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/dist/retail/api/getDictionaries.d.ts +2 -0
- package/mobile/dist/retail/api/getDictionaries.js +13 -0
- package/mobile/dist/retail/api/getDictionaries.js.map +1 -0
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +1 -0
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/dist/retail/components/Fields/AmountWorkersField.js +0 -8
- package/mobile/dist/retail/components/Fields/AmountWorkersField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/BankEmployeeCodeField.d.ts +3 -1
- package/mobile/dist/retail/components/Fields/BankEmployeeCodeField.js +17 -2
- package/mobile/dist/retail/components/Fields/BankEmployeeCodeField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/DaDataInnField.js +21 -8
- package/mobile/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/EmployerActivitiesField.js +0 -8
- package/mobile/dist/retail/components/Fields/EmployerActivitiesField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/EmployerOrganizationField.js +0 -8
- package/mobile/dist/retail/components/Fields/EmployerOrganizationField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/OrganizationField.js +0 -8
- package/mobile/dist/retail/components/Fields/OrganizationField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/OrganizationNameField.js +12 -2
- package/mobile/dist/retail/components/Fields/OrganizationNameField.js.map +1 -1
- package/mobile/dist/retail/content.js +4 -11
- package/mobile/dist/retail/content.js.map +1 -1
- package/mobile/dist/retail/hooks/useReferalProgramm.d.ts +1 -0
- package/mobile/dist/retail/hooks/useReferalProgramm.js +43 -0
- package/mobile/dist/retail/hooks/useReferalProgramm.js.map +1 -0
- package/mobile/dist/retail/inputs.js +1 -1
- package/mobile/dist/retail/inputs.js.map +1 -1
- package/mobile/dist/retail/model/LeadFormState.d.ts +1 -1
- package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/dist/retail/utils/getMainFormStateMap.js +1 -6
- package/mobile/dist/retail/utils/getMainFormStateMap.js.map +1 -1
- package/mobile/dist/retail/utils/getOrganizationParams.d.ts +6 -0
- package/mobile/dist/retail/utils/getOrganizationParams.js +7 -1
- package/mobile/dist/retail/utils/getOrganizationParams.js.map +1 -1
- package/mobile/dist/retail/utils/updateOrganizationFields.js +2 -0
- package/mobile/dist/retail/utils/updateOrganizationFields.js.map +1 -1
- package/mobile/dist/retail/validator/getRetailFormValidator.js +2 -0
- package/mobile/dist/retail/validator/getRetailFormValidator.js.map +1 -1
- package/mobile/dist/retail/validator/validators.d.ts +2 -0
- package/mobile/dist/retail/validator/validators.js +6 -1
- package/mobile/dist/retail/validator/validators.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/validators.d.ts +1 -0
- package/mobile/dist/ui-kit/FormField/validators.js +4 -3
- package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +3 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -2
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +5 -21
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +21 -18
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js +6 -0
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +14 -17
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/retail/adaptors/getPersonalInfoData.js +2 -10
- package/mobile/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/lib/retail/api/getDictionaries.d.ts +2 -0
- package/mobile/lib/retail/api/getDictionaries.js +10 -0
- package/mobile/lib/retail/api/getDictionaries.js.map +1 -0
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +1 -0
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/lib/retail/components/Fields/AmountWorkersField.js +0 -8
- package/mobile/lib/retail/components/Fields/AmountWorkersField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/BankEmployeeCodeField.d.ts +3 -1
- package/mobile/lib/retail/components/Fields/BankEmployeeCodeField.js +17 -2
- package/mobile/lib/retail/components/Fields/BankEmployeeCodeField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/DaDataInnField.js +22 -9
- package/mobile/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/EmployerActivitiesField.js +0 -8
- package/mobile/lib/retail/components/Fields/EmployerActivitiesField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/EmployerOrganizationField.js +0 -8
- package/mobile/lib/retail/components/Fields/EmployerOrganizationField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/OrganizationField.js +0 -8
- package/mobile/lib/retail/components/Fields/OrganizationField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/OrganizationNameField.js +13 -3
- package/mobile/lib/retail/components/Fields/OrganizationNameField.js.map +1 -1
- package/mobile/lib/retail/content.js +4 -11
- package/mobile/lib/retail/content.js.map +1 -1
- package/mobile/lib/retail/hooks/useReferalProgramm.d.ts +1 -0
- package/mobile/lib/retail/hooks/useReferalProgramm.js +40 -0
- package/mobile/lib/retail/hooks/useReferalProgramm.js.map +1 -0
- package/mobile/lib/retail/inputs.js +2 -2
- package/mobile/lib/retail/inputs.js.map +1 -1
- package/mobile/lib/retail/model/LeadFormState.d.ts +1 -1
- package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/lib/retail/utils/getMainFormStateMap.js +1 -6
- package/mobile/lib/retail/utils/getMainFormStateMap.js.map +1 -1
- package/mobile/lib/retail/utils/getOrganizationParams.d.ts +6 -0
- package/mobile/lib/retail/utils/getOrganizationParams.js +6 -0
- package/mobile/lib/retail/utils/getOrganizationParams.js.map +1 -1
- package/mobile/lib/retail/utils/updateOrganizationFields.js +2 -0
- package/mobile/lib/retail/utils/updateOrganizationFields.js.map +1 -1
- package/mobile/lib/retail/validator/getRetailFormValidator.js +3 -1
- package/mobile/lib/retail/validator/getRetailFormValidator.js.map +1 -1
- package/mobile/lib/retail/validator/validators.d.ts +2 -0
- package/mobile/lib/retail/validator/validators.js +3 -0
- package/mobile/lib/retail/validator/validators.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/validators.d.ts +1 -0
- package/mobile/lib/ui-kit/FormField/validators.js +1 -1
- package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +3 -1
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +6 -32
- package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +21 -18
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +6 -0
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +14 -17
- package/mobile/src/retail/adaptors/getPersonalInfoData.tsx +1 -14
- package/mobile/src/retail/api/getDictionaries.ts +21 -0
- package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +1 -0
- package/mobile/src/retail/components/Fields/AmountWorkersField.tsx +0 -10
- package/mobile/src/retail/components/Fields/BankEmployeeCodeField.tsx +41 -9
- package/mobile/src/retail/components/Fields/DaDataInnField.tsx +28 -10
- package/mobile/src/retail/components/Fields/EmployerActivitiesField.tsx +0 -10
- package/mobile/src/retail/components/Fields/EmployerOrganizationField.tsx +0 -10
- package/mobile/src/retail/components/Fields/OrganizationField.tsx +0 -10
- package/mobile/src/retail/components/Fields/OrganizationNameField.tsx +17 -2
- package/mobile/src/retail/content.tsx +4 -11
- package/mobile/src/retail/hooks/useReferalProgramm.ts +45 -0
- package/mobile/src/retail/inputs.tsx +2 -2
- package/mobile/src/retail/model/LeadFormState.ts +1 -1
- package/mobile/src/retail/model/NameFieldDef.ts +1 -0
- package/mobile/src/retail/utils/getMainFormStateMap.ts +1 -6
- package/mobile/src/retail/utils/getOrganizationParams.ts +7 -0
- package/mobile/src/retail/utils/updateOrganizationFields.ts +2 -0
- package/mobile/src/retail/validator/getRetailFormValidator.ts +4 -0
- package/mobile/src/retail/validator/validators.ts +9 -0
- package/mobile/src/ui-kit/FormField/validators.ts +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +3 -1
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +6 -32
- package/src/components/CreditCardForm/creditCardFormStepsData.tsx +21 -18
- package/src/components/CreditCardForm/formStateMap.tsx +6 -0
- package/src/components/CreditForm/creditFormStepsData.tsx +14 -17
- package/src/retail/adaptors/getPersonalInfoData.tsx +1 -14
- package/src/retail/api/getDictionaries.ts +21 -0
- package/src/retail/components/DraftDialog/parseDraftTask.ts +1 -0
- package/src/retail/components/Fields/AmountWorkersField.tsx +0 -10
- package/src/retail/components/Fields/BankEmployeeCodeField.tsx +41 -9
- package/src/retail/components/Fields/DaDataInnField.tsx +28 -10
- package/src/retail/components/Fields/EmployerActivitiesField.tsx +0 -10
- package/src/retail/components/Fields/EmployerOrganizationField.tsx +0 -10
- package/src/retail/components/Fields/OrganizationField.tsx +0 -10
- package/src/retail/components/Fields/OrganizationNameField.tsx +17 -2
- package/src/retail/content.tsx +4 -11
- package/src/retail/hooks/useReferalProgramm.ts +45 -0
- package/src/retail/inputs.tsx +2 -2
- package/src/retail/model/LeadFormState.ts +1 -1
- package/src/retail/model/NameFieldDef.ts +1 -0
- package/src/retail/utils/getMainFormStateMap.ts +1 -6
- package/src/retail/utils/getOrganizationParams.ts +7 -0
- package/src/retail/utils/updateOrganizationFields.ts +2 -0
- package/src/retail/validator/getRetailFormValidator.ts +4 -0
- package/src/retail/validator/validators.ts +9 -0
- package/src/ui-kit/FormField/validators.ts +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -3040,6 +3040,8 @@
|
|
|
3040
3040
|
}
|
|
3041
3041
|
return false;
|
|
3042
3042
|
});
|
|
3043
|
+
const organizationNameValidator = (isDadataOrganization) => validator((_) => Boolean(_) && Boolean(isDadataOrganization))('Укажите наименование организации');
|
|
3044
|
+
const organizationInnValidator = (isDadataOrganization) => validator((_) => isValidInnLength(_) && Boolean(isDadataOrganization))('Укажите ИНН');
|
|
3043
3045
|
|
|
3044
3046
|
const limitedBirthdayValidationData = {
|
|
3045
3047
|
credit: {
|
|
@@ -4405,19 +4407,28 @@
|
|
|
4405
4407
|
});
|
|
4406
4408
|
|
|
4407
4409
|
const AmountWorkersField = JSX(({ field, input }) => {
|
|
4408
|
-
const { data } = useLeadFormData('EMPLOYEES_NUMBER');
|
|
4409
4410
|
const store = useRetailFormStore();
|
|
4410
|
-
useEffect(() => {
|
|
4411
|
-
if (data) {
|
|
4412
|
-
store.amountWorkers = data;
|
|
4413
|
-
}
|
|
4414
|
-
}, [data]);
|
|
4415
4411
|
return (jsx(SelectField, { field: field, source: store.amountWorkers ?? [], label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0449\u0438\u0445 \u0432 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", fieldName: "amountWorkers", input: input }));
|
|
4416
4412
|
});
|
|
4417
4413
|
|
|
4418
4414
|
const ArmyIdFlgField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u041D\u0430\u043B\u0438\u0447\u0438\u0435 \u0432\u043E\u0435\u043D\u043D\u043E\u0433\u043E \u0431\u0438\u043B\u0435\u0442\u0430", ...field(input?.name ?? '') })));
|
|
4419
4415
|
|
|
4420
|
-
const
|
|
4416
|
+
const RadioButtonGroupControl = JSX(({ className, label, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(RadioButtonGroup, { label: getRequiredLabel({ label, errors: rest?.errors }), ...rest }), renderErrorText(error)] })));
|
|
4417
|
+
|
|
4418
|
+
const BUTTON_TYPES = [
|
|
4419
|
+
{ id: 'true', text: 'Да' },
|
|
4420
|
+
{ id: 'false', text: 'Нет' },
|
|
4421
|
+
];
|
|
4422
|
+
const BankEmployeeCodeField = JSX(({ field, input }) => {
|
|
4423
|
+
const [bankEmployeeFlg, setBankEmployeeFlg] = useState('');
|
|
4424
|
+
const handleBankEmployeeFlgChange = useCallback((value) => {
|
|
4425
|
+
setBankEmployeeFlg(value);
|
|
4426
|
+
if (value === 'false') {
|
|
4427
|
+
field('bankEmployeeCode')?.onChange?.(null);
|
|
4428
|
+
}
|
|
4429
|
+
}, []);
|
|
4430
|
+
return (jsxs("div", { className: "flex flex-col md:flex-row", children: [jsx(RadioButtonGroupControl, { label: "\u041C\u043D\u0435 \u043F\u043E\u043C\u043E\u0433 \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A \u0411\u0430\u043D\u043A\u0430", orientation: "horizontal", items: BUTTON_TYPES, value: bankEmployeeFlg, onChange: handleBankEmployeeFlgChange }), bankEmployeeFlg === 'true' ? (jsx(DaDataInputControl, { label: "\u041A\u043E\u0434 \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044F \u0411\u0430\u043D\u043A\u0430", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434", isInteger: true, maxLength: 8, ...field(input?.name ?? ''), ...input })) : null] }));
|
|
4431
|
+
});
|
|
4421
4432
|
|
|
4422
4433
|
const BankruptcyFlgField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u0412 \u043E\u0442\u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u043C\u0435\u043D\u044F \u0432\u0435\u0434\u0451\u0442\u0441\u044F \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0441\u0442\u0432\u043E \u043F\u043E \u0434\u0435\u043B\u0443 \u043E \u0431\u0430\u043D\u043A\u0440\u043E\u0442\u0441\u0442\u0432\u0435", ...field(input?.name ?? '') })));
|
|
4423
4434
|
|
|
@@ -4882,8 +4893,6 @@
|
|
|
4882
4893
|
47: 'owner_debit_card_pens_plus',
|
|
4883
4894
|
};
|
|
4884
4895
|
|
|
4885
|
-
const RadioButtonGroupControl = JSX(({ className, label, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(RadioButtonGroup, { label: getRequiredLabel({ label, errors: rest?.errors }), ...rest }), renderErrorText(error)] })));
|
|
4886
|
-
|
|
4887
4896
|
const RUBLE = [{ id: '810', text: 'Рубли' }];
|
|
4888
4897
|
const CurrencyField = JSX(({ field, input }) => {
|
|
4889
4898
|
const { data } = useLeadFormData('CURRENCY');
|
|
@@ -4893,6 +4902,15 @@
|
|
|
4893
4902
|
return (jsx(RadioButtonGroupControl, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", orientation: "horizontal", items: currencies, ...field(input?.name ?? '') }));
|
|
4894
4903
|
});
|
|
4895
4904
|
|
|
4905
|
+
const getDictionaries = (dictionaries, store) => {
|
|
4906
|
+
Promise.all(Object.entries(dictionaries).map((dictionary) => {
|
|
4907
|
+
const [fieldName, dictionaryName] = dictionary;
|
|
4908
|
+
fetchRetailJSON(`/dictionary?dictionaryType=${encodeURIComponent(dictionaryName)}`, 'POST').then((res) => {
|
|
4909
|
+
store[fieldName] = res;
|
|
4910
|
+
});
|
|
4911
|
+
}));
|
|
4912
|
+
};
|
|
4913
|
+
|
|
4896
4914
|
const getOrganizationFromInn = async (inn) => {
|
|
4897
4915
|
const res = await getDaDataHints({
|
|
4898
4916
|
url: 'suggest/party',
|
|
@@ -5000,6 +5018,12 @@
|
|
|
5000
5018
|
const getOptionOp = (options) => (key) => options
|
|
5001
5019
|
.map((_) => ({ key: _.key, text: _.value }))
|
|
5002
5020
|
.find((_) => _.key === key) ?? null;
|
|
5021
|
+
const organizationDictionaries = {
|
|
5022
|
+
amountWorkers: 'EMPLOYEES_NUMBER',
|
|
5023
|
+
employerOrganization: 'ORGANIZATION_KIND',
|
|
5024
|
+
employerActivities: 'ORGANIZATION_ACTIVITY_TYPE',
|
|
5025
|
+
organization: 'ORGANIZATION_TYPE',
|
|
5026
|
+
};
|
|
5003
5027
|
|
|
5004
5028
|
const updateOrganizationFields = (store, field, item) => {
|
|
5005
5029
|
const { okved, okopf, inn, organizationName } = getOrganizationRequisites(item);
|
|
@@ -5011,6 +5035,8 @@
|
|
|
5011
5035
|
organization: getOrganizationType(store?.organization ?? [], okopf, inn),
|
|
5012
5036
|
employerOrganization: getOrganizationKind(store?.employerOrganization ?? [], okopf),
|
|
5013
5037
|
organizationName,
|
|
5038
|
+
inn,
|
|
5039
|
+
isDadataOrganization: true,
|
|
5014
5040
|
};
|
|
5015
5041
|
for (const fieldName in organizationData) {
|
|
5016
5042
|
field?.(fieldName)?.onChange?.(organizationData[fieldName]);
|
|
@@ -5023,14 +5049,26 @@
|
|
|
5023
5049
|
organizationName: item.data?.name?.short_with_opf ?? '',
|
|
5024
5050
|
});
|
|
5025
5051
|
|
|
5052
|
+
const NO_DADATA_ERROR_TEXT$1 = 'Необходимо выбрать ИНН из выпадающего списка';
|
|
5026
5053
|
const DaDataInnField = JSX(({ field, input }) => {
|
|
5027
5054
|
const store = useRetailFormStore();
|
|
5055
|
+
const [errorText, setErrorText] = useState('');
|
|
5028
5056
|
const { employerActivities, employerOrganization, organization, amountWorkers } = store;
|
|
5029
5057
|
const esiaAccountTypeCd = field?.('esiaAccountTypeCd')?.value;
|
|
5030
5058
|
const inn = field?.('inn')?.value;
|
|
5059
|
+
const fieldError = field?.('organizationName')?.error;
|
|
5060
|
+
const isDadataOrganization = field('isDadataOrganization')?.value;
|
|
5061
|
+
useEffect(() => {
|
|
5062
|
+
setErrorText(fieldError && !isDadataOrganization ? NO_DADATA_ERROR_TEXT$1 : '');
|
|
5063
|
+
}, [isDadataOrganization, fieldError]);
|
|
5031
5064
|
const onDaDataChange = useCallback((item) => {
|
|
5032
5065
|
updateOrganizationFields(store, field, item);
|
|
5033
5066
|
}, []);
|
|
5067
|
+
useEffect(() => {
|
|
5068
|
+
(async () => {
|
|
5069
|
+
await getDictionaries(organizationDictionaries, store);
|
|
5070
|
+
})();
|
|
5071
|
+
}, []);
|
|
5034
5072
|
useEffect(() => {
|
|
5035
5073
|
if (!esiaAccountTypeCd || !inn || !isDictionariesAlreadyLoad(store)) {
|
|
5036
5074
|
return;
|
|
@@ -5042,16 +5080,15 @@
|
|
|
5042
5080
|
}
|
|
5043
5081
|
})();
|
|
5044
5082
|
}, [employerActivities, employerOrganization, organization, amountWorkers]);
|
|
5045
|
-
|
|
5083
|
+
const onChange = useCallback((value) => {
|
|
5084
|
+
field?.('inn')?.onChange?.(value);
|
|
5085
|
+
field?.('isDadataOrganization')?.onChange?.(false);
|
|
5086
|
+
}, []);
|
|
5087
|
+
return (jsx(DaDataInputControl, { label: "\u0418\u041D\u041D", isInteger: true, maxLength: 12, ...input, ...field(input?.name ?? ''), onDaDataChange: onDaDataChange, disabled: isEsiaAuthorize(field, input), onChange: onChange, error: errorText || field('inn')?.error }));
|
|
5046
5088
|
});
|
|
5047
5089
|
const isDictionariesAlreadyLoad = (store) => {
|
|
5048
|
-
const { employerActivities, employerOrganization, organization, amountWorkers
|
|
5049
|
-
return [
|
|
5050
|
-
employerOrganization,
|
|
5051
|
-
organization,
|
|
5052
|
-
amountWorkers,
|
|
5053
|
-
productType === 'creditCard' ? employerActivities : true,
|
|
5054
|
-
].every(Boolean);
|
|
5090
|
+
const { employerActivities, employerOrganization, organization, amountWorkers } = store;
|
|
5091
|
+
return [employerOrganization, organization, amountWorkers, employerActivities].every(Boolean);
|
|
5055
5092
|
};
|
|
5056
5093
|
|
|
5057
5094
|
const DeliveryDateFiels = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438", ...field(input?.name ?? ''), minDate: new Date() })));
|
|
@@ -5119,24 +5156,12 @@
|
|
|
5119
5156
|
});
|
|
5120
5157
|
|
|
5121
5158
|
const EmployerActivitiesField = JSX(({ field, input }) => {
|
|
5122
|
-
const { data } = useLeadFormData('ORGANIZATION_ACTIVITY_TYPE');
|
|
5123
5159
|
const store = useRetailFormStore();
|
|
5124
|
-
useEffect(() => {
|
|
5125
|
-
if (data) {
|
|
5126
|
-
store.employerActivities = data;
|
|
5127
|
-
}
|
|
5128
|
-
}, [data]);
|
|
5129
5160
|
return (jsx(SelectField, { field: field, source: store.employerActivities ?? [], label: "\u0412\u0438\u0434 \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438-\u0440\u0430\u0431\u043E\u0442\u043E\u0434\u0430\u0442\u0435\u043B\u044F", fieldName: "employerActivities", input: input }));
|
|
5130
5161
|
});
|
|
5131
5162
|
|
|
5132
5163
|
const EmployerOrganizationField = JSX(({ field, input }) => {
|
|
5133
|
-
const { data } = useLeadFormData('ORGANIZATION_KIND');
|
|
5134
5164
|
const store = useRetailFormStore();
|
|
5135
|
-
useEffect(() => {
|
|
5136
|
-
if (data) {
|
|
5137
|
-
store.employerOrganization = data;
|
|
5138
|
-
}
|
|
5139
|
-
}, [data]);
|
|
5140
5165
|
return (jsx(SelectField, { field: field, source: store.employerOrganization ?? [], label: "\u0412\u0438\u0434 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0431\u043E\u0442\u043E\u0434\u0430\u0442\u0435\u043B\u044F", fieldName: "employerOrganization", input: input }));
|
|
5141
5166
|
});
|
|
5142
5167
|
|
|
@@ -5340,23 +5365,27 @@
|
|
|
5340
5365
|
});
|
|
5341
5366
|
|
|
5342
5367
|
const OrganizationField = JSX(({ field, input }) => {
|
|
5343
|
-
const { data } = useLeadFormData('ORGANIZATION_TYPE');
|
|
5344
5368
|
const store = useRetailFormStore();
|
|
5345
|
-
useEffect(() => {
|
|
5346
|
-
if (data) {
|
|
5347
|
-
store.organization = data;
|
|
5348
|
-
}
|
|
5349
|
-
}, [data]);
|
|
5350
5369
|
return (jsx(SelectField, { field: field, source: store.organization ?? [], label: "\u0422\u0438\u043F \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", fieldName: "organization", input: input }));
|
|
5351
5370
|
});
|
|
5352
5371
|
|
|
5372
|
+
const NO_DADATA_ERROR_TEXT = 'Необходимо выбрать организацию из выпадающего списка';
|
|
5353
5373
|
const OrganizationNameField = JSX(({ field, input }) => {
|
|
5354
5374
|
const store = useRetailFormStore();
|
|
5375
|
+
const [errorText, setErrorText] = useState('');
|
|
5376
|
+
const fieldError = field?.('organizationName')?.error;
|
|
5377
|
+
const isDadataOrganization = field('isDadataOrganization')?.value;
|
|
5378
|
+
useEffect(() => {
|
|
5379
|
+
setErrorText(fieldError && !isDadataOrganization ? NO_DADATA_ERROR_TEXT : '');
|
|
5380
|
+
}, [isDadataOrganization, fieldError]);
|
|
5355
5381
|
const onDaDataChange = useCallback((item) => {
|
|
5356
|
-
field?.('inn')?.onChange?.(item.data?.inn);
|
|
5357
5382
|
updateOrganizationFields(store, field, item);
|
|
5358
5383
|
}, []);
|
|
5359
|
-
|
|
5384
|
+
const onChange = useCallback((value) => {
|
|
5385
|
+
field?.('organizationName')?.onChange?.(value);
|
|
5386
|
+
field?.('isDadataOrganization')?.onChange?.(false);
|
|
5387
|
+
}, []);
|
|
5388
|
+
return (jsx(DaDataInputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...input, ...field(input?.name ?? ''), disabled: isEsiaAuthorize(field, input), onDaDataChange: onDaDataChange, onChange: onChange, error: errorText || field('organizationName')?.error }));
|
|
5360
5389
|
});
|
|
5361
5390
|
|
|
5362
5391
|
const OtherIncomeField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u0418\u043D\u044B\u0435 \u0434\u043E\u0445\u043E\u0434\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", isInteger: true, ...field(input?.name ?? ''), ...input })));
|
|
@@ -5561,7 +5590,7 @@
|
|
|
5561
5590
|
shareholderFlg: ShareholderFlgField,
|
|
5562
5591
|
legalEntityName: LegalEntityNameField,
|
|
5563
5592
|
creditInRshbCd: CreditInRshbCdField,
|
|
5564
|
-
bankEmployeeCode:
|
|
5593
|
+
bankEmployeeCode: BankEmployeeCodeField,
|
|
5565
5594
|
partInBusiness: PartInBusinessField,
|
|
5566
5595
|
regionRetail: RegionRetailField,
|
|
5567
5596
|
infoCard: InfoCardField,
|
|
@@ -6115,6 +6144,7 @@
|
|
|
6115
6144
|
employment: getSelectValue(employment, EMPLOYMENT_TYPE),
|
|
6116
6145
|
organizationName,
|
|
6117
6146
|
inn,
|
|
6147
|
+
isDadataOrganization: Boolean(inn),
|
|
6118
6148
|
employerActivities: getSelectValue(employerActivities),
|
|
6119
6149
|
organization: getSelectValue(organization),
|
|
6120
6150
|
employerOrganization: getSelectValue(employerOrganization),
|
|
@@ -6328,6 +6358,7 @@
|
|
|
6328
6358
|
const [ok, setOK] = useState();
|
|
6329
6359
|
const saveUserData = useSaveUserData();
|
|
6330
6360
|
const sessionStore = useSessionStore();
|
|
6361
|
+
const leadFormStore = useLeadFormStore();
|
|
6331
6362
|
const sendAspects = useSendLeadFormAspects({ data });
|
|
6332
6363
|
const navigator = locationNavigator();
|
|
6333
6364
|
const goToNextStep = useCallback(() => {
|
|
@@ -6343,7 +6374,7 @@
|
|
|
6343
6374
|
const profileId = await createUserProfile({
|
|
6344
6375
|
profile: { phone: formatPhone(transformedFormData.phone) },
|
|
6345
6376
|
});
|
|
6346
|
-
const referalData =
|
|
6377
|
+
const referalData = leadFormStore.referalData;
|
|
6347
6378
|
const marketingInfo = sessionStore.marketingInfo;
|
|
6348
6379
|
if (!profileId) {
|
|
6349
6380
|
throw new Error();
|
|
@@ -6540,6 +6571,42 @@
|
|
|
6540
6571
|
return res;
|
|
6541
6572
|
});
|
|
6542
6573
|
|
|
6574
|
+
const useReferalProgramm = () => {
|
|
6575
|
+
const leadFormStore = useLeadFormStore();
|
|
6576
|
+
const aspects = useAspects();
|
|
6577
|
+
useEffect(() => {
|
|
6578
|
+
const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
|
|
6579
|
+
const referalCode = params.get('referalCode');
|
|
6580
|
+
const refererCode = params.get('refererCode');
|
|
6581
|
+
const productId = params.get('productId');
|
|
6582
|
+
if (referalCode) {
|
|
6583
|
+
leadFormStore.referalData = {
|
|
6584
|
+
refererCode,
|
|
6585
|
+
referalCode,
|
|
6586
|
+
productId,
|
|
6587
|
+
};
|
|
6588
|
+
const eventJSON = JSON.stringify({
|
|
6589
|
+
refererCode,
|
|
6590
|
+
referalCode,
|
|
6591
|
+
productId,
|
|
6592
|
+
});
|
|
6593
|
+
handleAspects({
|
|
6594
|
+
aspectsAttributes: [
|
|
6595
|
+
{
|
|
6596
|
+
aspectName: 'snowplowEvent',
|
|
6597
|
+
params: {
|
|
6598
|
+
eventName: 'ownfin_referal_link_attributes',
|
|
6599
|
+
eventJSON,
|
|
6600
|
+
},
|
|
6601
|
+
},
|
|
6602
|
+
],
|
|
6603
|
+
aspects,
|
|
6604
|
+
ev: {},
|
|
6605
|
+
});
|
|
6606
|
+
}
|
|
6607
|
+
}, []);
|
|
6608
|
+
};
|
|
6609
|
+
|
|
6543
6610
|
const initialFormState = {
|
|
6544
6611
|
surname: '',
|
|
6545
6612
|
name: '',
|
|
@@ -6748,6 +6815,7 @@
|
|
|
6748
6815
|
const saveForm = useSetter(leadFormStore, 'leadForm');
|
|
6749
6816
|
const sessionStore = useSessionStore();
|
|
6750
6817
|
const queryFromStorage = globalThis.sessionStorage?.getItem(QUERY_STORAGE_KEY);
|
|
6818
|
+
useReferalProgramm();
|
|
6751
6819
|
const initialFormState = useMemo(() => getInitialFormState$1(inputs, leadFormStore.leadForm, esiaAuthSuccess), [inputs, leadFormStore.leadForm]);
|
|
6752
6820
|
const requestEsiaProfile = useCallback(async (code, state) => {
|
|
6753
6821
|
setEsiaStatus(EsiaStatuses.Pending);
|
|
@@ -6773,15 +6841,7 @@
|
|
|
6773
6841
|
}, []);
|
|
6774
6842
|
useEffect(() => {
|
|
6775
6843
|
leadFormStore.productType = productType;
|
|
6776
|
-
|
|
6777
|
-
if (referalCode) {
|
|
6778
|
-
sessionStore.referalData = {
|
|
6779
|
-
refererCode,
|
|
6780
|
-
referalCode,
|
|
6781
|
-
productId,
|
|
6782
|
-
};
|
|
6783
|
-
}
|
|
6784
|
-
sessionStore.marketingInfo = marketingInfo;
|
|
6844
|
+
sessionStore.marketingInfo = getMarketingInfo(queryFromStorage, sessionStore);
|
|
6785
6845
|
}, [queryFromStorage]);
|
|
6786
6846
|
useEffect(() => {
|
|
6787
6847
|
const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
|
|
@@ -6797,15 +6857,11 @@
|
|
|
6797
6857
|
}, []);
|
|
6798
6858
|
return initialFormState;
|
|
6799
6859
|
};
|
|
6800
|
-
const
|
|
6801
|
-
const referalData = sessionStore.referalData;
|
|
6860
|
+
const getMarketingInfo = (queryFromStorage, sessionStore) => {
|
|
6802
6861
|
const marketingInfoFromStorage = sessionStore.marketingInfo;
|
|
6803
6862
|
const queryStorage = new URLSearchParams(decodeURIComponent(queryFromStorage || ''));
|
|
6804
6863
|
const code = queryStorage.get('code');
|
|
6805
|
-
|
|
6806
|
-
const refererCode = code ? referalData?.refererCode : queryStorage.get('refererCode');
|
|
6807
|
-
const productId = code ? referalData?.productId : queryStorage.get('productId');
|
|
6808
|
-
const marketingInfo = code
|
|
6864
|
+
return code
|
|
6809
6865
|
? marketingInfoFromStorage
|
|
6810
6866
|
: {
|
|
6811
6867
|
utm_campaign: queryStorage.get('utm_campaign'),
|
|
@@ -6816,12 +6872,6 @@
|
|
|
6816
6872
|
bannerId: queryStorage.get('bannerId'),
|
|
6817
6873
|
userId: queryStorage.get('userId'),
|
|
6818
6874
|
};
|
|
6819
|
-
return {
|
|
6820
|
-
referalCode,
|
|
6821
|
-
refererCode,
|
|
6822
|
-
productId,
|
|
6823
|
-
marketingInfo,
|
|
6824
|
-
};
|
|
6825
6875
|
};
|
|
6826
6876
|
|
|
6827
6877
|
const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, ...rest }) => {
|
|
@@ -8458,6 +8508,8 @@
|
|
|
8458
8508
|
generalSeniority: generalSeniorityValidator(formState.lastJobExperience),
|
|
8459
8509
|
beginDate: workBeginDateValidator(formState.limitedBirthday),
|
|
8460
8510
|
participantDateRegistration: dateRegistrationValidator(formState.limitedBirthday),
|
|
8511
|
+
organizationName: organizationNameValidator(formState.isDadataOrganization),
|
|
8512
|
+
inn: organizationInnValidator(formState.isDadataOrganization),
|
|
8461
8513
|
})(formState);
|
|
8462
8514
|
|
|
8463
8515
|
const StepsNavigationButtons$2 = JSX(({ step, isSending, onPrevStep }) => {
|
|
@@ -8527,6 +8579,7 @@
|
|
|
8527
8579
|
fiasCode: '',
|
|
8528
8580
|
},
|
|
8529
8581
|
organizationName: '',
|
|
8582
|
+
isDadataOrganization: false,
|
|
8530
8583
|
organizationPhone: '',
|
|
8531
8584
|
partInBusiness: undefined,
|
|
8532
8585
|
positionOrganization: { key: '', text: '' },
|
|
@@ -8543,12 +8596,6 @@
|
|
|
8543
8596
|
esiaAccountTypeCd: { key: '', text: '' },
|
|
8544
8597
|
initiateBankruptcyFlg: isCredit ? false : undefined,
|
|
8545
8598
|
},
|
|
8546
|
-
{
|
|
8547
|
-
bankruptcyFlg: false,
|
|
8548
|
-
shareholderFlg: false,
|
|
8549
|
-
legalEntityName: '',
|
|
8550
|
-
creditInRshbCd: undefined,
|
|
8551
|
-
},
|
|
8552
8599
|
];
|
|
8553
8600
|
|
|
8554
8601
|
const formStateMap$2 = [
|
|
@@ -8558,6 +8605,12 @@
|
|
|
8558
8605
|
codeWord: '',
|
|
8559
8606
|
},
|
|
8560
8607
|
...getMainFormStateMap(),
|
|
8608
|
+
{
|
|
8609
|
+
bankruptcyFlg: false,
|
|
8610
|
+
shareholderFlg: false,
|
|
8611
|
+
legalEntityName: '',
|
|
8612
|
+
creditInRshbCd: undefined,
|
|
8613
|
+
},
|
|
8561
8614
|
{
|
|
8562
8615
|
regionRetail: { key: '', text: '' },
|
|
8563
8616
|
addressRetail: { key: '', text: '' },
|
|
@@ -8617,12 +8670,9 @@
|
|
|
8617
8670
|
};
|
|
8618
8671
|
|
|
8619
8672
|
const getPersonalInfoData = (formData) => {
|
|
8620
|
-
const {
|
|
8673
|
+
const { limitedBirthday = '', sex, birthPlace, dulIssueDate = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration, housing, addressRegistration, addressFact, addressMatch, } = formData;
|
|
8621
8674
|
return {
|
|
8622
8675
|
birthDate: formatDate(limitedBirthday, true),
|
|
8623
|
-
midname: middleName,
|
|
8624
|
-
name,
|
|
8625
|
-
surname,
|
|
8626
8676
|
birthPlace,
|
|
8627
8677
|
dulIssueDate: formatDate(dulIssueDate, true),
|
|
8628
8678
|
dulIssuedBy,
|
|
@@ -8635,10 +8685,6 @@
|
|
|
8635
8685
|
: undefined,
|
|
8636
8686
|
homeMatchFlg: addressMatch,
|
|
8637
8687
|
houseTypeCd: housing,
|
|
8638
|
-
participantContacts: getParticipantContacts$1({
|
|
8639
|
-
phone: formatPhone(phone),
|
|
8640
|
-
email,
|
|
8641
|
-
}),
|
|
8642
8688
|
participantAddresses: getParticipantAddresses$1({
|
|
8643
8689
|
addressRegistration,
|
|
8644
8690
|
addressFact: addressMatch ? addressRegistration : addressFact,
|
|
@@ -8806,21 +8852,14 @@
|
|
|
8806
8852
|
title: 'Персональные данные',
|
|
8807
8853
|
columns: 2,
|
|
8808
8854
|
inputs: [
|
|
8809
|
-
{
|
|
8810
|
-
name: 'surname',
|
|
8811
|
-
required: true,
|
|
8812
|
-
dadata: true,
|
|
8813
|
-
filledByEsia: true,
|
|
8814
|
-
},
|
|
8815
|
-
{ name: 'name', required: true, dadata: true, filledByEsia: true },
|
|
8816
|
-
{ name: 'middleName', dadata: true, filledByEsia: true },
|
|
8817
|
-
{ name: 'sex', required: true },
|
|
8818
8855
|
{ name: 'limitedBirthday', required: true, filledByEsia: true },
|
|
8819
8856
|
{ name: 'birthPlace', required: true, filledByEsia: true },
|
|
8820
|
-
{ name: 'phone', disabled: true, required: true },
|
|
8821
|
-
{ name: 'email', required: true, dadata: true },
|
|
8822
8857
|
],
|
|
8823
8858
|
},
|
|
8859
|
+
{
|
|
8860
|
+
columns: 2,
|
|
8861
|
+
inputs: [{ name: 'sex', required: true }],
|
|
8862
|
+
},
|
|
8824
8863
|
{
|
|
8825
8864
|
title: 'Паспортные данные',
|
|
8826
8865
|
columns: 2,
|
|
@@ -9015,29 +9054,32 @@
|
|
|
9015
9054
|
],
|
|
9016
9055
|
},
|
|
9017
9056
|
{
|
|
9018
|
-
inputs: [
|
|
9019
|
-
{ name: 'employment', required: true },
|
|
9020
|
-
{ name: 'organizationName', required: true, dadata: true, filledByEsia: true },
|
|
9021
|
-
],
|
|
9057
|
+
inputs: [{ name: 'employment', required: true }],
|
|
9022
9058
|
},
|
|
9023
9059
|
{
|
|
9024
9060
|
columns: 2,
|
|
9025
9061
|
inputs: [
|
|
9062
|
+
{ name: 'organizationName', required: true, dadata: true, filledByEsia: true },
|
|
9026
9063
|
{ name: 'inn', required: true, dadata: true, filledByEsia: true },
|
|
9027
|
-
{ name: 'legalForm', required: true },
|
|
9028
9064
|
],
|
|
9029
9065
|
},
|
|
9030
9066
|
{
|
|
9067
|
+
inputs: [{ name: 'amountWorkers', required: true }],
|
|
9068
|
+
},
|
|
9069
|
+
{
|
|
9070
|
+
columns: 2,
|
|
9031
9071
|
inputs: [
|
|
9032
|
-
{ name: '
|
|
9033
|
-
{
|
|
9072
|
+
{ name: 'employerActivities', required: true },
|
|
9073
|
+
{
|
|
9074
|
+
name: 'organizationPhone',
|
|
9075
|
+
label: 'Телефон работодателя',
|
|
9076
|
+
required: true,
|
|
9077
|
+
},
|
|
9034
9078
|
],
|
|
9035
9079
|
},
|
|
9036
9080
|
{
|
|
9037
9081
|
columns: 2,
|
|
9038
9082
|
inputs: [
|
|
9039
|
-
{ name: 'employerActivities', required: true },
|
|
9040
|
-
{ name: 'employerOrganization', required: true },
|
|
9041
9083
|
{ name: 'generalSeniority', required: true, filledByEsia: true },
|
|
9042
9084
|
{ name: 'lastJobExperience', required: true, filledByEsia: true },
|
|
9043
9085
|
{ name: 'experience5Years', required: true, filledByEsia: true },
|
|
@@ -9045,14 +9087,7 @@
|
|
|
9045
9087
|
],
|
|
9046
9088
|
},
|
|
9047
9089
|
{
|
|
9048
|
-
inputs: [
|
|
9049
|
-
{
|
|
9050
|
-
name: 'organizationPhone',
|
|
9051
|
-
label: 'Телефон работодателя',
|
|
9052
|
-
required: true,
|
|
9053
|
-
},
|
|
9054
|
-
{ name: 'beginDate', required: true, filledByEsia: true },
|
|
9055
|
-
],
|
|
9090
|
+
inputs: [{ name: 'beginDate', required: true, filledByEsia: true }],
|
|
9056
9091
|
},
|
|
9057
9092
|
{
|
|
9058
9093
|
columns: 2,
|
|
@@ -9186,13 +9221,20 @@
|
|
|
9186
9221
|
values: ['office'],
|
|
9187
9222
|
},
|
|
9188
9223
|
},
|
|
9224
|
+
],
|
|
9225
|
+
},
|
|
9226
|
+
{
|
|
9227
|
+
columns: 2,
|
|
9228
|
+
inputs: [
|
|
9189
9229
|
{
|
|
9190
|
-
name: 'bankEmployeeCode',
|
|
9191
9230
|
condition: {
|
|
9192
9231
|
name: 'methodObtain',
|
|
9193
9232
|
values: ['office'],
|
|
9194
9233
|
},
|
|
9195
9234
|
},
|
|
9235
|
+
{
|
|
9236
|
+
name: 'bankEmployeeCode',
|
|
9237
|
+
},
|
|
9196
9238
|
],
|
|
9197
9239
|
},
|
|
9198
9240
|
];
|
|
@@ -9561,38 +9603,30 @@
|
|
|
9561
9603
|
],
|
|
9562
9604
|
},
|
|
9563
9605
|
{
|
|
9564
|
-
inputs: [
|
|
9565
|
-
{ name: 'employment', required: true },
|
|
9566
|
-
{ name: 'organizationName', required: true, dadata: true, filledByEsia: true },
|
|
9567
|
-
],
|
|
9606
|
+
inputs: [{ name: 'employment', required: true }],
|
|
9568
9607
|
},
|
|
9569
9608
|
{
|
|
9570
9609
|
columns: 2,
|
|
9571
9610
|
inputs: [
|
|
9611
|
+
{ name: 'organizationName', required: true, dadata: true, filledByEsia: true },
|
|
9572
9612
|
{ name: 'inn', required: true, dadata: true, filledByEsia: true },
|
|
9573
|
-
{ name: 'legalForm', required: true },
|
|
9574
9613
|
],
|
|
9575
9614
|
},
|
|
9576
9615
|
{
|
|
9616
|
+
columns: 2,
|
|
9577
9617
|
inputs: [
|
|
9578
|
-
{ name: 'organization', required: true },
|
|
9579
9618
|
{ name: 'amountWorkers', required: true },
|
|
9619
|
+
{
|
|
9620
|
+
name: 'organizationPhone',
|
|
9621
|
+
label: 'Телефон работодателя',
|
|
9622
|
+
required: true,
|
|
9623
|
+
},
|
|
9580
9624
|
],
|
|
9581
9625
|
},
|
|
9582
9626
|
{
|
|
9583
9627
|
columns: 2,
|
|
9584
9628
|
inputs: [
|
|
9585
|
-
{ name: 'employerOrganization', required: true },
|
|
9586
9629
|
{ name: 'jobsNumber', required: true, filledByEsia: true },
|
|
9587
|
-
],
|
|
9588
|
-
},
|
|
9589
|
-
{
|
|
9590
|
-
inputs: [
|
|
9591
|
-
{
|
|
9592
|
-
name: 'organizationPhone',
|
|
9593
|
-
label: 'Телефон работодателя',
|
|
9594
|
-
required: true,
|
|
9595
|
-
},
|
|
9596
9630
|
{ name: 'beginDate', required: true, filledByEsia: true },
|
|
9597
9631
|
],
|
|
9598
9632
|
},
|
|
@@ -9693,7 +9727,12 @@
|
|
|
9693
9727
|
],
|
|
9694
9728
|
},
|
|
9695
9729
|
{
|
|
9696
|
-
|
|
9730
|
+
columns: 2,
|
|
9731
|
+
inputs: [
|
|
9732
|
+
{
|
|
9733
|
+
name: 'bankEmployeeCode',
|
|
9734
|
+
},
|
|
9735
|
+
],
|
|
9697
9736
|
},
|
|
9698
9737
|
];
|
|
9699
9738
|
const CALCULATOR_CONTENT = [
|
|
@@ -12104,7 +12143,7 @@
|
|
|
12104
12143
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
12105
12144
|
});
|
|
12106
12145
|
|
|
12107
|
-
const packageVersion = "0.14.
|
|
12146
|
+
const packageVersion = "0.14.917";
|
|
12108
12147
|
|
|
12109
12148
|
exports.Blocks = Blocks;
|
|
12110
12149
|
exports.ContentPage = ContentPage;
|