@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
|
@@ -4,9 +4,18 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Button_1 = require("../../ui-kit/Button/Button");
|
|
6
6
|
const SubmitButton_1 = require("../../ui-kit/Button/SubmitButton");
|
|
7
|
-
|
|
7
|
+
const getStepAspects_1 = require("../../utils/getStepAspects");
|
|
8
|
+
const creditCardFormAspects_1 = require("./creditCardFormAspects");
|
|
9
|
+
exports.StepsNavigationButtons = (0, uni_jsx_1.JSX)(({ step, isSending, onPrevStep, programId, productType, paymentSystem }) => {
|
|
8
10
|
const isFirstStep = step === 0;
|
|
9
11
|
const isFinalStep = step === 5;
|
|
10
|
-
|
|
12
|
+
const aspects = (0, getStepAspects_1.getStepAspects)({
|
|
13
|
+
step,
|
|
14
|
+
programId,
|
|
15
|
+
productType,
|
|
16
|
+
paymentSystem,
|
|
17
|
+
stepsConfig: creditCardFormAspects_1.CREDIT_CARD_FORM_STEPS_ASPECTS,
|
|
18
|
+
});
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between gap-m", children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { version: "secondary", disabled: isFirstStep, onClick: onPrevStep, children: "\u041D\u0430\u0437\u0430\u0434" }), (0, jsx_runtime_1.jsx)(SubmitButton_1.SubmitButton, { isLoading: isSending, data: aspects, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
11
20
|
});
|
|
12
21
|
//# sourceMappingURL=StepsNavigationButtons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsNavigationButtons.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/StepsNavigationButtons.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;AACpD,mEAAgE;
|
|
1
|
+
{"version":3,"file":"StepsNavigationButtons.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/StepsNavigationButtons.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;AACpD,mEAAgE;AAChE,+DAA4D;AAC5D,mEAAyE;AAW5D,QAAA,sBAAsB,GAAG,IAAA,aAAG,EACvC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,EAAE;IACzE,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,CAAC;IAC/B,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,CAAC;IAE/B,MAAM,OAAO,GAAG,IAAA,+BAAc,EAAC;QAC7B,IAAI;QACJ,SAAS;QACT,WAAW;QACX,aAAa;QACb,WAAW,EAAE,sDAA8B;KAC5C,CAAC,CAAC;IAEH,OAAO,CACL,iCAAK,SAAS,EAAC,4BAA4B,aACzC,uBAAC,eAAM,IAAC,OAAO,EAAC,WAAW,EAAC,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,+CAE7D,EACT,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,YAC9C,WAAW,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,OAAO,GAC9B,IACX,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -2,11 +2,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.SuccessStatusCardContent = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const handleAspects_1 = require("../../hooks/useAspects/handleAspects");
|
|
7
|
+
const useAspects_1 = require("../../hooks/useAspects/useAspects");
|
|
5
8
|
const FormStatus_1 = require("../../retail/components/FormStatus/FormStatus");
|
|
6
9
|
const useRetailFormStore_1 = require("../../retail/hooks/useRetailFormStore");
|
|
10
|
+
const commonAspects_1 = require("../../retail/utils/commonAspects");
|
|
7
11
|
const formatDate_1 = require("../../utils/formatDate");
|
|
8
12
|
exports.SuccessStatusCardContent = (0, uni_jsx_1.JSX)(() => {
|
|
9
13
|
const { statusInfo } = (0, useRetailFormStore_1.useRetailFormStore)();
|
|
14
|
+
const aspects = (0, useAspects_1.useAspects)();
|
|
15
|
+
(0, hooks_1.useEffect)(() => {
|
|
16
|
+
(0, handleAspects_1.handleAspects)({
|
|
17
|
+
aspectsAttributes: (0, commonAspects_1.getAspects)('preDecision', 'creditCard'),
|
|
18
|
+
aspects,
|
|
19
|
+
ev: {},
|
|
20
|
+
});
|
|
21
|
+
}, []);
|
|
10
22
|
return ((0, jsx_runtime_1.jsx)(FormStatus_1.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" }));
|
|
11
23
|
});
|
|
12
24
|
const getSectionInfo = (statusInfo) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuccessStatusCardContent.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/SuccessStatusCardContent.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,8EAA2E;AAC3E,8EAAiG;AACjG,uDAAoD;AAEvC,QAAA,wBAAwB,GAAG,IAAA,aAAG,EAAC,GAAG,EAAE;IAC/C,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,uCAAkB,GAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"SuccessStatusCardContent.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/SuccessStatusCardContent.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,wEAAqE;AACrE,kEAA+D;AAC/D,8EAA2E;AAC3E,8EAAiG;AACjG,oEAA8D;AAE9D,uDAAoD;AAEvC,QAAA,wBAAwB,GAAG,IAAA,aAAG,EAAC,GAAG,EAAE;IAC/C,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAC5C,MAAM,OAAO,GAAG,IAAA,uBAAU,GAAE,CAAC;IAE7B,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAA,6BAAa,EAAC;YACZ,iBAAiB,EAAE,IAAA,0BAAU,EAAC,aAAa,EAAE,YAAY,CAAC;YAC1D,OAAO;YACP,EAAE,EAAE,EAAgC;SACrC,CAAC,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,uBAAC,uBAAU,IACT,KAAK,EAAC,8KAAkC,EACxC,WAAW,EAAC,sdAA0F,EACtG,WAAW,EAAE,cAAc,CAAC,UAAU,CAAC,EACvC,UAAU,EAAC,gHAAsB,GACjC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,UAAkC,EAAE,EAAE;IAC5D,MAAM,WAAW,GAAG;QAClB;YACE,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EAAE,iBAAiB;SAC/B;QACD;YACE,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,UAAU,EAAE,YAAY;SACtC;KACF,CAAC;IAEF,IAAI,UAAU,EAAE,eAAe,IAAI,UAAU,EAAE,YAAY,EAAE;QAC3D,OAAO,WAAW,CAAC,MAAM,CAAC;YACxB;gBACE,KAAK,EAAE,gBAAgB;gBACvB,WAAW,EAAE,UAAU,EAAE,eAAe;aACzC;YACD;gBACE,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,IAAA,uBAAU,EAAC,UAAU,EAAE,YAAY,CAAC;aAClD;SACF,CAAC,CAAC;KACJ;IAED,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.CREDIT_CARD_FORM_STEPS_ASPECTS = void 0;
|
|
3
|
+
exports.CREDIT_CARD_FORM_STEPS_ASPECTS = [
|
|
4
|
+
{ ymTargetName: 'card_credit_calculator' },
|
|
5
|
+
{ ymTargetName: 'card_app_personal_data' },
|
|
6
|
+
{ ymTargetName: 'card_app_work' },
|
|
7
|
+
{ ymTargetName: 'card_app_income' },
|
|
8
|
+
{ ymTargetName: 'card_app_bank_office' },
|
|
9
|
+
];
|
|
10
|
+
//# sourceMappingURL=creditCardFormAspects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creditCardFormAspects.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/creditCardFormAspects.ts"],"names":[],"mappings":";;AAEa,QAAA,8BAA8B,GAAwB;IACjE,EAAE,YAAY,EAAE,wBAAwB,EAAE;IAC1C,EAAE,YAAY,EAAE,wBAAwB,EAAE;IAC1C,EAAE,YAAY,EAAE,eAAe,EAAE;IACjC,EAAE,YAAY,EAAE,iBAAiB,EAAE;IACnC,EAAE,YAAY,EAAE,sBAAsB,EAAE;CACzC,CAAC"}
|
|
@@ -2,6 +2,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.FailedStatusContent = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const handleAspects_1 = require("../../hooks/useAspects/handleAspects");
|
|
7
|
+
const useAspects_1 = require("../../hooks/useAspects/useAspects");
|
|
5
8
|
const FormStatus_1 = require("../../retail/components/FormStatus/FormStatus");
|
|
6
|
-
|
|
9
|
+
const commonAspects_1 = require("../../retail/utils/commonAspects");
|
|
10
|
+
exports.FailedStatusContent = (0, uni_jsx_1.JSX)(() => {
|
|
11
|
+
const aspects = (0, useAspects_1.useAspects)();
|
|
12
|
+
(0, hooks_1.useEffect)(() => {
|
|
13
|
+
(0, handleAspects_1.handleAspects)({
|
|
14
|
+
aspectsAttributes: (0, commonAspects_1.getAspects)('refuse', 'credit'),
|
|
15
|
+
aspects,
|
|
16
|
+
ev: {},
|
|
17
|
+
});
|
|
18
|
+
}, []);
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)(FormStatus_1.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" }));
|
|
20
|
+
});
|
|
7
21
|
//# sourceMappingURL=FailedStatusContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FailedStatusContent.js","sourceRoot":"","sources":["../../../src/components/CreditForm/FailedStatusContent.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,8EAA2E;
|
|
1
|
+
{"version":3,"file":"FailedStatusContent.js","sourceRoot":"","sources":["../../../src/components/CreditForm/FailedStatusContent.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,wEAAqE;AACrE,kEAA+D;AAC/D,8EAA2E;AAC3E,oEAA8D;AAGjD,QAAA,mBAAmB,GAAG,IAAA,aAAG,EAAC,GAAG,EAAE;IAC1C,MAAM,OAAO,GAAG,IAAA,uBAAU,GAAE,CAAC;IAE7B,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAA,6BAAa,EAAC;YACZ,iBAAiB,EAAE,IAAA,0BAAU,EAAC,QAAQ,EAAE,QAAQ,CAAC;YACjD,OAAO;YACP,EAAE,EAAE,EAAgC;SACrC,CAAC,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,uBAAC,uBAAU,IACT,KAAK,EAAC,+IAA4B,EAClC,WAAW,EAAC,utBAA8I,EAC1J,UAAU,EAAC,gHAAsB,GACjC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -2,12 +2,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.PendingStatusContent = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const handleAspects_1 = require("../../hooks/useAspects/handleAspects");
|
|
7
|
+
const useAspects_1 = require("../../hooks/useAspects/useAspects");
|
|
5
8
|
const FormStatus_1 = require("../../retail/components/FormStatus/FormStatus");
|
|
6
9
|
const useRetailFormStore_1 = require("../../retail/hooks/useRetailFormStore");
|
|
10
|
+
const commonAspects_1 = require("../../retail/utils/commonAspects");
|
|
7
11
|
const getCreditInfo_1 = require("./getCreditInfo");
|
|
8
12
|
exports.PendingStatusContent = (0, uni_jsx_1.JSX)(({ onExpire }) => {
|
|
9
13
|
const { statusInfo, programId } = (0, useRetailFormStore_1.useRetailFormStore)();
|
|
10
14
|
const creditInfo = (0, getCreditInfo_1.getCreditInfo)(programId);
|
|
15
|
+
const aspects = (0, useAspects_1.useAspects)();
|
|
16
|
+
(0, hooks_1.useEffect)(() => {
|
|
17
|
+
(0, handleAspects_1.handleAspects)({
|
|
18
|
+
aspectsAttributes: (0, commonAspects_1.getAspects)('timer', 'credit'),
|
|
19
|
+
aspects,
|
|
20
|
+
ev: {},
|
|
21
|
+
});
|
|
22
|
+
}, []);
|
|
23
|
+
const handleExpireWithEvent = (0, hooks_1.useCallback)(() => {
|
|
24
|
+
(0, handleAspects_1.handleAspects)({
|
|
25
|
+
aspectsAttributes: (0, commonAspects_1.getAspects)('timerEnd', 'credit'),
|
|
26
|
+
aspects,
|
|
27
|
+
ev: {},
|
|
28
|
+
});
|
|
29
|
+
onExpire();
|
|
30
|
+
}, [aspects, onExpire]);
|
|
11
31
|
return ((0, jsx_runtime_1.jsx)(FormStatus_1.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: [
|
|
12
32
|
{
|
|
13
33
|
label: 'Название продукта',
|
|
@@ -29,6 +49,6 @@ exports.PendingStatusContent = (0, uni_jsx_1.JSX)(({ onExpire }) => {
|
|
|
29
49
|
label: 'Тип платежа',
|
|
30
50
|
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
31
51
|
},
|
|
32
|
-
], onExpire:
|
|
52
|
+
], onExpire: handleExpireWithEvent }));
|
|
33
53
|
});
|
|
34
54
|
//# sourceMappingURL=PendingStatusContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PendingStatusContent.js","sourceRoot":"","sources":["../../../src/components/CreditForm/PendingStatusContent.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,8EAA2E;AAC3E,8EAA2E;AAC3E,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAAC,CAAC,EAAE,QAAQ,EAA4B,EAAE,EAAE;IACjF,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAEvD,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAC,SAAS,CAAC,CAAC;IAE5C,OAAO,CACL,uBAAC,uBAAU,IACT,QAAQ,EAAE,GAAG,EACb,KAAK,EAAC,8IAA2B,EACjC,WAAW,EAAC,sOAA6C,EACzD,gBAAgB,EAAC,iKAA+B,EAChD,WAAW,EAAE;YACX;gBACE,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,UAAU,CAAC,IAAI;aAC7B;YACD;gBACE,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,UAAU,CAAC,WAAW;aACpC;YACD;gBACE,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,GAAG,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,GAAG,IAAI;aAChF;YACD;gBACE,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,GAAG,UAAU,EAAE,UAAU,EAAE,WAAW,IAAI,GAAG,MAAM;aACjE;YACD;gBACE,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,oBAAoB;aACtF;SACF,EACD,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"PendingStatusContent.js","sourceRoot":"","sources":["../../../src/components/CreditForm/PendingStatusContent.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAqE;AACrE,wEAAqE;AACrE,kEAA+D;AAC/D,8EAA2E;AAC3E,8EAA2E;AAC3E,oEAA8D;AAE9D,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAAC,CAAC,EAAE,QAAQ,EAA4B,EAAE,EAAE;IACjF,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAEvD,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAC,SAAS,CAAC,CAAC;IAE5C,MAAM,OAAO,GAAG,IAAA,uBAAU,GAAE,CAAC;IAE7B,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAA,6BAAa,EAAC;YACZ,iBAAiB,EAAE,IAAA,0BAAU,EAAC,OAAO,EAAE,QAAQ,CAAC;YAChD,OAAO;YACP,EAAE,EAAE,EAAgC;SACrC,CAAC,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,qBAAqB,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QAC7C,IAAA,6BAAa,EAAC;YACZ,iBAAiB,EAAE,IAAA,0BAAU,EAAC,UAAU,EAAE,QAAQ,CAAC;YACnD,OAAO;YACP,EAAE,EAAE,EAAgC;SACrC,CAAC,CAAC;QAEH,QAAQ,EAAE,CAAC;IACb,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;IAExB,OAAO,CACL,uBAAC,uBAAU,IACT,QAAQ,EAAE,GAAG,EACb,KAAK,EAAC,8IAA2B,EACjC,WAAW,EAAC,sOAA6C,EACzD,gBAAgB,EAAC,iKAA+B,EAChD,WAAW,EAAE;YACX;gBACE,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,UAAU,CAAC,IAAI;aAC7B;YACD;gBACE,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,UAAU,CAAC,WAAW;aACpC;YACD;gBACE,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,GAAG,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,GAAG,IAAI;aAChF;YACD;gBACE,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,GAAG,UAAU,EAAE,UAAU,EAAE,WAAW,IAAI,GAAG,MAAM;aACjE;YACD;gBACE,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,oBAAoB;aACtF;SACF,EACD,QAAQ,EAAE,qBAAqB,GAC/B,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -2,10 +2,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.ReworkStatusContent = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const handleAspects_1 = require("../../hooks/useAspects/handleAspects");
|
|
7
|
+
const useAspects_1 = require("../../hooks/useAspects/useAspects");
|
|
5
8
|
const FormStatus_1 = require("../../retail/components/FormStatus/FormStatus");
|
|
6
9
|
const useRetailFormStore_1 = require("../../retail/hooks/useRetailFormStore");
|
|
10
|
+
const commonAspects_1 = require("../../retail/utils/commonAspects");
|
|
7
11
|
exports.ReworkStatusContent = (0, uni_jsx_1.JSX)(() => {
|
|
8
12
|
const { statusInfo } = (0, useRetailFormStore_1.useRetailFormStore)();
|
|
13
|
+
const aspects = (0, useAspects_1.useAspects)();
|
|
14
|
+
(0, hooks_1.useEffect)(() => {
|
|
15
|
+
(0, handleAspects_1.handleAspects)({
|
|
16
|
+
aspectsAttributes: (0, commonAspects_1.getAspects)('revision', 'credit'),
|
|
17
|
+
aspects,
|
|
18
|
+
ev: {},
|
|
19
|
+
});
|
|
20
|
+
}, []);
|
|
9
21
|
return ((0, jsx_runtime_1.jsx)(FormStatus_1.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: [
|
|
10
22
|
{
|
|
11
23
|
label: 'Регион',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReworkStatusContent.js","sourceRoot":"","sources":["../../../src/components/CreditForm/ReworkStatusContent.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,8EAA2E;AAC3E,8EAA2E;
|
|
1
|
+
{"version":3,"file":"ReworkStatusContent.js","sourceRoot":"","sources":["../../../src/components/CreditForm/ReworkStatusContent.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,wEAAqE;AACrE,kEAA+D;AAC/D,8EAA2E;AAC3E,8EAA2E;AAC3E,oEAA8D;AAGjD,QAAA,mBAAmB,GAAG,IAAA,aAAG,EAAC,GAAG,EAAE;IAC1C,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAE5C,MAAM,OAAO,GAAG,IAAA,uBAAU,GAAE,CAAC;IAE7B,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAA,6BAAa,EAAC;YACZ,iBAAiB,EAAE,IAAA,0BAAU,EAAC,UAAU,EAAE,QAAQ,CAAC;YACnD,OAAO;YACP,EAAE,EAAE,EAAgC;SACrC,CAAC,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,uBAAC,uBAAU,IACT,KAAK,EAAC,saAAkF,EACxF,WAAW,EAAC,4gBAAmG,EAC/G,sBAAsB,EAAC,8FAAmB,EAC1C,qBAAqB,EAAE;YACrB;gBACE,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,UAAU,EAAE,YAAY;aACtC;YACD;gBACE,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,UAAU,EAAE,aAAa;aACvC;SACF,EACD,WAAW,EAAE;YACX;gBACE,KAAK,EAAE,qBAAqB;gBAC5B,WAAW,EAAE,cAAc;aAC5B;SACF,EACD,UAAU,EAAC,gHAAsB,GACjC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -2,106 +2,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.StepsNavigationButtons = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
-
const ProjectSettings_1 = require("../../ProjectSettings");
|
|
6
5
|
const Button_1 = require("../../ui-kit/Button/Button");
|
|
7
6
|
const SubmitButton_1 = require("../../ui-kit/Button/SubmitButton");
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const data = [
|
|
11
|
-
[
|
|
12
|
-
{
|
|
13
|
-
aspectName: 'ymReachGoal',
|
|
14
|
-
params: {
|
|
15
|
-
yandexId: YANDEX_ID,
|
|
16
|
-
targetName: 'credit_calculator',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
aspectName: 'snowplowEvent',
|
|
21
|
-
params: {
|
|
22
|
-
eventAction: 'naturalCreditsReducedPaymentCreditSummPeriodNext',
|
|
23
|
-
eventCategory: 'naturalCredits',
|
|
24
|
-
eventValueText: 'Кредит со сниженным платежом Сумма и сроки кредита Кнопка Далее',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
[
|
|
29
|
-
{
|
|
30
|
-
aspectName: 'ymReachGoal',
|
|
31
|
-
params: {
|
|
32
|
-
yandexId: YANDEX_ID,
|
|
33
|
-
targetName: 'app_personal_data',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
aspectName: 'snowplowEvent',
|
|
38
|
-
params: {
|
|
39
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormPassportNext',
|
|
40
|
-
eventCategory: 'naturalCredits',
|
|
41
|
-
eventValueText: 'Кредит со сниженным платежом Паспортные данные Кнопка Далее',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
[
|
|
46
|
-
{
|
|
47
|
-
aspectName: 'ymReachGoal',
|
|
48
|
-
params: {
|
|
49
|
-
yandexId: YANDEX_ID,
|
|
50
|
-
targetName: 'app_work',
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
aspectName: 'snowplowEvent',
|
|
55
|
-
params: {
|
|
56
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormEmployerDetailsNext',
|
|
57
|
-
eventCategory: 'naturalCredits',
|
|
58
|
-
eventValueText: 'Кредит со сниженным платежом Данные о работодателе Кнопка Далее',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
[
|
|
63
|
-
{
|
|
64
|
-
aspectName: 'ymReachGoal',
|
|
65
|
-
params: {
|
|
66
|
-
yandexId: YANDEX_ID,
|
|
67
|
-
targetName: 'app_income',
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
aspectName: 'snowplowEvent',
|
|
72
|
-
params: {
|
|
73
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormFamilyStatusNext',
|
|
74
|
-
eventCategory: 'naturalCredits',
|
|
75
|
-
eventValueText: 'Кредит со сниженным платежом Семейное положение и доход Кнопка Далее',
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
[
|
|
80
|
-
{
|
|
81
|
-
aspectName: 'ymReachGoal',
|
|
82
|
-
params: {
|
|
83
|
-
yandexId: YANDEX_ID,
|
|
84
|
-
targetName: 'app_bank_office',
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
aspectName: 'snowplowEvent',
|
|
89
|
-
params: {
|
|
90
|
-
eventAction: 'naturalCreditsReducedPaymentCreditFormBankDepartmentChoosingNext',
|
|
91
|
-
eventCategory: 'naturalCredits',
|
|
92
|
-
eventValueText: 'Кредит со сниженным платежом Выбор отделения Кнопка Далее',
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
];
|
|
7
|
+
const getStepAspects_1 = require("../../utils/getStepAspects");
|
|
8
|
+
const creditFormAspects_1 = require("./creditFormAspects");
|
|
97
9
|
exports.StepsNavigationButtons = (0, uni_jsx_1.JSX)(({ step, onPrevStep, isSending, programId, productType = 'credit' }) => {
|
|
98
10
|
const isFirstStep = step === 0;
|
|
99
11
|
const isFinalStep = step === 5;
|
|
100
|
-
const aspects = (0,
|
|
12
|
+
const aspects = (0, getStepAspects_1.getStepAspects)({
|
|
101
13
|
step,
|
|
102
14
|
programId,
|
|
103
15
|
productType,
|
|
104
|
-
|
|
16
|
+
stepsConfig: creditFormAspects_1.CREDIT_FORM_STEPS_ASPECTS,
|
|
105
17
|
});
|
|
106
18
|
return ((0, jsx_runtime_1.jsxs)("div", { className: 'flex justify-between gap-m', children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { version: "secondary", disabled: isFirstStep, onClick: onPrevStep, testId: "back-button", children: "\u041D\u0430\u0437\u0430\u0434" }), (0, jsx_runtime_1.jsx)(SubmitButton_1.SubmitButton, { isLoading: isSending, testId: "next-button", data: aspects, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
107
19
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsNavigationButtons.js","sourceRoot":"","sources":["../../../src/components/CreditForm/StepsNavigationButtons.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"StepsNavigationButtons.js","sourceRoot":"","sources":["../../../src/components/CreditForm/StepsNavigationButtons.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;AACpD,mEAAgE;AAChE,+DAA4D;AAC5D,2DAAgE;AAUnD,QAAA,sBAAsB,GAAG,IAAA,aAAG,EACvC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,GAAG,QAAQ,EAAE,EAAE,EAAE;IACrE,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,CAAC;IAC/B,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,CAAC;IAE/B,MAAM,OAAO,GAAG,IAAA,+BAAc,EAAC;QAC7B,IAAI;QACJ,SAAS;QACT,WAAW;QACX,WAAW,EAAE,6CAAyB;KACvC,CAAC,CAAC;IAEH,OAAO,CACL,iCAAK,SAAS,EAAE,4BAA4B,aAC1C,uBAAC,eAAM,IACL,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,UAAU,EACnB,MAAM,EAAC,aAAa,+CAGb,EACT,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAC,aAAa,EAAC,IAAI,EAAE,OAAO,YACnE,WAAW,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,OAAO,GAC9B,IACX,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -2,12 +2,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.SuccessStatusContent = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const handleAspects_1 = require("../../hooks/useAspects/handleAspects");
|
|
7
|
+
const useAspects_1 = require("../../hooks/useAspects/useAspects");
|
|
5
8
|
const FormStatus_1 = require("../../retail/components/FormStatus/FormStatus");
|
|
6
9
|
const useRetailFormStore_1 = require("../../retail/hooks/useRetailFormStore");
|
|
10
|
+
const commonAspects_1 = require("../../retail/utils/commonAspects");
|
|
7
11
|
const getCreditInfo_1 = require("./getCreditInfo");
|
|
8
12
|
exports.SuccessStatusContent = (0, uni_jsx_1.JSX)(() => {
|
|
9
13
|
const { statusInfo, programId } = (0, useRetailFormStore_1.useRetailFormStore)();
|
|
10
14
|
const creditInfo = (0, getCreditInfo_1.getCreditInfo)(programId);
|
|
15
|
+
const aspects = (0, useAspects_1.useAspects)();
|
|
16
|
+
(0, hooks_1.useEffect)(() => {
|
|
17
|
+
(0, handleAspects_1.handleAspects)({
|
|
18
|
+
aspectsAttributes: (0, commonAspects_1.getAspects)('preDecision', 'credit'),
|
|
19
|
+
aspects,
|
|
20
|
+
ev: {},
|
|
21
|
+
});
|
|
22
|
+
}, []);
|
|
11
23
|
return ((0, jsx_runtime_1.jsx)(FormStatus_1.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: [
|
|
12
24
|
{
|
|
13
25
|
label: 'Название продукта',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SuccessStatusContent.js","sourceRoot":"","sources":["../../../src/components/CreditForm/SuccessStatusContent.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,8EAA2E;AAC3E,8EAA2E;AAC3E,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAAC,GAAG,EAAE;IAC3C,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAEvD,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAC,SAAS,CAAC,CAAC;IAE5C,OAAO,CACL,uBAAC,uBAAU,IACT,KAAK,EAAC,6HAAyB,EAC/B,WAAW,EAAC,+ZAAgF,EAC5F,WAAW,EAAE;YACX;gBACE,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,UAAU,CAAC,IAAI;aAC7B;YACD;gBACE,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,MAAM,UAAU,EAAE,UAAU,EAAE,IAAI,IAAI,EAAE,GAAG;aACzD;YACD;gBACE,KAAK,EAAE,oBAAoB;gBAC3B,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CACxB,UAAU,EAAE,UAAU,EAAE,cAAc,IAAI,CAAC,CAC5C,CAAC,cAAc,EAAE,IAAI;aACvB;YACD;gBACE,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,GAAG,MAAM;aAC1D;YACD;gBACE,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,oBAAoB;aACtF;SACF,EACD,UAAU,EAAC,gHAAsB,GACjC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"SuccessStatusContent.js","sourceRoot":"","sources":["../../../src/components/CreditForm/SuccessStatusContent.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,wEAAqE;AACrE,kEAA+D;AAC/D,8EAA2E;AAC3E,8EAA2E;AAC3E,oEAA8D;AAE9D,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAAC,GAAG,EAAE;IAC3C,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAEvD,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAC,SAAS,CAAC,CAAC;IAE5C,MAAM,OAAO,GAAG,IAAA,uBAAU,GAAE,CAAC;IAE7B,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAA,6BAAa,EAAC;YACZ,iBAAiB,EAAE,IAAA,0BAAU,EAAC,aAAa,EAAE,QAAQ,CAAC;YACtD,OAAO;YACP,EAAE,EAAE,EAAgC;SACrC,CAAC,CAAC;IACL,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,uBAAC,uBAAU,IACT,KAAK,EAAC,6HAAyB,EAC/B,WAAW,EAAC,+ZAAgF,EAC5F,WAAW,EAAE;YACX;gBACE,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,UAAU,CAAC,IAAI;aAC7B;YACD;gBACE,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,MAAM,UAAU,EAAE,UAAU,EAAE,IAAI,IAAI,EAAE,GAAG;aACzD;YACD;gBACE,KAAK,EAAE,oBAAoB;gBAC3B,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CACxB,UAAU,EAAE,UAAU,EAAE,cAAc,IAAI,CAAC,CAC5C,CAAC,cAAc,EAAE,IAAI;aACvB;YACD;gBACE,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,GAAG,MAAM;aAC1D;YACD;gBACE,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,oBAAoB;aACtF;SACF,EACD,UAAU,EAAC,gHAAsB,GACjC,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.CREDIT_FORM_STEPS_ASPECTS = void 0;
|
|
3
|
+
exports.CREDIT_FORM_STEPS_ASPECTS = [
|
|
4
|
+
{
|
|
5
|
+
ymTargetName: 'credit_calculator',
|
|
6
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditSummPeriodNext',
|
|
7
|
+
snowplowEventCategory: 'naturalCredits',
|
|
8
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Сумма и сроки кредита Кнопка Далее',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
ymTargetName: 'app_personal_data',
|
|
12
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormPassportNext',
|
|
13
|
+
snowplowEventCategory: 'naturalCredits',
|
|
14
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Паспортные данные Кнопка Далее',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
ymTargetName: 'app_work',
|
|
18
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormEmployerDetailsNext',
|
|
19
|
+
snowplowEventCategory: 'naturalCredits',
|
|
20
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Данные о работодателе Кнопка Далее',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
ymTargetName: 'app_income',
|
|
24
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormFamilyStatusNext',
|
|
25
|
+
snowplowEventCategory: 'naturalCredits',
|
|
26
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Семейное положение и доход Кнопка Далее',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
ymTargetName: 'app_bank_office',
|
|
30
|
+
snowplowEventAction: 'naturalCreditsReducedPaymentCreditFormBankDepartmentChoosingNext',
|
|
31
|
+
snowplowEventCategory: 'naturalCredits',
|
|
32
|
+
snowplowEventValueText: 'Кредит со сниженным платежом Выбор отделения Кнопка Далее',
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
//# sourceMappingURL=creditFormAspects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creditFormAspects.js","sourceRoot":"","sources":["../../../src/components/CreditForm/creditFormAspects.ts"],"names":[],"mappings":";;AAEa,QAAA,yBAAyB,GAAwB;IAC5D;QACE,YAAY,EAAE,mBAAmB;QACjC,mBAAmB,EAAE,kDAAkD;QACvE,qBAAqB,EAAE,gBAAgB;QACvC,sBAAsB,EAAE,iEAAiE;KAC1F;IAED;QACE,YAAY,EAAE,mBAAmB;QACjC,mBAAmB,EAAE,oDAAoD;QACzE,qBAAqB,EAAE,gBAAgB;QACvC,sBAAsB,EAAE,6DAA6D;KACtF;IACD;QACE,YAAY,EAAE,UAAU;QACxB,mBAAmB,EAAE,2DAA2D;QAChF,qBAAqB,EAAE,gBAAgB;QACvC,sBAAsB,EAAE,iEAAiE;KAC1F;IACD;QACE,YAAY,EAAE,YAAY;QAC1B,mBAAmB,EAAE,wDAAwD;QAC7E,qBAAqB,EAAE,gBAAgB;QACvC,sBAAsB,EAAE,sEAAsE;KAC/F;IACD;QACE,YAAY,EAAE,iBAAiB;QAC/B,mBAAmB,EAAE,kEAAkE;QACvF,qBAAqB,EAAE,gBAAgB;QACvC,sBAAsB,EAAE,2DAA2D;KACpF;CACF,CAAC"}
|
|
@@ -5,12 +5,14 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
6
|
const useForm_1 = require("../../hooks/useForm/useForm");
|
|
7
7
|
const useIFrameMode_1 = require("../../retail/hooks/useIFrameMode");
|
|
8
|
+
const useRetailFormStore_1 = require("../../retail/hooks/useRetailFormStore");
|
|
8
9
|
const renderStep_1 = require("../../retail/utils/renderStep");
|
|
9
10
|
const getRetailFormValidator_1 = require("../../retail/validator/getRetailFormValidator");
|
|
10
11
|
const StepsNavigationButtons_1 = require("./StepsNavigationButtons");
|
|
11
12
|
const useDebitFormAPI_1 = require("./useDebitFormAPI");
|
|
12
13
|
const PRODUCT_TYPE = 'debitCard';
|
|
13
14
|
exports.DebitFormStep = (0, uni_jsx_1.JSX)(({ step, sections, onPrevStep, onNextStep, onFinish }) => {
|
|
15
|
+
const { programId } = (0, useRetailFormStore_1.useRetailFormStore)();
|
|
14
16
|
(0, useIFrameMode_1.useIFrameMode)();
|
|
15
17
|
const inputs = (0, hooks_1.useMemo)(() => sections?.flatMap((_) => _?.inputs ?? []), [sections]);
|
|
16
18
|
const formValidator = (0, hooks_1.useCallback)((formState) => (0, getRetailFormValidator_1.getRetailFormValidator)({
|
|
@@ -23,10 +25,11 @@ exports.DebitFormStep = (0, uni_jsx_1.JSX)(({ step, sections, onPrevStep, onNext
|
|
|
23
25
|
onNextStep,
|
|
24
26
|
onFinish,
|
|
25
27
|
});
|
|
26
|
-
const [, { field, onSubmit: handleSubmit }] = (0, useForm_1.useForm)(initialState, {
|
|
28
|
+
const [formState, { field, onSubmit: handleSubmit }] = (0, useForm_1.useForm)(initialState, {
|
|
27
29
|
formValidator,
|
|
28
30
|
onSubmit,
|
|
29
31
|
});
|
|
30
|
-
|
|
32
|
+
const PAYMENT_SYSTEM = formState.paymentSystem?.text;
|
|
33
|
+
return ((0, jsx_runtime_1.jsxs)("form", { onSubmit: handleSubmit, className: "space-y-m", children: [(0, renderStep_1.renderStep)({ sections, field }), (0, jsx_runtime_1.jsx)(StepsNavigationButtons_1.StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep, programId: programId, productType: PRODUCT_TYPE, paymentSystem: PAYMENT_SYSTEM })] }));
|
|
31
34
|
});
|
|
32
35
|
//# sourceMappingURL=DebitFormStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebitFormStep.js","sourceRoot":"","sources":["../../../src/components/DebitForm/DebitFormStep.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAmE;AACnE,yDAAsD;AACtD,oEAAiE;
|
|
1
|
+
{"version":3,"file":"DebitFormStep.js","sourceRoot":"","sources":["../../../src/components/DebitForm/DebitFormStep.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAmE;AACnE,yDAAsD;AACtD,oEAAiE;AACjE,8EAA2E;AAG3E,8DAA2D;AAC3D,0FAAuF;AACvF,qEAAkE;AAClE,uDAAoD;AAUpD,MAAM,YAAY,GAAG,WAAW,CAAC;AAEpB,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE;IACvD,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,uCAAkB,GAAE,CAAC;IAC3C,IAAA,6BAAa,GAAE,CAAC;IAChB,MAAM,MAAM,GAAG,IAAA,eAAO,EACpB,GAAG,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAsB,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,IAAI,EAAE,CAAC,EACpE,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,MAAM,aAAa,GAAG,IAAA,mBAAW,EAC/B,CAAC,SAAwB,EAAE,EAAE,CAC3B,IAAA,+CAAsB,EAAC;QACrB,SAAS;QACT,MAAM;QACN,WAAW,EAAE,YAAY;KAC1B,CAAC,EACJ,CAAC,MAAM,CAAC,CACT,CAAC;IAEF,MAAM,CAAC,YAAY,EAAE,QAAQ,EAAE,SAAS,CAAC,GAAG,IAAA,iCAAe,EAAC;QAC1D,IAAI;QACJ,UAAU;QACV,QAAQ;KACT,CAAC,CAAC;IAEH,MAAM,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC,GAAG,IAAA,iBAAO,EAAC,YAAY,EAAE;QAC3E,aAAa;QACb,QAAQ;KACT,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,IAAI,CAAC;IAErD,OAAO,CACL,kCAAM,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAC,WAAW,aAChD,IAAA,uBAAU,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,EAChC,uBAAC,+CAAsB,IACrB,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,YAAY,EACzB,aAAa,EAAE,cAAc,GAC7B,IACG,CACR,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -2,5 +2,8 @@ export interface StepsNavigationButtonsProps {
|
|
|
2
2
|
step: number;
|
|
3
3
|
isSending: boolean;
|
|
4
4
|
onPrevStep?: () => void;
|
|
5
|
+
programId?: string | null;
|
|
6
|
+
productType?: string;
|
|
7
|
+
paymentSystem?: string;
|
|
5
8
|
}
|
|
6
9
|
export declare const StepsNavigationButtons: import("@redneckz/uni-jsx").UNIComponent<StepsNavigationButtonsProps, any, any>;
|
|
@@ -4,9 +4,18 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Button_1 = require("../../ui-kit/Button/Button");
|
|
6
6
|
const SubmitButton_1 = require("../../ui-kit/Button/SubmitButton");
|
|
7
|
-
|
|
7
|
+
const getStepAspects_1 = require("../../utils/getStepAspects");
|
|
8
|
+
const debitFormAspects_1 = require("./debitFormAspects");
|
|
9
|
+
exports.StepsNavigationButtons = (0, uni_jsx_1.JSX)(({ step, onPrevStep, isSending, programId, productType = 'debitCard', paymentSystem }) => {
|
|
8
10
|
const isFirstStep = step === 0;
|
|
9
11
|
const isFinalStep = step === 5;
|
|
10
|
-
|
|
12
|
+
const aspects = (0, getStepAspects_1.getStepAspects)({
|
|
13
|
+
step,
|
|
14
|
+
programId,
|
|
15
|
+
productType,
|
|
16
|
+
paymentSystem,
|
|
17
|
+
stepsConfig: debitFormAspects_1.DEBIT_FORM_STEPS_ASPECTS,
|
|
18
|
+
});
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: 'flex justify-between gap-m', children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), (0, jsx_runtime_1.jsx)(SubmitButton_1.SubmitButton, { isLoading: isSending, data: aspects, children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
|
|
11
20
|
});
|
|
12
21
|
//# sourceMappingURL=StepsNavigationButtons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepsNavigationButtons.js","sourceRoot":"","sources":["../../../src/components/DebitForm/StepsNavigationButtons.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;AACpD,mEAAgE;
|
|
1
|
+
{"version":3,"file":"StepsNavigationButtons.js","sourceRoot":"","sources":["../../../src/components/DebitForm/StepsNavigationButtons.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;AACpD,mEAAgE;AAChE,+DAA4D;AAC5D,yDAA8D;AAWjD,QAAA,sBAAsB,GAAG,IAAA,aAAG,EACvC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,GAAG,WAAW,EAAE,aAAa,EAAE,EAAE,EAAE;IACvF,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,CAAC;IAC/B,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,CAAC;IAE/B,MAAM,OAAO,GAAG,IAAA,+BAAc,EAAC;QAC7B,IAAI;QACJ,SAAS;QACT,WAAW;QACX,aAAa;QACb,WAAW,EAAE,2CAAwB;KACtC,CAAC,CAAC;IAEH,OAAO,CACL,iCAAK,SAAS,EAAE,4BAA4B,aAC1C,uBAAC,eAAM,IAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,WAAW,EAAC,QAAQ,EAAE,WAAW,+CAE3E,EACT,uBAAC,2BAAY,IAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,YAC9C,WAAW,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,OAAO,GAC9B,IACX,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.DEBIT_FORM_STEPS_ASPECTS = void 0;
|
|
3
|
+
exports.DEBIT_FORM_STEPS_ASPECTS = [
|
|
4
|
+
{ ymTargetName: 'debit_region' },
|
|
5
|
+
{ ymTargetName: 'debit_app_personal_data' },
|
|
6
|
+
{ ymTargetName: 'debit_app_card_data' },
|
|
7
|
+
];
|
|
8
|
+
//# sourceMappingURL=debitFormAspects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debitFormAspects.js","sourceRoot":"","sources":["../../../src/components/DebitForm/debitFormAspects.ts"],"names":[],"mappings":";;AAEa,QAAA,wBAAwB,GAAwB;IAC3D,EAAE,YAAY,EAAE,cAAc,EAAE;IAChC,EAAE,YAAY,EAAE,yBAAyB,EAAE;IAC3C,EAAE,YAAY,EAAE,qBAAqB,EAAE;CACxC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { OnCloseProps } from '../../../model/OnCloseProps';
|
|
2
2
|
export interface ConsentBkiDialogProps extends OnCloseProps {
|
|
3
3
|
onSubmit?: (confirmStatus: string) => void;
|
|
4
|
+
productType?: string;
|
|
4
5
|
}
|
|
5
6
|
export declare const ConsentBkiDialog: import("@redneckz/uni-jsx").UNIComponent<ConsentBkiDialogProps, any, any>;
|
|
@@ -3,12 +3,15 @@ exports.ConsentBkiDialog = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
|
+
const handleAspects_1 = require("../../../hooks/useAspects/handleAspects");
|
|
7
|
+
const useAspects_1 = require("../../../hooks/useAspects/useAspects");
|
|
6
8
|
const Button_1 = require("../../../ui-kit/Button/Button");
|
|
7
9
|
const Dialog_1 = require("../../../ui-kit/DialogManager/Dialog");
|
|
8
10
|
const Heading_1 = require("../../../ui-kit/Heading/Heading");
|
|
9
11
|
const Paragraph_1 = require("../../../ui-kit/Paragraph/Paragraph");
|
|
10
12
|
const RadioButtonGroup_1 = require("../../../ui-kit/RadioButtonGroup/RadioButtonGroup");
|
|
11
13
|
const noop_1 = require("../../../utils/noop");
|
|
14
|
+
const commonAspects_1 = require("../../utils/commonAspects");
|
|
12
15
|
const useDocumentDialog_1 = require("../DocumentDialog/useDocumentDialog");
|
|
13
16
|
const defaultConsentText = {
|
|
14
17
|
title: 'Подпишите согласие на запрос в БКИ',
|
|
@@ -23,13 +26,21 @@ const ITEMS = [
|
|
|
23
26
|
{ id: 'REFUSE', text: 'Отказаться' },
|
|
24
27
|
];
|
|
25
28
|
const CONSENT_BKI_ID = 2;
|
|
26
|
-
exports.ConsentBkiDialog = (0, uni_jsx_1.JSX)(({ onSubmit = noop_1.noop, onClose = noop_1.noop }) => {
|
|
29
|
+
exports.ConsentBkiDialog = (0, uni_jsx_1.JSX)(({ onSubmit = noop_1.noop, onClose = noop_1.noop, productType }) => {
|
|
27
30
|
const [confirmStatus, setConfirmStatus] = (0, hooks_1.useState)('');
|
|
28
31
|
const [showRefuseContent, setShowRefuseContent] = (0, hooks_1.useState)(false);
|
|
29
32
|
const { openDocument } = (0, useDocumentDialog_1.useDocumentDialog)(CONSENT_BKI_ID);
|
|
33
|
+
const aspects = (0, useAspects_1.useAspects)();
|
|
30
34
|
const handleSubmit = (0, hooks_1.useCallback)(() => {
|
|
35
|
+
if (confirmStatus === 'SIGNED') {
|
|
36
|
+
(0, handleAspects_1.handleAspects)({
|
|
37
|
+
aspectsAttributes: (0, commonAspects_1.getAspects)('consentBki', productType),
|
|
38
|
+
aspects,
|
|
39
|
+
ev: {},
|
|
40
|
+
});
|
|
41
|
+
}
|
|
31
42
|
onSubmit(confirmStatus);
|
|
32
|
-
}, [onSubmit, confirmStatus]);
|
|
43
|
+
}, [onSubmit, confirmStatus, aspects, productType]);
|
|
33
44
|
const handleConfirmChange = (0, hooks_1.useCallback)((value) => {
|
|
34
45
|
setConfirmStatus(value);
|
|
35
46
|
setShowRefuseContent(value === 'REFUSE');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsentBkiDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AAGpE,0DAAuD;AACvD,iEAA8D;AAC9D,6DAA0D;AAC1D,mEAAgE;
|
|
1
|
+
{"version":3,"file":"ConsentBkiDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AAGpE,2EAAwE;AACxE,qEAAkE;AAClE,0DAAuD;AACvD,iEAA8D;AAC9D,6DAA0D;AAC1D,mEAAgE;AAEhE,wFAAqF;AACrF,8CAA2C;AAC3C,6DAAuD;AACvD,2EAAwE;AAOxE,MAAM,kBAAkB,GAAG;IACzB,KAAK,EAAE,oCAAoC;IAC3C,WAAW,EAAE,8EAA8E;CAC5F,CAAC;AAEF,MAAM,iBAAiB,GAAG;IACxB,KAAK,EAAE,oDAAoD;IAC3D,WAAW,EAAE,iFAAiF;CAC/F,CAAC;AAEF,MAAM,KAAK,GAAG;IACZ,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE;IACnC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE;CACrC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,CAAC;AAEZ,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,QAAQ,GAAG,WAAI,EAAE,OAAO,GAAG,WAAI,EAAE,WAAW,EAAE,EAAE,EAAE;IACnD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,IAAA,gBAAQ,EAAC,EAAE,CAAC,CAAC;IACvD,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAElE,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,qCAAiB,EAAC,cAAc,CAAC,CAAC;IAE3D,MAAM,OAAO,GAAG,IAAA,uBAAU,GAAE,CAAC;IAE7B,MAAM,YAAY,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACpC,IAAI,aAAa,KAAK,QAAQ,EAAE;YAC9B,IAAA,6BAAa,EAAC;gBACZ,iBAAiB,EAAE,IAAA,0BAAU,EAAC,YAAY,EAAE,WAAW,CAAC;gBACxD,OAAO;gBACP,EAAE,EAAE,EAAgC;aACrC,CAAC,CAAC;SACJ;QACD,QAAQ,CAAC,aAAa,CAAC,CAAC;IAC1B,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC;IAEpD,MAAM,mBAAmB,GAAG,IAAA,mBAAW,EAAC,CAAC,KAAa,EAAE,EAAE;QACxD,gBAAgB,CAAC,KAAK,CAAC,CAAC;QACxB,oBAAoB,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC;IAC3C,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,WAAW,GAAG,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,kBAAkB,CAAC;IAE/E,OAAO,CACL,uBAAC,eAAM,IAAC,OAAO,EAAE,OAAO,YACtB,iCAAK,SAAS,EAAC,mCAAmC,aAChD,gCAAK,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,YAAY,YACtC,uBAAC,iBAAO,IACN,SAAS,EAAC,0BAA0B,EACpC,WAAW,EAAC,IAAI,EAChB,KAAK,EAAE,WAAW,CAAC,KAAK,GACxB,GACE,EACN,uBAAC,qBAAS,IAAC,KAAK,EAAC,aAAa,YAAE,WAAW,CAAC,WAAW,GAAa,EACpE,uBAAC,mCAAgB,IACf,SAAS,EAAC,mBAAmB,EAC7B,WAAW,EAAC,YAAY,EACxB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,mBAAmB,GAC7B,EACF,uBAAC,eAAM,IACL,QAAQ,EAAE,CAAC,aAAa,EACxB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,YAAY,EACrB,MAAM,EAAC,YAAY,+CAGZ,IACL,GACC,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -4,8 +4,9 @@ declare type SubmitBkiConsentProps = {
|
|
|
4
4
|
onFail?: () => void;
|
|
5
5
|
taskId?: number;
|
|
6
6
|
participantId?: string | number;
|
|
7
|
+
productType?: string;
|
|
7
8
|
};
|
|
8
|
-
export declare const useConsentBkiDialog: (onClose: () => void) => {
|
|
9
|
+
export declare const useConsentBkiDialog: (onClose: () => void, productType?: string) => {
|
|
9
10
|
open: ({ phone, profileId, onFail, taskId, participantId }: SubmitBkiConsentProps) => void;
|
|
10
11
|
};
|
|
11
12
|
export {};
|