@redneckz/wildless-cms-uni-blocks 0.14.689 → 0.14.690

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.
Files changed (141) hide show
  1. package/bundle/bundle.umd.js +50 -38
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/CreditCardForm/{getFirstStepData.d.ts → getCardData.d.ts} +1 -1
  4. package/bundle/ui-kit/FormField/SelectField.d.ts +1 -0
  5. package/dist/components/CreditCardForm/StepsNavigationButtons.js +1 -1
  6. package/dist/components/CreditCardForm/calculateInputs.js +2 -1
  7. package/dist/components/CreditCardForm/calculateInputs.js.map +1 -1
  8. package/dist/components/CreditCardForm/creditCardFormStepsData.js +18 -9
  9. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  10. package/dist/components/CreditCardForm/{getFirstStepData.d.ts → getCardData.d.ts} +1 -1
  11. package/{mobile/dist/components/CreditCardForm/getFirstStepData.js → dist/components/CreditCardForm/getCardData.js} +4 -4
  12. package/dist/components/CreditCardForm/getCardData.js.map +1 -0
  13. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
  14. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  15. package/dist/components/CreditForm/calculateInputs.js +1 -1
  16. package/dist/components/CreditForm/calculateInputs.js.map +1 -1
  17. package/dist/components/CreditForm/creditFormStepsData.js +6 -6
  18. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  19. package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -1
  20. package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  21. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +1 -1
  22. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  23. package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
  24. package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
  25. package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
  26. package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
  27. package/dist/ui-kit/FormField/SelectField.d.ts +1 -0
  28. package/dist/ui-kit/FormField/SelectField.js +4 -2
  29. package/dist/ui-kit/FormField/SelectField.js.map +1 -1
  30. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +1 -0
  31. package/lib/components/CreditCardForm/StepsNavigationButtons.js +1 -1
  32. package/lib/components/CreditCardForm/calculateInputs.js +2 -1
  33. package/lib/components/CreditCardForm/calculateInputs.js.map +1 -1
  34. package/lib/components/CreditCardForm/creditCardFormStepsData.js +18 -9
  35. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  36. package/lib/components/CreditCardForm/{getFirstStepData.d.ts → getCardData.d.ts} +1 -1
  37. package/lib/components/CreditCardForm/{getFirstStepData.js → getCardData.js} +2 -2
  38. package/lib/components/CreditCardForm/getCardData.js.map +1 -0
  39. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
  40. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  41. package/lib/components/CreditForm/calculateInputs.js +1 -1
  42. package/lib/components/CreditForm/calculateInputs.js.map +1 -1
  43. package/lib/components/CreditForm/creditFormStepsData.js +6 -6
  44. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  45. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -1
  46. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  47. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +1 -1
  48. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  49. package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
  50. package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
  51. package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
  52. package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
  53. package/lib/ui-kit/FormField/SelectField.d.ts +1 -0
  54. package/lib/ui-kit/FormField/SelectField.js +4 -2
  55. package/lib/ui-kit/FormField/SelectField.js.map +1 -1
  56. package/mobile/bundle/bundle.umd.js +50 -38
  57. package/mobile/bundle/bundle.umd.min.js +1 -1
  58. package/mobile/bundle/components/CreditCardForm/{getFirstStepData.d.ts → getCardData.d.ts} +1 -1
  59. package/mobile/bundle/ui-kit/FormField/SelectField.d.ts +1 -0
  60. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +1 -1
  61. package/mobile/dist/components/CreditCardForm/calculateInputs.js +2 -1
  62. package/mobile/dist/components/CreditCardForm/calculateInputs.js.map +1 -1
  63. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +18 -9
  64. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  65. package/mobile/dist/components/CreditCardForm/getCardData.d.ts +3 -0
  66. package/{dist/components/CreditCardForm/getFirstStepData.js → mobile/dist/components/CreditCardForm/getCardData.js} +4 -4
  67. package/mobile/dist/components/CreditCardForm/getCardData.js.map +1 -0
  68. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
  69. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  70. package/mobile/dist/components/CreditForm/calculateInputs.js +1 -1
  71. package/mobile/dist/components/CreditForm/calculateInputs.js.map +1 -1
  72. package/mobile/dist/components/CreditForm/creditFormStepsData.js +6 -6
  73. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  74. package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -1
  75. package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  76. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +1 -1
  77. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  78. package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
  79. package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
  80. package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
  81. package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
  82. package/mobile/dist/ui-kit/FormField/SelectField.d.ts +1 -0
  83. package/mobile/dist/ui-kit/FormField/SelectField.js +4 -2
  84. package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
  85. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +1 -1
  86. package/mobile/lib/components/CreditCardForm/calculateInputs.js +2 -1
  87. package/mobile/lib/components/CreditCardForm/calculateInputs.js.map +1 -1
  88. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +18 -9
  89. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  90. package/mobile/lib/components/CreditCardForm/getCardData.d.ts +3 -0
  91. package/mobile/lib/components/CreditCardForm/{getFirstStepData.js → getCardData.js} +2 -2
  92. package/mobile/lib/components/CreditCardForm/getCardData.js.map +1 -0
  93. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
  94. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  95. package/mobile/lib/components/CreditForm/calculateInputs.js +1 -1
  96. package/mobile/lib/components/CreditForm/calculateInputs.js.map +1 -1
  97. package/mobile/lib/components/CreditForm/creditFormStepsData.js +6 -6
  98. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  99. package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -1
  100. package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  101. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +1 -1
  102. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  103. package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
  104. package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
  105. package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
  106. package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
  107. package/mobile/lib/ui-kit/FormField/SelectField.d.ts +1 -0
  108. package/mobile/lib/ui-kit/FormField/SelectField.js +4 -2
  109. package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
  110. package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +1 -1
  111. package/mobile/src/components/CreditCardForm/calculateInputs.ts +6 -3
  112. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +18 -9
  113. package/mobile/src/components/CreditCardForm/{getFirstStepData.tsx → getCardData.tsx} +1 -1
  114. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -2
  115. package/mobile/src/components/CreditForm/calculateInputs.ts +3 -3
  116. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +6 -6
  117. package/mobile/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +0 -1
  118. package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +1 -1
  119. package/mobile/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +3 -2
  120. package/mobile/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +1 -0
  121. package/mobile/src/ui-kit/FormField/SelectField.tsx +5 -4
  122. package/package.json +1 -1
  123. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +13 -0
  124. package/src/components/CreditCardForm/StepsNavigationButtons.tsx +1 -1
  125. package/src/components/CreditCardForm/calculateInputs.ts +6 -3
  126. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +18 -9
  127. package/src/components/CreditCardForm/{getFirstStepData.tsx → getCardData.tsx} +1 -1
  128. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -2
  129. package/src/components/CreditForm/calculateInputs.ts +3 -3
  130. package/src/components/CreditForm/creditFormStepsData.tsx +6 -6
  131. package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +0 -1
  132. package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +1 -1
  133. package/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +3 -2
  134. package/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +1 -0
  135. package/src/ui-kit/FormField/SelectField.tsx +5 -4
  136. package/dist/components/CreditCardForm/getFirstStepData.js.map +0 -1
  137. package/lib/components/CreditCardForm/getFirstStepData.js.map +0 -1
  138. package/mobile/dist/components/CreditCardForm/getFirstStepData.d.ts +0 -3
  139. package/mobile/dist/components/CreditCardForm/getFirstStepData.js.map +0 -1
  140. package/mobile/lib/components/CreditCardForm/getFirstStepData.d.ts +0 -3
  141. package/mobile/lib/components/CreditCardForm/getFirstStepData.js.map +0 -1
