@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
|
@@ -8978,12 +8978,10 @@
|
|
|
8978
8978
|
return statusesMap[status] || jsx(ReworkStatusContent$1, {});
|
|
8979
8979
|
};
|
|
8980
8980
|
|
|
8981
|
-
const calculateInputs = (getValue) => (inputs
|
|
8981
|
+
const calculateInputs = (getValue) => (inputs) => inputs
|
|
8982
8982
|
.filter((_) => _)
|
|
8983
8983
|
.map((_) => {
|
|
8984
8984
|
if ([
|
|
8985
|
-
checkIsRetiree(step, getValue),
|
|
8986
|
-
checkIsUnemployedRetiree(_, getValue),
|
|
8987
8985
|
checkBusinessOwner(_, getValue),
|
|
8988
8986
|
checkConsentPfrFlg(_, getValue),
|
|
8989
8987
|
checkAddressFillFromESIA(_, getValue),
|
|
@@ -8994,13 +8992,11 @@
|
|
|
8994
8992
|
}
|
|
8995
8993
|
return _;
|
|
8996
8994
|
});
|
|
8997
|
-
const checkIsRetiree = (step, getValue) => step === 2 && getValue('employment')?.key === 'RETIREE';
|
|
8998
|
-
const checkIsUnemployedRetiree = ({ name }, getValue) => name === 'wages' && getValue('employment')?.key === 'RETIREE' && !getValue('inn');
|
|
8999
8995
|
const checkBusinessOwner = ({ name }, getValue) => name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
|
|
9000
8996
|
const checkAddressFillFromESIA = ({ name, filledByEsia }, getValue) => name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
|
|
9001
8997
|
const checkAddressFact = ({ name }, getValue) => name === 'addressFact' && getValue('addressMatch');
|
|
9002
8998
|
const checkCondition = ({ condition }, getValue) => condition?.name &&
|
|
9003
|
-
condition?.values?.
|
|
8999
|
+
condition?.values?.every((_) => {
|
|
9004
9000
|
const dataValue = getValue(condition?.name);
|
|
9005
9001
|
return _ !== (dataValue?.key ?? dataValue);
|
|
9006
9002
|
});
|
|
@@ -9010,8 +9006,8 @@
|
|
|
9010
9006
|
const InputsMap = { ...InputsRetailMap, ...InputRetailCardMap };
|
|
9011
9007
|
const renderInputs = ({ field, inputs, params }) => inputs.map(getField(field, params, InputsMap));
|
|
9012
9008
|
|
|
9013
|
-
const renderStep = ({ sections, field,
|
|
9014
|
-
const inputs = calculateInputs(getValue(field))(origInputs
|
|
9009
|
+
const renderStep = ({ sections, field, params, }) => sections?.map(({ inputs: origInputs = [], columns, title, condition }, i) => {
|
|
9010
|
+
const inputs = calculateInputs(getValue(field))(origInputs);
|
|
9015
9011
|
const cleanElements = [
|
|
9016
9012
|
!checkCondition({ condition }, getValue(field)) ? renderTitle(title) : null,
|
|
9017
9013
|
...renderInputs({ field, inputs, params }),
|
|
@@ -9022,7 +9018,7 @@
|
|
|
9022
9018
|
});
|
|
9023
9019
|
const getValue = (field) => (name) => field(name)?.value;
|
|
9024
9020
|
|
|
9025
|
-
const getRetailFormValidator = ({ formState, inputs,
|
|
9021
|
+
const getRetailFormValidator = ({ formState, inputs, productType, }) => getFormValidator(calculateInputs((_) => formState[_])(inputs), {
|
|
9026
9022
|
...validatorObj,
|
|
9027
9023
|
limitedBirthday: getLimitedBirthdayValidation(productType),
|
|
9028
9024
|
dulIssueDate: passportValidator(formState.limitedBirthday),
|
|
@@ -9167,27 +9163,31 @@
|
|
|
9167
9163
|
|
|
9168
9164
|
const getEmploymentData = (formData) => {
|
|
9169
9165
|
const { beginDate, employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, partInBusiness, } = formData;
|
|
9170
|
-
return
|
|
9171
|
-
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9166
|
+
return employment?.key === 'RETIREE'
|
|
9167
|
+
? {
|
|
9168
|
+
employmentTypeCd: employment,
|
|
9169
|
+
}
|
|
9170
|
+
: {
|
|
9171
|
+
employmentContractDate: formatDate(beginDate || '', true),
|
|
9172
|
+
employmentTypeCd: employment,
|
|
9173
|
+
organizationName,
|
|
9174
|
+
organizationInn: inn,
|
|
9175
|
+
organizationActivityTypeCd: employerActivities?.key ? employerActivities : undefined,
|
|
9176
|
+
organizationTypeCd: organization,
|
|
9177
|
+
organizationKindCd: employerOrganization,
|
|
9178
|
+
employeesNumberCd: amountWorkers,
|
|
9179
|
+
opf: legalForm,
|
|
9180
|
+
seniority: generalSeniority,
|
|
9181
|
+
generalSeniority: experience5Years,
|
|
9182
|
+
jobsNumber,
|
|
9183
|
+
lastWorkDuration: lastJobExperience,
|
|
9184
|
+
positionCd: positionOrganization?.key ? positionOrganization : undefined,
|
|
9185
|
+
participantContacts: getParticipantContacts$1({
|
|
9186
|
+
organizationPhone: organizationPhone && formatPhone(organizationPhone),
|
|
9187
|
+
}),
|
|
9188
|
+
participantAddresses: getParticipantAddresses$1({ organizationAddress }),
|
|
9189
|
+
ownershipShare: positionOrganization?.key === 'BUSINESS_OWNER' ? partInBusiness : undefined,
|
|
9190
|
+
};
|
|
9191
9191
|
};
|
|
9192
9192
|
|
|
9193
9193
|
const getPersonalInfoData = (formData) => {
|
|
@@ -9354,7 +9354,6 @@
|
|
|
9354
9354
|
const formValidator = useCallback((formState) => getRetailFormValidator({
|
|
9355
9355
|
formState,
|
|
9356
9356
|
inputs,
|
|
9357
|
-
step,
|
|
9358
9357
|
productType: PRODUCT_TYPE$2,
|
|
9359
9358
|
}), [inputs]);
|
|
9360
9359
|
const [initialState, onSubmit, isSending] = useCreditCardFormAPI({
|
|
@@ -9366,7 +9365,7 @@
|
|
|
9366
9365
|
formValidator,
|
|
9367
9366
|
onSubmit,
|
|
9368
9367
|
});
|
|
9369
|
-
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field
|
|
9368
|
+
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field }), jsx(StepsNavigationButtons$2, { isSending: isSending, step: step, onPrevStep: onPrevStep })] }));
|
|
9370
9369
|
});
|
|
9371
9370
|
|
|
9372
9371
|
const PERSONAL_DATA = [
|
|
@@ -9572,6 +9571,7 @@
|
|
|
9572
9571
|
name: 'infoCard',
|
|
9573
9572
|
label: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
|
|
9574
9573
|
'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
|
|
9574
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9575
9575
|
},
|
|
9576
9576
|
],
|
|
9577
9577
|
},
|
|
@@ -9581,40 +9581,94 @@
|
|
|
9581
9581
|
{
|
|
9582
9582
|
columns: 2,
|
|
9583
9583
|
inputs: [
|
|
9584
|
-
{
|
|
9585
|
-
|
|
9584
|
+
{
|
|
9585
|
+
name: 'organizationName',
|
|
9586
|
+
required: true,
|
|
9587
|
+
dadata: true,
|
|
9588
|
+
filledByEsia: true,
|
|
9589
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9590
|
+
},
|
|
9591
|
+
{
|
|
9592
|
+
name: 'inn',
|
|
9593
|
+
required: true,
|
|
9594
|
+
dadata: true,
|
|
9595
|
+
filledByEsia: true,
|
|
9596
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9597
|
+
},
|
|
9586
9598
|
],
|
|
9587
9599
|
},
|
|
9588
9600
|
{
|
|
9589
|
-
inputs: [
|
|
9601
|
+
inputs: [
|
|
9602
|
+
{
|
|
9603
|
+
name: 'amountWorkers',
|
|
9604
|
+
required: true,
|
|
9605
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9606
|
+
},
|
|
9607
|
+
],
|
|
9590
9608
|
},
|
|
9591
9609
|
{
|
|
9592
9610
|
columns: 2,
|
|
9593
9611
|
inputs: [
|
|
9594
|
-
{
|
|
9612
|
+
{
|
|
9613
|
+
name: 'employerActivities',
|
|
9614
|
+
required: true,
|
|
9615
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9616
|
+
},
|
|
9595
9617
|
{
|
|
9596
9618
|
name: 'organizationPhone',
|
|
9597
9619
|
label: 'Телефон работодателя',
|
|
9598
9620
|
required: true,
|
|
9621
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9599
9622
|
},
|
|
9600
9623
|
],
|
|
9601
9624
|
},
|
|
9602
9625
|
{
|
|
9603
9626
|
columns: 2,
|
|
9604
9627
|
inputs: [
|
|
9605
|
-
{
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9628
|
+
{
|
|
9629
|
+
name: 'generalSeniority',
|
|
9630
|
+
required: true,
|
|
9631
|
+
filledByEsia: true,
|
|
9632
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9633
|
+
},
|
|
9634
|
+
{
|
|
9635
|
+
name: 'lastJobExperience',
|
|
9636
|
+
required: true,
|
|
9637
|
+
filledByEsia: true,
|
|
9638
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9639
|
+
},
|
|
9640
|
+
{
|
|
9641
|
+
name: 'experience5Years',
|
|
9642
|
+
required: true,
|
|
9643
|
+
filledByEsia: true,
|
|
9644
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9645
|
+
},
|
|
9646
|
+
{
|
|
9647
|
+
name: 'jobsNumber',
|
|
9648
|
+
required: true,
|
|
9649
|
+
filledByEsia: true,
|
|
9650
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9651
|
+
},
|
|
9609
9652
|
],
|
|
9610
9653
|
},
|
|
9611
9654
|
{
|
|
9612
|
-
inputs: [
|
|
9655
|
+
inputs: [
|
|
9656
|
+
{
|
|
9657
|
+
name: 'beginDate',
|
|
9658
|
+
required: true,
|
|
9659
|
+
filledByEsia: true,
|
|
9660
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9661
|
+
},
|
|
9662
|
+
],
|
|
9613
9663
|
},
|
|
9614
9664
|
{
|
|
9615
9665
|
columns: 2,
|
|
9616
9666
|
inputs: [
|
|
9617
|
-
{
|
|
9667
|
+
{
|
|
9668
|
+
name: 'positionOrganization',
|
|
9669
|
+
required: true,
|
|
9670
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9671
|
+
},
|
|
9618
9672
|
{
|
|
9619
9673
|
name: 'partInBusiness',
|
|
9620
9674
|
required: true,
|
|
@@ -9625,9 +9679,17 @@
|
|
|
9625
9679
|
{
|
|
9626
9680
|
title: 'Адрес работодателя',
|
|
9627
9681
|
inputs: [],
|
|
9682
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9628
9683
|
},
|
|
9629
9684
|
{
|
|
9630
|
-
inputs: [
|
|
9685
|
+
inputs: [
|
|
9686
|
+
{
|
|
9687
|
+
name: 'organizationAddress',
|
|
9688
|
+
required: true,
|
|
9689
|
+
dadata: true,
|
|
9690
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9691
|
+
},
|
|
9692
|
+
],
|
|
9631
9693
|
},
|
|
9632
9694
|
];
|
|
9633
9695
|
const FAMILY_STATUS_AND_INCOME_CONTENT$1 = [
|
|
@@ -9664,12 +9726,20 @@
|
|
|
9664
9726
|
{
|
|
9665
9727
|
name: 'infoCard',
|
|
9666
9728
|
label: 'Сумма основного и дополнительных доходов после вычета налога',
|
|
9729
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9667
9730
|
},
|
|
9668
9731
|
],
|
|
9669
9732
|
},
|
|
9670
9733
|
{
|
|
9671
9734
|
columns: 1,
|
|
9672
|
-
inputs: [
|
|
9735
|
+
inputs: [
|
|
9736
|
+
{
|
|
9737
|
+
name: 'wages',
|
|
9738
|
+
required: true,
|
|
9739
|
+
filledByEsia: true,
|
|
9740
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
9741
|
+
},
|
|
9742
|
+
],
|
|
9673
9743
|
},
|
|
9674
9744
|
{
|
|
9675
9745
|
columns: 1,
|
|
@@ -9677,7 +9747,7 @@
|
|
|
9677
9747
|
{
|
|
9678
9748
|
name: 'retirementIncome',
|
|
9679
9749
|
required: true,
|
|
9680
|
-
condition: { name: 'employment', values: ['RETIREE'] },
|
|
9750
|
+
condition: { name: 'employment', values: ['RETIREE', 'WORK_RETIREE'] },
|
|
9681
9751
|
},
|
|
9682
9752
|
],
|
|
9683
9753
|
},
|
|
@@ -10095,7 +10165,6 @@
|
|
|
10095
10165
|
const formValidator = useCallback((formState) => getRetailFormValidator({
|
|
10096
10166
|
formState,
|
|
10097
10167
|
inputs,
|
|
10098
|
-
step,
|
|
10099
10168
|
productType: PRODUCT_TYPE$1,
|
|
10100
10169
|
}), [inputs]);
|
|
10101
10170
|
const [initialState, onSubmit, isSending] = useCreditFormAPI({
|
|
@@ -10107,7 +10176,7 @@
|
|
|
10107
10176
|
formValidator,
|
|
10108
10177
|
onSubmit,
|
|
10109
10178
|
});
|
|
10110
|
-
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field,
|
|
10179
|
+
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field, params: { calcData } }), jsx(StepsNavigationButtons$1, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
|
|
10111
10180
|
});
|
|
10112
10181
|
|
|
10113
10182
|
/* eslint-disable max-lines */
|
|
@@ -10148,6 +10217,7 @@
|
|
|
10148
10217
|
name: 'infoCard',
|
|
10149
10218
|
label: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
|
|
10150
10219
|
'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
|
|
10220
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10151
10221
|
},
|
|
10152
10222
|
],
|
|
10153
10223
|
},
|
|
@@ -10157,34 +10227,69 @@
|
|
|
10157
10227
|
{
|
|
10158
10228
|
columns: 2,
|
|
10159
10229
|
inputs: [
|
|
10160
|
-
{
|
|
10161
|
-
|
|
10230
|
+
{
|
|
10231
|
+
name: 'organizationName',
|
|
10232
|
+
required: true,
|
|
10233
|
+
dadata: true,
|
|
10234
|
+
filledByEsia: true,
|
|
10235
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10236
|
+
},
|
|
10237
|
+
{
|
|
10238
|
+
name: 'inn',
|
|
10239
|
+
required: true,
|
|
10240
|
+
dadata: true,
|
|
10241
|
+
filledByEsia: true,
|
|
10242
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10243
|
+
},
|
|
10162
10244
|
],
|
|
10163
10245
|
},
|
|
10164
10246
|
{
|
|
10165
10247
|
columns: 2,
|
|
10166
10248
|
inputs: [
|
|
10167
|
-
{
|
|
10249
|
+
{
|
|
10250
|
+
name: 'amountWorkers',
|
|
10251
|
+
required: true,
|
|
10252
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10253
|
+
},
|
|
10168
10254
|
{
|
|
10169
10255
|
name: 'organizationPhone',
|
|
10170
10256
|
label: 'Телефон работодателя',
|
|
10171
10257
|
required: true,
|
|
10258
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10172
10259
|
},
|
|
10173
10260
|
],
|
|
10174
10261
|
},
|
|
10175
10262
|
{
|
|
10176
10263
|
columns: 2,
|
|
10177
10264
|
inputs: [
|
|
10178
|
-
{
|
|
10179
|
-
|
|
10265
|
+
{
|
|
10266
|
+
name: 'jobsNumber',
|
|
10267
|
+
required: true,
|
|
10268
|
+
filledByEsia: true,
|
|
10269
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10270
|
+
},
|
|
10271
|
+
{
|
|
10272
|
+
name: 'beginDate',
|
|
10273
|
+
required: true,
|
|
10274
|
+
filledByEsia: true,
|
|
10275
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10276
|
+
},
|
|
10180
10277
|
],
|
|
10181
10278
|
},
|
|
10182
10279
|
{
|
|
10183
10280
|
title: 'Адрес работодателя',
|
|
10184
10281
|
inputs: [],
|
|
10282
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10185
10283
|
},
|
|
10186
10284
|
{
|
|
10187
|
-
inputs: [
|
|
10285
|
+
inputs: [
|
|
10286
|
+
{
|
|
10287
|
+
name: 'organizationAddress',
|
|
10288
|
+
required: true,
|
|
10289
|
+
dadata: true,
|
|
10290
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10291
|
+
},
|
|
10292
|
+
],
|
|
10188
10293
|
},
|
|
10189
10294
|
];
|
|
10190
10295
|
const FAMILY_STATUS_AND_INCOME_CONTENT = [
|
|
@@ -10220,12 +10325,20 @@
|
|
|
10220
10325
|
{
|
|
10221
10326
|
name: 'infoCard',
|
|
10222
10327
|
label: 'Сумма основного и дополнительных доходов после вычета налога',
|
|
10328
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10223
10329
|
},
|
|
10224
10330
|
],
|
|
10225
10331
|
},
|
|
10226
10332
|
{
|
|
10227
10333
|
columns: 1,
|
|
10228
|
-
inputs: [
|
|
10334
|
+
inputs: [
|
|
10335
|
+
{
|
|
10336
|
+
name: 'wages',
|
|
10337
|
+
required: true,
|
|
10338
|
+
filledByEsia: true,
|
|
10339
|
+
condition: { name: 'employment', values: ['WORK', 'WORK_RETIREE'] },
|
|
10340
|
+
},
|
|
10341
|
+
],
|
|
10229
10342
|
},
|
|
10230
10343
|
{
|
|
10231
10344
|
columns: 1,
|
|
@@ -10233,7 +10346,7 @@
|
|
|
10233
10346
|
{
|
|
10234
10347
|
name: 'retirementIncome',
|
|
10235
10348
|
required: true,
|
|
10236
|
-
condition: { name: 'employment', values: ['RETIREE'] },
|
|
10349
|
+
condition: { name: 'employment', values: ['RETIREE', 'WORK_RETIREE'] },
|
|
10237
10350
|
},
|
|
10238
10351
|
],
|
|
10239
10352
|
},
|
|
@@ -10598,7 +10711,6 @@
|
|
|
10598
10711
|
const formValidator = useCallback((formState) => getRetailFormValidator({
|
|
10599
10712
|
formState,
|
|
10600
10713
|
inputs,
|
|
10601
|
-
step,
|
|
10602
10714
|
productType: PRODUCT_TYPE,
|
|
10603
10715
|
}), [inputs]);
|
|
10604
10716
|
const [initialState, onSubmit, isSending] = useDebitFormAPI({
|
|
@@ -10610,7 +10722,7 @@
|
|
|
10610
10722
|
formValidator,
|
|
10611
10723
|
onSubmit,
|
|
10612
10724
|
});
|
|
10613
|
-
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field
|
|
10725
|
+
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field }), jsx(StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
|
|
10614
10726
|
});
|
|
10615
10727
|
|
|
10616
10728
|
/* eslint-disable max-lines */
|
|
@@ -12578,7 +12690,7 @@
|
|
|
12578
12690
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
12579
12691
|
});
|
|
12580
12692
|
|
|
12581
|
-
const packageVersion = "0.14.
|
|
12693
|
+
const packageVersion = "0.14.952";
|
|
12582
12694
|
|
|
12583
12695
|
exports.Blocks = Blocks;
|
|
12584
12696
|
exports.ContentPage = ContentPage;
|