@redneckz/wildless-cms-uni-blocks 0.14.866 → 0.14.868
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 +558 -420
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
- package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
- package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
- package/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
- package/bundle/components/GalleryLayout/useSortProductBlocks.d.ts +1 -1
- package/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
- package/bundle/retail/api/createUserTaskDebit.d.ts +3 -1
- package/bundle/retail/api/updateUserTask.d.ts +3 -2
- package/bundle/retail/api/updateUserTaskDebit.d.ts +1 -1
- package/bundle/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/bundle/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
- package/bundle/retail/content.d.ts +2 -8
- package/bundle/retail/inputs.d.ts +1 -1
- package/bundle/retail/model/LeadFormState.d.ts +4 -2
- package/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/bundle/retail/model/ReferalData.d.ts +0 -1
- package/bundle/retail/utils/getMainFormStateMap.d.ts +2 -0
- package/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/consents.js +0 -4
- package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/CreditCardForm/creditCardFormStepsData.js +245 -3
- package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/dist/components/CreditCardForm/formStateMap.js +2 -2
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/CreditForm.js +1 -2
- package/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js +192 -3
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/formStateMap.js +2 -2
- package/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.js +1 -3
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/dist/components/DebitForm/DebitFormStepsData.js +71 -3
- package/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
- package/dist/components/DebitForm/getDebitCardFormTaskData.js +16 -22
- package/dist/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/dist/components/DebitForm/useDebitFormAPI.js +0 -2
- package/dist/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/dist/components/GalleryLayout/useSortProductBlocks.d.ts +1 -1
- package/dist/components/GalleryLayout/useSortProductBlocks.js +8 -4
- package/dist/components/GalleryLayout/useSortProductBlocks.js.map +1 -1
- package/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
- package/dist/retail/adaptors/getCreditFormTaskData.js +24 -33
- package/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/dist/retail/adaptors/getEmploymentData.js +3 -3
- package/dist/retail/adaptors/getEmploymentData.js.map +1 -1
- package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
- package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/dist/retail/adaptors/getPersonalInfoData.js +4 -2
- package/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/dist/retail/api/checkCode.js +1 -1
- package/dist/retail/api/checkCode.js.map +1 -1
- package/dist/retail/api/createUserTaskDebit.d.ts +3 -1
- package/dist/retail/api/createUserTaskDebit.js.map +1 -1
- package/dist/retail/api/updateUserTask.d.ts +3 -2
- package/dist/retail/api/updateUserTask.js.map +1 -1
- package/dist/retail/api/updateUserTaskDebit.d.ts +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +1 -2
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js +2 -3
- package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/dist/retail/components/Fields/DaDataInnField.js +10 -3
- package/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/dist/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
- package/dist/retail/components/Fields/InitiateBankruptcyFlgField.js +7 -0
- package/dist/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
- package/dist/retail/content.d.ts +2 -8
- package/dist/retail/content.js +3 -361
- package/dist/retail/content.js.map +1 -1
- package/dist/retail/inputs.d.ts +1 -1
- package/dist/retail/inputs.js +2 -1
- package/dist/retail/inputs.js.map +1 -1
- package/dist/retail/model/LeadFormState.d.ts +4 -2
- package/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/dist/retail/model/ReferalData.d.ts +0 -1
- package/dist/retail/utils/getMainFormStateMap.d.ts +2 -0
- package/dist/retail/utils/{mainFormStateMap.js → getMainFormStateMap.js} +6 -4
- package/dist/retail/utils/getMainFormStateMap.js.map +1 -0
- package/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/consents.js +0 -4
- package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/CreditCardForm/creditCardFormStepsData.js +244 -2
- package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/lib/components/CreditCardForm/formStateMap.js +2 -2
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.js +1 -2
- package/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js +191 -2
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/formStateMap.js +2 -2
- package/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.js +1 -3
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/lib/components/DebitForm/DebitFormStepsData.js +70 -2
- package/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
- package/lib/components/DebitForm/getDebitCardFormTaskData.js +16 -22
- package/lib/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/lib/components/DebitForm/useDebitFormAPI.js +0 -2
- package/lib/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/lib/components/GalleryLayout/useSortProductBlocks.d.ts +1 -1
- package/lib/components/GalleryLayout/useSortProductBlocks.js +8 -4
- package/lib/components/GalleryLayout/useSortProductBlocks.js.map +1 -1
- package/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
- package/lib/retail/adaptors/getCreditFormTaskData.js +24 -33
- package/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/lib/retail/adaptors/getEmploymentData.js +3 -3
- package/lib/retail/adaptors/getEmploymentData.js.map +1 -1
- package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
- package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/lib/retail/adaptors/getPersonalInfoData.js +4 -2
- package/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/lib/retail/api/checkCode.js +1 -1
- package/lib/retail/api/checkCode.js.map +1 -1
- package/lib/retail/api/createUserTaskDebit.d.ts +3 -1
- package/lib/retail/api/createUserTaskDebit.js.map +1 -1
- package/lib/retail/api/updateUserTask.d.ts +3 -2
- package/lib/retail/api/updateUserTask.js.map +1 -1
- package/lib/retail/api/updateUserTaskDebit.d.ts +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +1 -2
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js +2 -3
- package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/lib/retail/components/Fields/DaDataInnField.js +10 -3
- package/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/lib/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
- package/lib/retail/components/Fields/InitiateBankruptcyFlgField.js +5 -0
- package/lib/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
- package/lib/retail/content.d.ts +2 -8
- package/lib/retail/content.js +2 -360
- package/lib/retail/content.js.map +1 -1
- package/lib/retail/inputs.d.ts +1 -1
- package/lib/retail/inputs.js +2 -1
- package/lib/retail/inputs.js.map +1 -1
- package/lib/retail/model/LeadFormState.d.ts +4 -2
- package/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/lib/retail/model/ReferalData.d.ts +0 -1
- package/lib/retail/utils/getMainFormStateMap.d.ts +2 -0
- package/lib/retail/utils/{mainFormStateMap.js → getMainFormStateMap.js} +4 -3
- package/lib/retail/utils/getMainFormStateMap.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +473 -318
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
- package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
- package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
- package/mobile/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
- package/mobile/bundle/components/GalleryLayout/useSortProductBlocks.d.ts +1 -1
- package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
- package/mobile/bundle/retail/api/createUserTaskDebit.d.ts +3 -1
- package/mobile/bundle/retail/api/updateUserTask.d.ts +3 -2
- package/mobile/bundle/retail/api/updateUserTaskDebit.d.ts +1 -1
- package/mobile/bundle/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/mobile/bundle/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
- package/mobile/bundle/retail/content.d.ts +2 -8
- package/mobile/bundle/retail/inputs.d.ts +1 -1
- package/mobile/bundle/retail/model/LeadFormState.d.ts +4 -2
- package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/retail/model/ReferalData.d.ts +0 -1
- package/mobile/bundle/retail/utils/getMainFormStateMap.d.ts +2 -0
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/consents.js +0 -4
- package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +245 -3
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js +2 -2
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditForm.js +1 -2
- package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +192 -3
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/formStateMap.js +2 -2
- package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js +1 -3
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/dist/components/DebitForm/DebitFormStepsData.js +71 -3
- package/mobile/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.js +16 -22
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/DebitForm/useDebitFormAPI.js +0 -2
- package/mobile/dist/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/mobile/dist/components/GalleryLayout/useSortProductBlocks.d.ts +1 -1
- package/mobile/dist/components/GalleryLayout/useSortProductBlocks.js +8 -4
- package/mobile/dist/components/GalleryLayout/useSortProductBlocks.js.map +1 -1
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.js +24 -33
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/mobile/dist/retail/adaptors/getEmploymentData.js +3 -3
- package/mobile/dist/retail/adaptors/getEmploymentData.js.map +1 -1
- package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
- package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/mobile/dist/retail/adaptors/getPersonalInfoData.js +4 -2
- package/mobile/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/dist/retail/api/checkCode.js +1 -1
- package/mobile/dist/retail/api/checkCode.js.map +1 -1
- package/mobile/dist/retail/api/createUserTaskDebit.d.ts +3 -1
- package/mobile/dist/retail/api/createUserTaskDebit.js.map +1 -1
- package/mobile/dist/retail/api/updateUserTask.d.ts +3 -2
- package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
- package/mobile/dist/retail/api/updateUserTaskDebit.d.ts +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -2
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +2 -3
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/dist/retail/components/Fields/DaDataInnField.js +10 -3
- package/mobile/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
- package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.js +7 -0
- package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
- package/mobile/dist/retail/content.d.ts +2 -8
- package/mobile/dist/retail/content.js +3 -361
- package/mobile/dist/retail/content.js.map +1 -1
- package/mobile/dist/retail/inputs.d.ts +1 -1
- package/mobile/dist/retail/inputs.js +2 -1
- package/mobile/dist/retail/inputs.js.map +1 -1
- package/mobile/dist/retail/model/LeadFormState.d.ts +4 -2
- package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/dist/retail/model/ReferalData.d.ts +0 -1
- package/mobile/dist/retail/utils/getMainFormStateMap.d.ts +2 -0
- package/mobile/{lib/retail/utils/mainFormStateMap.js → dist/retail/utils/getMainFormStateMap.js} +7 -3
- package/mobile/dist/retail/utils/getMainFormStateMap.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
- package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/consents.js +0 -4
- package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +244 -2
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js +2 -2
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditForm.js +1 -2
- package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +191 -2
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/formStateMap.js +2 -2
- package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js +1 -3
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/lib/components/DebitForm/DebitFormStepsData.js +70 -2
- package/mobile/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.js +16 -22
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/DebitForm/useDebitFormAPI.js +0 -2
- package/mobile/lib/components/DebitForm/useDebitFormAPI.js.map +1 -1
- package/mobile/lib/components/GalleryLayout/useSortProductBlocks.d.ts +1 -1
- package/mobile/lib/components/GalleryLayout/useSortProductBlocks.js +8 -4
- package/mobile/lib/components/GalleryLayout/useSortProductBlocks.js.map +1 -1
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.js +24 -33
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/mobile/lib/retail/adaptors/getEmploymentData.js +3 -3
- package/mobile/lib/retail/adaptors/getEmploymentData.js.map +1 -1
- package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
- package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/mobile/lib/retail/adaptors/getPersonalInfoData.js +4 -2
- package/mobile/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
- package/mobile/lib/retail/api/checkCode.js +1 -1
- package/mobile/lib/retail/api/checkCode.js.map +1 -1
- package/mobile/lib/retail/api/createUserTaskDebit.d.ts +3 -1
- package/mobile/lib/retail/api/createUserTaskDebit.js.map +1 -1
- package/mobile/lib/retail/api/updateUserTask.d.ts +3 -2
- package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
- package/mobile/lib/retail/api/updateUserTaskDebit.d.ts +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -2
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +2 -3
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/lib/retail/components/Fields/DaDataInnField.js +10 -3
- package/mobile/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
- package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
- package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.js +5 -0
- package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
- package/mobile/lib/retail/content.d.ts +2 -8
- package/mobile/lib/retail/content.js +2 -360
- package/mobile/lib/retail/content.js.map +1 -1
- package/mobile/lib/retail/inputs.d.ts +1 -1
- package/mobile/lib/retail/inputs.js +2 -1
- package/mobile/lib/retail/inputs.js.map +1 -1
- package/mobile/lib/retail/model/LeadFormState.d.ts +4 -2
- package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/lib/retail/model/ReferalData.d.ts +0 -1
- package/mobile/lib/retail/utils/getMainFormStateMap.d.ts +2 -0
- package/mobile/{dist/retail/utils/mainFormStateMap.js → lib/retail/utils/getMainFormStateMap.js} +4 -5
- package/mobile/lib/retail/utils/getMainFormStateMap.js.map +1 -0
- package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
- package/mobile/src/components/ApplicationLeadForm/consents.ts +0 -4
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +22 -20
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +15 -11
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +31 -12
- package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +246 -6
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +2 -2
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +24 -34
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +0 -2
- package/mobile/src/components/CreditForm/CreditForm.tsx +1 -2
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +194 -6
- package/mobile/src/components/CreditForm/formStateMap.tsx +2 -2
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +1 -3
- package/mobile/src/components/DebitForm/DebitFormStepsData.tsx +71 -6
- package/mobile/src/components/DebitForm/getDebitCardFormTaskData.ts +16 -26
- package/mobile/src/components/DebitForm/useDebitFormAPI.tsx +0 -2
- package/mobile/src/components/GalleryLayout/useSortProductBlocks.ts +9 -4
- package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +26 -39
- package/mobile/src/retail/adaptors/getEmploymentData.tsx +3 -3
- package/mobile/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +2 -0
- package/mobile/src/retail/adaptors/getPersonalInfoData.tsx +4 -2
- package/mobile/src/retail/api/checkCode.ts +1 -1
- package/mobile/src/retail/api/createUserTaskDebit.ts +3 -1
- package/mobile/src/retail/api/updateUserTask.ts +3 -2
- package/mobile/src/retail/api/updateUserTaskDebit.ts +1 -1
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +1 -2
- package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +2 -5
- package/mobile/src/retail/components/Fields/DaDataInnField.tsx +14 -6
- package/mobile/src/retail/components/Fields/InitiateBankruptcyFlgField.tsx +10 -0
- package/mobile/src/retail/content.tsx +3 -362
- package/mobile/src/retail/inputs.tsx +2 -1
- package/mobile/src/retail/model/LeadFormState.ts +4 -2
- package/mobile/src/retail/model/NameFieldDef.ts +1 -0
- package/mobile/src/retail/model/ReferalData.ts +0 -1
- package/mobile/src/retail/utils/{mainFormStateMap.ts → getMainFormStateMap.ts} +3 -2
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
- package/src/components/ApplicationLeadForm/consents.ts +0 -4
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +22 -20
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +15 -11
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +31 -12
- package/src/components/CreditCardForm/creditCardFormStepsData.tsx +246 -6
- package/src/components/CreditCardForm/formStateMap.tsx +2 -2
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +24 -34
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +0 -2
- package/src/components/CreditForm/CreditForm.tsx +1 -2
- package/src/components/CreditForm/creditFormStepsData.tsx +194 -6
- package/src/components/CreditForm/formStateMap.tsx +2 -2
- package/src/components/CreditForm/useCreditFormAPI.tsx +1 -3
- package/src/components/DebitForm/DebitFormStepsData.tsx +71 -6
- package/src/components/DebitForm/getDebitCardFormTaskData.ts +16 -26
- package/src/components/DebitForm/useDebitFormAPI.tsx +0 -2
- package/src/components/GalleryLayout/useSortProductBlocks.ts +9 -4
- package/src/retail/adaptors/getCreditFormTaskData.ts +26 -39
- package/src/retail/adaptors/getEmploymentData.tsx +3 -3
- package/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +2 -0
- package/src/retail/adaptors/getPersonalInfoData.tsx +4 -2
- package/src/retail/api/checkCode.ts +1 -1
- package/src/retail/api/createUserTaskDebit.ts +3 -1
- package/src/retail/api/updateUserTask.ts +3 -2
- package/src/retail/api/updateUserTaskDebit.ts +1 -1
- package/src/retail/components/DraftDialog/DraftDialog.tsx +1 -2
- package/src/retail/components/DraftDialog/parseDraftTask.ts +2 -5
- package/src/retail/components/Fields/DaDataInnField.tsx +14 -6
- package/src/retail/components/Fields/InitiateBankruptcyFlgField.tsx +10 -0
- package/src/retail/content.tsx +3 -362
- package/src/retail/inputs.tsx +2 -1
- package/src/retail/model/LeadFormState.ts +4 -2
- package/src/retail/model/NameFieldDef.ts +1 -0
- package/src/retail/model/ReferalData.ts +0 -1
- package/src/retail/utils/{mainFormStateMap.ts → getMainFormStateMap.ts} +3 -2
- package/bundle/retail/utils/mainFormStateMap.d.ts +0 -2
- package/dist/retail/utils/mainFormStateMap.d.ts +0 -2
- package/dist/retail/utils/mainFormStateMap.js.map +0 -1
- package/lib/retail/utils/mainFormStateMap.d.ts +0 -2
- package/lib/retail/utils/mainFormStateMap.js.map +0 -1
- package/mobile/bundle/retail/utils/mainFormStateMap.d.ts +0 -2
- package/mobile/dist/retail/utils/mainFormStateMap.d.ts +0 -2
- package/mobile/dist/retail/utils/mainFormStateMap.js.map +0 -1
- package/mobile/lib/retail/utils/mainFormStateMap.d.ts +0 -2
- package/mobile/lib/retail/utils/mainFormStateMap.js.map +0 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { locationNavigator } from '../../external/locationNavigator';
|
|
3
2
|
import { getParticipantContacts } from '../../retail/adaptors/utils';
|
|
4
3
|
import { type CreateUserTaskDebitBody } from '../../retail/api/createUserTaskDebit';
|
|
5
4
|
import { type MarketingInfo, type UpdateUserTaskBody } from '../../retail/api/updateUserTask';
|
|
6
5
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
7
|
-
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
8
6
|
import { formatDate } from '../../utils/formatDate';
|
|
9
7
|
import { formatPhone } from '../../utils/formatPhone';
|
|
8
|
+
import { type Nullable } from '../../utils/Nullable';
|
|
10
9
|
import { debitProgrammIdToCardCodesMap } from '../DebitForm/utils';
|
|
11
10
|
|
|
12
11
|
type getLeadFormTaskDataProps = {
|
|
@@ -14,7 +13,7 @@ type getLeadFormTaskDataProps = {
|
|
|
14
13
|
taskId: number;
|
|
15
14
|
profileId: number;
|
|
16
15
|
formData: LeadFormState;
|
|
17
|
-
|
|
16
|
+
marketingInfo: MarketingInfo | null;
|
|
18
17
|
};
|
|
19
18
|
|
|
20
19
|
export const getCreditLeadFormTaskData = ({
|
|
@@ -22,11 +21,10 @@ export const getCreditLeadFormTaskData = ({
|
|
|
22
21
|
taskId,
|
|
23
22
|
profileId,
|
|
24
23
|
formData,
|
|
25
|
-
|
|
24
|
+
marketingInfo,
|
|
26
25
|
}: getLeadFormTaskDataProps): UpdateUserTaskBody => {
|
|
27
26
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
28
|
-
const
|
|
29
|
-
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
27
|
+
const taskSource = getTaskSource(marketingInfo?.utm_source);
|
|
30
28
|
|
|
31
29
|
return {
|
|
32
30
|
sendToBank: true,
|
|
@@ -54,7 +52,7 @@ export const getCreditLeadFormTaskData = ({
|
|
|
54
52
|
},
|
|
55
53
|
},
|
|
56
54
|
],
|
|
57
|
-
marketingInfo
|
|
55
|
+
marketingInfo,
|
|
58
56
|
},
|
|
59
57
|
};
|
|
60
58
|
};
|
|
@@ -62,11 +60,10 @@ export const getCreditLeadFormTaskData = ({
|
|
|
62
60
|
export const getDebitLeadFormTaskData = (
|
|
63
61
|
formData: LeadFormState,
|
|
64
62
|
programId: string,
|
|
65
|
-
|
|
63
|
+
marketingInfo: MarketingInfo | null,
|
|
66
64
|
): CreateUserTaskDebitBody => {
|
|
67
65
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
68
|
-
const
|
|
69
|
-
const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
|
|
66
|
+
const taskSource = getTaskSource(marketingInfo?.utm_source);
|
|
70
67
|
|
|
71
68
|
return {
|
|
72
69
|
task: {
|
|
@@ -86,18 +83,23 @@ export const getDebitLeadFormTaskData = (
|
|
|
86
83
|
}),
|
|
87
84
|
},
|
|
88
85
|
],
|
|
86
|
+
marketingInfo: {
|
|
87
|
+
bannerId: marketingInfo?.bannerId,
|
|
88
|
+
},
|
|
89
89
|
},
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
93
|
+
const getTaskSource = (source: Nullable<string>) => {
|
|
94
|
+
switch (source) {
|
|
95
|
+
case 'referal_sf': {
|
|
96
|
+
return 'ReferalSF';
|
|
97
|
+
}
|
|
98
|
+
case 'vse_svoe': {
|
|
99
|
+
return 'vseSvoe';
|
|
100
|
+
}
|
|
101
|
+
default: {
|
|
102
|
+
return globalThis.location.origin;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
103
105
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable max-lines */
|
|
2
2
|
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
|
|
4
|
+
import { useSessionStore } from '@redneckz/uni-jsx/lib/Store/useSessionStore';
|
|
4
5
|
import { locationNavigator } from '../../external/locationNavigator';
|
|
5
6
|
import { type AspectsProps } from '../../model/AspectsProps';
|
|
6
7
|
import { createDraftTask } from '../../retail/api/createDraftTask';
|
|
@@ -10,7 +11,7 @@ import { getLastTaskStatus } from '../../retail/api/getLastTaskStatus';
|
|
|
10
11
|
import { getTaskById } from '../../retail/api/getTaskById';
|
|
11
12
|
import { saveReferalInfo } from '../../retail/api/saveReferalInfo';
|
|
12
13
|
import { updateUserProfile } from '../../retail/api/updateUserProfile';
|
|
13
|
-
import { updateUserTask } from '../../retail/api/updateUserTask';
|
|
14
|
+
import { updateUserTask, type MarketingInfo } from '../../retail/api/updateUserTask';
|
|
14
15
|
import { useConsentBkiDialog } from '../../retail/components/ConsentBkiDialog/useConsentBkiDialog';
|
|
15
16
|
import { useDraftDialog } from '../../retail/components/DraftDialog/useDraftDialog';
|
|
16
17
|
import { VerifyPhoneDialog } from '../../retail/components/VerifyPhoneDialog/VerifyPhoneDialog';
|
|
@@ -22,7 +23,7 @@ import { formatPhone } from '../../utils/formatPhone';
|
|
|
22
23
|
import { type ProductType } from './ApplicationLeadFormContent';
|
|
23
24
|
import { productTypeToConsentsMap } from './consents';
|
|
24
25
|
import { getCreditLeadFormTaskData, getDebitLeadFormTaskData } from './getLeadFormTaskData';
|
|
25
|
-
import {
|
|
26
|
+
import { type ApplicationLeadStore } from './useInitApplicationLead';
|
|
26
27
|
import { useSaveUserData, type UserData } from './useSaveUserData';
|
|
27
28
|
import { useSendLeadFormAspects } from './useSendLeadFormAspects';
|
|
28
29
|
|
|
@@ -42,7 +43,7 @@ export const useApplicationLeadApi = ({
|
|
|
42
43
|
const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
|
|
43
44
|
const [ok, setOK] = useState<boolean | undefined>();
|
|
44
45
|
const saveUserData = useSaveUserData();
|
|
45
|
-
const
|
|
46
|
+
const sessionStore = useSessionStore<ApplicationLeadStore>();
|
|
46
47
|
|
|
47
48
|
const sendAspects = useSendLeadFormAspects({ data });
|
|
48
49
|
const navigator = locationNavigator();
|
|
@@ -62,7 +63,9 @@ export const useApplicationLeadApi = ({
|
|
|
62
63
|
const profileId = await createUserProfile({
|
|
63
64
|
profile: { phone: formatPhone(transformedFormData.phone as string) },
|
|
64
65
|
});
|
|
65
|
-
|
|
66
|
+
|
|
67
|
+
const referalData = sessionStore.referalData;
|
|
68
|
+
const marketingInfo = sessionStore.marketingInfo;
|
|
66
69
|
|
|
67
70
|
if (!profileId) {
|
|
68
71
|
throw new Error();
|
|
@@ -75,6 +78,7 @@ export const useApplicationLeadApi = ({
|
|
|
75
78
|
formData: transformedFormData,
|
|
76
79
|
productType,
|
|
77
80
|
referalData,
|
|
81
|
+
marketingInfo,
|
|
78
82
|
saveUserData,
|
|
79
83
|
sendAspects,
|
|
80
84
|
});
|
|
@@ -138,6 +142,7 @@ const updateUserData = async ({
|
|
|
138
142
|
formData,
|
|
139
143
|
productType,
|
|
140
144
|
referalData,
|
|
145
|
+
marketingInfo,
|
|
141
146
|
saveUserData,
|
|
142
147
|
sendAspects,
|
|
143
148
|
}: {
|
|
@@ -146,20 +151,20 @@ const updateUserData = async ({
|
|
|
146
151
|
formData: LeadFormState;
|
|
147
152
|
productType: ProductType;
|
|
148
153
|
referalData: ReferalData | null;
|
|
154
|
+
marketingInfo: MarketingInfo | null;
|
|
149
155
|
saveUserData: (userData: UserData) => void;
|
|
150
156
|
sendAspects: (profileId: number, taskId: number) => void;
|
|
151
157
|
}) => {
|
|
152
158
|
let taskId: number;
|
|
153
159
|
let participantId: number;
|
|
154
160
|
const transformedConsents = transformConsentsFields(formData, productType);
|
|
155
|
-
const isTaskWithReferalCode = referalData?.isTaskWithReferalCode;
|
|
156
161
|
|
|
157
162
|
await updateUserProfile(getUpdateUserProfileData(profileId, formData, transformedConsents));
|
|
158
163
|
|
|
159
164
|
try {
|
|
160
165
|
if (productType === 'debitCard') {
|
|
161
166
|
const debitData = await createUserTaskDebit(
|
|
162
|
-
getDebitLeadFormTaskData(formData, programId,
|
|
167
|
+
getDebitLeadFormTaskData(formData, programId, marketingInfo),
|
|
163
168
|
);
|
|
164
169
|
|
|
165
170
|
taskId = debitData.taskId;
|
|
@@ -178,11 +183,11 @@ const updateUserData = async ({
|
|
|
178
183
|
taskId,
|
|
179
184
|
profileId,
|
|
180
185
|
formData,
|
|
181
|
-
|
|
186
|
+
marketingInfo,
|
|
182
187
|
}),
|
|
183
188
|
);
|
|
184
189
|
}
|
|
185
|
-
if (
|
|
190
|
+
if (referalData?.referalCode) {
|
|
186
191
|
await saveReferalInfo({
|
|
187
192
|
taskId,
|
|
188
193
|
...referalData,
|
|
@@ -207,7 +212,6 @@ const transformConsentsFields = (
|
|
|
207
212
|
consentInformFlg,
|
|
208
213
|
consentProviderFlg,
|
|
209
214
|
consentInformMaterialsFlg,
|
|
210
|
-
consentPhotoFlg,
|
|
211
215
|
consentFATCA,
|
|
212
216
|
} = formData;
|
|
213
217
|
|
|
@@ -215,14 +219,14 @@ const transformConsentsFields = (
|
|
|
215
219
|
|
|
216
220
|
if (productType === 'credit') {
|
|
217
221
|
consents = {
|
|
218
|
-
consentPhotoFlg: consentOthersFlg,
|
|
219
222
|
consentPfrFlg: consentPfrFlg,
|
|
220
223
|
consentInformMaterialsFlg: consentOthersFlg,
|
|
224
|
+
consentPhotoFlg: false,
|
|
221
225
|
};
|
|
222
226
|
} else if (productType === 'creditCard') {
|
|
223
227
|
consents = {
|
|
224
228
|
consentInformMaterialsFlg,
|
|
225
|
-
consentPhotoFlg,
|
|
229
|
+
consentPhotoFlg: false,
|
|
226
230
|
};
|
|
227
231
|
} else {
|
|
228
232
|
consents = {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
1
2
|
/* eslint-disable max-lines-per-function */
|
|
2
3
|
import { useCallback, useEffect, useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
+
import { useSessionStore } from '@redneckz/uni-jsx/lib/Store/useSessionStore';
|
|
3
5
|
import { useSetter } from '../../hooks/useSetter';
|
|
4
6
|
import { esiaRequestProfile } from '../../retail/api/esiaRequestProfile';
|
|
7
|
+
import { type MarketingInfo } from '../../retail/api/updateUserTask';
|
|
5
8
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
6
9
|
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
7
10
|
import { type FieldRetailDef } from '../../retail/model/RetailFormContent';
|
|
@@ -19,6 +22,11 @@ type InitApplicationLeadProps = {
|
|
|
19
22
|
esiaAuthSuccess: boolean;
|
|
20
23
|
};
|
|
21
24
|
|
|
25
|
+
export interface ApplicationLeadStore {
|
|
26
|
+
marketingInfo: MarketingInfo | null;
|
|
27
|
+
referalData: ReferalData | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
export const useInitApplicationLead = ({
|
|
23
31
|
inputs,
|
|
24
32
|
productType,
|
|
@@ -27,6 +35,7 @@ export const useInitApplicationLead = ({
|
|
|
27
35
|
}: InitApplicationLeadProps): LeadFormState => {
|
|
28
36
|
const leadFormStore = useLeadFormStore();
|
|
29
37
|
const saveForm = useSetter(leadFormStore, 'leadForm');
|
|
38
|
+
const sessionStore = useSessionStore<ApplicationLeadStore>();
|
|
30
39
|
const queryFromStorage = globalThis.sessionStorage?.getItem(QUERY_STORAGE_KEY);
|
|
31
40
|
|
|
32
41
|
const initialFormState = useMemo(
|
|
@@ -61,27 +70,21 @@ export const useInitApplicationLead = ({
|
|
|
61
70
|
useEffect(() => {
|
|
62
71
|
leadFormStore.productType = productType;
|
|
63
72
|
|
|
64
|
-
const { code, state, referalCode, refererCode, productId } = getLeadQueryParams(
|
|
65
|
-
leadFormStore.referalData,
|
|
73
|
+
const { code, state, referalCode, refererCode, productId, marketingInfo } = getLeadQueryParams(
|
|
66
74
|
queryFromStorage,
|
|
75
|
+
sessionStore,
|
|
67
76
|
);
|
|
68
77
|
|
|
69
78
|
if (referalCode) {
|
|
70
|
-
|
|
79
|
+
sessionStore.referalData = {
|
|
71
80
|
refererCode,
|
|
72
81
|
referalCode,
|
|
73
82
|
productId,
|
|
74
|
-
isTaskWithReferalCode: true,
|
|
75
|
-
};
|
|
76
|
-
} else if (!code) {
|
|
77
|
-
leadFormStore.referalData = {
|
|
78
|
-
refererCode: null,
|
|
79
|
-
referalCode: null,
|
|
80
|
-
productId: null,
|
|
81
|
-
isTaskWithReferalCode: false,
|
|
82
83
|
};
|
|
83
84
|
}
|
|
84
85
|
|
|
86
|
+
sessionStore.marketingInfo = marketingInfo;
|
|
87
|
+
|
|
85
88
|
if (code && state) {
|
|
86
89
|
requestEsiaProfile(code, state);
|
|
87
90
|
} else {
|
|
@@ -93,7 +96,12 @@ export const useInitApplicationLead = ({
|
|
|
93
96
|
return initialFormState;
|
|
94
97
|
};
|
|
95
98
|
|
|
96
|
-
const getLeadQueryParams = (
|
|
99
|
+
const getLeadQueryParams = (
|
|
100
|
+
queryFromStorage: string | null,
|
|
101
|
+
sessionStore: ApplicationLeadStore,
|
|
102
|
+
) => {
|
|
103
|
+
const referalData = sessionStore.referalData;
|
|
104
|
+
const marketingInfoFromStorage = sessionStore.marketingInfo;
|
|
97
105
|
const queryStorage = new URLSearchParams(decodeURIComponent(queryFromStorage || ''));
|
|
98
106
|
|
|
99
107
|
const code = queryStorage.get('code');
|
|
@@ -101,6 +109,16 @@ const getLeadQueryParams = (referalData: ReferalData | null, queryFromStorage: s
|
|
|
101
109
|
const referalCode = code ? referalData?.referalCode : queryStorage.get('referalCode');
|
|
102
110
|
const refererCode = code ? referalData?.refererCode : queryStorage.get('refererCode');
|
|
103
111
|
const productId = code ? referalData?.productId : queryStorage.get('productId');
|
|
112
|
+
const marketingInfo = code
|
|
113
|
+
? marketingInfoFromStorage
|
|
114
|
+
: {
|
|
115
|
+
utm_campaign: queryStorage.get('utm_campaign'),
|
|
116
|
+
utm_medium: queryStorage.get('utm_medium'),
|
|
117
|
+
utm_source: queryStorage.get('utm_source'),
|
|
118
|
+
utm_content: queryStorage.get('utm_content'),
|
|
119
|
+
utm_term: queryStorage.get('utm_term'),
|
|
120
|
+
bannerId: queryStorage.get('bannerId'),
|
|
121
|
+
};
|
|
104
122
|
|
|
105
123
|
return {
|
|
106
124
|
code,
|
|
@@ -108,5 +126,6 @@ const getLeadQueryParams = (referalData: ReferalData | null, queryFromStorage: s
|
|
|
108
126
|
referalCode,
|
|
109
127
|
refererCode,
|
|
110
128
|
productId,
|
|
129
|
+
marketingInfo,
|
|
111
130
|
};
|
|
112
131
|
};
|
|
@@ -1,12 +1,252 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
CREDIT_CARD_CONTENT,
|
|
4
|
-
DELIVERY_CREDIT_CARD_CONTENT,
|
|
5
|
-
} from '../../retail/content';
|
|
1
|
+
/* eslint-disable max-lines */
|
|
2
|
+
import { DELIVERY_CARD_CONTENT, PERSONAL_DATA } from '../../retail/content';
|
|
6
3
|
import { type CreditCardSectionsProps } from './CreditCardFormContent';
|
|
7
4
|
|
|
5
|
+
const PERSONAL_INFO_CONTENT: CreditCardSectionsProps[] = [
|
|
6
|
+
...PERSONAL_DATA,
|
|
7
|
+
{
|
|
8
|
+
inputs: [
|
|
9
|
+
{
|
|
10
|
+
name: 'education',
|
|
11
|
+
required: true,
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
title: 'Адрес регистрации по месту жительства',
|
|
17
|
+
columns: 1,
|
|
18
|
+
inputs: [],
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
inputs: [
|
|
22
|
+
{
|
|
23
|
+
name: 'addressRegistration',
|
|
24
|
+
required: true,
|
|
25
|
+
dadata: true,
|
|
26
|
+
filledByEsia: true,
|
|
27
|
+
},
|
|
28
|
+
{ name: 'addressMatch' },
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
columns: 2,
|
|
33
|
+
inputs: [{ name: 'participantDateRegistration', required: true }],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
title: 'Адрес фактического проживания (место пребывания РФ)',
|
|
37
|
+
inputs: [],
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
columns: 2,
|
|
41
|
+
inputs: [{ name: 'housing', required: true }],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
inputs: [{ name: 'addressFact', required: true, dadata: true }],
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
const EMPLOYMENT_CONTENT: CreditCardSectionsProps[] = [
|
|
48
|
+
{
|
|
49
|
+
title: 'Данные о трудоустройстве',
|
|
50
|
+
inputs: [],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
inputs: [
|
|
54
|
+
{
|
|
55
|
+
name: 'infoCard',
|
|
56
|
+
label:
|
|
57
|
+
'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
|
|
58
|
+
'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
inputs: [
|
|
64
|
+
{ name: 'employment', required: true },
|
|
65
|
+
{ name: 'organizationName', required: true, dadata: true, filledByEsia: true },
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
columns: 2,
|
|
70
|
+
inputs: [
|
|
71
|
+
{ name: 'inn', required: true, dadata: true, filledByEsia: true },
|
|
72
|
+
{ name: 'legalForm', required: true },
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
inputs: [
|
|
77
|
+
{ name: 'organization', required: true },
|
|
78
|
+
{ name: 'amountWorkers', required: true },
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
columns: 2,
|
|
83
|
+
inputs: [
|
|
84
|
+
{ name: 'employerActivities', required: true },
|
|
85
|
+
{ name: 'employerOrganization', required: true },
|
|
86
|
+
{ name: 'generalSeniority', required: true, filledByEsia: true },
|
|
87
|
+
{ name: 'lastJobExperience', required: true, filledByEsia: true },
|
|
88
|
+
{ name: 'experience5Years', required: true, filledByEsia: true },
|
|
89
|
+
{ name: 'jobsNumber', required: true, filledByEsia: true },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
inputs: [
|
|
94
|
+
{
|
|
95
|
+
name: 'organizationPhone',
|
|
96
|
+
label: 'Телефон работодателя',
|
|
97
|
+
required: true,
|
|
98
|
+
},
|
|
99
|
+
{ name: 'beginDate', required: true, filledByEsia: true },
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
columns: 2,
|
|
104
|
+
inputs: [
|
|
105
|
+
{ name: 'positionOrganization', required: true },
|
|
106
|
+
{
|
|
107
|
+
name: 'partInBusiness',
|
|
108
|
+
required: true,
|
|
109
|
+
condition: { name: 'positionOrganization', values: ['BUSINESS_OWNER'] },
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
title: 'Адрес работодателя',
|
|
115
|
+
inputs: [],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
inputs: [{ name: 'organizationAddress', required: true, dadata: true }],
|
|
119
|
+
},
|
|
120
|
+
];
|
|
121
|
+
const FAMILY_STATUS_AND_INCOME_CONTENT: CreditCardSectionsProps[] = [
|
|
122
|
+
{
|
|
123
|
+
title: 'Семейное положение',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
columns: 1,
|
|
127
|
+
inputs: [{ name: 'familyStatus', required: true }],
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
columns: 1,
|
|
131
|
+
inputs: [{ name: 'children', required: true }],
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
columns: 2,
|
|
135
|
+
inputs: [{ name: 'dependents', required: true }, { name: 'familyMembers' }],
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
title: 'Совокупный доход',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
columns: 1,
|
|
142
|
+
inputs: [
|
|
143
|
+
{
|
|
144
|
+
name: 'confirmationIncome',
|
|
145
|
+
required: true,
|
|
146
|
+
filledByEsia: true,
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
inputs: [
|
|
152
|
+
{
|
|
153
|
+
name: 'infoCard',
|
|
154
|
+
label: 'Сумма основного и дополнительных доходов после вычета налога',
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
columns: 1,
|
|
160
|
+
inputs: [{ name: 'wages', required: true, filledByEsia: true }],
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
columns: 1,
|
|
164
|
+
inputs: [
|
|
165
|
+
{
|
|
166
|
+
name: 'retirementIncome',
|
|
167
|
+
required: true,
|
|
168
|
+
condition: { name: 'employment', values: ['RETIREE'] },
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
columns: 1,
|
|
174
|
+
inputs: [{ name: 'mandatoryPayments', required: true }],
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
columns: 1,
|
|
178
|
+
inputs: [{ name: 'snils', required: true }],
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
columns: 1,
|
|
182
|
+
inputs: [{ name: 'conscription', required: true }],
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
columns: 2,
|
|
186
|
+
inputs: [{ name: 'armyIdFlg' }],
|
|
187
|
+
},
|
|
188
|
+
];
|
|
189
|
+
const ADDITIONAL_CONTENT: CreditCardSectionsProps[] = [
|
|
190
|
+
{
|
|
191
|
+
title: 'Дополнительные сведения',
|
|
192
|
+
columns: 1,
|
|
193
|
+
inputs: [],
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
inputs: [{ name: 'bankruptcyFlg' }],
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
inputs: [{ name: 'shareholderFlg' }],
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
inputs: [{ name: 'legalEntityName' }],
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
inputs: [{ name: 'creditInRshbCd' }],
|
|
206
|
+
},
|
|
207
|
+
];
|
|
208
|
+
const CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
209
|
+
{
|
|
210
|
+
title: 'Параметры карты',
|
|
211
|
+
inputs: [],
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
inputs: [
|
|
215
|
+
{ name: 'currency', required: true },
|
|
216
|
+
{ name: 'paymentSystem', required: true },
|
|
217
|
+
{ name: 'cardCategory', required: true },
|
|
218
|
+
{ name: 'codeWord', required: true },
|
|
219
|
+
],
|
|
220
|
+
},
|
|
221
|
+
];
|
|
222
|
+
const DELIVERY_CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
|
|
223
|
+
...DELIVERY_CARD_CONTENT,
|
|
224
|
+
{
|
|
225
|
+
inputs: [
|
|
226
|
+
{
|
|
227
|
+
name: 'infoCard',
|
|
228
|
+
label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
|
|
229
|
+
condition: {
|
|
230
|
+
name: 'methodObtain',
|
|
231
|
+
values: ['office'],
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
name: 'bankEmployeeCode',
|
|
236
|
+
condition: {
|
|
237
|
+
name: 'methodObtain',
|
|
238
|
+
values: ['office'],
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
},
|
|
243
|
+
];
|
|
244
|
+
|
|
8
245
|
export const stepsSectionsMap: CreditCardSectionsProps[][] = [
|
|
9
246
|
CREDIT_CARD_CONTENT,
|
|
10
|
-
|
|
247
|
+
PERSONAL_INFO_CONTENT,
|
|
248
|
+
EMPLOYMENT_CONTENT,
|
|
249
|
+
FAMILY_STATUS_AND_INCOME_CONTENT,
|
|
250
|
+
ADDITIONAL_CONTENT,
|
|
11
251
|
DELIVERY_CREDIT_CARD_CONTENT,
|
|
12
252
|
];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
2
|
-
import {
|
|
2
|
+
import { getMainFormStateMap } from '../../retail/utils/getMainFormStateMap';
|
|
3
3
|
|
|
4
4
|
export const formStateMap: Partial<LeadFormState>[] = [
|
|
5
5
|
{
|
|
@@ -7,7 +7,7 @@ export const formStateMap: Partial<LeadFormState>[] = [
|
|
|
7
7
|
currency: '810',
|
|
8
8
|
codeWord: '',
|
|
9
9
|
},
|
|
10
|
-
...
|
|
10
|
+
...getMainFormStateMap(),
|
|
11
11
|
{
|
|
12
12
|
regionRetail: { key: '', text: '' },
|
|
13
13
|
addressRetail: { key: '', text: '' },
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { locationNavigator } from '../../external/locationNavigator';
|
|
2
1
|
import { getAdditionalInfoData } from '../../retail/adaptors/getAdditionalInfoData';
|
|
3
2
|
import { getCardOptionsData } from '../../retail/adaptors/getCardOptionsData';
|
|
4
3
|
import { getEmploymentData } from '../../retail/adaptors/getEmploymentData';
|
|
@@ -6,7 +5,6 @@ import { getFamilyStatusAndIncomeData } from '../../retail/adaptors/getFamilySta
|
|
|
6
5
|
import { getPersonalInfoData } from '../../retail/adaptors/getPersonalInfoData';
|
|
7
6
|
import { type Participant, type UpdateUserTaskBody } from '../../retail/api/updateUserTask';
|
|
8
7
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
9
|
-
import { type ReferalData } from '../../retail/model/ReferalData';
|
|
10
8
|
import {
|
|
11
9
|
getDeliveryCreditCardData,
|
|
12
10
|
getDeliveryData,
|
|
@@ -19,7 +17,6 @@ type getCreditCardFormTaskDataProps = {
|
|
|
19
17
|
profileId: number;
|
|
20
18
|
formData: LeadFormState;
|
|
21
19
|
step?: number;
|
|
22
|
-
isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
|
|
23
20
|
};
|
|
24
21
|
|
|
25
22
|
export const getCreditCardFormTaskData = ({
|
|
@@ -28,38 +25,31 @@ export const getCreditCardFormTaskData = ({
|
|
|
28
25
|
profileId,
|
|
29
26
|
formData,
|
|
30
27
|
step = 0,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
authorizedAgentId: formData?.bankEmployeeCode,
|
|
44
|
-
participants: [
|
|
45
|
-
{
|
|
46
|
-
id: participantId,
|
|
47
|
-
profile: {
|
|
48
|
-
id: profileId,
|
|
49
|
-
},
|
|
50
|
-
roleCd: {
|
|
51
|
-
key: 'BORROWER',
|
|
52
|
-
value: 'Заемщик',
|
|
53
|
-
},
|
|
54
|
-
...getCurrentStepData(step, formData),
|
|
28
|
+
}: getCreditCardFormTaskDataProps): UpdateUserTaskBody => ({
|
|
29
|
+
sendToBank: true,
|
|
30
|
+
taskKind: 'UNITED',
|
|
31
|
+
task: {
|
|
32
|
+
id: taskId,
|
|
33
|
+
...getOfficeCode(formData),
|
|
34
|
+
authorizedAgentId: formData?.bankEmployeeCode,
|
|
35
|
+
participants: [
|
|
36
|
+
{
|
|
37
|
+
id: participantId,
|
|
38
|
+
profile: {
|
|
39
|
+
id: profileId,
|
|
55
40
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
41
|
+
roleCd: {
|
|
42
|
+
key: 'BORROWER',
|
|
43
|
+
value: 'Заемщик',
|
|
44
|
+
},
|
|
45
|
+
...getCurrentStepData(step, formData),
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
...getCardOptionsData(formData),
|
|
49
|
+
...getDeliveryData(formData),
|
|
50
|
+
files: formData?.files,
|
|
51
|
+
},
|
|
52
|
+
});
|
|
63
53
|
|
|
64
54
|
const getCurrentStepData = (step: number, formData: LeadFormState): Partial<Participant> => {
|
|
65
55
|
switch (step) {
|
|
@@ -48,7 +48,6 @@ export const useCreditCardFormAPI = ({
|
|
|
48
48
|
async (formData: LeadFormState) => {
|
|
49
49
|
startSending();
|
|
50
50
|
retailFormStore.leadForm = formData;
|
|
51
|
-
const referalData = retailFormStore.referalData;
|
|
52
51
|
|
|
53
52
|
try {
|
|
54
53
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
@@ -60,7 +59,6 @@ export const useCreditCardFormAPI = ({
|
|
|
60
59
|
profileId,
|
|
61
60
|
step,
|
|
62
61
|
formData: formData as any,
|
|
63
|
-
isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
|
|
64
62
|
}),
|
|
65
63
|
);
|
|
66
64
|
resetForm(response);
|