@@ -2642,12 +2642,14 @@
2642
2642
  const ITEMS_CREDIT_AMOUNT = ['От 1 000 ₽', 'До 1 000 000 000 ₽'];
2643
2643
  const AmountField = JSX(({ field }) => (jsx(InputRange, { title: "\u0421\u0443\u043C\u043C\u0430, \u20BD", items: ITEMS_CREDIT_AMOUNT, min: MIN_CREDIT_AMOUNT, max: MAX_CREDIT_AMOUNT, ...field('amount') })));
2644
2644
 
2645
- const SelectField = UniBlock(({ field, source, label, fieldName, input, placeholder = 'Выберите из списка', isSearch = false, }) => {
2645
+ const SelectField = UniBlock(({ field, source, fieldName, input, placeholder = 'Выберите из списка',
2646
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2647
+ options, ...rest }) => {
2646
2648
  const leadOptions = source?.map((_) => ({
2647
2649
  key: _.key || '',
2648
2650
  text: _.value,
2649
2651
  })) || [];
2650
- return (jsx(SelectControl, { placeholder: placeholder, label: label, options: leadOptions, isSearch: isSearch, ...getValidation(field(fieldName), validatorObj[fieldName], input?.required) }));
2652
+ return (jsx(SelectControl, { placeholder: placeholder, options: leadOptions, ...getValidation(field(fieldName), validatorObj[fieldName], input?.required), ...rest }));
2651
2653
  });
2652
2654
 
2653
2655
  const AmountWorkersField = JSX(({ field, input }) => {
@@ -3409,12 +3411,12 @@
3409
3411
  return (jsx(CalculatorCredit, { ...params?.calcData, defaultParams: defaultValueAdapter(field(FIELD_NAME$9).value), onChange: handleChange }));
3410
3412
  });
3411
3413
 
3412
- const LABEL_TEXT = `Имеет ли юридическое лицо, акционером / участником / членом / пайщиком /
3413
- вкладчиком с долей участия более 20% уставного капитала руководителем,
3414
+ const LABEL_TEXT = `Имеет ли юридическое лицо, акционером / участником / членом / пайщиком /
3415
+ вкладчиком с долей участия более 20% уставного капитала руководителем,
3414
3416
  которого Вы являетесь, кредит в АО «Россельхозбанк»`;
3415
3417
  const CreditInRshbCdField = JSX(({ field, input }) => {
3416
3418
  const { data: creditInRshbCd } = useLeadFormData('CREDIT_IN_RSHB');
3417
- return (jsx(SelectField, { field: field, source: creditInRshbCd, label: LABEL_TEXT, fieldName: "creditInRshbCd", input: input }));
3419
+ return (jsx(SelectField, { field: field, source: creditInRshbCd, label: LABEL_TEXT, fieldName: "creditInRshbCd", input: input, disabled: !field?.('shareholderFlg')?.value }));
3418
3420
  });
3419
3421
 
3420
3422
  const RadioButtonGroupControl = JSX(({ className, label, onChange, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(RadioButtonGroup, { label: getRequiredLabel({ label, errors: rest?.errors }), onChange: (_) => onChange && onChange(_), ...rest }), renderErrorText(error)] })));
@@ -3545,7 +3547,7 @@
3545
3547
  const LastJobExperienceField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0421\u0442\u0430\u0436 \u043D\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u043C \u0440\u0430\u0431\u043E\u0447\u0435\u043C \u043C\u0435\u0441\u0442\u0435", placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043B\u0435\u0442", type: "number", maxLength: 2, ...getValidation(field('lastJobExperience'), validatorObj.lastJobExperience, input?.required), ...input })));
3546
3548
 
3547
3549
  const LegalEntityNameField = JSX(({ field, input }) => {
3548
- return (jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043B\u0438\u0446\u0430", ...input, ...getValidation(field('legalEntityName'), validatorObj.legalEntityName, input?.required) }));
3550
+ return (jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043B\u0438\u0446\u0430", ...input, ...getValidation(field('legalEntityName'), validatorObj.legalEntityName, input?.required), disabled: !field?.('shareholderFlg')?.value }));
3549
3551
  });
3550
3552
 
3551
3553
  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 })));
@@ -4440,7 +4442,6 @@
4440
4442
  const openDocument = useDocumentDialog(CONSENT_BKI_ID);
4441
4443
  const handleSubmit = useCallback(() => {
4442
4444
  onSubmit(confirmStatus);
4443
- onClose();
4444
4445
  }, [onSubmit, confirmStatus]);
4445
4446
  const handleConfirmChange = useCallback((value) => {
4446
4447
  setConfirmStatus(value);
@@ -4476,7 +4477,7 @@
4476
4477
  if (confirmStatus === 'SIGNED' && phone) {
4477
4478
  verifyPhoneDialog.open({
4478
4479
  ...verifyPhoneContent$1(phone),
4479
- onClose: handleSuccessVerify(profileId),
4480
+ onSuccess: handleSuccessVerify(profileId),
4480
4481
  });
4481
4482
  }
4482
4483
  else {
@@ -6493,7 +6494,6 @@
6493
6494
  });
6494
6495
  const checkIsRetiree$1 = (step, getValue) => step === 2 && getValue('employment')?.key === 'RETIREE';
6495
6496
  const checkBusinessOwner$1 = ({ name }, getValue) => name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
6496
- const checkConsentPfrFlg$1 = ({ name }, getValue) => name === 'snils' && !getValue('consentPfrFlg');
6497
6497
  const checkAddressFillFromESIA$1 = ({ name, filledByEsia }, getValue) => name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
6498
6498
  const checkAddressFact$1 = ({ name }, getValue) => name === 'addressFact' && getValue('addressMatch');
6499
6499
  const checkCondition$1 = ({ condition }, getValue) => condition?.name &&
@@ -6501,6 +6501,8 @@
6501
6501
  const dataValue = getValue(condition?.name);
6502
6502
  return _ !== (dataValue?.key ?? dataValue);
6503
6503
  });
6504
+ const checkConsentPfrFlg$1 = ({ name }, getValue) => name === 'snils' && isSnilsRequired$1(getValue);
6505
+ const isSnilsRequired$1 = (getValue) => getValue('confirmationIncome')?.key !== 'PFR_CERTIFICATE';
6504
6506
 
6505
6507
  const renderInfo$2 = (inputs = []) => {
6506
6508
  const infoInputs = inputs.filter((_) => _.fieldType === 'info');
@@ -6520,10 +6522,20 @@
6520
6522
 
6521
6523
  const StepsNavigationButtons$1 = JSX(({ step, onPrevStep }) => {
6522
6524
  const isFirstStep = step === 0;
6523
- const isFinalStep = step === 6;
6525
+ const isFinalStep = step === 5;
6524
6526
  return (jsxs("div", { className: "flex justify-between gap-m", children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { type: "submit", children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
6525
6527
  });
6526
6528
 
6529
+ const getCardData = (formData) => {
6530
+ const { currency, paymentSystem, cardCategory, codeWord } = formData;
6531
+ return {
6532
+ currencyCode: currency,
6533
+ paymentSystemTypeCd: paymentSystem,
6534
+ classCard: cardCategory,
6535
+ codeWord: codeWord,
6536
+ };
6537
+ };
6538
+
6527
6539
  const getFifthStepData$1 = (formData) => {
6528
6540
  const { bankruptcyFlg, shareholderFlg, legalEntityName, creditInRshbCd } = formData;
6529
6541
  return {
@@ -6534,16 +6546,6 @@
6534
6546
  };
6535
6547
  };
6536
6548
 
6537
- const getFirstStepData$1 = (formData) => {
6538
- const { currency, paymentSystem, cardCategory, codeWord } = formData;
6539
- return {
6540
- currencyCode: currency,
6541
- paymentSystemTypeCd: paymentSystem,
6542
- classCard: cardCategory,
6543
- codeWord: codeWord,
6544
- };
6545
- };
6546
-
6547
6549
  const getFourthStepData$1 = (formData) => {
6548
6550
  const { familyStatus, dependents, familyMembers, children, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, conscription, } = formData;
6549
6551
  return {
@@ -6672,6 +6674,7 @@
6672
6674
  ...getCurrentStepData$1(step, formData),
6673
6675
  },
6674
6676
  ],
6677
+ ...getCardData(formData),
6675
6678
  ...getDeliveryData(formData),
6676
6679
  },
6677
6680
  };
@@ -6679,7 +6682,7 @@
6679
6682
  const getCurrentStepData$1 = (step, formData) => {
6680
6683
  switch (step) {
6681
6684
  case 0:
6682
- return getFirstStepData$1(formData);
6685
+ return {};
6683
6686
  case 1:
6684
6687
  return getSecondStepData$1(formData);
6685
6688
  case 2:
@@ -6781,8 +6784,8 @@
6781
6784
  { fieldType: 'common', name: 'middleName', dadata: true, filledByEsia: true },
6782
6785
  { fieldType: 'common', name: 'sex', required: true },
6783
6786
  { fieldType: 'common', name: 'limitedBirthday', required: true, filledByEsia: true },
6784
- { fieldType: 'common', name: 'birthPlace', required: true },
6785
- { fieldType: 'common', name: 'phone', required: true },
6787
+ { fieldType: 'common', name: 'birthPlace', required: true, filledByEsia: true },
6788
+ { fieldType: 'common', name: 'phone', required: true, filledByEsia: true },
6786
6789
  { fieldType: 'common', name: 'email', required: true, dadata: true },
6787
6790
  ],
6788
6791
  },
@@ -6866,7 +6869,7 @@
6866
6869
  },
6867
6870
  {
6868
6871
  inputs: [
6869
- { fieldType: 'common', name: 'employment' },
6872
+ { fieldType: 'common', name: 'employment', required: true },
6870
6873
  { fieldType: 'common', name: 'organizationName', required: true, dadata: true },
6871
6874
  ],
6872
6875
  },
@@ -6879,15 +6882,15 @@
6879
6882
  },
6880
6883
  {
6881
6884
  inputs: [
6882
- { fieldType: 'common', name: 'organization', required: false },
6883
- { fieldType: 'common', name: 'amountWorkers', required: false },
6885
+ { fieldType: 'common', name: 'organization', required: true },
6886
+ { fieldType: 'common', name: 'amountWorkers', required: true },
6884
6887
  ],
6885
6888
  },
6886
6889
  {
6887
6890
  columns: 2,
6888
6891
  inputs: [
6889
- { fieldType: 'common', name: 'employerActivities', required: false },
6890
- { fieldType: 'common', name: 'employerOrganization', required: false },
6892
+ { fieldType: 'common', name: 'employerActivities', required: true },
6893
+ { fieldType: 'common', name: 'employerOrganization', required: true },
6891
6894
  { fieldType: 'common', name: 'generalSeniority', required: true },
6892
6895
  { fieldType: 'common', name: 'lastJobExperience', required: true },
6893
6896
  { fieldType: 'common', name: 'experience5Years', required: true },
@@ -6908,7 +6911,7 @@
6908
6911
  {
6909
6912
  columns: 2,
6910
6913
  inputs: [
6911
- { fieldType: 'common', name: 'positionOrganization', required: false },
6914
+ { fieldType: 'common', name: 'positionOrganization', required: true },
6912
6915
  {
6913
6916
  fieldType: 'common',
6914
6917
  name: 'partInBusiness',
@@ -6955,6 +6958,10 @@
6955
6958
  },
6956
6959
  ],
6957
6960
  },
6961
+ {
6962
+ columns: 1,
6963
+ inputs: [{ fieldType: 'common', name: 'confirmationIncome', required: true }],
6964
+ },
6958
6965
  {
6959
6966
  columns: 1,
6960
6967
  inputs: [{ fieldType: 'common', name: 'wages', required: true }],
@@ -6992,7 +6999,12 @@
6992
6999
  inputs: [{ fieldType: 'common', name: 'shareholderFlg' }],
6993
7000
  },
6994
7001
  {
6995
- inputs: [{ fieldType: 'common', name: 'legalEntityName' }],
7002
+ inputs: [
7003
+ {
7004
+ fieldType: 'common',
7005
+ name: 'legalEntityName',
7006
+ },
7007
+ ],
6996
7008
  },
6997
7009
  {
6998
7010
  inputs: [{ fieldType: 'common', name: 'creditInRshbCd' }],
@@ -7365,7 +7377,6 @@
7365
7377
  });
7366
7378
  const checkIsRetiree = (step, getValue) => step === 2 && getValue('employment')?.key === 'RETIREE';
7367
7379
  const checkBusinessOwner = ({ name }, getValue) => name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
7368
- const checkConsentPfrFlg = ({ name }, getValue) => name === 'snils' && isSnilsRequired(getValue);
7369
7380
  const checkAddressFillFromESIA = ({ name, filledByEsia }, getValue) => name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
7370
7381
  const checkAddressFact = ({ name }, getValue) => name === 'addressFact' && getValue('addressMatch');
7371
7382
  const checkCondition = ({ condition }, getValue) => condition?.name &&
@@ -7373,6 +7384,7 @@
7373
7384
  const dataValue = getValue(condition?.name);
7374
7385
  return _ !== (dataValue?.key ?? dataValue);
7375
7386
  });
7387
+ const checkConsentPfrFlg = ({ name }, getValue) => name === 'snils' && isSnilsRequired(getValue);
7376
7388
  const isSnilsRequired = (getValue) => getValue('confirmationIncome')?.key !== 'PFR_CERTIFICATE';
7377
7389
 
7378
7390
  const renderInfo$1 = (inputs = []) => {
@@ -7728,7 +7740,7 @@
7728
7740
  },
7729
7741
  {
7730
7742
  inputs: [
7731
- { fieldType: 'common', name: 'employment' },
7743
+ { fieldType: 'common', name: 'employment', required: true },
7732
7744
  { fieldType: 'common', name: 'organizationName', required: true, dadata: true },
7733
7745
  ],
7734
7746
  },
@@ -7741,15 +7753,15 @@
7741
7753
  },
7742
7754
  {
7743
7755
  inputs: [
7744
- { fieldType: 'common', name: 'organization', required: false },
7745
- { fieldType: 'common', name: 'amountWorkers', required: false },
7756
+ { fieldType: 'common', name: 'organization', required: true },
7757
+ { fieldType: 'common', name: 'amountWorkers', required: true },
7746
7758
  ],
7747
7759
  },
7748
7760
  {
7749
7761
  columns: 2,
7750
7762
  inputs: [
7751
- { fieldType: 'common', name: 'employerActivities', required: false },
7752
- { fieldType: 'common', name: 'employerOrganization', required: false },
7763
+ { fieldType: 'common', name: 'employerActivities', required: true },
7764
+ { fieldType: 'common', name: 'employerOrganization', required: true },
7753
7765
  { fieldType: 'common', name: 'generalSeniority', required: true },
7754
7766
  { fieldType: 'common', name: 'lastJobExperience', required: true },
7755
7767
  { fieldType: 'common', name: 'experience5Years', required: true },
@@ -7770,7 +7782,7 @@
7770
7782
  {
7771
7783
  columns: 2,
7772
7784
  inputs: [
7773
- { fieldType: 'common', name: 'positionOrganization', required: false },
7785
+ { fieldType: 'common', name: 'positionOrganization', required: true },
7774
7786
  {
7775
7787
  fieldType: 'common',
7776
7788
  name: 'partInBusiness',
@@ -10342,7 +10354,7 @@
10342
10354
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10343
10355
  });
10344
10356
 
10345
- const packageVersion = "0.14.688";
10357
+ const packageVersion = "0.14.689";
10346
10358
 
10347
10359
  exports.Blocks = Blocks;
10348
10360
  exports.ContentPage = ContentPage;