@redneckz/wildless-cms-uni-blocks 0.14.884 → 0.14.886
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 +220 -58
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/bundle/components/DebitForm/DebitFormStepsData.d.ts +1 -0
- package/bundle/components/DebitForm/utils.d.ts +2 -0
- package/bundle/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
- package/bundle/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
- package/bundle/retail/components/DraftDialog/utils.d.ts +5 -34
- package/bundle/retail/model/LeadFormState.d.ts +0 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +6 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/dist/components/ApplicationLeadForm/consents.js +0 -4
- package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
- package/dist/components/DebitForm/DebitForm.js +5 -1
- package/dist/components/DebitForm/DebitForm.js.map +1 -1
- package/dist/components/DebitForm/DebitFormStepsData.d.ts +1 -0
- package/dist/components/DebitForm/DebitFormStepsData.js +122 -6
- package/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/dist/components/DebitForm/formStateMap.js +1 -0
- package/dist/components/DebitForm/formStateMap.js.map +1 -1
- package/dist/components/DebitForm/utils.d.ts +2 -0
- package/dist/components/DebitForm/utils.js +2 -0
- package/dist/components/DebitForm/utils.js.map +1 -1
- package/dist/retail/adaptors/getPersonalInfoData.js +4 -1
- package/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +7 -14
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
- package/dist/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
- package/dist/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
- package/dist/retail/components/DraftDialog/creditProgramCodes.js +39 -0
- package/dist/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
- package/dist/retail/components/DraftDialog/useDraftDialog.js +1 -1
- package/dist/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/utils.d.ts +5 -34
- package/dist/retail/components/DraftDialog/utils.js +23 -24
- package/dist/retail/components/DraftDialog/utils.js.map +1 -1
- package/dist/retail/components/Fields/CardCategoryField.js +8 -2
- package/dist/retail/components/Fields/CardCategoryField.js.map +1 -1
- package/dist/retail/model/LeadFormState.d.ts +0 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +6 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/lib/components/ApplicationLeadForm/consents.js +0 -4
- package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
- package/lib/components/DebitForm/DebitForm.js +5 -1
- package/lib/components/DebitForm/DebitForm.js.map +1 -1
- package/lib/components/DebitForm/DebitFormStepsData.d.ts +1 -0
- package/lib/components/DebitForm/DebitFormStepsData.js +122 -6
- package/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/lib/components/DebitForm/formStateMap.js +1 -0
- package/lib/components/DebitForm/formStateMap.js.map +1 -1
- package/lib/components/DebitForm/utils.d.ts +2 -0
- package/lib/components/DebitForm/utils.js +2 -0
- package/lib/components/DebitForm/utils.js.map +1 -1
- package/lib/retail/adaptors/getPersonalInfoData.js +4 -1
- package/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +6 -13
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
- package/lib/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
- package/lib/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
- package/lib/retail/components/DraftDialog/creditProgramCodes.js +37 -0
- package/lib/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
- package/lib/retail/components/DraftDialog/useDraftDialog.js +1 -1
- package/lib/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/utils.d.ts +5 -34
- package/lib/retail/components/DraftDialog/utils.js +21 -23
- package/lib/retail/components/DraftDialog/utils.js.map +1 -1
- package/lib/retail/components/Fields/CardCategoryField.js +9 -3
- package/lib/retail/components/Fields/CardCategoryField.js.map +1 -1
- package/lib/retail/model/LeadFormState.d.ts +0 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/bundle/bundle.umd.js +220 -58
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/mobile/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/mobile/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/mobile/bundle/components/DebitForm/DebitFormStepsData.d.ts +1 -0
- package/mobile/bundle/components/DebitForm/utils.d.ts +2 -0
- package/mobile/bundle/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
- package/mobile/bundle/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
- package/mobile/bundle/retail/components/DraftDialog/utils.d.ts +5 -34
- package/mobile/bundle/retail/model/LeadFormState.d.ts +0 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +6 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +2 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/consents.js +0 -4
- package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/dist/components/DebitForm/DebitForm.js +5 -1
- package/mobile/dist/components/DebitForm/DebitForm.js.map +1 -1
- package/mobile/dist/components/DebitForm/DebitFormStepsData.d.ts +1 -0
- package/mobile/dist/components/DebitForm/DebitFormStepsData.js +122 -6
- package/mobile/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/mobile/dist/components/DebitForm/formStateMap.js +1 -0
- package/mobile/dist/components/DebitForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/DebitForm/utils.d.ts +2 -0
- package/mobile/dist/components/DebitForm/utils.js +2 -0
- package/mobile/dist/components/DebitForm/utils.js.map +1 -1
- package/mobile/dist/retail/adaptors/getPersonalInfoData.js +4 -1
- package/mobile/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +7 -14
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
- package/mobile/dist/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
- package/mobile/dist/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
- package/mobile/dist/retail/components/DraftDialog/creditProgramCodes.js +39 -0
- package/mobile/dist/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
- package/mobile/dist/retail/components/DraftDialog/useDraftDialog.js +1 -1
- package/mobile/dist/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/utils.d.ts +5 -34
- package/mobile/dist/retail/components/DraftDialog/utils.js +23 -24
- package/mobile/dist/retail/components/DraftDialog/utils.js.map +1 -1
- package/mobile/dist/retail/components/Fields/CardCategoryField.js +8 -2
- package/mobile/dist/retail/components/Fields/CardCategoryField.js.map +1 -1
- package/mobile/dist/retail/model/LeadFormState.d.ts +0 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +6 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +6 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +2 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +2 -2
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/consents.js +0 -4
- package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -1
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/lib/components/DebitForm/DebitForm.js +5 -1
- package/mobile/lib/components/DebitForm/DebitForm.js.map +1 -1
- package/mobile/lib/components/DebitForm/DebitFormStepsData.d.ts +1 -0
- package/mobile/lib/components/DebitForm/DebitFormStepsData.js +122 -6
- package/mobile/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/mobile/lib/components/DebitForm/formStateMap.js +1 -0
- package/mobile/lib/components/DebitForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/DebitForm/utils.d.ts +2 -0
- package/mobile/lib/components/DebitForm/utils.js +2 -0
- package/mobile/lib/components/DebitForm/utils.js.map +1 -1
- package/mobile/lib/retail/adaptors/getPersonalInfoData.js +4 -1
- package/mobile/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +6 -13
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/EmptyDraftDialog.d.ts +4 -1
- package/mobile/lib/retail/components/DraftDialog/EmptyDraftDialog.js +4 -2
- package/mobile/lib/retail/components/DraftDialog/EmptyDraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/creditProgramCodes.d.ts +39 -0
- package/mobile/lib/retail/components/DraftDialog/creditProgramCodes.js +37 -0
- package/mobile/lib/retail/components/DraftDialog/creditProgramCodes.js.map +1 -0
- package/mobile/lib/retail/components/DraftDialog/useDraftDialog.js +1 -1
- package/mobile/lib/retail/components/DraftDialog/useDraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/utils.d.ts +5 -34
- package/mobile/lib/retail/components/DraftDialog/utils.js +21 -23
- package/mobile/lib/retail/components/DraftDialog/utils.js.map +1 -1
- package/mobile/lib/retail/components/Fields/CardCategoryField.js +9 -3
- package/mobile/lib/retail/components/Fields/CardCategoryField.js.map +1 -1
- package/mobile/lib/retail/model/LeadFormState.d.ts +0 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +4 -3
- package/mobile/src/components/ApplicationForm/renderAgreementSubmit.tsx +13 -6
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -1
- package/mobile/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +16 -11
- package/mobile/src/components/ApplicationLeadForm/consents.ts +0 -4
- package/mobile/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +9 -5
- package/mobile/src/components/DebitForm/DebitForm.tsx +6 -1
- package/mobile/src/components/DebitForm/DebitFormStepsData.tsx +123 -6
- package/mobile/src/components/DebitForm/formStateMap.tsx +1 -0
- package/mobile/src/components/DebitForm/utils.ts +2 -0
- package/mobile/src/retail/adaptors/getPersonalInfoData.tsx +4 -1
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +6 -13
- package/mobile/src/retail/components/DraftDialog/EmptyDraftDialog.tsx +8 -2
- package/mobile/src/retail/components/DraftDialog/creditProgramCodes.ts +40 -0
- package/mobile/src/retail/components/DraftDialog/useDraftDialog.tsx +1 -1
- package/mobile/src/retail/components/DraftDialog/utils.ts +22 -27
- package/mobile/src/retail/components/Fields/CardCategoryField.tsx +14 -3
- package/mobile/src/retail/model/LeadFormState.ts +0 -1
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.example.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +4 -3
- package/src/components/ApplicationForm/renderAgreementSubmit.tsx +13 -6
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -1
- package/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +16 -11
- package/src/components/ApplicationLeadForm/consents.ts +0 -4
- package/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +9 -5
- package/src/components/DebitForm/DebitForm.tsx +6 -1
- package/src/components/DebitForm/DebitFormStepsData.tsx +123 -6
- package/src/components/DebitForm/formStateMap.tsx +1 -0
- package/src/components/DebitForm/utils.ts +2 -0
- package/src/retail/adaptors/getPersonalInfoData.tsx +4 -1
- package/src/retail/components/DraftDialog/DraftDialog.tsx +6 -13
- package/src/retail/components/DraftDialog/EmptyDraftDialog.tsx +8 -2
- package/src/retail/components/DraftDialog/creditProgramCodes.ts +40 -0
- package/src/retail/components/DraftDialog/useDraftDialog.tsx +1 -1
- package/src/retail/components/DraftDialog/utils.ts +22 -27
- package/src/retail/components/Fields/CardCategoryField.tsx +14 -3
- package/src/retail/model/LeadFormState.ts +0 -1
- package/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -2294,7 +2294,7 @@
|
|
|
2294
2294
|
};
|
|
2295
2295
|
const byNonEmptyValidator = (validator = {}) => ({ name }) => Boolean(validator[name ?? '']);
|
|
2296
2296
|
const byCondition = (formState) => (fieldDef) => !fieldDef?.condition ||
|
|
2297
|
-
fieldDef.condition.values.
|
|
2297
|
+
fieldDef.condition.values.some((_) => {
|
|
2298
2298
|
const dependencyValue = formState?.[fieldDef?.condition?.name ?? ''];
|
|
2299
2299
|
return _ === (dependencyValue?.key ?? dependencyValue);
|
|
2300
2300
|
});
|
|
@@ -2570,7 +2570,8 @@
|
|
|
2570
2570
|
const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-l", font: "font-light", color: "text-secondary-text", children: [text ? jsx(Text, { children: text }) : null, link ? (jsx(Link, { ...link, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", children: link.text })) : null] })));
|
|
2571
2571
|
|
|
2572
2572
|
const agreementText = 'Нажимая кнопку, вы подтверждаете согласие с ';
|
|
2573
|
-
const
|
|
2573
|
+
const agreementTextPF = 'Нажимая на кнопку, вы подтверждаете, что клиент дал согласие на ';
|
|
2574
|
+
const renderAgreementSubmit = ({ consentDataProcessing, link, button, typeForm, }) => (jsxs("div", { className: "flex col-span-2 gap-xs flex-col w-full items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3 items-center", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: typeForm === 'PF' ? agreementTextPF : agreementText, link: link })), jsx(SubmitButton$1, { className: "w-full @xl:w-auto", children: button?.text ? button.text : 'Отправить заявку' })] }));
|
|
2574
2575
|
|
|
2575
2576
|
const renderContacts = () => (jsxs("div", { className: "space-y-m", children: [jsx(Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "@xl:text-center" }), jsxs("div", { className: "flex sm:justify-center gap-xl", children: [jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", href: `tel:8 (800) 200-78-70`, "aria-label": "\u0442\u0435\u043B\u0435\u0444\u043E\u043D 8 (800) 200-78-70", children: [jsx(Img, { image: { icon: 'PhoneIcon' }, width: "24", height: "24" }), jsx("span", { children: "8 (800) 200-78-70" })] }), jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", "aria-label": "\u043F\u043E\u0447\u0442\u0430 ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(Img, { image: { icon: 'MailIcon' }, width: "24", height: "24" }), jsx("span", { children: "ved@rshb.ru" })] })] })] }));
|
|
2576
2577
|
|
|
@@ -2595,7 +2596,12 @@
|
|
|
2595
2596
|
onSubmit: handleSubmit,
|
|
2596
2597
|
});
|
|
2597
2598
|
const fieldName = getConsentDataProcessing(inputs)?.name;
|
|
2598
|
-
return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [jsxs("form", { onSubmit: onSubmit, children: [renderSections(sections, field, { typeForm, additionalParams }), renderAgreementSubmit(
|
|
2599
|
+
return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [jsxs("form", { onSubmit: onSubmit, children: [renderSections(sections, field, { typeForm, additionalParams }), renderAgreementSubmit({
|
|
2600
|
+
consentDataProcessing: fieldName ? field('consentDataProcessing') : undefined,
|
|
2601
|
+
link,
|
|
2602
|
+
button,
|
|
2603
|
+
typeForm,
|
|
2604
|
+
})] }), isContacts ? renderContacts() : null] }));
|
|
2599
2605
|
});
|
|
2600
2606
|
const renderSections = (sections, field, { typeForm, additionalParams }) => sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), (_?.inputs || [])?.map(getField(field, { typeForm, ...additionalParams }))] }, `section-${i}`)));
|
|
2601
2607
|
|
|
@@ -2821,10 +2827,6 @@
|
|
|
2821
2827
|
text: 'Согласие на информирование о продуктах и услугах Банка',
|
|
2822
2828
|
docId: 14,
|
|
2823
2829
|
},
|
|
2824
|
-
consentProviderFlg: {
|
|
2825
|
-
text: 'Согласие об использовании простой электронной подписи',
|
|
2826
|
-
docId: 5,
|
|
2827
|
-
},
|
|
2828
2830
|
consentOthersFlg: {
|
|
2829
2831
|
text: 'Прочие согласия',
|
|
2830
2832
|
docId: 20,
|
|
@@ -2914,7 +2916,7 @@
|
|
|
2914
2916
|
|
|
2915
2917
|
const getLink = (body) => fetchRetailJSON('/esia/getLink', 'POST', body);
|
|
2916
2918
|
|
|
2917
|
-
const EsiaLoginBanner = JSX(({ onChangeEsiaStatus }) => {
|
|
2919
|
+
const EsiaLoginBanner = JSX(({ onChangeEsiaStatus, productType }) => {
|
|
2918
2920
|
const navigator = locationNavigator();
|
|
2919
2921
|
const handleAuth = useCallback(async () => {
|
|
2920
2922
|
try {
|
|
@@ -2929,7 +2931,7 @@
|
|
|
2929
2931
|
onChangeEsiaStatus(EsiaStatuses.Error);
|
|
2930
2932
|
}
|
|
2931
2933
|
}, []);
|
|
2932
|
-
return (jsxs("div", { className: "flex
|
|
2934
|
+
return (jsxs("div", { className: "flex items-center rounded-md bg-main-gray p-4xl", children: [jsxs("div", { className: "flex gap-m flex-col justify-around w-full", children: [jsx("p", { className: "text-xl", children: `Заполните данные через Госуслуги${productType === 'debitCard' ? ' - это значительно сократит время оформления заявки' : ''}` }), productType === 'debitCard' ? null : (jsxs("ul", { className: "list-disc list-inside", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] })), jsx(Img, { className: "block self-center @md:hidden", image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "80", width: "80" }), jsx(Button, { type: "button", onClick: handleAuth, className: "w-full @md:w-fit", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C" })] }), jsx(Img, { className: "hidden @md:block", image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "164" })] }));
|
|
2933
2935
|
});
|
|
2934
2936
|
|
|
2935
2937
|
const NAME_HINTS_LIST_OPTIONS = {
|
|
@@ -4055,17 +4057,23 @@
|
|
|
4055
4057
|
const [programId] = useLocalStorage('programId');
|
|
4056
4058
|
const { value: selectedCardCategory, onChange: cardCategoryChange } = field('cardCategory');
|
|
4057
4059
|
const selectedPaymentSystem = field('paymentSystem')?.value?.key;
|
|
4060
|
+
const getCardCategoryValue = useCallback((fetchedCardTypes) => fetchedCardTypes.length === 1
|
|
4061
|
+
? {
|
|
4062
|
+
key: fetchedCardTypes[0].key,
|
|
4063
|
+
text: fetchedCardTypes[0].value,
|
|
4064
|
+
}
|
|
4065
|
+
: null, []);
|
|
4058
4066
|
useEffect(() => {
|
|
4059
4067
|
if (selectedPaymentSystem && programId) {
|
|
4060
4068
|
(async () => {
|
|
4061
4069
|
const fetchedCardTypes = await getCardTypes(selectedPaymentSystem, programId);
|
|
4062
4070
|
setCardTypes(fetchedCardTypes);
|
|
4063
4071
|
if (!isValidCardCategory(fetchedCardTypes, selectedCardCategory)) {
|
|
4064
|
-
cardCategoryChange
|
|
4072
|
+
cardCategoryChange?.(getCardCategoryValue(fetchedCardTypes));
|
|
4065
4073
|
}
|
|
4066
4074
|
})();
|
|
4067
4075
|
}
|
|
4068
|
-
}, [selectedPaymentSystem]);
|
|
4076
|
+
}, [selectedPaymentSystem, getCardCategoryValue]);
|
|
4069
4077
|
const description = useMemo(() => cardTypes?.find((_) => _.key === selectedCardCategory?.key)?.description, [cardTypes, selectedCardCategory]);
|
|
4070
4078
|
return (jsxs("div", { children: [jsx(SelectField, { field: field, source: cardTypes, label: "\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u044F \u043A\u0430\u0440\u0442\u044B", fieldName: "cardCategory", input: input }), description ? jsx(InfoCard, { __html: description }) : null] }));
|
|
4071
4079
|
});
|
|
@@ -4465,6 +4473,8 @@
|
|
|
4465
4473
|
42: 'eco_debit_card',
|
|
4466
4474
|
43: 'junior_debit_card',
|
|
4467
4475
|
44: 'appetit_debit_card',
|
|
4476
|
+
46: 'owner_debit_card_plus',
|
|
4477
|
+
47: 'owner_debit_card_pens_plus',
|
|
4468
4478
|
};
|
|
4469
4479
|
|
|
4470
4480
|
const RadioButtonGroupControl = JSX(({ className, label, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(RadioButtonGroup, { label: getRequiredLabel({ label, errors: rest?.errors }), ...rest }), renderErrorText(error)] })));
|
|
@@ -5539,6 +5549,43 @@
|
|
|
5539
5549
|
};
|
|
5540
5550
|
};
|
|
5541
5551
|
|
|
5552
|
+
/* eslint-disable camelcase */
|
|
5553
|
+
const creditCodesToProgrammIdMap = {
|
|
5554
|
+
credit_cash: '10',
|
|
5555
|
+
credit_cash_single_doc: '28',
|
|
5556
|
+
credit_mcx: '39',
|
|
5557
|
+
family_offer_credit: '41',
|
|
5558
|
+
gas_engine_fuel: '33',
|
|
5559
|
+
pension_credit: '12',
|
|
5560
|
+
ref_credit: '11',
|
|
5561
|
+
ref_credit_single_doc: '29',
|
|
5562
|
+
self_employed: '34',
|
|
5563
|
+
summer_cash: '35',
|
|
5564
|
+
summer_cash_pens: '36',
|
|
5565
|
+
};
|
|
5566
|
+
const debitCardCodesToProgrammIdMap = {
|
|
5567
|
+
amur_debit_card: '17',
|
|
5568
|
+
owner_debit_card: '16',
|
|
5569
|
+
pension_debit_card: '18',
|
|
5570
|
+
salary_debit_card: '38',
|
|
5571
|
+
vordi_debit_card: '40',
|
|
5572
|
+
eco_debit_card: '42',
|
|
5573
|
+
junior_debit_card: '43',
|
|
5574
|
+
appetit_debit_card: '44',
|
|
5575
|
+
owner_debit_card_plus: '46',
|
|
5576
|
+
owner_debit_card_pens_plus: '47',
|
|
5577
|
+
};
|
|
5578
|
+
const cardCodesToProgrammIdMap = {
|
|
5579
|
+
amur_card: '14',
|
|
5580
|
+
owner_card: '13',
|
|
5581
|
+
travel_card: '15',
|
|
5582
|
+
};
|
|
5583
|
+
const creditProgramCodeToProductIdMap = {
|
|
5584
|
+
...creditCodesToProgrammIdMap,
|
|
5585
|
+
...cardCodesToProgrammIdMap,
|
|
5586
|
+
...debitCardCodesToProgrammIdMap,
|
|
5587
|
+
};
|
|
5588
|
+
|
|
5542
5589
|
const DraftActionButton = JSX(({ title, icon, description, onClick = noop }) => (jsxs("button", { className: "flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green", type: "button", onClick: onClick, children: [jsx(Img, { image: { icon, iconVersion: 'normal' }, width: "78", height: "78" }), jsxs("div", { className: "flex flex-col items-start gap-xs md:w-72 md:mr-lg", children: [title ? (jsx(Text, { font: "font-medium", size: "text-s", children: title })) : null, description ? (jsx(Text, { color: "text-secondary-text", size: "text-xs", children: description })) : null] })] })));
|
|
5543
5590
|
|
|
5544
5591
|
const fieldsNamesToContactKeysMap = {
|
|
@@ -5634,7 +5681,6 @@
|
|
|
5634
5681
|
};
|
|
5635
5682
|
const countIncomeAverage = (wages, retirementIncome) => (Number(wages ?? 0) + Number(retirementIncome ?? 0)).toString();
|
|
5636
5683
|
|
|
5637
|
-
/* eslint-disable camelcase */
|
|
5638
5684
|
const EMPLOYMENT_TYPE = {
|
|
5639
5685
|
WORK: 'Работаю',
|
|
5640
5686
|
RETIREE: 'Пенсионер',
|
|
@@ -5645,28 +5691,6 @@
|
|
|
5645
5691
|
PFR_CERTIFICATE: 'Получаю зарплату на счет/карту в другом банке',
|
|
5646
5692
|
OTHER: 'Другое',
|
|
5647
5693
|
};
|
|
5648
|
-
const creditCodesToProgrammIdMap = {
|
|
5649
|
-
credit_cash: '10',
|
|
5650
|
-
credit_cash_single_doc: '28',
|
|
5651
|
-
credit_mcx: '39',
|
|
5652
|
-
family_offer_credit: '41',
|
|
5653
|
-
gas_engine_fuel: '33',
|
|
5654
|
-
pension_credit: '12',
|
|
5655
|
-
ref_credit: '11',
|
|
5656
|
-
ref_credit_single_doc: '29',
|
|
5657
|
-
self_employed: '34',
|
|
5658
|
-
summer_cash: '35',
|
|
5659
|
-
summer_cash_pens: '36',
|
|
5660
|
-
};
|
|
5661
|
-
const cardCodesToProgrammIdMap = {
|
|
5662
|
-
amur_card: '14',
|
|
5663
|
-
owner_card: '13',
|
|
5664
|
-
travel_card: '15',
|
|
5665
|
-
};
|
|
5666
|
-
const creditProgramCodeToProductIdMap = {
|
|
5667
|
-
...creditCodesToProgrammIdMap,
|
|
5668
|
-
...cardCodesToProgrammIdMap,
|
|
5669
|
-
};
|
|
5670
5694
|
const getParticipantIncomes = (participantIncomes) => {
|
|
5671
5695
|
const wages = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "WAGES" /* EIncomesType.WAGES */)?.value;
|
|
5672
5696
|
const mandatoryPayments = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "MANDATORY_PAYMENTS" /* EIncomesType.MANDATORY_PAYMENTS */)?.value;
|
|
@@ -5722,6 +5746,27 @@
|
|
|
5722
5746
|
}
|
|
5723
5747
|
: undefined;
|
|
5724
5748
|
};
|
|
5749
|
+
const getProductData = (isDebit = false, isCredit = false) => {
|
|
5750
|
+
if (isDebit) {
|
|
5751
|
+
return {
|
|
5752
|
+
nextStepLink: '/debit-card-lead',
|
|
5753
|
+
newTaskLink: '/natural/debetcards',
|
|
5754
|
+
description: 'На дебетовую карту',
|
|
5755
|
+
};
|
|
5756
|
+
}
|
|
5757
|
+
else if (isCredit) {
|
|
5758
|
+
return {
|
|
5759
|
+
nextStepLink: '/credit-lead',
|
|
5760
|
+
newTaskLink: '/natural/loans/all-goals',
|
|
5761
|
+
description: 'На получение кредита',
|
|
5762
|
+
};
|
|
5763
|
+
}
|
|
5764
|
+
return {
|
|
5765
|
+
nextStepLink: '/credit-card-lead',
|
|
5766
|
+
newTaskLink: '/natural/creditcards/svoya',
|
|
5767
|
+
description: 'На получение кредитной карты',
|
|
5768
|
+
};
|
|
5769
|
+
};
|
|
5725
5770
|
|
|
5726
5771
|
const parseDraftTask = (task) => {
|
|
5727
5772
|
const participant = task.participants[0];
|
|
@@ -5793,15 +5838,7 @@
|
|
|
5793
5838
|
const { participants, creditProgram, createdDate = '', id: taskId } = task;
|
|
5794
5839
|
const programmId = creditProgramCodeToProductIdMap[creditProgram.code];
|
|
5795
5840
|
const isCredit = Boolean(creditCodesToProgrammIdMap[creditProgram.code]);
|
|
5796
|
-
const
|
|
5797
|
-
if (isDebit) {
|
|
5798
|
-
return '/debit-card-lead';
|
|
5799
|
-
}
|
|
5800
|
-
else if (isCredit) {
|
|
5801
|
-
return '/credit-lead';
|
|
5802
|
-
}
|
|
5803
|
-
return '/credit-card-lead';
|
|
5804
|
-
};
|
|
5841
|
+
const productData = getProductData(isDebit, isCredit);
|
|
5805
5842
|
const { id: participantId, profile } = participants[0];
|
|
5806
5843
|
const handleGoToDraft = useCallback(() => {
|
|
5807
5844
|
const taskFromDraft = parseDraftTask(task);
|
|
@@ -5813,18 +5850,19 @@
|
|
|
5813
5850
|
if (profile?.id) {
|
|
5814
5851
|
sendAspects(profile.id, taskId);
|
|
5815
5852
|
}
|
|
5816
|
-
navigator.assign(
|
|
5853
|
+
navigator.assign(productData.nextStepLink);
|
|
5817
5854
|
}, []);
|
|
5818
5855
|
const handleGoToNewTask = useCallback(() => {
|
|
5819
|
-
navigator.assign(
|
|
5856
|
+
navigator.assign(productData.newTaskLink);
|
|
5820
5857
|
}, []);
|
|
5821
|
-
return (jsx(Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description:
|
|
5858
|
+
return (jsx(Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: productData.description, onClick: isFromLead ? onClose : handleGoToNewTask })] })] }) }));
|
|
5822
5859
|
});
|
|
5823
5860
|
|
|
5824
|
-
const EmptyDraftDialog = JSX(function ({ onClose = noop }) {
|
|
5861
|
+
const EmptyDraftDialog = JSX(function ({ isDebit, onClose = noop }) {
|
|
5825
5862
|
const navigator = locationNavigator();
|
|
5863
|
+
const productData = getProductData(isDebit);
|
|
5826
5864
|
const handleGoNewTask = useCallback(() => {
|
|
5827
|
-
navigator.assign(
|
|
5865
|
+
navigator.assign(productData.newTaskLink);
|
|
5828
5866
|
}, []);
|
|
5829
5867
|
const handleGoMainPage = useCallback(() => {
|
|
5830
5868
|
navigator.assign('/');
|
|
@@ -5839,7 +5877,7 @@
|
|
|
5839
5877
|
open: ({ task, isFromLead, isDebit, onClose, sendAspects }) => {
|
|
5840
5878
|
task
|
|
5841
5879
|
? openDraftDialog({ task, isFromLead, isDebit, onClose, sendAspects })
|
|
5842
|
-
: openEmptyDraftDialog({});
|
|
5880
|
+
: openEmptyDraftDialog({ isDebit });
|
|
5843
5881
|
},
|
|
5844
5882
|
};
|
|
5845
5883
|
};
|
|
@@ -6516,7 +6554,7 @@
|
|
|
6516
6554
|
reset();
|
|
6517
6555
|
}
|
|
6518
6556
|
}, [leadForm?.current, esiaStatus]);
|
|
6519
|
-
return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [!esiaStatus ? jsx(EsiaLoginBanner, { onChangeEsiaStatus: setEsiaStatus }) : null, jsxs("form", { onSubmit: onSubmitWithPrecondition, className: "space-y-m relative", ref: leadForm, children: [esiaStatus === EsiaStatuses.Pending ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$1({ field, inputs: _?.inputs }, productType)] }, `section-${i}`))), renderSubmitButton(button, isSending), esiaStatus === EsiaStatuses.Error ? (jsx(Text, { size: "text-m", font: "font-medium", color: "text-error", children: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438 \u0434\u043B\u044F \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0437\u0430\u044F\u0432\u043A\u0438 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0432\u0440\u0443\u0447\u043D\u0443\u044E." })) : null] })] }));
|
|
6557
|
+
return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [!esiaStatus ? (jsx(EsiaLoginBanner, { onChangeEsiaStatus: setEsiaStatus, productType: productType })) : null, jsxs("form", { onSubmit: onSubmitWithPrecondition, className: "space-y-m relative", ref: leadForm, children: [esiaStatus === EsiaStatuses.Pending ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$1({ field, inputs: _?.inputs }, productType)] }, `section-${i}`))), renderSubmitButton(button, isSending), esiaStatus === EsiaStatuses.Error ? (jsx(Text, { size: "text-m", font: "font-medium", color: "text-error", children: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438 \u0434\u043B\u044F \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0437\u0430\u044F\u0432\u043A\u0438 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0432\u0440\u0443\u0447\u043D\u0443\u044E." })) : null] })] }));
|
|
6520
6558
|
});
|
|
6521
6559
|
const getInputs = (applicationFormData) => (applicationFormData?.flatMap((_) => _?.inputs) || []);
|
|
6522
6560
|
const getExtendedValidatorObj = (productType) => ({
|
|
@@ -8279,7 +8317,10 @@
|
|
|
8279
8317
|
phone: formatPhone(phone),
|
|
8280
8318
|
email,
|
|
8281
8319
|
}),
|
|
8282
|
-
participantAddresses: getParticipantAddresses$1({
|
|
8320
|
+
participantAddresses: getParticipantAddresses$1({
|
|
8321
|
+
addressRegistration,
|
|
8322
|
+
addressFact: addressMatch ? addressRegistration : addressFact,
|
|
8323
|
+
}),
|
|
8283
8324
|
genderCd: sex
|
|
8284
8325
|
? {
|
|
8285
8326
|
key: sex === 'male' ? 'MAN' : 'WOMAN',
|
|
@@ -9506,6 +9547,7 @@
|
|
|
9506
9547
|
fullAddress: '',
|
|
9507
9548
|
fiasCode: '',
|
|
9508
9549
|
},
|
|
9550
|
+
addressMatch: true,
|
|
9509
9551
|
addressFact: {
|
|
9510
9552
|
fullAddress: '',
|
|
9511
9553
|
fiasCode: '',
|
|
@@ -9659,6 +9701,108 @@
|
|
|
9659
9701
|
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field, step }), jsx(StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
|
|
9660
9702
|
});
|
|
9661
9703
|
|
|
9704
|
+
/* eslint-disable max-lines */
|
|
9705
|
+
const DELIVERY_DEBIT_CARD_CONTENT = [
|
|
9706
|
+
{
|
|
9707
|
+
title: 'Регион обслуживания карты',
|
|
9708
|
+
columns: 1,
|
|
9709
|
+
inputs: [],
|
|
9710
|
+
},
|
|
9711
|
+
{
|
|
9712
|
+
inputs: [
|
|
9713
|
+
{
|
|
9714
|
+
name: 'regionRetail',
|
|
9715
|
+
required: true,
|
|
9716
|
+
},
|
|
9717
|
+
],
|
|
9718
|
+
},
|
|
9719
|
+
{
|
|
9720
|
+
title: 'Способ получения',
|
|
9721
|
+
columns: 1,
|
|
9722
|
+
inputs: [],
|
|
9723
|
+
condition: {
|
|
9724
|
+
name: 'regionHasDelivery',
|
|
9725
|
+
values: [true],
|
|
9726
|
+
},
|
|
9727
|
+
},
|
|
9728
|
+
{
|
|
9729
|
+
inputs: [
|
|
9730
|
+
{
|
|
9731
|
+
name: 'methodObtain',
|
|
9732
|
+
condition: {
|
|
9733
|
+
name: 'regionHasDelivery',
|
|
9734
|
+
values: [true],
|
|
9735
|
+
},
|
|
9736
|
+
},
|
|
9737
|
+
],
|
|
9738
|
+
},
|
|
9739
|
+
{
|
|
9740
|
+
title: 'Выбор офиса',
|
|
9741
|
+
columns: 1,
|
|
9742
|
+
inputs: [],
|
|
9743
|
+
condition: {
|
|
9744
|
+
name: 'methodObtain',
|
|
9745
|
+
values: ['office'],
|
|
9746
|
+
},
|
|
9747
|
+
},
|
|
9748
|
+
{
|
|
9749
|
+
title: 'Адрес доставки',
|
|
9750
|
+
columns: 1,
|
|
9751
|
+
inputs: [],
|
|
9752
|
+
condition: {
|
|
9753
|
+
name: 'methodObtain',
|
|
9754
|
+
values: ['courier'],
|
|
9755
|
+
},
|
|
9756
|
+
},
|
|
9757
|
+
{
|
|
9758
|
+
inputs: [
|
|
9759
|
+
{
|
|
9760
|
+
name: 'addressCourier',
|
|
9761
|
+
dadata: true,
|
|
9762
|
+
condition: {
|
|
9763
|
+
name: 'methodObtain',
|
|
9764
|
+
values: ['courier'],
|
|
9765
|
+
},
|
|
9766
|
+
required: true,
|
|
9767
|
+
},
|
|
9768
|
+
],
|
|
9769
|
+
},
|
|
9770
|
+
{
|
|
9771
|
+
inputs: [
|
|
9772
|
+
{
|
|
9773
|
+
name: 'infoCard',
|
|
9774
|
+
condition: {
|
|
9775
|
+
name: 'methodObtain',
|
|
9776
|
+
values: ['courier'],
|
|
9777
|
+
},
|
|
9778
|
+
label: 'Ожидайте звонка для согласования даты и времени доставки карты',
|
|
9779
|
+
},
|
|
9780
|
+
],
|
|
9781
|
+
},
|
|
9782
|
+
{
|
|
9783
|
+
inputs: [
|
|
9784
|
+
{
|
|
9785
|
+
name: 'comment',
|
|
9786
|
+
condition: {
|
|
9787
|
+
name: 'methodObtain',
|
|
9788
|
+
values: ['courier'],
|
|
9789
|
+
},
|
|
9790
|
+
},
|
|
9791
|
+
],
|
|
9792
|
+
},
|
|
9793
|
+
{
|
|
9794
|
+
inputs: [
|
|
9795
|
+
{
|
|
9796
|
+
name: 'addressRetail',
|
|
9797
|
+
required: true,
|
|
9798
|
+
condition: {
|
|
9799
|
+
name: 'methodObtain',
|
|
9800
|
+
values: ['office'],
|
|
9801
|
+
},
|
|
9802
|
+
},
|
|
9803
|
+
],
|
|
9804
|
+
},
|
|
9805
|
+
];
|
|
9662
9806
|
const DEBIT_PERSONAL_INFO_CONTENT = [
|
|
9663
9807
|
...PERSONAL_DATA,
|
|
9664
9808
|
{
|
|
@@ -9680,9 +9824,23 @@
|
|
|
9680
9824
|
{
|
|
9681
9825
|
title: 'Адрес фактического проживания (место пребывания РФ)',
|
|
9682
9826
|
inputs: [],
|
|
9827
|
+
condition: {
|
|
9828
|
+
name: 'addressMatch',
|
|
9829
|
+
values: [false],
|
|
9830
|
+
},
|
|
9683
9831
|
},
|
|
9684
9832
|
{
|
|
9685
|
-
inputs: [
|
|
9833
|
+
inputs: [
|
|
9834
|
+
{
|
|
9835
|
+
name: 'addressFact',
|
|
9836
|
+
required: true,
|
|
9837
|
+
dadata: true,
|
|
9838
|
+
condition: {
|
|
9839
|
+
name: 'addressMatch',
|
|
9840
|
+
values: [false],
|
|
9841
|
+
},
|
|
9842
|
+
},
|
|
9843
|
+
],
|
|
9686
9844
|
},
|
|
9687
9845
|
];
|
|
9688
9846
|
const DEBIT_CARD_CONTENT = [
|
|
@@ -9713,6 +9871,9 @@
|
|
|
9713
9871
|
},
|
|
9714
9872
|
],
|
|
9715
9873
|
},
|
|
9874
|
+
{
|
|
9875
|
+
inputs: [{ name: 'codeWord', required: true }],
|
|
9876
|
+
},
|
|
9716
9877
|
{
|
|
9717
9878
|
inputs: [
|
|
9718
9879
|
{
|
|
@@ -9723,12 +9884,9 @@
|
|
|
9723
9884
|
},
|
|
9724
9885
|
],
|
|
9725
9886
|
},
|
|
9726
|
-
{
|
|
9727
|
-
inputs: [{ name: 'codeWord', required: true }],
|
|
9728
|
-
},
|
|
9729
9887
|
];
|
|
9730
9888
|
const stepsSectionsMap = [
|
|
9731
|
-
|
|
9889
|
+
DELIVERY_DEBIT_CARD_CONTENT,
|
|
9732
9890
|
DEBIT_PERSONAL_INFO_CONTENT,
|
|
9733
9891
|
DEBIT_CARD_CONTENT,
|
|
9734
9892
|
];
|
|
@@ -9751,7 +9909,11 @@
|
|
|
9751
9909
|
}, []);
|
|
9752
9910
|
const sections = stepsSectionsMap[step];
|
|
9753
9911
|
const isStartStep = step === 0;
|
|
9754
|
-
const [isFormFinished, { setTrue:
|
|
9912
|
+
const [isFormFinished, { setTrue: setIsFormFinished }] = useBool(false);
|
|
9913
|
+
const handleFinish = useCallback(() => {
|
|
9914
|
+
setIsFormFinished();
|
|
9915
|
+
scrollToTop();
|
|
9916
|
+
}, []);
|
|
9755
9917
|
return (jsx(BlockWrapper, { className: className, ...rest, children: jsxs("div", { ref: formContainerRef, className: "container grid grid-cols-12", children: [isStartStep || isFormFinished ? null : (jsx(DebitFormProgress, { stepsTitles: STEP_TITLES, step: step, totalSteps: STEPS })), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: isFormFinished ? (jsx(DebitFormStatusTracker, {})) : (jsx(DebitFormStep, { step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep, onFinish: handleFinish }, String(step))) })] }) }));
|
|
9756
9918
|
});
|
|
9757
9919
|
|
|
@@ -11368,7 +11530,7 @@
|
|
|
11368
11530
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
11369
11531
|
});
|
|
11370
11532
|
|
|
11371
|
-
const packageVersion = "0.14.
|
|
11533
|
+
const packageVersion = "0.14.885";
|
|
11372
11534
|
|
|
11373
11535
|
exports.Blocks = Blocks;
|
|
11374
11536
|
exports.ContentPage = ContentPage;
|