@redneckz/wildless-cms-uni-blocks 0.14.621 → 0.14.623
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/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +43 -34
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/bundle/components/CreditForm/CreditFormStep.d.ts +1 -2
- package/bundle/components/CreditForm/StepsNavigationButtons.d.ts +0 -1
- package/bundle/components/CreditForm/creditFormStepsData.d.ts +2 -178
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/bundle/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/dist/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/dist/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
- package/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/dist/api/dadataHints/hintsListsOptions.js +1 -0
- package/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/dist/components/ApplicationForm/getInitialFormState.js +1 -1
- package/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationForm/renderInputs.js +2 -2
- package/dist/components/ApplicationForm/renderInputs.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/consents.js +1 -1
- package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -2
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.js +3 -3
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/CreditFormProgress.js +3 -3
- package/dist/components/CreditForm/CreditFormProgress.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStep.d.ts +1 -2
- package/dist/components/CreditForm/CreditFormStep.js +3 -3
- package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/dist/components/CreditForm/StepsNavigationButtons.d.ts +0 -1
- package/dist/components/CreditForm/StepsNavigationButtons.js +2 -1
- package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.d.ts +2 -178
- package/dist/components/CreditForm/creditFormStepsData.js +8 -9
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +9 -1
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/getField.js +2 -2
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +2 -2
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/lib/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
- package/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/lib/api/dadataHints/hintsListsOptions.js +1 -0
- package/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/lib/components/ApplicationForm/getInitialFormState.js +1 -1
- package/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationForm/renderInputs.js +2 -2
- package/lib/components/ApplicationForm/renderInputs.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +0 -2
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/consents.js +1 -1
- package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -2
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.js +3 -3
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/CreditFormProgress.js +3 -3
- package/lib/components/CreditForm/CreditFormProgress.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStep.d.ts +1 -2
- package/lib/components/CreditForm/CreditFormStep.js +3 -3
- package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/lib/components/CreditForm/StepsNavigationButtons.d.ts +0 -1
- package/lib/components/CreditForm/StepsNavigationButtons.js +2 -1
- package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.d.ts +2 -178
- package/lib/components/CreditForm/creditFormStepsData.js +8 -9
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +9 -1
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/getField.js +2 -2
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +2 -2
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +43 -34
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +1 -2
- package/mobile/bundle/components/CreditForm/StepsNavigationButtons.d.ts +0 -1
- package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +2 -178
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
- package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/mobile/dist/api/dadataHints/hintsListsOptions.js +1 -0
- package/mobile/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/getInitialFormState.js +1 -1
- package/mobile/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderInputs.js +2 -2
- package/mobile/dist/components/ApplicationForm/renderInputs.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/consents.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -2
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.js +3 -3
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormProgress.js +3 -3
- package/mobile/dist/components/CreditForm/CreditFormProgress.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +1 -2
- package/mobile/dist/components/CreditForm/CreditFormStep.js +3 -3
- package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.d.ts +0 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +2 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +2 -178
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +8 -9
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +9 -1
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +2 -2
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +2 -2
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js +2 -2
- package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
- package/mobile/lib/api/dadataHints/hintsListsOptions.js +1 -0
- package/mobile/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/getInitialFormState.js +1 -1
- package/mobile/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderInputs.js +2 -2
- package/mobile/lib/components/ApplicationForm/renderInputs.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/consents.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -2
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.js +3 -3
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormProgress.js +3 -3
- package/mobile/lib/components/CreditForm/CreditFormProgress.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +1 -2
- package/mobile/lib/components/CreditForm/CreditFormStep.js +3 -3
- package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.d.ts +0 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +2 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +2 -178
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +8 -9
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +9 -1
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +2 -2
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +2 -2
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/src/api/RetailAPI/updateUserProfile.ts +1 -1
- package/mobile/src/api/RetailAPI/utils/getUpdateUserProfile.ts +2 -2
- package/mobile/src/api/dadataHints/hintsListsOptions.ts +1 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -1
- package/mobile/src/components/ApplicationForm/getInitialFormState.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderInputs.tsx +2 -2
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +1 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +1 -1
- package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +9 -2
- package/mobile/src/components/ApplicationLeadForm/consents.ts +1 -1
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +3 -3
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +1 -1
- package/mobile/src/components/CreditForm/CreditForm.tsx +7 -5
- package/mobile/src/components/CreditForm/CreditFormProgress.tsx +5 -5
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +4 -5
- package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +3 -2
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +10 -9
- package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +25 -9
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +1 -1
- package/mobile/src/ui-kit/FormField/getField.tsx +2 -2
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +2 -2
- package/package.json +1 -1
- package/src/api/RetailAPI/updateUserProfile.ts +1 -1
- package/src/api/RetailAPI/utils/getUpdateUserProfile.ts +2 -2
- package/src/api/dadataHints/hintsListsOptions.ts +1 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -1
- package/src/components/ApplicationForm/getInitialFormState.tsx +1 -1
- package/src/components/ApplicationForm/renderInputs.tsx +2 -2
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +1 -122
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +1 -1
- package/src/components/ApplicationLeadForm/GroupedConsents.tsx +9 -2
- package/src/components/ApplicationLeadForm/consents.ts +1 -1
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +3 -3
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +1 -1
- package/src/components/CreditForm/CreditForm.tsx +7 -5
- package/src/components/CreditForm/CreditFormProgress.tsx +5 -5
- package/src/components/CreditForm/CreditFormStep.tsx +4 -5
- package/src/components/CreditForm/StepsNavigationButtons.tsx +3 -2
- package/src/components/CreditForm/creditFormStepsData.tsx +10 -9
- package/src/icons/IconName.ts +6 -360
- package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +25 -9
- package/src/ui-kit/FormField/NameFieldDef.ts +1 -1
- package/src/ui-kit/FormField/getField.tsx +2 -2
- package/src/ui-kit/FormField/getObjectValidator.tsx +2 -2
package/bundle/bundle.umd.js
CHANGED
|
@@ -1231,6 +1231,7 @@
|
|
|
1231
1231
|
organizationName: ORGANIZATION_NAME_HINTS_LIST_OPTIONS,
|
|
1232
1232
|
inn: ORGANIZATION_INN_HINTS_LIST_OPTIONS,
|
|
1233
1233
|
participantAddress: ADDRESS_HINTS_LIST_OPTIONS,
|
|
1234
|
+
fullAddress: ADDRESS_HINTS_LIST_OPTIONS,
|
|
1234
1235
|
};
|
|
1235
1236
|
|
|
1236
1237
|
const debounce = (fn, delay = 600) => {
|
|
@@ -1488,7 +1489,7 @@
|
|
|
1488
1489
|
consentDataProcessing: agreementValidator,
|
|
1489
1490
|
annualRevenue: defaultValidator(),
|
|
1490
1491
|
consentToReceiveMaterials: agreementValidator,
|
|
1491
|
-
|
|
1492
|
+
processPersonalDataFlg: agreementValidator,
|
|
1492
1493
|
consentProviderFlg: agreementValidator,
|
|
1493
1494
|
consentPfrFlg: agreementValidator,
|
|
1494
1495
|
consentOthersFlg: agreementValidator,
|
|
@@ -1518,7 +1519,7 @@
|
|
|
1518
1519
|
};
|
|
1519
1520
|
const getObjectValidator = (inputs) => {
|
|
1520
1521
|
const requiredInputs = getNamesFromInput(inputs.filter((_) => Boolean(_?.required)));
|
|
1521
|
-
return Object.fromEntries(requiredInputs.map((_) => [_, validatorObj?.[_]]));
|
|
1522
|
+
return Object.fromEntries(requiredInputs.map((_) => [_, validatorObj?.[_ || '']]));
|
|
1522
1523
|
};
|
|
1523
1524
|
|
|
1524
1525
|
const withValidator = (props, validator) => {
|
|
@@ -2080,7 +2081,7 @@
|
|
|
2080
2081
|
});
|
|
2081
2082
|
|
|
2082
2083
|
const CONSENTS = {
|
|
2083
|
-
|
|
2084
|
+
processPersonalDataFlg: {
|
|
2084
2085
|
text: 'Согласие на обработку персональных данных',
|
|
2085
2086
|
docId: 4,
|
|
2086
2087
|
},
|
|
@@ -2329,7 +2330,15 @@
|
|
|
2329
2330
|
|
|
2330
2331
|
const ParticipantDateRegistrationField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043F\u043E \u043C\u0435\u0441\u0442\u0443 \u0436\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430", ...getValidation(field('participantDateRegistration'), validatorObj.participantDateRegistration, input?.required) })));
|
|
2331
2332
|
|
|
2332
|
-
const
|
|
2333
|
+
const MAX_PART = 100;
|
|
2334
|
+
const PartInBusinessField = JSX(({ field, input }) => {
|
|
2335
|
+
const partInBusinessField = {
|
|
2336
|
+
...getValidation(field('partInBusiness'), validatorObj.partInBusiness, input?.required),
|
|
2337
|
+
};
|
|
2338
|
+
const handleChange = (value) => partInBusinessField?.onChange &&
|
|
2339
|
+
partInBusinessField?.onChange(String(Number(value) > MAX_PART ? MAX_PART : Number(value) || ''));
|
|
2340
|
+
return (jsx(InputControl, { label: "\u0414\u043E\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0432 \u0431\u0438\u0437\u043D\u0435\u0441\u0435", placeholder: "\u0432 %", inputLength: 3, type: "number", ...partInBusinessField, ...input, onChange: handleChange }));
|
|
2341
|
+
});
|
|
2333
2342
|
|
|
2334
2343
|
const PartnerCommentsField = JSX(({ field, input }) => {
|
|
2335
2344
|
const { required, ...rest } = input;
|
|
@@ -2516,7 +2525,7 @@
|
|
|
2516
2525
|
bankEmpolee: jsx(BankEmpoleeField, { field: field }),
|
|
2517
2526
|
secondaryPhone: jsx(SecondaryPhoneField, { field: field }),
|
|
2518
2527
|
consentToReceiveMaterials: jsx(ConsentField, { field: field, input: input }),
|
|
2519
|
-
|
|
2528
|
+
processPersonalDataFlg: jsx(ConsentField, { field: field, input: input }),
|
|
2520
2529
|
consentProviderFlg: jsx(ConsentField, { field: field, input: input }),
|
|
2521
2530
|
consentOthersFlg: jsx(ConsentField, { field: field, input: input }),
|
|
2522
2531
|
consentInformFlg: jsx(ConsentField, { field: field, input: input }),
|
|
@@ -2560,7 +2569,7 @@
|
|
|
2560
2569
|
bankEmployeeCode: jsx(BankEmpoleeCodeField, { field: field, input: input }),
|
|
2561
2570
|
partInBusiness: jsx(PartInBusinessField, { field: field, input: input }),
|
|
2562
2571
|
};
|
|
2563
|
-
return isRenderField({ input, field }) ? (jsx("div", { children: InputsMap[input?.name] }, String(i))) : null;
|
|
2572
|
+
return isRenderField({ input, field }) ? (jsx("div", { children: InputsMap[input?.name || ''] }, String(i))) : null;
|
|
2564
2573
|
};
|
|
2565
2574
|
|
|
2566
2575
|
const inputColumnStyles = (column) => column === 2 ? '@xl:grid-cols-2' : '';
|
|
@@ -2687,7 +2696,7 @@
|
|
|
2687
2696
|
const getInitialFormState$2 = (inputs, typeForm = '') => {
|
|
2688
2697
|
const formState = Object.fromEntries(inputs.map((_) => [
|
|
2689
2698
|
_.name,
|
|
2690
|
-
(_.fieldType === 'ved' && _?.defaultValue) || initialFormState$1[_.name],
|
|
2699
|
+
(_.fieldType === 'ved' && _?.defaultValue) || initialFormState$1[_.name || ''],
|
|
2691
2700
|
]));
|
|
2692
2701
|
if (formState?.serviceType && typeForm === 'PREMIUMSERVICE') {
|
|
2693
2702
|
formState.serviceType = SERVICE_TYPES[1];
|
|
@@ -2823,8 +2832,8 @@
|
|
|
2823
2832
|
return consentInputs.length > 2 ? (jsxs("div", { children: [restInputs.map(getField(field, typeForm)), jsx(GroupedConsents, { inputs: consentInputs, field: field })] })) : ((inputs || [])?.map(getField(field, typeForm)));
|
|
2824
2833
|
};
|
|
2825
2834
|
const splitInputs = (inputs) => ({
|
|
2826
|
-
consentInputs: inputs?.filter((_) => Object.keys(CONSENTS).includes(_.name)) || [],
|
|
2827
|
-
restInputs: inputs?.filter((_) => !Object.keys(CONSENTS).includes(_.name)) || [],
|
|
2835
|
+
consentInputs: inputs?.filter((_) => Object.keys(CONSENTS).includes(_.name || '')) || [],
|
|
2836
|
+
restInputs: inputs?.filter((_) => !Object.keys(CONSENTS).includes(_.name || '')) || [],
|
|
2828
2837
|
});
|
|
2829
2838
|
|
|
2830
2839
|
/* eslint-disable max-lines */
|
|
@@ -2853,7 +2862,7 @@
|
|
|
2853
2862
|
posTerminal: false,
|
|
2854
2863
|
consentToReceiveMaterials: false,
|
|
2855
2864
|
consentDataProcessing: false,
|
|
2856
|
-
|
|
2865
|
+
processPersonalDataFlg: false,
|
|
2857
2866
|
consentProviderFlg: false,
|
|
2858
2867
|
consentOthersFlg: false,
|
|
2859
2868
|
consentInformFlg: false,
|
|
@@ -2868,7 +2877,7 @@
|
|
|
2868
2877
|
}
|
|
2869
2878
|
const formState = Object.fromEntries(inputs.map((_) => [
|
|
2870
2879
|
_.name,
|
|
2871
|
-
(_.fieldType === 'ved' && _?.defaultValue) || initialFormState[_.name],
|
|
2880
|
+
(_.fieldType === 'ved' && _?.defaultValue) || initialFormState[_.name || ''],
|
|
2872
2881
|
]));
|
|
2873
2882
|
return { ...formState, typeForm: { key: typeForm, text: '' } };
|
|
2874
2883
|
};
|
|
@@ -2884,7 +2893,7 @@
|
|
|
2884
2893
|
const updateUserTask = (body) => doRequest('/user-data/updateUserTask', 'PUT', body);
|
|
2885
2894
|
|
|
2886
2895
|
const getUpdateUserProfileData = (profileId, formData) => {
|
|
2887
|
-
const { name = '', surname = '', middleName = '', birthday = '', phone = '', email = '',
|
|
2896
|
+
const { name = '', surname = '', middleName = '', birthday = '', phone = '', email = '', processPersonalDataFlg, consentProviderFlg, consentPfrFlg, consentPhotoFlg, consentAssignmentClaimsFlg, consentCollectionFlg, consentInformFlg, } = formData;
|
|
2888
2897
|
return {
|
|
2889
2898
|
profile: {
|
|
2890
2899
|
id: profileId,
|
|
@@ -2894,7 +2903,7 @@
|
|
|
2894
2903
|
birthDate: birthday && formatDate(birthday, true),
|
|
2895
2904
|
email,
|
|
2896
2905
|
phone: formatPhone(phone),
|
|
2897
|
-
|
|
2906
|
+
processPersonalDataFlg: Boolean(processPersonalDataFlg),
|
|
2898
2907
|
consentProviderFlg: Boolean(consentProviderFlg),
|
|
2899
2908
|
consentPfrFlg: Boolean(consentPfrFlg),
|
|
2900
2909
|
consentPhotoFlg: Boolean(consentPhotoFlg),
|
|
@@ -3377,7 +3386,7 @@
|
|
|
3377
3386
|
const [isLoading, setIsLoading] = useState(false);
|
|
3378
3387
|
const [profileId] = useLocalStorage('profileId');
|
|
3379
3388
|
const [, setEsiaData] = useLocalStorage('esiaData');
|
|
3380
|
-
const params = new URLSearchParams(decodeURIComponent(
|
|
3389
|
+
const params = new URLSearchParams(decodeURIComponent(globalThis.location.search));
|
|
3381
3390
|
const esiaAuth = params.get('esiaAuth');
|
|
3382
3391
|
const updateEsiaProfile = useCallback(async () => {
|
|
3383
3392
|
const code = params.get('code');
|
|
@@ -5095,9 +5104,9 @@
|
|
|
5095
5104
|
|
|
5096
5105
|
const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (jsxs("div", { children: [jsx("div", { className: "h-4 w-full bg-gray relative", children: jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), jsxs("div", { className: "relative", children: [showPercentage ? jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? jsx("div", { className: "text-right mr-4 text-gray", children: description }) : null] })] })));
|
|
5097
5106
|
|
|
5098
|
-
const CreditFormProgress = JSX(({ step =
|
|
5099
|
-
const progress = useMemo(() => (step / totalSteps) * 100, [step, totalSteps]);
|
|
5100
|
-
return (jsx("div", { className: "py-lg px-5xl bg-white col-span-12", children: jsxs("div", { children: [jsxs("span", { className: "font-bold", children: ["\u0428\u0430\u0433 ", step, " \u0438\u0437 ", totalSteps, "."] }),
|
|
5107
|
+
const CreditFormProgress = JSX(({ step = 0, totalSteps = 5, stepsTitles = [] }) => {
|
|
5108
|
+
const progress = useMemo(() => ((step + 1) / totalSteps) * 100, [step, totalSteps]);
|
|
5109
|
+
return (jsx("div", { className: "py-lg px-5xl bg-white col-span-12", children: jsxs("div", { children: [jsxs("span", { className: "font-bold", children: ["\u0428\u0430\u0433 ", step + 1, " \u0438\u0437 ", totalSteps, "."] }), stepsTitles[step] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }) }));
|
|
5101
5110
|
});
|
|
5102
5111
|
|
|
5103
5112
|
const formStateMap = {
|
|
@@ -5179,7 +5188,8 @@
|
|
|
5179
5188
|
};
|
|
5180
5189
|
|
|
5181
5190
|
const StepsNavigationButtons = JSX(({ step, onPrevStep }) => {
|
|
5182
|
-
|
|
5191
|
+
const isFirstStep = step === 0;
|
|
5192
|
+
return (jsxs("div", { className: 'flex justify-between', children: [jsx(Button, { onClick: onPrevStep, className: style('w-full @xl:w-auto'), type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { className: style('w-full @xl:w-auto'), type: "submit", children: "\u0414\u0430\u043B\u0435\u0435" })] }));
|
|
5183
5193
|
});
|
|
5184
5194
|
|
|
5185
5195
|
const useCreditFormApi = ({ inputs, onNextStep, saveStep }) => {
|
|
@@ -5197,7 +5207,7 @@
|
|
|
5197
5207
|
};
|
|
5198
5208
|
};
|
|
5199
5209
|
|
|
5200
|
-
const CreditFormStep = JSX(({
|
|
5210
|
+
const CreditFormStep = JSX(({ step, sections, onPrevStep, onNextStep, inputs }) => {
|
|
5201
5211
|
const [localStorageData, saveStep] = useLocalStorage('leadForm');
|
|
5202
5212
|
const initialState = getInitialFormState(step, localStorageData);
|
|
5203
5213
|
const { handleSubmit } = useCreditFormApi({
|
|
@@ -5206,10 +5216,10 @@
|
|
|
5206
5216
|
saveStep,
|
|
5207
5217
|
});
|
|
5208
5218
|
const [, { field, onSubmit }] = useForm(initialState, { onSubmit: handleSubmit });
|
|
5209
|
-
return (jsxs("form", { onSubmit: onSubmit, className: "space-y-m", children: [renderStep$1({ sections, field }), jsx(StepsNavigationButtons, { step: step,
|
|
5219
|
+
return (jsxs("form", { onSubmit: onSubmit, className: "space-y-m", children: [renderStep$1({ sections, field }), jsx(StepsNavigationButtons, { step: step, onPrevStep: onPrevStep })] }));
|
|
5210
5220
|
});
|
|
5211
5221
|
const renderStep$1 = ({ sections, field }) => {
|
|
5212
|
-
return sections
|
|
5222
|
+
return sections?.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderInfo$1(_?.inputs), renderTitle(_?.title), renderInputs({ field, inputs: _?.inputs })] }, `section-${i}`)));
|
|
5213
5223
|
};
|
|
5214
5224
|
const renderInfo$1 = (inputs = []) => {
|
|
5215
5225
|
const infoInputs = inputs.filter((_) => _.fieldType === 'info');
|
|
@@ -5218,9 +5228,8 @@
|
|
|
5218
5228
|
|
|
5219
5229
|
/* eslint-disable max-lines */
|
|
5220
5230
|
/* eslint-disable max-len */
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
1: [
|
|
5231
|
+
const stepsSectionsMap = [
|
|
5232
|
+
[
|
|
5224
5233
|
{
|
|
5225
5234
|
title: 'Персональные данные',
|
|
5226
5235
|
columns: 2,
|
|
@@ -5275,7 +5284,7 @@
|
|
|
5275
5284
|
],
|
|
5276
5285
|
},
|
|
5277
5286
|
],
|
|
5278
|
-
|
|
5287
|
+
[
|
|
5279
5288
|
{
|
|
5280
5289
|
title: 'Данные о трудоустройстве',
|
|
5281
5290
|
inputs: [],
|
|
@@ -5336,10 +5345,10 @@
|
|
|
5336
5345
|
inputs: [],
|
|
5337
5346
|
},
|
|
5338
5347
|
{
|
|
5339
|
-
inputs: [{ fieldType: 'common', name: 'fullAddress', required: true }],
|
|
5348
|
+
inputs: [{ fieldType: 'common', name: 'fullAddress', required: true, dadata: true }],
|
|
5340
5349
|
},
|
|
5341
5350
|
],
|
|
5342
|
-
|
|
5351
|
+
[
|
|
5343
5352
|
{
|
|
5344
5353
|
title: 'Семейное положение',
|
|
5345
5354
|
},
|
|
@@ -5383,7 +5392,7 @@
|
|
|
5383
5392
|
inputs: [{ fieldType: 'common', name: 'armyIdFlg' }],
|
|
5384
5393
|
},
|
|
5385
5394
|
],
|
|
5386
|
-
|
|
5395
|
+
[
|
|
5387
5396
|
{
|
|
5388
5397
|
title: 'Дополнительные сведения',
|
|
5389
5398
|
columns: 1,
|
|
@@ -5405,7 +5414,7 @@
|
|
|
5405
5414
|
inputs: [{ fieldType: 'common', name: 'creditInRshbCd' }],
|
|
5406
5415
|
},
|
|
5407
5416
|
],
|
|
5408
|
-
|
|
5417
|
+
[
|
|
5409
5418
|
{
|
|
5410
5419
|
title: 'Отделение Банка',
|
|
5411
5420
|
columns: 1,
|
|
@@ -5434,7 +5443,7 @@
|
|
|
5434
5443
|
inputs: [{ fieldType: 'common', name: 'bankEmployeeCode' }],
|
|
5435
5444
|
},
|
|
5436
5445
|
],
|
|
5437
|
-
|
|
5446
|
+
];
|
|
5438
5447
|
|
|
5439
5448
|
const STEPS_COUNT = 5;
|
|
5440
5449
|
const STEPS_TITLES = [
|
|
@@ -5445,17 +5454,17 @@
|
|
|
5445
5454
|
'Отделение Банка',
|
|
5446
5455
|
];
|
|
5447
5456
|
const CreditForm = JSX(({ className, ...rest }) => {
|
|
5448
|
-
const [step, setStep] = useState(
|
|
5457
|
+
const [step, setStep] = useState(0);
|
|
5449
5458
|
const sections = useMemo(() => stepsSectionsMap[step], [step]);
|
|
5450
5459
|
const inputs = (sections?.flatMap((_) => _?.inputs) || []);
|
|
5451
5460
|
const handleNextStep = useCallback(() => {
|
|
5452
|
-
setStep((_) => Math.min(_ + 1, STEPS_COUNT));
|
|
5461
|
+
setStep((_) => Math.min(_ + 1, STEPS_COUNT - 1));
|
|
5453
5462
|
}, []);
|
|
5454
5463
|
const handlePrevStep = useCallback(() => {
|
|
5455
5464
|
//TODO search hook - 1,
|
|
5456
5465
|
setStep((_) => Math.max(_ - 1, 0));
|
|
5457
5466
|
}, []);
|
|
5458
|
-
return (jsx(BlockWrapper, { className: style('bg-transparent', className), defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container grid grid-cols-12", children: [jsx(CreditFormProgress, { stepsTitles: STEPS_TITLES, step: step, totalSteps: STEPS_COUNT }), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: jsx(CreditFormStep, { inputs: inputs,
|
|
5467
|
+
return (jsx(BlockWrapper, { className: style('bg-transparent', className), defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container grid grid-cols-12", children: [jsx(CreditFormProgress, { stepsTitles: STEPS_TITLES, step: step, totalSteps: STEPS_COUNT }), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: jsx(CreditFormStep, { inputs: inputs, step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep }, String(step)) })] }) }));
|
|
5459
5468
|
});
|
|
5460
5469
|
|
|
5461
5470
|
const isRateRow = (rateRow) => typeof rateRow?.minMonths === 'number' && typeof rateRow?.maxMonths === 'number';
|
|
@@ -8249,7 +8258,7 @@
|
|
|
8249
8258
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
8250
8259
|
});
|
|
8251
8260
|
|
|
8252
|
-
const packageVersion = "0.14.
|
|
8261
|
+
const packageVersion = "0.14.622";
|
|
8253
8262
|
|
|
8254
8263
|
exports.Blocks = Blocks;
|
|
8255
8264
|
exports.ContentPage = ContentPage;
|