@redneckz/wildless-cms-uni-blocks 0.14.669 → 0.14.671
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/api/RetailAPI/checkCaptcha.d.ts +1 -1
- package/bundle/api/RetailAPI/createCaptcha.d.ts +1 -1
- package/bundle/api/RetailAPI/createUserProfile.d.ts +1 -1
- package/bundle/api/RetailAPI/doRequest.d.ts +2 -1
- package/bundle/api/RetailAPI/getLink.d.ts +1 -1
- package/bundle/api/RetailAPI/getTaskStatus.d.ts +2 -3
- package/bundle/api/RetailAPI/regionOffices.d.ts +1 -1
- package/bundle/api/RetailAPI/sendCode.d.ts +1 -4
- package/bundle/api/RetailAPI/sendSignalToProcess.d.ts +1 -5
- package/bundle/api/RetailAPI/updateProfileEsia.d.ts +1 -1
- package/bundle/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/bundle/api/RetailAPI/updateUserTask.d.ts +1 -1
- package/bundle/bundle.umd.js +96 -98
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/api/RetailAPI/checkCaptcha.d.ts +1 -1
- package/dist/api/RetailAPI/checkCaptcha.js +3 -1
- package/dist/api/RetailAPI/checkCaptcha.js.map +1 -1
- package/dist/api/RetailAPI/checkCode.js +5 -3
- package/dist/api/RetailAPI/checkCode.js.map +1 -1
- package/dist/api/RetailAPI/createCaptcha.d.ts +1 -1
- package/dist/api/RetailAPI/createCaptcha.js +1 -1
- package/dist/api/RetailAPI/createCaptcha.js.map +1 -1
- package/dist/api/RetailAPI/createDraftTask.js +4 -1
- package/dist/api/RetailAPI/createDraftTask.js.map +1 -1
- package/dist/api/RetailAPI/createUserProfile.d.ts +1 -1
- package/dist/api/RetailAPI/createUserProfile.js +1 -1
- package/dist/api/RetailAPI/createUserProfile.js.map +1 -1
- package/dist/api/RetailAPI/doRequest.d.ts +2 -1
- package/dist/api/RetailAPI/doRequest.js +13 -6
- package/dist/api/RetailAPI/doRequest.js.map +1 -1
- package/dist/api/RetailAPI/feedbackById.js +1 -1
- package/dist/api/RetailAPI/feedbackById.js.map +1 -1
- package/dist/api/RetailAPI/getLink.d.ts +1 -1
- package/dist/api/RetailAPI/getLink.js +1 -1
- package/dist/api/RetailAPI/getLink.js.map +1 -1
- package/dist/api/RetailAPI/getTaskStatus.d.ts +2 -3
- package/dist/api/RetailAPI/getTaskStatus.js +1 -1
- package/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
- package/dist/api/RetailAPI/regionOffices.d.ts +1 -1
- package/dist/api/RetailAPI/regionOffices.js +9 -8
- package/dist/api/RetailAPI/regionOffices.js.map +1 -1
- package/dist/api/RetailAPI/sendCode.d.ts +1 -4
- package/dist/api/RetailAPI/sendCode.js +4 -1
- package/dist/api/RetailAPI/sendCode.js.map +1 -1
- package/dist/api/RetailAPI/sendSignalToProcess.d.ts +1 -5
- package/dist/api/RetailAPI/sendSignalToProcess.js.map +1 -1
- package/dist/api/RetailAPI/updateProfileEsia.d.ts +1 -1
- package/dist/api/RetailAPI/updateProfileEsia.js +1 -1
- package/dist/api/RetailAPI/updateProfileEsia.js.map +1 -1
- package/dist/api/RetailAPI/updateRefreshToken.js +4 -4
- package/dist/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/dist/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/dist/api/RetailAPI/updateUserProfile.js +1 -1
- package/dist/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/dist/api/RetailAPI/updateUserTask.d.ts +1 -1
- package/dist/api/RetailAPI/updateUserTask.js +1 -1
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +5 -4
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +4 -3
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +16 -5
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/AddressRetailField.js +2 -3
- package/dist/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +17 -12
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/dist/ui-kit/YandexMap/YandexMap.js +3 -2
- package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/lib/api/RetailAPI/checkCaptcha.d.ts +1 -1
- package/lib/api/RetailAPI/checkCaptcha.js +3 -1
- package/lib/api/RetailAPI/checkCaptcha.js.map +1 -1
- package/lib/api/RetailAPI/checkCode.js +6 -4
- package/lib/api/RetailAPI/checkCode.js.map +1 -1
- package/lib/api/RetailAPI/createCaptcha.d.ts +1 -1
- package/lib/api/RetailAPI/createCaptcha.js +1 -1
- package/lib/api/RetailAPI/createCaptcha.js.map +1 -1
- package/lib/api/RetailAPI/createDraftTask.js +5 -2
- package/lib/api/RetailAPI/createDraftTask.js.map +1 -1
- package/lib/api/RetailAPI/createUserProfile.d.ts +1 -1
- package/lib/api/RetailAPI/createUserProfile.js +2 -2
- package/lib/api/RetailAPI/createUserProfile.js.map +1 -1
- package/lib/api/RetailAPI/doRequest.d.ts +2 -1
- package/lib/api/RetailAPI/doRequest.js +11 -5
- package/lib/api/RetailAPI/doRequest.js.map +1 -1
- package/lib/api/RetailAPI/feedbackById.js +1 -1
- package/lib/api/RetailAPI/feedbackById.js.map +1 -1
- package/lib/api/RetailAPI/getLink.d.ts +1 -1
- package/lib/api/RetailAPI/getLink.js +2 -2
- package/lib/api/RetailAPI/getLink.js.map +1 -1
- package/lib/api/RetailAPI/getTaskStatus.d.ts +2 -3
- package/lib/api/RetailAPI/getTaskStatus.js +2 -2
- package/lib/api/RetailAPI/getTaskStatus.js.map +1 -1
- package/lib/api/RetailAPI/regionOffices.d.ts +1 -1
- package/lib/api/RetailAPI/regionOffices.js +8 -7
- package/lib/api/RetailAPI/regionOffices.js.map +1 -1
- package/lib/api/RetailAPI/sendCode.d.ts +1 -4
- package/lib/api/RetailAPI/sendCode.js +5 -2
- package/lib/api/RetailAPI/sendCode.js.map +1 -1
- package/lib/api/RetailAPI/sendSignalToProcess.d.ts +1 -5
- package/lib/api/RetailAPI/sendSignalToProcess.js.map +1 -1
- package/lib/api/RetailAPI/updateProfileEsia.d.ts +1 -1
- package/lib/api/RetailAPI/updateProfileEsia.js +2 -2
- package/lib/api/RetailAPI/updateProfileEsia.js.map +1 -1
- package/lib/api/RetailAPI/updateRefreshToken.js +4 -4
- package/lib/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/lib/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/lib/api/RetailAPI/updateUserProfile.js +2 -2
- package/lib/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/lib/api/RetailAPI/updateUserTask.d.ts +1 -1
- package/lib/api/RetailAPI/updateUserTask.js +2 -2
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +5 -4
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +5 -4
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +17 -6
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/AddressRetailField.js +3 -4
- package/lib/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +17 -12
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/ui-kit/YandexMap/YandexMap.js +3 -2
- package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/checkCaptcha.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/createCaptcha.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/createUserProfile.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/doRequest.d.ts +2 -1
- package/mobile/bundle/api/RetailAPI/getLink.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/getTaskStatus.d.ts +2 -3
- package/mobile/bundle/api/RetailAPI/regionOffices.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/sendCode.d.ts +1 -4
- package/mobile/bundle/api/RetailAPI/sendSignalToProcess.d.ts +1 -5
- package/mobile/bundle/api/RetailAPI/updateProfileEsia.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +96 -98
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/api/RetailAPI/checkCaptcha.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/checkCaptcha.js +3 -1
- package/mobile/dist/api/RetailAPI/checkCaptcha.js.map +1 -1
- package/mobile/dist/api/RetailAPI/checkCode.js +5 -3
- package/mobile/dist/api/RetailAPI/checkCode.js.map +1 -1
- package/mobile/dist/api/RetailAPI/createCaptcha.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/createCaptcha.js +1 -1
- package/mobile/dist/api/RetailAPI/createCaptcha.js.map +1 -1
- package/mobile/dist/api/RetailAPI/createDraftTask.js +4 -1
- package/mobile/dist/api/RetailAPI/createDraftTask.js.map +1 -1
- package/mobile/dist/api/RetailAPI/createUserProfile.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/createUserProfile.js +1 -1
- package/mobile/dist/api/RetailAPI/createUserProfile.js.map +1 -1
- package/mobile/dist/api/RetailAPI/doRequest.d.ts +2 -1
- package/mobile/dist/api/RetailAPI/doRequest.js +13 -6
- package/mobile/dist/api/RetailAPI/doRequest.js.map +1 -1
- package/mobile/dist/api/RetailAPI/feedbackById.js +1 -1
- package/mobile/dist/api/RetailAPI/feedbackById.js.map +1 -1
- package/mobile/dist/api/RetailAPI/getLink.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/getLink.js +1 -1
- package/mobile/dist/api/RetailAPI/getLink.js.map +1 -1
- package/mobile/dist/api/RetailAPI/getTaskStatus.d.ts +2 -3
- package/mobile/dist/api/RetailAPI/getTaskStatus.js +1 -1
- package/mobile/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
- package/mobile/dist/api/RetailAPI/regionOffices.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/regionOffices.js +9 -8
- package/mobile/dist/api/RetailAPI/regionOffices.js.map +1 -1
- package/mobile/dist/api/RetailAPI/sendCode.d.ts +1 -4
- package/mobile/dist/api/RetailAPI/sendCode.js +4 -1
- package/mobile/dist/api/RetailAPI/sendCode.js.map +1 -1
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.d.ts +1 -5
- package/mobile/dist/api/RetailAPI/sendSignalToProcess.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateProfileEsia.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/updateProfileEsia.js +1 -1
- package/mobile/dist/api/RetailAPI/updateProfileEsia.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateRefreshToken.js +4 -4
- package/mobile/dist/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/updateUserProfile.js +1 -1
- package/mobile/dist/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.js +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +5 -4
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +4 -3
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +16 -5
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/AddressRetailField.js +2 -3
- package/mobile/dist/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +17 -12
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js +3 -2
- package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/lib/api/RetailAPI/checkCaptcha.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/checkCaptcha.js +3 -1
- package/mobile/lib/api/RetailAPI/checkCaptcha.js.map +1 -1
- package/mobile/lib/api/RetailAPI/checkCode.js +6 -4
- package/mobile/lib/api/RetailAPI/checkCode.js.map +1 -1
- package/mobile/lib/api/RetailAPI/createCaptcha.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/createCaptcha.js +1 -1
- package/mobile/lib/api/RetailAPI/createCaptcha.js.map +1 -1
- package/mobile/lib/api/RetailAPI/createDraftTask.js +5 -2
- package/mobile/lib/api/RetailAPI/createDraftTask.js.map +1 -1
- package/mobile/lib/api/RetailAPI/createUserProfile.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/createUserProfile.js +2 -2
- package/mobile/lib/api/RetailAPI/createUserProfile.js.map +1 -1
- package/mobile/lib/api/RetailAPI/doRequest.d.ts +2 -1
- package/mobile/lib/api/RetailAPI/doRequest.js +11 -5
- package/mobile/lib/api/RetailAPI/doRequest.js.map +1 -1
- package/mobile/lib/api/RetailAPI/feedbackById.js +1 -1
- package/mobile/lib/api/RetailAPI/feedbackById.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getLink.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/getLink.js +2 -2
- package/mobile/lib/api/RetailAPI/getLink.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getTaskStatus.d.ts +2 -3
- package/mobile/lib/api/RetailAPI/getTaskStatus.js +2 -2
- package/mobile/lib/api/RetailAPI/getTaskStatus.js.map +1 -1
- package/mobile/lib/api/RetailAPI/regionOffices.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/regionOffices.js +8 -7
- package/mobile/lib/api/RetailAPI/regionOffices.js.map +1 -1
- package/mobile/lib/api/RetailAPI/sendCode.d.ts +1 -4
- package/mobile/lib/api/RetailAPI/sendCode.js +5 -2
- package/mobile/lib/api/RetailAPI/sendCode.js.map +1 -1
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.d.ts +1 -5
- package/mobile/lib/api/RetailAPI/sendSignalToProcess.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateProfileEsia.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/updateProfileEsia.js +2 -2
- package/mobile/lib/api/RetailAPI/updateProfileEsia.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateRefreshToken.js +4 -4
- package/mobile/lib/api/RetailAPI/updateRefreshToken.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserProfile.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/updateUserProfile.js +2 -2
- package/mobile/lib/api/RetailAPI/updateUserProfile.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +1 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.js +2 -2
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +5 -4
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +5 -4
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +17 -6
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/AddressRetailField.js +3 -4
- package/mobile/lib/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +17 -12
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js +3 -2
- package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
- package/mobile/src/api/RetailAPI/checkCaptcha.ts +3 -1
- package/mobile/src/api/RetailAPI/checkCode.ts +7 -5
- package/mobile/src/api/RetailAPI/createCaptcha.ts +3 -1
- package/mobile/src/api/RetailAPI/createDraftTask.ts +12 -3
- package/mobile/src/api/RetailAPI/createUserProfile.ts +4 -2
- package/mobile/src/api/RetailAPI/doRequest.ts +19 -9
- package/mobile/src/api/RetailAPI/feedbackById.ts +2 -2
- package/mobile/src/api/RetailAPI/getLink.ts +2 -2
- package/mobile/src/api/RetailAPI/getTaskStatus.ts +3 -3
- package/mobile/src/api/RetailAPI/regionOffices.ts +18 -12
- package/mobile/src/api/RetailAPI/sendCode.ts +14 -2
- package/mobile/src/api/RetailAPI/sendSignalToProcess.ts +1 -6
- package/mobile/src/api/RetailAPI/updateProfileEsia.ts +2 -2
- package/mobile/src/api/RetailAPI/updateRefreshToken.ts +6 -6
- package/mobile/src/api/RetailAPI/updateUserProfile.ts +2 -2
- package/mobile/src/api/RetailAPI/updateUserTask.ts +2 -2
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +3 -3
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +5 -4
- package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +9 -8
- package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
- package/mobile/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +20 -12
- package/mobile/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +1 -0
- package/mobile/src/ui-kit/FormField/Fields/AddressRetailField.tsx +3 -4
- package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +18 -13
- package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +4 -2
- package/package.json +1 -1
- package/src/api/RetailAPI/checkCaptcha.ts +3 -1
- package/src/api/RetailAPI/checkCode.ts +7 -5
- package/src/api/RetailAPI/createCaptcha.ts +3 -1
- package/src/api/RetailAPI/createDraftTask.ts +12 -3
- package/src/api/RetailAPI/createUserProfile.ts +4 -2
- package/src/api/RetailAPI/doRequest.ts +19 -9
- package/src/api/RetailAPI/feedbackById.ts +2 -2
- package/src/api/RetailAPI/getLink.ts +2 -2
- package/src/api/RetailAPI/getTaskStatus.ts +3 -3
- package/src/api/RetailAPI/regionOffices.ts +18 -12
- package/src/api/RetailAPI/sendCode.ts +14 -2
- package/src/api/RetailAPI/sendSignalToProcess.ts +1 -6
- package/src/api/RetailAPI/updateProfileEsia.ts +2 -2
- package/src/api/RetailAPI/updateRefreshToken.ts +6 -6
- package/src/api/RetailAPI/updateUserProfile.ts +2 -2
- package/src/api/RetailAPI/updateUserTask.ts +2 -2
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +3 -3
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +5 -4
- package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +9 -8
- package/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -1
- package/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +20 -12
- package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +1 -0
- package/src/ui-kit/FormField/Fields/AddressRetailField.tsx +3 -4
- package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +18 -13
- package/src/ui-kit/YandexMap/YandexMap.tsx +4 -2
- package/bundle/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +0 -8
- package/bundle/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +0 -1
- package/bundle/ui-kit/VerifyPhoneDialog/handleSendCode.d.ts +0 -15
- package/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +0 -8
- package/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js +0 -16
- package/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +0 -1
- package/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +0 -1
- package/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js +0 -9
- package/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +0 -1
- package/dist/ui-kit/VerifyPhoneDialog/handleSendCode.d.ts +0 -15
- package/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js +0 -25
- package/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +0 -1
- package/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +0 -8
- package/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js +0 -13
- package/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +0 -1
- package/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +0 -1
- package/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js +0 -6
- package/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +0 -1
- package/lib/ui-kit/VerifyPhoneDialog/handleSendCode.d.ts +0 -15
- package/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js +0 -22
- package/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +0 -1
- package/mobile/bundle/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +0 -8
- package/mobile/bundle/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +0 -1
- package/mobile/bundle/ui-kit/VerifyPhoneDialog/handleSendCode.d.ts +0 -15
- package/mobile/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +0 -8
- package/mobile/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js +0 -16
- package/mobile/dist/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +0 -1
- package/mobile/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +0 -1
- package/mobile/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js +0 -9
- package/mobile/dist/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +0 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/handleSendCode.d.ts +0 -15
- package/mobile/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js +0 -25
- package/mobile/dist/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +0 -1
- package/mobile/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.d.ts +0 -8
- package/mobile/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js +0 -13
- package/mobile/lib/ui-kit/CaptchaDialog/handleCheckCaptcha.js.map +0 -1
- package/mobile/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.d.ts +0 -1
- package/mobile/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js +0 -6
- package/mobile/lib/ui-kit/CaptchaDialog/handleCreateCaptcha.js.map +0 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/handleSendCode.d.ts +0 -15
- package/mobile/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js +0 -22
- package/mobile/lib/ui-kit/VerifyPhoneDialog/handleSendCode.js.map +0 -1
- package/mobile/src/ui-kit/CaptchaDialog/handleCheckCaptcha.ts +0 -25
- package/mobile/src/ui-kit/CaptchaDialog/handleCreateCaptcha.ts +0 -9
- package/mobile/src/ui-kit/VerifyPhoneDialog/handleSendCode.ts +0 -43
- package/src/ui-kit/CaptchaDialog/handleCheckCaptcha.ts +0 -25
- package/src/ui-kit/CaptchaDialog/handleCreateCaptcha.ts +0 -9
- package/src/ui-kit/VerifyPhoneDialog/handleSendCode.ts +0 -43
|
@@ -1985,6 +1985,7 @@
|
|
|
1985
1985
|
// TODO: На макетах также когда есть поле поиска нет кнопки открыть на карте.
|
|
1986
1986
|
const YandexMap = JSX(({ points, className = '', zoom = 5, isLoad }) => {
|
|
1987
1987
|
const map = useRef(null);
|
|
1988
|
+
const parentDiv = useRef(null);
|
|
1988
1989
|
const yandexMaps = useYandexMaps();
|
|
1989
1990
|
useEffect(() => {
|
|
1990
1991
|
if (map.current) {
|
|
@@ -1997,7 +1998,7 @@
|
|
|
1997
1998
|
renderClusterer({ yandexMaps, map: map.current, points, isLoad });
|
|
1998
1999
|
return;
|
|
1999
2000
|
}
|
|
2000
|
-
map.current = new yandexMaps.Map(
|
|
2001
|
+
map.current = new yandexMaps.Map(parentDiv.current, {
|
|
2001
2002
|
center: getCenterPoint(points),
|
|
2002
2003
|
zoom,
|
|
2003
2004
|
controls: [],
|
|
@@ -2011,7 +2012,7 @@
|
|
|
2011
2012
|
return null;
|
|
2012
2013
|
}
|
|
2013
2014
|
const zIndex = 'z-10';
|
|
2014
|
-
return (jsxs("div", {
|
|
2015
|
+
return (jsxs("div", { ref: parentDiv, className: style('relative', 'w-full', className), children: [isLoad ? jsx(Loader, {}) : null, jsxs("div", { className: style('absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md', zIndex), children: [jsx(ZoomButton, { yandexMaps: map }), jsx(ZoomButton, { yandexMaps: map, direction: "out" })] }), renderUserGeolocation(map, yandexMaps, style('right-2 top-80', zIndex))] }));
|
|
2015
2016
|
});
|
|
2016
2017
|
const getCenterPoint = (points) => {
|
|
2017
2018
|
const centerCoords = [
|
|
@@ -2023,8 +2024,18 @@
|
|
|
2023
2024
|
const mapByIndex = (points, index) => points.map((_) => _.coords?.[index]);
|
|
2024
2025
|
const getArraySumAndAverage = (arr) => arr.length && arr.reduce((a, b) => a + b) / arr.length;
|
|
2025
2026
|
|
|
2027
|
+
const fetchRetailJSON = async (url, method, body) => {
|
|
2028
|
+
try {
|
|
2029
|
+
const response = await doRequest(url, method, body);
|
|
2030
|
+
return response.json();
|
|
2031
|
+
}
|
|
2032
|
+
catch (err) {
|
|
2033
|
+
console.error(err);
|
|
2034
|
+
return null;
|
|
2035
|
+
}
|
|
2036
|
+
};
|
|
2026
2037
|
async function doRequest(url, method, body) {
|
|
2027
|
-
|
|
2038
|
+
return await fetch(`${API_BASE_URI}${url}`, {
|
|
2028
2039
|
method,
|
|
2029
2040
|
headers: {
|
|
2030
2041
|
'Content-Type': 'application/json',
|
|
@@ -2033,29 +2044,26 @@
|
|
|
2033
2044
|
credentials: 'include',
|
|
2034
2045
|
body: body ? JSON.stringify(body) : null,
|
|
2035
2046
|
});
|
|
2036
|
-
// TODO: add error handling
|
|
2037
|
-
return isJSON(response) ? response.json() : response;
|
|
2038
2047
|
}
|
|
2039
|
-
// TODO: Need delete isJSON
|
|
2040
|
-
const isJSON = (response) => response.headers.get('Content-Type') === 'application/json';
|
|
2041
2048
|
const getAuthorizationHeaders = () => {
|
|
2042
2049
|
const token = sessionStorage.getItem('accessToken');
|
|
2043
2050
|
return token ? { Authorization: `Bearer ${token}` } : null;
|
|
2044
2051
|
};
|
|
2045
2052
|
|
|
2046
|
-
const
|
|
2047
|
-
const response = await
|
|
2053
|
+
const fetchRegionOffices = async (regionKey) => {
|
|
2054
|
+
const response = await fetchRetailJSON('/public-data/regionOffices', 'POST', {
|
|
2048
2055
|
regionRfCd: {
|
|
2049
2056
|
key: regionKey,
|
|
2050
2057
|
},
|
|
2051
2058
|
cashCardFlg: true,
|
|
2052
2059
|
});
|
|
2053
|
-
return
|
|
2060
|
+
return (response?.offices?.map((office) => ({
|
|
2054
2061
|
...office,
|
|
2055
|
-
gpsLatitude: (office.latitude ?? DEFAULT_CENTER_COORDS[0])
|
|
2056
|
-
gpsLongitude: (office.longitude ?? DEFAULT_CENTER_COORDS[1])
|
|
2057
|
-
})));
|
|
2062
|
+
gpsLatitude: formatCoordinate(office.latitude ?? DEFAULT_CENTER_COORDS[0]),
|
|
2063
|
+
gpsLongitude: formatCoordinate(office.longitude ?? DEFAULT_CENTER_COORDS[1]),
|
|
2064
|
+
})) || []);
|
|
2058
2065
|
};
|
|
2066
|
+
const formatCoordinate = (coordinate) => Number(coordinate.toString().replace(',', '.'));
|
|
2059
2067
|
|
|
2060
2068
|
const Foldable = JSX(({ className = '', isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
|
|
2061
2069
|
const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
|
|
@@ -2478,9 +2486,8 @@
|
|
|
2478
2486
|
field('addressRetail');
|
|
2479
2487
|
useEffect(() => {
|
|
2480
2488
|
(async () => {
|
|
2481
|
-
const officesList = await
|
|
2482
|
-
|
|
2483
|
-
setOffices(officesList || []);
|
|
2489
|
+
const officesList = await fetchRegionOffices(regionValue?.key ?? '');
|
|
2490
|
+
setOffices(officesList);
|
|
2484
2491
|
})();
|
|
2485
2492
|
if (regionValue?.key) {
|
|
2486
2493
|
field?.('addressRetail')?.onChange?.('');
|
|
@@ -2937,7 +2944,7 @@
|
|
|
2937
2944
|
|
|
2938
2945
|
const feedbackById = async (id, convertToPng = false) => {
|
|
2939
2946
|
const response = await doRequest(`/feedback/file?id=${encodeURIComponent(id)}&convertToPngFlg=${convertToPng}`, 'GET');
|
|
2940
|
-
return await response.blob();
|
|
2947
|
+
return response ? await response.blob() : new Blob();
|
|
2941
2948
|
};
|
|
2942
2949
|
|
|
2943
2950
|
const getDocument = async (id, convertToPng = false) => {
|
|
@@ -3701,13 +3708,16 @@
|
|
|
3701
3708
|
|
|
3702
3709
|
const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
|
|
3703
3710
|
|
|
3704
|
-
const createDraftTask = (body) =>
|
|
3711
|
+
const createDraftTask = async (body) => {
|
|
3712
|
+
const res = await fetchRetailJSON('/user-data/createDraftTask', 'POST', body);
|
|
3713
|
+
return res || {};
|
|
3714
|
+
};
|
|
3705
3715
|
|
|
3706
|
-
const createUserProfile = (body) =>
|
|
3716
|
+
const createUserProfile = (body) => fetchRetailJSON('/public-data/createUserProfile', 'POST', body).then((res) => res?.profile?.id || null);
|
|
3707
3717
|
|
|
3708
|
-
const updateUserProfile = (body) =>
|
|
3718
|
+
const updateUserProfile = (body) => fetchRetailJSON('/user-data/updateUserProfile', 'PUT', body);
|
|
3709
3719
|
|
|
3710
|
-
const updateUserTask = (body) =>
|
|
3720
|
+
const updateUserTask = (body) => fetchRetailJSON('/user-data/updateUserTask', 'PUT', body);
|
|
3711
3721
|
|
|
3712
3722
|
const getUpdateUserProfileData = (profileId, formData) => {
|
|
3713
3723
|
const { name = '', surname = '', middleName = '', birthday = '', phone = '', email = '', processPersonalDataFlg, consentProviderFlg, consentPfrFlg, consentPhotoFlg, consentAssignmentClaimsFlg, consentCollectionFlg, consentInformFlg, } = formData;
|
|
@@ -3731,6 +3741,17 @@
|
|
|
3731
3741
|
};
|
|
3732
3742
|
};
|
|
3733
3743
|
|
|
3744
|
+
const sendCode = (body) => fetchRetailJSON('/sms/sendCode', 'POST', body).then((res) => !isErrorResult(res, body.phoneNumber));
|
|
3745
|
+
const isErrorResult = (res, phoneNumber) => Boolean(res) &&
|
|
3746
|
+
typeof res !== 'string' &&
|
|
3747
|
+
Boolean(res?.errorMessage.startsWith(`Too many request for phoneNumber [${phoneNumber}]`));
|
|
3748
|
+
|
|
3749
|
+
const checkCaptcha = (body) => doRequest('/sms/checkCaptcha', 'POST', body)
|
|
3750
|
+
.then((res) => res.text())
|
|
3751
|
+
.then((text) => text !== 'ERROR');
|
|
3752
|
+
|
|
3753
|
+
const createCaptcha = (phoneNumber) => doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET').then(async (res) => (res ? await res.blob() : new Blob()));
|
|
3754
|
+
|
|
3734
3755
|
const ICON_SIZE$1 = { width: '103', height: '21' };
|
|
3735
3756
|
|
|
3736
3757
|
const logoTitleSizeStyle = 'text-s';
|
|
@@ -3761,34 +3782,25 @@
|
|
|
3761
3782
|
? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title ?? 'Россельхозбанк' }) }))
|
|
3762
3783
|
: null] })));
|
|
3763
3784
|
|
|
3764
|
-
const checkCaptcha = (body) => doRequest('/sms/checkCaptcha', 'POST', body);
|
|
3765
|
-
|
|
3766
|
-
const handleCheckCaptcha = async ({ code, setHasError, close, sendCode = noop, }) => {
|
|
3767
|
-
const response = await checkCaptcha({ captchaText: code });
|
|
3768
|
-
if ((await response.text()) === 'ERROR') {
|
|
3769
|
-
setHasError(true);
|
|
3770
|
-
}
|
|
3771
|
-
else {
|
|
3772
|
-
sendCode();
|
|
3773
|
-
close?.();
|
|
3774
|
-
}
|
|
3775
|
-
};
|
|
3776
|
-
|
|
3777
|
-
const createCaptcha = (phoneNumber) => doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET');
|
|
3778
|
-
|
|
3779
|
-
const handleCreateCaptcha = async (setCaptcha, phoneNumber) => {
|
|
3780
|
-
const response = await createCaptcha(phoneNumber);
|
|
3781
|
-
setCaptcha(URL.createObjectURL(await response.blob()));
|
|
3782
|
-
};
|
|
3783
|
-
|
|
3784
3785
|
const CaptchaDialog = JSX(({ phoneNumber, close, sendCode, onClose }) => {
|
|
3785
3786
|
const [captcha, setCaptcha] = useState('');
|
|
3786
3787
|
const [code, setCode] = useState('');
|
|
3787
3788
|
const [hasError, setHasError] = useState(false);
|
|
3788
|
-
|
|
3789
|
-
|
|
3789
|
+
const handleCheckCaptcha = useCallback(async () => {
|
|
3790
|
+
const isValidCode = await checkCaptcha({ captchaText: code });
|
|
3791
|
+
if (isValidCode) {
|
|
3792
|
+
sendCode?.();
|
|
3793
|
+
close?.();
|
|
3794
|
+
}
|
|
3795
|
+
else {
|
|
3796
|
+
setHasError(isValidCode);
|
|
3797
|
+
}
|
|
3798
|
+
}, []);
|
|
3799
|
+
const handleCreateCaptcha = useCallback(() => {
|
|
3800
|
+
(async () => setCaptcha(URL.createObjectURL(await createCaptcha(phoneNumber))))();
|
|
3790
3801
|
}, []);
|
|
3791
|
-
|
|
3802
|
+
useEffect(handleCreateCaptcha, []);
|
|
3803
|
+
return (jsx(Dialog, { head: jsx(Logo, {}), onClose: onClose, className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex h-36 w-72", children: [jsx("img", { className: "grow", src: captcha }), jsx("div", { onClick: handleCreateCaptcha, className: "flex w-8 items-center justify-center cursor-pointer", children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-[300px]", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-[310px] justify-between", children: [jsx(Button, { onClick: close, version: "secondary", children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(Button, { type: "submit", disabled: !code, onClick: handleCheckCaptcha, version: "secondary", children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] })] }) }));
|
|
3792
3804
|
});
|
|
3793
3805
|
|
|
3794
3806
|
const useCaptchaDialog = (initialProps, onClose) => {
|
|
@@ -3820,29 +3832,6 @@
|
|
|
3820
3832
|
return `${minutes}:${seconds}`;
|
|
3821
3833
|
};
|
|
3822
3834
|
|
|
3823
|
-
const sendCode = (body) => doRequest('/sms/sendCode', 'POST', body);
|
|
3824
|
-
|
|
3825
|
-
const handleSendCode = async ({ phoneNumber, captchaDialog, setTimeNextReq, setIsTimerStarted, setAttemps, }) => {
|
|
3826
|
-
try {
|
|
3827
|
-
await sendCode({
|
|
3828
|
-
phoneNumber: phoneNumber,
|
|
3829
|
-
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
3830
|
-
}).then((res) => {
|
|
3831
|
-
if (typeof res !== 'string' &&
|
|
3832
|
-
res.errorMessage &&
|
|
3833
|
-
res.errorMessage.startsWith(`Too many request for phoneNumber [${phoneNumber}]`)) {
|
|
3834
|
-
throw res;
|
|
3835
|
-
}
|
|
3836
|
-
});
|
|
3837
|
-
setAttemps(0);
|
|
3838
|
-
setTimeNextReq(180);
|
|
3839
|
-
setIsTimerStarted(true);
|
|
3840
|
-
}
|
|
3841
|
-
catch (e) {
|
|
3842
|
-
captchaDialog.open();
|
|
3843
|
-
}
|
|
3844
|
-
};
|
|
3845
|
-
|
|
3846
3835
|
const InputCode = JSX(({ values, setValues, hasError, errorText }) => {
|
|
3847
3836
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
3848
3837
|
const inputRefs = useRef([]);
|
|
@@ -3887,10 +3876,12 @@
|
|
|
3887
3876
|
return (jsx(Button, { type: "button", onClick: onClick, disabled: isDisabled, children: jsx(Text, { font: "font-normal", children: text }) }));
|
|
3888
3877
|
});
|
|
3889
3878
|
|
|
3890
|
-
const checkCode = async (body) =>
|
|
3879
|
+
const checkCode = async (body) => fetchRetailJSON('/sms/checkCode', 'POST', body).then(saveToken);
|
|
3891
3880
|
const saveToken = (data) => {
|
|
3892
|
-
|
|
3893
|
-
|
|
3881
|
+
if (data) {
|
|
3882
|
+
globalThis.sessionStorage.setItem('accessToken', data.access_token);
|
|
3883
|
+
globalThis.sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
3884
|
+
}
|
|
3894
3885
|
};
|
|
3895
3886
|
|
|
3896
3887
|
const useVerifyPhoneDialogSubmit = ({ close, values }) => {
|
|
@@ -3950,23 +3941,28 @@
|
|
|
3950
3941
|
const VerifyPhoneDialog = JSX(({ close = noop, onClose = noop, title, description, __html, code = true, codeLength = 4, textButton = '', phoneNumber = '+79999999999', }) => {
|
|
3951
3942
|
const [values, setValues] = useState(Array(codeLength).fill(''));
|
|
3952
3943
|
const { handleSubmit, hasError, errorText, isLoading, timeNextReq, isSubmitButtonDisabled, setTimeNextReq, setIsTimerStarted, setAttemps, } = useVerifyPhoneDialogSubmit({ values, close });
|
|
3953
|
-
const
|
|
3954
|
-
|
|
3955
|
-
phoneNumber,
|
|
3956
|
-
|
|
3957
|
-
setTimeNextReq,
|
|
3958
|
-
setIsTimerStarted,
|
|
3959
|
-
setAttemps,
|
|
3944
|
+
const handleSendCode = useCallback(async () => {
|
|
3945
|
+
const isSuccessSendCode = await sendCode({
|
|
3946
|
+
phoneNumber: phoneNumber,
|
|
3947
|
+
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
3960
3948
|
});
|
|
3949
|
+
if (isSuccessSendCode) {
|
|
3950
|
+
setAttemps(0);
|
|
3951
|
+
setTimeNextReq(180);
|
|
3952
|
+
setIsTimerStarted(true);
|
|
3953
|
+
}
|
|
3954
|
+
else {
|
|
3955
|
+
captchaDialog.open();
|
|
3956
|
+
}
|
|
3961
3957
|
}, []);
|
|
3962
|
-
const captchaDialog = useCaptchaDialog({ phoneNumber, sendCode }, onClose);
|
|
3958
|
+
const captchaDialog = useCaptchaDialog({ phoneNumber, sendCode: handleSendCode }, onClose);
|
|
3963
3959
|
useEffect(() => {
|
|
3964
|
-
|
|
3960
|
+
handleSendCode();
|
|
3965
3961
|
}, []);
|
|
3966
|
-
return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl px-5xl py-0", children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: title, description: description, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$2(timeNextReq, setTimeNextReq,
|
|
3962
|
+
return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl px-5xl py-0", children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: title, description: description, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$2(timeNextReq, setTimeNextReq, handleSendCode), jsx(RichText, { itemSize: "list-s", __html: __html }), renderTextButton(textButton, isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
|
|
3967
3963
|
});
|
|
3968
3964
|
const renderTextButton = (textButton, isDisabled, handleSubmit) => textButton ? (jsx(SubmitButton, { isDisabled: isDisabled, onClick: handleSubmit, text: textButton })) : null;
|
|
3969
|
-
const renderText$2 = (timeNextReq, setTimeNextReq,
|
|
3965
|
+
const renderText$2 = (timeNextReq, setTimeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "text-base ml-1", time: timeNextReq, setTime: setTimeNextReq })] })) : (jsx(LinkButton, { onClick: handleSendCode, className: "text-primary-main", children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }));
|
|
3970
3966
|
|
|
3971
3967
|
const useVerifyPhoneDialog = () => {
|
|
3972
3968
|
const { open, close } = useDialogManager();
|
|
@@ -4045,7 +4041,7 @@
|
|
|
4045
4041
|
<ul><li>согласие на запрос информации в БКИ</li></ul>`,
|
|
4046
4042
|
});
|
|
4047
4043
|
|
|
4048
|
-
const getLink = (body) =>
|
|
4044
|
+
const getLink = (body) => fetchRetailJSON('/esia/getLink', 'POST', body);
|
|
4049
4045
|
|
|
4050
4046
|
const EsiaLoginDialog = JSX(function ({ handleClose }) {
|
|
4051
4047
|
const handleAuth = useCallback(async () => {
|
|
@@ -4189,7 +4185,7 @@
|
|
|
4189
4185
|
return console.warn('validation fail');
|
|
4190
4186
|
}
|
|
4191
4187
|
try {
|
|
4192
|
-
const
|
|
4188
|
+
const profileId = await createUserProfile({
|
|
4193
4189
|
profile: { phone: formatPhone(formData.phone) },
|
|
4194
4190
|
});
|
|
4195
4191
|
if (profileId && formData?.phone) {
|
|
@@ -4258,7 +4254,7 @@
|
|
|
4258
4254
|
};
|
|
4259
4255
|
};
|
|
4260
4256
|
|
|
4261
|
-
const updateProfileEsia = (body) =>
|
|
4257
|
+
const updateProfileEsia = (body) => fetchRetailJSON('/esia/updateProfileEsia', 'POST', body);
|
|
4262
4258
|
|
|
4263
4259
|
const parseEsiaProfile = (esiaProfile) => {
|
|
4264
4260
|
const { profile, addInfo, document, addressRegistration, addressFact } = esiaProfile;
|
|
@@ -4324,10 +4320,11 @@
|
|
|
4324
4320
|
state,
|
|
4325
4321
|
redirectUri: globalThis.location?.href,
|
|
4326
4322
|
});
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4323
|
+
data &&
|
|
4324
|
+
setLeadForm({
|
|
4325
|
+
...leadForm,
|
|
4326
|
+
...parseEsiaProfile(data),
|
|
4327
|
+
});
|
|
4331
4328
|
globalThis.location.href = nextStepLink;
|
|
4332
4329
|
}
|
|
4333
4330
|
}, []);
|
|
@@ -5999,12 +5996,12 @@
|
|
|
5999
5996
|
// eslint-disable-next-line camelcase
|
|
6000
5997
|
access_token: accessToken,
|
|
6001
5998
|
});
|
|
6002
|
-
if (res
|
|
5999
|
+
if (res) {
|
|
6003
6000
|
handleStatus(res.status);
|
|
6004
|
-
|
|
6001
|
+
const data = await res.json();
|
|
6002
|
+
globalThis.sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
6003
|
+
globalThis.sessionStorage.setItem('accessToken', data.access_token);
|
|
6005
6004
|
}
|
|
6006
|
-
globalThis.sessionStorage.setItem('refreshToken', res.refresh_token);
|
|
6007
|
-
globalThis.sessionStorage.setItem('accessToken', res.access_token);
|
|
6008
6005
|
};
|
|
6009
6006
|
updateTokenRequest();
|
|
6010
6007
|
const timer = setInterval(updateTokenRequest, UPDATING_INTERVAL);
|
|
@@ -6030,7 +6027,7 @@
|
|
|
6030
6027
|
STATUS_TYPE["fail"] = "CANCELLED";
|
|
6031
6028
|
STATUS_TYPE["rework"] = "REVISION";
|
|
6032
6029
|
})(STATUS_TYPE || (STATUS_TYPE = {}));
|
|
6033
|
-
const getTaskStatus = (body) =>
|
|
6030
|
+
const getTaskStatus = (body) => fetchRetailJSON('/user-data/getTaskStatus', 'POST', body);
|
|
6034
6031
|
|
|
6035
6032
|
const sendSignalToProcess = (body) => doRequest('/user-data/sendSignalToProcess', 'POST', body);
|
|
6036
6033
|
|
|
@@ -6136,12 +6133,13 @@
|
|
|
6136
6133
|
await sendSignalToProcess({ signalType, taskId });
|
|
6137
6134
|
}
|
|
6138
6135
|
})();
|
|
6139
|
-
const trackStatus = (
|
|
6140
|
-
|
|
6136
|
+
const trackStatus = useCallback(async () => {
|
|
6137
|
+
const res = await getTaskStatus({ taskId });
|
|
6138
|
+
if (res && res?.statusCd !== STATUS_TYPE.process) {
|
|
6141
6139
|
clearInterval(pullingInterval);
|
|
6142
6140
|
setStatus(res.statusCd);
|
|
6143
6141
|
}
|
|
6144
|
-
});
|
|
6142
|
+
}, []);
|
|
6145
6143
|
const pullingInterval = setInterval(trackStatus, 30000);
|
|
6146
6144
|
}, []);
|
|
6147
6145
|
return renderStatus$1(status);
|
|
@@ -7014,7 +7012,7 @@
|
|
|
7014
7012
|
})();
|
|
7015
7013
|
const trackStatus = () => taskId &&
|
|
7016
7014
|
getTaskStatus({ taskId }).then((res) => {
|
|
7017
|
-
if (res
|
|
7015
|
+
if (res?.statusCd && res.statusCd !== STATUS_TYPE.process) {
|
|
7018
7016
|
clearInterval(pullingInterval);
|
|
7019
7017
|
setStatus(res.statusCd);
|
|
7020
7018
|
}
|
|
@@ -9598,7 +9596,7 @@
|
|
|
9598
9596
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
9599
9597
|
});
|
|
9600
9598
|
|
|
9601
|
-
const packageVersion = "0.14.
|
|
9599
|
+
const packageVersion = "0.14.670";
|
|
9602
9600
|
|
|
9603
9601
|
exports.Blocks = Blocks;
|
|
9604
9602
|
exports.ContentPage = ContentPage;
|