@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,10 +1,24 @@
|
|
|
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, type StatusInfoState } from '../../retail/hooks/useRetailFormStore';
|
|
7
|
+
import { getAspects } from '../../retail/utils/commonAspects';
|
|
8
|
+
import { type PreventableEventWithTarget } from '../../ui-kit/PreventableEvent';
|
|
4
9
|
import { formatDate } from '../../utils/formatDate';
|
|
5
10
|
|
|
6
11
|
export const SuccessStatusCardContent = JSX(() => {
|
|
7
12
|
const { statusInfo } = useRetailFormStore();
|
|
13
|
+
const aspects = useAspects();
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
handleAspects({
|
|
17
|
+
aspectsAttributes: getAspects('preDecision', 'creditCard'),
|
|
18
|
+
aspects,
|
|
19
|
+
ev: {} as PreventableEventWithTarget,
|
|
20
|
+
});
|
|
21
|
+
}, []);
|
|
8
22
|
|
|
9
23
|
return (
|
|
10
24
|
<FormStatus
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type StepAspectsConfig } from '../../retail/utils/formAspectsConfig';
|
|
2
|
+
|
|
3
|
+
export const CREDIT_CARD_FORM_STEPS_ASPECTS: StepAspectsConfig[] = [
|
|
4
|
+
{ ymTargetName: 'card_credit_calculator' },
|
|
5
|
+
{ ymTargetName: 'card_app_personal_data' },
|
|
6
|
+
{ ymTargetName: 'card_app_work' },
|
|
7
|
+
{ ymTargetName: 'card_app_income' },
|
|
8
|
+
{ ymTargetName: 'card_app_bank_office' },
|
|
9
|
+
];
|
|
@@ -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', 'credit'),
|
|
15
|
+
aspects,
|
|
16
|
+
ev: {} as PreventableEventWithTarget,
|
|
17
|
+
});
|
|
18
|
+
}, []);
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<FormStatus
|
|
22
|
+
title="Благодарим Вас за ожидание"
|
|
23
|
+
description="В настоящий момент Банк не может одобрить Вашу заявку на кредит. Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк»."
|
|
24
|
+
buttonText="Вернуться на главную"
|
|
25
|
+
/>
|
|
26
|
+
);
|
|
27
|
+
});
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { useCallback, 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
|
import { getCreditInfo } from './getCreditInfo';
|
|
5
10
|
|
|
6
11
|
export const PendingStatusContent = JSX(({ onExpire }: { onExpire: () => void }) => {
|
|
@@ -8,6 +13,26 @@ export const PendingStatusContent = JSX(({ onExpire }: { onExpire: () => void })
|
|
|
8
13
|
|
|
9
14
|
const creditInfo = getCreditInfo(programId);
|
|
10
15
|
|
|
16
|
+
const aspects = useAspects();
|
|
17
|
+
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
handleAspects({
|
|
20
|
+
aspectsAttributes: getAspects('timer', 'credit'),
|
|
21
|
+
aspects,
|
|
22
|
+
ev: {} as PreventableEventWithTarget,
|
|
23
|
+
});
|
|
24
|
+
}, []);
|
|
25
|
+
|
|
26
|
+
const handleExpireWithEvent = useCallback(() => {
|
|
27
|
+
handleAspects({
|
|
28
|
+
aspectsAttributes: getAspects('timerEnd', 'credit'),
|
|
29
|
+
aspects,
|
|
30
|
+
ev: {} as PreventableEventWithTarget,
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
onExpire();
|
|
34
|
+
}, [aspects, onExpire]);
|
|
35
|
+
|
|
11
36
|
return (
|
|
12
37
|
<FormStatus
|
|
13
38
|
interval={300}
|
|
@@ -36,7 +61,7 @@ export const PendingStatusContent = JSX(({ onExpire }: { onExpire: () => void })
|
|
|
36
61
|
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
37
62
|
},
|
|
38
63
|
]}
|
|
39
|
-
onExpire={
|
|
64
|
+
onExpire={handleExpireWithEvent}
|
|
40
65
|
/>
|
|
41
66
|
);
|
|
42
67
|
});
|
|
@@ -1,10 +1,25 @@
|
|
|
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 ReworkStatusContent = JSX(() => {
|
|
6
11
|
const { statusInfo } = useRetailFormStore();
|
|
7
12
|
|
|
13
|
+
const aspects = useAspects();
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
handleAspects({
|
|
17
|
+
aspectsAttributes: getAspects('revision', 'credit'),
|
|
18
|
+
aspects,
|
|
19
|
+
ev: {} as PreventableEventWithTarget,
|
|
20
|
+
});
|
|
21
|
+
}, []);
|
|
22
|
+
|
|
8
23
|
return (
|
|
9
24
|
<FormStatus
|
|
10
25
|
title="Благодарим вас за ожидание, но нам требуется больше времени для принятия решения"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import { type AspectsDef } from '../../model/AspectsProps';
|
|
3
|
-
import { projectSettings } from '../../ProjectSettings';
|
|
4
2
|
import { Button } from '../../ui-kit/Button/Button';
|
|
5
3
|
import { SubmitButton } from '../../ui-kit/Button/SubmitButton';
|
|
6
|
-
import {
|
|
4
|
+
import { getStepAspects } from '../../utils/getStepAspects';
|
|
5
|
+
import { CREDIT_FORM_STEPS_ASPECTS } from './creditFormAspects';
|
|
6
|
+
|
|
7
7
|
export interface StepsNavigationButtonsProps {
|
|
8
8
|
step: number;
|
|
9
9
|
isSending: boolean;
|
|
@@ -12,106 +12,16 @@ export interface StepsNavigationButtonsProps {
|
|
|
12
12
|
productType?: string;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
const YANDEX_ID = projectSettings.YANDEX_METRIKA_ID || '92511315';
|
|
16
|
-
|
|
17
|
-
const data: AspectsDef[][] = [
|
|
18
|
-
[
|
|
19
|
-
{
|
|
20
|
-
aspectName: 'ymReachGoal',
|
|
21
|
-
params: {
|
|
22
|
-
yandexId: YANDEX_ID,
|
|
23
|
-
targetName: 'credit_calculator',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
aspectName: 'snowplowEvent',
|
|
28
|
-
params: {
|
|
29
|
-
eventAction: 'naturalCreditsReducedPaymentCreditSummPeriodNext',
|
|
30
|
-
eventCategory: 'naturalCredits',
|
|
31
|
-
eventValueText: 'Кредит со сниженным платежом Сумма и сроки кредита Кнопка Далее',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
[
|
|
36
|
-
{
|
|
37
|
-
aspectName: 'ymReachGoal',
|
|
38
|
-
params: {
|
|
39
|
-
yandexId: YANDEX_ID,
|
|
40
|
-
targetName: 'app_personal_data',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
aspectName: 'snowplowEvent',
|
|
45
|
-
params: {
|
|
46
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormPassportNext',
|
|
47
|
-
eventCategory: 'naturalCredits',
|
|
48
|
-
eventValueText: 'Кредит со сниженным платежом Паспортные данные Кнопка Далее',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
[
|
|
53
|
-
{
|
|
54
|
-
aspectName: 'ymReachGoal',
|
|
55
|
-
params: {
|
|
56
|
-
yandexId: YANDEX_ID,
|
|
57
|
-
targetName: 'app_work',
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
aspectName: 'snowplowEvent',
|
|
62
|
-
params: {
|
|
63
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormEmployerDetailsNext',
|
|
64
|
-
eventCategory: 'naturalCredits',
|
|
65
|
-
eventValueText: 'Кредит со сниженным платежом Данные о работодателе Кнопка Далее',
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
[
|
|
70
|
-
{
|
|
71
|
-
aspectName: 'ymReachGoal',
|
|
72
|
-
params: {
|
|
73
|
-
yandexId: YANDEX_ID,
|
|
74
|
-
targetName: 'app_income',
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
aspectName: 'snowplowEvent',
|
|
79
|
-
params: {
|
|
80
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormFamilyStatusNext',
|
|
81
|
-
eventCategory: 'naturalCredits',
|
|
82
|
-
eventValueText: 'Кредит со сниженным платежом Семейное положение и доход Кнопка Далее',
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
[
|
|
87
|
-
{
|
|
88
|
-
aspectName: 'ymReachGoal',
|
|
89
|
-
params: {
|
|
90
|
-
yandexId: YANDEX_ID,
|
|
91
|
-
targetName: 'app_bank_office',
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
aspectName: 'snowplowEvent',
|
|
96
|
-
params: {
|
|
97
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormBankDepartmentChoosingNext',
|
|
98
|
-
eventCategory: 'naturalCredits',
|
|
99
|
-
eventValueText: 'Кредит со сниженным платежом Выбор отделения Кнопка Далее',
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
];
|
|
104
|
-
|
|
105
15
|
export const StepsNavigationButtons = JSX<StepsNavigationButtonsProps>(
|
|
106
16
|
({ step, onPrevStep, isSending, programId, productType = 'credit' }) => {
|
|
107
17
|
const isFirstStep = step === 0;
|
|
108
18
|
const isFinalStep = step === 5;
|
|
109
19
|
|
|
110
|
-
const aspects =
|
|
20
|
+
const aspects = getStepAspects({
|
|
111
21
|
step,
|
|
112
22
|
programId,
|
|
113
23
|
productType,
|
|
114
|
-
|
|
24
|
+
stepsConfig: CREDIT_FORM_STEPS_ASPECTS,
|
|
115
25
|
});
|
|
116
26
|
|
|
117
27
|
return (
|
|
@@ -1,6 +1,11 @@
|
|
|
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
|
import { getCreditInfo } from './getCreditInfo';
|
|
5
10
|
|
|
6
11
|
export const SuccessStatusContent = JSX(() => {
|
|
@@ -8,6 +13,16 @@ export const SuccessStatusContent = JSX(() => {
|
|
|
8
13
|
|
|
9
14
|
const creditInfo = getCreditInfo(programId);
|
|
10
15
|
|
|
16
|
+
const aspects = useAspects();
|
|
17
|
+
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
handleAspects({
|
|
20
|
+
aspectsAttributes: getAspects('preDecision', 'credit'),
|
|
21
|
+
aspects,
|
|
22
|
+
ev: {} as PreventableEventWithTarget,
|
|
23
|
+
});
|
|
24
|
+
}, []);
|
|
25
|
+
|
|
11
26
|
return (
|
|
12
27
|
<FormStatus
|
|
13
28
|
title="Банк одобрил вам кредит"
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type StepAspectsConfig } from '../../retail/utils/formAspectsConfig';
|
|
2
|
+
|
|
3
|
+
export const CREDIT_FORM_STEPS_ASPECTS: StepAspectsConfig[] = [
|
|
4
|
+
{
|
|
5
|
+
ymTargetName: 'credit_calculator',
|
|
6
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditSummPeriodNext',
|
|
7
|
+
snowplowEventCategory: 'naturalCredits',
|
|
8
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Сумма и сроки кредита Кнопка Далее',
|
|
9
|
+
},
|
|
10
|
+
|
|
11
|
+
{
|
|
12
|
+
ymTargetName: 'app_personal_data',
|
|
13
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormPassportNext',
|
|
14
|
+
snowplowEventCategory: 'naturalCredits',
|
|
15
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Паспортные данные Кнопка Далее',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
ymTargetName: 'app_work',
|
|
19
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormEmployerDetailsNext',
|
|
20
|
+
snowplowEventCategory: 'naturalCredits',
|
|
21
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Данные о работодателе Кнопка Далее',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
ymTargetName: 'app_income',
|
|
25
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormFamilyStatusNext',
|
|
26
|
+
snowplowEventCategory: 'naturalCredits',
|
|
27
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Семейное положение и доход Кнопка Далее',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
ymTargetName: 'app_bank_office',
|
|
31
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormBankDepartmentChoosingNext',
|
|
32
|
+
snowplowEventCategory: 'naturalCredits',
|
|
33
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Выбор отделения Кнопка Далее',
|
|
34
|
+
},
|
|
35
|
+
];
|
|
@@ -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 = 'debitCard';
|
|
|
21
22
|
|
|
22
23
|
export const DebitFormStep = JSX<DebitFormStepProps>(
|
|
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 DebitFormStep = JSX<DebitFormStepProps>(
|
|
|
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
|
+
step={step}
|
|
60
|
+
isSending={isSending}
|
|
61
|
+
onPrevStep={onPrevStep}
|
|
62
|
+
programId={programId}
|
|
63
|
+
productType={PRODUCT_TYPE}
|
|
64
|
+
paymentSystem={PAYMENT_SYSTEM}
|
|
65
|
+
/>
|
|
55
66
|
</form>
|
|
56
67
|
);
|
|
57
68
|
},
|
|
@@ -1,24 +1,37 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { Button } from '../../ui-kit/Button/Button';
|
|
3
3
|
import { SubmitButton } from '../../ui-kit/Button/SubmitButton';
|
|
4
|
+
import { getStepAspects } from '../../utils/getStepAspects';
|
|
5
|
+
import { DEBIT_FORM_STEPS_ASPECTS } from './debitFormAspects';
|
|
4
6
|
|
|
5
7
|
export interface StepsNavigationButtonsProps {
|
|
6
8
|
step: number;
|
|
7
9
|
isSending: boolean;
|
|
8
10
|
onPrevStep?: () => void;
|
|
11
|
+
programId?: string | null;
|
|
12
|
+
productType?: string;
|
|
13
|
+
paymentSystem?: string;
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
export const StepsNavigationButtons = JSX<StepsNavigationButtonsProps>(
|
|
12
|
-
({ step, onPrevStep, isSending }) => {
|
|
17
|
+
({ step, onPrevStep, isSending, programId, productType = 'debitCard', paymentSystem }) => {
|
|
13
18
|
const isFirstStep = step === 0;
|
|
14
19
|
const isFinalStep = step === 5;
|
|
15
20
|
|
|
21
|
+
const aspects = getStepAspects({
|
|
22
|
+
step,
|
|
23
|
+
programId,
|
|
24
|
+
productType,
|
|
25
|
+
paymentSystem,
|
|
26
|
+
stepsConfig: DEBIT_FORM_STEPS_ASPECTS,
|
|
27
|
+
});
|
|
28
|
+
|
|
16
29
|
return (
|
|
17
30
|
<div className={'flex justify-between gap-m'}>
|
|
18
31
|
<Button onClick={onPrevStep} type="button" version="secondary" disabled={isFirstStep}>
|
|
19
32
|
Назад
|
|
20
33
|
</Button>
|
|
21
|
-
<SubmitButton isLoading={isSending}>
|
|
34
|
+
<SubmitButton isLoading={isSending} data={aspects}>
|
|
22
35
|
{isFinalStep ? 'Отправить заявку' : 'Далее'}
|
|
23
36
|
</SubmitButton>
|
|
24
37
|
</div>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type StepAspectsConfig } from '../../retail/utils/formAspectsConfig';
|
|
2
|
+
|
|
3
|
+
export const DEBIT_FORM_STEPS_ASPECTS: StepAspectsConfig[] = [
|
|
4
|
+
{ ymTargetName: 'debit_region' },
|
|
5
|
+
{ ymTargetName: 'debit_app_personal_data' },
|
|
6
|
+
{ ymTargetName: 'debit_app_card_data' },
|
|
7
|
+
];
|
|
@@ -2,16 +2,21 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
2
2
|
import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
3
|
import type { OnCloseProps } from '../../../model/OnCloseProps';
|
|
4
4
|
|
|
5
|
+
import { handleAspects } from '../../../hooks/useAspects/handleAspects';
|
|
6
|
+
import { useAspects } from '../../../hooks/useAspects/useAspects';
|
|
5
7
|
import { Button } from '../../../ui-kit/Button/Button';
|
|
6
8
|
import { Dialog } from '../../../ui-kit/DialogManager/Dialog';
|
|
7
9
|
import { Heading } from '../../../ui-kit/Heading/Heading';
|
|
8
10
|
import { Paragraph } from '../../../ui-kit/Paragraph/Paragraph';
|
|
11
|
+
import { type PreventableEventWithTarget } from '../../../ui-kit/PreventableEvent';
|
|
9
12
|
import { RadioButtonGroup } from '../../../ui-kit/RadioButtonGroup/RadioButtonGroup';
|
|
10
13
|
import { noop } from '../../../utils/noop';
|
|
14
|
+
import { getAspects } from '../../utils/commonAspects';
|
|
11
15
|
import { useDocumentDialog } from '../DocumentDialog/useDocumentDialog';
|
|
12
16
|
|
|
13
17
|
export interface ConsentBkiDialogProps extends OnCloseProps {
|
|
14
18
|
onSubmit?: (confirmStatus: string) => void;
|
|
19
|
+
productType?: string;
|
|
15
20
|
}
|
|
16
21
|
|
|
17
22
|
const defaultConsentText = {
|
|
@@ -32,15 +37,24 @@ const ITEMS = [
|
|
|
32
37
|
const CONSENT_BKI_ID = 2;
|
|
33
38
|
|
|
34
39
|
export const ConsentBkiDialog = JSX<ConsentBkiDialogProps>(
|
|
35
|
-
({ onSubmit = noop, onClose = noop }) => {
|
|
40
|
+
({ onSubmit = noop, onClose = noop, productType }) => {
|
|
36
41
|
const [confirmStatus, setConfirmStatus] = useState('');
|
|
37
42
|
const [showRefuseContent, setShowRefuseContent] = useState(false);
|
|
38
43
|
|
|
39
44
|
const { openDocument } = useDocumentDialog(CONSENT_BKI_ID);
|
|
40
45
|
|
|
46
|
+
const aspects = useAspects();
|
|
47
|
+
|
|
41
48
|
const handleSubmit = useCallback(() => {
|
|
49
|
+
if (confirmStatus === 'SIGNED') {
|
|
50
|
+
handleAspects({
|
|
51
|
+
aspectsAttributes: getAspects('consentBki', productType),
|
|
52
|
+
aspects,
|
|
53
|
+
ev: {} as PreventableEventWithTarget,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
42
56
|
onSubmit(confirmStatus);
|
|
43
|
-
}, [onSubmit, confirmStatus]);
|
|
57
|
+
}, [onSubmit, confirmStatus, aspects, productType]);
|
|
44
58
|
|
|
45
59
|
const handleConfirmChange = useCallback((value: string) => {
|
|
46
60
|
setConfirmStatus(value);
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { handleAspects } from '../../../hooks/useAspects/handleAspects';
|
|
2
|
+
import { useAspects, type Aspects } from '../../../hooks/useAspects/useAspects';
|
|
1
3
|
import { useDialog } from '../../../ui-kit/DialogManager/useDialog';
|
|
4
|
+
import { type PreventableEventWithTarget } from '../../../ui-kit/PreventableEvent';
|
|
2
5
|
import { updateUserProfile } from '../../api/updateUserProfile';
|
|
3
6
|
import { updateUserTask } from '../../api/updateUserTask';
|
|
7
|
+
import { getAspects } from '../../utils/commonAspects';
|
|
4
8
|
import { VerifyPhoneDialog } from '../VerifyPhoneDialog/VerifyPhoneDialog';
|
|
5
9
|
import { ConsentBkiDialog } from './ConsentBkiDialog';
|
|
6
10
|
|
|
@@ -10,71 +14,109 @@ type SubmitBkiConsentProps = {
|
|
|
10
14
|
onFail?: () => void;
|
|
11
15
|
taskId?: number;
|
|
12
16
|
participantId?: string | number;
|
|
17
|
+
productType?: string;
|
|
13
18
|
};
|
|
14
19
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
interface HandleSuccessVerifyParams {
|
|
21
|
+
profileId?: number;
|
|
22
|
+
taskId?: number;
|
|
23
|
+
participantId?: string | number;
|
|
24
|
+
aspects: Aspects;
|
|
25
|
+
onClose: () => void;
|
|
26
|
+
productType?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface HandleSubmitBkiConsentParams {
|
|
30
|
+
submitProps: SubmitBkiConsentProps;
|
|
31
|
+
verifyPhoneDialog: any;
|
|
32
|
+
aspects: Aspects;
|
|
33
|
+
onClose: () => void;
|
|
34
|
+
}
|
|
18
35
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
36
|
+
const createHandleSuccessVerify =
|
|
37
|
+
({
|
|
38
|
+
profileId,
|
|
39
|
+
taskId,
|
|
40
|
+
participantId,
|
|
41
|
+
aspects,
|
|
42
|
+
onClose,
|
|
43
|
+
productType,
|
|
44
|
+
}: HandleSuccessVerifyParams) =>
|
|
45
|
+
async (smsCode?: string) => {
|
|
46
|
+
try {
|
|
47
|
+
if (profileId) {
|
|
48
|
+
await updateUserProfile({
|
|
49
|
+
profile: {
|
|
50
|
+
id: profileId,
|
|
51
|
+
consentBkiFlg: true,
|
|
52
|
+
smsConsentBki: smsCode,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
} else if (taskId && participantId) {
|
|
56
|
+
await updateUserTask({
|
|
57
|
+
task: {
|
|
58
|
+
id: taskId,
|
|
59
|
+
participant: {
|
|
60
|
+
id: participantId,
|
|
27
61
|
consentBkiFlg: true,
|
|
28
62
|
smsConsentBki: smsCode,
|
|
29
63
|
},
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
task: {
|
|
34
|
-
id: taskId,
|
|
35
|
-
participant: {
|
|
36
|
-
id: participantId,
|
|
37
|
-
consentBkiFlg: true,
|
|
38
|
-
smsConsentBki: smsCode,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
sendToBank: false,
|
|
42
|
-
taskKind: 'SHORT',
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
onClose();
|
|
47
|
-
} catch (ex) {
|
|
48
|
-
console.log(ex);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
const handleSubmitBkiConsent =
|
|
53
|
-
({ phone, profileId, onFail, taskId, participantId }: SubmitBkiConsentProps) =>
|
|
54
|
-
async (confirmStatus: string) => {
|
|
55
|
-
if (confirmStatus === 'SIGNED' && phone) {
|
|
56
|
-
verifyPhoneDialog.open({
|
|
57
|
-
phone,
|
|
58
|
-
consents: ['согласие на запрос информации в БКИ'],
|
|
59
|
-
onSuccess: handleSuccessVerify(profileId, taskId, participantId),
|
|
60
|
-
onFail,
|
|
64
|
+
},
|
|
65
|
+
sendToBank: false,
|
|
66
|
+
taskKind: 'SHORT',
|
|
61
67
|
});
|
|
62
|
-
} else {
|
|
63
|
-
onClose();
|
|
64
68
|
}
|
|
65
|
-
|
|
69
|
+
handleAspects({
|
|
70
|
+
aspectsAttributes: getAspects('smsBki', productType),
|
|
71
|
+
aspects,
|
|
72
|
+
ev: {} as PreventableEventWithTarget,
|
|
73
|
+
});
|
|
66
74
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
75
|
+
onClose();
|
|
76
|
+
} catch (ex) {
|
|
77
|
+
console.log(ex);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const createHandleSubmitBkiConsent =
|
|
82
|
+
({ submitProps, verifyPhoneDialog, aspects, onClose }: HandleSubmitBkiConsentParams) =>
|
|
83
|
+
async (confirmStatus: string) => {
|
|
84
|
+
const { phone, profileId, onFail, taskId, participantId, productType } = submitProps;
|
|
85
|
+
if (confirmStatus === 'SIGNED' && phone) {
|
|
86
|
+
verifyPhoneDialog.open({
|
|
87
|
+
phone,
|
|
88
|
+
consents: ['согласие на запрос информации в БКИ'],
|
|
89
|
+
onSuccess: createHandleSuccessVerify({
|
|
72
90
|
profileId,
|
|
73
|
-
onFail,
|
|
74
91
|
taskId,
|
|
75
92
|
participantId,
|
|
93
|
+
aspects,
|
|
94
|
+
onClose,
|
|
95
|
+
productType,
|
|
96
|
+
}),
|
|
97
|
+
onFail,
|
|
98
|
+
});
|
|
99
|
+
} else {
|
|
100
|
+
onClose();
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export const useConsentBkiDialog = (onClose: () => void, productType?: string) => {
|
|
105
|
+
const { open } = useDialog(ConsentBkiDialog);
|
|
106
|
+
const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
|
|
107
|
+
const aspects = useAspects();
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
open: ({ phone, profileId, onFail, taskId, participantId }: SubmitBkiConsentProps) =>
|
|
111
|
+
open({
|
|
112
|
+
onSubmit: createHandleSubmitBkiConsent({
|
|
113
|
+
submitProps: { phone, profileId, onFail, taskId, participantId, productType },
|
|
114
|
+
verifyPhoneDialog,
|
|
115
|
+
aspects,
|
|
116
|
+
onClose,
|
|
76
117
|
}),
|
|
77
118
|
onClose,
|
|
119
|
+
productType,
|
|
78
120
|
}),
|
|
79
121
|
};
|
|
80
122
|
};
|