@redneckz/wildless-cms-uni-blocks 0.14.812 → 0.14.814
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 +173 -132
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/bundle/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/bundle/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/bundle/retail/api/checkCode.d.ts +1 -0
- package/bundle/retail/api/{updateProfileEsia.d.ts → esiaRequestProfile.d.ts} +11 -4
- package/bundle/retail/api/updateUserTask.d.ts +1 -0
- package/bundle/retail/api/uploadFile.d.ts +1 -1
- package/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/bundle/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +13 -3
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +23 -0
- package/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -0
- package/dist/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/dist/components/ApplicationLeadForm/applicationFormData.js +6 -31
- package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +8 -2
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.js +54 -19
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +7 -10
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +12 -16
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/CreditForm/SuccessStatusContent.js +1 -1
- package/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -2
- package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/dist/retail/api/checkCode.d.ts +1 -0
- package/dist/retail/api/checkCode.js +3 -2
- package/dist/retail/api/checkCode.js.map +1 -1
- package/{lib/retail/api/updateProfileEsia.d.ts → dist/retail/api/esiaRequestProfile.d.ts} +11 -4
- package/dist/retail/api/esiaRequestProfile.js +10 -0
- package/dist/retail/api/esiaRequestProfile.js.map +1 -0
- package/dist/retail/api/updateUserTask.d.ts +1 -0
- package/dist/retail/api/updateUserTask.js.map +1 -1
- package/dist/retail/api/uploadFile.d.ts +1 -1
- package/dist/retail/api/uploadFile.js +2 -3
- package/dist/retail/api/uploadFile.js.map +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js +2 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/dist/retail/content.js +10 -1
- package/dist/retail/content.js.map +1 -1
- package/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/dist/retail/utils/mainFormStateMap.js +1 -0
- package/dist/retail/utils/mainFormStateMap.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PhoneField.js +2 -1
- package/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/dist/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/dist/ui-kit/FormField/shouldRenderField.js +1 -1
- package/dist/ui-kit/FormField/shouldRenderField.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +13 -3
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +21 -0
- package/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -0
- package/lib/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/lib/components/ApplicationLeadForm/applicationFormData.js +5 -30
- package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +8 -2
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.js +54 -19
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +7 -10
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +12 -16
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/CreditForm/SuccessStatusContent.js +1 -1
- package/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -2
- package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/lib/retail/api/checkCode.d.ts +1 -0
- package/lib/retail/api/checkCode.js +1 -1
- package/lib/retail/api/checkCode.js.map +1 -1
- package/{mobile/bundle/retail/api/updateProfileEsia.d.ts → lib/retail/api/esiaRequestProfile.d.ts} +11 -4
- package/lib/retail/api/esiaRequestProfile.js +7 -0
- package/lib/retail/api/esiaRequestProfile.js.map +1 -0
- package/lib/retail/api/updateUserTask.d.ts +1 -0
- package/lib/retail/api/updateUserTask.js.map +1 -1
- package/lib/retail/api/uploadFile.d.ts +1 -1
- package/lib/retail/api/uploadFile.js +2 -3
- package/lib/retail/api/uploadFile.js.map +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js +2 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/lib/retail/content.js +10 -1
- package/lib/retail/content.js.map +1 -1
- package/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/lib/retail/utils/mainFormStateMap.js +1 -0
- package/lib/retail/utils/mainFormStateMap.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PhoneField.js +2 -1
- package/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/lib/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/lib/ui-kit/FormField/shouldRenderField.js +1 -1
- package/lib/ui-kit/FormField/shouldRenderField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +173 -132
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/mobile/bundle/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/mobile/bundle/retail/api/checkCode.d.ts +1 -0
- package/{dist/retail/api/updateProfileEsia.d.ts → mobile/bundle/retail/api/esiaRequestProfile.d.ts} +11 -4
- package/mobile/bundle/retail/api/updateUserTask.d.ts +1 -0
- package/mobile/bundle/retail/api/uploadFile.d.ts +1 -1
- package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +13 -3
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js +23 -0
- package/mobile/dist/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -0
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js +6 -31
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +8 -2
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js +54 -19
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +7 -10
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +12 -16
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js +1 -1
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -2
- package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/mobile/dist/retail/api/checkCode.d.ts +1 -0
- package/mobile/dist/retail/api/checkCode.js +3 -2
- package/mobile/dist/retail/api/checkCode.js.map +1 -1
- package/mobile/dist/retail/api/esiaRequestProfile.d.ts +84 -0
- package/mobile/dist/retail/api/esiaRequestProfile.js +10 -0
- package/mobile/dist/retail/api/esiaRequestProfile.js.map +1 -0
- package/mobile/dist/retail/api/updateUserTask.d.ts +1 -0
- package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
- package/mobile/dist/retail/api/uploadFile.d.ts +1 -1
- package/mobile/dist/retail/api/uploadFile.js +2 -3
- package/mobile/dist/retail/api/uploadFile.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +2 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/dist/retail/content.js +10 -1
- package/mobile/dist/retail/content.js.map +1 -1
- package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/dist/retail/utils/mainFormStateMap.js +1 -0
- package/mobile/dist/retail/utils/mainFormStateMap.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/shouldRenderField.js +1 -1
- package/mobile/dist/ui-kit/FormField/shouldRenderField.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +13 -3
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.d.ts +4 -0
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js +21 -0
- package/mobile/lib/components/ApplicationLeadForm/EsiaLoginBanner.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.d.ts +0 -1
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js +5 -30
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +8 -2
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js +54 -19
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +7 -10
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +12 -16
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js +1 -1
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -2
- package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/mobile/lib/retail/api/checkCode.d.ts +1 -0
- package/mobile/lib/retail/api/checkCode.js +1 -1
- package/mobile/lib/retail/api/checkCode.js.map +1 -1
- package/mobile/lib/retail/api/esiaRequestProfile.d.ts +84 -0
- package/mobile/lib/retail/api/esiaRequestProfile.js +7 -0
- package/mobile/lib/retail/api/esiaRequestProfile.js.map +1 -0
- package/mobile/lib/retail/api/updateUserTask.d.ts +1 -0
- package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
- package/mobile/lib/retail/api/uploadFile.d.ts +1 -1
- package/mobile/lib/retail/api/uploadFile.js +2 -3
- package/mobile/lib/retail/api/uploadFile.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +2 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/lib/retail/content.js +10 -1
- package/mobile/lib/retail/content.js.map +1 -1
- package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/lib/retail/utils/mainFormStateMap.js +1 -0
- package/mobile/lib/retail/utils/mainFormStateMap.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/shouldRenderField.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/shouldRenderField.js +1 -1
- package/mobile/lib/ui-kit/FormField/shouldRenderField.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +14 -2
- package/mobile/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +52 -0
- package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +5 -31
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -1
- package/mobile/src/components/ApplicationLeadForm/parseEsiaProfile.ts +68 -34
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +58 -65
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +31 -41
- package/mobile/src/components/CreditForm/SuccessStatusContent.tsx +3 -1
- package/mobile/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +2 -1
- package/mobile/src/retail/api/checkCode.ts +1 -1
- package/mobile/src/retail/api/{updateProfileEsia.ts → esiaRequestProfile.ts} +16 -5
- package/mobile/src/retail/api/updateUserTask.ts +1 -0
- package/mobile/src/retail/api/uploadFile.ts +2 -3
- package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +2 -0
- package/mobile/src/retail/content.tsx +10 -1
- package/mobile/src/retail/model/NameFieldDef.ts +1 -0
- package/mobile/src/retail/utils/mainFormStateMap.ts +1 -0
- package/mobile/src/ui-kit/FormField/Fields/PhoneField.tsx +9 -1
- package/mobile/src/ui-kit/FormField/shouldRenderField.tsx +2 -1
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +14 -2
- package/src/components/ApplicationLeadForm/EsiaLoginBanner.tsx +52 -0
- package/src/components/ApplicationLeadForm/applicationFormData.tsx +5 -31
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -1
- package/src/components/ApplicationLeadForm/parseEsiaProfile.ts +68 -34
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +58 -65
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +31 -41
- package/src/components/CreditForm/SuccessStatusContent.tsx +3 -1
- package/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +2 -1
- package/src/retail/api/checkCode.ts +1 -1
- package/src/retail/api/{updateProfileEsia.ts → esiaRequestProfile.ts} +16 -5
- package/src/retail/api/updateUserTask.ts +1 -0
- package/src/retail/api/uploadFile.ts +2 -3
- package/src/retail/components/DraftDialog/parseDraftTask.ts +2 -0
- package/src/retail/content.tsx +10 -1
- package/src/retail/model/NameFieldDef.ts +1 -0
- package/src/retail/utils/mainFormStateMap.ts +1 -0
- package/src/ui-kit/FormField/Fields/PhoneField.tsx +9 -1
- package/src/ui-kit/FormField/shouldRenderField.tsx +2 -1
- package/bundle/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/bundle/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/dist/retail/api/updateProfileEsia.js +0 -6
- package/dist/retail/api/updateProfileEsia.js.map +0 -1
- package/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +0 -34
- package/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js +0 -15
- package/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/lib/retail/api/updateProfileEsia.js +0 -3
- package/lib/retail/api/updateProfileEsia.js.map +0 -1
- package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.fixture.d.ts +0 -5
- package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +0 -32
- package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js +0 -12
- package/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/mobile/bundle/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/mobile/bundle/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/mobile/dist/retail/api/updateProfileEsia.d.ts +0 -77
- package/mobile/dist/retail/api/updateProfileEsia.js +0 -6
- package/mobile/dist/retail/api/updateProfileEsia.js.map +0 -1
- package/mobile/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/mobile/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +0 -34
- package/mobile/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/mobile/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/mobile/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js +0 -15
- package/mobile/dist/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/mobile/lib/retail/api/updateProfileEsia.d.ts +0 -77
- package/mobile/lib/retail/api/updateProfileEsia.js +0 -3
- package/mobile/lib/retail/api/updateProfileEsia.js.map +0 -1
- package/mobile/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.d.ts +0 -4
- package/mobile/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +0 -32
- package/mobile/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +0 -1
- package/mobile/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.d.ts +0 -1
- package/mobile/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js +0 -12
- package/mobile/lib/retail/components/EsiaLoginDialog/useEsiaLoginDialog.js.map +0 -1
- package/mobile/src/retail/components/EsiaLoginDialog/EsiaLoginDialog.tsx +0 -65
- package/mobile/src/retail/components/EsiaLoginDialog/useEsiaLoginDialog.tsx +0 -13
- package/src/retail/components/EsiaLoginDialog/EsiaLoginDialog.fixture.tsx +0 -7
- package/src/retail/components/EsiaLoginDialog/EsiaLoginDialog.tsx +0 -65
- package/src/retail/components/EsiaLoginDialog/useEsiaLoginDialog.tsx +0 -13
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { type SectionsRetailProps } from '../../retail/model/InputSectionsType';
|
|
2
2
|
import { type ProductType } from './ApplicationLeadFormContent';
|
|
3
|
-
export declare const applicationFormData: SectionsRetailProps[];
|
|
4
3
|
export declare const getApplicationFormData: (productType: ProductType) => SectionsRetailProps[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { LeadFormState } from '../../retail/model/LeadFormState';
|
|
2
2
|
import { type FieldRetailDef } from '../../retail/model/RetailFormContent';
|
|
3
|
-
export declare const getInitialFormState: (inputs: FieldRetailDef[], savedForm: LeadFormState | null) => LeadFormState;
|
|
3
|
+
export declare const getInitialFormState: (inputs: FieldRetailDef[], savedForm: LeadFormState | null, esiaAuthSuccess: boolean) => LeadFormState;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type EsiaRequestProfileResponse } from '../../retail/api/esiaRequestProfile';
|
|
2
2
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
3
|
-
export declare const parseEsiaProfile: (esiaProfile:
|
|
3
|
+
export declare const parseEsiaProfile: (esiaProfile: EsiaRequestProfileResponse, isDebit: boolean) => Promise<LeadFormState>;
|
|
@@ -5,9 +5,9 @@ interface ApplicationLeadApiProps extends AspectsProps {
|
|
|
5
5
|
programId: string;
|
|
6
6
|
nextStepLink: string;
|
|
7
7
|
productType: ProductType;
|
|
8
|
-
|
|
8
|
+
esiaAuthSuccess: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const useApplicationLeadApi: ({ programId, nextStepLink, productType,
|
|
10
|
+
export declare const useApplicationLeadApi: ({ programId, nextStepLink, productType, data, }: ApplicationLeadApiProps) => {
|
|
11
11
|
isSending: boolean;
|
|
12
12
|
ok: boolean | undefined;
|
|
13
13
|
handleSubmit: (formData: LeadFormState) => Promise<void>;
|
|
@@ -6,8 +6,10 @@ declare type InitApplicationLeadProps = {
|
|
|
6
6
|
nextStepLink: string;
|
|
7
7
|
productType: ProductType;
|
|
8
8
|
setEsiaError: () => void;
|
|
9
|
+
setEsiaAuthSuccess: () => void;
|
|
10
|
+
esiaAuthSuccess: boolean;
|
|
9
11
|
};
|
|
10
|
-
export declare const useInitApplicationLead: ({ inputs,
|
|
12
|
+
export declare const useInitApplicationLead: ({ inputs, productType, setEsiaError, setEsiaAuthSuccess, esiaAuthSuccess, }: InitApplicationLeadProps) => [LeadFormState, {
|
|
11
13
|
isLoading: boolean;
|
|
12
14
|
}];
|
|
13
15
|
export {};
|
package/{dist/retail/api/updateProfileEsia.d.ts → mobile/bundle/retail/api/esiaRequestProfile.d.ts}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { type CheckCodeResponse } from './checkCode';
|
|
2
|
+
export declare type EsiaRequestProfileBody = {
|
|
2
3
|
code: string;
|
|
3
|
-
|
|
4
|
+
authorize: boolean;
|
|
4
5
|
state: string;
|
|
5
6
|
redirectUri: string;
|
|
6
7
|
};
|
|
7
|
-
export declare type
|
|
8
|
+
export declare type EsiaRequestProfileResponse = CheckCodeResponse & {
|
|
8
9
|
profile: {
|
|
9
10
|
id: number;
|
|
10
11
|
esiaId: string;
|
|
@@ -72,6 +73,12 @@ export declare type UpdateProfileEsiaResponse = {
|
|
|
72
73
|
workLengthLastJob: number;
|
|
73
74
|
pdfFileWorkbook: string;
|
|
74
75
|
pdfFilePayout: string;
|
|
76
|
+
pdfFileSigPayout: string;
|
|
77
|
+
pdfFileSigWorkbook: string;
|
|
78
|
+
xmlFilePayout: string;
|
|
79
|
+
xmlFileSigPayout: string;
|
|
80
|
+
xmlFileSigWorkbook: string;
|
|
81
|
+
xmlFileWorkbook: string;
|
|
75
82
|
};
|
|
76
83
|
};
|
|
77
|
-
export declare const
|
|
84
|
+
export declare const esiaRequestProfile: (body: EsiaRequestProfileBody) => Promise<EsiaRequestProfileResponse | null>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type File } from '../model/LeadFormState';
|
|
2
2
|
export declare type DocumentCategory = 'CONFIRMING_EMPLOYMENT_DOC' | 'CONFIRMING_INCOME_DOC';
|
|
3
|
-
export declare const uploadFile: (file: Blob,
|
|
3
|
+
export declare const uploadFile: (file: Blob, documentCategory: DocumentCategory, isPDF?: boolean) => Promise<File>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare type NameFieldApplicationBaseDef = 'surname' | 'name' | 'middleName' | 'limitedBirthday' | 'email' | 'phone' | 'inn';
|
|
2
2
|
declare type NameFieldConsentDef = 'processPersonalDataFlg' | 'consentProviderFlg' | 'consentInformFlg' | 'consentPfrFlg' | 'consentOthersFlg' | 'consentInformMaterialsFlg' | 'consentPhotoFlg' | 'consentFATCA';
|
|
3
3
|
declare type NameFieldCreditCardDef = 'addressCourier' | 'paymentSystem' | 'currency' | 'cardCategory' | 'codeWord' | 'confirmationIncome' | 'methodObtain' | 'deliveryDate' | 'regionHasDelivery' | 'latinName' | 'latinSurname';
|
|
4
|
-
declare type NameFieldRetailDef = 'organization' | 'organizationAddress' | 'organizationPhone' | 'organizationName' | 'legalForm' | 'generalSeniority' | 'lastJobExperience' | 'experience5Years' | 'jobsNumber' | 'beginDate' | 'addressFact' | 'addressRegistration' | 'addressRetail' | 'addressMatch' | 'sex' | 'birthPlace' | 'education' | 'housing' | 'amountWorkers' | 'employment' | 'employerActivities' | 'employerOrganization' | 'positionOrganization' | 'familyStatus' | 'familyMembers' | 'children' | 'dependents' | 'totalIncome' | 'expenses' | 'snils' | 'conscription' | 'armyIdFlg' | 'dulSerie' | 'dulNumber' | 'dulIssueDate' | 'dulSubdivisionCode' | 'dulIssuedBy' | 'participantDateRegistration' | 'retirementIncome' | 'rentalIncome' | 'otherIncome' | 'otherPayments' | 'additionalIncome' | 'wages' | 'mandatoryPayments' | 'bankruptcyFlg' | 'shareholderFlg' | 'legalEntityName' | 'creditInRshbCd' | 'bankEmployeeCode' | 'partInBusiness' | 'regionRetail' | 'calculator' | 'infoCard' | 'deliveryTime' | 'comment';
|
|
4
|
+
declare type NameFieldRetailDef = 'organization' | 'organizationAddress' | 'organizationPhone' | 'organizationName' | 'legalForm' | 'generalSeniority' | 'lastJobExperience' | 'experience5Years' | 'jobsNumber' | 'beginDate' | 'addressFact' | 'addressRegistration' | 'addressRetail' | 'addressMatch' | 'sex' | 'birthPlace' | 'education' | 'housing' | 'amountWorkers' | 'employment' | 'employerActivities' | 'employerOrganization' | 'positionOrganization' | 'familyStatus' | 'familyMembers' | 'children' | 'dependents' | 'totalIncome' | 'expenses' | 'snils' | 'conscription' | 'armyIdFlg' | 'dulSerie' | 'dulNumber' | 'dulIssueDate' | 'dulSubdivisionCode' | 'dulIssuedBy' | 'participantDateRegistration' | 'retirementIncome' | 'rentalIncome' | 'otherIncome' | 'otherPayments' | 'additionalIncome' | 'wages' | 'mandatoryPayments' | 'bankruptcyFlg' | 'shareholderFlg' | 'legalEntityName' | 'creditInRshbCd' | 'bankEmployeeCode' | 'partInBusiness' | 'regionRetail' | 'calculator' | 'infoCard' | 'deliveryTime' | 'esiaAccountTypeCd' | 'comment';
|
|
5
5
|
export declare type NameFieldDef = NameFieldApplicationBaseDef | NameFieldConsentDef | NameFieldRetailDef | NameFieldCreditCardDef;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.ApplicationLeadForm = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
/* eslint-disable max-lines-per-function */
|
|
4
5
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
6
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
7
|
const useBool_1 = require("@redneckz/uni-jsx/lib/hooks/useBool");
|
|
@@ -16,12 +17,14 @@ const ResponseTypeDialog_1 = require("../../ui-kit/ResponseTypeDialog/ResponseTy
|
|
|
16
17
|
const Text_1 = require("../../ui-kit/Text/Text");
|
|
17
18
|
const style_1 = require("../../utils/style");
|
|
18
19
|
const applicationFormData_1 = require("./applicationFormData");
|
|
20
|
+
const EsiaLoginBanner_1 = require("./EsiaLoginBanner");
|
|
19
21
|
const renderInputs_1 = require("./renderInputs");
|
|
20
22
|
const renderSubmitButton_1 = require("./renderSubmitButton");
|
|
21
23
|
const useApplicationLeadApi_1 = require("./useApplicationLeadApi");
|
|
22
24
|
const useInitApplicationLead_1 = require("./useInitApplicationLead");
|
|
23
25
|
exports.ApplicationLeadForm = (0, uni_jsx_1.JSX)(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, ...rest }) => {
|
|
24
26
|
const [esiaError, { setTrue: setEsiaError }] = (0, useBool_1.useBool)(false);
|
|
27
|
+
const [esiaAuthSuccess, { setTrue: setEsiaAuthSuccess }] = (0, useBool_1.useBool)(false);
|
|
25
28
|
const applicationFormData = (0, hooks_1.useMemo)(() => (0, applicationFormData_1.getApplicationFormData)(productType), [productType]);
|
|
26
29
|
const inputs = (0, hooks_1.useMemo)(() => (applicationFormData?.flatMap((_) => _?.inputs) || []), [applicationFormData]);
|
|
27
30
|
const formValidator = (0, hooks_1.useMemo)(() => (0, getObjectValidator_1.getFormValidator)(inputs, validatorObj_1.validatorObj), [inputs]);
|
|
@@ -30,15 +33,17 @@ exports.ApplicationLeadForm = (0, uni_jsx_1.JSX)(({ className, title, programId
|
|
|
30
33
|
nextStepLink,
|
|
31
34
|
productType,
|
|
32
35
|
setEsiaError,
|
|
36
|
+
setEsiaAuthSuccess,
|
|
37
|
+
esiaAuthSuccess,
|
|
33
38
|
});
|
|
34
39
|
const { isSending, ok, handleSubmit } = (0, useApplicationLeadApi_1.useApplicationLeadApi)({
|
|
35
40
|
programId,
|
|
36
41
|
nextStepLink,
|
|
37
42
|
productType,
|
|
38
|
-
|
|
43
|
+
esiaAuthSuccess,
|
|
39
44
|
data,
|
|
40
45
|
});
|
|
41
|
-
const [, { field, onSubmit }] = (0, useForm_1.useForm)(initialFormState, {
|
|
46
|
+
const [, { field, onSubmit, reset }] = (0, useForm_1.useForm)(initialFormState, {
|
|
42
47
|
formValidator,
|
|
43
48
|
onSubmit: handleSubmit,
|
|
44
49
|
});
|
|
@@ -48,6 +53,11 @@ exports.ApplicationLeadForm = (0, uni_jsx_1.JSX)(({ className, title, programId
|
|
|
48
53
|
responseTypeDialog.open({ ok });
|
|
49
54
|
}
|
|
50
55
|
}, [ok]);
|
|
51
|
-
|
|
56
|
+
(0, hooks_1.useEffect)(() => {
|
|
57
|
+
if (initialFormState?.esiaAccountTypeCd) {
|
|
58
|
+
reset();
|
|
59
|
+
}
|
|
60
|
+
}, [initialFormState]);
|
|
61
|
+
return ((0, jsx_runtime_1.jsxs)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, ...rest, children: [!esiaAuthSuccess && !esiaError ? (0, jsx_runtime_1.jsx)(EsiaLoginBanner_1.EsiaLoginBanner, {}) : null, (0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, className: "space-y-m relative", children: [isLoading ? (0, jsx_runtime_1.jsx)(Loader_1.Loader, { blur: false }) : null, applicationFormData.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)((0, inputColumnStyle_1.inputColumnStyles)(_.columns), 'grid gap-x-m'), children: [(0, renderTitle_1.renderTitle)(_.title), (0, renderInputs_1.renderInputs)({ field, inputs: _?.inputs }, productType)] }, `section-${i}`))), (0, renderSubmitButton_1.renderSubmitButton)(button, isSending), esiaError ? ((0, jsx_runtime_1.jsx)(Text_1.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] })] }));
|
|
52
62
|
});
|
|
53
63
|
//# sourceMappingURL=ApplicationLeadForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationLeadForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/ApplicationLeadForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAiE;AACjE,iEAA8D;AAC9D,yDAAsD;AAEtD,sEAAmE;AACnE,oGAAiG;AACjG,oEAAiE;AACjE,kFAA6E;AAC7E,8EAA4E;AAC5E,oEAAiE;AACjE,uDAAoD;AACpD,2FAAwF;AACxF,iDAA8C;AAE9C,6CAA0C;AAC1C,+DAA+D;AAE/D,iDAA8C;AAC9C,6DAA0D;AAC1D,mEAAgE;AAChE,qEAAkE;AAIrD,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EACC,SAAS,EACT,KAAK,EACL,SAAS,GAAG,EAAE,EACd,YAAY,GAAG,cAAc,EAC7B,MAAM,EACN,WAAW,GAAG,QAAQ,EACtB,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,KAAK,CAAC,CAAC;IAC9D,MAAM,mBAAmB,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,IAAA,4CAAsB,EAAC,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAC9F,MAAM,MAAM,GAAG,IAAA,eAAO,EACpB,GAAG,EAAE,CAAC,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,CAAqB,EAChF,CAAC,mBAAmB,CAAC,CACtB,CAAC;IAEF,MAAM,aAAa,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE,CAAC,IAAA,qCAAgB,EAAC,MAAM,EAAE,2BAAY,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEtF,MAAM,CAAC,gBAAgB,EAAE,EAAE,SAAS,EAAE,CAAC,GAAG,IAAA,+CAAsB,EAAC;QAC/D,MAAM;QACN,YAAY;QACZ,WAAW;QACX,YAAY;
|
|
1
|
+
{"version":3,"file":"ApplicationLeadForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/ApplicationLeadForm.tsx"],"names":[],"mappings":";;;AAAA,2C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EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC1C,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACjC,iCAEE,SAAS,EAAE,IAAA,aAAK,EAAC,IAAA,oCAAiB,EAAC,CAAC,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,aAE7D,IAAA,yBAAW,EAAC,CAAC,CAAC,KAAK,CAAC,EACpB,IAAA,2BAAY,EAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,KAJnD,WAAW,CAAC,EAAE,CAKf,CACP,CAAC,EACD,IAAA,uCAAkB,EAAC,MAAM,EAAE,SAAS,CAAC,EACrC,SAAS,CAAC,CAAC,CAAC,CACX,uBAAC,WAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,aAAa,EAAC,KAAK,EAAC,YAAY,4fAGlD,CACR,CAAC,CAAC,CAAC,IAAI,IACH,IACe,CACzB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.EsiaLoginBanner = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const locationNavigator_1 = require("../../external/locationNavigator");
|
|
7
|
+
const getLink_1 = require("../../retail/api/getLink");
|
|
8
|
+
const Button_1 = require("../../ui-kit/Button/Button");
|
|
9
|
+
const Img_1 = require("../../ui-kit/Img/Img");
|
|
10
|
+
exports.EsiaLoginBanner = (0, uni_jsx_1.JSX)(() => {
|
|
11
|
+
const navigator = (0, locationNavigator_1.locationNavigator)();
|
|
12
|
+
const handleAuth = (0, hooks_1.useCallback)(async () => {
|
|
13
|
+
const resp = await (0, getLink_1.getLink)({
|
|
14
|
+
redirectUri: globalThis.location.origin + globalThis.location.pathname,
|
|
15
|
+
});
|
|
16
|
+
if (resp?.link) {
|
|
17
|
+
navigator.assign(resp.link);
|
|
18
|
+
globalThis.location.href = resp.link;
|
|
19
|
+
}
|
|
20
|
+
}, []);
|
|
21
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex gap-lg items-center rounded-md bg-main-gray px-4 py-6 @md:p-9", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-around w-full", children: [(0, jsx_runtime_1.jsx)("p", { className: "mb-4 text-xl @md:text-2xl @md:mb-6", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), (0, jsx_runtime_1.jsxs)("ul", { className: "list-disc list-inside mb-9", children: [(0, jsx_runtime_1.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" }), (0, jsx_runtime_1.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" }), (0, jsx_runtime_1.jsx)("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "block mb-6 self-center @md:hidden", image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "80", width: "80" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { type: "button", onClick: handleAuth, className: "w-full @md:w-fit", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C" })] }), (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "hidden @md:block", image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "164" })] }));
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=EsiaLoginBanner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EsiaLoginBanner.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/EsiaLoginBanner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,wEAAqE;AACrE,sDAAmD;AACnD,uDAAoD;AACpD,8CAA2C;AAM9B,QAAA,eAAe,GAAG,IAAA,aAAG,EAAuB,GAAG,EAAE;IAC5D,MAAM,SAAS,GAAG,IAAA,qCAAiB,GAAE,CAAC;IAEtC,MAAM,UAAU,GAAG,IAAA,mBAAW,EAAC,KAAK,IAAI,EAAE;QACxC,MAAM,IAAI,GAAG,MAAM,IAAA,iBAAO,EAAC;YACzB,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,GAAG,UAAU,CAAC,QAAQ,CAAC,QAAQ;SACvE,CAAC,CAAC;QAEH,IAAI,IAAI,EAAE,IAAI,EAAE;YACd,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC5B,UAAU,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;SACtC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,iCAAK,SAAS,EAAC,oEAAoE,aACjF,iCAAK,SAAS,EAAC,qCAAqC,aAClD,8BAAG,SAAS,EAAC,oCAAoC,kMAAqC,EACtF,gCAAI,SAAS,EAAC,4BAA4B,aACxC,gMAAmC,EACnC,+PAAgD,EAChD,mKAA+B,IAC5B,EACL,uBAAC,SAAG,IACF,SAAS,EAAC,mCAAmC,EAC7C,KAAK,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,EACvD,MAAM,EAAC,IAAI,EACX,KAAK,EAAC,IAAI,GACV,EACF,uBAAC,eAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAC,kBAAkB,uEAE9D,IACL,EACN,uBAAC,SAAG,IACF,SAAS,EAAC,kBAAkB,EAC5B,KAAK,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,QAAQ,EAAE,EACvD,MAAM,EAAC,KAAK,GACZ,IACE,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { type SectionsRetailProps } from '../../retail/model/InputSectionsType';
|
|
2
2
|
import { type ProductType } from './ApplicationLeadFormContent';
|
|
3
|
-
export declare const applicationFormData: SectionsRetailProps[];
|
|
4
3
|
export declare const getApplicationFormData: (productType: ProductType) => SectionsRetailProps[];
|
|
@@ -1,31 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.getApplicationFormData =
|
|
2
|
+
exports.getApplicationFormData = void 0;
|
|
3
3
|
const consents_1 = require("./consents");
|
|
4
|
-
exports.applicationFormData = [
|
|
5
|
-
{
|
|
6
|
-
columns: 2,
|
|
7
|
-
inputs: [
|
|
8
|
-
{ name: 'surname', required: true, dadata: true },
|
|
9
|
-
{ name: 'name', required: true, dadata: true },
|
|
10
|
-
{ name: 'middleName', dadata: true },
|
|
11
|
-
{ name: 'limitedBirthday', required: true },
|
|
12
|
-
{ name: 'phone', required: true },
|
|
13
|
-
{ name: 'email', required: true, dadata: true },
|
|
14
|
-
],
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
inputs: [
|
|
18
|
-
{ name: 'processPersonalDataFlg', required: true },
|
|
19
|
-
{ name: 'consentProviderFlg', required: true },
|
|
20
|
-
{ name: 'consentOthersFlg', required: true },
|
|
21
|
-
{ name: 'consentInformFlg' },
|
|
22
|
-
{ name: 'consentPfrFlg' },
|
|
23
|
-
{ name: 'consentInformMaterialsFlg' },
|
|
24
|
-
{ name: 'consentPhotoFlg' },
|
|
25
|
-
{ name: 'consentFATCA' },
|
|
26
|
-
],
|
|
27
|
-
},
|
|
28
|
-
];
|
|
29
4
|
const getApplicationFormData = (productType) => {
|
|
30
5
|
const currentProductConsents = consents_1.productTypeToConsentsMap[productType];
|
|
31
6
|
const allConsents = [
|
|
@@ -42,11 +17,11 @@ const getApplicationFormData = (productType) => {
|
|
|
42
17
|
{
|
|
43
18
|
columns: 2,
|
|
44
19
|
inputs: [
|
|
45
|
-
{ name: 'surname', required: true, dadata: true },
|
|
46
|
-
{ name: 'name', required: true, dadata: true },
|
|
47
|
-
{ name: 'middleName', dadata: true },
|
|
48
|
-
{ name: 'limitedBirthday', required: true },
|
|
49
|
-
{ name: 'phone', required: true },
|
|
20
|
+
{ name: 'surname', required: true, dadata: true, filledByEsia: true },
|
|
21
|
+
{ name: 'name', required: true, dadata: true, filledByEsia: true },
|
|
22
|
+
{ name: 'middleName', dadata: true, filledByEsia: true },
|
|
23
|
+
{ name: 'limitedBirthday', required: true, filledByEsia: true },
|
|
24
|
+
{ name: 'phone', required: true, filledByEsia: true },
|
|
50
25
|
{ name: 'email', required: true, dadata: true },
|
|
51
26
|
],
|
|
52
27
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicationFormData.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/applicationFormData.tsx"],"names":[],"mappings":";;AAGA,yCAAsD;
|
|
1
|
+
{"version":3,"file":"applicationFormData.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/applicationFormData.tsx"],"names":[],"mappings":";;AAGA,yCAAsD;AAE/C,MAAM,sBAAsB,GAAG,CAAC,WAAwB,EAAyB,EAAE;IACxF,MAAM,sBAAsB,GAAG,mCAAwB,CAAC,WA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AAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CACtE;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AA/BW,QAAA,sBAAsB,0BA+BjC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { LeadFormState } from '../../retail/model/LeadFormState';
|
|
2
2
|
import { type FieldRetailDef } from '../../retail/model/RetailFormContent';
|
|
3
|
-
export declare const getInitialFormState: (inputs: FieldRetailDef[], savedForm: LeadFormState | null) => LeadFormState;
|
|
3
|
+
export declare const getInitialFormState: (inputs: FieldRetailDef[], savedForm: LeadFormState | null, esiaAuthSuccess: boolean) => LeadFormState;
|
|
@@ -16,9 +16,15 @@ const initialFormState = {
|
|
|
16
16
|
consentPhotoFlg: false,
|
|
17
17
|
consentFATCA: false,
|
|
18
18
|
};
|
|
19
|
-
const getInitialFormState = (inputs, savedForm) => {
|
|
19
|
+
const getInitialFormState = (inputs, savedForm, esiaAuthSuccess) => {
|
|
20
20
|
if (savedForm) {
|
|
21
|
-
return {
|
|
21
|
+
return {
|
|
22
|
+
...savedForm,
|
|
23
|
+
limitedBirthday: new Date(savedForm?.limitedBirthday || 0),
|
|
24
|
+
...(!esiaAuthSuccess && {
|
|
25
|
+
esiaAccountTypeCd: { key: '' },
|
|
26
|
+
}),
|
|
27
|
+
};
|
|
22
28
|
}
|
|
23
29
|
const formState = Object.fromEntries(inputs.map((_) => [_.name, initialFormState[_.name || '']]));
|
|
24
30
|
return { ...formState };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getInitialFormState.tsx"],"names":[],"mappings":";;AAGA,MAAM,gBAAgB,GAAG;IACvB,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,EAAE;IACd,eAAe,EAAE,SAAS;IAC1B,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,sBAAsB,EAAE,KAAK;IAC7B,kBAAkB,EAAE,KAAK;IACzB,gBAAgB,EAAE,KAAK;IACvB,gBAAgB,EAAE,KAAK;IACvB,aAAa,EAAE,KAAK;IACpB,yBAAyB,EAAE,KAAK;IAChC,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,KAAK;CACpB,CAAC;AAEK,MAAM,mBAAmB,GAAG,CACjC,MAAwB,EACxB,SAA+B,
|
|
1
|
+
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/getInitialFormState.tsx"],"names":[],"mappings":";;AAGA,MAAM,gBAAgB,GAAG;IACvB,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,EAAE;IACd,eAAe,EAAE,SAAS;IAC1B,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,sBAAsB,EAAE,KAAK;IAC7B,kBAAkB,EAAE,KAAK;IACzB,gBAAgB,EAAE,KAAK;IACvB,gBAAgB,EAAE,KAAK;IACvB,aAAa,EAAE,KAAK;IACpB,yBAAyB,EAAE,KAAK;IAChC,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,KAAK;CACpB,CAAC;AAEK,MAAM,mBAAmB,GAAG,CACjC,MAAwB,EACxB,SAA+B,EAC/B,eAAwB,EACT,EAAE;IACjB,IAAI,SAAS,EAAE;QACb,OAAO;YACL,GAAG,SAAS;YACZ,eAAe,EAAE,IAAI,IAAI,CAAC,SAAS,EAAE,eAAe,IAAI,CAAC,CAAC;YAC1D,GAAG,CAAC,CAAC,eAAe,IAAI;gBACtB,iBAAiB,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;aAC/B,CAAC;SACH,CAAC;KACH;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAElG,OAAO,EAAE,GAAG,SAAS,EAAE,CAAC;AAC1B,CAAC,CAAC;AAlBW,QAAA,mBAAmB,uBAkB9B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type EsiaRequestProfileResponse } from '../../retail/api/esiaRequestProfile';
|
|
2
2
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
3
|
-
export declare const parseEsiaProfile: (esiaProfile:
|
|
3
|
+
export declare const parseEsiaProfile: (esiaProfile: EsiaRequestProfileResponse, isDebit: boolean) => Promise<LeadFormState>;
|
|
@@ -2,23 +2,46 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.parseEsiaProfile = void 0;
|
|
3
3
|
const uploadFile_1 = require("../../retail/api/uploadFile");
|
|
4
4
|
const normalizePhone_1 = require("../../ui-kit/PhoneInput/normalizePhone");
|
|
5
|
-
const parseEsiaProfile = async (esiaProfile,
|
|
5
|
+
const parseEsiaProfile = async (esiaProfile, isDebit) => {
|
|
6
6
|
isDebit ? checkEsiaDataForDebit(esiaProfile) : checkEsiaDataForCredit(esiaProfile);
|
|
7
7
|
const { profile, addInfo, document, addressRegistration, addressFact, esiaAdditionalDocument } = esiaProfile;
|
|
8
|
-
|
|
8
|
+
let files = [];
|
|
9
9
|
if (!isDebit) {
|
|
10
|
-
await
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
files = await saveDocuments([
|
|
11
|
+
{
|
|
12
|
+
file: esiaAdditionalDocument.pdfFileWorkbook,
|
|
13
|
+
category: 'CONFIRMING_INCOME_DOC',
|
|
14
|
+
isPDF: true,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
file: esiaAdditionalDocument.pdfFilePayout,
|
|
18
|
+
category: 'CONFIRMING_EMPLOYMENT_DOC',
|
|
19
|
+
isPDF: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
file: esiaAdditionalDocument.pdfFileSigPayout,
|
|
23
|
+
category: 'CONFIRMING_EMPLOYMENT_DOC',
|
|
24
|
+
isPDF: true,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
file: esiaAdditionalDocument.xmlFilePayout,
|
|
28
|
+
category: 'CONFIRMING_EMPLOYMENT_DOC',
|
|
29
|
+
isPDF: false,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
file: esiaAdditionalDocument.xmlFileSigPayout,
|
|
33
|
+
category: 'CONFIRMING_EMPLOYMENT_DOC',
|
|
34
|
+
isPDF: false,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
file: esiaAdditionalDocument.xmlFileWorkbook,
|
|
38
|
+
category: 'CONFIRMING_INCOME_DOC',
|
|
39
|
+
isPDF: false,
|
|
40
|
+
},
|
|
41
|
+
//TODO: После тестирования добавить документы снизу
|
|
42
|
+
// {file: esiaAdditionalDocument.pdfFileSigWorkbook, category: 'CONFIRMING_INCOME_DOC', isPDF: true},
|
|
43
|
+
// {file: esiaAdditionalDocument.xmlFileSigWorkbook, category: 'CONFIRMING_INCOME_DOC', isPDF: false},
|
|
44
|
+
]);
|
|
22
45
|
}
|
|
23
46
|
const mainData = {
|
|
24
47
|
name: profile.name,
|
|
@@ -81,11 +104,16 @@ const buildAddress = (fields) => {
|
|
|
81
104
|
};
|
|
82
105
|
};
|
|
83
106
|
const getYearFromMonth = (month) => Math.floor(month / 12);
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
107
|
+
const saveDocuments = async (documents) => {
|
|
108
|
+
const files = [];
|
|
109
|
+
for (const doc of documents) {
|
|
110
|
+
const contentType = doc.isPDF ? 'data:application/pdf;base64' : 'data:application/xml;base64';
|
|
111
|
+
await fetch(`${contentType},${doc.file}`)
|
|
112
|
+
.then((res) => res.blob())
|
|
113
|
+
.then((value) => (0, uploadFile_1.uploadFile)(value, doc.category, doc.isPDF))
|
|
114
|
+
.then((file) => files.push(file));
|
|
115
|
+
}
|
|
116
|
+
return files;
|
|
89
117
|
};
|
|
90
118
|
const checkEsiaDataForCredit = (esiaProfile) => {
|
|
91
119
|
const { profile, document, addressRegistration, esiaAdditionalDocument } = esiaProfile;
|
|
@@ -112,6 +140,13 @@ const checkEsiaDataForCredit = (esiaProfile) => {
|
|
|
112
140
|
esiaAdditionalDocument.jobsNumberInFiveYears.toString(),
|
|
113
141
|
esiaAdditionalDocument.pdfFilePayout,
|
|
114
142
|
esiaAdditionalDocument.pdfFileWorkbook,
|
|
143
|
+
esiaAdditionalDocument.pdfFileSigPayout,
|
|
144
|
+
esiaAdditionalDocument.xmlFilePayout,
|
|
145
|
+
esiaAdditionalDocument.xmlFileSigPayout,
|
|
146
|
+
esiaAdditionalDocument.xmlFileWorkbook,
|
|
147
|
+
//TODO: После тестирования добавить документы снизу
|
|
148
|
+
// esiaAdditionalDocument.pdfFileSigWorkbook,
|
|
149
|
+
// esiaAdditionalDocument.xmlFileSigWorkbook
|
|
115
150
|
];
|
|
116
151
|
if (!data.every((_) => Boolean(_))) {
|
|
117
152
|
throw new Error();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseEsiaProfile.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/parseEsiaProfile.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"parseEsiaProfile.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/parseEsiaProfile.ts"],"names":[],"mappings":";;AAGA,4DAAgF;AAEhF,2EAAwE;AAQjE,MAAM,gBAAgB,GAAG,KAAK,EACnC,WAAuC,EACvC,OAAgB,EACQ,EAAE;IAC1B,OAAO,CAAC,CAAC,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,sBAAsB,CAAC,WAAW,CAAC,C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C,aAAa;QACpC,sBAAsB,CAAC,eAAe;QACtC,sBAAsB,CAAC,gBAAgB;QACvC,sBAAsB,CAAC,aAAa;QACpC,sBAAsB,CAAC,gBAAgB;QACvC,sBAAsB,CAAC,eAAe;QACtC,mDAAmD;QACnD,6CAA6C;QAC7C,4CAA4C;KAC7C,CAAC;IAEF,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;QAClC,MAAM,IAAI,KAAK,EAAE,CAAC;KACnB;AACH,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,WAAuC,EAAE,EAAE;IACxE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,GAAG,WAAW,CAAC;IAE/D,MAAM,IAAI,GAAG;QACX,OAAO,CAAC,IAAI;QACZ,OAAO,CAAC,OAAO;QACf,OAAO,CAAC,OAAO;QACf,OAAO,CAAC,SAAS;QACjB,OAAO,CAAC,KAAK;QACb,OAAO,CAAC,KAAK;QACb,QAAQ,CAAC,YAAY;QACrB,QAAQ,CAAC,WAAW;QACpB,QAAQ,CAAC,SAAS;QAClB,QAAQ,CAAC,QAAQ;QACjB,QAAQ,CAAC,kBAAkB;QAC3B,mBAAmB;QACnB,OAAO,CAAC,eAAe;KACxB,CAAC;IAEF,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;QAClC,MAAM,IAAI,KAAK,EAAE,CAAC;KACnB;AACH,CAAC,CAAC"}
|
|
@@ -5,9 +5,9 @@ interface ApplicationLeadApiProps extends AspectsProps {
|
|
|
5
5
|
programId: string;
|
|
6
6
|
nextStepLink: string;
|
|
7
7
|
productType: ProductType;
|
|
8
|
-
|
|
8
|
+
esiaAuthSuccess: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const useApplicationLeadApi: ({ programId, nextStepLink, productType,
|
|
10
|
+
export declare const useApplicationLeadApi: ({ programId, nextStepLink, productType, data, }: ApplicationLeadApiProps) => {
|
|
11
11
|
isSending: boolean;
|
|
12
12
|
ok: boolean | undefined;
|
|
13
13
|
handleSubmit: (formData: LeadFormState) => Promise<void>;
|
|
@@ -13,7 +13,6 @@ const updateUserProfile_1 = require("../../retail/api/updateUserProfile");
|
|
|
13
13
|
const updateUserTask_1 = require("../../retail/api/updateUserTask");
|
|
14
14
|
const useConsentBkiDialog_1 = require("../../retail/components/ConsentBkiDialog/useConsentBkiDialog");
|
|
15
15
|
const useDraftDialog_1 = require("../../retail/components/DraftDialog/useDraftDialog");
|
|
16
|
-
const useEsiaLoginDialog_1 = require("../../retail/components/EsiaLoginDialog/useEsiaLoginDialog");
|
|
17
16
|
const VerifyPhoneDialog_1 = require("../../retail/components/VerifyPhoneDialog/VerifyPhoneDialog");
|
|
18
17
|
const getUpdateUserProfile_1 = require("../../retail/utils/getUpdateUserProfile");
|
|
19
18
|
const useDialog_1 = require("../../ui-kit/DialogManager/useDialog");
|
|
@@ -23,21 +22,19 @@ const getLeadFormTaskData_1 = require("./getLeadFormTaskData");
|
|
|
23
22
|
const useSaveUserData_1 = require("./useSaveUserData");
|
|
24
23
|
const useSendLeadFormAspects_1 = require("./useSendLeadFormAspects");
|
|
25
24
|
// eslint-disable-next-line max-lines-per-function
|
|
26
|
-
const useApplicationLeadApi = ({ programId, nextStepLink, productType,
|
|
25
|
+
const useApplicationLeadApi = ({ programId, nextStepLink, productType, data, }) => {
|
|
27
26
|
const [isSending, { setTrue: startSending, setFalse: endSending }] = (0, useBool_1.useBool)(false);
|
|
28
27
|
const [ok, setOK] = (0, hooks_1.useState)();
|
|
29
28
|
const saveUserData = (0, useSaveUserData_1.useSaveUserData)();
|
|
30
29
|
const sendAspects = (0, useSendLeadFormAspects_1.useSendLeadFormAspects)({ data });
|
|
31
30
|
const navigator = (0, locationNavigator_1.locationNavigator)();
|
|
32
|
-
const
|
|
33
|
-
|
|
31
|
+
const goToNextStep = (0, hooks_1.useCallback)(() => {
|
|
32
|
+
navigator.assign(nextStepLink);
|
|
33
|
+
}, []);
|
|
34
|
+
const consentBkiDialog = (0, useConsentBkiDialog_1.useConsentBkiDialog)(goToNextStep);
|
|
34
35
|
const verifyPhoneDialog = (0, useDialog_1.useDialog)(VerifyPhoneDialog_1.VerifyPhoneDialog);
|
|
35
36
|
const draftDialog = (0, useDraftDialog_1.useDraftDialog)();
|
|
36
37
|
const handleSubmit = (0, hooks_1.useCallback)(async (formData) => {
|
|
37
|
-
if (esiaError) {
|
|
38
|
-
navigator.assign(nextStepLink);
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
38
|
try {
|
|
42
39
|
startSending();
|
|
43
40
|
const profileId = await (0, createUserProfile_1.createUserProfile)({
|
|
@@ -55,7 +52,7 @@ const useApplicationLeadApi = ({ programId, nextStepLink, productType, esiaError
|
|
|
55
52
|
});
|
|
56
53
|
verifyPhoneDialog.close();
|
|
57
54
|
if (productType === 'debitCard') {
|
|
58
|
-
|
|
55
|
+
goToNextStep();
|
|
59
56
|
}
|
|
60
57
|
else {
|
|
61
58
|
consentBkiDialog.open(formData.phone, profileId);
|
|
@@ -94,7 +91,7 @@ const useApplicationLeadApi = ({ programId, nextStepLink, productType, esiaError
|
|
|
94
91
|
catch {
|
|
95
92
|
setOK(false);
|
|
96
93
|
}
|
|
97
|
-
}, [
|
|
94
|
+
}, []);
|
|
98
95
|
return { isSending, ok, handleSubmit };
|
|
99
96
|
};
|
|
100
97
|
exports.useApplicationLeadApi = useApplicationLeadApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useApplicationLeadApi.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/useApplicationLeadApi.tsx"],"names":[],"mappings":";;AAAA,8BAA8B;AAC9B,uDAAoE;AACpE,iEAA8D;AAC9D,wEAAqE;AAErE,sEAAmE;AACnE,0EAAuE;AACvE,8EAA2E;AAC3E,0EAAuE;AACvE,8DAA2D;AAC3D,0EAAuE;AACvE,oEAAiE;AACjE,sGAAmG;AACnG,uFAAoF;AACpF,mGAAgG;
|
|
1
|
+
{"version":3,"file":"useApplicationLeadApi.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/useApplicationLeadApi.tsx"],"names":[],"mappings":";;AAAA,8BAA8B;AAC9B,uDAAoE;AACpE,iEAA8D;AAC9D,wEAAqE;AAErE,sEAAmE;AACnE,0EAAuE;AACvE,8EAA2E;AAC3E,0EAAuE;AACvE,8DAA2D;AAC3D,0EAAuE;AACvE,oEAAiE;AACjE,sGAAmG;AACnG,uFAAoF;AACpF,mGAAgG;AAEhG,kFAAmF;AACnF,oEAAiE;AACjE,yDAAsD;AAEtD,yCAAsD;AACtD,+DAA4F;AAC5F,uDAAmE;AACnE,qEAAkE;AASlE,kDAAkD;AAC3C,MAAM,qBAAqB,GAAG,CAAC,EACpC,SAAS,EACT,YAAY,EACZ,WAAW,EACX,IAAI,GACoB,EAAE,EAAE;IAC5B,MAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,KAAK,CAAC,CAAC;IACpF,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG,IAAA,gBAAQ,GAAuB,CAAC;IACpD,MAAM,YAAY,GAAG,IAAA,iCAAe,GAAE,CAAC;IACvC,MAAM,WAAW,GAAG,IAAA,+CAAsB,EAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IACrD,MAAM,SAAS,GAAG,IAAA,qCAAiB,GAAE,CAAC;IAEtC,MAAM,YAAY,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACpC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACjC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,gBAAgB,GAAG,IAAA,yCAAmB,EAAC,YAAY,CAAC,CAAC;IAC3D,MAAM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B,yBAAyB,EAAE,gBAAgB;SAC5C,CAAC;KACH;SAAM,IAAI,WAAW,KAAK,YAAY,EAAE;QACvC,QAAQ,GAAG;YACT,yBAAyB;YACzB,eAAe;SAChB,CAAC;KACH;SAAM;QACL,QAAQ,GAAG;YACT,YAAY;YACZ,eAAe,EAAE,gBAAgB;SAClC,CAAC;KACH;IAED,OAAO;QACL,GAAG,QAAQ;QACX,sBAAsB;QACtB,gBAAgB;QAChB,kBAAkB;QAClB,oBAAoB,EAAE,gBAAgB;QACtC,0BAA0B,EAAE,gBAAgB;KAC7C,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -6,8 +6,10 @@ declare type InitApplicationLeadProps = {
|
|
|
6
6
|
nextStepLink: string;
|
|
7
7
|
productType: ProductType;
|
|
8
8
|
setEsiaError: () => void;
|
|
9
|
+
setEsiaAuthSuccess: () => void;
|
|
10
|
+
esiaAuthSuccess: boolean;
|
|
9
11
|
};
|
|
10
|
-
export declare const useInitApplicationLead: ({ inputs,
|
|
12
|
+
export declare const useInitApplicationLead: ({ inputs, productType, setEsiaError, setEsiaAuthSuccess, esiaAuthSuccess, }: InitApplicationLeadProps) => [LeadFormState, {
|
|
11
13
|
isLoading: boolean;
|
|
12
14
|
}];
|
|
13
15
|
export {};
|