@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
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const createCaptcha: (phoneNumber: string) => Promise<
|
|
1
|
+
export declare const createCaptcha: (phoneNumber: string) => Promise<Blob>;
|
|
@@ -5,5 +5,5 @@ export interface RetailUserProfile {
|
|
|
5
5
|
interface CreateUserProfileType {
|
|
6
6
|
profile: RetailUserProfile;
|
|
7
7
|
}
|
|
8
|
-
export declare const createUserProfile: (body: CreateUserProfileType) => Promise<
|
|
8
|
+
export declare const createUserProfile: (body: CreateUserProfileType) => Promise<number | null>;
|
|
9
9
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare const fetchRetailJSON: <R>(url: string, method: 'POST' | 'GET' | 'PUT', body?: any) => Promise<R | null>;
|
|
2
|
+
export declare function doRequest(url: string, method: 'POST' | 'GET' | 'PUT', body?: any): Promise<Response>;
|
|
@@ -4,11 +4,10 @@ export declare enum STATUS_TYPE {
|
|
|
4
4
|
fail = "CANCELLED",
|
|
5
5
|
rework = "REVISION"
|
|
6
6
|
}
|
|
7
|
-
interface GetTaskStatusResponse {
|
|
7
|
+
export interface GetTaskStatusResponse {
|
|
8
8
|
statusCd: STATUS_TYPE;
|
|
9
9
|
taskId: number;
|
|
10
10
|
}
|
|
11
11
|
export declare const getTaskStatus: (body: {
|
|
12
12
|
taskId: number | null;
|
|
13
|
-
}) => Promise<GetTaskStatusResponse>;
|
|
14
|
-
export {};
|
|
13
|
+
}) => Promise<GetTaskStatusResponse | null>;
|
|
@@ -13,4 +13,4 @@ export declare type OfficeType = {
|
|
|
13
13
|
export interface RegionOfficesResponseType {
|
|
14
14
|
offices: OfficeType[];
|
|
15
15
|
}
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const fetchRegionOffices: (regionKey: string) => Promise<OfficeType[]>;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { type StatusType } from './StatusType';
|
|
2
1
|
export declare type SendCodeBody = {
|
|
3
2
|
phoneNumber: string;
|
|
4
3
|
smsCodesSetName: {
|
|
5
4
|
key: 'AUTHENTICATION' | 'SEND_TASK';
|
|
6
5
|
};
|
|
7
6
|
};
|
|
8
|
-
export declare const sendCode: (body: SendCodeBody) => Promise<
|
|
9
|
-
errorMessage: string;
|
|
10
|
-
}>;
|
|
7
|
+
export declare const sendCode: (body: SendCodeBody) => Promise<boolean>;
|
|
@@ -3,9 +3,5 @@ interface SendSignalToProcess {
|
|
|
3
3
|
signalType: SignalType;
|
|
4
4
|
taskId: number | null;
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
statusCd: string;
|
|
8
|
-
taskId: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const sendSignalToProcess: (body: SendSignalToProcess) => Promise<SendSignalToProcessResponse>;
|
|
6
|
+
export declare const sendSignalToProcess: (body: SendSignalToProcess) => Promise<Response>;
|
|
11
7
|
export {};
|
|
@@ -63,4 +63,4 @@ export declare type UpdateProfileEsiaResponse = {
|
|
|
63
63
|
apartment: string;
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
-
export declare const updateProfileEsia: (body: UpdateProfileEsiaBody) => Promise<UpdateProfileEsiaResponse>;
|
|
66
|
+
export declare const updateProfileEsia: (body: UpdateProfileEsiaBody) => Promise<UpdateProfileEsiaResponse | null>;
|
|
@@ -19,4 +19,4 @@ export declare type UpdateUserProfileBody = {
|
|
|
19
19
|
smsConsentBki?: string;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
export declare const updateUserProfile: (body: UpdateUserProfileBody) => Promise<CreateUserProfileResponse>;
|
|
22
|
+
export declare const updateUserProfile: (body: UpdateUserProfileBody) => Promise<CreateUserProfileResponse | null>;
|
|
@@ -123,5 +123,5 @@ export declare type CreateUserProfileResponse = {
|
|
|
123
123
|
id: number;
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
export declare const updateUserTask: (body: UpdateUserTaskBody) => Promise<CreateUserProfileResponse>;
|
|
126
|
+
export declare const updateUserTask: (body: UpdateUserTaskBody) => Promise<CreateUserProfileResponse | null>;
|
|
127
127
|
export {};
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -1977,6 +1977,7 @@
|
|
|
1977
1977
|
// TODO: На макетах также когда есть поле поиска нет кнопки открыть на карте.
|
|
1978
1978
|
const YandexMap = JSX(({ points, className = '', zoom = 5, isLoad }) => {
|
|
1979
1979
|
const map = useRef(null);
|
|
1980
|
+
const parentDiv = useRef(null);
|
|
1980
1981
|
const yandexMaps = useYandexMaps();
|
|
1981
1982
|
useEffect(() => {
|
|
1982
1983
|
if (map.current) {
|
|
@@ -1989,7 +1990,7 @@
|
|
|
1989
1990
|
renderClusterer({ yandexMaps, map: map.current, points, isLoad });
|
|
1990
1991
|
return;
|
|
1991
1992
|
}
|
|
1992
|
-
map.current = new yandexMaps.Map(
|
|
1993
|
+
map.current = new yandexMaps.Map(parentDiv.current, {
|
|
1993
1994
|
center: getCenterPoint(points),
|
|
1994
1995
|
zoom,
|
|
1995
1996
|
controls: [],
|
|
@@ -2003,7 +2004,7 @@
|
|
|
2003
2004
|
return null;
|
|
2004
2005
|
}
|
|
2005
2006
|
const zIndex = 'z-10';
|
|
2006
|
-
return (jsxs("div", {
|
|
2007
|
+
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))] }));
|
|
2007
2008
|
});
|
|
2008
2009
|
const getCenterPoint = (points) => {
|
|
2009
2010
|
const centerCoords = [
|
|
@@ -2015,8 +2016,18 @@
|
|
|
2015
2016
|
const mapByIndex = (points, index) => points.map((_) => _.coords?.[index]);
|
|
2016
2017
|
const getArraySumAndAverage = (arr) => arr.length && arr.reduce((a, b) => a + b) / arr.length;
|
|
2017
2018
|
|
|
2019
|
+
const fetchRetailJSON = async (url, method, body) => {
|
|
2020
|
+
try {
|
|
2021
|
+
const response = await doRequest(url, method, body);
|
|
2022
|
+
return response.json();
|
|
2023
|
+
}
|
|
2024
|
+
catch (err) {
|
|
2025
|
+
console.error(err);
|
|
2026
|
+
return null;
|
|
2027
|
+
}
|
|
2028
|
+
};
|
|
2018
2029
|
async function doRequest(url, method, body) {
|
|
2019
|
-
|
|
2030
|
+
return await fetch(`${API_BASE_URI}${url}`, {
|
|
2020
2031
|
method,
|
|
2021
2032
|
headers: {
|
|
2022
2033
|
'Content-Type': 'application/json',
|
|
@@ -2025,29 +2036,26 @@
|
|
|
2025
2036
|
credentials: 'include',
|
|
2026
2037
|
body: body ? JSON.stringify(body) : null,
|
|
2027
2038
|
});
|
|
2028
|
-
// TODO: add error handling
|
|
2029
|
-
return isJSON(response) ? response.json() : response;
|
|
2030
2039
|
}
|
|
2031
|
-
// TODO: Need delete isJSON
|
|
2032
|
-
const isJSON = (response) => response.headers.get('Content-Type') === 'application/json';
|
|
2033
2040
|
const getAuthorizationHeaders = () => {
|
|
2034
2041
|
const token = sessionStorage.getItem('accessToken');
|
|
2035
2042
|
return token ? { Authorization: `Bearer ${token}` } : null;
|
|
2036
2043
|
};
|
|
2037
2044
|
|
|
2038
|
-
const
|
|
2039
|
-
const response = await
|
|
2045
|
+
const fetchRegionOffices = async (regionKey) => {
|
|
2046
|
+
const response = await fetchRetailJSON('/public-data/regionOffices', 'POST', {
|
|
2040
2047
|
regionRfCd: {
|
|
2041
2048
|
key: regionKey,
|
|
2042
2049
|
},
|
|
2043
2050
|
cashCardFlg: true,
|
|
2044
2051
|
});
|
|
2045
|
-
return
|
|
2052
|
+
return (response?.offices?.map((office) => ({
|
|
2046
2053
|
...office,
|
|
2047
|
-
gpsLatitude: (office.latitude ?? DEFAULT_CENTER_COORDS[0])
|
|
2048
|
-
gpsLongitude: (office.longitude ?? DEFAULT_CENTER_COORDS[1])
|
|
2049
|
-
})));
|
|
2054
|
+
gpsLatitude: formatCoordinate(office.latitude ?? DEFAULT_CENTER_COORDS[0]),
|
|
2055
|
+
gpsLongitude: formatCoordinate(office.longitude ?? DEFAULT_CENTER_COORDS[1]),
|
|
2056
|
+
})) || []);
|
|
2050
2057
|
};
|
|
2058
|
+
const formatCoordinate = (coordinate) => Number(coordinate.toString().replace(',', '.'));
|
|
2051
2059
|
|
|
2052
2060
|
const Foldable = JSX(({ className = '', isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
|
|
2053
2061
|
const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
|
|
@@ -2470,9 +2478,8 @@
|
|
|
2470
2478
|
field('addressRetail');
|
|
2471
2479
|
useEffect(() => {
|
|
2472
2480
|
(async () => {
|
|
2473
|
-
const officesList = await
|
|
2474
|
-
|
|
2475
|
-
setOffices(officesList || []);
|
|
2481
|
+
const officesList = await fetchRegionOffices(regionValue?.key ?? '');
|
|
2482
|
+
setOffices(officesList);
|
|
2476
2483
|
})();
|
|
2477
2484
|
if (regionValue?.key) {
|
|
2478
2485
|
field?.('addressRetail')?.onChange?.('');
|
|
@@ -2929,7 +2936,7 @@
|
|
|
2929
2936
|
|
|
2930
2937
|
const feedbackById = async (id, convertToPng = false) => {
|
|
2931
2938
|
const response = await doRequest(`/feedback/file?id=${encodeURIComponent(id)}&convertToPngFlg=${convertToPng}`, 'GET');
|
|
2932
|
-
return await response.blob();
|
|
2939
|
+
return response ? await response.blob() : new Blob();
|
|
2933
2940
|
};
|
|
2934
2941
|
|
|
2935
2942
|
const getDocument = async (id, convertToPng = false) => {
|
|
@@ -3693,13 +3700,16 @@
|
|
|
3693
3700
|
|
|
3694
3701
|
const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
|
|
3695
3702
|
|
|
3696
|
-
const createDraftTask = (body) =>
|
|
3703
|
+
const createDraftTask = async (body) => {
|
|
3704
|
+
const res = await fetchRetailJSON('/user-data/createDraftTask', 'POST', body);
|
|
3705
|
+
return res || {};
|
|
3706
|
+
};
|
|
3697
3707
|
|
|
3698
|
-
const createUserProfile = (body) =>
|
|
3708
|
+
const createUserProfile = (body) => fetchRetailJSON('/public-data/createUserProfile', 'POST', body).then((res) => res?.profile?.id || null);
|
|
3699
3709
|
|
|
3700
|
-
const updateUserProfile = (body) =>
|
|
3710
|
+
const updateUserProfile = (body) => fetchRetailJSON('/user-data/updateUserProfile', 'PUT', body);
|
|
3701
3711
|
|
|
3702
|
-
const updateUserTask = (body) =>
|
|
3712
|
+
const updateUserTask = (body) => fetchRetailJSON('/user-data/updateUserTask', 'PUT', body);
|
|
3703
3713
|
|
|
3704
3714
|
const getUpdateUserProfileData = (profileId, formData) => {
|
|
3705
3715
|
const { name = '', surname = '', middleName = '', birthday = '', phone = '', email = '', processPersonalDataFlg, consentProviderFlg, consentPfrFlg, consentPhotoFlg, consentAssignmentClaimsFlg, consentCollectionFlg, consentInformFlg, } = formData;
|
|
@@ -3723,6 +3733,17 @@
|
|
|
3723
3733
|
};
|
|
3724
3734
|
};
|
|
3725
3735
|
|
|
3736
|
+
const sendCode = (body) => fetchRetailJSON('/sms/sendCode', 'POST', body).then((res) => !isErrorResult(res, body.phoneNumber));
|
|
3737
|
+
const isErrorResult = (res, phoneNumber) => Boolean(res) &&
|
|
3738
|
+
typeof res !== 'string' &&
|
|
3739
|
+
Boolean(res?.errorMessage.startsWith(`Too many request for phoneNumber [${phoneNumber}]`));
|
|
3740
|
+
|
|
3741
|
+
const checkCaptcha = (body) => doRequest('/sms/checkCaptcha', 'POST', body)
|
|
3742
|
+
.then((res) => res.text())
|
|
3743
|
+
.then((text) => text !== 'ERROR');
|
|
3744
|
+
|
|
3745
|
+
const createCaptcha = (phoneNumber) => doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET').then(async (res) => (res ? await res.blob() : new Blob()));
|
|
3746
|
+
|
|
3726
3747
|
const ICON_SIZE$1 = { width: '118', height: '24' };
|
|
3727
3748
|
|
|
3728
3749
|
const logoTitleSizeStyle = '';
|
|
@@ -3753,34 +3774,25 @@
|
|
|
3753
3774
|
? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title ?? 'Россельхозбанк' }) }))
|
|
3754
3775
|
: null] })));
|
|
3755
3776
|
|
|
3756
|
-
const checkCaptcha = (body) => doRequest('/sms/checkCaptcha', 'POST', body);
|
|
3757
|
-
|
|
3758
|
-
const handleCheckCaptcha = async ({ code, setHasError, close, sendCode = noop, }) => {
|
|
3759
|
-
const response = await checkCaptcha({ captchaText: code });
|
|
3760
|
-
if ((await response.text()) === 'ERROR') {
|
|
3761
|
-
setHasError(true);
|
|
3762
|
-
}
|
|
3763
|
-
else {
|
|
3764
|
-
sendCode();
|
|
3765
|
-
close?.();
|
|
3766
|
-
}
|
|
3767
|
-
};
|
|
3768
|
-
|
|
3769
|
-
const createCaptcha = (phoneNumber) => doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET');
|
|
3770
|
-
|
|
3771
|
-
const handleCreateCaptcha = async (setCaptcha, phoneNumber) => {
|
|
3772
|
-
const response = await createCaptcha(phoneNumber);
|
|
3773
|
-
setCaptcha(URL.createObjectURL(await response.blob()));
|
|
3774
|
-
};
|
|
3775
|
-
|
|
3776
3777
|
const CaptchaDialog = JSX(({ phoneNumber, close, sendCode, onClose }) => {
|
|
3777
3778
|
const [captcha, setCaptcha] = useState('');
|
|
3778
3779
|
const [code, setCode] = useState('');
|
|
3779
3780
|
const [hasError, setHasError] = useState(false);
|
|
3780
|
-
|
|
3781
|
-
|
|
3781
|
+
const handleCheckCaptcha = useCallback(async () => {
|
|
3782
|
+
const isValidCode = await checkCaptcha({ captchaText: code });
|
|
3783
|
+
if (isValidCode) {
|
|
3784
|
+
sendCode?.();
|
|
3785
|
+
close?.();
|
|
3786
|
+
}
|
|
3787
|
+
else {
|
|
3788
|
+
setHasError(isValidCode);
|
|
3789
|
+
}
|
|
3790
|
+
}, []);
|
|
3791
|
+
const handleCreateCaptcha = useCallback(() => {
|
|
3792
|
+
(async () => setCaptcha(URL.createObjectURL(await createCaptcha(phoneNumber))))();
|
|
3782
3793
|
}, []);
|
|
3783
|
-
|
|
3794
|
+
useEffect(handleCreateCaptcha, []);
|
|
3795
|
+
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" })] })] }) }));
|
|
3784
3796
|
});
|
|
3785
3797
|
|
|
3786
3798
|
const useCaptchaDialog = (initialProps, onClose) => {
|
|
@@ -3812,29 +3824,6 @@
|
|
|
3812
3824
|
return `${minutes}:${seconds}`;
|
|
3813
3825
|
};
|
|
3814
3826
|
|
|
3815
|
-
const sendCode = (body) => doRequest('/sms/sendCode', 'POST', body);
|
|
3816
|
-
|
|
3817
|
-
const handleSendCode = async ({ phoneNumber, captchaDialog, setTimeNextReq, setIsTimerStarted, setAttemps, }) => {
|
|
3818
|
-
try {
|
|
3819
|
-
await sendCode({
|
|
3820
|
-
phoneNumber: phoneNumber,
|
|
3821
|
-
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
3822
|
-
}).then((res) => {
|
|
3823
|
-
if (typeof res !== 'string' &&
|
|
3824
|
-
res.errorMessage &&
|
|
3825
|
-
res.errorMessage.startsWith(`Too many request for phoneNumber [${phoneNumber}]`)) {
|
|
3826
|
-
throw res;
|
|
3827
|
-
}
|
|
3828
|
-
});
|
|
3829
|
-
setAttemps(0);
|
|
3830
|
-
setTimeNextReq(180);
|
|
3831
|
-
setIsTimerStarted(true);
|
|
3832
|
-
}
|
|
3833
|
-
catch (e) {
|
|
3834
|
-
captchaDialog.open();
|
|
3835
|
-
}
|
|
3836
|
-
};
|
|
3837
|
-
|
|
3838
3827
|
const InputCode = JSX(({ values, setValues, hasError, errorText }) => {
|
|
3839
3828
|
const [activeIndex, setActiveIndex] = useState(0);
|
|
3840
3829
|
const inputRefs = useRef([]);
|
|
@@ -3879,10 +3868,12 @@
|
|
|
3879
3868
|
return (jsx(Button, { type: "button", onClick: onClick, disabled: isDisabled, children: jsx(Text, { font: "font-normal", children: text }) }));
|
|
3880
3869
|
});
|
|
3881
3870
|
|
|
3882
|
-
const checkCode = async (body) =>
|
|
3871
|
+
const checkCode = async (body) => fetchRetailJSON('/sms/checkCode', 'POST', body).then(saveToken);
|
|
3883
3872
|
const saveToken = (data) => {
|
|
3884
|
-
|
|
3885
|
-
|
|
3873
|
+
if (data) {
|
|
3874
|
+
globalThis.sessionStorage.setItem('accessToken', data.access_token);
|
|
3875
|
+
globalThis.sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
3876
|
+
}
|
|
3886
3877
|
};
|
|
3887
3878
|
|
|
3888
3879
|
const useVerifyPhoneDialogSubmit = ({ close, values }) => {
|
|
@@ -3942,23 +3933,28 @@
|
|
|
3942
3933
|
const VerifyPhoneDialog = JSX(({ close = noop, onClose = noop, title, description, __html, code = true, codeLength = 4, textButton = '', phoneNumber = '+79999999999', }) => {
|
|
3943
3934
|
const [values, setValues] = useState(Array(codeLength).fill(''));
|
|
3944
3935
|
const { handleSubmit, hasError, errorText, isLoading, timeNextReq, isSubmitButtonDisabled, setTimeNextReq, setIsTimerStarted, setAttemps, } = useVerifyPhoneDialogSubmit({ values, close });
|
|
3945
|
-
const
|
|
3946
|
-
|
|
3947
|
-
phoneNumber,
|
|
3948
|
-
|
|
3949
|
-
setTimeNextReq,
|
|
3950
|
-
setIsTimerStarted,
|
|
3951
|
-
setAttemps,
|
|
3936
|
+
const handleSendCode = useCallback(async () => {
|
|
3937
|
+
const isSuccessSendCode = await sendCode({
|
|
3938
|
+
phoneNumber: phoneNumber,
|
|
3939
|
+
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
3952
3940
|
});
|
|
3941
|
+
if (isSuccessSendCode) {
|
|
3942
|
+
setAttemps(0);
|
|
3943
|
+
setTimeNextReq(180);
|
|
3944
|
+
setIsTimerStarted(true);
|
|
3945
|
+
}
|
|
3946
|
+
else {
|
|
3947
|
+
captchaDialog.open();
|
|
3948
|
+
}
|
|
3953
3949
|
}, []);
|
|
3954
|
-
const captchaDialog = useCaptchaDialog({ phoneNumber, sendCode }, onClose);
|
|
3950
|
+
const captchaDialog = useCaptchaDialog({ phoneNumber, sendCode: handleSendCode }, onClose);
|
|
3955
3951
|
useEffect(() => {
|
|
3956
|
-
|
|
3952
|
+
handleSendCode();
|
|
3957
3953
|
}, []);
|
|
3958
|
-
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$1(timeNextReq, setTimeNextReq,
|
|
3954
|
+
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$1(timeNextReq, setTimeNextReq, handleSendCode), jsx(RichText, { itemSize: "list-s", __html: __html }), renderTextButton(textButton, isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
|
|
3959
3955
|
});
|
|
3960
3956
|
const renderTextButton = (textButton, isDisabled, handleSubmit) => textButton ? (jsx(SubmitButton, { isDisabled: isDisabled, onClick: handleSubmit, text: textButton })) : null;
|
|
3961
|
-
const renderText$1 = (timeNextReq, setTimeNextReq,
|
|
3957
|
+
const renderText$1 = (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" }));
|
|
3962
3958
|
|
|
3963
3959
|
const useVerifyPhoneDialog = () => {
|
|
3964
3960
|
const { open, close } = useDialogManager();
|
|
@@ -4037,7 +4033,7 @@
|
|
|
4037
4033
|
<ul><li>согласие на запрос информации в БКИ</li></ul>`,
|
|
4038
4034
|
});
|
|
4039
4035
|
|
|
4040
|
-
const getLink = (body) =>
|
|
4036
|
+
const getLink = (body) => fetchRetailJSON('/esia/getLink', 'POST', body);
|
|
4041
4037
|
|
|
4042
4038
|
const EsiaLoginDialog = JSX(function ({ handleClose }) {
|
|
4043
4039
|
const handleAuth = useCallback(async () => {
|
|
@@ -4181,7 +4177,7 @@
|
|
|
4181
4177
|
return console.warn('validation fail');
|
|
4182
4178
|
}
|
|
4183
4179
|
try {
|
|
4184
|
-
const
|
|
4180
|
+
const profileId = await createUserProfile({
|
|
4185
4181
|
profile: { phone: formatPhone(formData.phone) },
|
|
4186
4182
|
});
|
|
4187
4183
|
if (profileId && formData?.phone) {
|
|
@@ -4250,7 +4246,7 @@
|
|
|
4250
4246
|
};
|
|
4251
4247
|
};
|
|
4252
4248
|
|
|
4253
|
-
const updateProfileEsia = (body) =>
|
|
4249
|
+
const updateProfileEsia = (body) => fetchRetailJSON('/esia/updateProfileEsia', 'POST', body);
|
|
4254
4250
|
|
|
4255
4251
|
const parseEsiaProfile = (esiaProfile) => {
|
|
4256
4252
|
const { profile, addInfo, document, addressRegistration, addressFact } = esiaProfile;
|
|
@@ -4316,10 +4312,11 @@
|
|
|
4316
4312
|
state,
|
|
4317
4313
|
redirectUri: globalThis.location?.href,
|
|
4318
4314
|
});
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4315
|
+
data &&
|
|
4316
|
+
setLeadForm({
|
|
4317
|
+
...leadForm,
|
|
4318
|
+
...parseEsiaProfile(data),
|
|
4319
|
+
});
|
|
4323
4320
|
globalThis.location.href = nextStepLink;
|
|
4324
4321
|
}
|
|
4325
4322
|
}, []);
|
|
@@ -6035,12 +6032,12 @@
|
|
|
6035
6032
|
// eslint-disable-next-line camelcase
|
|
6036
6033
|
access_token: accessToken,
|
|
6037
6034
|
});
|
|
6038
|
-
if (res
|
|
6035
|
+
if (res) {
|
|
6039
6036
|
handleStatus(res.status);
|
|
6040
|
-
|
|
6037
|
+
const data = await res.json();
|
|
6038
|
+
globalThis.sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
6039
|
+
globalThis.sessionStorage.setItem('accessToken', data.access_token);
|
|
6041
6040
|
}
|
|
6042
|
-
globalThis.sessionStorage.setItem('refreshToken', res.refresh_token);
|
|
6043
|
-
globalThis.sessionStorage.setItem('accessToken', res.access_token);
|
|
6044
6041
|
};
|
|
6045
6042
|
updateTokenRequest();
|
|
6046
6043
|
const timer = setInterval(updateTokenRequest, UPDATING_INTERVAL);
|
|
@@ -6066,7 +6063,7 @@
|
|
|
6066
6063
|
STATUS_TYPE["fail"] = "CANCELLED";
|
|
6067
6064
|
STATUS_TYPE["rework"] = "REVISION";
|
|
6068
6065
|
})(STATUS_TYPE || (STATUS_TYPE = {}));
|
|
6069
|
-
const getTaskStatus = (body) =>
|
|
6066
|
+
const getTaskStatus = (body) => fetchRetailJSON('/user-data/getTaskStatus', 'POST', body);
|
|
6070
6067
|
|
|
6071
6068
|
const sendSignalToProcess = (body) => doRequest('/user-data/sendSignalToProcess', 'POST', body);
|
|
6072
6069
|
|
|
@@ -6156,12 +6153,13 @@
|
|
|
6156
6153
|
await sendSignalToProcess({ signalType, taskId });
|
|
6157
6154
|
}
|
|
6158
6155
|
})();
|
|
6159
|
-
const trackStatus = (
|
|
6160
|
-
|
|
6156
|
+
const trackStatus = useCallback(async () => {
|
|
6157
|
+
const res = await getTaskStatus({ taskId });
|
|
6158
|
+
if (res && res?.statusCd !== STATUS_TYPE.process) {
|
|
6161
6159
|
clearInterval(pullingInterval);
|
|
6162
6160
|
setStatus(res.statusCd);
|
|
6163
6161
|
}
|
|
6164
|
-
});
|
|
6162
|
+
}, []);
|
|
6165
6163
|
const pullingInterval = setInterval(trackStatus, 30000);
|
|
6166
6164
|
}, []);
|
|
6167
6165
|
return renderStatus$1(status);
|
|
@@ -7034,7 +7032,7 @@
|
|
|
7034
7032
|
})();
|
|
7035
7033
|
const trackStatus = () => taskId &&
|
|
7036
7034
|
getTaskStatus({ taskId }).then((res) => {
|
|
7037
|
-
if (res
|
|
7035
|
+
if (res?.statusCd && res.statusCd !== STATUS_TYPE.process) {
|
|
7038
7036
|
clearInterval(pullingInterval);
|
|
7039
7037
|
setStatus(res.statusCd);
|
|
7040
7038
|
}
|
|
@@ -9984,7 +9982,7 @@
|
|
|
9984
9982
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
9985
9983
|
});
|
|
9986
9984
|
|
|
9987
|
-
const packageVersion = "0.14.
|
|
9985
|
+
const packageVersion = "0.14.670";
|
|
9988
9986
|
|
|
9989
9987
|
exports.Blocks = Blocks;
|
|
9990
9988
|
exports.ContentPage = ContentPage;
|