@redneckz/wildless-cms-uni-blocks 0.14.987 → 0.14.989
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 +28 -16
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CreditForm/getCreditInfo.d.ts +4 -0
- package/bundle/retail/inputs.d.ts +0 -1
- package/bundle/retail/model/LeadFormState.d.ts +1 -1
- package/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/consents.js +1 -5
- package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -2
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/CreditForm/PendingStatusContent.js +5 -3
- package/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/dist/components/CreditForm/SuccessStatusContent.js +4 -2
- package/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/dist/components/CreditForm/getCreditInfo.d.ts +4 -0
- package/dist/components/CreditForm/getCreditInfo.js +21 -0
- package/dist/components/CreditForm/getCreditInfo.js.map +1 -0
- package/dist/retail/inputs.d.ts +0 -1
- package/dist/retail/inputs.js +0 -1
- package/dist/retail/inputs.js.map +1 -1
- package/dist/retail/model/LeadFormState.d.ts +1 -1
- package/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/consents.js +1 -5
- package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -2
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/CreditForm/PendingStatusContent.js +5 -3
- package/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/lib/components/CreditForm/SuccessStatusContent.js +4 -2
- package/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/lib/components/CreditForm/getCreditInfo.d.ts +4 -0
- package/lib/components/CreditForm/getCreditInfo.js +18 -0
- package/lib/components/CreditForm/getCreditInfo.js.map +1 -0
- package/lib/retail/inputs.d.ts +0 -1
- package/lib/retail/inputs.js +0 -1
- package/lib/retail/inputs.js.map +1 -1
- package/lib/retail/model/LeadFormState.d.ts +1 -1
- package/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +28 -16
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CreditForm/getCreditInfo.d.ts +4 -0
- package/mobile/bundle/retail/inputs.d.ts +0 -1
- package/mobile/bundle/retail/model/LeadFormState.d.ts +1 -1
- package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/consents.js +1 -5
- package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -2
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/CreditForm/PendingStatusContent.js +5 -3
- package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js +4 -2
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/getCreditInfo.d.ts +4 -0
- package/mobile/dist/components/CreditForm/getCreditInfo.js +21 -0
- package/mobile/dist/components/CreditForm/getCreditInfo.js.map +1 -0
- package/mobile/dist/retail/inputs.d.ts +0 -1
- package/mobile/dist/retail/inputs.js +0 -1
- package/mobile/dist/retail/inputs.js.map +1 -1
- package/mobile/dist/retail/model/LeadFormState.d.ts +1 -1
- package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/consents.js +1 -5
- package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +0 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -2
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/CreditForm/PendingStatusContent.js +5 -3
- package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js +4 -2
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/getCreditInfo.d.ts +4 -0
- package/mobile/lib/components/CreditForm/getCreditInfo.js +18 -0
- package/mobile/lib/components/CreditForm/getCreditInfo.js.map +1 -0
- package/mobile/lib/retail/inputs.d.ts +0 -1
- package/mobile/lib/retail/inputs.js +0 -1
- package/mobile/lib/retail/inputs.js.map +1 -1
- package/mobile/lib/retail/model/LeadFormState.d.ts +1 -1
- package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
- package/mobile/src/components/ApplicationLeadForm/consents.ts +1 -5
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +0 -1
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +0 -2
- package/mobile/src/components/CreditForm/PendingStatusContent.tsx +6 -3
- package/mobile/src/components/CreditForm/SuccessStatusContent.tsx +5 -2
- package/mobile/src/components/CreditForm/getCreditInfo.ts +17 -0
- package/mobile/src/retail/inputs.tsx +0 -1
- package/mobile/src/retail/model/LeadFormState.ts +1 -1
- package/mobile/src/retail/model/NameFieldDef.ts +0 -1
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
- package/src/components/ApplicationLeadForm/consents.ts +1 -5
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +0 -1
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +0 -2
- package/src/components/CreditForm/PendingStatusContent.tsx +6 -3
- package/src/components/CreditForm/SuccessStatusContent.tsx +5 -2
- package/src/components/CreditForm/getCreditInfo.ts +17 -0
- package/src/retail/inputs.tsx +0 -1
- package/src/retail/model/LeadFormState.ts +1 -1
- package/src/retail/model/NameFieldDef.ts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare type NameFieldApplicationBaseDef = 'surname' | 'name' | 'middleName' | 'limitedBirthday' | 'email' | 'phone' | 'inn';
|
|
2
|
-
declare type NameFieldConsentDef = 'processPersonalDataFlg' | 'consentProviderFlg' | 'consentInformFlg' | 'consentPfrFlg' | 'consentOthersFlg' | '
|
|
2
|
+
declare type NameFieldConsentDef = 'processPersonalDataFlg' | 'consentProviderFlg' | 'consentInformFlg' | 'consentPfrFlg' | 'consentOthersFlg' | 'consentPhotoFlg' | 'consentFATCA';
|
|
3
3
|
declare type NameFieldCreditCardDef = 'addressCourier' | 'paymentSystem' | 'currency' | 'cardCategory' | 'codeWord' | 'confirmationIncome' | 'methodObtain' | 'deliveryDate' | 'regionHasDelivery' | 'latinName' | 'isMomentDebitCard' | 'latinSurname';
|
|
4
4
|
declare type NameFieldRetailDef = 'organization' | 'organizationAddress' | 'organizationPhone' | 'organizationName' | 'isDadataOrganization' | 'legalForm' | 'generalSeniority' | 'lastJobExperience' | 'experience5Years' | 'jobsNumber' | 'beginDate' | 'addressFact' | 'addressRegistration' | 'addressRetail' | 'addressMatch' | 'sex' | 'birthPlace' | 'education' | 'housing' | 'amountWorkers' | 'employment' | 'employerActivities' | 'employerOrganization' | 'positionOrganization' | 'familyStatus' | 'familyMembers' | 'children' | 'dependents' | 'snils' | 'conscription' | 'armyIdFlg' | 'dulSerie' | 'dulNumber' | 'dulIssueDate' | 'dulSubdivisionCode' | 'dulIssuedBy' | 'participantDateRegistration' | 'retirementIncome' | 'rentalIncome' | 'otherIncome' | 'otherPayments' | 'additionalIncome' | 'wages' | 'mandatoryPayments' | 'bankruptcyFlg' | 'initiateBankruptcyFlg' | 'shareholderFlg' | 'legalEntityName' | 'creditInRshbCd' | 'bankEmployeeCode' | 'partInBusiness' | 'regionRetail' | 'calculator' | 'infoCard' | 'deliveryTime' | 'esiaAccountTypeCd' | 'comment';
|
|
5
5
|
export declare type NameFieldDef = NameFieldApplicationBaseDef | NameFieldConsentDef | NameFieldRetailDef | NameFieldCreditCardDef;
|
|
@@ -3593,11 +3593,7 @@
|
|
|
3593
3593
|
},
|
|
3594
3594
|
consentOthersFlg: {
|
|
3595
3595
|
text: 'Прочие согласия',
|
|
3596
|
-
docId:
|
|
3597
|
-
},
|
|
3598
|
-
consentInformMaterialsFlg: {
|
|
3599
|
-
text: 'Согласие на получение информационных материалов',
|
|
3600
|
-
docId: 18,
|
|
3596
|
+
docId: 1,
|
|
3601
3597
|
},
|
|
3602
3598
|
};
|
|
3603
3599
|
const DEBIT_CARD_CONSENTS = {
|
|
@@ -3632,7 +3628,6 @@
|
|
|
3632
3628
|
{ name: 'consentOthersFlg', required: true },
|
|
3633
3629
|
{ name: 'consentInformFlg' },
|
|
3634
3630
|
{ name: 'consentPfrFlg' },
|
|
3635
|
-
{ name: 'consentInformMaterialsFlg' },
|
|
3636
3631
|
{ name: 'consentFATCA', required: true },
|
|
3637
3632
|
];
|
|
3638
3633
|
return [
|
|
@@ -5911,7 +5906,6 @@
|
|
|
5911
5906
|
consentOthersFlg: ConsentField,
|
|
5912
5907
|
consentInformFlg: ConsentField,
|
|
5913
5908
|
consentPfrFlg: ConsentField,
|
|
5914
|
-
consentInformMaterialsFlg: ConsentField,
|
|
5915
5909
|
consentFATCA: ConsentField,
|
|
5916
5910
|
};
|
|
5917
5911
|
const InputsRetailMap = {
|
|
@@ -7030,7 +7024,7 @@
|
|
|
7030
7024
|
}
|
|
7031
7025
|
};
|
|
7032
7026
|
const transformConsentsFields = (formData, productType) => {
|
|
7033
|
-
const { consentOthersFlg, consentPfrFlg, processPersonalDataFlg, consentInformFlg, consentProviderFlg,
|
|
7027
|
+
const { consentOthersFlg, consentPfrFlg, processPersonalDataFlg, consentInformFlg, consentProviderFlg, consentFATCA, } = formData;
|
|
7034
7028
|
let consents;
|
|
7035
7029
|
if (productType === 'credit') {
|
|
7036
7030
|
consents = {
|
|
@@ -7041,7 +7035,6 @@
|
|
|
7041
7035
|
}
|
|
7042
7036
|
else if (productType === 'creditCard') {
|
|
7043
7037
|
consents = {
|
|
7044
|
-
consentInformMaterialsFlg,
|
|
7045
7038
|
consentPhotoFlg: false,
|
|
7046
7039
|
};
|
|
7047
7040
|
}
|
|
@@ -7170,7 +7163,6 @@
|
|
|
7170
7163
|
consentOthersFlg: false,
|
|
7171
7164
|
consentInformFlg: false,
|
|
7172
7165
|
consentPfrFlg: false,
|
|
7173
|
-
consentInformMaterialsFlg: false,
|
|
7174
7166
|
consentPhotoFlg: false,
|
|
7175
7167
|
consentFATCA: false,
|
|
7176
7168
|
};
|
|
@@ -10064,16 +10056,35 @@
|
|
|
10064
10056
|
|
|
10065
10057
|
const FailedStatusContent$1 = JSX(() => (jsx(FormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0412\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435", description: "\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u0411\u0430\u043D\u043A \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u043E\u0434\u043E\u0431\u0440\u0438\u0442\u044C \u0412\u0430\u0448\u0443 \u0437\u0430\u044F\u0432\u043A\u0443 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0434\u0430\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443 \u043F\u043E\u0437\u0436\u0435. \u0421\u043F\u0430\u0441\u0438\u0431\u043E \u0437\u0430 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0432 \u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB.", buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })));
|
|
10066
10058
|
|
|
10059
|
+
const getCreditInfo = (programmId) => {
|
|
10060
|
+
switch (programmId) {
|
|
10061
|
+
case '11': {
|
|
10062
|
+
return {
|
|
10063
|
+
name: 'Потребительский кредит на рефинансирование',
|
|
10064
|
+
description: 'Погашение основного долга по кредиту, иные цели и оплату страхования',
|
|
10065
|
+
};
|
|
10066
|
+
}
|
|
10067
|
+
case '10':
|
|
10068
|
+
default: {
|
|
10069
|
+
return {
|
|
10070
|
+
name: 'Кредит на любые цели',
|
|
10071
|
+
description: 'На любые цели',
|
|
10072
|
+
};
|
|
10073
|
+
}
|
|
10074
|
+
}
|
|
10075
|
+
};
|
|
10076
|
+
|
|
10067
10077
|
const PendingStatusContent$1 = JSX(({ onExpire }) => {
|
|
10068
|
-
const { statusInfo } = useRetailFormStore();
|
|
10078
|
+
const { statusInfo, programId } = useRetailFormStore();
|
|
10079
|
+
const creditInfo = getCreditInfo(programId);
|
|
10069
10080
|
return (jsx(FormStatus, { interval: 300, title: "\u0417\u0430\u044F\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430", description: "\u041D\u0435 \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u043E\u043A\u043D\u043E, \u0441\u043A\u043E\u0440\u043E \u0441\u043E\u043E\u0431\u0449\u0438\u043C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442", sectionInfoTitle: "\u0417\u0430\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u043E \u043A\u0440\u0435\u0434\u0438\u0442\u0443", sectionInfo: [
|
|
10070
10081
|
{
|
|
10071
10082
|
label: 'Название продукта',
|
|
10072
|
-
description:
|
|
10083
|
+
description: creditInfo.name,
|
|
10073
10084
|
},
|
|
10074
10085
|
{
|
|
10075
10086
|
label: 'Цель кредита',
|
|
10076
|
-
description:
|
|
10087
|
+
description: creditInfo.description,
|
|
10077
10088
|
},
|
|
10078
10089
|
{
|
|
10079
10090
|
label: 'Сумма',
|
|
@@ -10110,11 +10121,12 @@
|
|
|
10110
10121
|
});
|
|
10111
10122
|
|
|
10112
10123
|
const SuccessStatusContent$1 = JSX(() => {
|
|
10113
|
-
const { statusInfo } = useRetailFormStore();
|
|
10124
|
+
const { statusInfo, programId } = useRetailFormStore();
|
|
10125
|
+
const creditInfo = getCreditInfo(programId);
|
|
10114
10126
|
return (jsx(FormStatus, { title: "\u0411\u0430\u043D\u043A \u043E\u0434\u043E\u0431\u0440\u0438\u043B \u0432\u0430\u043C \u043A\u0440\u0435\u0434\u0438\u0442", description: "\u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u0430\u0448 \u043A\u0440\u0435\u0434\u0438\u0442", sectionInfo: [
|
|
10115
10127
|
{
|
|
10116
10128
|
label: 'Название продукта',
|
|
10117
|
-
description:
|
|
10129
|
+
description: creditInfo.name,
|
|
10118
10130
|
},
|
|
10119
10131
|
{
|
|
10120
10132
|
label: 'Ставка',
|
|
@@ -12937,7 +12949,7 @@
|
|
|
12937
12949
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
12938
12950
|
});
|
|
12939
12951
|
|
|
12940
|
-
const packageVersion = "0.14.
|
|
12952
|
+
const packageVersion = "0.14.988";
|
|
12941
12953
|
|
|
12942
12954
|
exports.Blocks = Blocks;
|
|
12943
12955
|
exports.ContentPage = ContentPage;
|