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