@redneckz/wildless-cms-uni-blocks 0.14.1077 → 0.14.1078
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 +462 -249
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
- package/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
- package/bundle/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
- package/bundle/components/CreditForm/creditFormAspects.d.ts +2 -0
- package/bundle/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
- package/bundle/components/DebitForm/debitFormAspects.d.ts +2 -0
- package/bundle/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
- package/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
- package/bundle/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
- package/bundle/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
- package/bundle/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
- package/bundle/retail/utils/commonAspects.d.ts +2 -0
- package/bundle/retail/utils/formAspectsConfig.d.ts +6 -0
- package/bundle/retail/utils/yandexMetrika.d.ts +1 -0
- package/bundle/utils/getStepAspects.d.ts +11 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js +7 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +83 -40
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardFormStep.js +5 -2
- package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/dist/components/CreditCardForm/FailedStatusContent.js +15 -1
- package/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -1
- package/dist/components/CreditCardForm/PendingStatusContent.js +21 -1
- package/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/dist/components/CreditCardForm/ReworkStatusContent.js +12 -0
- package/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
- package/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -2
- package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/CreditCardForm/SuccessStatusCardContent.js +12 -0
- package/dist/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -1
- package/dist/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
- package/dist/components/CreditCardForm/creditCardFormAspects.js +10 -0
- package/dist/components/CreditCardForm/creditCardFormAspects.js.map +1 -0
- package/dist/components/CreditForm/FailedStatusContent.js +15 -1
- package/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
- package/dist/components/CreditForm/PendingStatusContent.js +21 -1
- package/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/dist/components/CreditForm/ReworkStatusContent.js +12 -0
- package/dist/components/CreditForm/ReworkStatusContent.js.map +1 -1
- package/dist/components/CreditForm/StepsNavigationButtons.js +4 -92
- package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/CreditForm/SuccessStatusContent.js +12 -0
- package/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/dist/components/CreditForm/creditFormAspects.d.ts +2 -0
- package/dist/components/CreditForm/creditFormAspects.js +35 -0
- package/dist/components/CreditForm/creditFormAspects.js.map +1 -0
- package/dist/components/DebitForm/DebitFormStep.js +5 -2
- package/dist/components/DebitForm/DebitFormStep.js.map +1 -1
- package/dist/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
- package/dist/components/DebitForm/StepsNavigationButtons.js +11 -2
- package/dist/components/DebitForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/DebitForm/debitFormAspects.d.ts +2 -0
- package/dist/components/DebitForm/debitFormAspects.js +8 -0
- package/dist/components/DebitForm/debitFormAspects.js.map +1 -0
- package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
- package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +13 -2
- package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +64 -47
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
- package/dist/retail/components/DraftDialog/DraftActionButton.js +2 -1
- package/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +14 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
- package/dist/retail/components/DraftDialog/DraftDialogContent.js +2 -2
- package/dist/retail/components/DraftDialog/DraftDialogContent.js.map +1 -1
- package/dist/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
- package/dist/retail/utils/commonAspects.d.ts +2 -0
- package/dist/retail/utils/commonAspects.js +64 -0
- package/dist/retail/utils/commonAspects.js.map +1 -0
- package/dist/retail/utils/formAspectsConfig.d.ts +6 -0
- package/dist/retail/utils/formAspectsConfig.js +2 -0
- package/dist/retail/utils/formAspectsConfig.js.map +1 -0
- package/dist/retail/utils/yandexMetrika.d.ts +1 -0
- package/dist/retail/utils/yandexMetrika.js +5 -0
- package/dist/retail/utils/yandexMetrika.js.map +1 -0
- package/dist/utils/getStepAspects.d.ts +11 -0
- package/dist/utils/getStepAspects.js +50 -0
- package/dist/utils/getStepAspects.js.map +1 -0
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js +7 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +83 -40
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStep.js +5 -2
- package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/lib/components/CreditCardForm/FailedStatusContent.js +15 -1
- package/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -1
- package/lib/components/CreditCardForm/PendingStatusContent.js +21 -1
- package/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/lib/components/CreditCardForm/ReworkStatusContent.js +12 -0
- package/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
- package/lib/components/CreditCardForm/StepsNavigationButtons.js +11 -2
- package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/CreditCardForm/SuccessStatusCardContent.js +12 -0
- package/lib/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -1
- package/lib/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
- package/lib/components/CreditCardForm/creditCardFormAspects.js +8 -0
- package/lib/components/CreditCardForm/creditCardFormAspects.js.map +1 -0
- package/lib/components/CreditForm/FailedStatusContent.js +15 -1
- package/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
- package/lib/components/CreditForm/PendingStatusContent.js +21 -1
- package/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/lib/components/CreditForm/ReworkStatusContent.js +12 -0
- package/lib/components/CreditForm/ReworkStatusContent.js.map +1 -1
- package/lib/components/CreditForm/StepsNavigationButtons.js +4 -92
- package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/CreditForm/SuccessStatusContent.js +12 -0
- package/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/lib/components/CreditForm/creditFormAspects.d.ts +2 -0
- package/lib/components/CreditForm/creditFormAspects.js +33 -0
- package/lib/components/CreditForm/creditFormAspects.js.map +1 -0
- package/lib/components/DebitForm/DebitFormStep.js +5 -2
- package/lib/components/DebitForm/DebitFormStep.js.map +1 -1
- package/lib/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
- package/lib/components/DebitForm/StepsNavigationButtons.js +11 -2
- package/lib/components/DebitForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/DebitForm/debitFormAspects.d.ts +2 -0
- package/lib/components/DebitForm/debitFormAspects.js +6 -0
- package/lib/components/DebitForm/debitFormAspects.js.map +1 -0
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
- package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +13 -2
- package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +64 -47
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
- package/lib/retail/components/DraftDialog/DraftActionButton.js +2 -1
- package/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +14 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
- package/lib/retail/components/DraftDialog/DraftDialogContent.js +2 -2
- package/lib/retail/components/DraftDialog/DraftDialogContent.js.map +1 -1
- package/lib/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
- package/lib/retail/utils/commonAspects.d.ts +2 -0
- package/lib/retail/utils/commonAspects.js +61 -0
- package/lib/retail/utils/commonAspects.js.map +1 -0
- package/lib/retail/utils/formAspectsConfig.d.ts +6 -0
- package/lib/retail/utils/formAspectsConfig.js +2 -0
- package/lib/retail/utils/formAspectsConfig.js.map +1 -0
- package/lib/retail/utils/yandexMetrika.d.ts +1 -0
- package/lib/retail/utils/yandexMetrika.js +3 -0
- package/lib/retail/utils/yandexMetrika.js.map +1 -0
- package/lib/utils/getStepAspects.d.ts +11 -0
- package/lib/utils/getStepAspects.js +47 -0
- package/lib/utils/getStepAspects.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +462 -249
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
- package/mobile/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
- package/mobile/bundle/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
- package/mobile/bundle/components/CreditForm/creditFormAspects.d.ts +2 -0
- package/mobile/bundle/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
- package/mobile/bundle/components/DebitForm/debitFormAspects.d.ts +2 -0
- package/mobile/bundle/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
- package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
- package/mobile/bundle/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
- package/mobile/bundle/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
- package/mobile/bundle/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
- package/mobile/bundle/retail/utils/commonAspects.d.ts +2 -0
- package/mobile/bundle/retail/utils/formAspectsConfig.d.ts +6 -0
- package/mobile/bundle/retail/utils/yandexMetrika.d.ts +1 -0
- package/mobile/bundle/utils/getStepAspects.d.ts +11 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +7 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +83 -40
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +5 -2
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/FailedStatusContent.js +15 -1
- package/mobile/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.js +21 -1
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js +12 -0
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -2
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.js +12 -0
- package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
- package/mobile/dist/components/CreditCardForm/creditCardFormAspects.js +10 -0
- package/mobile/dist/components/CreditCardForm/creditCardFormAspects.js.map +1 -0
- package/mobile/dist/components/CreditForm/FailedStatusContent.js +15 -1
- package/mobile/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/PendingStatusContent.js +21 -1
- package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/ReworkStatusContent.js +12 -0
- package/mobile/dist/components/CreditForm/ReworkStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +4 -92
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js +12 -0
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormAspects.d.ts +2 -0
- package/mobile/dist/components/CreditForm/creditFormAspects.js +35 -0
- package/mobile/dist/components/CreditForm/creditFormAspects.js.map +1 -0
- package/mobile/dist/components/DebitForm/DebitFormStep.js +5 -2
- package/mobile/dist/components/DebitForm/DebitFormStep.js.map +1 -1
- package/mobile/dist/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
- package/mobile/dist/components/DebitForm/StepsNavigationButtons.js +11 -2
- package/mobile/dist/components/DebitForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/DebitForm/debitFormAspects.d.ts +2 -0
- package/mobile/dist/components/DebitForm/debitFormAspects.js +8 -0
- package/mobile/dist/components/DebitForm/debitFormAspects.js.map +1 -0
- package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
- package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +13 -2
- package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +64 -47
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
- package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js +2 -1
- package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +14 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
- package/mobile/dist/retail/components/DraftDialog/DraftDialogContent.js +2 -2
- package/mobile/dist/retail/components/DraftDialog/DraftDialogContent.js.map +1 -1
- package/mobile/dist/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
- package/mobile/dist/retail/utils/commonAspects.d.ts +2 -0
- package/mobile/dist/retail/utils/commonAspects.js +64 -0
- package/mobile/dist/retail/utils/commonAspects.js.map +1 -0
- package/mobile/dist/retail/utils/formAspectsConfig.d.ts +6 -0
- package/mobile/dist/retail/utils/formAspectsConfig.js +2 -0
- package/mobile/dist/retail/utils/formAspectsConfig.js.map +1 -0
- package/mobile/dist/retail/utils/yandexMetrika.d.ts +1 -0
- package/mobile/dist/retail/utils/yandexMetrika.js +5 -0
- package/mobile/dist/retail/utils/yandexMetrika.js.map +1 -0
- package/mobile/dist/utils/getStepAspects.d.ts +11 -0
- package/mobile/dist/utils/getStepAspects.js +50 -0
- package/mobile/dist/utils/getStepAspects.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +7 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +83 -40
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +5 -2
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/FailedStatusContent.js +15 -1
- package/mobile/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.js +21 -1
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js +12 -0
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +11 -2
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.js +12 -0
- package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
- package/mobile/lib/components/CreditCardForm/creditCardFormAspects.js +8 -0
- package/mobile/lib/components/CreditCardForm/creditCardFormAspects.js.map +1 -0
- package/mobile/lib/components/CreditForm/FailedStatusContent.js +15 -1
- package/mobile/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/PendingStatusContent.js +21 -1
- package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/ReworkStatusContent.js +12 -0
- package/mobile/lib/components/CreditForm/ReworkStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +4 -92
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js +12 -0
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormAspects.d.ts +2 -0
- package/mobile/lib/components/CreditForm/creditFormAspects.js +33 -0
- package/mobile/lib/components/CreditForm/creditFormAspects.js.map +1 -0
- package/mobile/lib/components/DebitForm/DebitFormStep.js +5 -2
- package/mobile/lib/components/DebitForm/DebitFormStep.js.map +1 -1
- package/mobile/lib/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
- package/mobile/lib/components/DebitForm/StepsNavigationButtons.js +11 -2
- package/mobile/lib/components/DebitForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/DebitForm/debitFormAspects.d.ts +2 -0
- package/mobile/lib/components/DebitForm/debitFormAspects.js +6 -0
- package/mobile/lib/components/DebitForm/debitFormAspects.js.map +1 -0
- package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
- package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +13 -2
- package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +64 -47
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
- package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js +2 -1
- package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +14 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
- package/mobile/lib/retail/components/DraftDialog/DraftDialogContent.js +2 -2
- package/mobile/lib/retail/components/DraftDialog/DraftDialogContent.js.map +1 -1
- package/mobile/lib/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
- package/mobile/lib/retail/utils/commonAspects.d.ts +2 -0
- package/mobile/lib/retail/utils/commonAspects.js +61 -0
- package/mobile/lib/retail/utils/commonAspects.js.map +1 -0
- package/mobile/lib/retail/utils/formAspectsConfig.d.ts +6 -0
- package/mobile/lib/retail/utils/formAspectsConfig.js +2 -0
- package/mobile/lib/retail/utils/formAspectsConfig.js.map +1 -0
- package/mobile/lib/retail/utils/yandexMetrika.d.ts +1 -0
- package/mobile/lib/retail/utils/yandexMetrika.js +3 -0
- package/mobile/lib/retail/utils/yandexMetrika.js.map +1 -0
- package/mobile/lib/utils/getStepAspects.d.ts +11 -0
- package/mobile/lib/utils/getStepAspects.js +47 -0
- package/mobile/lib/utils/getStepAspects.js.map +1 -0
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
- package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +20 -5
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +98 -38
- package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +13 -2
- package/mobile/src/components/CreditCardForm/FailedStatusContent.tsx +24 -7
- package/mobile/src/components/CreditCardForm/PendingStatusContent.tsx +24 -1
- package/mobile/src/components/CreditCardForm/ReworkStatusContent.tsx +14 -0
- package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +15 -2
- package/mobile/src/components/CreditCardForm/SuccessStatusCardContent.tsx +14 -0
- package/mobile/src/components/CreditCardForm/creditCardFormAspects.ts +9 -0
- package/mobile/src/components/CreditForm/FailedStatusContent.tsx +24 -7
- package/mobile/src/components/CreditForm/PendingStatusContent.tsx +26 -1
- package/mobile/src/components/CreditForm/ReworkStatusContent.tsx +15 -0
- package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +5 -95
- package/mobile/src/components/CreditForm/SuccessStatusContent.tsx +15 -0
- package/mobile/src/components/CreditForm/creditFormAspects.ts +35 -0
- package/mobile/src/components/DebitForm/DebitFormStep.tsx +13 -2
- package/mobile/src/components/DebitForm/StepsNavigationButtons.tsx +15 -2
- package/mobile/src/components/DebitForm/debitFormAspects.ts +7 -0
- package/mobile/src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx +16 -2
- package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +93 -51
- package/mobile/src/retail/components/DraftDialog/DraftActionButton.tsx +6 -1
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +15 -0
- package/mobile/src/retail/components/DraftDialog/DraftDialogContent.tsx +7 -0
- package/mobile/src/retail/model/ApplicationLeadFormTypes.ts +12 -0
- package/mobile/src/retail/utils/commonAspects.ts +64 -0
- package/mobile/src/retail/utils/formAspectsConfig.ts +6 -0
- package/mobile/src/retail/utils/yandexMetrika.ts +3 -0
- package/mobile/src/utils/getStepAspects.ts +71 -0
- package/package.json +2 -2
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
- package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +20 -5
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +98 -38
- package/src/components/CreditCardForm/CreditCardFormStep.tsx +13 -2
- package/src/components/CreditCardForm/FailedStatusContent.tsx +24 -7
- package/src/components/CreditCardForm/PendingStatusContent.tsx +24 -1
- package/src/components/CreditCardForm/ReworkStatusContent.tsx +14 -0
- package/src/components/CreditCardForm/StepsNavigationButtons.tsx +15 -2
- package/src/components/CreditCardForm/SuccessStatusCardContent.tsx +14 -0
- package/src/components/CreditCardForm/creditCardFormAspects.ts +9 -0
- package/src/components/CreditForm/FailedStatusContent.tsx +24 -7
- package/src/components/CreditForm/PendingStatusContent.tsx +26 -1
- package/src/components/CreditForm/ReworkStatusContent.tsx +15 -0
- package/src/components/CreditForm/StepsNavigationButtons.tsx +5 -95
- package/src/components/CreditForm/SuccessStatusContent.tsx +15 -0
- package/src/components/CreditForm/creditFormAspects.ts +35 -0
- package/src/components/DebitForm/DebitFormStep.tsx +13 -2
- package/src/components/DebitForm/StepsNavigationButtons.tsx +15 -2
- package/src/components/DebitForm/debitFormAspects.ts +7 -0
- package/src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx +16 -2
- package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +93 -51
- package/src/retail/components/DraftDialog/DraftActionButton.tsx +6 -1
- package/src/retail/components/DraftDialog/DraftDialog.tsx +15 -0
- package/src/retail/components/DraftDialog/DraftDialogContent.tsx +7 -0
- package/src/retail/model/ApplicationLeadFormTypes.ts +12 -0
- package/src/retail/utils/commonAspects.ts +64 -0
- package/src/retail/utils/formAspectsConfig.ts +6 -0
- package/src/retail/utils/yandexMetrika.ts +3 -0
- package/src/utils/getStepAspects.ts +71 -0
- package/bundle/components/CreditForm/getYandexAspects.d.ts +0 -10
- package/dist/components/CreditForm/getYandexAspects.d.ts +0 -10
- package/dist/components/CreditForm/getYandexAspects.js +0 -38
- package/dist/components/CreditForm/getYandexAspects.js.map +0 -1
- package/lib/components/CreditForm/getYandexAspects.d.ts +0 -10
- package/lib/components/CreditForm/getYandexAspects.js +0 -35
- package/lib/components/CreditForm/getYandexAspects.js.map +0 -1
- package/mobile/bundle/components/CreditForm/getYandexAspects.d.ts +0 -10
- package/mobile/dist/components/CreditForm/getYandexAspects.d.ts +0 -10
- package/mobile/dist/components/CreditForm/getYandexAspects.js +0 -38
- package/mobile/dist/components/CreditForm/getYandexAspects.js.map +0 -1
- package/mobile/lib/components/CreditForm/getYandexAspects.d.ts +0 -10
- package/mobile/lib/components/CreditForm/getYandexAspects.js +0 -35
- package/mobile/lib/components/CreditForm/getYandexAspects.js.map +0 -1
- package/mobile/src/components/CreditForm/getYandexAspects.ts +0 -58
- package/src/components/CreditForm/getYandexAspects.ts +0 -58
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { type IconName } from '../../../icons/IconName';
|
|
3
|
+
import { type AspectsDef } from '../../../model/AspectsProps';
|
|
3
4
|
import { type DescriptionProps, type TitleProps } from '../../../model/HeadlineType';
|
|
4
5
|
import type { OnClickProps } from '../../../model/OnClickProps';
|
|
5
6
|
import { Img } from '../../../ui-kit/Img/Img';
|
|
6
7
|
import { Text } from '../../../ui-kit/Text/Text';
|
|
8
|
+
import { getAspectsAttributes } from '../../../utils/dataAttributes';
|
|
7
9
|
import { noop } from '../../../utils/noop';
|
|
8
10
|
|
|
9
11
|
export type DraftActionButtonProps = TitleProps &
|
|
@@ -11,15 +13,18 @@ export type DraftActionButtonProps = TitleProps &
|
|
|
11
13
|
OnClickProps & {
|
|
12
14
|
icon: IconName;
|
|
13
15
|
name?: string;
|
|
16
|
+
data?: AspectsDef[];
|
|
14
17
|
};
|
|
15
18
|
|
|
16
19
|
export const DraftActionButton = JSX<DraftActionButtonProps>(
|
|
17
|
-
({ title, icon, description, name, onClick = noop }) => (
|
|
20
|
+
({ title, icon, description, name, onClick = noop, data }) => (
|
|
18
21
|
<button
|
|
19
22
|
className="flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green"
|
|
20
23
|
type="button"
|
|
21
24
|
onClick={onClick}
|
|
22
25
|
data-test-id={name}
|
|
26
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
27
|
+
{...getAspectsAttributes(data)}
|
|
23
28
|
>
|
|
24
29
|
<Img image={{ icon, iconVersion: 'normal' }} width="78" height="78" />
|
|
25
30
|
<div className="flex flex-col items-start gap-xs md:w-72 md:mr-lg">
|
|
@@ -9,6 +9,7 @@ import { sendMessage } from '../../api/sendMessage';
|
|
|
9
9
|
import { useRetailFormStore } from '../../hooks/useRetailFormStore';
|
|
10
10
|
import { type DraftTaskType } from '../../model/DraftTaskType';
|
|
11
11
|
import { checkNewMicroservice } from '../../utils/checkNewMicroservice';
|
|
12
|
+
import { getAspects } from '../../utils/commonAspects';
|
|
12
13
|
import { creditProgramCodeToProductIdMap, getCreditProgramTaskType } from './creditProgramCodes';
|
|
13
14
|
import { DraftDialogContent } from './DraftDialogContent';
|
|
14
15
|
import { parseDraftTask } from './parseDraftTask';
|
|
@@ -40,6 +41,7 @@ export const DraftDialog = JSX<DraftDialogProps>(function ({
|
|
|
40
41
|
);
|
|
41
42
|
const currentParticipant = participant || participants?.[0];
|
|
42
43
|
const { id: participantId, profile } = currentParticipant || {};
|
|
44
|
+
|
|
43
45
|
const handleGoToDraft = useCallback(() => {
|
|
44
46
|
const taskFromDraft = parseDraftTask(task);
|
|
45
47
|
retailFormStore.participantId = participantId ?? null;
|
|
@@ -67,6 +69,17 @@ export const DraftDialog = JSX<DraftDialogProps>(function ({
|
|
|
67
69
|
navigator.assign(productData.newTaskLink);
|
|
68
70
|
}, [task.id, productData.newTaskLink, isNewMicroservice]);
|
|
69
71
|
|
|
72
|
+
let productType: string;
|
|
73
|
+
if (isDebit) {
|
|
74
|
+
productType = 'debitCard';
|
|
75
|
+
} else if (taskType === 'card') {
|
|
76
|
+
productType = 'creditCard';
|
|
77
|
+
} else {
|
|
78
|
+
productType = 'credit';
|
|
79
|
+
}
|
|
80
|
+
const draftAspects = getAspects('draft', productType);
|
|
81
|
+
const currentAspects = getAspects('current', productType);
|
|
82
|
+
|
|
70
83
|
return (
|
|
71
84
|
<Dialog onClose={onClose}>
|
|
72
85
|
<DraftDialogContent
|
|
@@ -76,6 +89,8 @@ export const DraftDialog = JSX<DraftDialogProps>(function ({
|
|
|
76
89
|
handleGoToDraft={handleGoToDraft}
|
|
77
90
|
handleGoToNewTask={handleGoToNewTask}
|
|
78
91
|
onClose={onClose}
|
|
92
|
+
draftAspects={draftAspects}
|
|
93
|
+
currentAspects={currentAspects}
|
|
79
94
|
/>
|
|
80
95
|
</Dialog>
|
|
81
96
|
);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { type AspectsDef } from '../../../model/AspectsProps';
|
|
2
3
|
import { type OnCloseProps } from '../../../model/OnCloseProps';
|
|
3
4
|
import { Heading } from '../../../ui-kit/Heading/Heading';
|
|
4
5
|
import { formatDate } from '../../../utils/formatDate';
|
|
@@ -11,6 +12,8 @@ export interface DraftDialogContentProps extends OnCloseProps {
|
|
|
11
12
|
isFromLead: boolean;
|
|
12
13
|
handleGoToDraft: () => void;
|
|
13
14
|
handleGoToNewTask: () => void;
|
|
15
|
+
draftAspects?: AspectsDef[];
|
|
16
|
+
currentAspects?: AspectsDef[];
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
export const DraftDialogContent = JSX<DraftDialogContentProps>(function ({
|
|
@@ -20,6 +23,8 @@ export const DraftDialogContent = JSX<DraftDialogContentProps>(function ({
|
|
|
20
23
|
handleGoToDraft,
|
|
21
24
|
handleGoToNewTask,
|
|
22
25
|
onClose,
|
|
26
|
+
draftAspects,
|
|
27
|
+
currentAspects,
|
|
23
28
|
}) {
|
|
24
29
|
return (
|
|
25
30
|
<div className="flex flex-col gap-lg items-center mt-xs mx-6xl">
|
|
@@ -35,6 +40,7 @@ export const DraftDialogContent = JSX<DraftDialogContentProps>(function ({
|
|
|
35
40
|
description={createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : ''}
|
|
36
41
|
onClick={handleGoToDraft}
|
|
37
42
|
name="go-to-draft-button"
|
|
43
|
+
data={draftAspects}
|
|
38
44
|
/>
|
|
39
45
|
<DraftActionButton
|
|
40
46
|
title={isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку'}
|
|
@@ -42,6 +48,7 @@ export const DraftDialogContent = JSX<DraftDialogContentProps>(function ({
|
|
|
42
48
|
description={productData.description}
|
|
43
49
|
onClick={isFromLead ? onClose : handleGoToNewTask}
|
|
44
50
|
name="go-to-current-task-button"
|
|
51
|
+
data={isFromLead ? currentAspects : undefined}
|
|
45
52
|
/>
|
|
46
53
|
</div>
|
|
47
54
|
</div>
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { type Aspects } from '../../hooks/useAspects/useAspects';
|
|
1
2
|
import { type DialogOptions } from '../../ui-kit/DialogManager/DialogAction';
|
|
2
3
|
import { type VerifyPhoneDialogProps } from '../../ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout';
|
|
3
4
|
import { type Nullable } from '../../utils/Nullable';
|
|
4
5
|
import { type MarketingInfo } from '../api/updateUserTask';
|
|
6
|
+
import { type useConsentBkiDialog } from '../components/ConsentBkiDialog/useConsentBkiDialog';
|
|
7
|
+
import { type useDraftDialog } from '../components/DraftDialog/useDraftDialog';
|
|
5
8
|
import { type LeadFormState } from './LeadFormState';
|
|
6
9
|
import { type ReferalData } from './ReferalData';
|
|
7
10
|
|
|
@@ -17,6 +20,7 @@ export interface UserData {
|
|
|
17
20
|
export type ProductType = 'credit' | 'creditCard' | 'debitCard';
|
|
18
21
|
|
|
19
22
|
export interface CommonLeadProps {
|
|
23
|
+
aspects: Aspects;
|
|
20
24
|
programId: string;
|
|
21
25
|
userId?: string | number;
|
|
22
26
|
productType: ProductType;
|
|
@@ -54,3 +58,11 @@ export interface UpdateUserDataNewMicroserviceProps extends BaseUpdateUserDataPr
|
|
|
54
58
|
participantId: string | number;
|
|
55
59
|
userId?: string | number;
|
|
56
60
|
}
|
|
61
|
+
|
|
62
|
+
export interface OldMicroserviceProps {
|
|
63
|
+
common: Omit<CommonLeadProps, 'userId'> & { profileId: number };
|
|
64
|
+
taskData: TaskDataProps;
|
|
65
|
+
goToNextStep: () => void;
|
|
66
|
+
consentBkiDialog: ReturnType<typeof useConsentBkiDialog>;
|
|
67
|
+
draftDialog: ReturnType<typeof useDraftDialog>;
|
|
68
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type AspectsDef } from '../../model/AspectsProps';
|
|
2
|
+
import { YANDEX_ID } from './yandexMetrika';
|
|
3
|
+
|
|
4
|
+
const ASPECTS_MAP: Record<string, Record<string, string>> = {
|
|
5
|
+
leadForm: {
|
|
6
|
+
debitCard: 'debit_lead_form',
|
|
7
|
+
creditCard: 'card_lead_form',
|
|
8
|
+
default: 'lead_form',
|
|
9
|
+
},
|
|
10
|
+
draft: {
|
|
11
|
+
debitCard: 'debit_draft_app',
|
|
12
|
+
creditCard: 'card_draft_app',
|
|
13
|
+
default: 'draft_app',
|
|
14
|
+
},
|
|
15
|
+
smsAuth: {
|
|
16
|
+
debitCard: 'debit_sms_auth',
|
|
17
|
+
creditCard: 'card_sms_auth',
|
|
18
|
+
default: 'sms_auth',
|
|
19
|
+
},
|
|
20
|
+
consentBki: {
|
|
21
|
+
creditCard: 'card_consent_bki',
|
|
22
|
+
default: 'consent_bki',
|
|
23
|
+
},
|
|
24
|
+
smsBki: {
|
|
25
|
+
creditCard: 'card_sms_bki',
|
|
26
|
+
default: 'sms_bki',
|
|
27
|
+
},
|
|
28
|
+
current: {
|
|
29
|
+
debitCard: 'debit_current_app',
|
|
30
|
+
creditCard: 'card_current_app',
|
|
31
|
+
default: 'current_app',
|
|
32
|
+
},
|
|
33
|
+
timer: {
|
|
34
|
+
creditCard: 'card_timer',
|
|
35
|
+
default: 'timer',
|
|
36
|
+
},
|
|
37
|
+
timerEnd: {
|
|
38
|
+
creditCard: 'card_timer_end',
|
|
39
|
+
default: 'timer_end',
|
|
40
|
+
},
|
|
41
|
+
preDecision: {
|
|
42
|
+
creditCard: 'card_pre_decision',
|
|
43
|
+
default: 'pre_decision',
|
|
44
|
+
},
|
|
45
|
+
revision: {
|
|
46
|
+
creditCard: 'card_revision',
|
|
47
|
+
default: 'revision',
|
|
48
|
+
},
|
|
49
|
+
refuse: {
|
|
50
|
+
creditCard: 'card_refuse',
|
|
51
|
+
default: 'refuse',
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export const getAspects = (aspectType: string, productType?: string): AspectsDef[] => {
|
|
56
|
+
const aspectForType = ASPECTS_MAP[aspectType];
|
|
57
|
+
|
|
58
|
+
return [
|
|
59
|
+
{
|
|
60
|
+
aspectName: 'ymReachGoal',
|
|
61
|
+
params: { yandexId: YANDEX_ID, targetName: aspectForType[productType || 'default'] },
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { getCreditInfo } from '../components/CreditForm/getCreditInfo';
|
|
2
|
+
import { type AspectsDef } from '../model/AspectsProps';
|
|
3
|
+
import { type StepAspectsConfig } from '../retail/utils/formAspectsConfig';
|
|
4
|
+
import { YANDEX_ID } from '../retail/utils/yandexMetrika';
|
|
5
|
+
|
|
6
|
+
interface YandexAspectsParams {
|
|
7
|
+
step: number;
|
|
8
|
+
programId?: string | null;
|
|
9
|
+
productType?: string;
|
|
10
|
+
paymentSystem?: string;
|
|
11
|
+
stepsConfig: StepAspectsConfig[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const getVisitParams = (
|
|
15
|
+
programId?: string | null,
|
|
16
|
+
productType?: string,
|
|
17
|
+
paymentSystem?: string,
|
|
18
|
+
): Record<string, unknown> => {
|
|
19
|
+
const creditInfo = getCreditInfo(programId ?? null);
|
|
20
|
+
const productName = creditInfo?.name || '';
|
|
21
|
+
const productTypeValue = productType ?? '';
|
|
22
|
+
|
|
23
|
+
if (paymentSystem && productType !== 'credit') {
|
|
24
|
+
return {
|
|
25
|
+
[productTypeValue]: {
|
|
26
|
+
[productName]: paymentSystem,
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
} else {
|
|
30
|
+
return {
|
|
31
|
+
[productTypeValue]: productName,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const getStepAspects = ({
|
|
37
|
+
step,
|
|
38
|
+
programId,
|
|
39
|
+
productType,
|
|
40
|
+
paymentSystem,
|
|
41
|
+
stepsConfig,
|
|
42
|
+
}: YandexAspectsParams): AspectsDef[] => {
|
|
43
|
+
const config = stepsConfig[step];
|
|
44
|
+
if (!config) {
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
47
|
+
const visitParams = getVisitParams(programId, productType, paymentSystem);
|
|
48
|
+
const aspects: AspectsDef[] = [];
|
|
49
|
+
|
|
50
|
+
aspects.push({
|
|
51
|
+
aspectName: 'ymReachGoal',
|
|
52
|
+
params: {
|
|
53
|
+
yandexId: YANDEX_ID,
|
|
54
|
+
targetName: config.ymTargetName,
|
|
55
|
+
...visitParams,
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
if (config.snowplowEventAction) {
|
|
60
|
+
aspects.push({
|
|
61
|
+
aspectName: 'snowplowEvent',
|
|
62
|
+
params: {
|
|
63
|
+
eventAction: config.snowplowEventAction,
|
|
64
|
+
eventCategory: config.snowplowEventCategory || 'naturalCredits',
|
|
65
|
+
eventValueText: config.snowplowEventValueText || '',
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return aspects;
|
|
71
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.1078",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"path": "lib/common.css"
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
"limit": "
|
|
208
|
+
"limit": "130 kB",
|
|
209
209
|
"path": "bundle/bundle.umd.min.js"
|
|
210
210
|
}
|
|
211
211
|
],
|
|
@@ -137,7 +137,7 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
|
|
|
137
137
|
{renderInputs({ field, inputs: _?.inputs }, productType)}
|
|
138
138
|
</div>
|
|
139
139
|
))}
|
|
140
|
-
{renderSubmitButton(button, isSending)}
|
|
140
|
+
{renderSubmitButton(button, { isSending, productType })}
|
|
141
141
|
{esiaStatus === EsiaStatuses.Error ? (
|
|
142
142
|
<Text size="text-m" font="font-medium" color="text-error">
|
|
143
143
|
Использовать Госуслуги для оформления заявки невозможно, необходимо заполнить поля
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
+
import { getAspects } from '../../retail/utils/commonAspects';
|
|
1
2
|
import { SubmitButton } from '../../ui-kit/Button/SubmitButton';
|
|
2
3
|
import { type SubmitButtonProps } from './ApplicationLeadFormContent';
|
|
3
4
|
|
|
4
|
-
export const renderSubmitButton = (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export const renderSubmitButton = (
|
|
6
|
+
button?: SubmitButtonProps,
|
|
7
|
+
options?: { isSending?: boolean; productType?: string },
|
|
8
|
+
) => {
|
|
9
|
+
const isSending = options?.isSending;
|
|
10
|
+
const productType = options?.productType;
|
|
11
|
+
const defaultAspects = getAspects('leadForm', productType);
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<SubmitButton
|
|
15
|
+
className="w-full @xl:w-auto"
|
|
16
|
+
isLoading={isSending ?? false}
|
|
17
|
+
testId="LeadSubmitButton"
|
|
18
|
+
data={defaultAspects}
|
|
19
|
+
>
|
|
20
|
+
{button?.text ? button.text : 'Отправить заявку'}
|
|
21
|
+
</SubmitButton>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
@@ -3,6 +3,8 @@ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
|
|
|
3
3
|
import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
|
|
4
4
|
import { useSessionStore } from '@redneckz/uni-jsx/lib/Store/useSessionStore';
|
|
5
5
|
import { locationNavigator } from '../../external/locationNavigator';
|
|
6
|
+
import { handleAspects } from '../../hooks/useAspects/handleAspects';
|
|
7
|
+
import { useAspects } from '../../hooks/useAspects/useAspects';
|
|
6
8
|
import { type AspectsProps } from '../../model/AspectsProps';
|
|
7
9
|
import { createDraftTask } from '../../retail/api/createDraftTask';
|
|
8
10
|
import { createParticipant } from '../../retail/api/createParticipant';
|
|
@@ -19,15 +21,18 @@ import { useDraftDialog } from '../../retail/components/DraftDialog/useDraftDial
|
|
|
19
21
|
import { VerifyPhoneDialog } from '../../retail/components/VerifyPhoneDialog/VerifyPhoneDialog';
|
|
20
22
|
import {
|
|
21
23
|
type CommonLeadProps,
|
|
24
|
+
type OldMicroserviceProps,
|
|
22
25
|
type ProductType,
|
|
23
26
|
type TaskDataProps,
|
|
24
27
|
type UpdateUserDataNewMicroserviceProps,
|
|
25
28
|
type UpdateUserDataProps,
|
|
26
29
|
} from '../../retail/model/ApplicationLeadFormTypes';
|
|
27
30
|
import { type FormRetailConsents, type LeadFormState } from '../../retail/model/LeadFormState';
|
|
31
|
+
import { getAspects } from '../../retail/utils/commonAspects';
|
|
28
32
|
import { getUpdateUserProfileData } from '../../retail/utils/getUpdateUserProfile';
|
|
29
33
|
import { productTypeToTaskType } from '../../retail/utils/productTypeToTaskType';
|
|
30
34
|
import { useDialog } from '../../ui-kit/DialogManager/useDialog';
|
|
35
|
+
import { type PreventableEventWithTarget } from '../../ui-kit/PreventableEvent';
|
|
31
36
|
import { formatPhone } from '../../utils/formatPhone';
|
|
32
37
|
import { productTypeToConsentsMap } from './consents';
|
|
33
38
|
import { getCreditLeadFormTaskData, getDebitLeadFormTaskData } from './getLeadFormTaskData';
|
|
@@ -59,13 +64,14 @@ export const useApplicationLeadApi = ({
|
|
|
59
64
|
const leadFormStore = useLeadFormStore();
|
|
60
65
|
|
|
61
66
|
const sendAspects = useSendLeadFormAspects({ data });
|
|
67
|
+
const aspects = useAspects();
|
|
62
68
|
const navigator = locationNavigator();
|
|
63
69
|
|
|
64
70
|
const goToNextStep = useCallback(() => {
|
|
65
71
|
navigator.assign(nextStepLink);
|
|
66
72
|
}, []);
|
|
67
73
|
|
|
68
|
-
const consentBkiDialog = useConsentBkiDialog(goToNextStep);
|
|
74
|
+
const consentBkiDialog = useConsentBkiDialog(goToNextStep, productType);
|
|
69
75
|
const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
|
|
70
76
|
const draftDialog = useDraftDialog();
|
|
71
77
|
|
|
@@ -89,50 +95,33 @@ export const useApplicationLeadApi = ({
|
|
|
89
95
|
throw new Error();
|
|
90
96
|
}
|
|
91
97
|
|
|
92
|
-
const
|
|
93
|
-
|
|
98
|
+
const oldMicroserviceProps: OldMicroserviceProps = {
|
|
99
|
+
common: {
|
|
100
|
+
aspects,
|
|
94
101
|
programId,
|
|
102
|
+
productType,
|
|
103
|
+
sendAspects,
|
|
104
|
+
verifyPhoneDialog,
|
|
105
|
+
handleFailSendForm,
|
|
95
106
|
profileId,
|
|
107
|
+
},
|
|
108
|
+
taskData: {
|
|
96
109
|
formData: transformedFormData,
|
|
97
|
-
productType,
|
|
98
110
|
referalData,
|
|
99
111
|
marketingInfo,
|
|
100
112
|
saveUserData,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
goToNextStep();
|
|
106
|
-
} else {
|
|
107
|
-
consentBkiDialog.open({
|
|
108
|
-
phone: transformedFormData.phone,
|
|
109
|
-
profileId,
|
|
110
|
-
onFail: handleFailSendForm,
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
const handleSuccessVerify = async () => {
|
|
115
|
-
try {
|
|
116
|
-
const lastTaskId = await getLastTaskStatus({ profileId, programId });
|
|
117
|
-
|
|
118
|
-
if (lastTaskId) {
|
|
119
|
-
const task = await getTaskById({ taskId: lastTaskId });
|
|
120
|
-
verifyPhoneDialog.close();
|
|
121
|
-
draftDialog.open({
|
|
122
|
-
task,
|
|
123
|
-
isFromLead: true,
|
|
124
|
-
taskType: productTypeToTaskType(productType),
|
|
125
|
-
sendAspects,
|
|
126
|
-
onClose: sendCurrentTask,
|
|
127
|
-
});
|
|
128
|
-
} else {
|
|
129
|
-
await sendCurrentTask();
|
|
130
|
-
}
|
|
131
|
-
} catch {
|
|
132
|
-
handleFailSendForm();
|
|
133
|
-
}
|
|
113
|
+
},
|
|
114
|
+
goToNextStep,
|
|
115
|
+
consentBkiDialog,
|
|
116
|
+
draftDialog,
|
|
134
117
|
};
|
|
135
118
|
|
|
119
|
+
const sendCurrentTask = createSendCurrentTaskOld(oldMicroserviceProps);
|
|
120
|
+
const handleSuccessVerify = createHandleSuccessVerifyOld(
|
|
121
|
+
oldMicroserviceProps,
|
|
122
|
+
sendCurrentTask,
|
|
123
|
+
);
|
|
124
|
+
|
|
136
125
|
const acceptedConsents = getAcceptedConsents(transformedFormData, productType);
|
|
137
126
|
|
|
138
127
|
verifyPhoneDialog.open({
|
|
@@ -161,6 +150,7 @@ export const useApplicationLeadApi = ({
|
|
|
161
150
|
sendAspects,
|
|
162
151
|
verifyPhoneDialog,
|
|
163
152
|
handleFailSendForm,
|
|
153
|
+
aspects,
|
|
164
154
|
};
|
|
165
155
|
|
|
166
156
|
const taskData: TaskDataProps = {
|
|
@@ -251,9 +241,16 @@ const createHandleSuccessVerifyNew =
|
|
|
251
241
|
consentBkiDialog: ReturnType<typeof useConsentBkiDialog>;
|
|
252
242
|
}) =>
|
|
253
243
|
async () => {
|
|
254
|
-
const {
|
|
244
|
+
const { verifyPhoneDialog, sendAspects, handleFailSendForm, programId, productType, aspects } =
|
|
245
|
+
common;
|
|
255
246
|
const { formData } = taskData;
|
|
256
247
|
|
|
248
|
+
handleAspects({
|
|
249
|
+
aspectsAttributes: getAspects('leadForm', productType),
|
|
250
|
+
aspects,
|
|
251
|
+
ev: {} as PreventableEventWithTarget,
|
|
252
|
+
});
|
|
253
|
+
|
|
257
254
|
try {
|
|
258
255
|
const participantData = await createParticipant({
|
|
259
256
|
phone: formatPhone(formData.phone as string),
|
|
@@ -307,6 +304,69 @@ const createHandleSuccessVerifyNew =
|
|
|
307
304
|
}
|
|
308
305
|
};
|
|
309
306
|
|
|
307
|
+
const createSendCurrentTaskOld = (props: OldMicroserviceProps) => async () => {
|
|
308
|
+
const { common, taskData, goToNextStep, consentBkiDialog } = props;
|
|
309
|
+
const { programId, profileId, productType, verifyPhoneDialog, handleFailSendForm } = common;
|
|
310
|
+
const { formData } = taskData;
|
|
311
|
+
|
|
312
|
+
await updateUserData({
|
|
313
|
+
programId,
|
|
314
|
+
profileId,
|
|
315
|
+
formData,
|
|
316
|
+
productType,
|
|
317
|
+
referalData: taskData.referalData,
|
|
318
|
+
marketingInfo: taskData.marketingInfo,
|
|
319
|
+
saveUserData: taskData.saveUserData,
|
|
320
|
+
sendAspects: common.sendAspects,
|
|
321
|
+
});
|
|
322
|
+
|
|
323
|
+
verifyPhoneDialog.close();
|
|
324
|
+
|
|
325
|
+
if (productType === 'debitCard') {
|
|
326
|
+
goToNextStep();
|
|
327
|
+
} else {
|
|
328
|
+
consentBkiDialog.open({
|
|
329
|
+
phone: formData.phone,
|
|
330
|
+
profileId,
|
|
331
|
+
onFail: handleFailSendForm,
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
const createHandleSuccessVerifyOld =
|
|
337
|
+
(props: OldMicroserviceProps, sendCurrentTask: () => Promise<void>) => async () => {
|
|
338
|
+
const { common, draftDialog } = props;
|
|
339
|
+
const { aspects, programId, sendAspects, verifyPhoneDialog, handleFailSendForm, profileId } =
|
|
340
|
+
common;
|
|
341
|
+
const productType = common.productType as ProductType;
|
|
342
|
+
|
|
343
|
+
handleAspects({
|
|
344
|
+
aspectsAttributes: getAspects('leadForm', productType),
|
|
345
|
+
aspects,
|
|
346
|
+
ev: {} as PreventableEventWithTarget,
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
try {
|
|
350
|
+
const lastTaskId = await getLastTaskStatus({ profileId, programId });
|
|
351
|
+
|
|
352
|
+
if (lastTaskId) {
|
|
353
|
+
const task = await getTaskById({ taskId: lastTaskId });
|
|
354
|
+
verifyPhoneDialog.close();
|
|
355
|
+
draftDialog.open({
|
|
356
|
+
task,
|
|
357
|
+
isFromLead: true,
|
|
358
|
+
taskType: productTypeToTaskType(productType),
|
|
359
|
+
sendAspects,
|
|
360
|
+
onClose: sendCurrentTask,
|
|
361
|
+
});
|
|
362
|
+
} else {
|
|
363
|
+
await sendCurrentTask();
|
|
364
|
+
}
|
|
365
|
+
} catch {
|
|
366
|
+
handleFailSendForm();
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
|
|
310
370
|
const getAcceptedConsents = (formData: LeadFormState, productType: ProductType): string[] => {
|
|
311
371
|
const consents = productTypeToConsentsMap[productType];
|
|
312
372
|
|
|
@@ -2,6 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useCallback, useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import { useForm } from '../../hooks/useForm/useForm';
|
|
4
4
|
import { useIFrameMode } from '../../retail/hooks/useIFrameMode';
|
|
5
|
+
import { useRetailFormStore } from '../../retail/hooks/useRetailFormStore';
|
|
5
6
|
import { type SectionsRetailProps } from '../../retail/model/InputSectionsType';
|
|
6
7
|
import { type LeadFormState } from '../../retail/model/LeadFormState';
|
|
7
8
|
import { renderStep } from '../../retail/utils/renderStep';
|
|
@@ -21,6 +22,7 @@ const PRODUCT_TYPE = 'creditCard';
|
|
|
21
22
|
|
|
22
23
|
export const CreditCardFormStep = JSX<CreditCardFormStepProps>(
|
|
23
24
|
({ step, sections, onPrevStep, onNextStep, onFinish }) => {
|
|
25
|
+
const { programId } = useRetailFormStore();
|
|
24
26
|
useIFrameMode();
|
|
25
27
|
const inputs = useMemo(
|
|
26
28
|
() => sections?.flatMap((_: SectionsRetailProps) => _?.inputs || []),
|
|
@@ -43,15 +45,24 @@ export const CreditCardFormStep = JSX<CreditCardFormStepProps>(
|
|
|
43
45
|
onFinish,
|
|
44
46
|
});
|
|
45
47
|
|
|
46
|
-
const [, { field, onSubmit: handleSubmit }] = useForm(initialState, {
|
|
48
|
+
const [formState, { field, onSubmit: handleSubmit }] = useForm(initialState, {
|
|
47
49
|
formValidator,
|
|
48
50
|
onSubmit,
|
|
49
51
|
});
|
|
50
52
|
|
|
53
|
+
const PAYMENT_SYSTEM = formState.paymentSystem?.text;
|
|
54
|
+
|
|
51
55
|
return (
|
|
52
56
|
<form onSubmit={handleSubmit} className="space-y-m">
|
|
53
57
|
{renderStep({ sections, field })}
|
|
54
|
-
<StepsNavigationButtons
|
|
58
|
+
<StepsNavigationButtons
|
|
59
|
+
isSending={isSending}
|
|
60
|
+
step={step}
|
|
61
|
+
onPrevStep={onPrevStep}
|
|
62
|
+
programId={programId}
|
|
63
|
+
productType={PRODUCT_TYPE}
|
|
64
|
+
paymentSystem={PAYMENT_SYSTEM}
|
|
65
|
+
/>
|
|
55
66
|
</form>
|
|
56
67
|
);
|
|
57
68
|
},
|
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { handleAspects } from '../../hooks/useAspects/handleAspects';
|
|
4
|
+
import { useAspects } from '../../hooks/useAspects/useAspects';
|
|
2
5
|
import { FormStatus } from '../../retail/components/FormStatus/FormStatus';
|
|
6
|
+
import { getAspects } from '../../retail/utils/commonAspects';
|
|
7
|
+
import { type PreventableEventWithTarget } from '../../ui-kit/PreventableEvent';
|
|
3
8
|
|
|
4
|
-
export const FailedStatusContent = JSX(() =>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
export const FailedStatusContent = JSX(() => {
|
|
10
|
+
const aspects = useAspects();
|
|
11
|
+
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
handleAspects({
|
|
14
|
+
aspectsAttributes: getAspects('refuse', 'creditCard'),
|
|
15
|
+
aspects,
|
|
16
|
+
ev: {} as PreventableEventWithTarget,
|
|
17
|
+
});
|
|
18
|
+
}, []);
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<FormStatus
|
|
22
|
+
title="Благодарим Вас за ожидание"
|
|
23
|
+
description="В настоящий момент Банк не может одобрить Вашу заявку на кредит. Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк»."
|
|
24
|
+
buttonText="Вернуться на главную"
|
|
25
|
+
/>
|
|
26
|
+
);
|
|
27
|
+
});
|
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
+
import { handleAspects } from '../../hooks/useAspects/handleAspects';
|
|
4
|
+
import { useAspects } from '../../hooks/useAspects/useAspects';
|
|
2
5
|
import { FormStatus } from '../../retail/components/FormStatus/FormStatus';
|
|
3
6
|
import { useRetailFormStore } from '../../retail/hooks/useRetailFormStore';
|
|
7
|
+
import { getAspects } from '../../retail/utils/commonAspects';
|
|
8
|
+
import { type PreventableEventWithTarget } from '../../ui-kit/PreventableEvent';
|
|
4
9
|
|
|
5
10
|
export const PendingStatusContent = JSX(({ onExpire }: { onExpire: () => void }) => {
|
|
6
11
|
const { statusInfo } = useRetailFormStore();
|
|
12
|
+
const aspects = useAspects();
|
|
13
|
+
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
handleAspects({
|
|
16
|
+
aspectsAttributes: getAspects('timer', 'creditCard'),
|
|
17
|
+
aspects,
|
|
18
|
+
ev: {} as PreventableEventWithTarget,
|
|
19
|
+
});
|
|
20
|
+
}, []);
|
|
21
|
+
|
|
22
|
+
const handleExpireWithEvent = () => {
|
|
23
|
+
handleAspects({
|
|
24
|
+
aspectsAttributes: getAspects('timerEnd', 'creditCard'),
|
|
25
|
+
aspects,
|
|
26
|
+
ev: {} as PreventableEventWithTarget,
|
|
27
|
+
});
|
|
28
|
+
onExpire();
|
|
29
|
+
};
|
|
7
30
|
|
|
8
31
|
return (
|
|
9
32
|
<FormStatus
|
|
@@ -21,7 +44,7 @@ export const PendingStatusContent = JSX(({ onExpire }: { onExpire: () => void })
|
|
|
21
44
|
description: statusInfo?.cardCategory,
|
|
22
45
|
},
|
|
23
46
|
]}
|
|
24
|
-
onExpire={
|
|
47
|
+
onExpire={handleExpireWithEvent}
|
|
25
48
|
/>
|
|
26
49
|
);
|
|
27
50
|
});
|