@redneckz/wildless-cms-uni-blocks 0.14.689 → 0.14.691
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 +72 -51
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CreditCardForm/{getFirstStepData.d.ts → getCardData.d.ts} +1 -1
- package/bundle/components/CreditCardForm/getSixthStepData.d.ts +10 -2
- package/bundle/ui-kit/FormField/SelectField.d.ts +1 -0
- package/dist/components/CreditCardForm/StepsNavigationButtons.js +1 -1
- package/dist/components/CreditCardForm/calculateInputs.js +2 -1
- package/dist/components/CreditCardForm/calculateInputs.js.map +1 -1
- package/dist/components/CreditCardForm/creditCardFormStepsData.js +18 -9
- package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/dist/components/CreditCardForm/{getFirstStepData.d.ts → getCardData.d.ts} +1 -1
- package/{mobile/dist/components/CreditCardForm/getFirstStepData.js → dist/components/CreditCardForm/getCardData.js} +4 -4
- package/dist/components/CreditCardForm/getCardData.js.map +1 -0
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditCardForm/getSixthStepData.d.ts +10 -2
- package/dist/components/CreditCardForm/getSixthStepData.js +22 -13
- package/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/dist/components/CreditForm/calculateInputs.js +1 -1
- package/dist/components/CreditForm/calculateInputs.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js +6 -6
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -1
- package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +1 -1
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
- package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
- package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
- package/dist/ui-kit/FormField/SelectField.d.ts +1 -0
- package/dist/ui-kit/FormField/SelectField.js +4 -2
- package/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +1 -0
- package/lib/components/CreditCardForm/StepsNavigationButtons.js +1 -1
- package/lib/components/CreditCardForm/calculateInputs.js +2 -1
- package/lib/components/CreditCardForm/calculateInputs.js.map +1 -1
- package/lib/components/CreditCardForm/creditCardFormStepsData.js +18 -9
- package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/lib/components/CreditCardForm/{getFirstStepData.d.ts → getCardData.d.ts} +1 -1
- package/lib/components/CreditCardForm/{getFirstStepData.js → getCardData.js} +2 -2
- package/lib/components/CreditCardForm/getCardData.js.map +1 -0
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditCardForm/getSixthStepData.d.ts +10 -2
- package/lib/components/CreditCardForm/getSixthStepData.js +22 -13
- package/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/lib/components/CreditForm/calculateInputs.js +1 -1
- package/lib/components/CreditForm/calculateInputs.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js +6 -6
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -1
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +1 -1
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
- package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
- package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
- package/lib/ui-kit/FormField/SelectField.d.ts +1 -0
- package/lib/ui-kit/FormField/SelectField.js +4 -2
- package/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +72 -51
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CreditCardForm/{getFirstStepData.d.ts → getCardData.d.ts} +1 -1
- package/mobile/bundle/components/CreditCardForm/getSixthStepData.d.ts +10 -2
- package/mobile/bundle/ui-kit/FormField/SelectField.d.ts +1 -0
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +1 -1
- package/mobile/dist/components/CreditCardForm/calculateInputs.js +2 -1
- package/mobile/dist/components/CreditCardForm/calculateInputs.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +18 -9
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCardData.d.ts +3 -0
- package/{dist/components/CreditCardForm/getFirstStepData.js → mobile/dist/components/CreditCardForm/getCardData.js} +4 -4
- package/mobile/dist/components/CreditCardForm/getCardData.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getSixthStepData.d.ts +10 -2
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js +22 -13
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/calculateInputs.js +1 -1
- package/mobile/dist/components/CreditForm/calculateInputs.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +6 -6
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +1 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
- package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/SelectField.d.ts +1 -0
- package/mobile/dist/ui-kit/FormField/SelectField.js +4 -2
- package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +1 -1
- package/mobile/lib/components/CreditCardForm/calculateInputs.js +2 -1
- package/mobile/lib/components/CreditCardForm/calculateInputs.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +18 -9
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCardData.d.ts +3 -0
- package/mobile/lib/components/CreditCardForm/{getFirstStepData.js → getCardData.js} +2 -2
- package/mobile/lib/components/CreditCardForm/getCardData.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getSixthStepData.d.ts +10 -2
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js +22 -13
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/calculateInputs.js +1 -1
- package/mobile/lib/components/CreditForm/calculateInputs.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +6 -6
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +1 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
- package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/SelectField.d.ts +1 -0
- package/mobile/lib/ui-kit/FormField/SelectField.js +4 -2
- package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +1 -1
- package/mobile/src/components/CreditCardForm/calculateInputs.ts +6 -3
- package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +18 -9
- package/mobile/src/components/CreditCardForm/{getFirstStepData.tsx → getCardData.tsx} +1 -1
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -2
- package/mobile/src/components/CreditCardForm/getSixthStepData.ts +25 -13
- package/mobile/src/components/CreditForm/calculateInputs.ts +3 -3
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +6 -6
- package/mobile/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +0 -1
- package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +3 -2
- package/mobile/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +1 -0
- package/mobile/src/ui-kit/FormField/SelectField.tsx +5 -4
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +13 -0
- package/src/components/CreditCardForm/StepsNavigationButtons.tsx +1 -1
- package/src/components/CreditCardForm/calculateInputs.ts +6 -3
- package/src/components/CreditCardForm/creditCardFormStepsData.tsx +18 -9
- package/src/components/CreditCardForm/{getFirstStepData.tsx → getCardData.tsx} +1 -1
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -2
- package/src/components/CreditCardForm/getSixthStepData.ts +25 -13
- package/src/components/CreditForm/calculateInputs.ts +3 -3
- package/src/components/CreditForm/creditFormStepsData.tsx +6 -6
- package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +0 -1
- package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +1 -1
- package/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +3 -2
- package/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +1 -0
- package/src/ui-kit/FormField/SelectField.tsx +5 -4
- package/dist/components/CreditCardForm/getFirstStepData.js.map +0 -1
- package/lib/components/CreditCardForm/getFirstStepData.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/getFirstStepData.d.ts +0 -3
- package/mobile/dist/components/CreditCardForm/getFirstStepData.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/getFirstStepData.d.ts +0 -3
- package/mobile/lib/components/CreditCardForm/getFirstStepData.js.map +0 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -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,
|
|
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,
|
|
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
|
-
|
|
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 ===
|
|
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 {
|
|
@@ -6605,23 +6607,32 @@
|
|
|
6605
6607
|
|
|
6606
6608
|
const getDeliveryData = (formData) => {
|
|
6607
6609
|
const { methodObtain, deliveryDate = '' } = formData;
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6610
|
+
const isCourierDelivery = methodObtain === 'courier';
|
|
6611
|
+
return isCourierDelivery
|
|
6612
|
+
? {
|
|
6613
|
+
courierDeliveryFlg: isCourierDelivery,
|
|
6614
|
+
deliveryDate: dateToISO(deliveryDate),
|
|
6615
|
+
deliveryTimeCd: { value: 'TIME_2' },
|
|
6616
|
+
}
|
|
6617
|
+
: {};
|
|
6613
6618
|
};
|
|
6614
6619
|
const getOfficeCode = (formData) => {
|
|
6615
|
-
const { addressRetail } = formData;
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6620
|
+
const { addressRetail, methodObtain } = formData;
|
|
6621
|
+
const isOfficeObtain = addressRetail?.key && methodObtain === 'office';
|
|
6622
|
+
return isOfficeObtain
|
|
6623
|
+
? {
|
|
6624
|
+
office: { id: addressRetail.key },
|
|
6625
|
+
}
|
|
6626
|
+
: {};
|
|
6619
6627
|
};
|
|
6620
6628
|
const getSixthStepData = (formData) => {
|
|
6621
|
-
const { addressCourier } = formData;
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6629
|
+
const { addressCourier, methodObtain } = formData;
|
|
6630
|
+
const isCourierDelivery = methodObtain === 'courier';
|
|
6631
|
+
return isCourierDelivery
|
|
6632
|
+
? {
|
|
6633
|
+
participantAddresses: getParticipantAddresses({ addressCourier }),
|
|
6634
|
+
}
|
|
6635
|
+
: {};
|
|
6625
6636
|
};
|
|
6626
6637
|
|
|
6627
6638
|
const getThirdStepData$1 = (formData) => {
|
|
@@ -6672,6 +6683,7 @@
|
|
|
6672
6683
|
...getCurrentStepData$1(step, formData),
|
|
6673
6684
|
},
|
|
6674
6685
|
],
|
|
6686
|
+
...getCardData(formData),
|
|
6675
6687
|
...getDeliveryData(formData),
|
|
6676
6688
|
},
|
|
6677
6689
|
};
|
|
@@ -6679,7 +6691,7 @@
|
|
|
6679
6691
|
const getCurrentStepData$1 = (step, formData) => {
|
|
6680
6692
|
switch (step) {
|
|
6681
6693
|
case 0:
|
|
6682
|
-
return
|
|
6694
|
+
return {};
|
|
6683
6695
|
case 1:
|
|
6684
6696
|
return getSecondStepData$1(formData);
|
|
6685
6697
|
case 2:
|
|
@@ -6781,8 +6793,8 @@
|
|
|
6781
6793
|
{ fieldType: 'common', name: 'middleName', dadata: true, filledByEsia: true },
|
|
6782
6794
|
{ fieldType: 'common', name: 'sex', required: true },
|
|
6783
6795
|
{ fieldType: 'common', name: 'limitedBirthday', required: true, filledByEsia: true },
|
|
6784
|
-
{ fieldType: 'common', name: 'birthPlace', required: true },
|
|
6785
|
-
{ fieldType: 'common', name: 'phone', required: true },
|
|
6796
|
+
{ fieldType: 'common', name: 'birthPlace', required: true, filledByEsia: true },
|
|
6797
|
+
{ fieldType: 'common', name: 'phone', required: true, filledByEsia: true },
|
|
6786
6798
|
{ fieldType: 'common', name: 'email', required: true, dadata: true },
|
|
6787
6799
|
],
|
|
6788
6800
|
},
|
|
@@ -6866,7 +6878,7 @@
|
|
|
6866
6878
|
},
|
|
6867
6879
|
{
|
|
6868
6880
|
inputs: [
|
|
6869
|
-
{ fieldType: 'common', name: 'employment' },
|
|
6881
|
+
{ fieldType: 'common', name: 'employment', required: true },
|
|
6870
6882
|
{ fieldType: 'common', name: 'organizationName', required: true, dadata: true },
|
|
6871
6883
|
],
|
|
6872
6884
|
},
|
|
@@ -6879,15 +6891,15 @@
|
|
|
6879
6891
|
},
|
|
6880
6892
|
{
|
|
6881
6893
|
inputs: [
|
|
6882
|
-
{ fieldType: 'common', name: 'organization', required:
|
|
6883
|
-
{ fieldType: 'common', name: 'amountWorkers', required:
|
|
6894
|
+
{ fieldType: 'common', name: 'organization', required: true },
|
|
6895
|
+
{ fieldType: 'common', name: 'amountWorkers', required: true },
|
|
6884
6896
|
],
|
|
6885
6897
|
},
|
|
6886
6898
|
{
|
|
6887
6899
|
columns: 2,
|
|
6888
6900
|
inputs: [
|
|
6889
|
-
{ fieldType: 'common', name: 'employerActivities', required:
|
|
6890
|
-
{ fieldType: 'common', name: 'employerOrganization', required:
|
|
6901
|
+
{ fieldType: 'common', name: 'employerActivities', required: true },
|
|
6902
|
+
{ fieldType: 'common', name: 'employerOrganization', required: true },
|
|
6891
6903
|
{ fieldType: 'common', name: 'generalSeniority', required: true },
|
|
6892
6904
|
{ fieldType: 'common', name: 'lastJobExperience', required: true },
|
|
6893
6905
|
{ fieldType: 'common', name: 'experience5Years', required: true },
|
|
@@ -6908,7 +6920,7 @@
|
|
|
6908
6920
|
{
|
|
6909
6921
|
columns: 2,
|
|
6910
6922
|
inputs: [
|
|
6911
|
-
{ fieldType: 'common', name: 'positionOrganization', required:
|
|
6923
|
+
{ fieldType: 'common', name: 'positionOrganization', required: true },
|
|
6912
6924
|
{
|
|
6913
6925
|
fieldType: 'common',
|
|
6914
6926
|
name: 'partInBusiness',
|
|
@@ -6955,6 +6967,10 @@
|
|
|
6955
6967
|
},
|
|
6956
6968
|
],
|
|
6957
6969
|
},
|
|
6970
|
+
{
|
|
6971
|
+
columns: 1,
|
|
6972
|
+
inputs: [{ fieldType: 'common', name: 'confirmationIncome', required: true }],
|
|
6973
|
+
},
|
|
6958
6974
|
{
|
|
6959
6975
|
columns: 1,
|
|
6960
6976
|
inputs: [{ fieldType: 'common', name: 'wages', required: true }],
|
|
@@ -6992,7 +7008,12 @@
|
|
|
6992
7008
|
inputs: [{ fieldType: 'common', name: 'shareholderFlg' }],
|
|
6993
7009
|
},
|
|
6994
7010
|
{
|
|
6995
|
-
inputs: [
|
|
7011
|
+
inputs: [
|
|
7012
|
+
{
|
|
7013
|
+
fieldType: 'common',
|
|
7014
|
+
name: 'legalEntityName',
|
|
7015
|
+
},
|
|
7016
|
+
],
|
|
6996
7017
|
},
|
|
6997
7018
|
{
|
|
6998
7019
|
inputs: [{ fieldType: 'common', name: 'creditInRshbCd' }],
|
|
@@ -7365,7 +7386,6 @@
|
|
|
7365
7386
|
});
|
|
7366
7387
|
const checkIsRetiree = (step, getValue) => step === 2 && getValue('employment')?.key === 'RETIREE';
|
|
7367
7388
|
const checkBusinessOwner = ({ name }, getValue) => name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
|
|
7368
|
-
const checkConsentPfrFlg = ({ name }, getValue) => name === 'snils' && isSnilsRequired(getValue);
|
|
7369
7389
|
const checkAddressFillFromESIA = ({ name, filledByEsia }, getValue) => name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
|
|
7370
7390
|
const checkAddressFact = ({ name }, getValue) => name === 'addressFact' && getValue('addressMatch');
|
|
7371
7391
|
const checkCondition = ({ condition }, getValue) => condition?.name &&
|
|
@@ -7373,6 +7393,7 @@
|
|
|
7373
7393
|
const dataValue = getValue(condition?.name);
|
|
7374
7394
|
return _ !== (dataValue?.key ?? dataValue);
|
|
7375
7395
|
});
|
|
7396
|
+
const checkConsentPfrFlg = ({ name }, getValue) => name === 'snils' && isSnilsRequired(getValue);
|
|
7376
7397
|
const isSnilsRequired = (getValue) => getValue('confirmationIncome')?.key !== 'PFR_CERTIFICATE';
|
|
7377
7398
|
|
|
7378
7399
|
const renderInfo$1 = (inputs = []) => {
|
|
@@ -7728,7 +7749,7 @@
|
|
|
7728
7749
|
},
|
|
7729
7750
|
{
|
|
7730
7751
|
inputs: [
|
|
7731
|
-
{ fieldType: 'common', name: 'employment' },
|
|
7752
|
+
{ fieldType: 'common', name: 'employment', required: true },
|
|
7732
7753
|
{ fieldType: 'common', name: 'organizationName', required: true, dadata: true },
|
|
7733
7754
|
],
|
|
7734
7755
|
},
|
|
@@ -7741,15 +7762,15 @@
|
|
|
7741
7762
|
},
|
|
7742
7763
|
{
|
|
7743
7764
|
inputs: [
|
|
7744
|
-
{ fieldType: 'common', name: 'organization', required:
|
|
7745
|
-
{ fieldType: 'common', name: 'amountWorkers', required:
|
|
7765
|
+
{ fieldType: 'common', name: 'organization', required: true },
|
|
7766
|
+
{ fieldType: 'common', name: 'amountWorkers', required: true },
|
|
7746
7767
|
],
|
|
7747
7768
|
},
|
|
7748
7769
|
{
|
|
7749
7770
|
columns: 2,
|
|
7750
7771
|
inputs: [
|
|
7751
|
-
{ fieldType: 'common', name: 'employerActivities', required:
|
|
7752
|
-
{ fieldType: 'common', name: 'employerOrganization', required:
|
|
7772
|
+
{ fieldType: 'common', name: 'employerActivities', required: true },
|
|
7773
|
+
{ fieldType: 'common', name: 'employerOrganization', required: true },
|
|
7753
7774
|
{ fieldType: 'common', name: 'generalSeniority', required: true },
|
|
7754
7775
|
{ fieldType: 'common', name: 'lastJobExperience', required: true },
|
|
7755
7776
|
{ fieldType: 'common', name: 'experience5Years', required: true },
|
|
@@ -7770,7 +7791,7 @@
|
|
|
7770
7791
|
{
|
|
7771
7792
|
columns: 2,
|
|
7772
7793
|
inputs: [
|
|
7773
|
-
{ fieldType: 'common', name: 'positionOrganization', required:
|
|
7794
|
+
{ fieldType: 'common', name: 'positionOrganization', required: true },
|
|
7774
7795
|
{
|
|
7775
7796
|
fieldType: 'common',
|
|
7776
7797
|
name: 'partInBusiness',
|
|
@@ -10342,7 +10363,7 @@
|
|
|
10342
10363
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10343
10364
|
});
|
|
10344
10365
|
|
|
10345
|
-
const packageVersion = "0.14.
|
|
10366
|
+
const packageVersion = "0.14.690";
|
|
10346
10367
|
|
|
10347
10368
|
exports.Blocks = Blocks;
|
|
10348
10369
|
exports.ContentPage = ContentPage;
|