@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
package/bundle/bundle.umd.js
CHANGED
|
@@ -6889,7 +6889,74 @@
|
|
|
6889
6889
|
restInputs: inputs.filter(({ name }) => !Object.keys(productTypeToConsentsMap[productType]).includes(String(name))),
|
|
6890
6890
|
});
|
|
6891
6891
|
|
|
6892
|
-
const
|
|
6892
|
+
const YANDEX_ID = projectSettings.YANDEX_METRIKA_ID || '92511315';
|
|
6893
|
+
|
|
6894
|
+
const ASPECTS_MAP = {
|
|
6895
|
+
leadForm: {
|
|
6896
|
+
debitCard: 'debit_lead_form',
|
|
6897
|
+
creditCard: 'card_lead_form',
|
|
6898
|
+
default: 'lead_form',
|
|
6899
|
+
},
|
|
6900
|
+
draft: {
|
|
6901
|
+
debitCard: 'debit_draft_app',
|
|
6902
|
+
creditCard: 'card_draft_app',
|
|
6903
|
+
default: 'draft_app',
|
|
6904
|
+
},
|
|
6905
|
+
smsAuth: {
|
|
6906
|
+
debitCard: 'debit_sms_auth',
|
|
6907
|
+
creditCard: 'card_sms_auth',
|
|
6908
|
+
default: 'sms_auth',
|
|
6909
|
+
},
|
|
6910
|
+
consentBki: {
|
|
6911
|
+
creditCard: 'card_consent_bki',
|
|
6912
|
+
default: 'consent_bki',
|
|
6913
|
+
},
|
|
6914
|
+
smsBki: {
|
|
6915
|
+
creditCard: 'card_sms_bki',
|
|
6916
|
+
default: 'sms_bki',
|
|
6917
|
+
},
|
|
6918
|
+
current: {
|
|
6919
|
+
debitCard: 'debit_current_app',
|
|
6920
|
+
creditCard: 'card_current_app',
|
|
6921
|
+
default: 'current_app',
|
|
6922
|
+
},
|
|
6923
|
+
timer: {
|
|
6924
|
+
creditCard: 'card_timer',
|
|
6925
|
+
default: 'timer',
|
|
6926
|
+
},
|
|
6927
|
+
timerEnd: {
|
|
6928
|
+
creditCard: 'card_timer_end',
|
|
6929
|
+
default: 'timer_end',
|
|
6930
|
+
},
|
|
6931
|
+
preDecision: {
|
|
6932
|
+
creditCard: 'card_pre_decision',
|
|
6933
|
+
default: 'pre_decision',
|
|
6934
|
+
},
|
|
6935
|
+
revision: {
|
|
6936
|
+
creditCard: 'card_revision',
|
|
6937
|
+
default: 'revision',
|
|
6938
|
+
},
|
|
6939
|
+
refuse: {
|
|
6940
|
+
creditCard: 'card_refuse',
|
|
6941
|
+
default: 'refuse',
|
|
6942
|
+
},
|
|
6943
|
+
};
|
|
6944
|
+
const getAspects = (aspectType, productType) => {
|
|
6945
|
+
const aspectForType = ASPECTS_MAP[aspectType];
|
|
6946
|
+
return [
|
|
6947
|
+
{
|
|
6948
|
+
aspectName: 'ymReachGoal',
|
|
6949
|
+
params: { yandexId: YANDEX_ID, targetName: aspectForType[productType || 'default'] },
|
|
6950
|
+
},
|
|
6951
|
+
];
|
|
6952
|
+
};
|
|
6953
|
+
|
|
6954
|
+
const renderSubmitButton = (button, options) => {
|
|
6955
|
+
const isSending = options?.isSending;
|
|
6956
|
+
const productType = options?.productType;
|
|
6957
|
+
const defaultAspects = getAspects('leadForm', productType);
|
|
6958
|
+
return (jsx(SubmitButton$1, { className: "w-full @xl:w-auto", isLoading: isSending ?? false, testId: "LeadSubmitButton", data: defaultAspects, children: button?.text ? button.text : 'Отправить заявку' }));
|
|
6959
|
+
};
|
|
6893
6960
|
|
|
6894
6961
|
const createDraftTask = async (body) => {
|
|
6895
6962
|
const isNewMicroservice = checkNewMicroservice();
|
|
@@ -7154,13 +7221,21 @@
|
|
|
7154
7221
|
{ id: 'REFUSE', text: 'Отказаться' },
|
|
7155
7222
|
];
|
|
7156
7223
|
const CONSENT_BKI_ID = 2;
|
|
7157
|
-
const ConsentBkiDialog = JSX(({ onSubmit = noop, onClose = noop }) => {
|
|
7224
|
+
const ConsentBkiDialog = JSX(({ onSubmit = noop, onClose = noop, productType }) => {
|
|
7158
7225
|
const [confirmStatus, setConfirmStatus] = useState('');
|
|
7159
7226
|
const [showRefuseContent, setShowRefuseContent] = useState(false);
|
|
7160
7227
|
const { openDocument } = useDocumentDialog(CONSENT_BKI_ID);
|
|
7228
|
+
const aspects = useAspects();
|
|
7161
7229
|
const handleSubmit = useCallback(() => {
|
|
7230
|
+
if (confirmStatus === 'SIGNED') {
|
|
7231
|
+
handleAspects({
|
|
7232
|
+
aspectsAttributes: getAspects('consentBki', productType),
|
|
7233
|
+
aspects,
|
|
7234
|
+
ev: {},
|
|
7235
|
+
});
|
|
7236
|
+
}
|
|
7162
7237
|
onSubmit(confirmStatus);
|
|
7163
|
-
}, [onSubmit, confirmStatus]);
|
|
7238
|
+
}, [onSubmit, confirmStatus, aspects, productType]);
|
|
7164
7239
|
const handleConfirmChange = useCallback((value) => {
|
|
7165
7240
|
setConfirmStatus(value);
|
|
7166
7241
|
setShowRefuseContent(value === 'REFUSE');
|
|
@@ -7169,63 +7244,77 @@
|
|
|
7169
7244
|
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" })] }) }));
|
|
7170
7245
|
});
|
|
7171
7246
|
|
|
7172
|
-
const
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7247
|
+
const createHandleSuccessVerify = ({ profileId, taskId, participantId, aspects, onClose, productType, }) => async (smsCode) => {
|
|
7248
|
+
try {
|
|
7249
|
+
if (profileId) {
|
|
7250
|
+
await updateUserProfile({
|
|
7251
|
+
profile: {
|
|
7252
|
+
id: profileId,
|
|
7253
|
+
consentBkiFlg: true,
|
|
7254
|
+
smsConsentBki: smsCode,
|
|
7255
|
+
},
|
|
7256
|
+
});
|
|
7257
|
+
}
|
|
7258
|
+
else if (taskId && participantId) {
|
|
7259
|
+
await updateUserTask({
|
|
7260
|
+
task: {
|
|
7261
|
+
id: taskId,
|
|
7262
|
+
participant: {
|
|
7263
|
+
id: participantId,
|
|
7181
7264
|
consentBkiFlg: true,
|
|
7182
7265
|
smsConsentBki: smsCode,
|
|
7183
7266
|
},
|
|
7184
|
-
}
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
await updateUserTask({
|
|
7188
|
-
task: {
|
|
7189
|
-
id: taskId,
|
|
7190
|
-
participant: {
|
|
7191
|
-
id: participantId,
|
|
7192
|
-
consentBkiFlg: true,
|
|
7193
|
-
smsConsentBki: smsCode,
|
|
7194
|
-
},
|
|
7195
|
-
},
|
|
7196
|
-
sendToBank: false,
|
|
7197
|
-
taskKind: 'SHORT',
|
|
7198
|
-
});
|
|
7199
|
-
}
|
|
7200
|
-
onClose();
|
|
7201
|
-
}
|
|
7202
|
-
catch (ex) {
|
|
7203
|
-
console.log(ex);
|
|
7204
|
-
}
|
|
7205
|
-
};
|
|
7206
|
-
const handleSubmitBkiConsent = ({ phone, profileId, onFail, taskId, participantId }) => async (confirmStatus) => {
|
|
7207
|
-
if (confirmStatus === 'SIGNED' && phone) {
|
|
7208
|
-
verifyPhoneDialog.open({
|
|
7209
|
-
phone,
|
|
7210
|
-
consents: ['согласие на запрос информации в БКИ'],
|
|
7211
|
-
onSuccess: handleSuccessVerify(profileId, taskId, participantId),
|
|
7212
|
-
onFail,
|
|
7267
|
+
},
|
|
7268
|
+
sendToBank: false,
|
|
7269
|
+
taskKind: 'SHORT',
|
|
7213
7270
|
});
|
|
7214
7271
|
}
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7272
|
+
handleAspects({
|
|
7273
|
+
aspectsAttributes: getAspects('smsBki', productType),
|
|
7274
|
+
aspects,
|
|
7275
|
+
ev: {},
|
|
7276
|
+
});
|
|
7277
|
+
onClose();
|
|
7278
|
+
}
|
|
7279
|
+
catch (ex) {
|
|
7280
|
+
console.log(ex);
|
|
7281
|
+
}
|
|
7282
|
+
};
|
|
7283
|
+
const createHandleSubmitBkiConsent = ({ submitProps, verifyPhoneDialog, aspects, onClose }) => async (confirmStatus) => {
|
|
7284
|
+
const { phone, profileId, onFail, taskId, participantId, productType } = submitProps;
|
|
7285
|
+
if (confirmStatus === 'SIGNED' && phone) {
|
|
7286
|
+
verifyPhoneDialog.open({
|
|
7287
|
+
phone,
|
|
7288
|
+
consents: ['согласие на запрос информации в БКИ'],
|
|
7289
|
+
onSuccess: createHandleSuccessVerify({
|
|
7223
7290
|
profileId,
|
|
7224
|
-
onFail,
|
|
7225
7291
|
taskId,
|
|
7226
7292
|
participantId,
|
|
7293
|
+
aspects,
|
|
7294
|
+
onClose,
|
|
7295
|
+
productType,
|
|
7296
|
+
}),
|
|
7297
|
+
onFail,
|
|
7298
|
+
});
|
|
7299
|
+
}
|
|
7300
|
+
else {
|
|
7301
|
+
onClose();
|
|
7302
|
+
}
|
|
7303
|
+
};
|
|
7304
|
+
const useConsentBkiDialog = (onClose, productType) => {
|
|
7305
|
+
const { open } = useDialog(ConsentBkiDialog);
|
|
7306
|
+
const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
|
|
7307
|
+
const aspects = useAspects();
|
|
7308
|
+
return {
|
|
7309
|
+
open: ({ phone, profileId, onFail, taskId, participantId }) => open({
|
|
7310
|
+
onSubmit: createHandleSubmitBkiConsent({
|
|
7311
|
+
submitProps: { phone, profileId, onFail, taskId, participantId, productType },
|
|
7312
|
+
verifyPhoneDialog,
|
|
7313
|
+
aspects,
|
|
7314
|
+
onClose,
|
|
7227
7315
|
}),
|
|
7228
7316
|
onClose,
|
|
7317
|
+
productType,
|
|
7229
7318
|
}),
|
|
7230
7319
|
};
|
|
7231
7320
|
};
|
|
@@ -7288,10 +7377,10 @@
|
|
|
7288
7377
|
return undefined;
|
|
7289
7378
|
};
|
|
7290
7379
|
|
|
7291
|
-
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] })] })));
|
|
7380
|
+
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] })] })));
|
|
7292
7381
|
|
|
7293
|
-
const DraftDialogContent = JSX(function ({ createdDate, productData, isFromLead, handleGoToDraft, handleGoToNewTask, onClose, }) {
|
|
7294
|
-
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" })] })] }));
|
|
7382
|
+
const DraftDialogContent = JSX(function ({ createdDate, productData, isFromLead, handleGoToDraft, handleGoToNewTask, onClose, draftAspects, currentAspects, }) {
|
|
7383
|
+
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 })] })] }));
|
|
7295
7384
|
});
|
|
7296
7385
|
|
|
7297
7386
|
const fieldsNamesToContactKeysMap = {
|
|
@@ -7572,7 +7661,19 @@
|
|
|
7572
7661
|
}
|
|
7573
7662
|
navigator.assign(productData.newTaskLink);
|
|
7574
7663
|
}, [task.id, productData.newTaskLink, isNewMicroservice]);
|
|
7575
|
-
|
|
7664
|
+
let productType;
|
|
7665
|
+
if (isDebit) {
|
|
7666
|
+
productType = 'debitCard';
|
|
7667
|
+
}
|
|
7668
|
+
else if (taskType === 'card') {
|
|
7669
|
+
productType = 'creditCard';
|
|
7670
|
+
}
|
|
7671
|
+
else {
|
|
7672
|
+
productType = 'credit';
|
|
7673
|
+
}
|
|
7674
|
+
const draftAspects = getAspects('draft', productType);
|
|
7675
|
+
const currentAspects = getAspects('current', productType);
|
|
7676
|
+
return (jsx(Dialog, { onClose: onClose, children: jsx(DraftDialogContent, { createdDate: createdDate, productData: productData, isFromLead: isFromLead, handleGoToDraft: handleGoToDraft, handleGoToNewTask: handleGoToNewTask, onClose: onClose, draftAspects: draftAspects, currentAspects: currentAspects }) }));
|
|
7576
7677
|
});
|
|
7577
7678
|
|
|
7578
7679
|
const EmptyDraftDialog = JSX(function ({ taskType, isDebit, onClose = noop, }) {
|
|
@@ -7750,11 +7851,12 @@
|
|
|
7750
7851
|
const sessionStore = useSessionStore();
|
|
7751
7852
|
const leadFormStore = useLeadFormStore();
|
|
7752
7853
|
const sendAspects = useSendLeadFormAspects({ data });
|
|
7854
|
+
const aspects = useAspects();
|
|
7753
7855
|
const navigator = locationNavigator();
|
|
7754
7856
|
const goToNextStep = useCallback(() => {
|
|
7755
7857
|
navigator.assign(nextStepLink);
|
|
7756
7858
|
}, []);
|
|
7757
|
-
const consentBkiDialog = useConsentBkiDialog(goToNextStep);
|
|
7859
|
+
const consentBkiDialog = useConsentBkiDialog(goToNextStep, productType);
|
|
7758
7860
|
const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
|
|
7759
7861
|
const draftDialog = useDraftDialog();
|
|
7760
7862
|
const handleFailSendForm = () => {
|
|
@@ -7773,51 +7875,28 @@
|
|
|
7773
7875
|
if (!profileId) {
|
|
7774
7876
|
throw new Error();
|
|
7775
7877
|
}
|
|
7776
|
-
const
|
|
7777
|
-
|
|
7878
|
+
const oldMicroserviceProps = {
|
|
7879
|
+
common: {
|
|
7880
|
+
aspects,
|
|
7778
7881
|
programId,
|
|
7882
|
+
productType,
|
|
7883
|
+
sendAspects,
|
|
7884
|
+
verifyPhoneDialog,
|
|
7885
|
+
handleFailSendForm,
|
|
7779
7886
|
profileId,
|
|
7887
|
+
},
|
|
7888
|
+
taskData: {
|
|
7780
7889
|
formData: transformedFormData,
|
|
7781
|
-
productType,
|
|
7782
7890
|
referalData,
|
|
7783
7891
|
marketingInfo,
|
|
7784
7892
|
saveUserData,
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
goToNextStep();
|
|
7790
|
-
}
|
|
7791
|
-
else {
|
|
7792
|
-
consentBkiDialog.open({
|
|
7793
|
-
phone: transformedFormData.phone,
|
|
7794
|
-
profileId,
|
|
7795
|
-
onFail: handleFailSendForm,
|
|
7796
|
-
});
|
|
7797
|
-
}
|
|
7798
|
-
};
|
|
7799
|
-
const handleSuccessVerify = async () => {
|
|
7800
|
-
try {
|
|
7801
|
-
const lastTaskId = await getLastTaskStatus({ profileId, programId });
|
|
7802
|
-
if (lastTaskId) {
|
|
7803
|
-
const task = await getTaskById({ taskId: lastTaskId });
|
|
7804
|
-
verifyPhoneDialog.close();
|
|
7805
|
-
draftDialog.open({
|
|
7806
|
-
task,
|
|
7807
|
-
isFromLead: true,
|
|
7808
|
-
taskType: productTypeToTaskType(productType),
|
|
7809
|
-
sendAspects,
|
|
7810
|
-
onClose: sendCurrentTask,
|
|
7811
|
-
});
|
|
7812
|
-
}
|
|
7813
|
-
else {
|
|
7814
|
-
await sendCurrentTask();
|
|
7815
|
-
}
|
|
7816
|
-
}
|
|
7817
|
-
catch {
|
|
7818
|
-
handleFailSendForm();
|
|
7819
|
-
}
|
|
7893
|
+
},
|
|
7894
|
+
goToNextStep,
|
|
7895
|
+
consentBkiDialog,
|
|
7896
|
+
draftDialog,
|
|
7820
7897
|
};
|
|
7898
|
+
const sendCurrentTask = createSendCurrentTaskOld(oldMicroserviceProps);
|
|
7899
|
+
const handleSuccessVerify = createHandleSuccessVerifyOld(oldMicroserviceProps, sendCurrentTask);
|
|
7821
7900
|
const acceptedConsents = getAcceptedConsents(transformedFormData, productType);
|
|
7822
7901
|
verifyPhoneDialog.open({
|
|
7823
7902
|
phone: transformedFormData.phone,
|
|
@@ -7845,6 +7924,7 @@
|
|
|
7845
7924
|
sendAspects,
|
|
7846
7925
|
verifyPhoneDialog,
|
|
7847
7926
|
handleFailSendForm,
|
|
7927
|
+
aspects,
|
|
7848
7928
|
};
|
|
7849
7929
|
const taskData = {
|
|
7850
7930
|
formData: transformedFormData,
|
|
@@ -7904,8 +7984,13 @@
|
|
|
7904
7984
|
});
|
|
7905
7985
|
};
|
|
7906
7986
|
const createHandleSuccessVerifyNew = ({ common, taskData, draftDialog, consentBkiDialog, }) => async () => {
|
|
7907
|
-
const {
|
|
7987
|
+
const { verifyPhoneDialog, sendAspects, handleFailSendForm, programId, productType, aspects } = common;
|
|
7908
7988
|
const { formData } = taskData;
|
|
7989
|
+
handleAspects({
|
|
7990
|
+
aspectsAttributes: getAspects('leadForm', productType),
|
|
7991
|
+
aspects,
|
|
7992
|
+
ev: {},
|
|
7993
|
+
});
|
|
7909
7994
|
try {
|
|
7910
7995
|
const participantData = await createParticipant({
|
|
7911
7996
|
phone: formatPhone(formData.phone),
|
|
@@ -7952,6 +8037,62 @@
|
|
|
7952
8037
|
handleFailSendForm();
|
|
7953
8038
|
}
|
|
7954
8039
|
};
|
|
8040
|
+
const createSendCurrentTaskOld = (props) => async () => {
|
|
8041
|
+
const { common, taskData, goToNextStep, consentBkiDialog } = props;
|
|
8042
|
+
const { programId, profileId, productType, verifyPhoneDialog, handleFailSendForm } = common;
|
|
8043
|
+
const { formData } = taskData;
|
|
8044
|
+
await updateUserData({
|
|
8045
|
+
programId,
|
|
8046
|
+
profileId,
|
|
8047
|
+
formData,
|
|
8048
|
+
productType,
|
|
8049
|
+
referalData: taskData.referalData,
|
|
8050
|
+
marketingInfo: taskData.marketingInfo,
|
|
8051
|
+
saveUserData: taskData.saveUserData,
|
|
8052
|
+
sendAspects: common.sendAspects,
|
|
8053
|
+
});
|
|
8054
|
+
verifyPhoneDialog.close();
|
|
8055
|
+
if (productType === 'debitCard') {
|
|
8056
|
+
goToNextStep();
|
|
8057
|
+
}
|
|
8058
|
+
else {
|
|
8059
|
+
consentBkiDialog.open({
|
|
8060
|
+
phone: formData.phone,
|
|
8061
|
+
profileId,
|
|
8062
|
+
onFail: handleFailSendForm,
|
|
8063
|
+
});
|
|
8064
|
+
}
|
|
8065
|
+
};
|
|
8066
|
+
const createHandleSuccessVerifyOld = (props, sendCurrentTask) => async () => {
|
|
8067
|
+
const { common, draftDialog } = props;
|
|
8068
|
+
const { aspects, programId, sendAspects, verifyPhoneDialog, handleFailSendForm, profileId } = common;
|
|
8069
|
+
const productType = common.productType;
|
|
8070
|
+
handleAspects({
|
|
8071
|
+
aspectsAttributes: getAspects('leadForm', productType),
|
|
8072
|
+
aspects,
|
|
8073
|
+
ev: {},
|
|
8074
|
+
});
|
|
8075
|
+
try {
|
|
8076
|
+
const lastTaskId = await getLastTaskStatus({ profileId, programId });
|
|
8077
|
+
if (lastTaskId) {
|
|
8078
|
+
const task = await getTaskById({ taskId: lastTaskId });
|
|
8079
|
+
verifyPhoneDialog.close();
|
|
8080
|
+
draftDialog.open({
|
|
8081
|
+
task,
|
|
8082
|
+
isFromLead: true,
|
|
8083
|
+
taskType: productTypeToTaskType(productType),
|
|
8084
|
+
sendAspects,
|
|
8085
|
+
onClose: sendCurrentTask,
|
|
8086
|
+
});
|
|
8087
|
+
}
|
|
8088
|
+
else {
|
|
8089
|
+
await sendCurrentTask();
|
|
8090
|
+
}
|
|
8091
|
+
}
|
|
8092
|
+
catch {
|
|
8093
|
+
handleFailSendForm();
|
|
8094
|
+
}
|
|
8095
|
+
};
|
|
7955
8096
|
const getAcceptedConsents = (formData, productType) => {
|
|
7956
8097
|
const consents = productTypeToConsentsMap[productType];
|
|
7957
8098
|
return Object.keys(consents)
|
|
@@ -8509,7 +8650,7 @@
|
|
|
8509
8650
|
reset();
|
|
8510
8651
|
}
|
|
8511
8652
|
}, [leadForm?.current, esiaStatus]);
|
|
8512
|
-
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] })] }));
|
|
8653
|
+
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] })] }));
|
|
8513
8654
|
});
|
|
8514
8655
|
const getInputs = (applicationFormData) => (applicationFormData?.flatMap((_) => _?.inputs) || []);
|
|
8515
8656
|
const getExtendedValidatorObj = (productType) => ({
|
|
@@ -10462,10 +10603,36 @@
|
|
|
10462
10603
|
};
|
|
10463
10604
|
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 })] }));
|
|
10464
10605
|
|
|
10465
|
-
const FailedStatusContent$2 = JSX(() =>
|
|
10606
|
+
const FailedStatusContent$2 = JSX(() => {
|
|
10607
|
+
const aspects = useAspects();
|
|
10608
|
+
useEffect(() => {
|
|
10609
|
+
handleAspects({
|
|
10610
|
+
aspectsAttributes: getAspects('refuse', 'creditCard'),
|
|
10611
|
+
aspects,
|
|
10612
|
+
ev: {},
|
|
10613
|
+
});
|
|
10614
|
+
}, []);
|
|
10615
|
+
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" }));
|
|
10616
|
+
});
|
|
10466
10617
|
|
|
10467
10618
|
const PendingStatusContent$2 = JSX(({ onExpire }) => {
|
|
10468
10619
|
const { statusInfo } = useRetailFormStore();
|
|
10620
|
+
const aspects = useAspects();
|
|
10621
|
+
useEffect(() => {
|
|
10622
|
+
handleAspects({
|
|
10623
|
+
aspectsAttributes: getAspects('timer', 'creditCard'),
|
|
10624
|
+
aspects,
|
|
10625
|
+
ev: {},
|
|
10626
|
+
});
|
|
10627
|
+
}, []);
|
|
10628
|
+
const handleExpireWithEvent = () => {
|
|
10629
|
+
handleAspects({
|
|
10630
|
+
aspectsAttributes: getAspects('timerEnd', 'creditCard'),
|
|
10631
|
+
aspects,
|
|
10632
|
+
ev: {},
|
|
10633
|
+
});
|
|
10634
|
+
onExpire();
|
|
10635
|
+
};
|
|
10469
10636
|
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: [
|
|
10470
10637
|
{
|
|
10471
10638
|
label: 'Название продукта',
|
|
@@ -10475,11 +10642,19 @@
|
|
|
10475
10642
|
label: 'Категория',
|
|
10476
10643
|
description: statusInfo?.cardCategory,
|
|
10477
10644
|
},
|
|
10478
|
-
], onExpire:
|
|
10645
|
+
], onExpire: handleExpireWithEvent }));
|
|
10479
10646
|
});
|
|
10480
10647
|
|
|
10481
10648
|
const ReworkStatusContent$1 = JSX(() => {
|
|
10482
10649
|
const { statusInfo } = useRetailFormStore();
|
|
10650
|
+
const aspects = useAspects();
|
|
10651
|
+
useEffect(() => {
|
|
10652
|
+
handleAspects({
|
|
10653
|
+
aspectsAttributes: getAspects('revision', 'creditCard'),
|
|
10654
|
+
aspects,
|
|
10655
|
+
ev: {},
|
|
10656
|
+
});
|
|
10657
|
+
}, []);
|
|
10483
10658
|
const isCourierDelivery = statusInfo?.methodObtain === 'courier';
|
|
10484
10659
|
const infoAdditional = isCourierDelivery
|
|
10485
10660
|
? [
|
|
@@ -10509,6 +10684,14 @@
|
|
|
10509
10684
|
|
|
10510
10685
|
const SuccessStatusCardContent = JSX(() => {
|
|
10511
10686
|
const { statusInfo } = useRetailFormStore();
|
|
10687
|
+
const aspects = useAspects();
|
|
10688
|
+
useEffect(() => {
|
|
10689
|
+
handleAspects({
|
|
10690
|
+
aspectsAttributes: getAspects('preDecision', 'creditCard'),
|
|
10691
|
+
aspects,
|
|
10692
|
+
ev: {},
|
|
10693
|
+
});
|
|
10694
|
+
}, []);
|
|
10512
10695
|
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" }));
|
|
10513
10696
|
});
|
|
10514
10697
|
const getSectionInfo = (statusInfo) => {
|
|
@@ -10638,10 +10821,88 @@
|
|
|
10638
10821
|
inn: organizationInnValidator(formState.isDadataOrganization),
|
|
10639
10822
|
})(formState);
|
|
10640
10823
|
|
|
10641
|
-
const
|
|
10824
|
+
const getCreditInfo = (programmId) => {
|
|
10825
|
+
switch (programmId) {
|
|
10826
|
+
case '11': {
|
|
10827
|
+
return {
|
|
10828
|
+
name: 'Потребительский кредит на рефинансирование',
|
|
10829
|
+
description: 'Погашение основного долга по кредиту, иные цели и оплату страхования',
|
|
10830
|
+
};
|
|
10831
|
+
}
|
|
10832
|
+
case '10':
|
|
10833
|
+
default: {
|
|
10834
|
+
return {
|
|
10835
|
+
name: 'Кредит на любые цели',
|
|
10836
|
+
description: 'На любые цели',
|
|
10837
|
+
};
|
|
10838
|
+
}
|
|
10839
|
+
}
|
|
10840
|
+
};
|
|
10841
|
+
|
|
10842
|
+
const getVisitParams = (programId, productType, paymentSystem) => {
|
|
10843
|
+
const creditInfo = getCreditInfo(programId ?? null);
|
|
10844
|
+
const productName = creditInfo?.name || '';
|
|
10845
|
+
const productTypeValue = productType ?? '';
|
|
10846
|
+
if (paymentSystem && productType !== 'credit') {
|
|
10847
|
+
return {
|
|
10848
|
+
[productTypeValue]: {
|
|
10849
|
+
[productName]: paymentSystem,
|
|
10850
|
+
},
|
|
10851
|
+
};
|
|
10852
|
+
}
|
|
10853
|
+
else {
|
|
10854
|
+
return {
|
|
10855
|
+
[productTypeValue]: productName,
|
|
10856
|
+
};
|
|
10857
|
+
}
|
|
10858
|
+
};
|
|
10859
|
+
const getStepAspects = ({ step, programId, productType, paymentSystem, stepsConfig, }) => {
|
|
10860
|
+
const config = stepsConfig[step];
|
|
10861
|
+
if (!config) {
|
|
10862
|
+
return [];
|
|
10863
|
+
}
|
|
10864
|
+
const visitParams = getVisitParams(programId, productType, paymentSystem);
|
|
10865
|
+
const aspects = [];
|
|
10866
|
+
aspects.push({
|
|
10867
|
+
aspectName: 'ymReachGoal',
|
|
10868
|
+
params: {
|
|
10869
|
+
yandexId: YANDEX_ID,
|
|
10870
|
+
targetName: config.ymTargetName,
|
|
10871
|
+
...visitParams,
|
|
10872
|
+
},
|
|
10873
|
+
});
|
|
10874
|
+
if (config.snowplowEventAction) {
|
|
10875
|
+
aspects.push({
|
|
10876
|
+
aspectName: 'snowplowEvent',
|
|
10877
|
+
params: {
|
|
10878
|
+
eventAction: config.snowplowEventAction,
|
|
10879
|
+
eventCategory: config.snowplowEventCategory || 'naturalCredits',
|
|
10880
|
+
eventValueText: config.snowplowEventValueText || '',
|
|
10881
|
+
},
|
|
10882
|
+
});
|
|
10883
|
+
}
|
|
10884
|
+
return aspects;
|
|
10885
|
+
};
|
|
10886
|
+
|
|
10887
|
+
const CREDIT_CARD_FORM_STEPS_ASPECTS = [
|
|
10888
|
+
{ ymTargetName: 'card_credit_calculator' },
|
|
10889
|
+
{ ymTargetName: 'card_app_personal_data' },
|
|
10890
|
+
{ ymTargetName: 'card_app_work' },
|
|
10891
|
+
{ ymTargetName: 'card_app_income' },
|
|
10892
|
+
{ ymTargetName: 'card_app_bank_office' },
|
|
10893
|
+
];
|
|
10894
|
+
|
|
10895
|
+
const StepsNavigationButtons$2 = JSX(({ step, isSending, onPrevStep, programId, productType, paymentSystem }) => {
|
|
10642
10896
|
const isFirstStep = step === 0;
|
|
10643
10897
|
const isFinalStep = step === 5;
|
|
10644
|
-
|
|
10898
|
+
const aspects = getStepAspects({
|
|
10899
|
+
step,
|
|
10900
|
+
programId,
|
|
10901
|
+
productType,
|
|
10902
|
+
paymentSystem,
|
|
10903
|
+
stepsConfig: CREDIT_CARD_FORM_STEPS_ASPECTS,
|
|
10904
|
+
});
|
|
10905
|
+
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 ? 'Отправить заявку' : 'Далее' })] }));
|
|
10645
10906
|
});
|
|
10646
10907
|
|
|
10647
10908
|
const getInitialFormState = (step, formState, formStateMap) => ({
|
|
@@ -10976,6 +11237,7 @@
|
|
|
10976
11237
|
|
|
10977
11238
|
const PRODUCT_TYPE$2 = 'creditCard';
|
|
10978
11239
|
const CreditCardFormStep = JSX(({ step, sections, onPrevStep, onNextStep, onFinish }) => {
|
|
11240
|
+
const { programId } = useRetailFormStore();
|
|
10979
11241
|
useIFrameMode();
|
|
10980
11242
|
const inputs = useMemo(() => sections?.flatMap((_) => _?.inputs || []), [sections]);
|
|
10981
11243
|
const formValidator = useCallback((formState) => getRetailFormValidator({
|
|
@@ -10988,11 +11250,12 @@
|
|
|
10988
11250
|
onNextStep,
|
|
10989
11251
|
onFinish,
|
|
10990
11252
|
});
|
|
10991
|
-
const [, { field, onSubmit: handleSubmit }] = useForm(initialState, {
|
|
11253
|
+
const [formState, { field, onSubmit: handleSubmit }] = useForm(initialState, {
|
|
10992
11254
|
formValidator,
|
|
10993
11255
|
onSubmit,
|
|
10994
11256
|
});
|
|
10995
|
-
|
|
11257
|
+
const PAYMENT_SYSTEM = formState.paymentSystem?.text;
|
|
11258
|
+
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field }), jsx(StepsNavigationButtons$2, { isSending: isSending, step: step, onPrevStep: onPrevStep, programId: programId, productType: PRODUCT_TYPE$2, paymentSystem: PAYMENT_SYSTEM })] }));
|
|
10996
11259
|
});
|
|
10997
11260
|
|
|
10998
11261
|
const PERSONAL_DATA = [
|
|
@@ -11500,29 +11763,37 @@
|
|
|
11500
11763
|
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 })] }) }));
|
|
11501
11764
|
});
|
|
11502
11765
|
|
|
11503
|
-
const FailedStatusContent$1 = JSX(() =>
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
|
|
11511
|
-
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
default: {
|
|
11515
|
-
return {
|
|
11516
|
-
name: 'Кредит на любые цели',
|
|
11517
|
-
description: 'На любые цели',
|
|
11518
|
-
};
|
|
11519
|
-
}
|
|
11520
|
-
}
|
|
11521
|
-
};
|
|
11766
|
+
const FailedStatusContent$1 = JSX(() => {
|
|
11767
|
+
const aspects = useAspects();
|
|
11768
|
+
useEffect(() => {
|
|
11769
|
+
handleAspects({
|
|
11770
|
+
aspectsAttributes: getAspects('refuse', 'credit'),
|
|
11771
|
+
aspects,
|
|
11772
|
+
ev: {},
|
|
11773
|
+
});
|
|
11774
|
+
}, []);
|
|
11775
|
+
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" }));
|
|
11776
|
+
});
|
|
11522
11777
|
|
|
11523
11778
|
const PendingStatusContent$1 = JSX(({ onExpire }) => {
|
|
11524
11779
|
const { statusInfo, programId } = useRetailFormStore();
|
|
11525
11780
|
const creditInfo = getCreditInfo(programId);
|
|
11781
|
+
const aspects = useAspects();
|
|
11782
|
+
useEffect(() => {
|
|
11783
|
+
handleAspects({
|
|
11784
|
+
aspectsAttributes: getAspects('timer', 'credit'),
|
|
11785
|
+
aspects,
|
|
11786
|
+
ev: {},
|
|
11787
|
+
});
|
|
11788
|
+
}, []);
|
|
11789
|
+
const handleExpireWithEvent = useCallback(() => {
|
|
11790
|
+
handleAspects({
|
|
11791
|
+
aspectsAttributes: getAspects('timerEnd', 'credit'),
|
|
11792
|
+
aspects,
|
|
11793
|
+
ev: {},
|
|
11794
|
+
});
|
|
11795
|
+
onExpire();
|
|
11796
|
+
}, [aspects, onExpire]);
|
|
11526
11797
|
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: [
|
|
11527
11798
|
{
|
|
11528
11799
|
label: 'Название продукта',
|
|
@@ -11544,11 +11815,19 @@
|
|
|
11544
11815
|
label: 'Тип платежа',
|
|
11545
11816
|
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
11546
11817
|
},
|
|
11547
|
-
], onExpire:
|
|
11818
|
+
], onExpire: handleExpireWithEvent }));
|
|
11548
11819
|
});
|
|
11549
11820
|
|
|
11550
11821
|
const ReworkStatusContent = JSX(() => {
|
|
11551
11822
|
const { statusInfo } = useRetailFormStore();
|
|
11823
|
+
const aspects = useAspects();
|
|
11824
|
+
useEffect(() => {
|
|
11825
|
+
handleAspects({
|
|
11826
|
+
aspectsAttributes: getAspects('revision', 'credit'),
|
|
11827
|
+
aspects,
|
|
11828
|
+
ev: {},
|
|
11829
|
+
});
|
|
11830
|
+
}, []);
|
|
11552
11831
|
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: [
|
|
11553
11832
|
{
|
|
11554
11833
|
label: 'Регион',
|
|
@@ -11569,6 +11848,14 @@
|
|
|
11569
11848
|
const SuccessStatusContent$1 = JSX(() => {
|
|
11570
11849
|
const { statusInfo, programId } = useRetailFormStore();
|
|
11571
11850
|
const creditInfo = getCreditInfo(programId);
|
|
11851
|
+
const aspects = useAspects();
|
|
11852
|
+
useEffect(() => {
|
|
11853
|
+
handleAspects({
|
|
11854
|
+
aspectsAttributes: getAspects('preDecision', 'credit'),
|
|
11855
|
+
aspects,
|
|
11856
|
+
ev: {},
|
|
11857
|
+
});
|
|
11858
|
+
}, []);
|
|
11572
11859
|
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: [
|
|
11573
11860
|
{
|
|
11574
11861
|
label: 'Название продукта',
|
|
@@ -11643,136 +11930,47 @@
|
|
|
11643
11930
|
return statusesMap[status] || jsx(ReworkStatusContent, {});
|
|
11644
11931
|
};
|
|
11645
11932
|
|
|
11646
|
-
const
|
|
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
|
-
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
});
|
|
11678
|
-
};
|
|
11679
|
-
|
|
11680
|
-
const YANDEX_ID = projectSettings.YANDEX_METRIKA_ID || '92511315';
|
|
11681
|
-
const data = [
|
|
11682
|
-
[
|
|
11683
|
-
{
|
|
11684
|
-
aspectName: 'ymReachGoal',
|
|
11685
|
-
params: {
|
|
11686
|
-
yandexId: YANDEX_ID,
|
|
11687
|
-
targetName: 'credit_calculator',
|
|
11688
|
-
},
|
|
11689
|
-
},
|
|
11690
|
-
{
|
|
11691
|
-
aspectName: 'snowplowEvent',
|
|
11692
|
-
params: {
|
|
11693
|
-
eventAction: 'naturalCreditsReducedPaymentCreditSummPeriodNext',
|
|
11694
|
-
eventCategory: 'naturalCredits',
|
|
11695
|
-
eventValueText: 'Кредит со сниженным платежом Сумма и сроки кредита Кнопка Далее',
|
|
11696
|
-
},
|
|
11697
|
-
},
|
|
11698
|
-
],
|
|
11699
|
-
[
|
|
11700
|
-
{
|
|
11701
|
-
aspectName: 'ymReachGoal',
|
|
11702
|
-
params: {
|
|
11703
|
-
yandexId: YANDEX_ID,
|
|
11704
|
-
targetName: 'app_personal_data',
|
|
11705
|
-
},
|
|
11706
|
-
},
|
|
11707
|
-
{
|
|
11708
|
-
aspectName: 'snowplowEvent',
|
|
11709
|
-
params: {
|
|
11710
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormPassportNext',
|
|
11711
|
-
eventCategory: 'naturalCredits',
|
|
11712
|
-
eventValueText: 'Кредит со сниженным платежом Паспортные данные Кнопка Далее',
|
|
11713
|
-
},
|
|
11714
|
-
},
|
|
11715
|
-
],
|
|
11716
|
-
[
|
|
11717
|
-
{
|
|
11718
|
-
aspectName: 'ymReachGoal',
|
|
11719
|
-
params: {
|
|
11720
|
-
yandexId: YANDEX_ID,
|
|
11721
|
-
targetName: 'app_work',
|
|
11722
|
-
},
|
|
11723
|
-
},
|
|
11724
|
-
{
|
|
11725
|
-
aspectName: 'snowplowEvent',
|
|
11726
|
-
params: {
|
|
11727
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormEmployerDetailsNext',
|
|
11728
|
-
eventCategory: 'naturalCredits',
|
|
11729
|
-
eventValueText: 'Кредит со сниженным платежом Данные о работодателе Кнопка Далее',
|
|
11730
|
-
},
|
|
11731
|
-
},
|
|
11732
|
-
],
|
|
11733
|
-
[
|
|
11734
|
-
{
|
|
11735
|
-
aspectName: 'ymReachGoal',
|
|
11736
|
-
params: {
|
|
11737
|
-
yandexId: YANDEX_ID,
|
|
11738
|
-
targetName: 'app_income',
|
|
11739
|
-
},
|
|
11740
|
-
},
|
|
11741
|
-
{
|
|
11742
|
-
aspectName: 'snowplowEvent',
|
|
11743
|
-
params: {
|
|
11744
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormFamilyStatusNext',
|
|
11745
|
-
eventCategory: 'naturalCredits',
|
|
11746
|
-
eventValueText: 'Кредит со сниженным платежом Семейное положение и доход Кнопка Далее',
|
|
11747
|
-
},
|
|
11748
|
-
},
|
|
11749
|
-
],
|
|
11750
|
-
[
|
|
11751
|
-
{
|
|
11752
|
-
aspectName: 'ymReachGoal',
|
|
11753
|
-
params: {
|
|
11754
|
-
yandexId: YANDEX_ID,
|
|
11755
|
-
targetName: 'app_bank_office',
|
|
11756
|
-
},
|
|
11757
|
-
},
|
|
11758
|
-
{
|
|
11759
|
-
aspectName: 'snowplowEvent',
|
|
11760
|
-
params: {
|
|
11761
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormBankDepartmentChoosingNext',
|
|
11762
|
-
eventCategory: 'naturalCredits',
|
|
11763
|
-
eventValueText: 'Кредит со сниженным платежом Выбор отделения Кнопка Далее',
|
|
11764
|
-
},
|
|
11765
|
-
},
|
|
11766
|
-
],
|
|
11933
|
+
const CREDIT_FORM_STEPS_ASPECTS = [
|
|
11934
|
+
{
|
|
11935
|
+
ymTargetName: 'credit_calculator',
|
|
11936
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditSummPeriodNext',
|
|
11937
|
+
snowplowEventCategory: 'naturalCredits',
|
|
11938
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Сумма и сроки кредита Кнопка Далее',
|
|
11939
|
+
},
|
|
11940
|
+
{
|
|
11941
|
+
ymTargetName: 'app_personal_data',
|
|
11942
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormPassportNext',
|
|
11943
|
+
snowplowEventCategory: 'naturalCredits',
|
|
11944
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Паспортные данные Кнопка Далее',
|
|
11945
|
+
},
|
|
11946
|
+
{
|
|
11947
|
+
ymTargetName: 'app_work',
|
|
11948
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormEmployerDetailsNext',
|
|
11949
|
+
snowplowEventCategory: 'naturalCredits',
|
|
11950
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Данные о работодателе Кнопка Далее',
|
|
11951
|
+
},
|
|
11952
|
+
{
|
|
11953
|
+
ymTargetName: 'app_income',
|
|
11954
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormFamilyStatusNext',
|
|
11955
|
+
snowplowEventCategory: 'naturalCredits',
|
|
11956
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Семейное положение и доход Кнопка Далее',
|
|
11957
|
+
},
|
|
11958
|
+
{
|
|
11959
|
+
ymTargetName: 'app_bank_office',
|
|
11960
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormBankDepartmentChoosingNext',
|
|
11961
|
+
snowplowEventCategory: 'naturalCredits',
|
|
11962
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Выбор отделения Кнопка Далее',
|
|
11963
|
+
},
|
|
11767
11964
|
];
|
|
11965
|
+
|
|
11768
11966
|
const StepsNavigationButtons$1 = JSX(({ step, onPrevStep, isSending, programId, productType = 'credit' }) => {
|
|
11769
11967
|
const isFirstStep = step === 0;
|
|
11770
11968
|
const isFinalStep = step === 5;
|
|
11771
|
-
const aspects =
|
|
11969
|
+
const aspects = getStepAspects({
|
|
11772
11970
|
step,
|
|
11773
11971
|
programId,
|
|
11774
11972
|
productType,
|
|
11775
|
-
|
|
11973
|
+
stepsConfig: CREDIT_FORM_STEPS_ASPECTS,
|
|
11776
11974
|
});
|
|
11777
11975
|
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 ? 'Отправить заявку' : 'Далее' })] }));
|
|
11778
11976
|
});
|
|
@@ -12300,10 +12498,23 @@
|
|
|
12300
12498
|
return statusesMap[status] || jsx(SuccessStatusContent, { isOffice: isOffice });
|
|
12301
12499
|
};
|
|
12302
12500
|
|
|
12303
|
-
const
|
|
12501
|
+
const DEBIT_FORM_STEPS_ASPECTS = [
|
|
12502
|
+
{ ymTargetName: 'debit_region' },
|
|
12503
|
+
{ ymTargetName: 'debit_app_personal_data' },
|
|
12504
|
+
{ ymTargetName: 'debit_app_card_data' },
|
|
12505
|
+
];
|
|
12506
|
+
|
|
12507
|
+
const StepsNavigationButtons = JSX(({ step, onPrevStep, isSending, programId, productType = 'debitCard', paymentSystem }) => {
|
|
12304
12508
|
const isFirstStep = step === 0;
|
|
12305
12509
|
const isFinalStep = step === 5;
|
|
12306
|
-
|
|
12510
|
+
const aspects = getStepAspects({
|
|
12511
|
+
step,
|
|
12512
|
+
programId,
|
|
12513
|
+
productType,
|
|
12514
|
+
paymentSystem,
|
|
12515
|
+
stepsConfig: DEBIT_FORM_STEPS_ASPECTS,
|
|
12516
|
+
});
|
|
12517
|
+
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 ? 'Отправить заявку' : 'Далее' })] }));
|
|
12307
12518
|
});
|
|
12308
12519
|
|
|
12309
12520
|
const updateUserTaskDebit = (body) => doRequest('/user-data/updateUserTaskDebit', 'PUT', body);
|
|
@@ -12474,6 +12685,7 @@
|
|
|
12474
12685
|
|
|
12475
12686
|
const PRODUCT_TYPE = 'debitCard';
|
|
12476
12687
|
const DebitFormStep = JSX(({ step, sections, onPrevStep, onNextStep, onFinish }) => {
|
|
12688
|
+
const { programId } = useRetailFormStore();
|
|
12477
12689
|
useIFrameMode();
|
|
12478
12690
|
const inputs = useMemo(() => sections?.flatMap((_) => _?.inputs ?? []), [sections]);
|
|
12479
12691
|
const formValidator = useCallback((formState) => getRetailFormValidator({
|
|
@@ -12486,11 +12698,12 @@
|
|
|
12486
12698
|
onNextStep,
|
|
12487
12699
|
onFinish,
|
|
12488
12700
|
});
|
|
12489
|
-
const [, { field, onSubmit: handleSubmit }] = useForm(initialState, {
|
|
12701
|
+
const [formState, { field, onSubmit: handleSubmit }] = useForm(initialState, {
|
|
12490
12702
|
formValidator,
|
|
12491
12703
|
onSubmit,
|
|
12492
12704
|
});
|
|
12493
|
-
|
|
12705
|
+
const PAYMENT_SYSTEM = formState.paymentSystem?.text;
|
|
12706
|
+
return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field }), jsx(StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep, programId: programId, productType: PRODUCT_TYPE, paymentSystem: PAYMENT_SYSTEM })] }));
|
|
12494
12707
|
});
|
|
12495
12708
|
|
|
12496
12709
|
/* eslint-disable max-lines */
|
|
@@ -14908,7 +15121,7 @@
|
|
|
14908
15121
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14909
15122
|
});
|
|
14910
15123
|
|
|
14911
|
-
const packageVersion = "0.14.
|
|
15124
|
+
const packageVersion = "0.14.1077";
|
|
14912
15125
|
|
|
14913
15126
|
exports.Blocks = Blocks;
|
|
14914
15127
|
exports.ContentPage = ContentPage;
|