@redneckz/wildless-cms-uni-blocks 0.14.883 → 0.14.885
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +228 -66
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/bundle/components/DebitForm/DebitFormStepsData.d.ts +1 -0
- package/bundle/components/DebitForm/utils.d.ts +2 -0
- package/bundle/components/Header/useDropdownSubMenu.d.ts +2 -1
- package/bundle/icons/IconName.d.ts +7 -3
- 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/cosmos-static/icons/LogoIcon.svg +1 -1
- package/cosmos-static/icons/LogoIconBig.svg +1 -0
- package/cosmos-static/icons/LogoIconDefault.svg +1 -0
- package/cosmos-static/icons/sprites.svg +3 -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/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/components/Header/HeaderMoreMenuItem.js +0 -7
- package/dist/components/Header/HeaderMoreMenuItem.js.map +1 -1
- package/dist/components/Header/HeaderSubMenuItem.js +2 -1
- package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/dist/components/Header/useDropdownSubMenu.d.ts +2 -1
- package/dist/components/Header/useDropdownSubMenu.js +13 -2
- package/dist/components/Header/useDropdownSubMenu.js.map +1 -1
- package/dist/icons/IconName.d.ts +7 -3
- package/dist/icons/IconName.js +6 -2
- package/dist/icons/IconName.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/Fields/PartnerSymbolCodeField.js +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +1 -1
- package/lib/common.css +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/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/components/Header/HeaderMoreMenuItem.js +0 -7
- package/lib/components/Header/HeaderMoreMenuItem.js.map +1 -1
- package/lib/components/Header/HeaderSubMenuItem.js +2 -1
- package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/lib/components/Header/useDropdownSubMenu.d.ts +2 -1
- package/lib/components/Header/useDropdownSubMenu.js +13 -2
- package/lib/components/Header/useDropdownSubMenu.js.map +1 -1
- package/lib/icons/IconName.d.ts +7 -3
- package/lib/icons/IconName.js +6 -2
- package/lib/icons/IconName.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/Fields/PartnerSymbolCodeField.js +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/bundle/bundle.umd.js +213 -57
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +2 -1
- package/mobile/bundle/components/DebitForm/DebitFormStepsData.d.ts +1 -0
- package/mobile/bundle/components/DebitForm/utils.d.ts +2 -0
- package/mobile/bundle/components/Header/useDropdownSubMenu.d.ts +2 -1
- package/mobile/bundle/icons/IconName.d.ts +7 -3
- 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/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/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/components/Header/HeaderMoreMenuItem.js +0 -7
- package/mobile/dist/components/Header/HeaderMoreMenuItem.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenuItem.js +2 -1
- package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/dist/components/Header/useDropdownSubMenu.d.ts +2 -1
- package/mobile/dist/components/Header/useDropdownSubMenu.js +13 -2
- package/mobile/dist/components/Header/useDropdownSubMenu.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +7 -3
- package/mobile/dist/icons/IconName.js +6 -2
- package/mobile/dist/icons/IconName.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/Fields/PartnerSymbolCodeField.js +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/lib/common.css +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/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/components/Header/HeaderMoreMenuItem.js +0 -7
- package/mobile/lib/components/Header/HeaderMoreMenuItem.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenuItem.js +2 -1
- package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/lib/components/Header/useDropdownSubMenu.d.ts +2 -1
- package/mobile/lib/components/Header/useDropdownSubMenu.js +13 -2
- package/mobile/lib/components/Header/useDropdownSubMenu.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +7 -3
- package/mobile/lib/icons/IconName.js +6 -2
- package/mobile/lib/icons/IconName.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/Fields/PartnerSymbolCodeField.js +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +4 -4
- 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/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/components/Header/HeaderMoreMenuItem.tsx +0 -9
- package/mobile/src/components/Header/HeaderSubMenuItem.tsx +2 -1
- package/mobile/src/components/Header/useDropdownSubMenu.tsx +23 -3
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/icons/LogoIcon.svg +28 -7
- package/mobile/src/icons/LogoIconBig.svg +28 -0
- package/mobile/src/icons/LogoIconDefault.svg +7 -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/Fields/PartnerSymbolCodeField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.example.json +4 -4
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +7 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +7 -1
- 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/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/components/Header/HeaderMoreMenuItem.tsx +0 -9
- package/src/components/Header/HeaderSubMenuItem.tsx +2 -1
- package/src/components/Header/useDropdownSubMenu.tsx +23 -3
- package/src/icons/IconName.ts +5 -5
- package/src/icons/LogoIcon.svg +28 -7
- package/src/icons/LogoIconBig.svg +28 -0
- package/src/icons/LogoIconDefault.svg +7 -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/Fields/PartnerSymbolCodeField.tsx +1 -1
- package/src/ui-kit/FormField/getObjectValidator.tsx +1 -1
|
@@ -2167,7 +2167,7 @@
|
|
|
2167
2167
|
? 'ID партнера не найден. Обратитесь к своему менеджеру'
|
|
2168
2168
|
: '');
|
|
2169
2169
|
}, [partnerCode]);
|
|
2170
|
-
return (jsx(InputControl, { label: "\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0430\u0440\u0442\u043D\
|
|
2170
|
+
return (jsx(InputControl, { label: "\u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440 \u043F\u0430\u0440\u0442\u043D\u0451\u0440\u0430", isInteger: true, maxLength: 12, ...input, ...field(input?.name ?? ''), error: symbolCodeError || field('partnerSymbolCode')?.error }));
|
|
2171
2171
|
});
|
|
2172
2172
|
|
|
2173
2173
|
const isPlaceholder = (_) => _ === '_';
|
|
@@ -2302,7 +2302,7 @@
|
|
|
2302
2302
|
};
|
|
2303
2303
|
const byNonEmptyValidator = (validator = {}) => ({ name }) => Boolean(validator[name ?? '']);
|
|
2304
2304
|
const byCondition = (formState) => (fieldDef) => !fieldDef?.condition ||
|
|
2305
|
-
fieldDef.condition.values.
|
|
2305
|
+
fieldDef.condition.values.some((_) => {
|
|
2306
2306
|
const dependencyValue = formState?.[fieldDef?.condition?.name ?? ''];
|
|
2307
2307
|
return _ === (dependencyValue?.key ?? dependencyValue);
|
|
2308
2308
|
});
|
|
@@ -2829,10 +2829,6 @@
|
|
|
2829
2829
|
text: 'Согласие на информирование о продуктах и услугах Банка',
|
|
2830
2830
|
docId: 14,
|
|
2831
2831
|
},
|
|
2832
|
-
consentProviderFlg: {
|
|
2833
|
-
text: 'Согласие об использовании простой электронной подписи',
|
|
2834
|
-
docId: 5,
|
|
2835
|
-
},
|
|
2836
2832
|
consentOthersFlg: {
|
|
2837
2833
|
text: 'Прочие согласия',
|
|
2838
2834
|
docId: 20,
|
|
@@ -2922,7 +2918,7 @@
|
|
|
2922
2918
|
|
|
2923
2919
|
const getLink = (body) => fetchRetailJSON('/esia/getLink', 'POST', body);
|
|
2924
2920
|
|
|
2925
|
-
const EsiaLoginBanner = JSX(({ onChangeEsiaStatus }) => {
|
|
2921
|
+
const EsiaLoginBanner = JSX(({ onChangeEsiaStatus, productType }) => {
|
|
2926
2922
|
const navigator = locationNavigator();
|
|
2927
2923
|
const handleAuth = useCallback(async () => {
|
|
2928
2924
|
try {
|
|
@@ -2937,7 +2933,7 @@
|
|
|
2937
2933
|
onChangeEsiaStatus(EsiaStatuses.Error);
|
|
2938
2934
|
}
|
|
2939
2935
|
}, []);
|
|
2940
|
-
return (jsxs("div", { className: "flex
|
|
2936
|
+
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" })] }));
|
|
2941
2937
|
});
|
|
2942
2938
|
|
|
2943
2939
|
const NAME_HINTS_LIST_OPTIONS = {
|
|
@@ -4063,17 +4059,23 @@
|
|
|
4063
4059
|
const [programId] = useLocalStorage('programId');
|
|
4064
4060
|
const { value: selectedCardCategory, onChange: cardCategoryChange } = field('cardCategory');
|
|
4065
4061
|
const selectedPaymentSystem = field('paymentSystem')?.value?.key;
|
|
4062
|
+
const getCardCategoryValue = useCallback((fetchedCardTypes) => fetchedCardTypes.length === 1
|
|
4063
|
+
? {
|
|
4064
|
+
key: fetchedCardTypes[0].key,
|
|
4065
|
+
text: fetchedCardTypes[0].value,
|
|
4066
|
+
}
|
|
4067
|
+
: null, []);
|
|
4066
4068
|
useEffect(() => {
|
|
4067
4069
|
if (selectedPaymentSystem && programId) {
|
|
4068
4070
|
(async () => {
|
|
4069
4071
|
const fetchedCardTypes = await getCardTypes(selectedPaymentSystem, programId);
|
|
4070
4072
|
setCardTypes(fetchedCardTypes);
|
|
4071
4073
|
if (!isValidCardCategory(fetchedCardTypes, selectedCardCategory)) {
|
|
4072
|
-
cardCategoryChange
|
|
4074
|
+
cardCategoryChange?.(getCardCategoryValue(fetchedCardTypes));
|
|
4073
4075
|
}
|
|
4074
4076
|
})();
|
|
4075
4077
|
}
|
|
4076
|
-
}, [selectedPaymentSystem]);
|
|
4078
|
+
}, [selectedPaymentSystem, getCardCategoryValue]);
|
|
4077
4079
|
const description = useMemo(() => cardTypes?.find((_) => _.key === selectedCardCategory?.key)?.description, [cardTypes, selectedCardCategory]);
|
|
4078
4080
|
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] }));
|
|
4079
4081
|
});
|
|
@@ -4473,6 +4475,8 @@
|
|
|
4473
4475
|
42: 'eco_debit_card',
|
|
4474
4476
|
43: 'junior_debit_card',
|
|
4475
4477
|
44: 'appetit_debit_card',
|
|
4478
|
+
46: 'owner_debit_card_plus',
|
|
4479
|
+
47: 'owner_debit_card_pens_plus',
|
|
4476
4480
|
};
|
|
4477
4481
|
|
|
4478
4482
|
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)] })));
|
|
@@ -5547,6 +5551,43 @@
|
|
|
5547
5551
|
};
|
|
5548
5552
|
};
|
|
5549
5553
|
|
|
5554
|
+
/* eslint-disable camelcase */
|
|
5555
|
+
const creditCodesToProgrammIdMap = {
|
|
5556
|
+
credit_cash: '10',
|
|
5557
|
+
credit_cash_single_doc: '28',
|
|
5558
|
+
credit_mcx: '39',
|
|
5559
|
+
family_offer_credit: '41',
|
|
5560
|
+
gas_engine_fuel: '33',
|
|
5561
|
+
pension_credit: '12',
|
|
5562
|
+
ref_credit: '11',
|
|
5563
|
+
ref_credit_single_doc: '29',
|
|
5564
|
+
self_employed: '34',
|
|
5565
|
+
summer_cash: '35',
|
|
5566
|
+
summer_cash_pens: '36',
|
|
5567
|
+
};
|
|
5568
|
+
const debitCardCodesToProgrammIdMap = {
|
|
5569
|
+
amur_debit_card: '17',
|
|
5570
|
+
owner_debit_card: '16',
|
|
5571
|
+
pension_debit_card: '18',
|
|
5572
|
+
salary_debit_card: '38',
|
|
5573
|
+
vordi_debit_card: '40',
|
|
5574
|
+
eco_debit_card: '42',
|
|
5575
|
+
junior_debit_card: '43',
|
|
5576
|
+
appetit_debit_card: '44',
|
|
5577
|
+
owner_debit_card_plus: '46',
|
|
5578
|
+
owner_debit_card_pens_plus: '47',
|
|
5579
|
+
};
|
|
5580
|
+
const cardCodesToProgrammIdMap = {
|
|
5581
|
+
amur_card: '14',
|
|
5582
|
+
owner_card: '13',
|
|
5583
|
+
travel_card: '15',
|
|
5584
|
+
};
|
|
5585
|
+
const creditProgramCodeToProductIdMap = {
|
|
5586
|
+
...creditCodesToProgrammIdMap,
|
|
5587
|
+
...cardCodesToProgrammIdMap,
|
|
5588
|
+
...debitCardCodesToProgrammIdMap,
|
|
5589
|
+
};
|
|
5590
|
+
|
|
5550
5591
|
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] })] })));
|
|
5551
5592
|
|
|
5552
5593
|
const fieldsNamesToContactKeysMap = {
|
|
@@ -5642,7 +5683,6 @@
|
|
|
5642
5683
|
};
|
|
5643
5684
|
const countIncomeAverage = (wages, retirementIncome) => (Number(wages ?? 0) + Number(retirementIncome ?? 0)).toString();
|
|
5644
5685
|
|
|
5645
|
-
/* eslint-disable camelcase */
|
|
5646
5686
|
const EMPLOYMENT_TYPE = {
|
|
5647
5687
|
WORK: 'Работаю',
|
|
5648
5688
|
RETIREE: 'Пенсионер',
|
|
@@ -5653,28 +5693,6 @@
|
|
|
5653
5693
|
PFR_CERTIFICATE: 'Получаю зарплату на счет/карту в другом банке',
|
|
5654
5694
|
OTHER: 'Другое',
|
|
5655
5695
|
};
|
|
5656
|
-
const creditCodesToProgrammIdMap = {
|
|
5657
|
-
credit_cash: '10',
|
|
5658
|
-
credit_cash_single_doc: '28',
|
|
5659
|
-
credit_mcx: '39',
|
|
5660
|
-
family_offer_credit: '41',
|
|
5661
|
-
gas_engine_fuel: '33',
|
|
5662
|
-
pension_credit: '12',
|
|
5663
|
-
ref_credit: '11',
|
|
5664
|
-
ref_credit_single_doc: '29',
|
|
5665
|
-
self_employed: '34',
|
|
5666
|
-
summer_cash: '35',
|
|
5667
|
-
summer_cash_pens: '36',
|
|
5668
|
-
};
|
|
5669
|
-
const cardCodesToProgrammIdMap = {
|
|
5670
|
-
amur_card: '14',
|
|
5671
|
-
owner_card: '13',
|
|
5672
|
-
travel_card: '15',
|
|
5673
|
-
};
|
|
5674
|
-
const creditProgramCodeToProductIdMap = {
|
|
5675
|
-
...creditCodesToProgrammIdMap,
|
|
5676
|
-
...cardCodesToProgrammIdMap,
|
|
5677
|
-
};
|
|
5678
5696
|
const getParticipantIncomes = (participantIncomes) => {
|
|
5679
5697
|
const wages = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "WAGES" /* EIncomesType.WAGES */)?.value;
|
|
5680
5698
|
const mandatoryPayments = participantIncomes?.find((contact) => contact.incomeTypeCd.key === "MANDATORY_PAYMENTS" /* EIncomesType.MANDATORY_PAYMENTS */)?.value;
|
|
@@ -5730,6 +5748,27 @@
|
|
|
5730
5748
|
}
|
|
5731
5749
|
: undefined;
|
|
5732
5750
|
};
|
|
5751
|
+
const getProductData = (isDebit = false, isCredit = false) => {
|
|
5752
|
+
if (isDebit) {
|
|
5753
|
+
return {
|
|
5754
|
+
nextStepLink: '/debit-card-lead',
|
|
5755
|
+
newTaskLink: '/natural/debetcards',
|
|
5756
|
+
description: 'На дебетовую карту',
|
|
5757
|
+
};
|
|
5758
|
+
}
|
|
5759
|
+
else if (isCredit) {
|
|
5760
|
+
return {
|
|
5761
|
+
nextStepLink: '/credit-lead',
|
|
5762
|
+
newTaskLink: '/natural/loans/all-goals',
|
|
5763
|
+
description: 'На получение кредита',
|
|
5764
|
+
};
|
|
5765
|
+
}
|
|
5766
|
+
return {
|
|
5767
|
+
nextStepLink: '/credit-card-lead',
|
|
5768
|
+
newTaskLink: '/natural/creditcards/svoya',
|
|
5769
|
+
description: 'На получение кредитной карты',
|
|
5770
|
+
};
|
|
5771
|
+
};
|
|
5733
5772
|
|
|
5734
5773
|
const parseDraftTask = (task) => {
|
|
5735
5774
|
const participant = task.participants[0];
|
|
@@ -5801,15 +5840,7 @@
|
|
|
5801
5840
|
const { participants, creditProgram, createdDate = '', id: taskId } = task;
|
|
5802
5841
|
const programmId = creditProgramCodeToProductIdMap[creditProgram.code];
|
|
5803
5842
|
const isCredit = Boolean(creditCodesToProgrammIdMap[creditProgram.code]);
|
|
5804
|
-
const
|
|
5805
|
-
if (isDebit) {
|
|
5806
|
-
return '/debit-card-lead';
|
|
5807
|
-
}
|
|
5808
|
-
else if (isCredit) {
|
|
5809
|
-
return '/credit-lead';
|
|
5810
|
-
}
|
|
5811
|
-
return '/credit-card-lead';
|
|
5812
|
-
};
|
|
5843
|
+
const productData = getProductData(isDebit, isCredit);
|
|
5813
5844
|
const { id: participantId, profile } = participants[0];
|
|
5814
5845
|
const handleGoToDraft = useCallback(() => {
|
|
5815
5846
|
const taskFromDraft = parseDraftTask(task);
|
|
@@ -5821,18 +5852,19 @@
|
|
|
5821
5852
|
if (profile?.id) {
|
|
5822
5853
|
sendAspects(profile.id, taskId);
|
|
5823
5854
|
}
|
|
5824
|
-
navigator.assign(
|
|
5855
|
+
navigator.assign(productData.nextStepLink);
|
|
5825
5856
|
}, []);
|
|
5826
5857
|
const handleGoToNewTask = useCallback(() => {
|
|
5827
|
-
navigator.assign(
|
|
5858
|
+
navigator.assign(productData.newTaskLink);
|
|
5828
5859
|
}, []);
|
|
5829
|
-
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:
|
|
5860
|
+
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 })] })] }) }));
|
|
5830
5861
|
});
|
|
5831
5862
|
|
|
5832
|
-
const EmptyDraftDialog = JSX(function ({ onClose = noop }) {
|
|
5863
|
+
const EmptyDraftDialog = JSX(function ({ isDebit, onClose = noop }) {
|
|
5833
5864
|
const navigator = locationNavigator();
|
|
5865
|
+
const productData = getProductData(isDebit);
|
|
5834
5866
|
const handleGoNewTask = useCallback(() => {
|
|
5835
|
-
navigator.assign(
|
|
5867
|
+
navigator.assign(productData.newTaskLink);
|
|
5836
5868
|
}, []);
|
|
5837
5869
|
const handleGoMainPage = useCallback(() => {
|
|
5838
5870
|
navigator.assign('/');
|
|
@@ -5847,7 +5879,7 @@
|
|
|
5847
5879
|
open: ({ task, isFromLead, isDebit, onClose, sendAspects }) => {
|
|
5848
5880
|
task
|
|
5849
5881
|
? openDraftDialog({ task, isFromLead, isDebit, onClose, sendAspects })
|
|
5850
|
-
: openEmptyDraftDialog({});
|
|
5882
|
+
: openEmptyDraftDialog({ isDebit });
|
|
5851
5883
|
},
|
|
5852
5884
|
};
|
|
5853
5885
|
};
|
|
@@ -6524,7 +6556,7 @@
|
|
|
6524
6556
|
reset();
|
|
6525
6557
|
}
|
|
6526
6558
|
}, [leadForm?.current, esiaStatus]);
|
|
6527
|
-
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] })] }));
|
|
6559
|
+
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] })] }));
|
|
6528
6560
|
});
|
|
6529
6561
|
const getInputs = (applicationFormData) => (applicationFormData?.flatMap((_) => _?.inputs) || []);
|
|
6530
6562
|
const getExtendedValidatorObj = (productType) => ({
|
|
@@ -8271,7 +8303,10 @@
|
|
|
8271
8303
|
phone: formatPhone(phone),
|
|
8272
8304
|
email,
|
|
8273
8305
|
}),
|
|
8274
|
-
participantAddresses: getParticipantAddresses$1({
|
|
8306
|
+
participantAddresses: getParticipantAddresses$1({
|
|
8307
|
+
addressRegistration,
|
|
8308
|
+
addressFact: addressMatch ? addressRegistration : addressFact,
|
|
8309
|
+
}),
|
|
8275
8310
|
genderCd: sex
|
|
8276
8311
|
? {
|
|
8277
8312
|
key: sex === 'male' ? 'MAN' : 'WOMAN',
|
|
@@ -9498,6 +9533,7 @@
|
|
|
9498
9533
|
fullAddress: '',
|
|
9499
9534
|
fiasCode: '',
|
|
9500
9535
|
},
|
|
9536
|
+
addressMatch: true,
|
|
9501
9537
|
addressFact: {
|
|
9502
9538
|
fullAddress: '',
|
|
9503
9539
|
fiasCode: '',
|
|
@@ -9651,6 +9687,108 @@
|
|
|
9651
9687
|
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field, step }), jsx(StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
|
|
9652
9688
|
});
|
|
9653
9689
|
|
|
9690
|
+
/* eslint-disable max-lines */
|
|
9691
|
+
const DELIVERY_DEBIT_CARD_CONTENT = [
|
|
9692
|
+
{
|
|
9693
|
+
title: 'Регион обслуживания карты',
|
|
9694
|
+
columns: 1,
|
|
9695
|
+
inputs: [],
|
|
9696
|
+
},
|
|
9697
|
+
{
|
|
9698
|
+
inputs: [
|
|
9699
|
+
{
|
|
9700
|
+
name: 'regionRetail',
|
|
9701
|
+
required: true,
|
|
9702
|
+
},
|
|
9703
|
+
],
|
|
9704
|
+
},
|
|
9705
|
+
{
|
|
9706
|
+
title: 'Способ получения',
|
|
9707
|
+
columns: 1,
|
|
9708
|
+
inputs: [],
|
|
9709
|
+
condition: {
|
|
9710
|
+
name: 'regionHasDelivery',
|
|
9711
|
+
values: [true],
|
|
9712
|
+
},
|
|
9713
|
+
},
|
|
9714
|
+
{
|
|
9715
|
+
inputs: [
|
|
9716
|
+
{
|
|
9717
|
+
name: 'methodObtain',
|
|
9718
|
+
condition: {
|
|
9719
|
+
name: 'regionHasDelivery',
|
|
9720
|
+
values: [true],
|
|
9721
|
+
},
|
|
9722
|
+
},
|
|
9723
|
+
],
|
|
9724
|
+
},
|
|
9725
|
+
{
|
|
9726
|
+
title: 'Выбор офиса',
|
|
9727
|
+
columns: 1,
|
|
9728
|
+
inputs: [],
|
|
9729
|
+
condition: {
|
|
9730
|
+
name: 'methodObtain',
|
|
9731
|
+
values: ['office'],
|
|
9732
|
+
},
|
|
9733
|
+
},
|
|
9734
|
+
{
|
|
9735
|
+
title: 'Адрес доставки',
|
|
9736
|
+
columns: 1,
|
|
9737
|
+
inputs: [],
|
|
9738
|
+
condition: {
|
|
9739
|
+
name: 'methodObtain',
|
|
9740
|
+
values: ['courier'],
|
|
9741
|
+
},
|
|
9742
|
+
},
|
|
9743
|
+
{
|
|
9744
|
+
inputs: [
|
|
9745
|
+
{
|
|
9746
|
+
name: 'addressCourier',
|
|
9747
|
+
dadata: true,
|
|
9748
|
+
condition: {
|
|
9749
|
+
name: 'methodObtain',
|
|
9750
|
+
values: ['courier'],
|
|
9751
|
+
},
|
|
9752
|
+
required: true,
|
|
9753
|
+
},
|
|
9754
|
+
],
|
|
9755
|
+
},
|
|
9756
|
+
{
|
|
9757
|
+
inputs: [
|
|
9758
|
+
{
|
|
9759
|
+
name: 'infoCard',
|
|
9760
|
+
condition: {
|
|
9761
|
+
name: 'methodObtain',
|
|
9762
|
+
values: ['courier'],
|
|
9763
|
+
},
|
|
9764
|
+
label: 'Ожидайте звонка для согласования даты и времени доставки карты',
|
|
9765
|
+
},
|
|
9766
|
+
],
|
|
9767
|
+
},
|
|
9768
|
+
{
|
|
9769
|
+
inputs: [
|
|
9770
|
+
{
|
|
9771
|
+
name: 'comment',
|
|
9772
|
+
condition: {
|
|
9773
|
+
name: 'methodObtain',
|
|
9774
|
+
values: ['courier'],
|
|
9775
|
+
},
|
|
9776
|
+
},
|
|
9777
|
+
],
|
|
9778
|
+
},
|
|
9779
|
+
{
|
|
9780
|
+
inputs: [
|
|
9781
|
+
{
|
|
9782
|
+
name: 'addressRetail',
|
|
9783
|
+
required: true,
|
|
9784
|
+
condition: {
|
|
9785
|
+
name: 'methodObtain',
|
|
9786
|
+
values: ['office'],
|
|
9787
|
+
},
|
|
9788
|
+
},
|
|
9789
|
+
],
|
|
9790
|
+
},
|
|
9791
|
+
];
|
|
9654
9792
|
const DEBIT_PERSONAL_INFO_CONTENT = [
|
|
9655
9793
|
...PERSONAL_DATA,
|
|
9656
9794
|
{
|
|
@@ -9672,9 +9810,23 @@
|
|
|
9672
9810
|
{
|
|
9673
9811
|
title: 'Адрес фактического проживания (место пребывания РФ)',
|
|
9674
9812
|
inputs: [],
|
|
9813
|
+
condition: {
|
|
9814
|
+
name: 'addressMatch',
|
|
9815
|
+
values: [false],
|
|
9816
|
+
},
|
|
9675
9817
|
},
|
|
9676
9818
|
{
|
|
9677
|
-
inputs: [
|
|
9819
|
+
inputs: [
|
|
9820
|
+
{
|
|
9821
|
+
name: 'addressFact',
|
|
9822
|
+
required: true,
|
|
9823
|
+
dadata: true,
|
|
9824
|
+
condition: {
|
|
9825
|
+
name: 'addressMatch',
|
|
9826
|
+
values: [false],
|
|
9827
|
+
},
|
|
9828
|
+
},
|
|
9829
|
+
],
|
|
9678
9830
|
},
|
|
9679
9831
|
];
|
|
9680
9832
|
const DEBIT_CARD_CONTENT = [
|
|
@@ -9705,6 +9857,9 @@
|
|
|
9705
9857
|
},
|
|
9706
9858
|
],
|
|
9707
9859
|
},
|
|
9860
|
+
{
|
|
9861
|
+
inputs: [{ name: 'codeWord', required: true }],
|
|
9862
|
+
},
|
|
9708
9863
|
{
|
|
9709
9864
|
inputs: [
|
|
9710
9865
|
{
|
|
@@ -9715,12 +9870,9 @@
|
|
|
9715
9870
|
},
|
|
9716
9871
|
],
|
|
9717
9872
|
},
|
|
9718
|
-
{
|
|
9719
|
-
inputs: [{ name: 'codeWord', required: true }],
|
|
9720
|
-
},
|
|
9721
9873
|
];
|
|
9722
9874
|
const stepsSectionsMap = [
|
|
9723
|
-
|
|
9875
|
+
DELIVERY_DEBIT_CARD_CONTENT,
|
|
9724
9876
|
DEBIT_PERSONAL_INFO_CONTENT,
|
|
9725
9877
|
DEBIT_CARD_CONTENT,
|
|
9726
9878
|
];
|
|
@@ -9743,7 +9895,11 @@
|
|
|
9743
9895
|
}, []);
|
|
9744
9896
|
const sections = stepsSectionsMap[step];
|
|
9745
9897
|
const isStartStep = step === 0;
|
|
9746
|
-
const [isFormFinished, { setTrue:
|
|
9898
|
+
const [isFormFinished, { setTrue: setIsFormFinished }] = useBool(false);
|
|
9899
|
+
const handleFinish = useCallback(() => {
|
|
9900
|
+
setIsFormFinished();
|
|
9901
|
+
scrollToTop();
|
|
9902
|
+
}, []);
|
|
9747
9903
|
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))) })] }) }));
|
|
9748
9904
|
});
|
|
9749
9905
|
|
|
@@ -11106,7 +11262,7 @@
|
|
|
11106
11262
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
11107
11263
|
});
|
|
11108
11264
|
|
|
11109
|
-
const packageVersion = "0.14.
|
|
11265
|
+
const packageVersion = "0.14.884";
|
|
11110
11266
|
|
|
11111
11267
|
exports.Blocks = Blocks;
|
|
11112
11268
|
exports.ContentPage = ContentPage;
|