@redneckz/wildless-cms-uni-blocks 0.14.1076 → 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 +463 -250
- 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/components/Footer/Contacts.js +1 -1
- package/dist/components/Footer/Contacts.js.map +1 -1
- 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/Footer/Contacts.js +1 -1
- package/lib/components/Footer/Contacts.js.map +1 -1
- 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 +463 -250
- 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/components/Footer/Contacts.js +1 -1
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- 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/components/Footer/Contacts.js +1 -1
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- 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/components/Footer/Contacts.tsx +1 -1
- 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/components/Footer/Contacts.tsx +1 -1
- 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
|
@@ -6897,7 +6897,74 @@
|
|
|
6897
6897
|
restInputs: inputs.filter(({ name }) => !Object.keys(productTypeToConsentsMap[productType]).includes(String(name))),
|
|
6898
6898
|
});
|
|
6899
6899
|
|
|
6900
|
-
const
|
|
6900
|
+
const YANDEX_ID = projectSettings.YANDEX_METRIKA_ID || '92511315';
|
|
6901
|
+
|
|
6902
|
+
const ASPECTS_MAP = {
|
|
6903
|
+
leadForm: {
|
|
6904
|
+
debitCard: 'debit_lead_form',
|
|
6905
|
+
creditCard: 'card_lead_form',
|
|
6906
|
+
default: 'lead_form',
|
|
6907
|
+
},
|
|
6908
|
+
draft: {
|
|
6909
|
+
debitCard: 'debit_draft_app',
|
|
6910
|
+
creditCard: 'card_draft_app',
|
|
6911
|
+
default: 'draft_app',
|
|
6912
|
+
},
|
|
6913
|
+
smsAuth: {
|
|
6914
|
+
debitCard: 'debit_sms_auth',
|
|
6915
|
+
creditCard: 'card_sms_auth',
|
|
6916
|
+
default: 'sms_auth',
|
|
6917
|
+
},
|
|
6918
|
+
consentBki: {
|
|
6919
|
+
creditCard: 'card_consent_bki',
|
|
6920
|
+
default: 'consent_bki',
|
|
6921
|
+
},
|
|
6922
|
+
smsBki: {
|
|
6923
|
+
creditCard: 'card_sms_bki',
|
|
6924
|
+
default: 'sms_bki',
|
|
6925
|
+
},
|
|
6926
|
+
current: {
|
|
6927
|
+
debitCard: 'debit_current_app',
|
|
6928
|
+
creditCard: 'card_current_app',
|
|
6929
|
+
default: 'current_app',
|
|
6930
|
+
},
|
|
6931
|
+
timer: {
|
|
6932
|
+
creditCard: 'card_timer',
|
|
6933
|
+
default: 'timer',
|
|
6934
|
+
},
|
|
6935
|
+
timerEnd: {
|
|
6936
|
+
creditCard: 'card_timer_end',
|
|
6937
|
+
default: 'timer_end',
|
|
6938
|
+
},
|
|
6939
|
+
preDecision: {
|
|
6940
|
+
creditCard: 'card_pre_decision',
|
|
6941
|
+
default: 'pre_decision',
|
|
6942
|
+
},
|
|
6943
|
+
revision: {
|
|
6944
|
+
creditCard: 'card_revision',
|
|
6945
|
+
default: 'revision',
|
|
6946
|
+
},
|
|
6947
|
+
refuse: {
|
|
6948
|
+
creditCard: 'card_refuse',
|
|
6949
|
+
default: 'refuse',
|
|
6950
|
+
},
|
|
6951
|
+
};
|
|
6952
|
+
const getAspects = (aspectType, productType) => {
|
|
6953
|
+
const aspectForType = ASPECTS_MAP[aspectType];
|
|
6954
|
+
return [
|
|
6955
|
+
{
|
|
6956
|
+
aspectName: 'ymReachGoal',
|
|
6957
|
+
params: { yandexId: YANDEX_ID, targetName: aspectForType[productType || 'default'] },
|
|
6958
|
+
},
|
|
6959
|
+
];
|
|
6960
|
+
};
|
|
6961
|
+
|
|
6962
|
+
const renderSubmitButton = (button, options) => {
|
|
6963
|
+
const isSending = options?.isSending;
|
|
6964
|
+
const productType = options?.productType;
|
|
6965
|
+
const defaultAspects = getAspects('leadForm', productType);
|
|
6966
|
+
return (jsx(SubmitButton$1, { className: "w-full @xl:w-auto", isLoading: isSending ?? false, testId: "LeadSubmitButton", data: defaultAspects, children: button?.text ? button.text : 'Отправить заявку' }));
|
|
6967
|
+
};
|
|
6901
6968
|
|
|
6902
6969
|
const createDraftTask = async (body) => {
|
|
6903
6970
|
const isNewMicroservice = checkNewMicroservice();
|
|
@@ -7162,13 +7229,21 @@
|
|
|
7162
7229
|
{ id: 'REFUSE', text: 'Отказаться' },
|
|
7163
7230
|
];
|
|
7164
7231
|
const CONSENT_BKI_ID = 2;
|
|
7165
|
-
const ConsentBkiDialog = JSX(({ onSubmit = noop, onClose = noop }) => {
|
|
7232
|
+
const ConsentBkiDialog = JSX(({ onSubmit = noop, onClose = noop, productType }) => {
|
|
7166
7233
|
const [confirmStatus, setConfirmStatus] = useState('');
|
|
7167
7234
|
const [showRefuseContent, setShowRefuseContent] = useState(false);
|
|
7168
7235
|
const { openDocument } = useDocumentDialog(CONSENT_BKI_ID);
|
|
7236
|
+
const aspects = useAspects();
|
|
7169
7237
|
const handleSubmit = useCallback(() => {
|
|
7238
|
+
if (confirmStatus === 'SIGNED') {
|
|
7239
|
+
handleAspects({
|
|
7240
|
+
aspectsAttributes: getAspects('consentBki', productType),
|
|
7241
|
+
aspects,
|
|
7242
|
+
ev: {},
|
|
7243
|
+
});
|
|
7244
|
+
}
|
|
7170
7245
|
onSubmit(confirmStatus);
|
|
7171
|
-
}, [onSubmit, confirmStatus]);
|
|
7246
|
+
}, [onSubmit, confirmStatus, aspects, productType]);
|
|
7172
7247
|
const handleConfirmChange = useCallback((value) => {
|
|
7173
7248
|
setConfirmStatus(value);
|
|
7174
7249
|
setShowRefuseContent(value === 'REFUSE');
|
|
@@ -7177,63 +7252,77 @@
|
|
|
7177
7252
|
return (jsx(Dialog, { onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx("div", { role: "button", onClick: openDocument, children: jsx(Heading, { className: "text-center text-balance", headingType: "h2", title: consentText.title }) }), jsx(Paragraph, { align: "text-center", children: consentText.description }), jsx(RadioButtonGroup, { className: "whitespace-normal", orientation: "horizontal", items: ITEMS, value: confirmStatus, onChange: handleConfirmChange }), jsx(Button, { disabled: !confirmStatus, type: "button", onClick: handleSubmit, testId: "bki-button", children: "\u0414\u0430\u043B\u0435\u0435" })] }) }));
|
|
7178
7253
|
});
|
|
7179
7254
|
|
|
7180
|
-
const
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7255
|
+
const createHandleSuccessVerify = ({ profileId, taskId, participantId, aspects, onClose, productType, }) => async (smsCode) => {
|
|
7256
|
+
try {
|
|
7257
|
+
if (profileId) {
|
|
7258
|
+
await updateUserProfile({
|
|
7259
|
+
profile: {
|
|
7260
|
+
id: profileId,
|
|
7261
|
+
consentBkiFlg: true,
|
|
7262
|
+
smsConsentBki: smsCode,
|
|
7263
|
+
},
|
|
7264
|
+
});
|
|
7265
|
+
}
|
|
7266
|
+
else if (taskId && participantId) {
|
|
7267
|
+
await updateUserTask({
|
|
7268
|
+
task: {
|
|
7269
|
+
id: taskId,
|
|
7270
|
+
participant: {
|
|
7271
|
+
id: participantId,
|
|
7189
7272
|
consentBkiFlg: true,
|
|
7190
7273
|
smsConsentBki: smsCode,
|
|
7191
7274
|
},
|
|
7192
|
-
}
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
await updateUserTask({
|
|
7196
|
-
task: {
|
|
7197
|
-
id: taskId,
|
|
7198
|
-
participant: {
|
|
7199
|
-
id: participantId,
|
|
7200
|
-
consentBkiFlg: true,
|
|
7201
|
-
smsConsentBki: smsCode,
|
|
7202
|
-
},
|
|
7203
|
-
},
|
|
7204
|
-
sendToBank: false,
|
|
7205
|
-
taskKind: 'SHORT',
|
|
7206
|
-
});
|
|
7207
|
-
}
|
|
7208
|
-
onClose();
|
|
7209
|
-
}
|
|
7210
|
-
catch (ex) {
|
|
7211
|
-
console.log(ex);
|
|
7212
|
-
}
|
|
7213
|
-
};
|
|
7214
|
-
const handleSubmitBkiConsent = ({ phone, profileId, onFail, taskId, participantId }) => async (confirmStatus) => {
|
|
7215
|
-
if (confirmStatus === 'SIGNED' && phone) {
|
|
7216
|
-
verifyPhoneDialog.open({
|
|
7217
|
-
phone,
|
|
7218
|
-
consents: ['согласие на запрос информации в БКИ'],
|
|
7219
|
-
onSuccess: handleSuccessVerify(profileId, taskId, participantId),
|
|
7220
|
-
onFail,
|
|
7275
|
+
},
|
|
7276
|
+
sendToBank: false,
|
|
7277
|
+
taskKind: 'SHORT',
|
|
7221
7278
|
});
|
|
7222
7279
|
}
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7280
|
+
handleAspects({
|
|
7281
|
+
aspectsAttributes: getAspects('smsBki', productType),
|
|
7282
|
+
aspects,
|
|
7283
|
+
ev: {},
|
|
7284
|
+
});
|
|
7285
|
+
onClose();
|
|
7286
|
+
}
|
|
7287
|
+
catch (ex) {
|
|
7288
|
+
console.log(ex);
|
|
7289
|
+
}
|
|
7290
|
+
};
|
|
7291
|
+
const createHandleSubmitBkiConsent = ({ submitProps, verifyPhoneDialog, aspects, onClose }) => async (confirmStatus) => {
|
|
7292
|
+
const { phone, profileId, onFail, taskId, participantId, productType } = submitProps;
|
|
7293
|
+
if (confirmStatus === 'SIGNED' && phone) {
|
|
7294
|
+
verifyPhoneDialog.open({
|
|
7295
|
+
phone,
|
|
7296
|
+
consents: ['согласие на запрос информации в БКИ'],
|
|
7297
|
+
onSuccess: createHandleSuccessVerify({
|
|
7231
7298
|
profileId,
|
|
7232
|
-
onFail,
|
|
7233
7299
|
taskId,
|
|
7234
7300
|
participantId,
|
|
7301
|
+
aspects,
|
|
7302
|
+
onClose,
|
|
7303
|
+
productType,
|
|
7304
|
+
}),
|
|
7305
|
+
onFail,
|
|
7306
|
+
});
|
|
7307
|
+
}
|
|
7308
|
+
else {
|
|
7309
|
+
onClose();
|
|
7310
|
+
}
|
|
7311
|
+
};
|
|
7312
|
+
const useConsentBkiDialog = (onClose, productType) => {
|
|
7313
|
+
const { open } = useDialog(ConsentBkiDialog);
|
|
7314
|
+
const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
|
|
7315
|
+
const aspects = useAspects();
|
|
7316
|
+
return {
|
|
7317
|
+
open: ({ phone, profileId, onFail, taskId, participantId }) => open({
|
|
7318
|
+
onSubmit: createHandleSubmitBkiConsent({
|
|
7319
|
+
submitProps: { phone, profileId, onFail, taskId, participantId, productType },
|
|
7320
|
+
verifyPhoneDialog,
|
|
7321
|
+
aspects,
|
|
7322
|
+
onClose,
|
|
7235
7323
|
}),
|
|
7236
7324
|
onClose,
|
|
7325
|
+
productType,
|
|
7237
7326
|
}),
|
|
7238
7327
|
};
|
|
7239
7328
|
};
|
|
@@ -7296,10 +7385,10 @@
|
|
|
7296
7385
|
return undefined;
|
|
7297
7386
|
};
|
|
7298
7387
|
|
|
7299
|
-
const DraftActionButton = JSX(({ title, icon, description, name, onClick = noop }) => (jsxs("button", { className: "flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green", type: "button", onClick: onClick, "data-test-id": name, children: [jsx(Img, { image: { icon, iconVersion: 'normal' }, width: "78", height: "78" }), jsxs("div", { className: "flex flex-col items-start gap-xs md:w-72 md:mr-lg", children: [title ? (jsx(Text, { font: "font-medium", size: "text-s", children: title })) : null, description ? (jsx(Text, { color: "text-secondary-text", size: "text-xs", children: description })) : null] })] })));
|
|
7388
|
+
const DraftActionButton = JSX(({ title, icon, description, name, onClick = noop, data }) => (jsxs("button", { className: "flex gap-lg items-center border border-gray/30 rounded-xl cursor-pointer p-4 hover:border-green", type: "button", onClick: onClick, "data-test-id": name, ...getAspectsAttributes(data), children: [jsx(Img, { image: { icon, iconVersion: 'normal' }, width: "78", height: "78" }), jsxs("div", { className: "flex flex-col items-start gap-xs md:w-72 md:mr-lg", children: [title ? (jsx(Text, { font: "font-medium", size: "text-s", children: title })) : null, description ? (jsx(Text, { color: "text-secondary-text", size: "text-xs", children: description })) : null] })] })));
|
|
7300
7389
|
|
|
7301
|
-
const DraftDialogContent = JSX(function ({ createdDate, productData, isFromLead, handleGoToDraft, handleGoToNewTask, onClose, }) {
|
|
7302
|
-
return (jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft, name: "go-to-draft-button" }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: productData.description, onClick: isFromLead ? onClose : handleGoToNewTask, name: "go-to-current-task-button" })] })] }));
|
|
7390
|
+
const DraftDialogContent = JSX(function ({ createdDate, productData, isFromLead, handleGoToDraft, handleGoToNewTask, onClose, draftAspects, currentAspects, }) {
|
|
7391
|
+
return (jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft, name: "go-to-draft-button", data: draftAspects }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: productData.description, onClick: isFromLead ? onClose : handleGoToNewTask, name: "go-to-current-task-button", data: isFromLead ? currentAspects : undefined })] })] }));
|
|
7303
7392
|
});
|
|
7304
7393
|
|
|
7305
7394
|
const fieldsNamesToContactKeysMap = {
|
|
@@ -7580,7 +7669,19 @@
|
|
|
7580
7669
|
}
|
|
7581
7670
|
navigator.assign(productData.newTaskLink);
|
|
7582
7671
|
}, [task.id, productData.newTaskLink, isNewMicroservice]);
|
|
7583
|
-
|
|
7672
|
+
let productType;
|
|
7673
|
+
if (isDebit) {
|
|
7674
|
+
productType = 'debitCard';
|
|
7675
|
+
}
|
|
7676
|
+
else if (taskType === 'card') {
|
|
7677
|
+
productType = 'creditCard';
|
|
7678
|
+
}
|
|
7679
|
+
else {
|
|
7680
|
+
productType = 'credit';
|
|
7681
|
+
}
|
|
7682
|
+
const draftAspects = getAspects('draft', productType);
|
|
7683
|
+
const currentAspects = getAspects('current', productType);
|
|
7684
|
+
return (jsx(Dialog, { onClose: onClose, children: jsx(DraftDialogContent, { createdDate: createdDate, productData: productData, isFromLead: isFromLead, handleGoToDraft: handleGoToDraft, handleGoToNewTask: handleGoToNewTask, onClose: onClose, draftAspects: draftAspects, currentAspects: currentAspects }) }));
|
|
7584
7685
|
});
|
|
7585
7686
|
|
|
7586
7687
|
const EmptyDraftDialog = JSX(function ({ taskType, isDebit, onClose = noop, }) {
|
|
@@ -7758,11 +7859,12 @@
|
|
|
7758
7859
|
const sessionStore = useSessionStore();
|
|
7759
7860
|
const leadFormStore = useLeadFormStore();
|
|
7760
7861
|
const sendAspects = useSendLeadFormAspects({ data });
|
|
7862
|
+
const aspects = useAspects();
|
|
7761
7863
|
const navigator = locationNavigator();
|
|
7762
7864
|
const goToNextStep = useCallback(() => {
|
|
7763
7865
|
navigator.assign(nextStepLink);
|
|
7764
7866
|
}, []);
|
|
7765
|
-
const consentBkiDialog = useConsentBkiDialog(goToNextStep);
|
|
7867
|
+
const consentBkiDialog = useConsentBkiDialog(goToNextStep, productType);
|
|
7766
7868
|
const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
|
|
7767
7869
|
const draftDialog = useDraftDialog();
|
|
7768
7870
|
const handleFailSendForm = () => {
|
|
@@ -7781,51 +7883,28 @@
|
|
|
7781
7883
|
if (!profileId) {
|
|
7782
7884
|
throw new Error();
|
|
7783
7885
|
}
|
|
7784
|
-
const
|
|
7785
|
-
|
|
7886
|
+
const oldMicroserviceProps = {
|
|
7887
|
+
common: {
|
|
7888
|
+
aspects,
|
|
7786
7889
|
programId,
|
|
7890
|
+
productType,
|
|
7891
|
+
sendAspects,
|
|
7892
|
+
verifyPhoneDialog,
|
|
7893
|
+
handleFailSendForm,
|
|
7787
7894
|
profileId,
|
|
7895
|
+
},
|
|
7896
|
+
taskData: {
|
|
7788
7897
|
formData: transformedFormData,
|
|
7789
|
-
productType,
|
|
7790
7898
|
referalData,
|
|
7791
7899
|
marketingInfo,
|
|
7792
7900
|
saveUserData,
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
goToNextStep();
|
|
7798
|
-
}
|
|
7799
|
-
else {
|
|
7800
|
-
consentBkiDialog.open({
|
|
7801
|
-
phone: transformedFormData.phone,
|
|
7802
|
-
profileId,
|
|
7803
|
-
onFail: handleFailSendForm,
|
|
7804
|
-
});
|
|
7805
|
-
}
|
|
7806
|
-
};
|
|
7807
|
-
const handleSuccessVerify = async () => {
|
|
7808
|
-
try {
|
|
7809
|
-
const lastTaskId = await getLastTaskStatus({ profileId, programId });
|
|
7810
|
-
if (lastTaskId) {
|
|
7811
|
-
const task = await getTaskById({ taskId: lastTaskId });
|
|
7812
|
-
verifyPhoneDialog.close();
|
|
7813
|
-
draftDialog.open({
|
|
7814
|
-
task,
|
|
7815
|
-
isFromLead: true,
|
|
7816
|
-
taskType: productTypeToTaskType(productType),
|
|
7817
|
-
sendAspects,
|
|
7818
|
-
onClose: sendCurrentTask,
|
|
7819
|
-
});
|
|
7820
|
-
}
|
|
7821
|
-
else {
|
|
7822
|
-
await sendCurrentTask();
|
|
7823
|
-
}
|
|
7824
|
-
}
|
|
7825
|
-
catch {
|
|
7826
|
-
handleFailSendForm();
|
|
7827
|
-
}
|
|
7901
|
+
},
|
|
7902
|
+
goToNextStep,
|
|
7903
|
+
consentBkiDialog,
|
|
7904
|
+
draftDialog,
|
|
7828
7905
|
};
|
|
7906
|
+
const sendCurrentTask = createSendCurrentTaskOld(oldMicroserviceProps);
|
|
7907
|
+
const handleSuccessVerify = createHandleSuccessVerifyOld(oldMicroserviceProps, sendCurrentTask);
|
|
7829
7908
|
const acceptedConsents = getAcceptedConsents(transformedFormData, productType);
|
|
7830
7909
|
verifyPhoneDialog.open({
|
|
7831
7910
|
phone: transformedFormData.phone,
|
|
@@ -7853,6 +7932,7 @@
|
|
|
7853
7932
|
sendAspects,
|
|
7854
7933
|
verifyPhoneDialog,
|
|
7855
7934
|
handleFailSendForm,
|
|
7935
|
+
aspects,
|
|
7856
7936
|
};
|
|
7857
7937
|
const taskData = {
|
|
7858
7938
|
formData: transformedFormData,
|
|
@@ -7912,8 +7992,13 @@
|
|
|
7912
7992
|
});
|
|
7913
7993
|
};
|
|
7914
7994
|
const createHandleSuccessVerifyNew = ({ common, taskData, draftDialog, consentBkiDialog, }) => async () => {
|
|
7915
|
-
const {
|
|
7995
|
+
const { verifyPhoneDialog, sendAspects, handleFailSendForm, programId, productType, aspects } = common;
|
|
7916
7996
|
const { formData } = taskData;
|
|
7997
|
+
handleAspects({
|
|
7998
|
+
aspectsAttributes: getAspects('leadForm', productType),
|
|
7999
|
+
aspects,
|
|
8000
|
+
ev: {},
|
|
8001
|
+
});
|
|
7917
8002
|
try {
|
|
7918
8003
|
const participantData = await createParticipant({
|
|
7919
8004
|
phone: formatPhone(formData.phone),
|
|
@@ -7960,6 +8045,62 @@
|
|
|
7960
8045
|
handleFailSendForm();
|
|
7961
8046
|
}
|
|
7962
8047
|
};
|
|
8048
|
+
const createSendCurrentTaskOld = (props) => async () => {
|
|
8049
|
+
const { common, taskData, goToNextStep, consentBkiDialog } = props;
|
|
8050
|
+
const { programId, profileId, productType, verifyPhoneDialog, handleFailSendForm } = common;
|
|
8051
|
+
const { formData } = taskData;
|
|
8052
|
+
await updateUserData({
|
|
8053
|
+
programId,
|
|
8054
|
+
profileId,
|
|
8055
|
+
formData,
|
|
8056
|
+
productType,
|
|
8057
|
+
referalData: taskData.referalData,
|
|
8058
|
+
marketingInfo: taskData.marketingInfo,
|
|
8059
|
+
saveUserData: taskData.saveUserData,
|
|
8060
|
+
sendAspects: common.sendAspects,
|
|
8061
|
+
});
|
|
8062
|
+
verifyPhoneDialog.close();
|
|
8063
|
+
if (productType === 'debitCard') {
|
|
8064
|
+
goToNextStep();
|
|
8065
|
+
}
|
|
8066
|
+
else {
|
|
8067
|
+
consentBkiDialog.open({
|
|
8068
|
+
phone: formData.phone,
|
|
8069
|
+
profileId,
|
|
8070
|
+
onFail: handleFailSendForm,
|
|
8071
|
+
});
|
|
8072
|
+
}
|
|
8073
|
+
};
|
|
8074
|
+
const createHandleSuccessVerifyOld = (props, sendCurrentTask) => async () => {
|
|
8075
|
+
const { common, draftDialog } = props;
|
|
8076
|
+
const { aspects, programId, sendAspects, verifyPhoneDialog, handleFailSendForm, profileId } = common;
|
|
8077
|
+
const productType = common.productType;
|
|
8078
|
+
handleAspects({
|
|
8079
|
+
aspectsAttributes: getAspects('leadForm', productType),
|
|
8080
|
+
aspects,
|
|
8081
|
+
ev: {},
|
|
8082
|
+
});
|
|
8083
|
+
try {
|
|
8084
|
+
const lastTaskId = await getLastTaskStatus({ profileId, programId });
|
|
8085
|
+
if (lastTaskId) {
|
|
8086
|
+
const task = await getTaskById({ taskId: lastTaskId });
|
|
8087
|
+
verifyPhoneDialog.close();
|
|
8088
|
+
draftDialog.open({
|
|
8089
|
+
task,
|
|
8090
|
+
isFromLead: true,
|
|
8091
|
+
taskType: productTypeToTaskType(productType),
|
|
8092
|
+
sendAspects,
|
|
8093
|
+
onClose: sendCurrentTask,
|
|
8094
|
+
});
|
|
8095
|
+
}
|
|
8096
|
+
else {
|
|
8097
|
+
await sendCurrentTask();
|
|
8098
|
+
}
|
|
8099
|
+
}
|
|
8100
|
+
catch {
|
|
8101
|
+
handleFailSendForm();
|
|
8102
|
+
}
|
|
8103
|
+
};
|
|
7963
8104
|
const getAcceptedConsents = (formData, productType) => {
|
|
7964
8105
|
const consents = productTypeToConsentsMap[productType];
|
|
7965
8106
|
return Object.keys(consents)
|
|
@@ -8517,7 +8658,7 @@
|
|
|
8517
8658
|
reset();
|
|
8518
8659
|
}
|
|
8519
8660
|
}, [leadForm?.current, esiaStatus]);
|
|
8520
|
-
return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [!esiaStatus && !isFrame ? (jsx(EsiaLoginBanner, { onChangeEsiaStatus: setEsiaStatus, productType: productType })) : null, jsxs("form", { onSubmit: onSubmitWithPrecondition, className: "space-y-m relative", ref: leadForm, children: [esiaStatus === EsiaStatuses.Pending ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$1({ field, inputs: _?.inputs }, productType)] }, `section-${i}`))), renderSubmitButton(button, isSending), esiaStatus === EsiaStatuses.Error ? (jsx(Text, { size: "text-m", font: "font-medium", color: "text-error", children: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438 \u0434\u043B\u044F \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0437\u0430\u044F\u0432\u043A\u0438 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0432\u0440\u0443\u0447\u043D\u0443\u044E." })) : null] })] }));
|
|
8661
|
+
return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [!esiaStatus && !isFrame ? (jsx(EsiaLoginBanner, { onChangeEsiaStatus: setEsiaStatus, productType: productType })) : null, jsxs("form", { onSubmit: onSubmitWithPrecondition, className: "space-y-m relative", ref: leadForm, children: [esiaStatus === EsiaStatuses.Pending ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$1({ field, inputs: _?.inputs }, productType)] }, `section-${i}`))), renderSubmitButton(button, { isSending, productType }), esiaStatus === EsiaStatuses.Error ? (jsx(Text, { size: "text-m", font: "font-medium", color: "text-error", children: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438 \u0434\u043B\u044F \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u044F \u0437\u0430\u044F\u0432\u043A\u0438 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u043E\u043B\u044F \u0432\u0440\u0443\u0447\u043D\u0443\u044E." })) : null] })] }));
|
|
8521
8662
|
});
|
|
8522
8663
|
const getInputs = (applicationFormData) => (applicationFormData?.flatMap((_) => _?.inputs) || []);
|
|
8523
8664
|
const getExtendedValidatorObj = (productType) => ({
|
|
@@ -10454,10 +10595,36 @@
|
|
|
10454
10595
|
};
|
|
10455
10596
|
const renderItem$2 = ({ label, description }) => (jsxs("div", { className: "flex flex-col", children: [jsx(Text, { color: "text-secondary-text", size: "text-l", children: label }), jsx(Text, { color: "text-primary-text", size: "text-xl", children: description })] }));
|
|
10456
10597
|
|
|
10457
|
-
const FailedStatusContent$2 = JSX(() =>
|
|
10598
|
+
const FailedStatusContent$2 = JSX(() => {
|
|
10599
|
+
const aspects = useAspects();
|
|
10600
|
+
useEffect(() => {
|
|
10601
|
+
handleAspects({
|
|
10602
|
+
aspectsAttributes: getAspects('refuse', 'creditCard'),
|
|
10603
|
+
aspects,
|
|
10604
|
+
ev: {},
|
|
10605
|
+
});
|
|
10606
|
+
}, []);
|
|
10607
|
+
return (jsx(FormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0412\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435", description: "\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u0411\u0430\u043D\u043A \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u043E\u0434\u043E\u0431\u0440\u0438\u0442\u044C \u0412\u0430\u0448\u0443 \u0437\u0430\u044F\u0432\u043A\u0443 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0434\u0430\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443 \u043F\u043E\u0437\u0436\u0435. \u0421\u043F\u0430\u0441\u0438\u0431\u043E \u0437\u0430 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0432 \u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB.", buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
|
|
10608
|
+
});
|
|
10458
10609
|
|
|
10459
10610
|
const PendingStatusContent$2 = JSX(({ onExpire }) => {
|
|
10460
10611
|
const { statusInfo } = useRetailFormStore();
|
|
10612
|
+
const aspects = useAspects();
|
|
10613
|
+
useEffect(() => {
|
|
10614
|
+
handleAspects({
|
|
10615
|
+
aspectsAttributes: getAspects('timer', 'creditCard'),
|
|
10616
|
+
aspects,
|
|
10617
|
+
ev: {},
|
|
10618
|
+
});
|
|
10619
|
+
}, []);
|
|
10620
|
+
const handleExpireWithEvent = () => {
|
|
10621
|
+
handleAspects({
|
|
10622
|
+
aspectsAttributes: getAspects('timerEnd', 'creditCard'),
|
|
10623
|
+
aspects,
|
|
10624
|
+
ev: {},
|
|
10625
|
+
});
|
|
10626
|
+
onExpire();
|
|
10627
|
+
};
|
|
10461
10628
|
return (jsx(FormStatus, { interval: 300, title: "\u0417\u0430\u044F\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430", description: "\u041D\u0435 \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u043E\u043A\u043D\u043E, \u0441\u043A\u043E\u0440\u043E \u0441\u043E\u043E\u0431\u0449\u0438\u043C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442", sectionInfoTitle: "\u0417\u0430\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u043E \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0439 \u043A\u0430\u0440\u0442\u0435", sectionInfo: [
|
|
10462
10629
|
{
|
|
10463
10630
|
label: 'Название продукта',
|
|
@@ -10467,11 +10634,19 @@
|
|
|
10467
10634
|
label: 'Категория',
|
|
10468
10635
|
description: statusInfo?.cardCategory,
|
|
10469
10636
|
},
|
|
10470
|
-
], onExpire:
|
|
10637
|
+
], onExpire: handleExpireWithEvent }));
|
|
10471
10638
|
});
|
|
10472
10639
|
|
|
10473
10640
|
const ReworkStatusContent$1 = JSX(() => {
|
|
10474
10641
|
const { statusInfo } = useRetailFormStore();
|
|
10642
|
+
const aspects = useAspects();
|
|
10643
|
+
useEffect(() => {
|
|
10644
|
+
handleAspects({
|
|
10645
|
+
aspectsAttributes: getAspects('revision', 'creditCard'),
|
|
10646
|
+
aspects,
|
|
10647
|
+
ev: {},
|
|
10648
|
+
});
|
|
10649
|
+
}, []);
|
|
10475
10650
|
const isCourierDelivery = statusInfo?.methodObtain === 'courier';
|
|
10476
10651
|
const infoAdditional = isCourierDelivery
|
|
10477
10652
|
? [
|
|
@@ -10501,6 +10676,14 @@
|
|
|
10501
10676
|
|
|
10502
10677
|
const SuccessStatusCardContent = JSX(() => {
|
|
10503
10678
|
const { statusInfo } = useRetailFormStore();
|
|
10679
|
+
const aspects = useAspects();
|
|
10680
|
+
useEffect(() => {
|
|
10681
|
+
handleAspects({
|
|
10682
|
+
aspectsAttributes: getAspects('preDecision', 'creditCard'),
|
|
10683
|
+
aspects,
|
|
10684
|
+
ev: {},
|
|
10685
|
+
});
|
|
10686
|
+
}, []);
|
|
10504
10687
|
return (jsx(FormStatus, { title: "\u0411\u0430\u043D\u043A \u043E\u0434\u043E\u0431\u0440\u0438\u043B \u0412\u0430\u043C \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0443\u044E \u043A\u0430\u0440\u0442\u0443", description: "\u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0412\u0430\u0448\u0443 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0443\u044E \u043A\u0430\u0440\u0442\u0443", sectionInfo: getSectionInfo(statusInfo), buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
|
|
10505
10688
|
});
|
|
10506
10689
|
const getSectionInfo = (statusInfo) => {
|
|
@@ -10630,10 +10813,88 @@
|
|
|
10630
10813
|
inn: organizationInnValidator(formState.isDadataOrganization),
|
|
10631
10814
|
})(formState);
|
|
10632
10815
|
|
|
10633
|
-
const
|
|
10816
|
+
const getCreditInfo = (programmId) => {
|
|
10817
|
+
switch (programmId) {
|
|
10818
|
+
case '11': {
|
|
10819
|
+
return {
|
|
10820
|
+
name: 'Потребительский кредит на рефинансирование',
|
|
10821
|
+
description: 'Погашение основного долга по кредиту, иные цели и оплату страхования',
|
|
10822
|
+
};
|
|
10823
|
+
}
|
|
10824
|
+
case '10':
|
|
10825
|
+
default: {
|
|
10826
|
+
return {
|
|
10827
|
+
name: 'Кредит на любые цели',
|
|
10828
|
+
description: 'На любые цели',
|
|
10829
|
+
};
|
|
10830
|
+
}
|
|
10831
|
+
}
|
|
10832
|
+
};
|
|
10833
|
+
|
|
10834
|
+
const getVisitParams = (programId, productType, paymentSystem) => {
|
|
10835
|
+
const creditInfo = getCreditInfo(programId ?? null);
|
|
10836
|
+
const productName = creditInfo?.name || '';
|
|
10837
|
+
const productTypeValue = productType ?? '';
|
|
10838
|
+
if (paymentSystem && productType !== 'credit') {
|
|
10839
|
+
return {
|
|
10840
|
+
[productTypeValue]: {
|
|
10841
|
+
[productName]: paymentSystem,
|
|
10842
|
+
},
|
|
10843
|
+
};
|
|
10844
|
+
}
|
|
10845
|
+
else {
|
|
10846
|
+
return {
|
|
10847
|
+
[productTypeValue]: productName,
|
|
10848
|
+
};
|
|
10849
|
+
}
|
|
10850
|
+
};
|
|
10851
|
+
const getStepAspects = ({ step, programId, productType, paymentSystem, stepsConfig, }) => {
|
|
10852
|
+
const config = stepsConfig[step];
|
|
10853
|
+
if (!config) {
|
|
10854
|
+
return [];
|
|
10855
|
+
}
|
|
10856
|
+
const visitParams = getVisitParams(programId, productType, paymentSystem);
|
|
10857
|
+
const aspects = [];
|
|
10858
|
+
aspects.push({
|
|
10859
|
+
aspectName: 'ymReachGoal',
|
|
10860
|
+
params: {
|
|
10861
|
+
yandexId: YANDEX_ID,
|
|
10862
|
+
targetName: config.ymTargetName,
|
|
10863
|
+
...visitParams,
|
|
10864
|
+
},
|
|
10865
|
+
});
|
|
10866
|
+
if (config.snowplowEventAction) {
|
|
10867
|
+
aspects.push({
|
|
10868
|
+
aspectName: 'snowplowEvent',
|
|
10869
|
+
params: {
|
|
10870
|
+
eventAction: config.snowplowEventAction,
|
|
10871
|
+
eventCategory: config.snowplowEventCategory || 'naturalCredits',
|
|
10872
|
+
eventValueText: config.snowplowEventValueText || '',
|
|
10873
|
+
},
|
|
10874
|
+
});
|
|
10875
|
+
}
|
|
10876
|
+
return aspects;
|
|
10877
|
+
};
|
|
10878
|
+
|
|
10879
|
+
const CREDIT_CARD_FORM_STEPS_ASPECTS = [
|
|
10880
|
+
{ ymTargetName: 'card_credit_calculator' },
|
|
10881
|
+
{ ymTargetName: 'card_app_personal_data' },
|
|
10882
|
+
{ ymTargetName: 'card_app_work' },
|
|
10883
|
+
{ ymTargetName: 'card_app_income' },
|
|
10884
|
+
{ ymTargetName: 'card_app_bank_office' },
|
|
10885
|
+
];
|
|
10886
|
+
|
|
10887
|
+
const StepsNavigationButtons$2 = JSX(({ step, isSending, onPrevStep, programId, productType, paymentSystem }) => {
|
|
10634
10888
|
const isFirstStep = step === 0;
|
|
10635
10889
|
const isFinalStep = step === 5;
|
|
10636
|
-
|
|
10890
|
+
const aspects = getStepAspects({
|
|
10891
|
+
step,
|
|
10892
|
+
programId,
|
|
10893
|
+
productType,
|
|
10894
|
+
paymentSystem,
|
|
10895
|
+
stepsConfig: CREDIT_CARD_FORM_STEPS_ASPECTS,
|
|
10896
|
+
});
|
|
10897
|
+
return (jsxs("div", { className: "flex justify-between gap-m", children: [jsx(Button, { version: "secondary", disabled: isFirstStep, onClick: onPrevStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(SubmitButton$1, { isLoading: isSending, data: aspects, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
10637
10898
|
});
|
|
10638
10899
|
|
|
10639
10900
|
const getInitialFormState = (step, formState, formStateMap) => ({
|
|
@@ -10968,6 +11229,7 @@
|
|
|
10968
11229
|
|
|
10969
11230
|
const PRODUCT_TYPE$2 = 'creditCard';
|
|
10970
11231
|
const CreditCardFormStep = JSX(({ step, sections, onPrevStep, onNextStep, onFinish }) => {
|
|
11232
|
+
const { programId } = useRetailFormStore();
|
|
10971
11233
|
useIFrameMode();
|
|
10972
11234
|
const inputs = useMemo(() => sections?.flatMap((_) => _?.inputs || []), [sections]);
|
|
10973
11235
|
const formValidator = useCallback((formState) => getRetailFormValidator({
|
|
@@ -10980,11 +11242,12 @@
|
|
|
10980
11242
|
onNextStep,
|
|
10981
11243
|
onFinish,
|
|
10982
11244
|
});
|
|
10983
|
-
const [, { field, onSubmit: handleSubmit }] = useForm(initialState, {
|
|
11245
|
+
const [formState, { field, onSubmit: handleSubmit }] = useForm(initialState, {
|
|
10984
11246
|
formValidator,
|
|
10985
11247
|
onSubmit,
|
|
10986
11248
|
});
|
|
10987
|
-
|
|
11249
|
+
const PAYMENT_SYSTEM = formState.paymentSystem?.text;
|
|
11250
|
+
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field }), jsx(StepsNavigationButtons$2, { isSending: isSending, step: step, onPrevStep: onPrevStep, programId: programId, productType: PRODUCT_TYPE$2, paymentSystem: PAYMENT_SYSTEM })] }));
|
|
10988
11251
|
});
|
|
10989
11252
|
|
|
10990
11253
|
const PERSONAL_DATA = [
|
|
@@ -11492,29 +11755,37 @@
|
|
|
11492
11755
|
return (jsx("div", { className: "py-lg px-5xl bg-white col-span-12", children: jsxs("div", { children: [jsxs("span", { className: "font-bold mr-s", children: ["\u0428\u0430\u0433 ", step, " \u0438\u0437 ", totalSteps, "."] }), stepsTitles[step] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }) }));
|
|
11493
11756
|
});
|
|
11494
11757
|
|
|
11495
|
-
const FailedStatusContent$1 = JSX(() =>
|
|
11496
|
-
|
|
11497
|
-
|
|
11498
|
-
|
|
11499
|
-
|
|
11500
|
-
|
|
11501
|
-
|
|
11502
|
-
|
|
11503
|
-
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
default: {
|
|
11507
|
-
return {
|
|
11508
|
-
name: 'Кредит на любые цели',
|
|
11509
|
-
description: 'На любые цели',
|
|
11510
|
-
};
|
|
11511
|
-
}
|
|
11512
|
-
}
|
|
11513
|
-
};
|
|
11758
|
+
const FailedStatusContent$1 = JSX(() => {
|
|
11759
|
+
const aspects = useAspects();
|
|
11760
|
+
useEffect(() => {
|
|
11761
|
+
handleAspects({
|
|
11762
|
+
aspectsAttributes: getAspects('refuse', 'credit'),
|
|
11763
|
+
aspects,
|
|
11764
|
+
ev: {},
|
|
11765
|
+
});
|
|
11766
|
+
}, []);
|
|
11767
|
+
return (jsx(FormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0412\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435", description: "\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u0411\u0430\u043D\u043A \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u043E\u0434\u043E\u0431\u0440\u0438\u0442\u044C \u0412\u0430\u0448\u0443 \u0437\u0430\u044F\u0432\u043A\u0443 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0434\u0430\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443 \u043F\u043E\u0437\u0436\u0435. \u0421\u043F\u0430\u0441\u0438\u0431\u043E \u0437\u0430 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0432 \u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB.", buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
|
|
11768
|
+
});
|
|
11514
11769
|
|
|
11515
11770
|
const PendingStatusContent$1 = JSX(({ onExpire }) => {
|
|
11516
11771
|
const { statusInfo, programId } = useRetailFormStore();
|
|
11517
11772
|
const creditInfo = getCreditInfo(programId);
|
|
11773
|
+
const aspects = useAspects();
|
|
11774
|
+
useEffect(() => {
|
|
11775
|
+
handleAspects({
|
|
11776
|
+
aspectsAttributes: getAspects('timer', 'credit'),
|
|
11777
|
+
aspects,
|
|
11778
|
+
ev: {},
|
|
11779
|
+
});
|
|
11780
|
+
}, []);
|
|
11781
|
+
const handleExpireWithEvent = useCallback(() => {
|
|
11782
|
+
handleAspects({
|
|
11783
|
+
aspectsAttributes: getAspects('timerEnd', 'credit'),
|
|
11784
|
+
aspects,
|
|
11785
|
+
ev: {},
|
|
11786
|
+
});
|
|
11787
|
+
onExpire();
|
|
11788
|
+
}, [aspects, onExpire]);
|
|
11518
11789
|
return (jsx(FormStatus, { interval: 300, title: "\u0417\u0430\u044F\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430", description: "\u041D\u0435 \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u043E\u043A\u043D\u043E, \u0441\u043A\u043E\u0440\u043E \u0441\u043E\u043E\u0431\u0449\u0438\u043C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442", sectionInfoTitle: "\u0417\u0430\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u043E \u043A\u0440\u0435\u0434\u0438\u0442\u0443", sectionInfo: [
|
|
11519
11790
|
{
|
|
11520
11791
|
label: 'Название продукта',
|
|
@@ -11536,11 +11807,19 @@
|
|
|
11536
11807
|
label: 'Тип платежа',
|
|
11537
11808
|
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
11538
11809
|
},
|
|
11539
|
-
], onExpire:
|
|
11810
|
+
], onExpire: handleExpireWithEvent }));
|
|
11540
11811
|
});
|
|
11541
11812
|
|
|
11542
11813
|
const ReworkStatusContent = JSX(() => {
|
|
11543
11814
|
const { statusInfo } = useRetailFormStore();
|
|
11815
|
+
const aspects = useAspects();
|
|
11816
|
+
useEffect(() => {
|
|
11817
|
+
handleAspects({
|
|
11818
|
+
aspectsAttributes: getAspects('revision', 'credit'),
|
|
11819
|
+
aspects,
|
|
11820
|
+
ev: {},
|
|
11821
|
+
});
|
|
11822
|
+
}, []);
|
|
11544
11823
|
return (jsx(FormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0432\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u043C \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u0432\u0440\u0435\u043C\u0435\u043D\u0438 \u0434\u043B\u044F \u043F\u0440\u0438\u043D\u044F\u0442\u0438\u044F \u0440\u0435\u0448\u0435\u043D\u0438\u044F", description: "\u041F\u043E\u0441\u0435\u0442\u0438\u0442\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430 \u0441 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u043C\u0438 \u0438 \u0442\u0430\u043A \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0435 \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0430.", sectionAdditionalTitle: "\u0412 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0438 \u0411\u0430\u043D\u043A\u0430", sectionInfoAdditional: [
|
|
11545
11824
|
{
|
|
11546
11825
|
label: 'Регион',
|
|
@@ -11561,6 +11840,14 @@
|
|
|
11561
11840
|
const SuccessStatusContent$1 = JSX(() => {
|
|
11562
11841
|
const { statusInfo, programId } = useRetailFormStore();
|
|
11563
11842
|
const creditInfo = getCreditInfo(programId);
|
|
11843
|
+
const aspects = useAspects();
|
|
11844
|
+
useEffect(() => {
|
|
11845
|
+
handleAspects({
|
|
11846
|
+
aspectsAttributes: getAspects('preDecision', 'credit'),
|
|
11847
|
+
aspects,
|
|
11848
|
+
ev: {},
|
|
11849
|
+
});
|
|
11850
|
+
}, []);
|
|
11564
11851
|
return (jsx(FormStatus, { title: "\u0411\u0430\u043D\u043A \u043E\u0434\u043E\u0431\u0440\u0438\u043B \u0432\u0430\u043C \u043A\u0440\u0435\u0434\u0438\u0442", description: "\u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u0430\u0448 \u043A\u0440\u0435\u0434\u0438\u0442", sectionInfo: [
|
|
11565
11852
|
{
|
|
11566
11853
|
label: 'Название продукта',
|
|
@@ -11635,136 +11922,47 @@
|
|
|
11635
11922
|
return statusesMap[status] || jsx(ReworkStatusContent, {});
|
|
11636
11923
|
};
|
|
11637
11924
|
|
|
11638
|
-
const
|
|
11639
|
-
|
|
11640
|
-
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
11649
|
-
|
|
11650
|
-
|
|
11651
|
-
|
|
11652
|
-
|
|
11653
|
-
|
|
11654
|
-
|
|
11655
|
-
|
|
11656
|
-
|
|
11657
|
-
|
|
11658
|
-
|
|
11659
|
-
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
});
|
|
11670
|
-
};
|
|
11671
|
-
|
|
11672
|
-
const YANDEX_ID = projectSettings.YANDEX_METRIKA_ID || '92511315';
|
|
11673
|
-
const data = [
|
|
11674
|
-
[
|
|
11675
|
-
{
|
|
11676
|
-
aspectName: 'ymReachGoal',
|
|
11677
|
-
params: {
|
|
11678
|
-
yandexId: YANDEX_ID,
|
|
11679
|
-
targetName: 'credit_calculator',
|
|
11680
|
-
},
|
|
11681
|
-
},
|
|
11682
|
-
{
|
|
11683
|
-
aspectName: 'snowplowEvent',
|
|
11684
|
-
params: {
|
|
11685
|
-
eventAction: 'naturalCreditsReducedPaymentCreditSummPeriodNext',
|
|
11686
|
-
eventCategory: 'naturalCredits',
|
|
11687
|
-
eventValueText: 'Кредит со сниженным платежом Сумма и сроки кредита Кнопка Далее',
|
|
11688
|
-
},
|
|
11689
|
-
},
|
|
11690
|
-
],
|
|
11691
|
-
[
|
|
11692
|
-
{
|
|
11693
|
-
aspectName: 'ymReachGoal',
|
|
11694
|
-
params: {
|
|
11695
|
-
yandexId: YANDEX_ID,
|
|
11696
|
-
targetName: 'app_personal_data',
|
|
11697
|
-
},
|
|
11698
|
-
},
|
|
11699
|
-
{
|
|
11700
|
-
aspectName: 'snowplowEvent',
|
|
11701
|
-
params: {
|
|
11702
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormPassportNext',
|
|
11703
|
-
eventCategory: 'naturalCredits',
|
|
11704
|
-
eventValueText: 'Кредит со сниженным платежом Паспортные данные Кнопка Далее',
|
|
11705
|
-
},
|
|
11706
|
-
},
|
|
11707
|
-
],
|
|
11708
|
-
[
|
|
11709
|
-
{
|
|
11710
|
-
aspectName: 'ymReachGoal',
|
|
11711
|
-
params: {
|
|
11712
|
-
yandexId: YANDEX_ID,
|
|
11713
|
-
targetName: 'app_work',
|
|
11714
|
-
},
|
|
11715
|
-
},
|
|
11716
|
-
{
|
|
11717
|
-
aspectName: 'snowplowEvent',
|
|
11718
|
-
params: {
|
|
11719
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormEmployerDetailsNext',
|
|
11720
|
-
eventCategory: 'naturalCredits',
|
|
11721
|
-
eventValueText: 'Кредит со сниженным платежом Данные о работодателе Кнопка Далее',
|
|
11722
|
-
},
|
|
11723
|
-
},
|
|
11724
|
-
],
|
|
11725
|
-
[
|
|
11726
|
-
{
|
|
11727
|
-
aspectName: 'ymReachGoal',
|
|
11728
|
-
params: {
|
|
11729
|
-
yandexId: YANDEX_ID,
|
|
11730
|
-
targetName: 'app_income',
|
|
11731
|
-
},
|
|
11732
|
-
},
|
|
11733
|
-
{
|
|
11734
|
-
aspectName: 'snowplowEvent',
|
|
11735
|
-
params: {
|
|
11736
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormFamilyStatusNext',
|
|
11737
|
-
eventCategory: 'naturalCredits',
|
|
11738
|
-
eventValueText: 'Кредит со сниженным платежом Семейное положение и доход Кнопка Далее',
|
|
11739
|
-
},
|
|
11740
|
-
},
|
|
11741
|
-
],
|
|
11742
|
-
[
|
|
11743
|
-
{
|
|
11744
|
-
aspectName: 'ymReachGoal',
|
|
11745
|
-
params: {
|
|
11746
|
-
yandexId: YANDEX_ID,
|
|
11747
|
-
targetName: 'app_bank_office',
|
|
11748
|
-
},
|
|
11749
|
-
},
|
|
11750
|
-
{
|
|
11751
|
-
aspectName: 'snowplowEvent',
|
|
11752
|
-
params: {
|
|
11753
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormBankDepartmentChoosingNext',
|
|
11754
|
-
eventCategory: 'naturalCredits',
|
|
11755
|
-
eventValueText: 'Кредит со сниженным платежом Выбор отделения Кнопка Далее',
|
|
11756
|
-
},
|
|
11757
|
-
},
|
|
11758
|
-
],
|
|
11925
|
+
const CREDIT_FORM_STEPS_ASPECTS = [
|
|
11926
|
+
{
|
|
11927
|
+
ymTargetName: 'credit_calculator',
|
|
11928
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditSummPeriodNext',
|
|
11929
|
+
snowplowEventCategory: 'naturalCredits',
|
|
11930
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Сумма и сроки кредита Кнопка Далее',
|
|
11931
|
+
},
|
|
11932
|
+
{
|
|
11933
|
+
ymTargetName: 'app_personal_data',
|
|
11934
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormPassportNext',
|
|
11935
|
+
snowplowEventCategory: 'naturalCredits',
|
|
11936
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Паспортные данные Кнопка Далее',
|
|
11937
|
+
},
|
|
11938
|
+
{
|
|
11939
|
+
ymTargetName: 'app_work',
|
|
11940
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormEmployerDetailsNext',
|
|
11941
|
+
snowplowEventCategory: 'naturalCredits',
|
|
11942
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Данные о работодателе Кнопка Далее',
|
|
11943
|
+
},
|
|
11944
|
+
{
|
|
11945
|
+
ymTargetName: 'app_income',
|
|
11946
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormFamilyStatusNext',
|
|
11947
|
+
snowplowEventCategory: 'naturalCredits',
|
|
11948
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Семейное положение и доход Кнопка Далее',
|
|
11949
|
+
},
|
|
11950
|
+
{
|
|
11951
|
+
ymTargetName: 'app_bank_office',
|
|
11952
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormBankDepartmentChoosingNext',
|
|
11953
|
+
snowplowEventCategory: 'naturalCredits',
|
|
11954
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Выбор отделения Кнопка Далее',
|
|
11955
|
+
},
|
|
11759
11956
|
];
|
|
11957
|
+
|
|
11760
11958
|
const StepsNavigationButtons$1 = JSX(({ step, onPrevStep, isSending, programId, productType = 'credit' }) => {
|
|
11761
11959
|
const isFirstStep = step === 0;
|
|
11762
11960
|
const isFinalStep = step === 5;
|
|
11763
|
-
const aspects =
|
|
11961
|
+
const aspects = getStepAspects({
|
|
11764
11962
|
step,
|
|
11765
11963
|
programId,
|
|
11766
11964
|
productType,
|
|
11767
|
-
|
|
11965
|
+
stepsConfig: CREDIT_FORM_STEPS_ASPECTS,
|
|
11768
11966
|
});
|
|
11769
11967
|
return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { version: "secondary", disabled: isFirstStep, onClick: onPrevStep, testId: "back-button", children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(SubmitButton$1, { isLoading: isSending, testId: "next-button", data: aspects, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
11770
11968
|
});
|
|
@@ -12292,10 +12490,23 @@
|
|
|
12292
12490
|
return statusesMap[status] || jsx(SuccessStatusContent, { isOffice: isOffice });
|
|
12293
12491
|
};
|
|
12294
12492
|
|
|
12295
|
-
const
|
|
12493
|
+
const DEBIT_FORM_STEPS_ASPECTS = [
|
|
12494
|
+
{ ymTargetName: 'debit_region' },
|
|
12495
|
+
{ ymTargetName: 'debit_app_personal_data' },
|
|
12496
|
+
{ ymTargetName: 'debit_app_card_data' },
|
|
12497
|
+
];
|
|
12498
|
+
|
|
12499
|
+
const StepsNavigationButtons = JSX(({ step, onPrevStep, isSending, programId, productType = 'debitCard', paymentSystem }) => {
|
|
12296
12500
|
const isFirstStep = step === 0;
|
|
12297
12501
|
const isFinalStep = step === 5;
|
|
12298
|
-
|
|
12502
|
+
const aspects = getStepAspects({
|
|
12503
|
+
step,
|
|
12504
|
+
programId,
|
|
12505
|
+
productType,
|
|
12506
|
+
paymentSystem,
|
|
12507
|
+
stepsConfig: DEBIT_FORM_STEPS_ASPECTS,
|
|
12508
|
+
});
|
|
12509
|
+
return (jsxs("div", { className: 'flex justify-between gap-m', children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(SubmitButton$1, { isLoading: isSending, data: aspects, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
12299
12510
|
});
|
|
12300
12511
|
|
|
12301
12512
|
const updateUserTaskDebit = (body) => doRequest('/user-data/updateUserTaskDebit', 'PUT', body);
|
|
@@ -12466,6 +12677,7 @@
|
|
|
12466
12677
|
|
|
12467
12678
|
const PRODUCT_TYPE = 'debitCard';
|
|
12468
12679
|
const DebitFormStep = JSX(({ step, sections, onPrevStep, onNextStep, onFinish }) => {
|
|
12680
|
+
const { programId } = useRetailFormStore();
|
|
12469
12681
|
useIFrameMode();
|
|
12470
12682
|
const inputs = useMemo(() => sections?.flatMap((_) => _?.inputs ?? []), [sections]);
|
|
12471
12683
|
const formValidator = useCallback((formState) => getRetailFormValidator({
|
|
@@ -12478,11 +12690,12 @@
|
|
|
12478
12690
|
onNextStep,
|
|
12479
12691
|
onFinish,
|
|
12480
12692
|
});
|
|
12481
|
-
const [, { field, onSubmit: handleSubmit }] = useForm(initialState, {
|
|
12693
|
+
const [formState, { field, onSubmit: handleSubmit }] = useForm(initialState, {
|
|
12482
12694
|
formValidator,
|
|
12483
12695
|
onSubmit,
|
|
12484
12696
|
});
|
|
12485
|
-
|
|
12697
|
+
const PAYMENT_SYSTEM = formState.paymentSystem?.text;
|
|
12698
|
+
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field }), jsx(StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep, programId: programId, productType: PRODUCT_TYPE, paymentSystem: PAYMENT_SYSTEM })] }));
|
|
12486
12699
|
});
|
|
12487
12700
|
|
|
12488
12701
|
/* eslint-disable max-lines */
|
|
@@ -13064,7 +13277,7 @@
|
|
|
13064
13277
|
return jsx("span", { children: text });
|
|
13065
13278
|
}
|
|
13066
13279
|
};
|
|
13067
|
-
const formatTel = (s) => s.
|
|
13280
|
+
const formatTel = (s) => s.replace(/[^\d+]/g, '');
|
|
13068
13281
|
|
|
13069
13282
|
const HorizontalNavigationLink = JSX(({ className = '', index, text, ...rest }) => {
|
|
13070
13283
|
const link = useLink();
|
|
@@ -14682,7 +14895,7 @@
|
|
|
14682
14895
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14683
14896
|
});
|
|
14684
14897
|
|
|
14685
|
-
const packageVersion = "0.14.
|
|
14898
|
+
const packageVersion = "0.14.1077";
|
|
14686
14899
|
|
|
14687
14900
|
exports.Blocks = Blocks;
|
|
14688
14901
|
exports.ContentPage = ContentPage;
|