@redneckz/wildless-cms-uni-blocks 0.14.1077 → 0.14.1079
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 +476 -255
- 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/CalculatorCredit/CalculatorCredit.js +14 -1
- package/dist/components/CalculatorCredit/CalculatorCredit.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/components/Fields/CreditCalcField.js +0 -6
- package/dist/retail/components/Fields/CreditCalcField.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/CalculatorCredit/CalculatorCredit.js +15 -2
- package/lib/components/CalculatorCredit/CalculatorCredit.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/components/Fields/CreditCalcField.js +0 -6
- package/lib/retail/components/Fields/CreditCalcField.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 +476 -255
- 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/CalculatorCredit/CalculatorCredit.js +14 -1
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.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/components/Fields/CreditCalcField.js +0 -6
- package/mobile/dist/retail/components/Fields/CreditCalcField.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/CalculatorCredit/CalculatorCredit.js +15 -2
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.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/components/Fields/CreditCalcField.js +0 -6
- package/mobile/lib/retail/components/Fields/CreditCalcField.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/CalculatorCredit/CalculatorCredit.tsx +18 -2
- 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/components/Fields/CreditCalcField.tsx +0 -7
- 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/CalculatorCredit/CalculatorCredit.tsx +18 -2
- 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/components/Fields/CreditCalcField.tsx +0 -7
- 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
|
@@ -5937,6 +5937,7 @@
|
|
|
5937
5937
|
moneyValue: 'maxSum',
|
|
5938
5938
|
};
|
|
5939
5939
|
const CalculatorCredit = UniBlock(({ className, title, calcSource, buttons, footnote, paramsViewSettings, defaultParams, onChange, ...rest }) => {
|
|
5940
|
+
const isInitialized = useRef(false);
|
|
5940
5941
|
const defaultParamsCals = getDefaultParamsMin(calcSource?.rateRows);
|
|
5941
5942
|
const handleChange = useCallback((params) => {
|
|
5942
5943
|
const _calcParams = getCreditCalculatorParams(params, calcSource, paramsViewSettings);
|
|
@@ -5945,7 +5946,7 @@
|
|
|
5945
5946
|
monthlyPayment: _calcParams.monthlyPayment,
|
|
5946
5947
|
rate: defaultParamsCals?.rate ?? 0,
|
|
5947
5948
|
});
|
|
5948
|
-
}, [paramsViewSettings, calcSource]);
|
|
5949
|
+
}, [paramsViewSettings, calcSource, defaultParamsCals?.rate]);
|
|
5949
5950
|
const [userInputParams, { field }] = useForm(getCalcParams(defaultParams), {
|
|
5950
5951
|
onChange: handleChange,
|
|
5951
5952
|
});
|
|
@@ -5955,6 +5956,18 @@
|
|
|
5955
5956
|
});
|
|
5956
5957
|
const { onChange: setMoneyValue } = field('moneyValue');
|
|
5957
5958
|
const { onChange: setMonthsValue } = field('monthsValue');
|
|
5959
|
+
useEffect(() => {
|
|
5960
|
+
if (!isInitialized.current &&
|
|
5961
|
+
defaultParamsCals?.rate !== undefined &&
|
|
5962
|
+
calcParams.monthlyPayment !== undefined) {
|
|
5963
|
+
onChange?.({
|
|
5964
|
+
...userInputParams,
|
|
5965
|
+
monthlyPayment: calcParams.monthlyPayment,
|
|
5966
|
+
rate: defaultParamsCals.rate,
|
|
5967
|
+
});
|
|
5968
|
+
isInitialized.current = true;
|
|
5969
|
+
}
|
|
5970
|
+
}, [defaultParamsCals?.rate, calcParams.monthlyPayment]);
|
|
5958
5971
|
useEffect(() => {
|
|
5959
5972
|
setMoneyValue &&
|
|
5960
5973
|
setMoneyValue(clamp(userInputParams.moneyValue, calcParams.minSum, calcParams.maxSum));
|
|
@@ -6005,11 +6018,6 @@
|
|
|
6005
6018
|
: params?.calcData?.defaultParams);
|
|
6006
6019
|
}
|
|
6007
6020
|
}, [params?.calcData?.defaultParams]);
|
|
6008
|
-
useEffect(() => {
|
|
6009
|
-
if (defaultParams) {
|
|
6010
|
-
handleChange(getCalcParams(defaultParams));
|
|
6011
|
-
}
|
|
6012
|
-
}, [defaultParams]);
|
|
6013
6021
|
return defaultParams ? (jsx(CalculatorCredit, { ...params?.calcData, defaultParams: defaultParams, padding: "p-0", onChange: handleChange })) : (jsx(Loader, {}));
|
|
6014
6022
|
});
|
|
6015
6023
|
const PARAMS_MAP = {
|
|
@@ -6897,7 +6905,74 @@
|
|
|
6897
6905
|
restInputs: inputs.filter(({ name }) => !Object.keys(productTypeToConsentsMap[productType]).includes(String(name))),
|
|
6898
6906
|
});
|
|
6899
6907
|
|
|
6900
|
-
const
|
|
6908
|
+
const YANDEX_ID = projectSettings.YANDEX_METRIKA_ID || '92511315';
|
|
6909
|
+
|
|
6910
|
+
const ASPECTS_MAP = {
|
|
6911
|
+
leadForm: {
|
|
6912
|
+
debitCard: 'debit_lead_form',
|
|
6913
|
+
creditCard: 'card_lead_form',
|
|
6914
|
+
default: 'lead_form',
|
|
6915
|
+
},
|
|
6916
|
+
draft: {
|
|
6917
|
+
debitCard: 'debit_draft_app',
|
|
6918
|
+
creditCard: 'card_draft_app',
|
|
6919
|
+
default: 'draft_app',
|
|
6920
|
+
},
|
|
6921
|
+
smsAuth: {
|
|
6922
|
+
debitCard: 'debit_sms_auth',
|
|
6923
|
+
creditCard: 'card_sms_auth',
|
|
6924
|
+
default: 'sms_auth',
|
|
6925
|
+
},
|
|
6926
|
+
consentBki: {
|
|
6927
|
+
creditCard: 'card_consent_bki',
|
|
6928
|
+
default: 'consent_bki',
|
|
6929
|
+
},
|
|
6930
|
+
smsBki: {
|
|
6931
|
+
creditCard: 'card_sms_bki',
|
|
6932
|
+
default: 'sms_bki',
|
|
6933
|
+
},
|
|
6934
|
+
current: {
|
|
6935
|
+
debitCard: 'debit_current_app',
|
|
6936
|
+
creditCard: 'card_current_app',
|
|
6937
|
+
default: 'current_app',
|
|
6938
|
+
},
|
|
6939
|
+
timer: {
|
|
6940
|
+
creditCard: 'card_timer',
|
|
6941
|
+
default: 'timer',
|
|
6942
|
+
},
|
|
6943
|
+
timerEnd: {
|
|
6944
|
+
creditCard: 'card_timer_end',
|
|
6945
|
+
default: 'timer_end',
|
|
6946
|
+
},
|
|
6947
|
+
preDecision: {
|
|
6948
|
+
creditCard: 'card_pre_decision',
|
|
6949
|
+
default: 'pre_decision',
|
|
6950
|
+
},
|
|
6951
|
+
revision: {
|
|
6952
|
+
creditCard: 'card_revision',
|
|
6953
|
+
default: 'revision',
|
|
6954
|
+
},
|
|
6955
|
+
refuse: {
|
|
6956
|
+
creditCard: 'card_refuse',
|
|
6957
|
+
default: 'refuse',
|
|
6958
|
+
},
|
|
6959
|
+
};
|
|
6960
|
+
const getAspects = (aspectType, productType) => {
|
|
6961
|
+
const aspectForType = ASPECTS_MAP[aspectType];
|
|
6962
|
+
return [
|
|
6963
|
+
{
|
|
6964
|
+
aspectName: 'ymReachGoal',
|
|
6965
|
+
params: { yandexId: YANDEX_ID, targetName: aspectForType[productType || 'default'] },
|
|
6966
|
+
},
|
|
6967
|
+
];
|
|
6968
|
+
};
|
|
6969
|
+
|
|
6970
|
+
const renderSubmitButton = (button, options) => {
|
|
6971
|
+
const isSending = options?.isSending;
|
|
6972
|
+
const productType = options?.productType;
|
|
6973
|
+
const defaultAspects = getAspects('leadForm', productType);
|
|
6974
|
+
return (jsx(SubmitButton$1, { className: "w-full @xl:w-auto", isLoading: isSending ?? false, testId: "LeadSubmitButton", data: defaultAspects, children: button?.text ? button.text : 'Отправить заявку' }));
|
|
6975
|
+
};
|
|
6901
6976
|
|
|
6902
6977
|
const createDraftTask = async (body) => {
|
|
6903
6978
|
const isNewMicroservice = checkNewMicroservice();
|
|
@@ -7162,13 +7237,21 @@
|
|
|
7162
7237
|
{ id: 'REFUSE', text: 'Отказаться' },
|
|
7163
7238
|
];
|
|
7164
7239
|
const CONSENT_BKI_ID = 2;
|
|
7165
|
-
const ConsentBkiDialog = JSX(({ onSubmit = noop, onClose = noop }) => {
|
|
7240
|
+
const ConsentBkiDialog = JSX(({ onSubmit = noop, onClose = noop, productType }) => {
|
|
7166
7241
|
const [confirmStatus, setConfirmStatus] = useState('');
|
|
7167
7242
|
const [showRefuseContent, setShowRefuseContent] = useState(false);
|
|
7168
7243
|
const { openDocument } = useDocumentDialog(CONSENT_BKI_ID);
|
|
7244
|
+
const aspects = useAspects();
|
|
7169
7245
|
const handleSubmit = useCallback(() => {
|
|
7246
|
+
if (confirmStatus === 'SIGNED') {
|
|
7247
|
+
handleAspects({
|
|
7248
|
+
aspectsAttributes: getAspects('consentBki', productType),
|
|
7249
|
+
aspects,
|
|
7250
|
+
ev: {},
|
|
7251
|
+
});
|
|
7252
|
+
}
|
|
7170
7253
|
onSubmit(confirmStatus);
|
|
7171
|
-
}, [onSubmit, confirmStatus]);
|
|
7254
|
+
}, [onSubmit, confirmStatus, aspects, productType]);
|
|
7172
7255
|
const handleConfirmChange = useCallback((value) => {
|
|
7173
7256
|
setConfirmStatus(value);
|
|
7174
7257
|
setShowRefuseContent(value === 'REFUSE');
|
|
@@ -7177,63 +7260,77 @@
|
|
|
7177
7260
|
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
7261
|
});
|
|
7179
7262
|
|
|
7180
|
-
const
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7263
|
+
const createHandleSuccessVerify = ({ profileId, taskId, participantId, aspects, onClose, productType, }) => async (smsCode) => {
|
|
7264
|
+
try {
|
|
7265
|
+
if (profileId) {
|
|
7266
|
+
await updateUserProfile({
|
|
7267
|
+
profile: {
|
|
7268
|
+
id: profileId,
|
|
7269
|
+
consentBkiFlg: true,
|
|
7270
|
+
smsConsentBki: smsCode,
|
|
7271
|
+
},
|
|
7272
|
+
});
|
|
7273
|
+
}
|
|
7274
|
+
else if (taskId && participantId) {
|
|
7275
|
+
await updateUserTask({
|
|
7276
|
+
task: {
|
|
7277
|
+
id: taskId,
|
|
7278
|
+
participant: {
|
|
7279
|
+
id: participantId,
|
|
7189
7280
|
consentBkiFlg: true,
|
|
7190
7281
|
smsConsentBki: smsCode,
|
|
7191
7282
|
},
|
|
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,
|
|
7283
|
+
},
|
|
7284
|
+
sendToBank: false,
|
|
7285
|
+
taskKind: 'SHORT',
|
|
7221
7286
|
});
|
|
7222
7287
|
}
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7288
|
+
handleAspects({
|
|
7289
|
+
aspectsAttributes: getAspects('smsBki', productType),
|
|
7290
|
+
aspects,
|
|
7291
|
+
ev: {},
|
|
7292
|
+
});
|
|
7293
|
+
onClose();
|
|
7294
|
+
}
|
|
7295
|
+
catch (ex) {
|
|
7296
|
+
console.log(ex);
|
|
7297
|
+
}
|
|
7298
|
+
};
|
|
7299
|
+
const createHandleSubmitBkiConsent = ({ submitProps, verifyPhoneDialog, aspects, onClose }) => async (confirmStatus) => {
|
|
7300
|
+
const { phone, profileId, onFail, taskId, participantId, productType } = submitProps;
|
|
7301
|
+
if (confirmStatus === 'SIGNED' && phone) {
|
|
7302
|
+
verifyPhoneDialog.open({
|
|
7303
|
+
phone,
|
|
7304
|
+
consents: ['согласие на запрос информации в БКИ'],
|
|
7305
|
+
onSuccess: createHandleSuccessVerify({
|
|
7231
7306
|
profileId,
|
|
7232
|
-
onFail,
|
|
7233
7307
|
taskId,
|
|
7234
7308
|
participantId,
|
|
7309
|
+
aspects,
|
|
7310
|
+
onClose,
|
|
7311
|
+
productType,
|
|
7312
|
+
}),
|
|
7313
|
+
onFail,
|
|
7314
|
+
});
|
|
7315
|
+
}
|
|
7316
|
+
else {
|
|
7317
|
+
onClose();
|
|
7318
|
+
}
|
|
7319
|
+
};
|
|
7320
|
+
const useConsentBkiDialog = (onClose, productType) => {
|
|
7321
|
+
const { open } = useDialog(ConsentBkiDialog);
|
|
7322
|
+
const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
|
|
7323
|
+
const aspects = useAspects();
|
|
7324
|
+
return {
|
|
7325
|
+
open: ({ phone, profileId, onFail, taskId, participantId }) => open({
|
|
7326
|
+
onSubmit: createHandleSubmitBkiConsent({
|
|
7327
|
+
submitProps: { phone, profileId, onFail, taskId, participantId, productType },
|
|
7328
|
+
verifyPhoneDialog,
|
|
7329
|
+
aspects,
|
|
7330
|
+
onClose,
|
|
7235
7331
|
}),
|
|
7236
7332
|
onClose,
|
|
7333
|
+
productType,
|
|
7237
7334
|
}),
|
|
7238
7335
|
};
|
|
7239
7336
|
};
|
|
@@ -7296,10 +7393,10 @@
|
|
|
7296
7393
|
return undefined;
|
|
7297
7394
|
};
|
|
7298
7395
|
|
|
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] })] })));
|
|
7396
|
+
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
7397
|
|
|
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" })] })] }));
|
|
7398
|
+
const DraftDialogContent = JSX(function ({ createdDate, productData, isFromLead, handleGoToDraft, handleGoToNewTask, onClose, draftAspects, currentAspects, }) {
|
|
7399
|
+
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
7400
|
});
|
|
7304
7401
|
|
|
7305
7402
|
const fieldsNamesToContactKeysMap = {
|
|
@@ -7580,7 +7677,19 @@
|
|
|
7580
7677
|
}
|
|
7581
7678
|
navigator.assign(productData.newTaskLink);
|
|
7582
7679
|
}, [task.id, productData.newTaskLink, isNewMicroservice]);
|
|
7583
|
-
|
|
7680
|
+
let productType;
|
|
7681
|
+
if (isDebit) {
|
|
7682
|
+
productType = 'debitCard';
|
|
7683
|
+
}
|
|
7684
|
+
else if (taskType === 'card') {
|
|
7685
|
+
productType = 'creditCard';
|
|
7686
|
+
}
|
|
7687
|
+
else {
|
|
7688
|
+
productType = 'credit';
|
|
7689
|
+
}
|
|
7690
|
+
const draftAspects = getAspects('draft', productType);
|
|
7691
|
+
const currentAspects = getAspects('current', productType);
|
|
7692
|
+
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
7693
|
});
|
|
7585
7694
|
|
|
7586
7695
|
const EmptyDraftDialog = JSX(function ({ taskType, isDebit, onClose = noop, }) {
|
|
@@ -7758,11 +7867,12 @@
|
|
|
7758
7867
|
const sessionStore = useSessionStore();
|
|
7759
7868
|
const leadFormStore = useLeadFormStore();
|
|
7760
7869
|
const sendAspects = useSendLeadFormAspects({ data });
|
|
7870
|
+
const aspects = useAspects();
|
|
7761
7871
|
const navigator = locationNavigator();
|
|
7762
7872
|
const goToNextStep = useCallback(() => {
|
|
7763
7873
|
navigator.assign(nextStepLink);
|
|
7764
7874
|
}, []);
|
|
7765
|
-
const consentBkiDialog = useConsentBkiDialog(goToNextStep);
|
|
7875
|
+
const consentBkiDialog = useConsentBkiDialog(goToNextStep, productType);
|
|
7766
7876
|
const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
|
|
7767
7877
|
const draftDialog = useDraftDialog();
|
|
7768
7878
|
const handleFailSendForm = () => {
|
|
@@ -7781,51 +7891,28 @@
|
|
|
7781
7891
|
if (!profileId) {
|
|
7782
7892
|
throw new Error();
|
|
7783
7893
|
}
|
|
7784
|
-
const
|
|
7785
|
-
|
|
7894
|
+
const oldMicroserviceProps = {
|
|
7895
|
+
common: {
|
|
7896
|
+
aspects,
|
|
7786
7897
|
programId,
|
|
7898
|
+
productType,
|
|
7899
|
+
sendAspects,
|
|
7900
|
+
verifyPhoneDialog,
|
|
7901
|
+
handleFailSendForm,
|
|
7787
7902
|
profileId,
|
|
7903
|
+
},
|
|
7904
|
+
taskData: {
|
|
7788
7905
|
formData: transformedFormData,
|
|
7789
|
-
productType,
|
|
7790
7906
|
referalData,
|
|
7791
7907
|
marketingInfo,
|
|
7792
7908
|
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
|
-
}
|
|
7909
|
+
},
|
|
7910
|
+
goToNextStep,
|
|
7911
|
+
consentBkiDialog,
|
|
7912
|
+
draftDialog,
|
|
7828
7913
|
};
|
|
7914
|
+
const sendCurrentTask = createSendCurrentTaskOld(oldMicroserviceProps);
|
|
7915
|
+
const handleSuccessVerify = createHandleSuccessVerifyOld(oldMicroserviceProps, sendCurrentTask);
|
|
7829
7916
|
const acceptedConsents = getAcceptedConsents(transformedFormData, productType);
|
|
7830
7917
|
verifyPhoneDialog.open({
|
|
7831
7918
|
phone: transformedFormData.phone,
|
|
@@ -7853,6 +7940,7 @@
|
|
|
7853
7940
|
sendAspects,
|
|
7854
7941
|
verifyPhoneDialog,
|
|
7855
7942
|
handleFailSendForm,
|
|
7943
|
+
aspects,
|
|
7856
7944
|
};
|
|
7857
7945
|
const taskData = {
|
|
7858
7946
|
formData: transformedFormData,
|
|
@@ -7912,8 +8000,13 @@
|
|
|
7912
8000
|
});
|
|
7913
8001
|
};
|
|
7914
8002
|
const createHandleSuccessVerifyNew = ({ common, taskData, draftDialog, consentBkiDialog, }) => async () => {
|
|
7915
|
-
const {
|
|
8003
|
+
const { verifyPhoneDialog, sendAspects, handleFailSendForm, programId, productType, aspects } = common;
|
|
7916
8004
|
const { formData } = taskData;
|
|
8005
|
+
handleAspects({
|
|
8006
|
+
aspectsAttributes: getAspects('leadForm', productType),
|
|
8007
|
+
aspects,
|
|
8008
|
+
ev: {},
|
|
8009
|
+
});
|
|
7917
8010
|
try {
|
|
7918
8011
|
const participantData = await createParticipant({
|
|
7919
8012
|
phone: formatPhone(formData.phone),
|
|
@@ -7960,6 +8053,62 @@
|
|
|
7960
8053
|
handleFailSendForm();
|
|
7961
8054
|
}
|
|
7962
8055
|
};
|
|
8056
|
+
const createSendCurrentTaskOld = (props) => async () => {
|
|
8057
|
+
const { common, taskData, goToNextStep, consentBkiDialog } = props;
|
|
8058
|
+
const { programId, profileId, productType, verifyPhoneDialog, handleFailSendForm } = common;
|
|
8059
|
+
const { formData } = taskData;
|
|
8060
|
+
await updateUserData({
|
|
8061
|
+
programId,
|
|
8062
|
+
profileId,
|
|
8063
|
+
formData,
|
|
8064
|
+
productType,
|
|
8065
|
+
referalData: taskData.referalData,
|
|
8066
|
+
marketingInfo: taskData.marketingInfo,
|
|
8067
|
+
saveUserData: taskData.saveUserData,
|
|
8068
|
+
sendAspects: common.sendAspects,
|
|
8069
|
+
});
|
|
8070
|
+
verifyPhoneDialog.close();
|
|
8071
|
+
if (productType === 'debitCard') {
|
|
8072
|
+
goToNextStep();
|
|
8073
|
+
}
|
|
8074
|
+
else {
|
|
8075
|
+
consentBkiDialog.open({
|
|
8076
|
+
phone: formData.phone,
|
|
8077
|
+
profileId,
|
|
8078
|
+
onFail: handleFailSendForm,
|
|
8079
|
+
});
|
|
8080
|
+
}
|
|
8081
|
+
};
|
|
8082
|
+
const createHandleSuccessVerifyOld = (props, sendCurrentTask) => async () => {
|
|
8083
|
+
const { common, draftDialog } = props;
|
|
8084
|
+
const { aspects, programId, sendAspects, verifyPhoneDialog, handleFailSendForm, profileId } = common;
|
|
8085
|
+
const productType = common.productType;
|
|
8086
|
+
handleAspects({
|
|
8087
|
+
aspectsAttributes: getAspects('leadForm', productType),
|
|
8088
|
+
aspects,
|
|
8089
|
+
ev: {},
|
|
8090
|
+
});
|
|
8091
|
+
try {
|
|
8092
|
+
const lastTaskId = await getLastTaskStatus({ profileId, programId });
|
|
8093
|
+
if (lastTaskId) {
|
|
8094
|
+
const task = await getTaskById({ taskId: lastTaskId });
|
|
8095
|
+
verifyPhoneDialog.close();
|
|
8096
|
+
draftDialog.open({
|
|
8097
|
+
task,
|
|
8098
|
+
isFromLead: true,
|
|
8099
|
+
taskType: productTypeToTaskType(productType),
|
|
8100
|
+
sendAspects,
|
|
8101
|
+
onClose: sendCurrentTask,
|
|
8102
|
+
});
|
|
8103
|
+
}
|
|
8104
|
+
else {
|
|
8105
|
+
await sendCurrentTask();
|
|
8106
|
+
}
|
|
8107
|
+
}
|
|
8108
|
+
catch {
|
|
8109
|
+
handleFailSendForm();
|
|
8110
|
+
}
|
|
8111
|
+
};
|
|
7963
8112
|
const getAcceptedConsents = (formData, productType) => {
|
|
7964
8113
|
const consents = productTypeToConsentsMap[productType];
|
|
7965
8114
|
return Object.keys(consents)
|
|
@@ -8517,7 +8666,7 @@
|
|
|
8517
8666
|
reset();
|
|
8518
8667
|
}
|
|
8519
8668
|
}, [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] })] }));
|
|
8669
|
+
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
8670
|
});
|
|
8522
8671
|
const getInputs = (applicationFormData) => (applicationFormData?.flatMap((_) => _?.inputs) || []);
|
|
8523
8672
|
const getExtendedValidatorObj = (productType) => ({
|
|
@@ -10454,10 +10603,36 @@
|
|
|
10454
10603
|
};
|
|
10455
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 })] }));
|
|
10456
10605
|
|
|
10457
|
-
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
|
+
});
|
|
10458
10617
|
|
|
10459
10618
|
const PendingStatusContent$2 = JSX(({ onExpire }) => {
|
|
10460
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
|
+
};
|
|
10461
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: [
|
|
10462
10637
|
{
|
|
10463
10638
|
label: 'Название продукта',
|
|
@@ -10467,11 +10642,19 @@
|
|
|
10467
10642
|
label: 'Категория',
|
|
10468
10643
|
description: statusInfo?.cardCategory,
|
|
10469
10644
|
},
|
|
10470
|
-
], onExpire:
|
|
10645
|
+
], onExpire: handleExpireWithEvent }));
|
|
10471
10646
|
});
|
|
10472
10647
|
|
|
10473
10648
|
const ReworkStatusContent$1 = JSX(() => {
|
|
10474
10649
|
const { statusInfo } = useRetailFormStore();
|
|
10650
|
+
const aspects = useAspects();
|
|
10651
|
+
useEffect(() => {
|
|
10652
|
+
handleAspects({
|
|
10653
|
+
aspectsAttributes: getAspects('revision', 'creditCard'),
|
|
10654
|
+
aspects,
|
|
10655
|
+
ev: {},
|
|
10656
|
+
});
|
|
10657
|
+
}, []);
|
|
10475
10658
|
const isCourierDelivery = statusInfo?.methodObtain === 'courier';
|
|
10476
10659
|
const infoAdditional = isCourierDelivery
|
|
10477
10660
|
? [
|
|
@@ -10501,6 +10684,14 @@
|
|
|
10501
10684
|
|
|
10502
10685
|
const SuccessStatusCardContent = JSX(() => {
|
|
10503
10686
|
const { statusInfo } = useRetailFormStore();
|
|
10687
|
+
const aspects = useAspects();
|
|
10688
|
+
useEffect(() => {
|
|
10689
|
+
handleAspects({
|
|
10690
|
+
aspectsAttributes: getAspects('preDecision', 'creditCard'),
|
|
10691
|
+
aspects,
|
|
10692
|
+
ev: {},
|
|
10693
|
+
});
|
|
10694
|
+
}, []);
|
|
10504
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" }));
|
|
10505
10696
|
});
|
|
10506
10697
|
const getSectionInfo = (statusInfo) => {
|
|
@@ -10630,10 +10821,88 @@
|
|
|
10630
10821
|
inn: organizationInnValidator(formState.isDadataOrganization),
|
|
10631
10822
|
})(formState);
|
|
10632
10823
|
|
|
10633
|
-
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 }) => {
|
|
10634
10896
|
const isFirstStep = step === 0;
|
|
10635
10897
|
const isFinalStep = step === 5;
|
|
10636
|
-
|
|
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 ? 'Отправить заявку' : 'Далее' })] }));
|
|
10637
10906
|
});
|
|
10638
10907
|
|
|
10639
10908
|
const getInitialFormState = (step, formState, formStateMap) => ({
|
|
@@ -10968,6 +11237,7 @@
|
|
|
10968
11237
|
|
|
10969
11238
|
const PRODUCT_TYPE$2 = 'creditCard';
|
|
10970
11239
|
const CreditCardFormStep = JSX(({ step, sections, onPrevStep, onNextStep, onFinish }) => {
|
|
11240
|
+
const { programId } = useRetailFormStore();
|
|
10971
11241
|
useIFrameMode();
|
|
10972
11242
|
const inputs = useMemo(() => sections?.flatMap((_) => _?.inputs || []), [sections]);
|
|
10973
11243
|
const formValidator = useCallback((formState) => getRetailFormValidator({
|
|
@@ -10980,11 +11250,12 @@
|
|
|
10980
11250
|
onNextStep,
|
|
10981
11251
|
onFinish,
|
|
10982
11252
|
});
|
|
10983
|
-
const [, { field, onSubmit: handleSubmit }] = useForm(initialState, {
|
|
11253
|
+
const [formState, { field, onSubmit: handleSubmit }] = useForm(initialState, {
|
|
10984
11254
|
formValidator,
|
|
10985
11255
|
onSubmit,
|
|
10986
11256
|
});
|
|
10987
|
-
|
|
11257
|
+
const PAYMENT_SYSTEM = formState.paymentSystem?.text;
|
|
11258
|
+
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
11259
|
});
|
|
10989
11260
|
|
|
10990
11261
|
const PERSONAL_DATA = [
|
|
@@ -11492,29 +11763,37 @@
|
|
|
11492
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 })] }) }));
|
|
11493
11764
|
});
|
|
11494
11765
|
|
|
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
|
-
};
|
|
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
|
+
});
|
|
11514
11777
|
|
|
11515
11778
|
const PendingStatusContent$1 = JSX(({ onExpire }) => {
|
|
11516
11779
|
const { statusInfo, programId } = useRetailFormStore();
|
|
11517
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]);
|
|
11518
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: [
|
|
11519
11798
|
{
|
|
11520
11799
|
label: 'Название продукта',
|
|
@@ -11536,11 +11815,19 @@
|
|
|
11536
11815
|
label: 'Тип платежа',
|
|
11537
11816
|
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
11538
11817
|
},
|
|
11539
|
-
], onExpire:
|
|
11818
|
+
], onExpire: handleExpireWithEvent }));
|
|
11540
11819
|
});
|
|
11541
11820
|
|
|
11542
11821
|
const ReworkStatusContent = JSX(() => {
|
|
11543
11822
|
const { statusInfo } = useRetailFormStore();
|
|
11823
|
+
const aspects = useAspects();
|
|
11824
|
+
useEffect(() => {
|
|
11825
|
+
handleAspects({
|
|
11826
|
+
aspectsAttributes: getAspects('revision', 'credit'),
|
|
11827
|
+
aspects,
|
|
11828
|
+
ev: {},
|
|
11829
|
+
});
|
|
11830
|
+
}, []);
|
|
11544
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: [
|
|
11545
11832
|
{
|
|
11546
11833
|
label: 'Регион',
|
|
@@ -11561,6 +11848,14 @@
|
|
|
11561
11848
|
const SuccessStatusContent$1 = JSX(() => {
|
|
11562
11849
|
const { statusInfo, programId } = useRetailFormStore();
|
|
11563
11850
|
const creditInfo = getCreditInfo(programId);
|
|
11851
|
+
const aspects = useAspects();
|
|
11852
|
+
useEffect(() => {
|
|
11853
|
+
handleAspects({
|
|
11854
|
+
aspectsAttributes: getAspects('preDecision', 'credit'),
|
|
11855
|
+
aspects,
|
|
11856
|
+
ev: {},
|
|
11857
|
+
});
|
|
11858
|
+
}, []);
|
|
11564
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: [
|
|
11565
11860
|
{
|
|
11566
11861
|
label: 'Название продукта',
|
|
@@ -11635,136 +11930,47 @@
|
|
|
11635
11930
|
return statusesMap[status] || jsx(ReworkStatusContent, {});
|
|
11636
11931
|
};
|
|
11637
11932
|
|
|
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
|
-
],
|
|
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
|
+
},
|
|
11759
11964
|
];
|
|
11965
|
+
|
|
11760
11966
|
const StepsNavigationButtons$1 = JSX(({ step, onPrevStep, isSending, programId, productType = 'credit' }) => {
|
|
11761
11967
|
const isFirstStep = step === 0;
|
|
11762
11968
|
const isFinalStep = step === 5;
|
|
11763
|
-
const aspects =
|
|
11969
|
+
const aspects = getStepAspects({
|
|
11764
11970
|
step,
|
|
11765
11971
|
programId,
|
|
11766
11972
|
productType,
|
|
11767
|
-
|
|
11973
|
+
stepsConfig: CREDIT_FORM_STEPS_ASPECTS,
|
|
11768
11974
|
});
|
|
11769
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 ? 'Отправить заявку' : 'Далее' })] }));
|
|
11770
11976
|
});
|
|
@@ -12292,10 +12498,23 @@
|
|
|
12292
12498
|
return statusesMap[status] || jsx(SuccessStatusContent, { isOffice: isOffice });
|
|
12293
12499
|
};
|
|
12294
12500
|
|
|
12295
|
-
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 }) => {
|
|
12296
12508
|
const isFirstStep = step === 0;
|
|
12297
12509
|
const isFinalStep = step === 5;
|
|
12298
|
-
|
|
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 ? 'Отправить заявку' : 'Далее' })] }));
|
|
12299
12518
|
});
|
|
12300
12519
|
|
|
12301
12520
|
const updateUserTaskDebit = (body) => doRequest('/user-data/updateUserTaskDebit', 'PUT', body);
|
|
@@ -12466,6 +12685,7 @@
|
|
|
12466
12685
|
|
|
12467
12686
|
const PRODUCT_TYPE = 'debitCard';
|
|
12468
12687
|
const DebitFormStep = JSX(({ step, sections, onPrevStep, onNextStep, onFinish }) => {
|
|
12688
|
+
const { programId } = useRetailFormStore();
|
|
12469
12689
|
useIFrameMode();
|
|
12470
12690
|
const inputs = useMemo(() => sections?.flatMap((_) => _?.inputs ?? []), [sections]);
|
|
12471
12691
|
const formValidator = useCallback((formState) => getRetailFormValidator({
|
|
@@ -12478,11 +12698,12 @@
|
|
|
12478
12698
|
onNextStep,
|
|
12479
12699
|
onFinish,
|
|
12480
12700
|
});
|
|
12481
|
-
const [, { field, onSubmit: handleSubmit }] = useForm(initialState, {
|
|
12701
|
+
const [formState, { field, onSubmit: handleSubmit }] = useForm(initialState, {
|
|
12482
12702
|
formValidator,
|
|
12483
12703
|
onSubmit,
|
|
12484
12704
|
});
|
|
12485
|
-
|
|
12705
|
+
const PAYMENT_SYSTEM = formState.paymentSystem?.text;
|
|
12706
|
+
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
12707
|
});
|
|
12487
12708
|
|
|
12488
12709
|
/* eslint-disable max-lines */
|
|
@@ -14682,7 +14903,7 @@
|
|
|
14682
14903
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
14683
14904
|
});
|
|
14684
14905
|
|
|
14685
|
-
const packageVersion = "0.14.
|
|
14906
|
+
const packageVersion = "0.14.1078";
|
|
14686
14907
|
|
|
14687
14908
|
exports.Blocks = Blocks;
|
|
14688
14909
|
exports.ContentPage = ContentPage;
|