@redneckz/wildless-cms-uni-blocks 0.14.952 → 0.14.954
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 +178 -65
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/retail/utils/calculateInputs.d.ts +1 -1
- package/bundle/retail/utils/renderStep.d.ts +1 -2
- package/bundle/retail/validator/getRetailFormValidator.d.ts +1 -2
- package/dist/components/CreditCardForm/CreditCardFormStep.js +1 -2
- package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/dist/components/CreditCardForm/creditCardFormStepsData.js +84 -13
- package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStep.js +1 -2
- package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js +52 -8
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/DebitForm/DebitFormStep.js +1 -2
- package/dist/components/DebitForm/DebitFormStep.js.map +1 -1
- package/dist/retail/adaptors/getEmploymentData.js +25 -21
- package/dist/retail/adaptors/getEmploymentData.js.map +1 -1
- package/dist/retail/utils/calculateInputs.d.ts +1 -1
- package/dist/retail/utils/calculateInputs.js +2 -6
- package/dist/retail/utils/calculateInputs.js.map +1 -1
- package/dist/retail/utils/renderStep.d.ts +1 -2
- package/dist/retail/utils/renderStep.js +2 -2
- package/dist/retail/utils/renderStep.js.map +1 -1
- package/dist/retail/validator/getRetailFormValidator.d.ts +1 -2
- package/dist/retail/validator/getRetailFormValidator.js +1 -1
- package/dist/retail/validator/getRetailFormValidator.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CallbackTimeField.js +8 -7
- package/dist/ui-kit/FormField/Fields/CallbackTimeField.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStep.js +1 -2
- package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/lib/components/CreditCardForm/creditCardFormStepsData.js +84 -13
- package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStep.js +1 -2
- package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js +52 -8
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/DebitForm/DebitFormStep.js +1 -2
- package/lib/components/DebitForm/DebitFormStep.js.map +1 -1
- package/lib/retail/adaptors/getEmploymentData.js +25 -21
- package/lib/retail/adaptors/getEmploymentData.js.map +1 -1
- package/lib/retail/utils/calculateInputs.d.ts +1 -1
- package/lib/retail/utils/calculateInputs.js +2 -6
- package/lib/retail/utils/calculateInputs.js.map +1 -1
- package/lib/retail/utils/renderStep.d.ts +1 -2
- package/lib/retail/utils/renderStep.js +2 -2
- package/lib/retail/utils/renderStep.js.map +1 -1
- package/lib/retail/validator/getRetailFormValidator.d.ts +1 -2
- package/lib/retail/validator/getRetailFormValidator.js +1 -1
- package/lib/retail/validator/getRetailFormValidator.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CallbackTimeField.js +8 -7
- package/lib/ui-kit/FormField/Fields/CallbackTimeField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +178 -65
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/retail/utils/calculateInputs.d.ts +1 -1
- package/mobile/bundle/retail/utils/renderStep.d.ts +1 -2
- package/mobile/bundle/retail/validator/getRetailFormValidator.d.ts +1 -2
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +1 -2
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +84 -13
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStep.js +1 -2
- package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +52 -8
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/components/DebitForm/DebitFormStep.js +1 -2
- package/mobile/dist/components/DebitForm/DebitFormStep.js.map +1 -1
- package/mobile/dist/retail/adaptors/getEmploymentData.js +25 -21
- package/mobile/dist/retail/adaptors/getEmploymentData.js.map +1 -1
- package/mobile/dist/retail/utils/calculateInputs.d.ts +1 -1
- package/mobile/dist/retail/utils/calculateInputs.js +2 -6
- package/mobile/dist/retail/utils/calculateInputs.js.map +1 -1
- package/mobile/dist/retail/utils/renderStep.d.ts +1 -2
- package/mobile/dist/retail/utils/renderStep.js +2 -2
- package/mobile/dist/retail/utils/renderStep.js.map +1 -1
- package/mobile/dist/retail/validator/getRetailFormValidator.d.ts +1 -2
- package/mobile/dist/retail/validator/getRetailFormValidator.js +1 -1
- package/mobile/dist/retail/validator/getRetailFormValidator.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CallbackTimeField.js +8 -7
- package/mobile/dist/ui-kit/FormField/Fields/CallbackTimeField.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +1 -2
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +84 -13
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStep.js +1 -2
- package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +52 -8
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/components/DebitForm/DebitFormStep.js +1 -2
- package/mobile/lib/components/DebitForm/DebitFormStep.js.map +1 -1
- package/mobile/lib/retail/adaptors/getEmploymentData.js +25 -21
- package/mobile/lib/retail/adaptors/getEmploymentData.js.map +1 -1
- package/mobile/lib/retail/utils/calculateInputs.d.ts +1 -1
- package/mobile/lib/retail/utils/calculateInputs.js +2 -6
- package/mobile/lib/retail/utils/calculateInputs.js.map +1 -1
- package/mobile/lib/retail/utils/renderStep.d.ts +1 -2
- package/mobile/lib/retail/utils/renderStep.js +2 -2
- package/mobile/lib/retail/utils/renderStep.js.map +1 -1
- package/mobile/lib/retail/validator/getRetailFormValidator.d.ts +1 -2
- package/mobile/lib/retail/validator/getRetailFormValidator.js +1 -1
- package/mobile/lib/retail/validator/getRetailFormValidator.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CallbackTimeField.js +8 -7
- package/mobile/lib/ui-kit/FormField/Fields/CallbackTimeField.js.map +1 -1
- package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +1 -2
- package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +84 -13
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +1 -2
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +52 -8
- package/mobile/src/components/DebitForm/DebitFormStep.tsx +1 -2
- package/mobile/src/retail/adaptors/getEmploymentData.tsx +25 -21
- package/mobile/src/retail/utils/calculateInputs.ts +2 -10
- package/mobile/src/retail/utils/renderStep.tsx +1 -3
- package/mobile/src/retail/validator/getRetailFormValidator.ts +1 -3
- package/mobile/src/ui-kit/FormField/Fields/CallbackTimeField.tsx +2 -1
- package/package.json +1 -1
- package/src/components/CreditCardForm/CreditCardFormStep.tsx +1 -2
- package/src/components/CreditCardForm/creditCardFormStepsData.tsx +84 -13
- package/src/components/CreditForm/CreditFormStep.tsx +1 -2
- package/src/components/CreditForm/creditFormStepsData.tsx +52 -8
- package/src/components/DebitForm/DebitFormStep.tsx +1 -2
- package/src/retail/adaptors/getEmploymentData.tsx +25 -21
- package/src/retail/utils/calculateInputs.ts +2 -10
- package/src/retail/utils/renderStep.tsx +1 -3
- package/src/retail/validator/getRetailFormValidator.ts +1 -3
- package/src/ui-kit/FormField/Fields/CallbackTimeField.tsx +2 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -2448,18 +2448,19 @@
|
|
|
2448
2448
|
key: 'Перезвонить сейчас',
|
|
2449
2449
|
text: 'Перезвонить сейчас',
|
|
2450
2450
|
},
|
|
2451
|
+
/* Временно убрать, требование от бизнеса
|
|
2451
2452
|
{
|
|
2452
|
-
|
|
2453
|
-
|
|
2453
|
+
key: 'Перезвонить через час',
|
|
2454
|
+
text: 'Перезвонить через час',
|
|
2454
2455
|
},
|
|
2455
2456
|
{
|
|
2456
|
-
|
|
2457
|
-
|
|
2457
|
+
key: 'Перезвонить через два часа',
|
|
2458
|
+
text: 'Перезвонить через два часа',
|
|
2458
2459
|
},
|
|
2459
2460
|
{
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
},
|
|
2461
|
+
key: 'Перезвонить завтра',
|
|
2462
|
+
text: 'Перезвонить завтра',
|
|
2463
|
+
}, */
|
|
2463
2464
|
];
|
|
2464
2465
|
const CallbackTimeField = JSX(({ field, input }) => (jsx(SelectControl, { label: "\u041A\u043E\u0433\u0434\u0430 \u043F\u0435\u0440\u0435\u0437\u0432\u043E\u043D\u0438\u0442\u044C?", ...input, options: CALLBACK_TIME, ...field(input?.name ?? '') })));
|
|
2465
2466
|
|
|
@@ -8986,12 +8987,10 @@
|
|
|
8986
8987
|
return statusesMap[status] || jsx(ReworkStatusContent$1, {});
|
|
8987
8988
|
};
|
|
8988
8989
|
|
|
8989
|
-
const calculateInputs = (getValue) => (inputs
|
|
8990
|
+
const calculateInputs = (getValue) => (inputs) => inputs
|
|
8990
8991
|
.filter((_) => _)
|
|
8991
8992
|
.map((_) => {
|
|
8992
8993
|
if ([
|
|
8993
|
-
checkIsRetiree(step, getValue),
|
|
8994
|
-
checkIsUnemployedRetiree(_, getValue),
|
|
8995
8994
|
checkBusinessOwner(_, getValue),
|
|
8996
8995
|
checkConsentPfrFlg(_, getValue),
|
|
8997
8996
|
checkAddressFillFromESIA(_, getValue),
|
|
@@ -9002,13 +9001,11 @@
|
|
|
9002
9001
|
}
|
|
9003
9002
|
return _;
|
|
9004
9003
|
});
|
|
9005
|
-
const checkIsRetiree = (step, getValue) => step === 2 && getValue('employment')?.key === 'RETIREE';
|
|
9006
|
-
const checkIsUnemployedRetiree = ({ name }, getValue) => name === 'wages' && getValue('employment')?.key === 'RETIREE' && !getValue('inn');
|
|
9007
9004
|
const checkBusinessOwner = ({ name }, getValue) => name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
|
|
9008
9005
|
const checkAddressFillFromESIA = ({ name, filledByEsia }, getValue) => name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
|
|
9009
9006
|
const checkAddressFact = ({ name }, getValue) => name === 'addressFact' && getValue('addressMatch');
|
|
9010
9007
|
const checkCondition = ({ condition }, getValue) => condition?.name &&
|
|
9011
|
-
condition?.values?.
|
|
9008
|
+
condition?.values?.every((_) => {
|
|
9012
9009
|
const dataValue = getValue(condition?.name);
|
|
9013
9010
|
return _ !== (dataValue?.key ?? dataValue);
|
|
9014
9011
|
});
|
|
@@ -9018,8 +9015,8 @@
|
|
|
9018
9015
|
const InputsMap = { ...InputsRetailMap, ...InputRetailCardMap };
|
|
9019
9016
|
const renderInputs = ({ field, inputs, params }) => inputs.map(getField(field, params, InputsMap));
|
|
9020
9017
|
|
|
9021
|
-
const renderStep$1 = ({ sections, field,
|
|
9022
|
-
const inputs = calculateInputs(getValue(field))(origInputs
|
|
9018
|
+
const renderStep$1 = ({ sections, field, params, }) => sections?.map(({ inputs: origInputs = [], columns, title, condition }, i) => {
|
|
9019
|
+
const inputs = calculateInputs(getValue(field))(origInputs);
|
|
9023
9020
|
const cleanElements = [
|
|
9024
9021
|
!checkCondition({ condition }, getValue(field)) ? renderTitle(title) : null,
|
|
9025
9022
|
...renderInputs({ field, inputs, params }),
|
|
@@ -9030,7 +9027,7 @@
|
|
|
9030
9027
|
});
|
|
9031
9028
|
const getValue = (field) => (name) => field(name)?.value;
|
|
9032
9029
|
|
|
9033
|
-
const getRetailFormValidator = ({ formState, inputs,
|
|
9030
|
+
const getRetailFormValidator = ({ formState, inputs, productType, }) => getFormValidator(calculateInputs((_) => formState[_])(inputs), {
|
|
9034
9031
|
...validatorObj,
|
|
9035
9032
|
limitedBirthday: getLimitedBirthdayValidation(productType),
|
|
9036
9033
|
dulIssueDate: passportValidator(formState.limitedBirthday),
|
|
@@ -9175,27 +9172,31 @@
|
|
|
9175
9172
|
|
|
9176
9173
|
const getEmploymentData = (formData) => {
|
|
9177
9174
|
const { beginDate, employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, partInBusiness, } = formData;
|
|
9178
|
-
return
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9175
|
+
return employment?.key === 'RETIREE'
|
|
9176
|
+
? {
|
|
9177
|
+
employmentTypeCd: employment,
|
|
9178
|
+
}
|
|
9179
|
+
: {
|
|
9180
|
+
employmentContractDate: formatDate(beginDate || '', true),
|
|
9181
|
+
employmentTypeCd: employment,
|
|
9182
|
+
organizationName,
|
|
9183
|
+
organizationInn: inn,
|
|
9184
|
+
organizationActivityTypeCd: employerActivities?.key ? employerActivities : undefined,
|
|
9185
|
+
organizationTypeCd: organization,
|
|
9186
|
+
organizationKindCd: employerOrganization,
|
|
9187
|
+
employeesNumberCd: amountWorkers,
|
|
9188
|
+
opf: legalForm,
|
|
9189
|
+
seniority: generalSeniority,
|
|
9190
|
+
generalSeniority: experience5Years,
|
|
9191
|
+
jobsNumber,
|
|
9192
|
+
lastWorkDuration: lastJobExperience,
|
|
9193
|
+
positionCd: positionOrganization?.key ? positionOrganization : undefined,
|
|
9194
|
+
participantContacts: getParticipantContacts$1({
|
|
9195
|
+
organizationPhone: organizationPhone && formatPhone(organizationPhone),
|
|
9196
|
+
}),
|
|
9197
|
+
participantAddresses: getParticipantAddresses$1({ organizationAddress }),
|
|
9198
|
+
ownershipShare: positionOrganization?.key === 'BUSINESS_OWNER' ? partInBusiness : undefined,
|
|
9199
|
+
};
|
|
9199
9200
|
};
|
|
9200
9201
|
|
|
9201
9202
|
const getPersonalInfoData = (formData) => {
|
|
@@ -9362,7 +9363,6 @@
|
|
|
9362
9363
|
const formValidator = useCallback((formState) => getRetailFormValidator({
|
|
9363
9364
|
formState,
|
|
9364
9365
|
inputs,
|
|
9365
|
-
step,
|
|
9366
9366
|
productType: PRODUCT_TYPE$2,
|
|
9367
9367
|
}), [inputs]);
|
|
9368
9368
|
const [initialState, onSubmit, isSending] = useCreditCardFormAPI({
|
|
@@ -9374,7 +9374,7 @@
|
|
|
9374
9374
|
formValidator,
|
|
9375
9375
|
onSubmit,
|
|
9376
9376
|
});
|
|
9377
|
-
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field
|
|
9377
|
+
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field }), jsx(StepsNavigationButtons$2, { isSending: isSending, step: step, onPrevStep: onPrevStep })] }));
|
|
9378
9378
|
});
|
|
9379
9379
|
|
|
9380
9380
|
const PERSONAL_DATA = [
|
|
@@ -9580,6 +9580,7 @@
|
|
|
9580
9580
|
name: 'infoCard',
|
|
9581
9581
|
label: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
|
|
9582
9582
|
'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
|
|
9583
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9583
9584
|
},
|
|
9584
9585
|
],
|
|
9585
9586
|
},
|
|
@@ -9589,40 +9590,94 @@
|
|
|
9589
9590
|
{
|
|
9590
9591
|
columns: 2,
|
|
9591
9592
|
inputs: [
|
|
9592
|
-
{
|
|
9593
|
-
|
|
9593
|
+
{
|
|
9594
|
+
name: 'organizationName',
|
|
9595
|
+
required: true,
|
|
9596
|
+
dadata: true,
|
|
9597
|
+
filledByEsia: true,
|
|
9598
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9599
|
+
},
|
|
9600
|
+
{
|
|
9601
|
+
name: 'inn',
|
|
9602
|
+
required: true,
|
|
9603
|
+
dadata: true,
|
|
9604
|
+
filledByEsia: true,
|
|
9605
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9606
|
+
},
|
|
9594
9607
|
],
|
|
9595
9608
|
},
|
|
9596
9609
|
{
|
|
9597
|
-
inputs: [
|
|
9610
|
+
inputs: [
|
|
9611
|
+
{
|
|
9612
|
+
name: 'amountWorkers',
|
|
9613
|
+
required: true,
|
|
9614
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9615
|
+
},
|
|
9616
|
+
],
|
|
9598
9617
|
},
|
|
9599
9618
|
{
|
|
9600
9619
|
columns: 2,
|
|
9601
9620
|
inputs: [
|
|
9602
|
-
{
|
|
9621
|
+
{
|
|
9622
|
+
name: 'employerActivities',
|
|
9623
|
+
required: true,
|
|
9624
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9625
|
+
},
|
|
9603
9626
|
{
|
|
9604
9627
|
name: 'organizationPhone',
|
|
9605
9628
|
label: 'Телефон работодателя',
|
|
9606
9629
|
required: true,
|
|
9630
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9607
9631
|
},
|
|
9608
9632
|
],
|
|
9609
9633
|
},
|
|
9610
9634
|
{
|
|
9611
9635
|
columns: 2,
|
|
9612
9636
|
inputs: [
|
|
9613
|
-
{
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9637
|
+
{
|
|
9638
|
+
name: 'generalSeniority',
|
|
9639
|
+
required: true,
|
|
9640
|
+
filledByEsia: true,
|
|
9641
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9642
|
+
},
|
|
9643
|
+
{
|
|
9644
|
+
name: 'lastJobExperience',
|
|
9645
|
+
required: true,
|
|
9646
|
+
filledByEsia: true,
|
|
9647
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9648
|
+
},
|
|
9649
|
+
{
|
|
9650
|
+
name: 'experience5Years',
|
|
9651
|
+
required: true,
|
|
9652
|
+
filledByEsia: true,
|
|
9653
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9654
|
+
},
|
|
9655
|
+
{
|
|
9656
|
+
name: 'jobsNumber',
|
|
9657
|
+
required: true,
|
|
9658
|
+
filledByEsia: true,
|
|
9659
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9660
|
+
},
|
|
9617
9661
|
],
|
|
9618
9662
|
},
|
|
9619
9663
|
{
|
|
9620
|
-
inputs: [
|
|
9664
|
+
inputs: [
|
|
9665
|
+
{
|
|
9666
|
+
name: 'beginDate',
|
|
9667
|
+
required: true,
|
|
9668
|
+
filledByEsia: true,
|
|
9669
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9670
|
+
},
|
|
9671
|
+
],
|
|
9621
9672
|
},
|
|
9622
9673
|
{
|
|
9623
9674
|
columns: 2,
|
|
9624
9675
|
inputs: [
|
|
9625
|
-
{
|
|
9676
|
+
{
|
|
9677
|
+
name: 'positionOrganization',
|
|
9678
|
+
required: true,
|
|
9679
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9680
|
+
},
|
|
9626
9681
|
{
|
|
9627
9682
|
name: 'partInBusiness',
|
|
9628
9683
|
required: true,
|
|
@@ -9633,9 +9688,17 @@
|
|
|
9633
9688
|
{
|
|
9634
9689
|
title: 'Адрес работодателя',
|
|
9635
9690
|
inputs: [],
|
|
9691
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9636
9692
|
},
|
|
9637
9693
|
{
|
|
9638
|
-
inputs: [
|
|
9694
|
+
inputs: [
|
|
9695
|
+
{
|
|
9696
|
+
name: 'organizationAddress',
|
|
9697
|
+
required: true,
|
|
9698
|
+
dadata: true,
|
|
9699
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9700
|
+
},
|
|
9701
|
+
],
|
|
9639
9702
|
},
|
|
9640
9703
|
];
|
|
9641
9704
|
const FAMILY_STATUS_AND_INCOME_CONTENT$1 = [
|
|
@@ -9672,12 +9735,20 @@
|
|
|
9672
9735
|
{
|
|
9673
9736
|
name: 'infoCard',
|
|
9674
9737
|
label: 'Сумма основного и дополнительных доходов после вычета налога',
|
|
9738
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9675
9739
|
},
|
|
9676
9740
|
],
|
|
9677
9741
|
},
|
|
9678
9742
|
{
|
|
9679
9743
|
columns: 1,
|
|
9680
|
-
inputs: [
|
|
9744
|
+
inputs: [
|
|
9745
|
+
{
|
|
9746
|
+
name: 'wages',
|
|
9747
|
+
required: true,
|
|
9748
|
+
filledByEsia: true,
|
|
9749
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9750
|
+
},
|
|
9751
|
+
],
|
|
9681
9752
|
},
|
|
9682
9753
|
{
|
|
9683
9754
|
columns: 1,
|
|
@@ -9685,7 +9756,7 @@
|
|
|
9685
9756
|
{
|
|
9686
9757
|
name: 'retirementIncome',
|
|
9687
9758
|
required: true,
|
|
9688
|
-
condition: { name: 'employment', values: ['RETIREE'] },
|
|
9759
|
+
condition: { name: 'employment', values: ['RETIREE', 'WORK_RETIREE'] },
|
|
9689
9760
|
},
|
|
9690
9761
|
],
|
|
9691
9762
|
},
|
|
@@ -10103,7 +10174,6 @@
|
|
|
10103
10174
|
const formValidator = useCallback((formState) => getRetailFormValidator({
|
|
10104
10175
|
formState,
|
|
10105
10176
|
inputs,
|
|
10106
|
-
step,
|
|
10107
10177
|
productType: PRODUCT_TYPE$1,
|
|
10108
10178
|
}), [inputs]);
|
|
10109
10179
|
const [initialState, onSubmit, isSending] = useCreditFormAPI({
|
|
@@ -10115,7 +10185,7 @@
|
|
|
10115
10185
|
formValidator,
|
|
10116
10186
|
onSubmit,
|
|
10117
10187
|
});
|
|
10118
|
-
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field,
|
|
10188
|
+
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field, params: { calcData } }), jsx(StepsNavigationButtons$1, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
|
|
10119
10189
|
});
|
|
10120
10190
|
|
|
10121
10191
|
/* eslint-disable max-lines */
|
|
@@ -10156,6 +10226,7 @@
|
|
|
10156
10226
|
name: 'infoCard',
|
|
10157
10227
|
label: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
|
|
10158
10228
|
'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
|
|
10229
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10159
10230
|
},
|
|
10160
10231
|
],
|
|
10161
10232
|
},
|
|
@@ -10165,34 +10236,69 @@
|
|
|
10165
10236
|
{
|
|
10166
10237
|
columns: 2,
|
|
10167
10238
|
inputs: [
|
|
10168
|
-
{
|
|
10169
|
-
|
|
10239
|
+
{
|
|
10240
|
+
name: 'organizationName',
|
|
10241
|
+
required: true,
|
|
10242
|
+
dadata: true,
|
|
10243
|
+
filledByEsia: true,
|
|
10244
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10245
|
+
},
|
|
10246
|
+
{
|
|
10247
|
+
name: 'inn',
|
|
10248
|
+
required: true,
|
|
10249
|
+
dadata: true,
|
|
10250
|
+
filledByEsia: true,
|
|
10251
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10252
|
+
},
|
|
10170
10253
|
],
|
|
10171
10254
|
},
|
|
10172
10255
|
{
|
|
10173
10256
|
columns: 2,
|
|
10174
10257
|
inputs: [
|
|
10175
|
-
{
|
|
10258
|
+
{
|
|
10259
|
+
name: 'amountWorkers',
|
|
10260
|
+
required: true,
|
|
10261
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10262
|
+
},
|
|
10176
10263
|
{
|
|
10177
10264
|
name: 'organizationPhone',
|
|
10178
10265
|
label: 'Телефон работодателя',
|
|
10179
10266
|
required: true,
|
|
10267
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10180
10268
|
},
|
|
10181
10269
|
],
|
|
10182
10270
|
},
|
|
10183
10271
|
{
|
|
10184
10272
|
columns: 2,
|
|
10185
10273
|
inputs: [
|
|
10186
|
-
{
|
|
10187
|
-
|
|
10274
|
+
{
|
|
10275
|
+
name: 'jobsNumber',
|
|
10276
|
+
required: true,
|
|
10277
|
+
filledByEsia: true,
|
|
10278
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10279
|
+
},
|
|
10280
|
+
{
|
|
10281
|
+
name: 'beginDate',
|
|
10282
|
+
required: true,
|
|
10283
|
+
filledByEsia: true,
|
|
10284
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10285
|
+
},
|
|
10188
10286
|
],
|
|
10189
10287
|
},
|
|
10190
10288
|
{
|
|
10191
10289
|
title: 'Адрес работодателя',
|
|
10192
10290
|
inputs: [],
|
|
10291
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10193
10292
|
},
|
|
10194
10293
|
{
|
|
10195
|
-
inputs: [
|
|
10294
|
+
inputs: [
|
|
10295
|
+
{
|
|
10296
|
+
name: 'organizationAddress',
|
|
10297
|
+
required: true,
|
|
10298
|
+
dadata: true,
|
|
10299
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10300
|
+
},
|
|
10301
|
+
],
|
|
10196
10302
|
},
|
|
10197
10303
|
];
|
|
10198
10304
|
const FAMILY_STATUS_AND_INCOME_CONTENT = [
|
|
@@ -10228,12 +10334,20 @@
|
|
|
10228
10334
|
{
|
|
10229
10335
|
name: 'infoCard',
|
|
10230
10336
|
label: 'Сумма основного и дополнительных доходов после вычета налога',
|
|
10337
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10231
10338
|
},
|
|
10232
10339
|
],
|
|
10233
10340
|
},
|
|
10234
10341
|
{
|
|
10235
10342
|
columns: 1,
|
|
10236
|
-
inputs: [
|
|
10343
|
+
inputs: [
|
|
10344
|
+
{
|
|
10345
|
+
name: 'wages',
|
|
10346
|
+
required: true,
|
|
10347
|
+
filledByEsia: true,
|
|
10348
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10349
|
+
},
|
|
10350
|
+
],
|
|
10237
10351
|
},
|
|
10238
10352
|
{
|
|
10239
10353
|
columns: 1,
|
|
@@ -10241,7 +10355,7 @@
|
|
|
10241
10355
|
{
|
|
10242
10356
|
name: 'retirementIncome',
|
|
10243
10357
|
required: true,
|
|
10244
|
-
condition: { name: 'employment', values: ['RETIREE'] },
|
|
10358
|
+
condition: { name: 'employment', values: ['RETIREE', 'WORK_RETIREE'] },
|
|
10245
10359
|
},
|
|
10246
10360
|
],
|
|
10247
10361
|
},
|
|
@@ -10606,7 +10720,6 @@
|
|
|
10606
10720
|
const formValidator = useCallback((formState) => getRetailFormValidator({
|
|
10607
10721
|
formState,
|
|
10608
10722
|
inputs,
|
|
10609
|
-
step,
|
|
10610
10723
|
productType: PRODUCT_TYPE,
|
|
10611
10724
|
}), [inputs]);
|
|
10612
10725
|
const [initialState, onSubmit, isSending] = useDebitFormAPI({
|
|
@@ -10618,7 +10731,7 @@
|
|
|
10618
10731
|
formValidator,
|
|
10619
10732
|
onSubmit,
|
|
10620
10733
|
});
|
|
10621
|
-
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field
|
|
10734
|
+
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field }), jsx(StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
|
|
10622
10735
|
});
|
|
10623
10736
|
|
|
10624
10737
|
/* eslint-disable max-lines */
|
|
@@ -12796,7 +12909,7 @@
|
|
|
12796
12909
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
12797
12910
|
});
|
|
12798
12911
|
|
|
12799
|
-
const packageVersion = "0.14.
|
|
12912
|
+
const packageVersion = "0.14.953";
|
|
12800
12913
|
|
|
12801
12914
|
exports.Blocks = Blocks;
|
|
12802
12915
|
exports.ContentPage = ContentPage;
|