@redneckz/wildless-cms-uni-blocks 0.14.1028 → 0.14.1030
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/api/getSubmitBody.d.ts +4225 -865
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +178 -46
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
- package/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
- package/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
- package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/bundle/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/bundle/components/ReferalForm/ReferalForm.d.ts +10 -0
- package/bundle/components/ReferalForm/ReferalFormContent.d.ts +11 -0
- package/bundle/components/ReferalForm/ResultLink.d.ts +5 -0
- package/bundle/components/ReferalForm/referalFormData.d.ts +2 -0
- package/bundle/components/ReferalForm/renderLinkInput.d.ts +2 -0
- package/bundle/components/ReferalForm/renderSections.d.ts +3 -0
- package/bundle/model/FormTypeFieldDef.d.ts +1 -1
- package/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/bundle/retail/api/createDraftTask.d.ts +1 -1
- package/bundle/retail/api/createParticipant.d.ts +5 -1
- package/bundle/retail/api/draftTasksKZO.d.ts +2 -1
- package/bundle/retail/api/getLastTaskStatus.d.ts +2 -1
- package/bundle/retail/api/getUserTasks.d.ts +2 -40
- package/bundle/retail/api/getUserTasksCard.d.ts +2 -0
- package/bundle/retail/api/getUserTasksCredit.d.ts +2 -0
- package/bundle/retail/api/getUserTasksDebit.d.ts +2 -0
- package/bundle/retail/api/getUserTasksTypes.d.ts +39 -0
- package/bundle/retail/api/updateUserTask.d.ts +1 -1
- package/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/bundle/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/bundle/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/dist/api/getSubmitBody.d.ts +4225 -865
- package/dist/api/getSubmitBody.js +14 -0
- package/dist/api/getSubmitBody.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +2 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
- package/dist/components/ApplicationForm/Footnote.d.ts +1 -0
- package/dist/components/ApplicationForm/Footnote.js +1 -1
- package/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.js +1 -1
- package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/dist/components/ApplicationLeadForm/useSaveUserData.js +2 -1
- package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/dist/components/ReferalForm/ReferalForm.d.ts +10 -0
- package/dist/components/ReferalForm/ReferalForm.js +33 -0
- package/dist/components/ReferalForm/ReferalForm.js.map +1 -0
- package/dist/components/ReferalForm/ReferalFormContent.d.ts +11 -0
- package/dist/components/ReferalForm/ReferalFormContent.js +2 -0
- package/dist/components/ReferalForm/ReferalFormContent.js.map +1 -0
- package/dist/components/ReferalForm/ResultLink.d.ts +5 -0
- package/dist/components/ReferalForm/ResultLink.js +12 -0
- package/dist/components/ReferalForm/ResultLink.js.map +1 -0
- package/dist/components/ReferalForm/referalFormData.d.ts +2 -0
- package/dist/components/ReferalForm/referalFormData.js +19 -0
- package/dist/components/ReferalForm/referalFormData.js.map +1 -0
- package/dist/components/ReferalForm/renderLinkInput.d.ts +2 -0
- package/dist/components/ReferalForm/renderLinkInput.js +25 -0
- package/dist/components/ReferalForm/renderLinkInput.js.map +1 -0
- package/dist/components/ReferalForm/renderSections.d.ts +3 -0
- package/dist/components/ReferalForm/renderSections.js +10 -0
- package/dist/components/ReferalForm/renderSections.js.map +1 -0
- package/dist/hooks/useDadataParty.js +1 -1
- package/dist/hooks/useDadataParty.js.map +1 -1
- package/dist/model/FormTypeFieldDef.d.ts +1 -1
- package/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/dist/retail/api/createDraftTask.d.ts +1 -1
- package/dist/retail/api/createParticipant.d.ts +5 -1
- package/dist/retail/api/createParticipant.js +1 -1
- package/dist/retail/api/createParticipant.js.map +1 -1
- package/dist/retail/api/draftTasksKZO.d.ts +2 -1
- package/dist/retail/api/draftTasksKZO.js.map +1 -1
- package/dist/retail/api/getLastTaskStatus.d.ts +2 -1
- package/dist/retail/api/getLastTaskStatus.js.map +1 -1
- package/dist/retail/api/getUserTasks.d.ts +2 -40
- package/dist/retail/api/getUserTasks.js +2 -6
- package/dist/retail/api/getUserTasks.js.map +1 -1
- package/dist/retail/api/getUserTasksCard.d.ts +2 -0
- package/dist/retail/api/getUserTasksCard.js +8 -0
- package/dist/retail/api/getUserTasksCard.js.map +1 -0
- package/dist/retail/api/getUserTasksCredit.d.ts +2 -0
- package/dist/retail/api/getUserTasksCredit.js +9 -0
- package/dist/retail/api/getUserTasksCredit.js.map +1 -0
- package/dist/retail/api/getUserTasksDebit.d.ts +2 -0
- package/dist/retail/api/getUserTasksDebit.js +8 -0
- package/dist/retail/api/getUserTasksDebit.js.map +1 -0
- package/dist/retail/api/getUserTasksTypes.d.ts +39 -0
- package/dist/retail/api/getUserTasksTypes.js +9 -0
- package/dist/retail/api/getUserTasksTypes.js.map +1 -0
- package/dist/retail/api/updateUserTask.d.ts +1 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +4 -2
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js +4 -1
- package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/dist/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/lib/api/getSubmitBody.d.ts +4225 -865
- package/lib/api/getSubmitBody.js +14 -0
- package/lib/api/getSubmitBody.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +2 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
- package/lib/components/ApplicationForm/Footnote.d.ts +1 -0
- package/lib/components/ApplicationForm/Footnote.js +1 -1
- package/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js +1 -1
- package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/lib/components/ApplicationLeadForm/useSaveUserData.js +2 -1
- package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/lib/components/ReferalForm/ReferalForm.d.ts +10 -0
- package/lib/components/ReferalForm/ReferalForm.fixture.d.ts +5 -0
- package/lib/components/ReferalForm/ReferalForm.fixture.mobile.d.ts +5 -0
- package/lib/components/ReferalForm/ReferalForm.js +31 -0
- package/lib/components/ReferalForm/ReferalForm.js.map +1 -0
- package/lib/components/ReferalForm/ReferalFormContent.d.ts +11 -0
- package/lib/components/ReferalForm/ReferalFormContent.js +2 -0
- package/lib/components/ReferalForm/ReferalFormContent.js.map +1 -0
- package/lib/components/ReferalForm/ResultLink.d.ts +5 -0
- package/lib/components/ReferalForm/ResultLink.js +10 -0
- package/lib/components/ReferalForm/ResultLink.js.map +1 -0
- package/lib/components/ReferalForm/referalFormData.d.ts +2 -0
- package/lib/components/ReferalForm/referalFormData.js +17 -0
- package/lib/components/ReferalForm/referalFormData.js.map +1 -0
- package/lib/components/ReferalForm/renderLinkInput.d.ts +2 -0
- package/lib/components/ReferalForm/renderLinkInput.js +23 -0
- package/lib/components/ReferalForm/renderLinkInput.js.map +1 -0
- package/lib/components/ReferalForm/renderSections.d.ts +3 -0
- package/lib/components/ReferalForm/renderSections.js +7 -0
- package/lib/components/ReferalForm/renderSections.js.map +1 -0
- package/lib/hooks/useDadataParty.js +1 -1
- package/lib/hooks/useDadataParty.js.map +1 -1
- package/lib/model/FormTypeFieldDef.d.ts +1 -1
- package/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/lib/retail/api/createDraftTask.d.ts +1 -1
- package/lib/retail/api/createParticipant.d.ts +5 -1
- package/lib/retail/api/createParticipant.js +1 -1
- package/lib/retail/api/createParticipant.js.map +1 -1
- package/lib/retail/api/draftTasksKZO.d.ts +2 -1
- package/lib/retail/api/draftTasksKZO.js.map +1 -1
- package/lib/retail/api/getLastTaskStatus.d.ts +2 -1
- package/lib/retail/api/getLastTaskStatus.js.map +1 -1
- package/lib/retail/api/getUserTasks.d.ts +2 -40
- package/lib/retail/api/getUserTasks.js +1 -6
- package/lib/retail/api/getUserTasks.js.map +1 -1
- package/lib/retail/api/getUserTasksCard.d.ts +2 -0
- package/lib/retail/api/getUserTasksCard.js +5 -0
- package/lib/retail/api/getUserTasksCard.js.map +1 -0
- package/lib/retail/api/getUserTasksCredit.d.ts +2 -0
- package/lib/retail/api/getUserTasksCredit.js +6 -0
- package/lib/retail/api/getUserTasksCredit.js.map +1 -0
- package/lib/retail/api/getUserTasksDebit.d.ts +2 -0
- package/lib/retail/api/getUserTasksDebit.js +5 -0
- package/lib/retail/api/getUserTasksDebit.js.map +1 -0
- package/lib/retail/api/getUserTasksTypes.d.ts +39 -0
- package/lib/retail/api/getUserTasksTypes.js +7 -0
- package/lib/retail/api/getUserTasksTypes.js.map +1 -0
- package/lib/retail/api/updateUserTask.d.ts +1 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +4 -2
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js +4 -1
- package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/lib/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/mobile/bundle/api/getSubmitBody.d.ts +4225 -865
- package/mobile/bundle/bundle.umd.js +113 -42
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
- package/mobile/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
- package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/mobile/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/mobile/bundle/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/mobile/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/mobile/bundle/components/ReferalForm/ReferalForm.d.ts +10 -0
- package/mobile/bundle/components/ReferalForm/ReferalFormContent.d.ts +11 -0
- package/mobile/bundle/components/ReferalForm/ResultLink.d.ts +5 -0
- package/mobile/bundle/components/ReferalForm/referalFormData.d.ts +2 -0
- package/mobile/bundle/components/ReferalForm/renderLinkInput.d.ts +2 -0
- package/mobile/bundle/components/ReferalForm/renderSections.d.ts +3 -0
- package/mobile/bundle/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/mobile/bundle/retail/api/createDraftTask.d.ts +1 -1
- package/mobile/bundle/retail/api/createParticipant.d.ts +5 -1
- package/mobile/bundle/retail/api/draftTasksKZO.d.ts +2 -1
- package/mobile/bundle/retail/api/getLastTaskStatus.d.ts +2 -1
- package/mobile/bundle/retail/api/getUserTasks.d.ts +2 -40
- package/mobile/bundle/retail/api/getUserTasksCard.d.ts +2 -0
- package/mobile/bundle/retail/api/getUserTasksCredit.d.ts +2 -0
- package/mobile/bundle/retail/api/getUserTasksDebit.d.ts +2 -0
- package/mobile/bundle/retail/api/getUserTasksTypes.d.ts +39 -0
- package/mobile/bundle/retail/api/updateUserTask.d.ts +1 -1
- package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/mobile/bundle/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/mobile/bundle/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/mobile/dist/api/getSubmitBody.d.ts +4225 -865
- package/mobile/dist/api/getSubmitBody.js +14 -0
- package/mobile/dist/api/getSubmitBody.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +2 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/Footnote.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js +2 -1
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/mobile/dist/components/ReferalForm/ReferalForm.d.ts +10 -0
- package/mobile/dist/components/ReferalForm/ReferalForm.js +33 -0
- package/mobile/dist/components/ReferalForm/ReferalForm.js.map +1 -0
- package/mobile/dist/components/ReferalForm/ReferalFormContent.d.ts +11 -0
- package/mobile/dist/components/ReferalForm/ReferalFormContent.js +2 -0
- package/mobile/dist/components/ReferalForm/ReferalFormContent.js.map +1 -0
- package/mobile/dist/components/ReferalForm/ResultLink.d.ts +5 -0
- package/mobile/dist/components/ReferalForm/ResultLink.js +12 -0
- package/mobile/dist/components/ReferalForm/ResultLink.js.map +1 -0
- package/mobile/dist/components/ReferalForm/referalFormData.d.ts +2 -0
- package/mobile/dist/components/ReferalForm/referalFormData.js +19 -0
- package/mobile/dist/components/ReferalForm/referalFormData.js.map +1 -0
- package/mobile/dist/components/ReferalForm/renderLinkInput.d.ts +2 -0
- package/mobile/dist/components/ReferalForm/renderLinkInput.js +25 -0
- package/mobile/dist/components/ReferalForm/renderLinkInput.js.map +1 -0
- package/mobile/dist/components/ReferalForm/renderSections.d.ts +3 -0
- package/mobile/dist/components/ReferalForm/renderSections.js +10 -0
- package/mobile/dist/components/ReferalForm/renderSections.js.map +1 -0
- package/mobile/dist/hooks/useDadataParty.js +1 -1
- package/mobile/dist/hooks/useDadataParty.js.map +1 -1
- package/mobile/dist/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/mobile/dist/retail/api/createDraftTask.d.ts +1 -1
- package/mobile/dist/retail/api/createParticipant.d.ts +5 -1
- package/mobile/dist/retail/api/createParticipant.js +1 -1
- package/mobile/dist/retail/api/createParticipant.js.map +1 -1
- package/mobile/dist/retail/api/draftTasksKZO.d.ts +2 -1
- package/mobile/dist/retail/api/draftTasksKZO.js.map +1 -1
- package/mobile/dist/retail/api/getLastTaskStatus.d.ts +2 -1
- package/mobile/dist/retail/api/getLastTaskStatus.js.map +1 -1
- package/mobile/dist/retail/api/getUserTasks.d.ts +2 -40
- package/mobile/dist/retail/api/getUserTasks.js +2 -6
- package/mobile/dist/retail/api/getUserTasks.js.map +1 -1
- package/mobile/dist/retail/api/getUserTasksCard.d.ts +2 -0
- package/mobile/dist/retail/api/getUserTasksCard.js +8 -0
- package/mobile/dist/retail/api/getUserTasksCard.js.map +1 -0
- package/mobile/dist/retail/api/getUserTasksCredit.d.ts +2 -0
- package/mobile/dist/retail/api/getUserTasksCredit.js +9 -0
- package/mobile/dist/retail/api/getUserTasksCredit.js.map +1 -0
- package/mobile/dist/retail/api/getUserTasksDebit.d.ts +2 -0
- package/mobile/dist/retail/api/getUserTasksDebit.js +8 -0
- package/mobile/dist/retail/api/getUserTasksDebit.js.map +1 -0
- package/mobile/dist/retail/api/getUserTasksTypes.d.ts +39 -0
- package/mobile/dist/retail/api/getUserTasksTypes.js +9 -0
- package/mobile/dist/retail/api/getUserTasksTypes.js.map +1 -0
- package/mobile/dist/retail/api/updateUserTask.d.ts +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +4 -2
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +4 -1
- package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/dist/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/mobile/lib/api/getSubmitBody.d.ts +4225 -865
- package/mobile/lib/api/getSubmitBody.js +14 -0
- package/mobile/lib/api/getSubmitBody.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +2 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/Footnote.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
- package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js +2 -1
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
- package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
- package/mobile/lib/components/ReferalForm/ReferalForm.d.ts +10 -0
- package/mobile/lib/components/ReferalForm/ReferalForm.js +31 -0
- package/mobile/lib/components/ReferalForm/ReferalForm.js.map +1 -0
- package/mobile/lib/components/ReferalForm/ReferalFormContent.d.ts +11 -0
- package/mobile/lib/components/ReferalForm/ReferalFormContent.js +2 -0
- package/mobile/lib/components/ReferalForm/ReferalFormContent.js.map +1 -0
- package/mobile/lib/components/ReferalForm/ResultLink.d.ts +5 -0
- package/mobile/lib/components/ReferalForm/ResultLink.js +10 -0
- package/mobile/lib/components/ReferalForm/ResultLink.js.map +1 -0
- package/mobile/lib/components/ReferalForm/referalFormData.d.ts +2 -0
- package/mobile/lib/components/ReferalForm/referalFormData.js +17 -0
- package/mobile/lib/components/ReferalForm/referalFormData.js.map +1 -0
- package/mobile/lib/components/ReferalForm/renderLinkInput.d.ts +2 -0
- package/mobile/lib/components/ReferalForm/renderLinkInput.js +23 -0
- package/mobile/lib/components/ReferalForm/renderLinkInput.js.map +1 -0
- package/mobile/lib/components/ReferalForm/renderSections.d.ts +3 -0
- package/mobile/lib/components/ReferalForm/renderSections.js +7 -0
- package/mobile/lib/components/ReferalForm/renderSections.js.map +1 -0
- package/mobile/lib/hooks/useDadataParty.js +1 -1
- package/mobile/lib/hooks/useDadataParty.js.map +1 -1
- package/mobile/lib/model/FormTypeFieldDef.d.ts +1 -1
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
- package/mobile/lib/retail/api/createDraftTask.d.ts +1 -1
- package/mobile/lib/retail/api/createParticipant.d.ts +5 -1
- package/mobile/lib/retail/api/createParticipant.js +1 -1
- package/mobile/lib/retail/api/createParticipant.js.map +1 -1
- package/mobile/lib/retail/api/draftTasksKZO.d.ts +2 -1
- package/mobile/lib/retail/api/draftTasksKZO.js.map +1 -1
- package/mobile/lib/retail/api/getLastTaskStatus.d.ts +2 -1
- package/mobile/lib/retail/api/getLastTaskStatus.js.map +1 -1
- package/mobile/lib/retail/api/getUserTasks.d.ts +2 -40
- package/mobile/lib/retail/api/getUserTasks.js +1 -6
- package/mobile/lib/retail/api/getUserTasks.js.map +1 -1
- package/mobile/lib/retail/api/getUserTasksCard.d.ts +2 -0
- package/mobile/lib/retail/api/getUserTasksCard.js +5 -0
- package/mobile/lib/retail/api/getUserTasksCard.js.map +1 -0
- package/mobile/lib/retail/api/getUserTasksCredit.d.ts +2 -0
- package/mobile/lib/retail/api/getUserTasksCredit.js +6 -0
- package/mobile/lib/retail/api/getUserTasksCredit.js.map +1 -0
- package/mobile/lib/retail/api/getUserTasksDebit.d.ts +2 -0
- package/mobile/lib/retail/api/getUserTasksDebit.js +5 -0
- package/mobile/lib/retail/api/getUserTasksDebit.js.map +1 -0
- package/mobile/lib/retail/api/getUserTasksTypes.d.ts +39 -0
- package/mobile/lib/retail/api/getUserTasksTypes.js +7 -0
- package/mobile/lib/retail/api/getUserTasksTypes.js.map +1 -0
- package/mobile/lib/retail/api/updateUserTask.d.ts +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +4 -2
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +4 -1
- package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
- package/mobile/lib/retail/hooks/useRetailFormStore.d.ts +2 -1
- package/mobile/src/api/getSubmitBody.ts +17 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +38 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +2 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +10 -0
- package/mobile/src/components/ApplicationForm/Footnote.tsx +10 -1
- package/mobile/src/components/ApplicationForm/renderAgreementSubmit.tsx +7 -1
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +140 -32
- package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
- package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +11 -2
- package/mobile/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -1
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +1 -1
- package/mobile/src/components/DebitForm/getDebitCardFormTaskData.ts +1 -1
- package/mobile/src/components/ReferalForm/ReferalForm.example.json +8 -0
- package/mobile/src/components/ReferalForm/ReferalForm.tsx +78 -0
- package/mobile/src/components/ReferalForm/ReferalForm.ui.json +1 -0
- package/mobile/src/components/ReferalForm/ReferalFormContent.ts +12 -0
- package/mobile/src/components/ReferalForm/ResultLink.tsx +20 -0
- package/mobile/src/components/ReferalForm/referalFormData.ts +18 -0
- package/mobile/src/components/ReferalForm/renderLinkInput.tsx +37 -0
- package/mobile/src/components/ReferalForm/renderSections.tsx +18 -0
- package/mobile/src/hooks/useDadataParty.ts +1 -1
- package/mobile/src/model/FormTypeFieldDef.ts +2 -1
- package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +1 -1
- package/mobile/src/retail/api/createDraftTask.ts +1 -1
- package/mobile/src/retail/api/createParticipant.ts +3 -2
- package/mobile/src/retail/api/draftTasksKZO.ts +2 -1
- package/mobile/src/retail/api/getLastTaskStatus.ts +2 -1
- package/mobile/src/retail/api/getUserTasks.ts +2 -42
- package/mobile/src/retail/api/getUserTasksCard.ts +6 -0
- package/mobile/src/retail/api/getUserTasksCredit.ts +8 -0
- package/mobile/src/retail/api/getUserTasksDebit.ts +6 -0
- package/mobile/src/retail/api/getUserTasksTypes.ts +42 -0
- package/mobile/src/retail/api/updateUserTask.ts +1 -1
- package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +6 -3
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +5 -3
- package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +5 -1
- package/package.json +1 -1
- package/src/api/getSubmitBody.ts +17 -0
- package/src/components/ApplicationForm/ApplicationForm.example.json +38 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +36 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +2 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +10 -0
- package/src/components/ApplicationForm/Footnote.tsx +10 -1
- package/src/components/ApplicationForm/renderAgreementSubmit.tsx +7 -1
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +140 -32
- package/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
- package/src/components/ApplicationLeadForm/useSaveUserData.ts +11 -2
- package/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -1
- package/src/components/Blocks.ts +2 -0
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +1 -1
- package/src/components/DebitForm/getDebitCardFormTaskData.ts +1 -1
- package/src/components/ReferalForm/ReferalForm.example.json +8 -0
- package/src/components/ReferalForm/ReferalForm.fixture.mobile.tsx +16 -0
- package/src/components/ReferalForm/ReferalForm.fixture.tsx +16 -0
- package/src/components/ReferalForm/ReferalForm.tsx +78 -0
- package/src/components/ReferalForm/ReferalForm.ui.json +1 -0
- package/src/components/ReferalForm/ReferalFormContent.ts +12 -0
- package/src/components/ReferalForm/ResultLink.tsx +20 -0
- package/src/components/ReferalForm/referalFormData.ts +18 -0
- package/src/components/ReferalForm/renderLinkInput.tsx +37 -0
- package/src/components/ReferalForm/renderSections.tsx +18 -0
- package/src/hooks/useDadataParty.ts +1 -1
- package/src/icons/IconName.ts +4 -4
- package/src/model/FormTypeFieldDef.ts +2 -1
- package/src/retail/adaptors/getCreditFormTaskData.ts +1 -1
- package/src/retail/api/createDraftTask.ts +1 -1
- package/src/retail/api/createParticipant.ts +3 -2
- package/src/retail/api/draftTasksKZO.ts +2 -1
- package/src/retail/api/getLastTaskStatus.ts +2 -1
- package/src/retail/api/getUserTasks.ts +2 -42
- package/src/retail/api/getUserTasksCard.ts +6 -0
- package/src/retail/api/getUserTasksCredit.ts +8 -0
- package/src/retail/api/getUserTasksDebit.ts +6 -0
- package/src/retail/api/getUserTasksTypes.ts +42 -0
- package/src/retail/api/updateUserTask.ts +1 -1
- package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +6 -3
- package/src/retail/components/DraftDialog/DraftDialog.tsx +5 -3
- package/src/retail/components/DraftDialog/parseDraftTask.ts +5 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -1647,6 +1647,7 @@
|
|
|
1647
1647
|
}),
|
|
1648
1648
|
...getRkoTariffName(typeForm),
|
|
1649
1649
|
...staticBody,
|
|
1650
|
+
...getReferalRkoData(body, typeForm),
|
|
1650
1651
|
};
|
|
1651
1652
|
};
|
|
1652
1653
|
const getPhoneBody = (phone) => {
|
|
@@ -1682,6 +1683,19 @@
|
|
|
1682
1683
|
partnerComments: globalThis?.sessionStorage.getItem('rkoTariffName') ?? 'Неизвестный тариф',
|
|
1683
1684
|
}
|
|
1684
1685
|
: {};
|
|
1686
|
+
const getReferalRkoData = (body, typeForm) => {
|
|
1687
|
+
const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
|
|
1688
|
+
const partnerComments = params.get('utm_mail');
|
|
1689
|
+
const partner = params.get('utm_source');
|
|
1690
|
+
return typeForm === 'REF'
|
|
1691
|
+
? {
|
|
1692
|
+
name: body.fullName,
|
|
1693
|
+
fullName: undefined,
|
|
1694
|
+
partnerComments,
|
|
1695
|
+
partner,
|
|
1696
|
+
}
|
|
1697
|
+
: {};
|
|
1698
|
+
};
|
|
1685
1699
|
|
|
1686
1700
|
// eslint-disable-next-line max-lines-per-function
|
|
1687
1701
|
function LeadServiceAPI() {
|
|
@@ -2522,11 +2536,11 @@
|
|
|
2522
2536
|
});
|
|
2523
2537
|
const renderText$2 = (text, aboveText) => text || aboveText ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "font-light text-left text-xs", children: aboveText }) : null, jsx("div", { className: style('text-left', { 'text-s -mt-3xs': Boolean(aboveText) }), children: text })] })) : null;
|
|
2524
2538
|
|
|
2525
|
-
const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-l", font: "font-light", color: "text-secondary-text", children: [text ? jsx(Text, { children: text }) : null, link ? (jsx(Link, { ...link, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", children: link.text })) : null] })));
|
|
2539
|
+
const Footnote = JSX(({ text, link, additionalLink }) => (jsxs(Paragraph, { size: "text-l", font: "font-light", color: "text-secondary-text", children: [text ? jsx(Text, { children: text }) : null, link ? (jsx(Link, { ...link, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", children: link.text })) : null, additionalLink ? (jsxs(Text, { children: [' и ', jsx(Link, { ...additionalLink, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0440\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0430\u043A\u0446\u0438\u0438", children: additionalLink.text })] })) : null] })));
|
|
2526
2540
|
|
|
2527
2541
|
const agreementText = 'Нажимая кнопку, вы подтверждаете согласие с ';
|
|
2528
2542
|
const agreementTextPF = 'Нажимая на кнопку, вы подтверждаете, что клиент дал согласие на ';
|
|
2529
|
-
const renderAgreementSubmit = ({ consentDataProcessing, link, button, typeForm, }) => (jsxs("div", { className: "flex col-span-2 gap-xs flex-col w-full items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3 items-center", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: typeForm === 'PF' ? agreementTextPF : agreementText, link: link })), jsx(SubmitButton$1, { className: "w-full @xl:w-auto", children: button?.text ? button.text : 'Отправить заявку' })] }));
|
|
2543
|
+
const renderAgreementSubmit = ({ consentDataProcessing, link, additionalLink, button, typeForm, }) => (jsxs("div", { className: "flex col-span-2 gap-xs flex-col w-full items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3 items-center", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: typeForm === 'PF' ? agreementTextPF : agreementText, link: link, additionalLink: additionalLink })), jsx(SubmitButton$1, { className: "w-full @xl:w-auto", children: button?.text ? button.text : 'Отправить заявку' })] }));
|
|
2530
2544
|
|
|
2531
2545
|
const renderContacts = () => (jsxs("div", { className: "space-y-m", children: [jsx(Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "@xl:text-center" }), jsxs("div", { className: "flex sm:justify-center gap-xl", children: [jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", href: `tel:8 (800) 200-78-70`, "aria-label": "\u0442\u0435\u043B\u0435\u0444\u043E\u043D 8 (800) 200-78-70", children: [jsx(Img, { image: { icon: 'PhoneIcon' }, width: "24", height: "24" }), jsx("span", { children: "8 (800) 200-78-70" })] }), jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", "aria-label": "\u043F\u043E\u0447\u0442\u0430 ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(Img, { image: { icon: 'MailIcon' }, width: "24", height: "24" }), jsx("span", { children: "ved@rshb.ru" })] })] })] }));
|
|
2532
2546
|
|
|
@@ -3069,7 +3083,7 @@
|
|
|
3069
3083
|
};
|
|
3070
3084
|
|
|
3071
3085
|
const INN_DADATA_URL = 'suggest/party';
|
|
3072
|
-
const useDadataParty = async (searchQuery) => (await getDaDataHints({ url: INN_DADATA_URL, query: searchQuery }))
|
|
3086
|
+
const useDadataParty = async (searchQuery) => (await getDaDataHints({ url: INN_DADATA_URL, query: searchQuery }))?.map((_) => ({
|
|
3073
3087
|
fullName: _?.value,
|
|
3074
3088
|
address: _?.data?.address?.value,
|
|
3075
3089
|
inn: _?.data?.inn,
|
|
@@ -3817,7 +3831,7 @@
|
|
|
3817
3831
|
|
|
3818
3832
|
const renderTitle = (title) => title ? (jsx("div", { className: "@xl:text-center @xl:col-span-2 mb-m", children: jsx(Text, { size: "text-h6", children: title }) })) : null;
|
|
3819
3833
|
|
|
3820
|
-
const renderSections = (sections, field, { typeForm, additionalParams }) => sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid'), children: [renderTitle(_.title), (_?.inputs || [])?.map(getField(field, { typeForm, ...additionalParams }))] }, `section-${i}`)));
|
|
3834
|
+
const renderSections$1 = (sections, field, { typeForm, additionalParams }) => sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid'), children: [renderTitle(_.title), (_?.inputs || [])?.map(getField(field, { typeForm, ...additionalParams }))] }, `section-${i}`)));
|
|
3821
3835
|
|
|
3822
3836
|
const useInterval = (handler, period) => {
|
|
3823
3837
|
const timer = useRef(null);
|
|
@@ -3991,7 +4005,7 @@
|
|
|
3991
4005
|
};
|
|
3992
4006
|
const ApplicationForm = UniBlock(
|
|
3993
4007
|
// eslint-disable-next-line max-lines-per-function
|
|
3994
|
-
({ className, title, typeForm = '', sections = [], button, link, endpoint, additionalParams, withSnowplow, isContacts, data, onSuccess, ...rest }) => {
|
|
4008
|
+
({ className, title, typeForm = '', sections = [], button, link, additionalLink, endpoint, additionalParams, withSnowplow, isContacts, data, onSuccess, ...rest }) => {
|
|
3995
4009
|
const inputs = useMemo(() => (sections?.flatMap((_) => _?.inputs) || []), [sections]);
|
|
3996
4010
|
const initialFormState = useMemo(() => getInitialFormState$2(inputs, typeForm), [inputs, typeForm]);
|
|
3997
4011
|
const router = useRouter();
|
|
@@ -4023,9 +4037,10 @@
|
|
|
4023
4037
|
});
|
|
4024
4038
|
const fieldName = getConsentDataProcessing(inputs)?.name;
|
|
4025
4039
|
const consentDataProcessing = fieldName ? field('consentDataProcessing') : undefined;
|
|
4026
|
-
return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [jsxs("form", { onSubmit: onSubmit, children: [renderSections(sections, field, { typeForm, additionalParams }), renderAgreementSubmit({
|
|
4040
|
+
return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [jsxs("form", { onSubmit: onSubmit, children: [renderSections$1(sections, field, { typeForm, additionalParams }), renderAgreementSubmit({
|
|
4027
4041
|
consentDataProcessing,
|
|
4028
4042
|
link,
|
|
4043
|
+
additionalLink,
|
|
4029
4044
|
button,
|
|
4030
4045
|
typeForm,
|
|
4031
4046
|
})] }), isContacts ? renderContacts() : null] }));
|
|
@@ -6845,7 +6860,7 @@
|
|
|
6845
6860
|
return res || {};
|
|
6846
6861
|
};
|
|
6847
6862
|
|
|
6848
|
-
const createParticipant = (body) => fetchRetailJSON('/public-data/createParticipant', 'POST', body).then((res) => res
|
|
6863
|
+
const createParticipant = (body) => fetchRetailJSON('/public-data/createParticipant', 'POST', body).then((res) => res || null);
|
|
6849
6864
|
|
|
6850
6865
|
const createUserProfile = (body) => fetchRetailJSON('/public-data/createUserProfile', 'POST', body).then((res) => res?.profile?.id || null);
|
|
6851
6866
|
|
|
@@ -7153,10 +7168,11 @@
|
|
|
7153
7168
|
}
|
|
7154
7169
|
};
|
|
7155
7170
|
return {
|
|
7156
|
-
open: ({ phone, profileId, onFail, taskId, participantId }) => open({
|
|
7171
|
+
open: ({ phone, profileId, userId, onFail, taskId, participantId }) => open({
|
|
7157
7172
|
onSubmit: handleSubmitBkiConsent({
|
|
7158
7173
|
phone,
|
|
7159
7174
|
profileId,
|
|
7175
|
+
userId,
|
|
7160
7176
|
onFail,
|
|
7161
7177
|
taskId,
|
|
7162
7178
|
participantId,
|
|
@@ -7380,7 +7396,10 @@
|
|
|
7380
7396
|
};
|
|
7381
7397
|
|
|
7382
7398
|
const parseDraftTask = (task) => {
|
|
7383
|
-
const participant = task.participants[0];
|
|
7399
|
+
const participant = task.participant || task.participants?.[0];
|
|
7400
|
+
if (!participant) {
|
|
7401
|
+
throw new Error('Task does not contain participant data');
|
|
7402
|
+
}
|
|
7384
7403
|
const { classCard: cardCategory, codeWord, paymentSystemTypeCd: paymentSystem, currencyCode: currency, } = task;
|
|
7385
7404
|
const { loanAmount: moneyValue, creditPeriod: monthsValue, paymentTypeCd } = task;
|
|
7386
7405
|
const { birthDate: limitedBirthday, midname: middleName, name, surname, birthPlace, dulIssueDate: dulIssueDate, dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, educationLevelCd: education, registrationDate: participantDateRegistration, houseTypeCd: housing, genderCd, participantContacts = [], participantAddresses = [], employmentContractDate: beginDate, employmentTypeCd: employment, organizationName, organizationInn: inn, organizationActivityTypeCd: employerActivities, organizationTypeCd: organization, organizationKindCd: employerOrganization, employeesNumberCd: amountWorkers, opf: legalForm, seniority: generalSeniority, generalSeniority: experience5Years, jobsNumber, lastWorkDuration: lastJobExperience, positionCd: positionOrganization, maritalStatusCd: familyStatus, childrenDependents: children, totalDependents: familyMembers, otherDependents: dependents, militaryStatusCd: conscription, participantIncomes, snils, armyIdFlg, bankruptcyFlg, shareholderFlg, nameLegalEntity: legalEntityName, creditInRshbCd, payrollCardRshbFlg: isInsurance, consentInsuranceFlg: isSalaryClient, } = participant;
|
|
@@ -7445,16 +7464,18 @@
|
|
|
7445
7464
|
const DraftDialog = JSX(function ({ task, isFromLead = false, isDebit = false, sendAspects = noop, onClose = noop, }) {
|
|
7446
7465
|
const retailFormStore = useRetailFormStore();
|
|
7447
7466
|
const navigator = locationNavigator();
|
|
7448
|
-
const { participants, creditProgram, createdDate = '', id: taskId } = task;
|
|
7467
|
+
const { participants, participant, creditProgram, createdDate = '', id: taskId } = task;
|
|
7449
7468
|
const programmId = creditProgramCodeToProductIdMap[creditProgram.code];
|
|
7450
7469
|
const isCredit = Boolean(creditCodesToProgrammIdMap[creditProgram.code]);
|
|
7451
7470
|
const productData = getProductData(isDebit, isCredit);
|
|
7452
|
-
const
|
|
7471
|
+
const currentParticipant = participant || participants?.[0];
|
|
7472
|
+
const { id: participantId, profile } = currentParticipant || {};
|
|
7453
7473
|
const handleGoToDraft = useCallback(() => {
|
|
7454
7474
|
const taskFromDraft = parseDraftTask(task);
|
|
7455
7475
|
retailFormStore.participantId = participantId ?? null;
|
|
7456
7476
|
retailFormStore.taskId = taskId;
|
|
7457
7477
|
retailFormStore.profileId = profile?.id ?? null;
|
|
7478
|
+
retailFormStore.userId = profile?.id ?? null;
|
|
7458
7479
|
retailFormStore.programId = programmId;
|
|
7459
7480
|
retailFormStore.leadForm = taskFromDraft;
|
|
7460
7481
|
if (profile?.id) {
|
|
@@ -7600,10 +7621,11 @@
|
|
|
7600
7621
|
|
|
7601
7622
|
const useSaveUserData = () => {
|
|
7602
7623
|
const leadFormStore = useLeadFormStore();
|
|
7603
|
-
return useCallback(({ participantId, taskId, profileId, programId: programNumber, formData }) => {
|
|
7624
|
+
return useCallback(({ participantId, taskId, userId, profileId, programId: programNumber, formData, }) => {
|
|
7604
7625
|
leadFormStore.participantId = participantId;
|
|
7605
7626
|
leadFormStore.taskId = taskId;
|
|
7606
7627
|
leadFormStore.profileId = profileId;
|
|
7628
|
+
leadFormStore.userId = userId;
|
|
7607
7629
|
leadFormStore.programId = programNumber;
|
|
7608
7630
|
leadFormStore.leadForm = formData;
|
|
7609
7631
|
}, []);
|
|
@@ -7719,42 +7741,43 @@
|
|
|
7719
7741
|
try {
|
|
7720
7742
|
startSending();
|
|
7721
7743
|
const transformedFormData = transformFormData(formData);
|
|
7722
|
-
const
|
|
7744
|
+
const participantData = await createParticipant({
|
|
7723
7745
|
phone: formatPhone(transformedFormData.phone),
|
|
7724
7746
|
email: transformedFormData.email,
|
|
7725
7747
|
});
|
|
7726
7748
|
const referalData = leadFormStore.referalData;
|
|
7727
7749
|
const marketingInfo = sessionStore.marketingInfo;
|
|
7750
|
+
if (!participantData) {
|
|
7751
|
+
throw new Error();
|
|
7752
|
+
}
|
|
7753
|
+
const { participantId, userId } = participantData;
|
|
7728
7754
|
if (!participantId) {
|
|
7729
7755
|
throw new Error();
|
|
7730
7756
|
}
|
|
7731
|
-
const sendCurrentTask =
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
handleFailSendForm();
|
|
7756
|
-
}
|
|
7757
|
-
};
|
|
7757
|
+
const sendCurrentTask = createSendCurrentTaskNew({
|
|
7758
|
+
programId,
|
|
7759
|
+
participantId,
|
|
7760
|
+
userId,
|
|
7761
|
+
formData: transformedFormData,
|
|
7762
|
+
referalData,
|
|
7763
|
+
productType,
|
|
7764
|
+
marketingInfo,
|
|
7765
|
+
saveUserData,
|
|
7766
|
+
sendAspects,
|
|
7767
|
+
verifyPhoneDialog,
|
|
7768
|
+
consentBkiDialog,
|
|
7769
|
+
handleFailSendForm,
|
|
7770
|
+
});
|
|
7771
|
+
const handleSuccessVerify = createHandleSuccessVerifyNew({
|
|
7772
|
+
userId,
|
|
7773
|
+
programId,
|
|
7774
|
+
productType,
|
|
7775
|
+
verifyPhoneDialog,
|
|
7776
|
+
draftDialog,
|
|
7777
|
+
sendAspects,
|
|
7778
|
+
sendCurrentTask,
|
|
7779
|
+
handleFailSendForm,
|
|
7780
|
+
});
|
|
7758
7781
|
const acceptedConsents = getAcceptedConsents(transformedFormData, productType);
|
|
7759
7782
|
verifyPhoneDialog.open({
|
|
7760
7783
|
phone: transformedFormData.phone,
|
|
@@ -7775,6 +7798,54 @@
|
|
|
7775
7798
|
handleSubmit: isNewMicroservice ? handleSubmitNewMicroservice : handleSubmitOldMicroservice,
|
|
7776
7799
|
};
|
|
7777
7800
|
};
|
|
7801
|
+
const createSendCurrentTaskNew = ({ programId, participantId, userId, formData, referalData, productType, marketingInfo, saveUserData, sendAspects, verifyPhoneDialog, consentBkiDialog, handleFailSendForm, }) => async () => {
|
|
7802
|
+
const taskId = await updateUserDataNewMicroservice({
|
|
7803
|
+
programId,
|
|
7804
|
+
participantId,
|
|
7805
|
+
userId,
|
|
7806
|
+
formData,
|
|
7807
|
+
referalData,
|
|
7808
|
+
productType,
|
|
7809
|
+
marketingInfo,
|
|
7810
|
+
saveUserData,
|
|
7811
|
+
sendAspects,
|
|
7812
|
+
});
|
|
7813
|
+
verifyPhoneDialog.close();
|
|
7814
|
+
consentBkiDialog.open({
|
|
7815
|
+
phone: formData.phone,
|
|
7816
|
+
taskId,
|
|
7817
|
+
userId,
|
|
7818
|
+
participantId,
|
|
7819
|
+
onFail: handleFailSendForm,
|
|
7820
|
+
});
|
|
7821
|
+
};
|
|
7822
|
+
const createHandleSuccessVerifyNew = ({ userId, programId, productType, verifyPhoneDialog, draftDialog, sendAspects, sendCurrentTask, handleFailSendForm, }) => async () => {
|
|
7823
|
+
try {
|
|
7824
|
+
const lastTaskId = await getLastTaskStatus({
|
|
7825
|
+
userId,
|
|
7826
|
+
profileId: userId,
|
|
7827
|
+
programId,
|
|
7828
|
+
});
|
|
7829
|
+
if (lastTaskId) {
|
|
7830
|
+
const task = await getTaskById({ taskId: lastTaskId });
|
|
7831
|
+
if (task) {
|
|
7832
|
+
verifyPhoneDialog.close();
|
|
7833
|
+
draftDialog.open({
|
|
7834
|
+
task,
|
|
7835
|
+
isFromLead: true,
|
|
7836
|
+
isDebit: productType === 'debitCard',
|
|
7837
|
+
sendAspects,
|
|
7838
|
+
onClose: sendCurrentTask,
|
|
7839
|
+
});
|
|
7840
|
+
return;
|
|
7841
|
+
}
|
|
7842
|
+
}
|
|
7843
|
+
await sendCurrentTask();
|
|
7844
|
+
}
|
|
7845
|
+
catch {
|
|
7846
|
+
handleFailSendForm();
|
|
7847
|
+
}
|
|
7848
|
+
};
|
|
7778
7849
|
const getAcceptedConsents = (formData, productType) => {
|
|
7779
7850
|
const consents = productTypeToConsentsMap[productType];
|
|
7780
7851
|
return Object.keys(consents)
|
|
@@ -7826,7 +7897,7 @@
|
|
|
7826
7897
|
console.log(ex);
|
|
7827
7898
|
}
|
|
7828
7899
|
};
|
|
7829
|
-
const updateUserDataNewMicroservice = async ({ programId, participantId, formData, referalData, productType, marketingInfo, saveUserData, sendAspects, }) => {
|
|
7900
|
+
const updateUserDataNewMicroservice = async ({ programId, userId, participantId, formData, referalData, productType, marketingInfo, saveUserData, sendAspects, }) => {
|
|
7830
7901
|
let taskId;
|
|
7831
7902
|
const transformedConsents = transformConsentsFields(formData, productType);
|
|
7832
7903
|
try {
|
|
@@ -7848,8 +7919,8 @@
|
|
|
7848
7919
|
...referalData,
|
|
7849
7920
|
});
|
|
7850
7921
|
}
|
|
7851
|
-
sendAspects(participantId, taskId);
|
|
7852
|
-
saveUserData({ participantId, taskId, programId, formData });
|
|
7922
|
+
sendAspects(userId || participantId, taskId);
|
|
7923
|
+
saveUserData({ participantId, taskId, userId, programId, formData });
|
|
7853
7924
|
return taskId;
|
|
7854
7925
|
}
|
|
7855
7926
|
catch (ex) {
|
|
@@ -12540,8 +12611,8 @@
|
|
|
12540
12611
|
return (jsxs("tr", { className: "pb-2xs text-h6", children: [jsx("td", { className: "pt-m m-auto flex text-left", children: jsxs("div", { className: "flex items-center gap-xs", children: [currency ? (jsx(Img, { image: { icon: CURRENCY_ICONS_MAP[currency] }, width: "24", height: "24" })) : null, jsx(Text, { size: "text-h6", children: currency })] }) }), jsx("td", { className: "pt-m pl-5xl text-center", children: jsx(Text, { size: "text-h6", children: formatCurrency(exchangeCurrencyItem?.saleExchangeRate) }) }), jsx("td", { className: "pt-m pl-5xl text-right", children: jsx(Text, { size: "text-h6", children: formatCurrency(exchangeCurrencyItem?.buyExchangeRate) }) })] }, currency));
|
|
12541
12612
|
};
|
|
12542
12613
|
|
|
12543
|
-
const icon = { icon: 'GpsIcon' };
|
|
12544
|
-
const CurrentLocation = JSX(({ className = '', address }) => (jsxs("div", { className: style('flex gap-s w-full justify-between @sm:justify-center', className), children: [jsx(RoundedIcon, { ...icon, iconBgVersion: "primary", className: "shrink-0" }), jsxs("div", { className: "space-y-2xs whitespace-pre-wrap", children: [address ? (jsx(Paragraph, { size: "text-l", color: "text-primary-main", children: address })) : null, jsx(Paragraph, { size: "text-m", color: "text-secondary-text", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
|
|
12614
|
+
const icon$1 = { icon: 'GpsIcon' };
|
|
12615
|
+
const CurrentLocation = JSX(({ className = '', address }) => (jsxs("div", { className: style('flex gap-s w-full justify-between @sm:justify-center', className), children: [jsx(RoundedIcon, { ...icon$1, iconBgVersion: "primary", className: "shrink-0" }), jsxs("div", { className: "space-y-2xs whitespace-pre-wrap", children: [address ? (jsx(Paragraph, { size: "text-l", color: "text-primary-main", children: address })) : null, jsx(Paragraph, { size: "text-m", color: "text-secondary-text", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
|
|
12545
12616
|
|
|
12546
12617
|
const roundTo = (value, precision = 2) => {
|
|
12547
12618
|
const factor = 10 ** precision;
|
|
@@ -13950,6 +14021,66 @@
|
|
|
13950
14021
|
return (jsxs(BlockWrapper, { className: style('p-6xl space-y-xl', className), defaultPadding: "p-0", ...rest, children: [jsx(Heading, { className: "mb-xl", children: title }), isArchive ? renderDataPickForm() : null, ratesList.map((list, i) => (jsx(RatesTableItem, { list: list, isRatesValid: isRatesValid, isArchive: isArchive, infoMessage: infoMessage }, String(i)))), href ? renderLink(href) : null] }));
|
|
13951
14022
|
});
|
|
13952
14023
|
|
|
14024
|
+
const sections = [
|
|
14025
|
+
{ title: 'Заполните ваши данные и получите персональную ссылку', inputs: [] },
|
|
14026
|
+
{
|
|
14027
|
+
columns: 2,
|
|
14028
|
+
inputs: [
|
|
14029
|
+
{
|
|
14030
|
+
name: 'dadataPartyInnSelect',
|
|
14031
|
+
required: true,
|
|
14032
|
+
},
|
|
14033
|
+
{
|
|
14034
|
+
name: 'email',
|
|
14035
|
+
required: true,
|
|
14036
|
+
},
|
|
14037
|
+
],
|
|
14038
|
+
},
|
|
14039
|
+
];
|
|
14040
|
+
|
|
14041
|
+
const renderSections = (sections, field) => sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid'), children: [renderTitle(_.title), (_?.inputs || [])?.map(getField(field))] }, `section-${i}`)));
|
|
14042
|
+
|
|
14043
|
+
const icon = {
|
|
14044
|
+
src: 'CopyIcon.svg',
|
|
14045
|
+
iconVersion: 'normal',
|
|
14046
|
+
size: { width: 20 },
|
|
14047
|
+
};
|
|
14048
|
+
const renderLinkInput = JSX(({ className, value = '' }) => {
|
|
14049
|
+
const onClick = useCallback(async () => {
|
|
14050
|
+
try {
|
|
14051
|
+
await globalThis.navigator.clipboard.writeText(value);
|
|
14052
|
+
}
|
|
14053
|
+
catch {
|
|
14054
|
+
console.log('Ошибка копирования');
|
|
14055
|
+
}
|
|
14056
|
+
}, []);
|
|
14057
|
+
return (jsxs("div", { className: style('relative flex items-center max-w-lg m-auto', className), children: [jsx("input", { className: style('h-14 border-gray text-ellipsis pr-5xl', defaultStyle$1), type: "text", value: value, disabled: true }), jsx("div", { role: "button", className: "absolute right-3", onClick: onClick, children: jsx(Img, { image: icon }) })] }));
|
|
14058
|
+
});
|
|
14059
|
+
|
|
14060
|
+
const ResultLink = JSX(({ link }) => {
|
|
14061
|
+
return (jsxs("div", { children: [jsx("div", { className: "@xl:text-center @xl:col-span-2 mb-m", children: jsx(Text, { size: "text-h6", children: "\u0421\u043A\u043E\u043F\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u0441\u044B\u043B\u043A\u0443 \u0438 \u043E\u0442\u043F\u0440\u0430\u0432\u044C\u0442\u0435 \u0434\u0440\u0443\u0433\u0443" }) }), renderLinkInput({
|
|
14062
|
+
value: link,
|
|
14063
|
+
})] }));
|
|
14064
|
+
});
|
|
14065
|
+
|
|
14066
|
+
const ReferalForm = UniBlock(({ link = '', button, ...rest }) => {
|
|
14067
|
+
const [isShowResultLink, setIsShowResultLink] = useState(false);
|
|
14068
|
+
const [referalLink, setReferalLink] = useState('');
|
|
14069
|
+
const inputs = useMemo(() => (sections?.flatMap((_) => _?.inputs) || []), [sections]);
|
|
14070
|
+
const formValidator = useMemo(() => getFormValidator(inputs), [inputs]);
|
|
14071
|
+
const handleSubmit = useCallback(async (formData) => {
|
|
14072
|
+
setReferalLink(`${link}?utm_source=${formData.dadataPartyInnSelect?.text}&utm_mail=${formData.email}`);
|
|
14073
|
+
setIsShowResultLink(true);
|
|
14074
|
+
}, []);
|
|
14075
|
+
const [, { field, onSubmit }] = useForm({}, {
|
|
14076
|
+
resetOnSubmit: true,
|
|
14077
|
+
formValidator,
|
|
14078
|
+
onSubmit: handleSubmit,
|
|
14079
|
+
});
|
|
14080
|
+
return (jsx(ApplicationFormLayout, { className: "container space-y-m col-span-12", title: getTitle(isShowResultLink), ...rest, children: isShowResultLink ? (jsx(ResultLink, { link: referalLink })) : (jsxs("form", { onSubmit: onSubmit, children: [renderSections(sections, field), jsxs(Paragraph, { size: "text-l", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: "\u041D\u0430\u0436\u0438\u043C\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0443, \u0432\u044B \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u0441 " }), jsx(Link, { href: "/privacy-policy", target: "_blank", ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", children: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F\u043C\u0438 \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(SubmitButton$1, { className: "w-full @xl:w-auto", children: button?.text ?? 'Получить ссылку' })] })) }));
|
|
14081
|
+
});
|
|
14082
|
+
const getTitle = (isShowResultLink = false) => isShowResultLink ? 'Ваша личная ссылка' : 'Как получить бесплатное обслуживание счёта';
|
|
14083
|
+
|
|
13953
14084
|
const RichTextBlock = UniBlock((props) => {
|
|
13954
14085
|
const { __html, dynamicQueryParamText = {}, dynamicTextSource, richVersion = '', ...rest } = props;
|
|
13955
14086
|
const formatText = getFormatDynamicText(dynamicQueryParamText, dynamicTextSource?.list, __html);
|
|
@@ -14345,6 +14476,7 @@
|
|
|
14345
14476
|
CalculatorRko,
|
|
14346
14477
|
RkoTariffCardsTable,
|
|
14347
14478
|
RatesTable,
|
|
14479
|
+
ReferalForm,
|
|
14348
14480
|
};
|
|
14349
14481
|
|
|
14350
14482
|
const applyAspects = (aspects) => (ev) => {
|
|
@@ -14489,7 +14621,7 @@
|
|
|
14489
14621
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14490
14622
|
});
|
|
14491
14623
|
|
|
14492
|
-
const packageVersion = "0.14.
|
|
14624
|
+
const packageVersion = "0.14.1029";
|
|
14493
14625
|
|
|
14494
14626
|
exports.Blocks = Blocks;
|
|
14495
14627
|
exports.ContentPage = ContentPage;
|