@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
|
@@ -2650,12 +2650,14 @@
|
|
|
2650
2650
|
const ITEMS_CREDIT_AMOUNT = ['От 1 000 ₽', 'До 1 000 000 000 ₽'];
|
|
2651
2651
|
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') })));
|
|
2652
2652
|
|
|
2653
|
-
const SelectField = UniBlock(({ field, source,
|
|
2653
|
+
const SelectField = UniBlock(({ field, source, fieldName, input, placeholder = 'Выберите из списка',
|
|
2654
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2655
|
+
options, ...rest }) => {
|
|
2654
2656
|
const leadOptions = source?.map((_) => ({
|
|
2655
2657
|
key: _.key || '',
|
|
2656
2658
|
text: _.value,
|
|
2657
2659
|
})) || [];
|
|
2658
|
-
return (jsx(SelectControl, { placeholder: placeholder,
|
|
2660
|
+
return (jsx(SelectControl, { placeholder: placeholder, options: leadOptions, ...getValidation(field(fieldName), validatorObj[fieldName], input?.required), ...rest }));
|
|
2659
2661
|
});
|
|
2660
2662
|
|
|
2661
2663
|
const AmountWorkersField = JSX(({ field, input }) => {
|
|
@@ -3417,12 +3419,12 @@
|
|
|
3417
3419
|
return (jsx(CalculatorCredit, { ...params?.calcData, defaultParams: defaultValueAdapter(field(FIELD_NAME$9).value), onChange: handleChange }));
|
|
3418
3420
|
});
|
|
3419
3421
|
|
|
3420
|
-
const LABEL_TEXT = `Имеет ли юридическое лицо, акционером / участником / членом / пайщиком /
|
|
3421
|
-
вкладчиком с долей участия более 20% уставного капитала руководителем,
|
|
3422
|
+
const LABEL_TEXT = `Имеет ли юридическое лицо, акционером / участником / членом / пайщиком /
|
|
3423
|
+
вкладчиком с долей участия более 20% уставного капитала руководителем,
|
|
3422
3424
|
которого Вы являетесь, кредит в АО «Россельхозбанк»`;
|
|
3423
3425
|
const CreditInRshbCdField = JSX(({ field, input }) => {
|
|
3424
3426
|
const { data: creditInRshbCd } = useLeadFormData('CREDIT_IN_RSHB');
|
|
3425
|
-
return (jsx(SelectField, { field: field, source: creditInRshbCd, label: LABEL_TEXT, fieldName: "creditInRshbCd", input: input }));
|
|
3427
|
+
return (jsx(SelectField, { field: field, source: creditInRshbCd, label: LABEL_TEXT, fieldName: "creditInRshbCd", input: input, disabled: !field?.('shareholderFlg')?.value }));
|
|
3426
3428
|
});
|
|
3427
3429
|
|
|
3428
3430
|
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)] })));
|
|
@@ -3553,7 +3555,7 @@
|
|
|
3553
3555
|
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 })));
|
|
3554
3556
|
|
|
3555
3557
|
const LegalEntityNameField = JSX(({ field, input }) => {
|
|
3556
|
-
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) }));
|
|
3558
|
+
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 }));
|
|
3557
3559
|
});
|
|
3558
3560
|
|
|
3559
3561
|
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 })));
|
|
@@ -4448,7 +4450,6 @@
|
|
|
4448
4450
|
const openDocument = useDocumentDialog(CONSENT_BKI_ID);
|
|
4449
4451
|
const handleSubmit = useCallback(() => {
|
|
4450
4452
|
onSubmit(confirmStatus);
|
|
4451
|
-
onClose();
|
|
4452
4453
|
}, [onSubmit, confirmStatus]);
|
|
4453
4454
|
const handleConfirmChange = useCallback((value) => {
|
|
4454
4455
|
setConfirmStatus(value);
|
|
@@ -4484,7 +4485,7 @@
|
|
|
4484
4485
|
if (confirmStatus === 'SIGNED' && phone) {
|
|
4485
4486
|
verifyPhoneDialog.open({
|
|
4486
4487
|
...verifyPhoneContent$1(phone),
|
|
4487
|
-
|
|
4488
|
+
onSuccess: handleSuccessVerify(profileId),
|
|
4488
4489
|
});
|
|
4489
4490
|
}
|
|
4490
4491
|
else {
|
|
@@ -6485,7 +6486,6 @@
|
|
|
6485
6486
|
});
|
|
6486
6487
|
const checkIsRetiree$1 = (step, getValue) => step === 2 && getValue('employment')?.key === 'RETIREE';
|
|
6487
6488
|
const checkBusinessOwner$1 = ({ name }, getValue) => name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
|
|
6488
|
-
const checkConsentPfrFlg$1 = ({ name }, getValue) => name === 'snils' && !getValue('consentPfrFlg');
|
|
6489
6489
|
const checkAddressFillFromESIA$1 = ({ name, filledByEsia }, getValue) => name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
|
|
6490
6490
|
const checkAddressFact$1 = ({ name }, getValue) => name === 'addressFact' && getValue('addressMatch');
|
|
6491
6491
|
const checkCondition$1 = ({ condition }, getValue) => condition?.name &&
|
|
@@ -6493,6 +6493,8 @@
|
|
|
6493
6493
|
const dataValue = getValue(condition?.name);
|
|
6494
6494
|
return _ !== (dataValue?.key ?? dataValue);
|
|
6495
6495
|
});
|
|
6496
|
+
const checkConsentPfrFlg$1 = ({ name }, getValue) => name === 'snils' && isSnilsRequired$1(getValue);
|
|
6497
|
+
const isSnilsRequired$1 = (getValue) => getValue('confirmationIncome')?.key !== 'PFR_CERTIFICATE';
|
|
6496
6498
|
|
|
6497
6499
|
const renderInfo$2 = (inputs = []) => {
|
|
6498
6500
|
const infoInputs = inputs.filter((_) => _.fieldType === 'info');
|
|
@@ -6512,10 +6514,20 @@
|
|
|
6512
6514
|
|
|
6513
6515
|
const StepsNavigationButtons$1 = JSX(({ step, onPrevStep }) => {
|
|
6514
6516
|
const isFirstStep = step === 0;
|
|
6515
|
-
const isFinalStep = step ===
|
|
6517
|
+
const isFinalStep = step === 5;
|
|
6516
6518
|
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 ? 'Отправить заявку' : 'Далее' })] }));
|
|
6517
6519
|
});
|
|
6518
6520
|
|
|
6521
|
+
const getCardData = (formData) => {
|
|
6522
|
+
const { currency, paymentSystem, cardCategory, codeWord } = formData;
|
|
6523
|
+
return {
|
|
6524
|
+
currencyCode: currency,
|
|
6525
|
+
paymentSystemTypeCd: paymentSystem,
|
|
6526
|
+
classCard: cardCategory,
|
|
6527
|
+
codeWord: codeWord,
|
|
6528
|
+
};
|
|
6529
|
+
};
|
|
6530
|
+
|
|
6519
6531
|
const getFifthStepData$1 = (formData) => {
|
|
6520
6532
|
const { bankruptcyFlg, shareholderFlg, legalEntityName, creditInRshbCd } = formData;
|
|
6521
6533
|
return {
|
|
@@ -6526,16 +6538,6 @@
|
|
|
6526
6538
|
};
|
|
6527
6539
|
};
|
|
6528
6540
|
|
|
6529
|
-
const getFirstStepData$1 = (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
|
-
|
|
6539
6541
|
const getFourthStepData$1 = (formData) => {
|
|
6540
6542
|
const { familyStatus, dependents, familyMembers, children, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, conscription, } = formData;
|
|
6541
6543
|
return {
|
|
@@ -6597,23 +6599,32 @@
|
|
|
6597
6599
|
|
|
6598
6600
|
const getDeliveryData = (formData) => {
|
|
6599
6601
|
const { methodObtain, deliveryDate = '' } = formData;
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6602
|
+
const isCourierDelivery = methodObtain === 'courier';
|
|
6603
|
+
return isCourierDelivery
|
|
6604
|
+
? {
|
|
6605
|
+
courierDeliveryFlg: isCourierDelivery,
|
|
6606
|
+
deliveryDate: dateToISO(deliveryDate),
|
|
6607
|
+
deliveryTimeCd: { value: 'TIME_2' },
|
|
6608
|
+
}
|
|
6609
|
+
: {};
|
|
6605
6610
|
};
|
|
6606
6611
|
const getOfficeCode = (formData) => {
|
|
6607
|
-
const { addressRetail } = formData;
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6612
|
+
const { addressRetail, methodObtain } = formData;
|
|
6613
|
+
const isOfficeObtain = addressRetail?.key && methodObtain === 'office';
|
|
6614
|
+
return isOfficeObtain
|
|
6615
|
+
? {
|
|
6616
|
+
office: { id: addressRetail.key },
|
|
6617
|
+
}
|
|
6618
|
+
: {};
|
|
6611
6619
|
};
|
|
6612
6620
|
const getSixthStepData = (formData) => {
|
|
6613
|
-
const { addressCourier } = formData;
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6621
|
+
const { addressCourier, methodObtain } = formData;
|
|
6622
|
+
const isCourierDelivery = methodObtain === 'courier';
|
|
6623
|
+
return isCourierDelivery
|
|
6624
|
+
? {
|
|
6625
|
+
participantAddresses: getParticipantAddresses({ addressCourier }),
|
|
6626
|
+
}
|
|
6627
|
+
: {};
|
|
6617
6628
|
};
|
|
6618
6629
|
|
|
6619
6630
|
const getThirdStepData$1 = (formData) => {
|
|
@@ -6664,6 +6675,7 @@
|
|
|
6664
6675
|
...getCurrentStepData$1(step, formData),
|
|
6665
6676
|
},
|
|
6666
6677
|
],
|
|
6678
|
+
...getCardData(formData),
|
|
6667
6679
|
...getDeliveryData(formData),
|
|
6668
6680
|
},
|
|
6669
6681
|
};
|
|
@@ -6671,7 +6683,7 @@
|
|
|
6671
6683
|
const getCurrentStepData$1 = (step, formData) => {
|
|
6672
6684
|
switch (step) {
|
|
6673
6685
|
case 0:
|
|
6674
|
-
return
|
|
6686
|
+
return {};
|
|
6675
6687
|
case 1:
|
|
6676
6688
|
return getSecondStepData$1(formData);
|
|
6677
6689
|
case 2:
|
|
@@ -6773,8 +6785,8 @@
|
|
|
6773
6785
|
{ fieldType: 'common', name: 'middleName', dadata: true, filledByEsia: true },
|
|
6774
6786
|
{ fieldType: 'common', name: 'sex', required: true },
|
|
6775
6787
|
{ fieldType: 'common', name: 'limitedBirthday', required: true, filledByEsia: true },
|
|
6776
|
-
{ fieldType: 'common', name: 'birthPlace', required: true },
|
|
6777
|
-
{ fieldType: 'common', name: 'phone', required: true },
|
|
6788
|
+
{ fieldType: 'common', name: 'birthPlace', required: true, filledByEsia: true },
|
|
6789
|
+
{ fieldType: 'common', name: 'phone', required: true, filledByEsia: true },
|
|
6778
6790
|
{ fieldType: 'common', name: 'email', required: true, dadata: true },
|
|
6779
6791
|
],
|
|
6780
6792
|
},
|
|
@@ -6858,7 +6870,7 @@
|
|
|
6858
6870
|
},
|
|
6859
6871
|
{
|
|
6860
6872
|
inputs: [
|
|
6861
|
-
{ fieldType: 'common', name: 'employment' },
|
|
6873
|
+
{ fieldType: 'common', name: 'employment', required: true },
|
|
6862
6874
|
{ fieldType: 'common', name: 'organizationName', required: true, dadata: true },
|
|
6863
6875
|
],
|
|
6864
6876
|
},
|
|
@@ -6871,15 +6883,15 @@
|
|
|
6871
6883
|
},
|
|
6872
6884
|
{
|
|
6873
6885
|
inputs: [
|
|
6874
|
-
{ fieldType: 'common', name: 'organization', required:
|
|
6875
|
-
{ fieldType: 'common', name: 'amountWorkers', required:
|
|
6886
|
+
{ fieldType: 'common', name: 'organization', required: true },
|
|
6887
|
+
{ fieldType: 'common', name: 'amountWorkers', required: true },
|
|
6876
6888
|
],
|
|
6877
6889
|
},
|
|
6878
6890
|
{
|
|
6879
6891
|
columns: 2,
|
|
6880
6892
|
inputs: [
|
|
6881
|
-
{ fieldType: 'common', name: 'employerActivities', required:
|
|
6882
|
-
{ fieldType: 'common', name: 'employerOrganization', required:
|
|
6893
|
+
{ fieldType: 'common', name: 'employerActivities', required: true },
|
|
6894
|
+
{ fieldType: 'common', name: 'employerOrganization', required: true },
|
|
6883
6895
|
{ fieldType: 'common', name: 'generalSeniority', required: true },
|
|
6884
6896
|
{ fieldType: 'common', name: 'lastJobExperience', required: true },
|
|
6885
6897
|
{ fieldType: 'common', name: 'experience5Years', required: true },
|
|
@@ -6900,7 +6912,7 @@
|
|
|
6900
6912
|
{
|
|
6901
6913
|
columns: 2,
|
|
6902
6914
|
inputs: [
|
|
6903
|
-
{ fieldType: 'common', name: 'positionOrganization', required:
|
|
6915
|
+
{ fieldType: 'common', name: 'positionOrganization', required: true },
|
|
6904
6916
|
{
|
|
6905
6917
|
fieldType: 'common',
|
|
6906
6918
|
name: 'partInBusiness',
|
|
@@ -6947,6 +6959,10 @@
|
|
|
6947
6959
|
},
|
|
6948
6960
|
],
|
|
6949
6961
|
},
|
|
6962
|
+
{
|
|
6963
|
+
columns: 1,
|
|
6964
|
+
inputs: [{ fieldType: 'common', name: 'confirmationIncome', required: true }],
|
|
6965
|
+
},
|
|
6950
6966
|
{
|
|
6951
6967
|
columns: 1,
|
|
6952
6968
|
inputs: [{ fieldType: 'common', name: 'wages', required: true }],
|
|
@@ -6984,7 +7000,12 @@
|
|
|
6984
7000
|
inputs: [{ fieldType: 'common', name: 'shareholderFlg' }],
|
|
6985
7001
|
},
|
|
6986
7002
|
{
|
|
6987
|
-
inputs: [
|
|
7003
|
+
inputs: [
|
|
7004
|
+
{
|
|
7005
|
+
fieldType: 'common',
|
|
7006
|
+
name: 'legalEntityName',
|
|
7007
|
+
},
|
|
7008
|
+
],
|
|
6988
7009
|
},
|
|
6989
7010
|
{
|
|
6990
7011
|
inputs: [{ fieldType: 'common', name: 'creditInRshbCd' }],
|
|
@@ -7357,7 +7378,6 @@
|
|
|
7357
7378
|
});
|
|
7358
7379
|
const checkIsRetiree = (step, getValue) => step === 2 && getValue('employment')?.key === 'RETIREE';
|
|
7359
7380
|
const checkBusinessOwner = ({ name }, getValue) => name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
|
|
7360
|
-
const checkConsentPfrFlg = ({ name }, getValue) => name === 'snils' && isSnilsRequired(getValue);
|
|
7361
7381
|
const checkAddressFillFromESIA = ({ name, filledByEsia }, getValue) => name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
|
|
7362
7382
|
const checkAddressFact = ({ name }, getValue) => name === 'addressFact' && getValue('addressMatch');
|
|
7363
7383
|
const checkCondition = ({ condition }, getValue) => condition?.name &&
|
|
@@ -7365,6 +7385,7 @@
|
|
|
7365
7385
|
const dataValue = getValue(condition?.name);
|
|
7366
7386
|
return _ !== (dataValue?.key ?? dataValue);
|
|
7367
7387
|
});
|
|
7388
|
+
const checkConsentPfrFlg = ({ name }, getValue) => name === 'snils' && isSnilsRequired(getValue);
|
|
7368
7389
|
const isSnilsRequired = (getValue) => getValue('confirmationIncome')?.key !== 'PFR_CERTIFICATE';
|
|
7369
7390
|
|
|
7370
7391
|
const renderInfo$1 = (inputs = []) => {
|
|
@@ -7720,7 +7741,7 @@
|
|
|
7720
7741
|
},
|
|
7721
7742
|
{
|
|
7722
7743
|
inputs: [
|
|
7723
|
-
{ fieldType: 'common', name: 'employment' },
|
|
7744
|
+
{ fieldType: 'common', name: 'employment', required: true },
|
|
7724
7745
|
{ fieldType: 'common', name: 'organizationName', required: true, dadata: true },
|
|
7725
7746
|
],
|
|
7726
7747
|
},
|
|
@@ -7733,15 +7754,15 @@
|
|
|
7733
7754
|
},
|
|
7734
7755
|
{
|
|
7735
7756
|
inputs: [
|
|
7736
|
-
{ fieldType: 'common', name: 'organization', required:
|
|
7737
|
-
{ fieldType: 'common', name: 'amountWorkers', required:
|
|
7757
|
+
{ fieldType: 'common', name: 'organization', required: true },
|
|
7758
|
+
{ fieldType: 'common', name: 'amountWorkers', required: true },
|
|
7738
7759
|
],
|
|
7739
7760
|
},
|
|
7740
7761
|
{
|
|
7741
7762
|
columns: 2,
|
|
7742
7763
|
inputs: [
|
|
7743
|
-
{ fieldType: 'common', name: 'employerActivities', required:
|
|
7744
|
-
{ fieldType: 'common', name: 'employerOrganization', required:
|
|
7764
|
+
{ fieldType: 'common', name: 'employerActivities', required: true },
|
|
7765
|
+
{ fieldType: 'common', name: 'employerOrganization', required: true },
|
|
7745
7766
|
{ fieldType: 'common', name: 'generalSeniority', required: true },
|
|
7746
7767
|
{ fieldType: 'common', name: 'lastJobExperience', required: true },
|
|
7747
7768
|
{ fieldType: 'common', name: 'experience5Years', required: true },
|
|
@@ -7762,7 +7783,7 @@
|
|
|
7762
7783
|
{
|
|
7763
7784
|
columns: 2,
|
|
7764
7785
|
inputs: [
|
|
7765
|
-
{ fieldType: 'common', name: 'positionOrganization', required:
|
|
7786
|
+
{ fieldType: 'common', name: 'positionOrganization', required: true },
|
|
7766
7787
|
{
|
|
7767
7788
|
fieldType: 'common',
|
|
7768
7789
|
name: 'partInBusiness',
|
|
@@ -9965,7 +9986,7 @@
|
|
|
9965
9986
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
9966
9987
|
});
|
|
9967
9988
|
|
|
9968
|
-
const packageVersion = "0.14.
|
|
9989
|
+
const packageVersion = "0.14.690";
|
|
9969
9990
|
|
|
9970
9991
|
exports.Blocks = Blocks;
|
|
9971
9992
|
exports.ContentPage = ContentPage;
|