@redneckz/wildless-cms-uni-blocks 0.14.1076 → 0.14.1078
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/bundle.umd.js +463 -250
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
- package/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
- package/bundle/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
- package/bundle/components/CreditForm/creditFormAspects.d.ts +2 -0
- package/bundle/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
- package/bundle/components/DebitForm/debitFormAspects.d.ts +2 -0
- package/bundle/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
- package/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
- package/bundle/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
- package/bundle/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
- package/bundle/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
- package/bundle/retail/utils/commonAspects.d.ts +2 -0
- package/bundle/retail/utils/formAspectsConfig.d.ts +6 -0
- package/bundle/retail/utils/yandexMetrika.d.ts +1 -0
- package/bundle/utils/getStepAspects.d.ts +11 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js +7 -1
- package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +83 -40
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardFormStep.js +5 -2
- package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/dist/components/CreditCardForm/FailedStatusContent.js +15 -1
- package/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -1
- package/dist/components/CreditCardForm/PendingStatusContent.js +21 -1
- package/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/dist/components/CreditCardForm/ReworkStatusContent.js +12 -0
- package/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
- package/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -2
- package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/CreditCardForm/SuccessStatusCardContent.js +12 -0
- package/dist/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -1
- package/dist/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
- package/dist/components/CreditCardForm/creditCardFormAspects.js +10 -0
- package/dist/components/CreditCardForm/creditCardFormAspects.js.map +1 -0
- package/dist/components/CreditForm/FailedStatusContent.js +15 -1
- package/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
- package/dist/components/CreditForm/PendingStatusContent.js +21 -1
- package/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/dist/components/CreditForm/ReworkStatusContent.js +12 -0
- package/dist/components/CreditForm/ReworkStatusContent.js.map +1 -1
- package/dist/components/CreditForm/StepsNavigationButtons.js +4 -92
- package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/CreditForm/SuccessStatusContent.js +12 -0
- package/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/dist/components/CreditForm/creditFormAspects.d.ts +2 -0
- package/dist/components/CreditForm/creditFormAspects.js +35 -0
- package/dist/components/CreditForm/creditFormAspects.js.map +1 -0
- package/dist/components/DebitForm/DebitFormStep.js +5 -2
- package/dist/components/DebitForm/DebitFormStep.js.map +1 -1
- package/dist/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
- package/dist/components/DebitForm/StepsNavigationButtons.js +11 -2
- package/dist/components/DebitForm/StepsNavigationButtons.js.map +1 -1
- package/dist/components/DebitForm/debitFormAspects.d.ts +2 -0
- package/dist/components/DebitForm/debitFormAspects.js +8 -0
- package/dist/components/DebitForm/debitFormAspects.js.map +1 -0
- package/dist/components/Footer/Contacts.js +1 -1
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
- package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +13 -2
- package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +64 -47
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
- package/dist/retail/components/DraftDialog/DraftActionButton.js +2 -1
- package/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js +14 -1
- package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/dist/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
- package/dist/retail/components/DraftDialog/DraftDialogContent.js +2 -2
- package/dist/retail/components/DraftDialog/DraftDialogContent.js.map +1 -1
- package/dist/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
- package/dist/retail/utils/commonAspects.d.ts +2 -0
- package/dist/retail/utils/commonAspects.js +64 -0
- package/dist/retail/utils/commonAspects.js.map +1 -0
- package/dist/retail/utils/formAspectsConfig.d.ts +6 -0
- package/dist/retail/utils/formAspectsConfig.js +2 -0
- package/dist/retail/utils/formAspectsConfig.js.map +1 -0
- package/dist/retail/utils/yandexMetrika.d.ts +1 -0
- package/dist/retail/utils/yandexMetrika.js +5 -0
- package/dist/retail/utils/yandexMetrika.js.map +1 -0
- package/dist/utils/getStepAspects.d.ts +11 -0
- package/dist/utils/getStepAspects.js +50 -0
- package/dist/utils/getStepAspects.js.map +1 -0
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js +7 -1
- package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +83 -40
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStep.js +5 -2
- package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/lib/components/CreditCardForm/FailedStatusContent.js +15 -1
- package/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -1
- package/lib/components/CreditCardForm/PendingStatusContent.js +21 -1
- package/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/lib/components/CreditCardForm/ReworkStatusContent.js +12 -0
- package/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
- package/lib/components/CreditCardForm/StepsNavigationButtons.js +11 -2
- package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/CreditCardForm/SuccessStatusCardContent.js +12 -0
- package/lib/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -1
- package/lib/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
- package/lib/components/CreditCardForm/creditCardFormAspects.js +8 -0
- package/lib/components/CreditCardForm/creditCardFormAspects.js.map +1 -0
- package/lib/components/CreditForm/FailedStatusContent.js +15 -1
- package/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
- package/lib/components/CreditForm/PendingStatusContent.js +21 -1
- package/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/lib/components/CreditForm/ReworkStatusContent.js +12 -0
- package/lib/components/CreditForm/ReworkStatusContent.js.map +1 -1
- package/lib/components/CreditForm/StepsNavigationButtons.js +4 -92
- package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/CreditForm/SuccessStatusContent.js +12 -0
- package/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/lib/components/CreditForm/creditFormAspects.d.ts +2 -0
- package/lib/components/CreditForm/creditFormAspects.js +33 -0
- package/lib/components/CreditForm/creditFormAspects.js.map +1 -0
- package/lib/components/DebitForm/DebitFormStep.js +5 -2
- package/lib/components/DebitForm/DebitFormStep.js.map +1 -1
- package/lib/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
- package/lib/components/DebitForm/StepsNavigationButtons.js +11 -2
- package/lib/components/DebitForm/StepsNavigationButtons.js.map +1 -1
- package/lib/components/DebitForm/debitFormAspects.d.ts +2 -0
- package/lib/components/DebitForm/debitFormAspects.js +6 -0
- package/lib/components/DebitForm/debitFormAspects.js.map +1 -0
- package/lib/components/Footer/Contacts.js +1 -1
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
- package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
- package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +13 -2
- package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +64 -47
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
- package/lib/retail/components/DraftDialog/DraftActionButton.js +2 -1
- package/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js +14 -1
- package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/lib/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
- package/lib/retail/components/DraftDialog/DraftDialogContent.js +2 -2
- package/lib/retail/components/DraftDialog/DraftDialogContent.js.map +1 -1
- package/lib/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
- package/lib/retail/utils/commonAspects.d.ts +2 -0
- package/lib/retail/utils/commonAspects.js +61 -0
- package/lib/retail/utils/commonAspects.js.map +1 -0
- package/lib/retail/utils/formAspectsConfig.d.ts +6 -0
- package/lib/retail/utils/formAspectsConfig.js +2 -0
- package/lib/retail/utils/formAspectsConfig.js.map +1 -0
- package/lib/retail/utils/yandexMetrika.d.ts +1 -0
- package/lib/retail/utils/yandexMetrika.js +3 -0
- package/lib/retail/utils/yandexMetrika.js.map +1 -0
- package/lib/utils/getStepAspects.d.ts +11 -0
- package/lib/utils/getStepAspects.js +47 -0
- package/lib/utils/getStepAspects.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +463 -250
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
- package/mobile/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
- package/mobile/bundle/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
- package/mobile/bundle/components/CreditForm/creditFormAspects.d.ts +2 -0
- package/mobile/bundle/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
- package/mobile/bundle/components/DebitForm/debitFormAspects.d.ts +2 -0
- package/mobile/bundle/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
- package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
- package/mobile/bundle/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
- package/mobile/bundle/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
- package/mobile/bundle/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
- package/mobile/bundle/retail/utils/commonAspects.d.ts +2 -0
- package/mobile/bundle/retail/utils/formAspectsConfig.d.ts +6 -0
- package/mobile/bundle/retail/utils/yandexMetrika.d.ts +1 -0
- package/mobile/bundle/utils/getStepAspects.d.ts +11 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +7 -1
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +83 -40
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +5 -2
- package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/FailedStatusContent.js +15 -1
- package/mobile/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.js +21 -1
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js +12 -0
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -2
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.js +12 -0
- package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
- package/mobile/dist/components/CreditCardForm/creditCardFormAspects.js +10 -0
- package/mobile/dist/components/CreditCardForm/creditCardFormAspects.js.map +1 -0
- package/mobile/dist/components/CreditForm/FailedStatusContent.js +15 -1
- package/mobile/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/PendingStatusContent.js +21 -1
- package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/ReworkStatusContent.js +12 -0
- package/mobile/dist/components/CreditForm/ReworkStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +4 -92
- package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js +12 -0
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormAspects.d.ts +2 -0
- package/mobile/dist/components/CreditForm/creditFormAspects.js +35 -0
- package/mobile/dist/components/CreditForm/creditFormAspects.js.map +1 -0
- package/mobile/dist/components/DebitForm/DebitFormStep.js +5 -2
- package/mobile/dist/components/DebitForm/DebitFormStep.js.map +1 -1
- package/mobile/dist/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
- package/mobile/dist/components/DebitForm/StepsNavigationButtons.js +11 -2
- package/mobile/dist/components/DebitForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/dist/components/DebitForm/debitFormAspects.d.ts +2 -0
- package/mobile/dist/components/DebitForm/debitFormAspects.js +8 -0
- package/mobile/dist/components/DebitForm/debitFormAspects.js.map +1 -0
- package/mobile/dist/components/Footer/Contacts.js +1 -1
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
- package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +13 -2
- package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +64 -47
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
- package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js +2 -1
- package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +14 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/dist/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
- package/mobile/dist/retail/components/DraftDialog/DraftDialogContent.js +2 -2
- package/mobile/dist/retail/components/DraftDialog/DraftDialogContent.js.map +1 -1
- package/mobile/dist/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
- package/mobile/dist/retail/utils/commonAspects.d.ts +2 -0
- package/mobile/dist/retail/utils/commonAspects.js +64 -0
- package/mobile/dist/retail/utils/commonAspects.js.map +1 -0
- package/mobile/dist/retail/utils/formAspectsConfig.d.ts +6 -0
- package/mobile/dist/retail/utils/formAspectsConfig.js +2 -0
- package/mobile/dist/retail/utils/formAspectsConfig.js.map +1 -0
- package/mobile/dist/retail/utils/yandexMetrika.d.ts +1 -0
- package/mobile/dist/retail/utils/yandexMetrika.js +5 -0
- package/mobile/dist/retail/utils/yandexMetrika.js.map +1 -0
- package/mobile/dist/utils/getStepAspects.d.ts +11 -0
- package/mobile/dist/utils/getStepAspects.js +50 -0
- package/mobile/dist/utils/getStepAspects.js.map +1 -0
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +7 -1
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +83 -40
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +5 -2
- package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/FailedStatusContent.js +15 -1
- package/mobile/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.js +21 -1
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js +12 -0
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +11 -2
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.js +12 -0
- package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
- package/mobile/lib/components/CreditCardForm/creditCardFormAspects.js +8 -0
- package/mobile/lib/components/CreditCardForm/creditCardFormAspects.js.map +1 -0
- package/mobile/lib/components/CreditForm/FailedStatusContent.js +15 -1
- package/mobile/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/PendingStatusContent.js +21 -1
- package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/ReworkStatusContent.js +12 -0
- package/mobile/lib/components/CreditForm/ReworkStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +4 -92
- package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js +12 -0
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormAspects.d.ts +2 -0
- package/mobile/lib/components/CreditForm/creditFormAspects.js +33 -0
- package/mobile/lib/components/CreditForm/creditFormAspects.js.map +1 -0
- package/mobile/lib/components/DebitForm/DebitFormStep.js +5 -2
- package/mobile/lib/components/DebitForm/DebitFormStep.js.map +1 -1
- package/mobile/lib/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
- package/mobile/lib/components/DebitForm/StepsNavigationButtons.js +11 -2
- package/mobile/lib/components/DebitForm/StepsNavigationButtons.js.map +1 -1
- package/mobile/lib/components/DebitForm/debitFormAspects.d.ts +2 -0
- package/mobile/lib/components/DebitForm/debitFormAspects.js +6 -0
- package/mobile/lib/components/DebitForm/debitFormAspects.js.map +1 -0
- package/mobile/lib/components/Footer/Contacts.js +1 -1
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
- package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +13 -2
- package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +64 -47
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
- package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js +2 -1
- package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +14 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
- package/mobile/lib/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
- package/mobile/lib/retail/components/DraftDialog/DraftDialogContent.js +2 -2
- package/mobile/lib/retail/components/DraftDialog/DraftDialogContent.js.map +1 -1
- package/mobile/lib/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
- package/mobile/lib/retail/utils/commonAspects.d.ts +2 -0
- package/mobile/lib/retail/utils/commonAspects.js +61 -0
- package/mobile/lib/retail/utils/commonAspects.js.map +1 -0
- package/mobile/lib/retail/utils/formAspectsConfig.d.ts +6 -0
- package/mobile/lib/retail/utils/formAspectsConfig.js +2 -0
- package/mobile/lib/retail/utils/formAspectsConfig.js.map +1 -0
- package/mobile/lib/retail/utils/yandexMetrika.d.ts +1 -0
- package/mobile/lib/retail/utils/yandexMetrika.js +3 -0
- package/mobile/lib/retail/utils/yandexMetrika.js.map +1 -0
- package/mobile/lib/utils/getStepAspects.d.ts +11 -0
- package/mobile/lib/utils/getStepAspects.js +47 -0
- package/mobile/lib/utils/getStepAspects.js.map +1 -0
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
- package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +20 -5
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +98 -38
- package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +13 -2
- package/mobile/src/components/CreditCardForm/FailedStatusContent.tsx +24 -7
- package/mobile/src/components/CreditCardForm/PendingStatusContent.tsx +24 -1
- package/mobile/src/components/CreditCardForm/ReworkStatusContent.tsx +14 -0
- package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +15 -2
- package/mobile/src/components/CreditCardForm/SuccessStatusCardContent.tsx +14 -0
- package/mobile/src/components/CreditCardForm/creditCardFormAspects.ts +9 -0
- package/mobile/src/components/CreditForm/FailedStatusContent.tsx +24 -7
- package/mobile/src/components/CreditForm/PendingStatusContent.tsx +26 -1
- package/mobile/src/components/CreditForm/ReworkStatusContent.tsx +15 -0
- package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +5 -95
- package/mobile/src/components/CreditForm/SuccessStatusContent.tsx +15 -0
- package/mobile/src/components/CreditForm/creditFormAspects.ts +35 -0
- package/mobile/src/components/DebitForm/DebitFormStep.tsx +13 -2
- package/mobile/src/components/DebitForm/StepsNavigationButtons.tsx +15 -2
- package/mobile/src/components/DebitForm/debitFormAspects.ts +7 -0
- package/mobile/src/components/Footer/Contacts.tsx +1 -1
- package/mobile/src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx +16 -2
- package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +93 -51
- package/mobile/src/retail/components/DraftDialog/DraftActionButton.tsx +6 -1
- package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +15 -0
- package/mobile/src/retail/components/DraftDialog/DraftDialogContent.tsx +7 -0
- package/mobile/src/retail/model/ApplicationLeadFormTypes.ts +12 -0
- package/mobile/src/retail/utils/commonAspects.ts +64 -0
- package/mobile/src/retail/utils/formAspectsConfig.ts +6 -0
- package/mobile/src/retail/utils/yandexMetrika.ts +3 -0
- package/mobile/src/utils/getStepAspects.ts +71 -0
- package/package.json +2 -2
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
- package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +20 -5
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +98 -38
- package/src/components/CreditCardForm/CreditCardFormStep.tsx +13 -2
- package/src/components/CreditCardForm/FailedStatusContent.tsx +24 -7
- package/src/components/CreditCardForm/PendingStatusContent.tsx +24 -1
- package/src/components/CreditCardForm/ReworkStatusContent.tsx +14 -0
- package/src/components/CreditCardForm/StepsNavigationButtons.tsx +15 -2
- package/src/components/CreditCardForm/SuccessStatusCardContent.tsx +14 -0
- package/src/components/CreditCardForm/creditCardFormAspects.ts +9 -0
- package/src/components/CreditForm/FailedStatusContent.tsx +24 -7
- package/src/components/CreditForm/PendingStatusContent.tsx +26 -1
- package/src/components/CreditForm/ReworkStatusContent.tsx +15 -0
- package/src/components/CreditForm/StepsNavigationButtons.tsx +5 -95
- package/src/components/CreditForm/SuccessStatusContent.tsx +15 -0
- package/src/components/CreditForm/creditFormAspects.ts +35 -0
- package/src/components/DebitForm/DebitFormStep.tsx +13 -2
- package/src/components/DebitForm/StepsNavigationButtons.tsx +15 -2
- package/src/components/DebitForm/debitFormAspects.ts +7 -0
- package/src/components/Footer/Contacts.tsx +1 -1
- package/src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx +16 -2
- package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +93 -51
- package/src/retail/components/DraftDialog/DraftActionButton.tsx +6 -1
- package/src/retail/components/DraftDialog/DraftDialog.tsx +15 -0
- package/src/retail/components/DraftDialog/DraftDialogContent.tsx +7 -0
- package/src/retail/model/ApplicationLeadFormTypes.ts +12 -0
- package/src/retail/utils/commonAspects.ts +64 -0
- package/src/retail/utils/formAspectsConfig.ts +6 -0
- package/src/retail/utils/yandexMetrika.ts +3 -0
- package/src/utils/getStepAspects.ts +71 -0
- package/bundle/components/CreditForm/getYandexAspects.d.ts +0 -10
- package/dist/components/CreditForm/getYandexAspects.d.ts +0 -10
- package/dist/components/CreditForm/getYandexAspects.js +0 -38
- package/dist/components/CreditForm/getYandexAspects.js.map +0 -1
- package/lib/components/CreditForm/getYandexAspects.d.ts +0 -10
- package/lib/components/CreditForm/getYandexAspects.js +0 -35
- package/lib/components/CreditForm/getYandexAspects.js.map +0 -1
- package/mobile/bundle/components/CreditForm/getYandexAspects.d.ts +0 -10
- package/mobile/dist/components/CreditForm/getYandexAspects.d.ts +0 -10
- package/mobile/dist/components/CreditForm/getYandexAspects.js +0 -38
- package/mobile/dist/components/CreditForm/getYandexAspects.js.map +0 -1
- package/mobile/lib/components/CreditForm/getYandexAspects.d.ts +0 -10
- package/mobile/lib/components/CreditForm/getYandexAspects.js +0 -35
- package/mobile/lib/components/CreditForm/getYandexAspects.js.map +0 -1
- package/mobile/src/components/CreditForm/getYandexAspects.ts +0 -58
- package/src/components/CreditForm/getYandexAspects.ts +0 -58
|
@@ -1,67 +1,84 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.useConsentBkiDialog = void 0;
|
|
3
|
+
const handleAspects_1 = require("../../../hooks/useAspects/handleAspects");
|
|
4
|
+
const useAspects_1 = require("../../../hooks/useAspects/useAspects");
|
|
3
5
|
const useDialog_1 = require("../../../ui-kit/DialogManager/useDialog");
|
|
4
6
|
const updateUserProfile_1 = require("../../api/updateUserProfile");
|
|
5
7
|
const updateUserTask_1 = require("../../api/updateUserTask");
|
|
8
|
+
const commonAspects_1 = require("../../utils/commonAspects");
|
|
6
9
|
const VerifyPhoneDialog_1 = require("../VerifyPhoneDialog/VerifyPhoneDialog");
|
|
7
10
|
const ConsentBkiDialog_1 = require("./ConsentBkiDialog");
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
const createHandleSuccessVerify = ({ profileId, taskId, participantId, aspects, onClose, productType, }) => async (smsCode) => {
|
|
12
|
+
try {
|
|
13
|
+
if (profileId) {
|
|
14
|
+
await (0, updateUserProfile_1.updateUserProfile)({
|
|
15
|
+
profile: {
|
|
16
|
+
id: profileId,
|
|
17
|
+
consentBkiFlg: true,
|
|
18
|
+
smsConsentBki: smsCode,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
else if (taskId && participantId) {
|
|
23
|
+
await (0, updateUserTask_1.updateUserTask)({
|
|
24
|
+
task: {
|
|
25
|
+
id: taskId,
|
|
26
|
+
participant: {
|
|
27
|
+
id: participantId,
|
|
17
28
|
consentBkiFlg: true,
|
|
18
29
|
smsConsentBki: smsCode,
|
|
19
30
|
},
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
await (0, updateUserTask_1.updateUserTask)({
|
|
24
|
-
task: {
|
|
25
|
-
id: taskId,
|
|
26
|
-
participant: {
|
|
27
|
-
id: participantId,
|
|
28
|
-
consentBkiFlg: true,
|
|
29
|
-
smsConsentBki: smsCode,
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
sendToBank: false,
|
|
33
|
-
taskKind: 'SHORT',
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
onClose();
|
|
37
|
-
}
|
|
38
|
-
catch (ex) {
|
|
39
|
-
console.log(ex);
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
const handleSubmitBkiConsent = ({ phone, profileId, onFail, taskId, participantId }) => async (confirmStatus) => {
|
|
43
|
-
if (confirmStatus === 'SIGNED' && phone) {
|
|
44
|
-
verifyPhoneDialog.open({
|
|
45
|
-
phone,
|
|
46
|
-
consents: ['согласие на запрос информации в БКИ'],
|
|
47
|
-
onSuccess: handleSuccessVerify(profileId, taskId, participantId),
|
|
48
|
-
onFail,
|
|
31
|
+
},
|
|
32
|
+
sendToBank: false,
|
|
33
|
+
taskKind: 'SHORT',
|
|
49
34
|
});
|
|
50
35
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
36
|
+
(0, handleAspects_1.handleAspects)({
|
|
37
|
+
aspectsAttributes: (0, commonAspects_1.getAspects)('smsBki', productType),
|
|
38
|
+
aspects,
|
|
39
|
+
ev: {},
|
|
40
|
+
});
|
|
41
|
+
onClose();
|
|
42
|
+
}
|
|
43
|
+
catch (ex) {
|
|
44
|
+
console.log(ex);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const createHandleSubmitBkiConsent = ({ submitProps, verifyPhoneDialog, aspects, onClose }) => async (confirmStatus) => {
|
|
48
|
+
const { phone, profileId, onFail, taskId, participantId, productType } = submitProps;
|
|
49
|
+
if (confirmStatus === 'SIGNED' && phone) {
|
|
50
|
+
verifyPhoneDialog.open({
|
|
51
|
+
phone,
|
|
52
|
+
consents: ['согласие на запрос информации в БКИ'],
|
|
53
|
+
onSuccess: createHandleSuccessVerify({
|
|
59
54
|
profileId,
|
|
60
|
-
onFail,
|
|
61
55
|
taskId,
|
|
62
56
|
participantId,
|
|
57
|
+
aspects,
|
|
58
|
+
onClose,
|
|
59
|
+
productType,
|
|
60
|
+
}),
|
|
61
|
+
onFail,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
onClose();
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
const useConsentBkiDialog = (onClose, productType) => {
|
|
69
|
+
const { open } = (0, useDialog_1.useDialog)(ConsentBkiDialog_1.ConsentBkiDialog);
|
|
70
|
+
const verifyPhoneDialog = (0, useDialog_1.useDialog)(VerifyPhoneDialog_1.VerifyPhoneDialog);
|
|
71
|
+
const aspects = (0, useAspects_1.useAspects)();
|
|
72
|
+
return {
|
|
73
|
+
open: ({ phone, profileId, onFail, taskId, participantId }) => open({
|
|
74
|
+
onSubmit: createHandleSubmitBkiConsent({
|
|
75
|
+
submitProps: { phone, profileId, onFail, taskId, participantId, productType },
|
|
76
|
+
verifyPhoneDialog,
|
|
77
|
+
aspects,
|
|
78
|
+
onClose,
|
|
63
79
|
}),
|
|
64
80
|
onClose,
|
|
81
|
+
productType,
|
|
65
82
|
}),
|
|
66
83
|
};
|
|
67
84
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConsentBkiDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx"],"names":[],"mappings":";;AAAA,uEAAoE;
|
|
1
|
+
{"version":3,"file":"useConsentBkiDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx"],"names":[],"mappings":";;AAAA,2EAAwE;AACxE,qEAAgF;AAChF,uEAAoE;AAEpE,mEAAgE;AAChE,6DAA0D;AAC1D,6DAAuD;AACvD,8EAA2E;AAC3E,yDAAsD;AA2BtD,MAAM,yBAAyB,GAC7B,CAAC,EACC,SAAS,EACT,MAAM,EACN,aAAa,EACb,OAAO,EACP,OAAO,EACP,WAAW,GACe,EAAE,EAAE,CAChC,KAAK,EAAE,OAAgB,EAAE,EAA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WAAW;aACZ,CAAC;YACF,MAAM;SACP,CAAC,CAAC;KACJ;SAAM;QACL,OAAO,EAAE,CAAC;KACX;AACH,CAAC,CAAC;AAEG,MAAM,mBAAmB,GAAG,CAAC,OAAmB,EAAE,WAAoB,EAAE,EAAE;IAC/E,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,qBAAS,EAAC,mCAAgB,CAAC,CAAC;IAC7C,MAAM,iBAAiB,GAAG,IAAA,qBAAS,EAAC,qCAAiB,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,IAAA,uBAAU,GAAE,CAAC;IAE7B,OAAO;QACL,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAyB,EAAE,EAAE,CACnF,IAAI,CAAC;YACH,QAAQ,EAAE,4BAA4B,CAAC;gBACrC,WAAW,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE;gBAC7E,iBAAiB;gBACjB,OAAO;gBACP,OAAO;aACR,CAAC;YACF,OAAO;YACP,WAAW;SACZ,CAAC;KACL,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,mBAAmB,uBAkB9B"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { type IconName } from '../../../icons/IconName';
|
|
2
|
+
import { type AspectsDef } from '../../../model/AspectsProps';
|
|
2
3
|
import { type DescriptionProps, type TitleProps } from '../../../model/HeadlineType';
|
|
3
4
|
import type { OnClickProps } from '../../../model/OnClickProps';
|
|
4
5
|
export declare type DraftActionButtonProps = TitleProps & DescriptionProps & OnClickProps & {
|
|
5
6
|
icon: IconName;
|
|
6
7
|
name?: string;
|
|
8
|
+
data?: AspectsDef[];
|
|
7
9
|
};
|
|
8
10
|
export declare const DraftActionButton: import("@redneckz/uni-jsx").UNIComponent<DraftActionButtonProps, any, any>;
|
|
@@ -4,6 +4,7 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const Img_1 = require("../../../ui-kit/Img/Img");
|
|
6
6
|
const Text_1 = require("../../../ui-kit/Text/Text");
|
|
7
|
+
const dataAttributes_1 = require("../../../utils/dataAttributes");
|
|
7
8
|
const noop_1 = require("../../../utils/noop");
|
|
8
|
-
exports.DraftActionButton = (0, uni_jsx_1.JSX)(({ title, icon, description, name, onClick = noop_1.noop }) => ((0, jsx_runtime_1.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: [(0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon, iconVersion: 'normal' }, width: "78", height: "78" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-start gap-xs md:w-72 md:mr-lg", children: [title ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { font: "font-medium", size: "text-s", children: title })) : null, description ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", size: "text-xs", children: description })) : null] })] })));
|
|
9
|
+
exports.DraftActionButton = (0, uni_jsx_1.JSX)(({ title, icon, description, name, onClick = noop_1.noop, data }) => ((0, jsx_runtime_1.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, ...(0, dataAttributes_1.getAspectsAttributes)(data), children: [(0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon, iconVersion: 'normal' }, width: "78", height: "78" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-start gap-xs md:w-72 md:mr-lg", children: [title ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { font: "font-medium", size: "text-s", children: title })) : null, description ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", size: "text-xs", children: description })) : null] })] })));
|
|
9
10
|
//# sourceMappingURL=DraftActionButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraftActionButton.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/DraftActionButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"DraftActionButton.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/DraftActionButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAKxC,iDAA8C;AAC9C,oDAAiD;AACjD,kEAAqE;AACrE,8CAA2C;AAU9B,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,GAAG,WAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5D,oCACE,SAAS,EAAC,iGAAiG,EAC3G,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,OAAO,kBACF,IAAI,KAEd,IAAA,qCAAoB,EAAC,IAAI,CAAC,aAE9B,uBAAC,SAAG,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,EACtE,iCAAK,SAAS,EAAC,mDAAmD,aAC/D,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,WAAI,IAAC,IAAI,EAAC,aAAa,EAAC,IAAI,EAAC,QAAQ,YACnC,KAAK,GACD,CACR,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,WAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,SAAS,YAC7C,WAAW,GACP,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,IACC,CACV,CACF,CAAC"}
|
|
@@ -9,6 +9,7 @@ const noop_1 = require("../../../utils/noop");
|
|
|
9
9
|
const sendMessage_1 = require("../../api/sendMessage");
|
|
10
10
|
const useRetailFormStore_1 = require("../../hooks/useRetailFormStore");
|
|
11
11
|
const checkNewMicroservice_1 = require("../../utils/checkNewMicroservice");
|
|
12
|
+
const commonAspects_1 = require("../../utils/commonAspects");
|
|
12
13
|
const creditProgramCodes_1 = require("./creditProgramCodes");
|
|
13
14
|
const DraftDialogContent_1 = require("./DraftDialogContent");
|
|
14
15
|
const parseDraftTask_1 = require("./parseDraftTask");
|
|
@@ -49,6 +50,18 @@ exports.DraftDialog = (0, uni_jsx_1.JSX)(function ({ task, taskType, isDebit, is
|
|
|
49
50
|
}
|
|
50
51
|
navigator.assign(productData.newTaskLink);
|
|
51
52
|
}, [task.id, productData.newTaskLink, isNewMicroservice]);
|
|
52
|
-
|
|
53
|
+
let productType;
|
|
54
|
+
if (isDebit) {
|
|
55
|
+
productType = 'debitCard';
|
|
56
|
+
}
|
|
57
|
+
else if (taskType === 'card') {
|
|
58
|
+
productType = 'creditCard';
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
productType = 'credit';
|
|
62
|
+
}
|
|
63
|
+
const draftAspects = (0, commonAspects_1.getAspects)('draft', productType);
|
|
64
|
+
const currentAspects = (0, commonAspects_1.getAspects)('current', productType);
|
|
65
|
+
return ((0, jsx_runtime_1.jsx)(Dialog_1.Dialog, { onClose: onClose, children: (0, jsx_runtime_1.jsx)(DraftDialogContent_1.DraftDialogContent, { createdDate: createdDate, productData: productData, isFromLead: isFromLead, handleGoToDraft: handleGoToDraft, handleGoToNewTask: handleGoToNewTask, onClose: onClose, draftAspects: draftAspects, currentAspects: currentAspects }) }));
|
|
53
66
|
});
|
|
54
67
|
//# sourceMappingURL=DraftDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraftDialog.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/DraftDialog.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA0D;AAC1D,2EAAwE;AAExE,iEAA8D;AAC9D,8CAA2C;AAE3C,uDAAoD;AACpD,uEAAoE;A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,cAAc,GAC9B,GACK,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type AspectsDef } from '../../../model/AspectsProps';
|
|
1
2
|
import { type OnCloseProps } from '../../../model/OnCloseProps';
|
|
2
3
|
import { type getProductData } from './utils';
|
|
3
4
|
export interface DraftDialogContentProps extends OnCloseProps {
|
|
@@ -6,5 +7,7 @@ export interface DraftDialogContentProps extends OnCloseProps {
|
|
|
6
7
|
isFromLead: boolean;
|
|
7
8
|
handleGoToDraft: () => void;
|
|
8
9
|
handleGoToNewTask: () => void;
|
|
10
|
+
draftAspects?: AspectsDef[];
|
|
11
|
+
currentAspects?: AspectsDef[];
|
|
9
12
|
}
|
|
10
13
|
export declare const DraftDialogContent: import("@redneckz/uni-jsx").UNIComponent<DraftDialogContentProps, any, any>;
|
|
@@ -5,7 +5,7 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
|
5
5
|
const Heading_1 = require("../../../ui-kit/Heading/Heading");
|
|
6
6
|
const formatDate_1 = require("../../../utils/formatDate");
|
|
7
7
|
const DraftActionButton_1 = require("./DraftActionButton");
|
|
8
|
-
exports.DraftDialogContent = (0, uni_jsx_1.JSX)(function ({ createdDate, productData, isFromLead, handleGoToDraft, handleGoToNewTask, onClose, }) {
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [(0, jsx_runtime_1.jsx)(Heading_1.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" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-m max-w-lg", children: [(0, jsx_runtime_1.jsx)(DraftActionButton_1.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 ? `Черновик от ${(0, formatDate_1.formatDate)(new Date(createdDate))}` : '', onClick: handleGoToDraft, name: "go-to-draft-button" }), (0, jsx_runtime_1.jsx)(DraftActionButton_1.DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: productData.description, onClick: isFromLead ? onClose : handleGoToNewTask, name: "go-to-current-task-button" })] })] }));
|
|
8
|
+
exports.DraftDialogContent = (0, uni_jsx_1.JSX)(function ({ createdDate, productData, isFromLead, handleGoToDraft, handleGoToNewTask, onClose, draftAspects, currentAspects, }) {
|
|
9
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [(0, jsx_runtime_1.jsx)(Heading_1.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" }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-m max-w-lg", children: [(0, jsx_runtime_1.jsx)(DraftActionButton_1.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 ? `Черновик от ${(0, formatDate_1.formatDate)(new Date(createdDate))}` : '', onClick: handleGoToDraft, name: "go-to-draft-button", data: draftAspects }), (0, jsx_runtime_1.jsx)(DraftActionButton_1.DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: productData.description, onClick: isFromLead ? onClose : handleGoToNewTask, name: "go-to-current-task-button", data: isFromLead ? currentAspects : undefined })] })] }));
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=DraftDialogContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DraftDialogContent.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/DraftDialogContent.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;
|
|
1
|
+
{"version":3,"file":"DraftDialogContent.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/DraftDialogContent.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,6DAA0D;AAC1D,0DAAuD;AACvD,2DAAwD;AAa3C,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAA0B,UAAU,EACvE,WAAW,EACX,WAAW,EACX,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,cAAc,GACf;IACC,OAAO,CACL,iCAAK,SAAS,EAAC,gDAAgD,aAC7D,uBAAC,iBAAO,IACN,SAAS,EAAC,iCAAiC,EAC3C,KAAK,EAAC,qJAA6B,EACnC,WAAW,EAAC,IAAI,GAChB,EACF,iCAAK,SAAS,EAAC,8BAA8B,aAC3C,uBAAC,qCAAiB,IAChB,KAAK,EAAC,kLAAiC,EACvC,IAAI,EAAC,eAAe,EACpB,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,eAAe,IAAA,uBAAU,EAAC,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAClF,OAAO,EAAE,eAAe,EACxB,IAAI,EAAC,oBAAoB,EACzB,IAAI,EAAE,YAAY,GAClB,EACF,uBAAC,qCAAiB,IAChB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,sBAAsB,EACnF,IAAI,EAAC,aAAa,EAClB,WAAW,EAAE,WAAW,CAAC,WAAW,EACpC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,EACjD,IAAI,EAAC,2BAA2B,EAChC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,GAC7C,IACE,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { type Aspects } from '../../hooks/useAspects/useAspects';
|
|
1
2
|
import { type DialogOptions } from '../../ui-kit/DialogManager/DialogAction';
|
|
2
3
|
import { type VerifyPhoneDialogProps } from '../../ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout';
|
|
3
4
|
import { type Nullable } from '../../utils/Nullable';
|
|
4
5
|
import { type MarketingInfo } from '../api/updateUserTask';
|
|
6
|
+
import { type useConsentBkiDialog } from '../components/ConsentBkiDialog/useConsentBkiDialog';
|
|
7
|
+
import { type useDraftDialog } from '../components/DraftDialog/useDraftDialog';
|
|
5
8
|
import { type LeadFormState } from './LeadFormState';
|
|
6
9
|
import { type ReferalData } from './ReferalData';
|
|
7
10
|
export interface UserData {
|
|
@@ -14,6 +17,7 @@ export interface UserData {
|
|
|
14
17
|
}
|
|
15
18
|
export declare type ProductType = 'credit' | 'creditCard' | 'debitCard';
|
|
16
19
|
export interface CommonLeadProps {
|
|
20
|
+
aspects: Aspects;
|
|
17
21
|
programId: string;
|
|
18
22
|
userId?: string | number;
|
|
19
23
|
productType: ProductType;
|
|
@@ -47,3 +51,12 @@ export interface UpdateUserDataNewMicroserviceProps extends BaseUpdateUserDataPr
|
|
|
47
51
|
participantId: string | number;
|
|
48
52
|
userId?: string | number;
|
|
49
53
|
}
|
|
54
|
+
export interface OldMicroserviceProps {
|
|
55
|
+
common: Omit<CommonLeadProps, 'userId'> & {
|
|
56
|
+
profileId: number;
|
|
57
|
+
};
|
|
58
|
+
taskData: TaskDataProps;
|
|
59
|
+
goToNextStep: () => void;
|
|
60
|
+
consentBkiDialog: ReturnType<typeof useConsentBkiDialog>;
|
|
61
|
+
draftDialog: ReturnType<typeof useDraftDialog>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.getAspects = void 0;
|
|
3
|
+
const yandexMetrika_1 = require("./yandexMetrika");
|
|
4
|
+
const ASPECTS_MAP = {
|
|
5
|
+
leadForm: {
|
|
6
|
+
debitCard: 'debit_lead_form',
|
|
7
|
+
creditCard: 'card_lead_form',
|
|
8
|
+
default: 'lead_form',
|
|
9
|
+
},
|
|
10
|
+
draft: {
|
|
11
|
+
debitCard: 'debit_draft_app',
|
|
12
|
+
creditCard: 'card_draft_app',
|
|
13
|
+
default: 'draft_app',
|
|
14
|
+
},
|
|
15
|
+
smsAuth: {
|
|
16
|
+
debitCard: 'debit_sms_auth',
|
|
17
|
+
creditCard: 'card_sms_auth',
|
|
18
|
+
default: 'sms_auth',
|
|
19
|
+
},
|
|
20
|
+
consentBki: {
|
|
21
|
+
creditCard: 'card_consent_bki',
|
|
22
|
+
default: 'consent_bki',
|
|
23
|
+
},
|
|
24
|
+
smsBki: {
|
|
25
|
+
creditCard: 'card_sms_bki',
|
|
26
|
+
default: 'sms_bki',
|
|
27
|
+
},
|
|
28
|
+
current: {
|
|
29
|
+
debitCard: 'debit_current_app',
|
|
30
|
+
creditCard: 'card_current_app',
|
|
31
|
+
default: 'current_app',
|
|
32
|
+
},
|
|
33
|
+
timer: {
|
|
34
|
+
creditCard: 'card_timer',
|
|
35
|
+
default: 'timer',
|
|
36
|
+
},
|
|
37
|
+
timerEnd: {
|
|
38
|
+
creditCard: 'card_timer_end',
|
|
39
|
+
default: 'timer_end',
|
|
40
|
+
},
|
|
41
|
+
preDecision: {
|
|
42
|
+
creditCard: 'card_pre_decision',
|
|
43
|
+
default: 'pre_decision',
|
|
44
|
+
},
|
|
45
|
+
revision: {
|
|
46
|
+
creditCard: 'card_revision',
|
|
47
|
+
default: 'revision',
|
|
48
|
+
},
|
|
49
|
+
refuse: {
|
|
50
|
+
creditCard: 'card_refuse',
|
|
51
|
+
default: 'refuse',
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
const getAspects = (aspectType, productType) => {
|
|
55
|
+
const aspectForType = ASPECTS_MAP[aspectType];
|
|
56
|
+
return [
|
|
57
|
+
{
|
|
58
|
+
aspectName: 'ymReachGoal',
|
|
59
|
+
params: { yandexId: yandexMetrika_1.YANDEX_ID, targetName: aspectForType[productType || 'default'] },
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
};
|
|
63
|
+
exports.getAspects = getAspects;
|
|
64
|
+
//# sourceMappingURL=commonAspects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commonAspects.js","sourceRoot":"","sources":["../../../src/retail/utils/commonAspects.ts"],"names":[],"mappings":";;AACA,mDAA4C;AAE5C,MAAM,WAAW,GAA2C;IAC1D,QAAQ,EAAE;QACR,SAAS,EAAE,iBAAiB;QAC5B,UAAU,EAAE,gBAAgB;QAC5B,OAAO,EAAE,WAAW;KACrB;IACD,KAAK,EAAE;QACL,SAAS,EAAE,iBAAiB;QAC5B,UAAU,EAAE,gBAAgB;QAC5B,OAAO,EAAE,WAAW;KACrB;IACD,OAAO,EAAE;QACP,SAAS,EAAE,gBAAgB;QAC3B,UAAU,EAAE,eAAe;QAC3B,OAAO,EAAE,UAAU;KACpB;IACD,UAAU,EAAE;QACV,UAAU,EAAE,kBAAkB;QAC9B,OAAO,EAAE,aAAa;KACvB;IACD,MAAM,EAAE;QACN,UAAU,EAAE,cAAc;QAC1B,OAAO,EAAE,SAAS;KACnB;IACD,OAAO,EAAE;QACP,SAAS,EAAE,mBAAmB;QAC9B,UAAU,EAAE,kBAAkB;QAC9B,OAAO,EAAE,aAAa;KACvB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,YAAY;QACxB,OAAO,EAAE,OAAO;KACjB;IACD,QAAQ,EAAE;QACR,UAAU,EAAE,gBAAgB;QAC5B,OAAO,EAAE,WAAW;KACrB;IACD,WAAW,EAAE;QACX,UAAU,EAAE,mBAAmB;QAC/B,OAAO,EAAE,cAAc;KACxB;IACD,QAAQ,EAAE;QACR,UAAU,EAAE,eAAe;QAC3B,OAAO,EAAE,UAAU;KACpB;IACD,MAAM,EAAE;QACN,UAAU,EAAE,aAAa;QACzB,OAAO,EAAE,QAAQ;KAClB;CACF,CAAC;AAEK,MAAM,UAAU,GAAG,CAAC,UAAkB,EAAE,WAAoB,EAAgB,EAAE;IACnF,MAAM,aAAa,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;IAE9C,OAAO;QACL;YACE,UAAU,EAAE,aAAa;YACzB,MAAM,EAAE,EAAE,QAAQ,EAAE,yBAAS,EAAE,UAAU,EAAE,aAAa,CAAC,WAAW,IAAI,SAAS,CAAC,EAAE;SACrF;KACF,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,UAAU,cASrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formAspectsConfig.js","sourceRoot":"","sources":["../../../src/retail/utils/formAspectsConfig.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const YANDEX_ID: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.YANDEX_ID = void 0;
|
|
3
|
+
const ProjectSettings_1 = require("../../ProjectSettings");
|
|
4
|
+
exports.YANDEX_ID = ProjectSettings_1.projectSettings.YANDEX_METRIKA_ID || '92511315';
|
|
5
|
+
//# sourceMappingURL=yandexMetrika.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yandexMetrika.js","sourceRoot":"","sources":["../../../src/retail/utils/yandexMetrika.ts"],"names":[],"mappings":";;AAAA,2DAAwD;AAE3C,QAAA,SAAS,GAAG,iCAAe,CAAC,iBAAiB,IAAI,UAAU,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type AspectsDef } from '../model/AspectsProps';
|
|
2
|
+
import { type StepAspectsConfig } from '../retail/utils/formAspectsConfig';
|
|
3
|
+
interface YandexAspectsParams {
|
|
4
|
+
step: number;
|
|
5
|
+
programId?: string | null;
|
|
6
|
+
productType?: string;
|
|
7
|
+
paymentSystem?: string;
|
|
8
|
+
stepsConfig: StepAspectsConfig[];
|
|
9
|
+
}
|
|
10
|
+
export declare const getStepAspects: ({ step, programId, productType, paymentSystem, stepsConfig, }: YandexAspectsParams) => AspectsDef[];
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.getStepAspects = void 0;
|
|
3
|
+
const getCreditInfo_1 = require("../components/CreditForm/getCreditInfo");
|
|
4
|
+
const yandexMetrika_1 = require("../retail/utils/yandexMetrika");
|
|
5
|
+
const getVisitParams = (programId, productType, paymentSystem) => {
|
|
6
|
+
const creditInfo = (0, getCreditInfo_1.getCreditInfo)(programId ?? null);
|
|
7
|
+
const productName = creditInfo?.name || '';
|
|
8
|
+
const productTypeValue = productType ?? '';
|
|
9
|
+
if (paymentSystem && productType !== 'credit') {
|
|
10
|
+
return {
|
|
11
|
+
[productTypeValue]: {
|
|
12
|
+
[productName]: paymentSystem,
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
return {
|
|
18
|
+
[productTypeValue]: productName,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const getStepAspects = ({ step, programId, productType, paymentSystem, stepsConfig, }) => {
|
|
23
|
+
const config = stepsConfig[step];
|
|
24
|
+
if (!config) {
|
|
25
|
+
return [];
|
|
26
|
+
}
|
|
27
|
+
const visitParams = getVisitParams(programId, productType, paymentSystem);
|
|
28
|
+
const aspects = [];
|
|
29
|
+
aspects.push({
|
|
30
|
+
aspectName: 'ymReachGoal',
|
|
31
|
+
params: {
|
|
32
|
+
yandexId: yandexMetrika_1.YANDEX_ID,
|
|
33
|
+
targetName: config.ymTargetName,
|
|
34
|
+
...visitParams,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
if (config.snowplowEventAction) {
|
|
38
|
+
aspects.push({
|
|
39
|
+
aspectName: 'snowplowEvent',
|
|
40
|
+
params: {
|
|
41
|
+
eventAction: config.snowplowEventAction,
|
|
42
|
+
eventCategory: config.snowplowEventCategory || 'naturalCredits',
|
|
43
|
+
eventValueText: config.snowplowEventValueText || '',
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
return aspects;
|
|
48
|
+
};
|
|
49
|
+
exports.getStepAspects = getStepAspects;
|
|
50
|
+
//# sourceMappingURL=getStepAspects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStepAspects.js","sourceRoot":"","sources":["../../src/utils/getStepAspects.ts"],"names":[],"mappings":";;AAAA,0EAAuE;AAGvE,iEAA0D;AAU1D,MAAM,cAAc,GAAG,CACrB,SAAyB,EACzB,WAAoB,EACpB,aAAsB,EACG,EAAE;IAC3B,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAC,SAAS,IAAI,IAAI,CAAC,CAAC;IACpD,MAAM,WAAW,GAAG,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC;IAC3C,MAAM,gBAAgB,GAAG,WAAW,IAAI,EAAE,CAAC;IAE3C,IAAI,aAAa,IAAI,WAAW,KAAK,QAAQ,EAAE;QAC7C,OAAO;YACL,CAAC,gBAAgB,CAAC,EAAE;gBAClB,CAAC,WAAW,CAAC,EAAE,aAAa;aAC7B;SACF,CAAC;KACH;SAAM;QACL,OAAO;YACL,CAAC,gBAAgB,CAAC,EAAE,WAAW;SAChC,CAAC;KACH;AACH,CAAC,CAAC;AAEK,MAAM,cAAc,GAAG,CAAC,EAC7B,IAAI,EACJ,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,GACS,EAAgB,EAAE;IACtC,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IACjC,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,EAAE,CAAC;KACX;IACD,MAAM,WAAW,GAAG,cAAc,CAAC,SAAS,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAiB,EAAE,CAAC;IAEjC,OAAO,CAAC,IAAI,CAAC;QACX,UAAU,EAAE,aAAa;QACzB,MAAM,EAAE;YACN,QAAQ,EAAE,yBAAS;YACnB,UAAU,EAAE,MAAM,CAAC,YAAY;YAC/B,GAAG,WAAW;SACf;KACF,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,mBAAmB,EAAE;QAC9B,OAAO,CAAC,IAAI,CAAC;YACX,UAAU,EAAE,eAAe;YAC3B,MAAM,EAAE;gBACN,WAAW,EAAE,MAAM,CAAC,mBAAmB;gBACvC,aAAa,EAAE,MAAM,CAAC,qBAAqB,IAAI,gBAAgB;gBAC/D,cAAc,EAAE,MAAM,CAAC,sBAAsB,IAAI,EAAE;aACpD;SACF,CAAC,CAAC;KACJ;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAnCW,QAAA,cAAc,kBAmCzB"}
|
|
@@ -89,7 +89,7 @@ export const ApplicationLeadForm = JSX(({ className, title, programId = '', next
|
|
|
89
89
|
reset();
|
|
90
90
|
}
|
|
91
91
|
}, [leadForm?.current, esiaStatus]);
|
|
92
|
-
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({ 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] })] }));
|
|
92
|
+
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({ 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] })] }));
|
|
93
93
|
});
|
|
94
94
|
const getInputs = (applicationFormData) => (applicationFormData?.flatMap((_) => _?.inputs) || []);
|
|
95
95
|
const getExtendedValidatorObj = (productType) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplicationLeadForm.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/ApplicationLeadForm.tsx"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,yDAAyD,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,IAAI,EA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GAAG,EAAE,QAAQ,aACnF,UAAU,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,IAAI,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACpE,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACjC,eAEE,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,aAE7D,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,EACpB,YAAY,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,KAJnD,WAAW,CAAC,EAAE,CAKf,CACP,CAAC,EACD,kBAAkB,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC,EACtD,UAAU,KAAK,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CACnC,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,aAAa,EAAC,KAAK,EAAC,YAAY,4fAGlD,CACR,CAAC,CAAC,CAAC,IAAI,IACH,IACe,CACzB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,mBAA2C,EAAE,EAAE,CAChE,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,CAAqB,CAAC;AAE7E,MAAM,uBAAuB,GAAG,CAAC,WAAwB,EAAE,EAAE,CAAC,CAAC;IAC7D,GAAG,YAAY;IACf,eAAe,EAAE,4BAA4B,CAAC,WAAW,CAAC;CAC3D,CAAC,CAAC"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { type SubmitButtonProps } from './ApplicationLeadFormContent';
|
|
2
|
-
export declare const renderSubmitButton: (button?: SubmitButtonProps,
|
|
2
|
+
export declare const renderSubmitButton: (button?: SubmitButtonProps, options?: {
|
|
3
|
+
isSending?: boolean;
|
|
4
|
+
productType?: string;
|
|
5
|
+
}) => any;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { getAspects } from '../../retail/utils/commonAspects.js';
|
|
2
3
|
import { SubmitButton } from '../../ui-kit/Button/SubmitButton.js';
|
|
3
|
-
export const renderSubmitButton = (button,
|
|
4
|
+
export const renderSubmitButton = (button, options) => {
|
|
5
|
+
const isSending = options?.isSending;
|
|
6
|
+
const productType = options?.productType;
|
|
7
|
+
const defaultAspects = getAspects('leadForm', productType);
|
|
8
|
+
return (_jsx(SubmitButton, { className: "w-full @xl:w-auto", isLoading: isSending ?? false, testId: "LeadSubmitButton", data: defaultAspects, children: button?.text ? button.text : 'Отправить заявку' }));
|
|
9
|
+
};
|
|
4
10
|
//# sourceMappingURL=renderSubmitButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderSubmitButton.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/renderSubmitButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAGhE,MAAM,CAAC,MAAM,kBAAkB,GAAG,
|
|
1
|
+
{"version":3,"file":"renderSubmitButton.js","sourceRoot":"","sources":["../../../src/components/ApplicationLeadForm/renderSubmitButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAGhE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,MAA0B,EAC1B,OAAuD,EACvD,EAAE;IACF,MAAM,SAAS,GAAG,OAAO,EAAE,SAAS,CAAC;IACrC,MAAM,WAAW,GAAG,OAAO,EAAE,WAAW,CAAC;IACzC,MAAM,cAAc,GAAG,UAAU,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAE3D,OAAO,CACL,KAAC,YAAY,IACX,SAAS,EAAC,mBAAmB,EAC7B,SAAS,EAAE,SAAS,IAAI,KAAK,EAC7B,MAAM,EAAC,kBAAkB,EACzB,IAAI,EAAE,cAAc,YAEnB,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAkB,GACnC,CAChB,CAAC;AACJ,CAAC,CAAC"}
|