@redneckz/wildless-cms-uni-blocks 0.14.950 → 0.14.952
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/apiBaseUrl.d.ts +0 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +318 -121
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
- package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
- package/bundle/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
- package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
- package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
- package/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
- package/bundle/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
- package/bundle/retail/api/apiBaseUrl.d.ts +2 -1
- package/bundle/retail/api/checkCaptcha.d.ts +1 -0
- package/bundle/retail/api/checkCode.d.ts +1 -0
- package/bundle/retail/api/createDraftTask.d.ts +2 -1
- package/bundle/retail/api/createParticipant.d.ts +6 -0
- package/bundle/retail/api/sendMessage.d.ts +7 -0
- package/bundle/retail/api/updateUserTask.d.ts +14 -8
- package/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
- package/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
- package/bundle/retail/hooks/useRetailFormStore.d.ts +1 -1
- package/bundle/retail/model/LeadFormState.d.ts +2 -4
- package/bundle/retail/utils/checkNewMicroservice.d.ts +1 -0
- package/bundle/ui-kit/SearchBar/SearchBar.d.ts +1 -2
- package/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
- package/dist/api/apiBaseUrl.d.ts +0 -1
- package/dist/api/apiBaseUrl.js +1 -2
- package/dist/api/apiBaseUrl.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +35 -24
- package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
- package/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
- package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
- package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.js +16 -2
- package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.js +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/renderLogoSearchBar.js +2 -2
- package/dist/components/Footer/renderLogoSearchBar.js.map +1 -1
- package/dist/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
- package/dist/retail/adaptors/getCreditFormTaskData.js +36 -25
- package/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/dist/retail/adaptors/utils.js +1 -1
- package/dist/retail/adaptors/utils.js.map +1 -1
- package/dist/retail/api/apiBaseUrl.d.ts +2 -1
- package/dist/retail/api/apiBaseUrl.js +3 -2
- package/dist/retail/api/apiBaseUrl.js.map +1 -1
- package/dist/retail/api/checkCaptcha.d.ts +1 -0
- package/dist/retail/api/checkCaptcha.js +10 -3
- package/dist/retail/api/checkCaptcha.js.map +1 -1
- package/dist/retail/api/checkCode.d.ts +1 -0
- package/dist/retail/api/checkCode.js +9 -1
- package/dist/retail/api/checkCode.js.map +1 -1
- package/dist/retail/api/createCaptcha.js +5 -1
- package/dist/retail/api/createCaptcha.js.map +1 -1
- package/dist/retail/api/createDraftTask.d.ts +2 -1
- package/dist/retail/api/createDraftTask.js.map +1 -1
- package/dist/retail/api/createParticipant.d.ts +6 -0
- package/dist/retail/api/createParticipant.js +6 -0
- package/dist/retail/api/createParticipant.js.map +1 -0
- package/dist/retail/api/doRequest.js +4 -2
- package/dist/retail/api/doRequest.js.map +1 -1
- package/dist/retail/api/esiaRequestProfile.js +11 -7
- package/dist/retail/api/esiaRequestProfile.js.map +1 -1
- package/dist/retail/api/getDictionaries.js +3 -1
- package/dist/retail/api/getDictionaries.js.map +1 -1
- package/dist/retail/api/getLink.js +5 -1
- package/dist/retail/api/getLink.js.map +1 -1
- package/dist/retail/api/sendCode.js +8 -1
- package/dist/retail/api/sendCode.js.map +1 -1
- package/dist/retail/api/sendMessage.d.ts +7 -0
- package/dist/retail/api/sendMessage.js +8 -0
- package/dist/retail/api/sendMessage.js.map +1 -0
- package/dist/retail/api/updateUserTask.d.ts +14 -8
- package/dist/retail/api/updateUserTask.js.map +1 -1
- package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
- package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
- package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
- package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/dist/retail/hooks/useLeadFormData.js +3 -1
- package/dist/retail/hooks/useLeadFormData.js.map +1 -1
- package/dist/retail/hooks/useRetailFormStore.d.ts +1 -1
- package/dist/retail/model/LeadFormState.d.ts +2 -4
- package/dist/retail/utils/checkNewMicroservice.d.ts +1 -0
- package/dist/retail/utils/checkNewMicroservice.js +8 -0
- package/dist/retail/utils/checkNewMicroservice.js.map +1 -0
- package/dist/ui-kit/SearchBar/SearchBar.d.ts +1 -2
- package/dist/ui-kit/SearchBar/SearchBar.js +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/dist/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
- package/dist/ui-kit/SearchDialog/SearchDialog.js +2 -2
- package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/dist/ui-kit/YandexMap/useYandexMaps.js +1 -2
- package/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/dist/wlc.json +1 -2
- package/lib/api/apiBaseUrl.d.ts +0 -1
- package/lib/api/apiBaseUrl.js +0 -1
- package/lib/api/apiBaseUrl.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +1 -0
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +33 -23
- package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
- package/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
- package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
- package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStatusTracker.js +16 -2
- package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.js +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/renderLogoSearchBar.js +2 -2
- package/lib/components/Footer/renderLogoSearchBar.js.map +1 -1
- package/lib/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
- package/lib/retail/adaptors/getCreditFormTaskData.js +36 -25
- package/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/lib/retail/adaptors/utils.js +1 -1
- package/lib/retail/adaptors/utils.js.map +1 -1
- package/lib/retail/api/apiBaseUrl.d.ts +2 -1
- package/lib/retail/api/apiBaseUrl.js +2 -1
- package/lib/retail/api/apiBaseUrl.js.map +1 -1
- package/lib/retail/api/checkCaptcha.d.ts +1 -0
- package/lib/retail/api/checkCaptcha.js +10 -3
- package/lib/retail/api/checkCaptcha.js.map +1 -1
- package/lib/retail/api/checkCode.d.ts +1 -0
- package/lib/retail/api/checkCode.js +9 -1
- package/lib/retail/api/checkCode.js.map +1 -1
- package/lib/retail/api/createCaptcha.js +5 -1
- package/lib/retail/api/createCaptcha.js.map +1 -1
- package/lib/retail/api/createDraftTask.d.ts +2 -1
- package/lib/retail/api/createDraftTask.js.map +1 -1
- package/lib/retail/api/createParticipant.d.ts +6 -0
- package/lib/retail/api/createParticipant.js +3 -0
- package/lib/retail/api/createParticipant.js.map +1 -0
- package/lib/retail/api/doRequest.js +4 -2
- package/lib/retail/api/doRequest.js.map +1 -1
- package/lib/retail/api/esiaRequestProfile.js +11 -7
- package/lib/retail/api/esiaRequestProfile.js.map +1 -1
- package/lib/retail/api/getDictionaries.js +3 -1
- package/lib/retail/api/getDictionaries.js.map +1 -1
- package/lib/retail/api/getLink.js +5 -1
- package/lib/retail/api/getLink.js.map +1 -1
- package/lib/retail/api/sendCode.js +8 -1
- package/lib/retail/api/sendCode.js.map +1 -1
- package/lib/retail/api/sendMessage.d.ts +7 -0
- package/lib/retail/api/sendMessage.js +5 -0
- package/lib/retail/api/sendMessage.js.map +1 -0
- package/lib/retail/api/updateUserTask.d.ts +14 -8
- package/lib/retail/api/updateUserTask.js.map +1 -1
- package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
- package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
- package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
- package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/lib/retail/hooks/useLeadFormData.js +4 -2
- package/lib/retail/hooks/useLeadFormData.js.map +1 -1
- package/lib/retail/hooks/useRetailFormStore.d.ts +1 -1
- package/lib/retail/model/LeadFormState.d.ts +2 -4
- package/lib/retail/utils/checkNewMicroservice.d.ts +1 -0
- package/lib/retail/utils/checkNewMicroservice.js +5 -0
- package/lib/retail/utils/checkNewMicroservice.js.map +1 -0
- package/lib/ui-kit/SearchBar/SearchBar.d.ts +1 -2
- package/lib/ui-kit/SearchBar/SearchBar.js +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/lib/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
- package/lib/ui-kit/SearchDialog/SearchDialog.js +2 -2
- package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/lib/ui-kit/YandexMap/useYandexMaps.js +1 -2
- package/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/lib/wlc.json +1 -2
- package/mobile/bundle/api/apiBaseUrl.d.ts +0 -1
- package/mobile/bundle/bundle.umd.js +313 -116
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
- package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
- package/mobile/bundle/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
- package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
- package/mobile/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
- package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
- package/mobile/bundle/retail/api/apiBaseUrl.d.ts +2 -1
- package/mobile/bundle/retail/api/checkCaptcha.d.ts +1 -0
- package/mobile/bundle/retail/api/checkCode.d.ts +1 -0
- package/mobile/bundle/retail/api/createDraftTask.d.ts +2 -1
- package/mobile/bundle/retail/api/createParticipant.d.ts +6 -0
- package/mobile/bundle/retail/api/sendMessage.d.ts +7 -0
- package/mobile/bundle/retail/api/updateUserTask.d.ts +14 -8
- package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
- package/mobile/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
- package/mobile/bundle/retail/hooks/useRetailFormStore.d.ts +1 -1
- package/mobile/bundle/retail/model/LeadFormState.d.ts +2 -4
- package/mobile/bundle/retail/utils/checkNewMicroservice.d.ts +1 -0
- package/mobile/bundle/ui-kit/SearchBar/SearchBar.d.ts +1 -2
- package/mobile/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
- package/mobile/dist/api/apiBaseUrl.d.ts +0 -1
- package/mobile/dist/api/apiBaseUrl.js +1 -2
- package/mobile/dist/api/apiBaseUrl.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +35 -24
- package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
- package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
- package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
- package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +16 -2
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +1 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.js +36 -25
- package/mobile/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/mobile/dist/retail/adaptors/utils.js +1 -1
- package/mobile/dist/retail/adaptors/utils.js.map +1 -1
- package/mobile/dist/retail/api/apiBaseUrl.d.ts +2 -1
- package/mobile/dist/retail/api/apiBaseUrl.js +3 -2
- package/mobile/dist/retail/api/apiBaseUrl.js.map +1 -1
- package/mobile/dist/retail/api/checkCaptcha.d.ts +1 -0
- package/mobile/dist/retail/api/checkCaptcha.js +10 -3
- package/mobile/dist/retail/api/checkCaptcha.js.map +1 -1
- package/mobile/dist/retail/api/checkCode.d.ts +1 -0
- package/mobile/dist/retail/api/checkCode.js +9 -1
- package/mobile/dist/retail/api/checkCode.js.map +1 -1
- package/mobile/dist/retail/api/createCaptcha.js +5 -1
- package/mobile/dist/retail/api/createCaptcha.js.map +1 -1
- package/mobile/dist/retail/api/createDraftTask.d.ts +2 -1
- package/mobile/dist/retail/api/createDraftTask.js.map +1 -1
- package/mobile/dist/retail/api/createParticipant.d.ts +6 -0
- package/mobile/dist/retail/api/createParticipant.js +6 -0
- package/mobile/dist/retail/api/createParticipant.js.map +1 -0
- package/mobile/dist/retail/api/doRequest.js +4 -2
- package/mobile/dist/retail/api/doRequest.js.map +1 -1
- package/mobile/dist/retail/api/esiaRequestProfile.js +11 -7
- package/mobile/dist/retail/api/esiaRequestProfile.js.map +1 -1
- package/mobile/dist/retail/api/getDictionaries.js +3 -1
- package/mobile/dist/retail/api/getDictionaries.js.map +1 -1
- package/mobile/dist/retail/api/getLink.js +5 -1
- package/mobile/dist/retail/api/getLink.js.map +1 -1
- package/mobile/dist/retail/api/sendCode.js +8 -1
- package/mobile/dist/retail/api/sendCode.js.map +1 -1
- package/mobile/dist/retail/api/sendMessage.d.ts +7 -0
- package/mobile/dist/retail/api/sendMessage.js +8 -0
- package/mobile/dist/retail/api/sendMessage.js.map +1 -0
- package/mobile/dist/retail/api/updateUserTask.d.ts +14 -8
- package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
- package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
- package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/dist/retail/hooks/useLeadFormData.js +3 -1
- package/mobile/dist/retail/hooks/useLeadFormData.js.map +1 -1
- package/mobile/dist/retail/hooks/useRetailFormStore.d.ts +1 -1
- package/mobile/dist/retail/model/LeadFormState.d.ts +2 -4
- package/mobile/dist/retail/utils/checkNewMicroservice.d.ts +1 -0
- package/mobile/dist/retail/utils/checkNewMicroservice.js +8 -0
- package/mobile/dist/retail/utils/checkNewMicroservice.js.map +1 -0
- package/mobile/dist/ui-kit/SearchBar/SearchBar.d.ts +1 -2
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
- package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +2 -2
- package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js +1 -2
- package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/mobile/dist/wlc.json +1 -2
- package/mobile/lib/api/apiBaseUrl.d.ts +0 -1
- package/mobile/lib/api/apiBaseUrl.js +0 -1
- package/mobile/lib/api/apiBaseUrl.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +33 -23
- package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
- package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
- package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
- package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +16 -2
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +1 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.js +36 -25
- package/mobile/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
- package/mobile/lib/retail/adaptors/utils.js +1 -1
- package/mobile/lib/retail/adaptors/utils.js.map +1 -1
- package/mobile/lib/retail/api/apiBaseUrl.d.ts +2 -1
- package/mobile/lib/retail/api/apiBaseUrl.js +2 -1
- package/mobile/lib/retail/api/apiBaseUrl.js.map +1 -1
- package/mobile/lib/retail/api/checkCaptcha.d.ts +1 -0
- package/mobile/lib/retail/api/checkCaptcha.js +10 -3
- package/mobile/lib/retail/api/checkCaptcha.js.map +1 -1
- package/mobile/lib/retail/api/checkCode.d.ts +1 -0
- package/mobile/lib/retail/api/checkCode.js +9 -1
- package/mobile/lib/retail/api/checkCode.js.map +1 -1
- package/mobile/lib/retail/api/createCaptcha.js +5 -1
- package/mobile/lib/retail/api/createCaptcha.js.map +1 -1
- package/mobile/lib/retail/api/createDraftTask.d.ts +2 -1
- package/mobile/lib/retail/api/createDraftTask.js.map +1 -1
- package/mobile/lib/retail/api/createParticipant.d.ts +6 -0
- package/mobile/lib/retail/api/createParticipant.js +3 -0
- package/mobile/lib/retail/api/createParticipant.js.map +1 -0
- package/mobile/lib/retail/api/doRequest.js +4 -2
- package/mobile/lib/retail/api/doRequest.js.map +1 -1
- package/mobile/lib/retail/api/esiaRequestProfile.js +11 -7
- package/mobile/lib/retail/api/esiaRequestProfile.js.map +1 -1
- package/mobile/lib/retail/api/getDictionaries.js +3 -1
- package/mobile/lib/retail/api/getDictionaries.js.map +1 -1
- package/mobile/lib/retail/api/getLink.js +5 -1
- package/mobile/lib/retail/api/getLink.js.map +1 -1
- package/mobile/lib/retail/api/sendCode.js +8 -1
- package/mobile/lib/retail/api/sendCode.js.map +1 -1
- package/mobile/lib/retail/api/sendMessage.d.ts +7 -0
- package/mobile/lib/retail/api/sendMessage.js +5 -0
- package/mobile/lib/retail/api/sendMessage.js.map +1 -0
- package/mobile/lib/retail/api/updateUserTask.d.ts +14 -8
- package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
- package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
- package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
- package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/lib/retail/hooks/useLeadFormData.js +4 -2
- package/mobile/lib/retail/hooks/useLeadFormData.js.map +1 -1
- package/mobile/lib/retail/hooks/useRetailFormStore.d.ts +1 -1
- package/mobile/lib/retail/model/LeadFormState.d.ts +2 -4
- package/mobile/lib/retail/utils/checkNewMicroservice.d.ts +1 -0
- package/mobile/lib/retail/utils/checkNewMicroservice.js +5 -0
- package/mobile/lib/retail/utils/checkNewMicroservice.js.map +1 -0
- package/mobile/lib/ui-kit/SearchBar/SearchBar.d.ts +1 -2
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
- package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +2 -2
- package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js +1 -2
- package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
- package/mobile/lib/wlc.json +1 -2
- package/mobile/src/api/apiBaseUrl.ts +0 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -0
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -0
- package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +50 -24
- package/mobile/src/components/ApplicationLeadForm/parseEsiaProfile.ts +17 -11
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +129 -3
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +9 -1
- package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
- package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +2 -1
- package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +16 -2
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +1 -1
- package/mobile/src/components/Footer/Footer.tsx +3 -5
- package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +42 -28
- package/mobile/src/retail/adaptors/utils.ts +1 -1
- package/mobile/src/retail/api/apiBaseUrl.ts +2 -1
- package/mobile/src/retail/api/checkCaptcha.ts +10 -2
- package/mobile/src/retail/api/checkCode.ts +11 -2
- package/mobile/src/retail/api/createCaptcha.ts +11 -4
- package/mobile/src/retail/api/createDraftTask.ts +2 -1
- package/mobile/src/retail/api/createParticipant.ts +17 -0
- package/mobile/src/retail/api/doRequest.ts +17 -12
- package/mobile/src/retail/api/esiaRequestProfile.ts +10 -2
- package/mobile/src/retail/api/getDictionaries.ts +6 -1
- package/mobile/src/retail/api/getLink.ts +10 -2
- package/mobile/src/retail/api/sendCode.ts +9 -1
- package/mobile/src/retail/api/sendMessage.ts +12 -0
- package/mobile/src/retail/api/updateUserTask.ts +14 -9
- package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +1 -1
- package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +54 -21
- package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +2 -1
- package/mobile/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +3 -0
- package/mobile/src/retail/hooks/useLeadFormData.ts +7 -2
- package/mobile/src/retail/model/LeadFormState.ts +2 -4
- package/mobile/src/retail/utils/checkNewMicroservice.ts +5 -0
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +1 -3
- package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +28 -39
- package/mobile/src/ui-kit/YandexMap/useYandexMaps.ts +1 -4
- package/mobile/src/wlc.json +2 -2
- package/package.json +1 -1
- package/src/api/apiBaseUrl.ts +0 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +15 -0
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -0
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -0
- package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +50 -24
- package/src/components/ApplicationLeadForm/parseEsiaProfile.ts +17 -11
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +129 -3
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +9 -1
- package/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
- package/src/components/ApplicationLeadForm/useSaveUserData.ts +2 -1
- package/src/components/CreditForm/CreditForm.fixture.tsx +12 -18
- package/src/components/CreditForm/CreditFormStatusTracker.tsx +16 -2
- package/src/components/CreditForm/useCreditFormAPI.tsx +1 -1
- package/src/components/Footer/Footer.tsx +3 -5
- package/src/components/Footer/renderLogoSearchBar.tsx +2 -7
- package/src/retail/adaptors/getCreditFormTaskData.ts +42 -28
- package/src/retail/adaptors/utils.ts +1 -1
- package/src/retail/api/apiBaseUrl.ts +2 -1
- package/src/retail/api/checkCaptcha.ts +10 -2
- package/src/retail/api/checkCode.ts +11 -2
- package/src/retail/api/createCaptcha.ts +11 -4
- package/src/retail/api/createDraftTask.ts +2 -1
- package/src/retail/api/createParticipant.ts +17 -0
- package/src/retail/api/doRequest.ts +17 -12
- package/src/retail/api/esiaRequestProfile.ts +10 -2
- package/src/retail/api/getDictionaries.ts +6 -1
- package/src/retail/api/getLink.ts +10 -2
- package/src/retail/api/sendCode.ts +9 -1
- package/src/retail/api/sendMessage.ts +12 -0
- package/src/retail/api/updateUserTask.ts +14 -9
- package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +1 -1
- package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +54 -21
- package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +2 -1
- package/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +3 -0
- package/src/retail/hooks/useLeadFormData.ts +7 -2
- package/src/retail/model/LeadFormState.ts +2 -4
- package/src/retail/utils/checkNewMicroservice.ts +5 -0
- package/src/ui-kit/SearchBar/SearchBar.tsx +1 -3
- package/src/ui-kit/SearchDialog/SearchDialog.tsx +28 -39
- package/src/ui-kit/YandexMap/useYandexMaps.ts +1 -4
- package/src/wlc.json +2 -2
- package/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -14
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -11
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
- package/mobile/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -14
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -11
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
- package/mobile/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +0 -32
- package/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +0 -32
package/bundle/bundle.umd.js
CHANGED
|
@@ -1719,8 +1719,7 @@
|
|
|
1719
1719
|
return `GMT${sign}${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}`;
|
|
1720
1720
|
};
|
|
1721
1721
|
|
|
1722
|
-
const API_BASE_URI
|
|
1723
|
-
const RETAIL_API_BASE_URI = '/light-api-cash/v1';
|
|
1722
|
+
const API_BASE_URI = '/api/v1';
|
|
1724
1723
|
|
|
1725
1724
|
const formatDate = (date, toTimeStamp = false) => {
|
|
1726
1725
|
if (typeof date === 'string') {
|
|
@@ -1796,7 +1795,7 @@
|
|
|
1796
1795
|
async function send(body, router, isIndividualType = false) {
|
|
1797
1796
|
const { serviceDirection } = body;
|
|
1798
1797
|
const isNaturalPerson = isIndividualType && serviceDirection !== 'Юридическое лицо / ИП';
|
|
1799
|
-
const url = `${API_BASE_URI
|
|
1798
|
+
const url = `${API_BASE_URI}${isNaturalPerson ? '/lead' : '/sendcorporatelead'}`;
|
|
1800
1799
|
const submitBody = getSubmitBody(body, isNaturalPerson, router);
|
|
1801
1800
|
try {
|
|
1802
1801
|
const response = await LeadServiceFetch(url, submitBody);
|
|
@@ -1812,7 +1811,7 @@
|
|
|
1812
1811
|
async function sendCode({ phone }) {
|
|
1813
1812
|
const submitBody = getPhoneBody(phone);
|
|
1814
1813
|
try {
|
|
1815
|
-
const response = LeadServiceFetch(`${API_BASE_URI
|
|
1814
|
+
const response = LeadServiceFetch(`${API_BASE_URI}/initCorporateLead`, submitBody).then(async (res) => {
|
|
1816
1815
|
if (!res.ok) {
|
|
1817
1816
|
throw new Error(`Ошибка HTTP: ${res.status}`);
|
|
1818
1817
|
}
|
|
@@ -1831,7 +1830,7 @@
|
|
|
1831
1830
|
leadRequest: getSubmitBody(body, false),
|
|
1832
1831
|
};
|
|
1833
1832
|
try {
|
|
1834
|
-
const response = await LeadServiceFetch(`${API_BASE_URI
|
|
1833
|
+
const response = await LeadServiceFetch(`${API_BASE_URI}/confirmCorporateLead`, submitBody);
|
|
1835
1834
|
return await response.json();
|
|
1836
1835
|
}
|
|
1837
1836
|
catch (e) {
|
|
@@ -1843,7 +1842,7 @@
|
|
|
1843
1842
|
const submitBody = getSubmitBody(body, isNaturalPerson);
|
|
1844
1843
|
const formatSubmitBody = getFormatCallbackSubmitBody(submitBody);
|
|
1845
1844
|
try {
|
|
1846
|
-
const response = await LeadServiceFetch(`${API_BASE_URI
|
|
1845
|
+
const response = await LeadServiceFetch(`${API_BASE_URI}/callback`, formatSubmitBody);
|
|
1847
1846
|
if (!response?.ok) {
|
|
1848
1847
|
return null;
|
|
1849
1848
|
}
|
|
@@ -2043,7 +2042,7 @@
|
|
|
2043
2042
|
}
|
|
2044
2043
|
}
|
|
2045
2044
|
|
|
2046
|
-
const BRANCHES_URL = `${API_BASE_URI
|
|
2045
|
+
const BRANCHES_URL = `${API_BASE_URI}/branches`;
|
|
2047
2046
|
const EMPTY_VALUE$2 = [];
|
|
2048
2047
|
function useBranches(regionCode) {
|
|
2049
2048
|
const { data } = useAsyncData(regionCode ? `${BRANCHES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes);
|
|
@@ -2057,7 +2056,7 @@
|
|
|
2057
2056
|
const REGIONS_URL$1 = '/branchesByRegions';
|
|
2058
2057
|
const PREMIUM_REGIONS_URL = '/premiumBranchesByRegions';
|
|
2059
2058
|
function useBranchesByRegions(isPremium = false) {
|
|
2060
|
-
const { data } = useAsyncData(`${API_BASE_URI
|
|
2059
|
+
const { data } = useAsyncData(`${API_BASE_URI}${isPremium ? PREMIUM_REGIONS_URL : REGIONS_URL$1}`, fetchJSONUnsafe);
|
|
2061
2060
|
return Array.isArray(data) ? data : [];
|
|
2062
2061
|
}
|
|
2063
2062
|
|
|
@@ -2623,7 +2622,7 @@
|
|
|
2623
2622
|
|
|
2624
2623
|
const IsClientField = JSX(({ field, input }) => (jsx(CheckboxWithError, { ...field(input?.name ?? ''), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' })));
|
|
2625
2624
|
|
|
2626
|
-
const OUT_SERVICE_BASE_URL = `${API_BASE_URI
|
|
2625
|
+
const OUT_SERVICE_BASE_URL = `${API_BASE_URI}/outservice`;
|
|
2627
2626
|
const EMPTY_REGIONS$1 = [];
|
|
2628
2627
|
async function getOutServiceRegions() {
|
|
2629
2628
|
const data = await fetchJSON(`${OUT_SERVICE_BASE_URL}/outserviceregions`);
|
|
@@ -2733,7 +2732,7 @@
|
|
|
2733
2732
|
];
|
|
2734
2733
|
const QuestionProductField = JSX(({ field, input }) => (jsx(SelectControl, { label: "\u041A\u0430\u043A\u043E\u0439 \u0443 \u0432\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441?", options: QUESTION_PRODUCT_TYPES, ...field(input?.name ?? '') })));
|
|
2735
2734
|
|
|
2736
|
-
const REGIONS_URL = `${API_BASE_URI
|
|
2735
|
+
const REGIONS_URL = `${API_BASE_URI}/regions`;
|
|
2737
2736
|
const EMPTY_REGIONS = [];
|
|
2738
2737
|
// TODO Почему url можно менять? Разве смысл не в инкапсуляции api url. Тоже под рефакторинг попадает
|
|
2739
2738
|
function useRegions(url = REGIONS_URL) {
|
|
@@ -2741,7 +2740,7 @@
|
|
|
2741
2740
|
return Array.isArray(data) ? data : EMPTY_REGIONS;
|
|
2742
2741
|
}
|
|
2743
2742
|
|
|
2744
|
-
const OUT_SERVICE_URL = `${API_BASE_URI
|
|
2743
|
+
const OUT_SERVICE_URL = `${API_BASE_URI}/outservice/outserviceregions`;
|
|
2745
2744
|
const getRegionUrl = (typeForm) => typeForm === 'OUTSERVICE' ? OUT_SERVICE_URL : undefined;
|
|
2746
2745
|
|
|
2747
2746
|
const RegionField = JSX(({ field, input, params }) => {
|
|
@@ -3615,6 +3614,14 @@
|
|
|
3615
3614
|
EsiaStatuses["Pending"] = "PENDING";
|
|
3616
3615
|
})(EsiaStatuses || (EsiaStatuses = {}));
|
|
3617
3616
|
|
|
3617
|
+
const checkNewMicroservice = () => {
|
|
3618
|
+
const isNewMicroservice = globalThis.sessionStorage?.getItem('isNewMicroservice');
|
|
3619
|
+
return Boolean(isNewMicroservice);
|
|
3620
|
+
};
|
|
3621
|
+
|
|
3622
|
+
const RETAIL_API_BASE_URI = '/light-api-cash/v1';
|
|
3623
|
+
const NEW_RETAIL_API_BASE_URI = '/api/credit-application';
|
|
3624
|
+
|
|
3618
3625
|
const getTraceId = () => {
|
|
3619
3626
|
const result = new Uint8Array(8);
|
|
3620
3627
|
globalThis.crypto.getRandomValues(result);
|
|
@@ -3632,8 +3639,9 @@
|
|
|
3632
3639
|
}
|
|
3633
3640
|
};
|
|
3634
3641
|
async function doRequest(url, method, body) {
|
|
3642
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
3635
3643
|
const traceId = getTraceId();
|
|
3636
|
-
return globalThis?.fetch?.(`${RETAIL_API_BASE_URI}${url}`, {
|
|
3644
|
+
return globalThis?.fetch?.(`${isNewMicroservice ? NEW_RETAIL_API_BASE_URI : RETAIL_API_BASE_URI}${url}`, {
|
|
3637
3645
|
method,
|
|
3638
3646
|
headers: {
|
|
3639
3647
|
'Content-Type': 'application/json',
|
|
@@ -3651,7 +3659,10 @@
|
|
|
3651
3659
|
return token ? { Authorization: `Bearer ${token}` } : null;
|
|
3652
3660
|
};
|
|
3653
3661
|
|
|
3654
|
-
const getLink = (body) =>
|
|
3662
|
+
const getLink = async (body) => {
|
|
3663
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
3664
|
+
return await fetchRetailJSON(`${isNewMicroservice ? '/user-data' : ''}/esia/getLink`, 'POST', body);
|
|
3665
|
+
};
|
|
3655
3666
|
|
|
3656
3667
|
const EsiaLoginBanner = JSX(({ onChangeEsiaStatus, productType }) => {
|
|
3657
3668
|
const navigator = locationNavigator();
|
|
@@ -4439,7 +4450,7 @@
|
|
|
4439
4450
|
|
|
4440
4451
|
const YMAPS_NAMESPACE = 'ymaps';
|
|
4441
4452
|
const useYandexMaps = () => {
|
|
4442
|
-
const url = `https://api-maps.yandex.ru/2.1/?
|
|
4453
|
+
const url = `https://api-maps.yandex.ru/2.1/?lang=ru_RU`;
|
|
4443
4454
|
return useExternalNS(YMAPS_NAMESPACE, url, false);
|
|
4444
4455
|
};
|
|
4445
4456
|
|
|
@@ -4529,10 +4540,9 @@
|
|
|
4529
4540
|
};
|
|
4530
4541
|
const formatCoordinate = (coordinate) => Number(coordinate.toString().replace(',', '.'));
|
|
4531
4542
|
|
|
4532
|
-
const API_BASE_URI = '/light-api-cash/v1';
|
|
4533
|
-
|
|
4534
4543
|
const useLeadFormData = (typeField) => {
|
|
4535
|
-
const
|
|
4544
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
4545
|
+
const { data, error } = useAsyncData(`${isNewMicroservice ? `${NEW_RETAIL_API_BASE_URI}/public-data` : RETAIL_API_BASE_URI}/dictionary?dictionaryType=${encodeURIComponent(typeField)}`, fetchData);
|
|
4536
4546
|
if (data && 'errorMessage' in data) {
|
|
4537
4547
|
return { error };
|
|
4538
4548
|
}
|
|
@@ -5085,9 +5095,10 @@
|
|
|
5085
5095
|
});
|
|
5086
5096
|
|
|
5087
5097
|
const getDictionaries = async (dictionaries, store) => {
|
|
5098
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
5088
5099
|
await Promise.all(Object.entries(dictionaries).map((dictionary) => {
|
|
5089
5100
|
const [fieldName, dictionaryName] = dictionary;
|
|
5090
|
-
fetchRetailJSON(
|
|
5101
|
+
fetchRetailJSON(`${isNewMicroservice ? '/public-data' : ''}/dictionary?dictionaryType=${encodeURIComponent(dictionaryName)}`, 'POST').then((res) => {
|
|
5091
5102
|
store[fieldName] = res;
|
|
5092
5103
|
});
|
|
5093
5104
|
}));
|
|
@@ -5843,6 +5854,8 @@
|
|
|
5843
5854
|
return res || {};
|
|
5844
5855
|
};
|
|
5845
5856
|
|
|
5857
|
+
const createParticipant = (body) => fetchRetailJSON('/public-data/createParticipant', 'POST', body).then((res) => res?.participantId || null);
|
|
5858
|
+
|
|
5846
5859
|
const createUserProfile = (body) => fetchRetailJSON('/public-data/createUserProfile', 'POST', body).then((res) => res?.profile?.id || null);
|
|
5847
5860
|
|
|
5848
5861
|
const createUserTaskDebit = async (body) => {
|
|
@@ -5866,7 +5879,13 @@
|
|
|
5866
5879
|
|
|
5867
5880
|
const updateUserTask = (body) => doRequest('/user-data/updateUserTask', 'PUT', body);
|
|
5868
5881
|
|
|
5869
|
-
const sendCode = (body) =>
|
|
5882
|
+
const sendCode = async (body) => {
|
|
5883
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
5884
|
+
return await doRequest(`${isNewMicroservice ? '/user-data' : ''}/sms/sendCode`, 'POST', {
|
|
5885
|
+
phoneNumber: body.phoneNumber,
|
|
5886
|
+
smsCodesSetName: isNewMicroservice ? body.smsCodesSetName.key : body.smsCodesSetName,
|
|
5887
|
+
});
|
|
5888
|
+
};
|
|
5870
5889
|
|
|
5871
5890
|
const ICON_SIZE = { width: '118', height: '24' };
|
|
5872
5891
|
|
|
@@ -5898,11 +5917,20 @@
|
|
|
5898
5917
|
? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title ?? 'Россельхозбанк' }) }))
|
|
5899
5918
|
: null] })));
|
|
5900
5919
|
|
|
5901
|
-
const checkCaptcha = (body) =>
|
|
5902
|
-
|
|
5903
|
-
|
|
5920
|
+
const checkCaptcha = async (body) => {
|
|
5921
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
5922
|
+
return await doRequest(`${isNewMicroservice ? '/user-data' : ''}/sms/checkCaptcha`, 'POST', {
|
|
5923
|
+
captchaText: body.captchaText,
|
|
5924
|
+
...(isNewMicroservice && { phoneNumber: body?.phoneNumber }),
|
|
5925
|
+
})
|
|
5926
|
+
.then((res) => res.text())
|
|
5927
|
+
.then((text) => text !== 'ERROR');
|
|
5928
|
+
};
|
|
5904
5929
|
|
|
5905
|
-
const createCaptcha = (phoneNumber) =>
|
|
5930
|
+
const createCaptcha = async (phoneNumber) => {
|
|
5931
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
5932
|
+
return await doRequest(`${isNewMicroservice ? '/user-data' : ''}/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET').then(async (res) => (res ? res.blob() : new Blob()));
|
|
5933
|
+
};
|
|
5906
5934
|
|
|
5907
5935
|
const CaptchaDialog = JSX(({ phoneNumber, sendCode, onClose }) => {
|
|
5908
5936
|
const [captcha, setCaptcha] = useState('');
|
|
@@ -5912,7 +5940,7 @@
|
|
|
5912
5940
|
const { closeAll } = useDialogManager();
|
|
5913
5941
|
const handleCheckCaptcha = useCallback(async () => {
|
|
5914
5942
|
startLoading();
|
|
5915
|
-
const isValidCode = await checkCaptcha({ captchaText: code });
|
|
5943
|
+
const isValidCode = await checkCaptcha({ captchaText: code, phoneNumber });
|
|
5916
5944
|
if (isValidCode) {
|
|
5917
5945
|
onClose?.();
|
|
5918
5946
|
sendCode?.();
|
|
@@ -5929,7 +5957,14 @@
|
|
|
5929
5957
|
return (jsx(Dialog, { head: jsx(Logo, {}), onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center", children: [jsxs("div", { className: "flex", children: [jsx("img", { className: "grow", src: captcha }), jsx(Button, { className: "w-8", embedded: true, onClick: handleCreateCaptcha, children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-80", 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-80 justify-between", children: [jsx(Button, { version: "secondary", onClick: closeAll, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(SubmitButton$1, { version: "secondary", disabled: !code, onClick: handleCheckCaptcha, children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] }), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
|
|
5930
5958
|
});
|
|
5931
5959
|
|
|
5932
|
-
const checkCode = async (body) =>
|
|
5960
|
+
const checkCode = async (body) => {
|
|
5961
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
5962
|
+
return await doRequest(`${isNewMicroservice ? '/user-data' : ''}/sms/checkCode`, 'POST', {
|
|
5963
|
+
smsText: body.smsText,
|
|
5964
|
+
smsCodesSetName: isNewMicroservice ? body.smsCodesSetName.key : body.smsCodesSetName,
|
|
5965
|
+
...(isNewMicroservice && { phoneNumber: body?.phoneNumber }),
|
|
5966
|
+
});
|
|
5967
|
+
};
|
|
5933
5968
|
|
|
5934
5969
|
const saveToken = (data) => {
|
|
5935
5970
|
globalThis.sessionStorage.setItem('accessToken', data.access_token);
|
|
@@ -5937,7 +5972,7 @@
|
|
|
5937
5972
|
};
|
|
5938
5973
|
|
|
5939
5974
|
const TIME_TO_RESEND = 180;
|
|
5940
|
-
const useVerifyPhoneDialogSubmit = ({ values, onSuccess, onFail, }) => {
|
|
5975
|
+
const useVerifyPhoneDialogSubmit = ({ values, phoneNumber, onSuccess, onFail, }) => {
|
|
5941
5976
|
const sessionStore = useSessionStore();
|
|
5942
5977
|
const attempts = sessionStore.smsCode?.attempts || 0;
|
|
5943
5978
|
const timer = Math.max(getTimer(sessionStore.smsCode?.sendTime || Date.now()), 0);
|
|
@@ -5956,6 +5991,7 @@
|
|
|
5956
5991
|
const response = await checkCode({
|
|
5957
5992
|
smsText: values.join(''),
|
|
5958
5993
|
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
5994
|
+
phoneNumber,
|
|
5959
5995
|
});
|
|
5960
5996
|
if (response.ok) {
|
|
5961
5997
|
const data = (await response.json());
|
|
@@ -5997,13 +6033,14 @@
|
|
|
5997
6033
|
const VerifyPhoneDialog = JSX(({ phone, withDescription = true, consents, onSuccess = noop, onClose = noop, onFail = noop, }) => {
|
|
5998
6034
|
const [values, setValues] = useState(Array(CODE_LENGTH).fill(''));
|
|
5999
6035
|
const sessionStore = useSessionStore();
|
|
6036
|
+
const phoneNumber = formatPhone(phone);
|
|
6000
6037
|
const { handleSubmit, hasError, errorText, isLoading, timeNextReq, isSubmitButtonDisabled, setTimeNextReq, setErrorText, } = useVerifyPhoneDialogSubmit({
|
|
6001
6038
|
values,
|
|
6039
|
+
phoneNumber,
|
|
6002
6040
|
onSuccess,
|
|
6003
6041
|
onFail,
|
|
6004
6042
|
});
|
|
6005
6043
|
const captchaDialog = useDialog(CaptchaDialog);
|
|
6006
|
-
const phoneNumber = formatPhone(phone);
|
|
6007
6044
|
const restartTimer = useCountDownTimer({ seconds: timeNextReq, onTick: setTimeNextReq });
|
|
6008
6045
|
const handleSendCode = useCallback(async () => {
|
|
6009
6046
|
const response = await sendCode({
|
|
@@ -6066,7 +6103,7 @@
|
|
|
6066
6103
|
const useConsentBkiDialog = (onClose) => {
|
|
6067
6104
|
const { open } = useDialog(ConsentBkiDialog);
|
|
6068
6105
|
const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
|
|
6069
|
-
const handleSuccessVerify = (profileId) => async (smsCode) => {
|
|
6106
|
+
const handleSuccessVerify = (profileId, taskId, participantId) => async (smsCode) => {
|
|
6070
6107
|
try {
|
|
6071
6108
|
if (profileId) {
|
|
6072
6109
|
await updateUserProfile({
|
|
@@ -6077,18 +6114,32 @@
|
|
|
6077
6114
|
},
|
|
6078
6115
|
});
|
|
6079
6116
|
}
|
|
6117
|
+
else if (taskId && participantId) {
|
|
6118
|
+
await updateUserTask({
|
|
6119
|
+
task: {
|
|
6120
|
+
id: taskId,
|
|
6121
|
+
participant: {
|
|
6122
|
+
id: participantId,
|
|
6123
|
+
consentBkiFlg: true,
|
|
6124
|
+
smsConsentBki: smsCode,
|
|
6125
|
+
},
|
|
6126
|
+
},
|
|
6127
|
+
sendToBank: false,
|
|
6128
|
+
taskKind: 'SHORT',
|
|
6129
|
+
});
|
|
6130
|
+
}
|
|
6080
6131
|
onClose();
|
|
6081
6132
|
}
|
|
6082
6133
|
catch (ex) {
|
|
6083
6134
|
console.log(ex);
|
|
6084
6135
|
}
|
|
6085
6136
|
};
|
|
6086
|
-
const
|
|
6137
|
+
const handleSubmitBkiConsent = ({ phone, profileId, onFail, taskId, participantId }) => async (confirmStatus) => {
|
|
6087
6138
|
if (confirmStatus === 'SIGNED' && phone) {
|
|
6088
6139
|
verifyPhoneDialog.open({
|
|
6089
6140
|
phone,
|
|
6090
6141
|
consents: ['согласие на запрос информации в БКИ'],
|
|
6091
|
-
onSuccess: handleSuccessVerify(profileId),
|
|
6142
|
+
onSuccess: handleSuccessVerify(profileId, taskId, participantId),
|
|
6092
6143
|
onFail,
|
|
6093
6144
|
});
|
|
6094
6145
|
}
|
|
@@ -6097,7 +6148,16 @@
|
|
|
6097
6148
|
}
|
|
6098
6149
|
};
|
|
6099
6150
|
return {
|
|
6100
|
-
open: (phone, profileId, onFail) => open({
|
|
6151
|
+
open: ({ phone, profileId, onFail, taskId, participantId }) => open({
|
|
6152
|
+
onSubmit: handleSubmitBkiConsent({
|
|
6153
|
+
phone,
|
|
6154
|
+
profileId,
|
|
6155
|
+
onFail,
|
|
6156
|
+
taskId,
|
|
6157
|
+
participantId,
|
|
6158
|
+
}),
|
|
6159
|
+
onClose,
|
|
6160
|
+
}),
|
|
6101
6161
|
};
|
|
6102
6162
|
};
|
|
6103
6163
|
|
|
@@ -6183,10 +6243,10 @@
|
|
|
6183
6243
|
return [
|
|
6184
6244
|
...acc,
|
|
6185
6245
|
{
|
|
6246
|
+
...address,
|
|
6186
6247
|
addressType: {
|
|
6187
6248
|
key: fieldsNamesToAddressKeysMap[key],
|
|
6188
6249
|
},
|
|
6189
|
-
...address,
|
|
6190
6250
|
},
|
|
6191
6251
|
];
|
|
6192
6252
|
}
|
|
@@ -6444,40 +6504,50 @@
|
|
|
6444
6504
|
};
|
|
6445
6505
|
};
|
|
6446
6506
|
|
|
6447
|
-
|
|
6448
|
-
const getCreditLeadFormTaskData = ({ participantId, taskId, profileId, formData, marketingInfo, }) => {
|
|
6449
|
-
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
6507
|
+
const getCreditLeadFormTaskData = ({ participantId, taskId, profileId, formData, marketingInfo, consents, }) => {
|
|
6450
6508
|
const taskSource = getTaskSource(marketingInfo?.utm_source);
|
|
6509
|
+
const participantInfo = getParticipant({ participantId, profileId, formData, consents });
|
|
6451
6510
|
return {
|
|
6452
6511
|
sendToBank: true,
|
|
6453
6512
|
taskKind: 'SHORT',
|
|
6454
6513
|
task: {
|
|
6455
6514
|
taskSource,
|
|
6456
6515
|
id: taskId,
|
|
6457
|
-
|
|
6458
|
-
{
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
profile: {
|
|
6465
|
-
id: profileId,
|
|
6466
|
-
},
|
|
6467
|
-
participantContacts: getParticipantContacts$1({
|
|
6468
|
-
phone: phone && formatPhone(phone),
|
|
6469
|
-
email,
|
|
6470
|
-
}),
|
|
6471
|
-
roleCd: {
|
|
6472
|
-
key: 'BORROWER',
|
|
6473
|
-
value: 'Заемщик',
|
|
6474
|
-
},
|
|
6475
|
-
},
|
|
6476
|
-
],
|
|
6516
|
+
...(profileId
|
|
6517
|
+
? {
|
|
6518
|
+
participants: [participantInfo],
|
|
6519
|
+
}
|
|
6520
|
+
: {
|
|
6521
|
+
participant: participantInfo,
|
|
6522
|
+
}),
|
|
6477
6523
|
marketingInfo,
|
|
6478
6524
|
},
|
|
6479
6525
|
};
|
|
6480
6526
|
};
|
|
6527
|
+
const getParticipant = ({ participantId, profileId, formData, consents, }) => {
|
|
6528
|
+
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
6529
|
+
return {
|
|
6530
|
+
birthDate: limitedBirthday && formatDate(limitedBirthday, true),
|
|
6531
|
+
id: participantId,
|
|
6532
|
+
midname: middleName,
|
|
6533
|
+
name,
|
|
6534
|
+
surname,
|
|
6535
|
+
...(profileId && {
|
|
6536
|
+
profile: {
|
|
6537
|
+
id: profileId,
|
|
6538
|
+
},
|
|
6539
|
+
}),
|
|
6540
|
+
participantContacts: getParticipantContacts$1({
|
|
6541
|
+
phone: phone && formatPhone(phone),
|
|
6542
|
+
email,
|
|
6543
|
+
}),
|
|
6544
|
+
roleCd: {
|
|
6545
|
+
key: 'BORROWER',
|
|
6546
|
+
value: 'Заемщик',
|
|
6547
|
+
},
|
|
6548
|
+
...consents,
|
|
6549
|
+
};
|
|
6550
|
+
};
|
|
6481
6551
|
const getDebitLeadFormTaskData = (formData, programId, marketingInfo) => {
|
|
6482
6552
|
const { name, surname, middleName, limitedBirthday, phone, email } = formData;
|
|
6483
6553
|
const taskSource = getTaskSource(marketingInfo?.utm_source);
|
|
@@ -6550,7 +6620,7 @@
|
|
|
6550
6620
|
|
|
6551
6621
|
/* eslint-disable max-lines */
|
|
6552
6622
|
// eslint-disable-next-line max-lines-per-function
|
|
6553
|
-
const useApplicationLeadApi = ({ programId, nextStepLink, productType, data, changeSubmitFormStatus, }) => {
|
|
6623
|
+
const useApplicationLeadApi = ({ programId, nextStepLink, productType, data, changeSubmitFormStatus, isNewMicroservice, }) => {
|
|
6554
6624
|
const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
|
|
6555
6625
|
const saveUserData = useSaveUserData();
|
|
6556
6626
|
const sessionStore = useSessionStore();
|
|
@@ -6567,7 +6637,7 @@
|
|
|
6567
6637
|
verifyPhoneDialog.close();
|
|
6568
6638
|
changeSubmitFormStatus(false);
|
|
6569
6639
|
};
|
|
6570
|
-
const
|
|
6640
|
+
const handleSubmitOldMicroservice = useCallback(async (formData) => {
|
|
6571
6641
|
try {
|
|
6572
6642
|
startSending();
|
|
6573
6643
|
const transformedFormData = transformFormData(formData);
|
|
@@ -6595,7 +6665,11 @@
|
|
|
6595
6665
|
goToNextStep();
|
|
6596
6666
|
}
|
|
6597
6667
|
else {
|
|
6598
|
-
consentBkiDialog.open(
|
|
6668
|
+
consentBkiDialog.open({
|
|
6669
|
+
phone: transformedFormData.phone,
|
|
6670
|
+
profileId,
|
|
6671
|
+
onFail: handleFailSendForm,
|
|
6672
|
+
});
|
|
6599
6673
|
}
|
|
6600
6674
|
};
|
|
6601
6675
|
const handleSuccessVerify = async () => {
|
|
@@ -6635,7 +6709,65 @@
|
|
|
6635
6709
|
endSending();
|
|
6636
6710
|
}
|
|
6637
6711
|
}, []);
|
|
6638
|
-
|
|
6712
|
+
const handleSubmitNewMicroservice = useCallback(async (formData) => {
|
|
6713
|
+
try {
|
|
6714
|
+
startSending();
|
|
6715
|
+
const transformedFormData = transformFormData(formData);
|
|
6716
|
+
const participantId = await createParticipant({
|
|
6717
|
+
phone: formatPhone(transformedFormData.phone),
|
|
6718
|
+
email: transformedFormData.email,
|
|
6719
|
+
});
|
|
6720
|
+
const referalData = leadFormStore.referalData;
|
|
6721
|
+
const marketingInfo = sessionStore.marketingInfo;
|
|
6722
|
+
if (!participantId) {
|
|
6723
|
+
throw new Error();
|
|
6724
|
+
}
|
|
6725
|
+
const sendCurrentTask = async () => {
|
|
6726
|
+
const taskId = await updateUserDataNewMicroservice({
|
|
6727
|
+
programId,
|
|
6728
|
+
participantId,
|
|
6729
|
+
formData: transformedFormData,
|
|
6730
|
+
referalData,
|
|
6731
|
+
productType,
|
|
6732
|
+
marketingInfo,
|
|
6733
|
+
saveUserData,
|
|
6734
|
+
sendAspects,
|
|
6735
|
+
});
|
|
6736
|
+
verifyPhoneDialog.close();
|
|
6737
|
+
consentBkiDialog.open({
|
|
6738
|
+
phone: transformedFormData.phone,
|
|
6739
|
+
taskId,
|
|
6740
|
+
participantId,
|
|
6741
|
+
onFail: handleFailSendForm,
|
|
6742
|
+
});
|
|
6743
|
+
};
|
|
6744
|
+
const handleSuccessVerify = async () => {
|
|
6745
|
+
try {
|
|
6746
|
+
await sendCurrentTask();
|
|
6747
|
+
}
|
|
6748
|
+
catch {
|
|
6749
|
+
handleFailSendForm();
|
|
6750
|
+
}
|
|
6751
|
+
};
|
|
6752
|
+
const acceptedConsents = getAcceptedConsents(transformedFormData, productType);
|
|
6753
|
+
verifyPhoneDialog.open({
|
|
6754
|
+
phone: transformedFormData.phone,
|
|
6755
|
+
consents: acceptedConsents,
|
|
6756
|
+
onSuccess: handleSuccessVerify,
|
|
6757
|
+
onFail: handleFailSendForm,
|
|
6758
|
+
});
|
|
6759
|
+
}
|
|
6760
|
+
catch {
|
|
6761
|
+
handleFailSendForm();
|
|
6762
|
+
}
|
|
6763
|
+
finally {
|
|
6764
|
+
endSending();
|
|
6765
|
+
}
|
|
6766
|
+
}, []);
|
|
6767
|
+
return {
|
|
6768
|
+
isSending,
|
|
6769
|
+
handleSubmit: isNewMicroservice ? handleSubmitNewMicroservice : handleSubmitOldMicroservice,
|
|
6770
|
+
};
|
|
6639
6771
|
};
|
|
6640
6772
|
const getAcceptedConsents = (formData, productType) => {
|
|
6641
6773
|
const consents = productTypeToConsentsMap[productType];
|
|
@@ -6682,6 +6814,37 @@
|
|
|
6682
6814
|
console.log(ex);
|
|
6683
6815
|
}
|
|
6684
6816
|
};
|
|
6817
|
+
const updateUserDataNewMicroservice = async ({ programId, participantId, formData, referalData, productType, marketingInfo, saveUserData, sendAspects, }) => {
|
|
6818
|
+
let taskId;
|
|
6819
|
+
const transformedConsents = transformConsentsFields(formData, productType);
|
|
6820
|
+
try {
|
|
6821
|
+
const creditData = await createDraftTask({
|
|
6822
|
+
participantId,
|
|
6823
|
+
programId,
|
|
6824
|
+
});
|
|
6825
|
+
taskId = creditData.taskId;
|
|
6826
|
+
await updateUserTask(getCreditLeadFormTaskData({
|
|
6827
|
+
participantId,
|
|
6828
|
+
taskId,
|
|
6829
|
+
formData,
|
|
6830
|
+
marketingInfo,
|
|
6831
|
+
consents: transformedConsents,
|
|
6832
|
+
}));
|
|
6833
|
+
if (referalData?.referalCode) {
|
|
6834
|
+
await saveReferalInfo({
|
|
6835
|
+
taskId,
|
|
6836
|
+
...referalData,
|
|
6837
|
+
});
|
|
6838
|
+
}
|
|
6839
|
+
sendAspects(participantId, taskId);
|
|
6840
|
+
saveUserData({ participantId, taskId, programId, formData });
|
|
6841
|
+
return taskId;
|
|
6842
|
+
}
|
|
6843
|
+
catch (ex) {
|
|
6844
|
+
console.log(ex);
|
|
6845
|
+
throw new Error();
|
|
6846
|
+
}
|
|
6847
|
+
};
|
|
6685
6848
|
const transformConsentsFields = (formData, productType) => {
|
|
6686
6849
|
const { consentOthersFlg, consentPfrFlg, processPersonalDataFlg, consentInformFlg, consentProviderFlg, consentInformMaterialsFlg, consentFATCA, } = formData;
|
|
6687
6850
|
let consents;
|
|
@@ -6764,13 +6927,16 @@
|
|
|
6764
6927
|
return () => clearInterval(timer);
|
|
6765
6928
|
};
|
|
6766
6929
|
|
|
6767
|
-
const esiaRequestProfile =
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6930
|
+
const esiaRequestProfile = async (body) => {
|
|
6931
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
6932
|
+
return await fetchRetailJSON(`${isNewMicroservice ? '/user-data' : ''}/esia/requestProfile`, 'POST', body).then((res) => {
|
|
6933
|
+
if (res?.access_token && res?.refresh_token) {
|
|
6934
|
+
saveToken(res);
|
|
6935
|
+
updateRefreshToken(true);
|
|
6936
|
+
}
|
|
6937
|
+
return res;
|
|
6938
|
+
});
|
|
6939
|
+
};
|
|
6774
6940
|
|
|
6775
6941
|
const useReferalProgramm = () => {
|
|
6776
6942
|
const leadFormStore = useLeadFormStore();
|
|
@@ -6854,12 +7020,12 @@
|
|
|
6854
7020
|
.then((response) => response.json());
|
|
6855
7021
|
};
|
|
6856
7022
|
|
|
6857
|
-
const parseEsiaProfile = async (esiaProfile, isDebit) => {
|
|
7023
|
+
const parseEsiaProfile = async (esiaProfile, isDebit = false, isNewMicroservice = false) => {
|
|
6858
7024
|
checkEsiaData(esiaProfile);
|
|
6859
|
-
const isFullEsiaData = !isDebit && checkEsiaAdditionalDocument(esiaProfile);
|
|
7025
|
+
const isFullEsiaData = !isDebit && checkEsiaAdditionalDocument(esiaProfile, isNewMicroservice);
|
|
6860
7026
|
const { profile, addInfo, document, addressRegistration, addressFact, esiaAdditionalDocument } = esiaProfile;
|
|
6861
7027
|
let files = [];
|
|
6862
|
-
if (isFullEsiaData) {
|
|
7028
|
+
if (isFullEsiaData && !isNewMicroservice) {
|
|
6863
7029
|
files = await saveDocuments(esiaAdditionalDocument);
|
|
6864
7030
|
}
|
|
6865
7031
|
const mainData = {
|
|
@@ -6990,8 +7156,16 @@
|
|
|
6990
7156
|
throw new Error();
|
|
6991
7157
|
}
|
|
6992
7158
|
};
|
|
6993
|
-
const checkEsiaAdditionalDocument = (esiaProfile) => {
|
|
7159
|
+
const checkEsiaAdditionalDocument = (esiaProfile, isNewMicroservice) => {
|
|
6994
7160
|
const { esiaAdditionalDocument } = esiaProfile;
|
|
7161
|
+
const documents = [
|
|
7162
|
+
esiaAdditionalDocument?.pdfFilePayout,
|
|
7163
|
+
esiaAdditionalDocument?.pdfFileWorkbook,
|
|
7164
|
+
esiaAdditionalDocument?.pdfFileSigPayout,
|
|
7165
|
+
esiaAdditionalDocument?.xmlFilePayout,
|
|
7166
|
+
esiaAdditionalDocument?.xmlFileSigPayout,
|
|
7167
|
+
esiaAdditionalDocument?.xmlFileWorkbook,
|
|
7168
|
+
];
|
|
6995
7169
|
const data = [
|
|
6996
7170
|
esiaAdditionalDocument?.inn,
|
|
6997
7171
|
esiaAdditionalDocument?.averageMonthlyIncome?.toString(),
|
|
@@ -7000,18 +7174,12 @@
|
|
|
7000
7174
|
esiaAdditionalDocument?.workLength?.toString(),
|
|
7001
7175
|
esiaAdditionalDocument?.workLengthLastJob?.toString(),
|
|
7002
7176
|
esiaAdditionalDocument?.jobsNumberInFiveYears?.toString(),
|
|
7003
|
-
esiaAdditionalDocument?.pdfFilePayout,
|
|
7004
|
-
esiaAdditionalDocument?.pdfFileWorkbook,
|
|
7005
|
-
esiaAdditionalDocument?.pdfFileSigPayout,
|
|
7006
|
-
esiaAdditionalDocument?.xmlFilePayout,
|
|
7007
|
-
esiaAdditionalDocument?.xmlFileSigPayout,
|
|
7008
|
-
esiaAdditionalDocument?.xmlFileWorkbook,
|
|
7009
7177
|
];
|
|
7010
|
-
return data.every(Boolean);
|
|
7178
|
+
return data.every(Boolean) && (isNewMicroservice || documents.every(Boolean));
|
|
7011
7179
|
};
|
|
7012
7180
|
|
|
7013
7181
|
/* eslint-disable camelcase */
|
|
7014
|
-
const useInitApplicationLead = ({ inputs, productType, setEsiaStatus, esiaAuthSuccess, }) => {
|
|
7182
|
+
const useInitApplicationLead = ({ inputs, productType, setEsiaStatus, esiaAuthSuccess, isNewMicroservice, }) => {
|
|
7015
7183
|
const leadFormStore = useLeadFormStore();
|
|
7016
7184
|
const saveForm = useSetter(leadFormStore, 'leadForm');
|
|
7017
7185
|
const sessionStore = useSessionStore();
|
|
@@ -7028,7 +7196,7 @@
|
|
|
7028
7196
|
authorize: true,
|
|
7029
7197
|
});
|
|
7030
7198
|
if (data) {
|
|
7031
|
-
const parsedData = await parseEsiaProfile(data, productType === 'debitCard');
|
|
7199
|
+
const parsedData = await parseEsiaProfile(data, productType === 'debitCard', isNewMicroservice);
|
|
7032
7200
|
saveForm((_) => ({
|
|
7033
7201
|
..._,
|
|
7034
7202
|
...parsedData,
|
|
@@ -7043,6 +7211,7 @@
|
|
|
7043
7211
|
useEffect(() => {
|
|
7044
7212
|
leadFormStore.productType = productType;
|
|
7045
7213
|
sessionStore.marketingInfo = getMarketingInfo(queryFromStorage, sessionStore);
|
|
7214
|
+
sessionStore.isNewMicroservice = isNewMicroservice || null;
|
|
7046
7215
|
}, [queryFromStorage]);
|
|
7047
7216
|
useEffect(() => {
|
|
7048
7217
|
const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
|
|
@@ -7075,7 +7244,7 @@
|
|
|
7075
7244
|
};
|
|
7076
7245
|
};
|
|
7077
7246
|
|
|
7078
|
-
const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, ...rest }) => {
|
|
7247
|
+
const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, isNewMicroservice = false, ...rest }) => {
|
|
7079
7248
|
const [esiaStatus, setEsiaStatus] = useState();
|
|
7080
7249
|
const [ok, setOK] = useState();
|
|
7081
7250
|
const [attemptsWithoutConsents, setAttemptsWithoutConsents] = useState(0);
|
|
@@ -7096,6 +7265,7 @@
|
|
|
7096
7265
|
productType,
|
|
7097
7266
|
setEsiaStatus,
|
|
7098
7267
|
esiaAuthSuccess: esiaStatus === EsiaStatuses.Success,
|
|
7268
|
+
isNewMicroservice,
|
|
7099
7269
|
});
|
|
7100
7270
|
const { isSending, handleSubmit } = useApplicationLeadApi({
|
|
7101
7271
|
programId,
|
|
@@ -7103,6 +7273,7 @@
|
|
|
7103
7273
|
productType,
|
|
7104
7274
|
data,
|
|
7105
7275
|
changeSubmitFormStatus,
|
|
7276
|
+
isNewMicroservice,
|
|
7106
7277
|
});
|
|
7107
7278
|
const [, { field, onSubmit, reset }] = useForm(initialFormState, {
|
|
7108
7279
|
formValidator,
|
|
@@ -7706,7 +7877,7 @@
|
|
|
7706
7877
|
};
|
|
7707
7878
|
function useBusinessDepositRates(rateParams) {
|
|
7708
7879
|
const serviceName = rateParams?.rateType ? DEPOSIT_RATES_SERVICE_MAP[rateParams?.rateType] : '';
|
|
7709
|
-
const { data } = useAsyncData(serviceName ? `${API_BASE_URI
|
|
7880
|
+
const { data } = useAsyncData(serviceName ? `${API_BASE_URI}/depositrates/${serviceName}` : null, fetchJSONUnsafe);
|
|
7710
7881
|
return Array.isArray(data) ? data : [];
|
|
7711
7882
|
}
|
|
7712
7883
|
|
|
@@ -8250,7 +8421,7 @@
|
|
|
8250
8421
|
failUrl: `${navigator.origin}${FAILED_URL}`,
|
|
8251
8422
|
language: LANGUAGE,
|
|
8252
8423
|
};
|
|
8253
|
-
const url = `${API_BASE_URI
|
|
8424
|
+
const url = `${API_BASE_URI}/payment/${paymentURLMap[typeForm]}`;
|
|
8254
8425
|
try {
|
|
8255
8426
|
const res = await fetch(url, {
|
|
8256
8427
|
method: 'POST',
|
|
@@ -9639,6 +9810,10 @@
|
|
|
9639
9810
|
return (jsx("div", { className: "py-lg px-5xl bg-white col-span-12", children: jsxs("div", { children: [jsxs("span", { className: "font-bold mr-s", children: ["\u0428\u0430\u0433 ", step, " \u0438\u0437 ", totalSteps, "."] }), stepsTitles[step] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }) }));
|
|
9640
9811
|
});
|
|
9641
9812
|
|
|
9813
|
+
const sendMessage = async (body) => {
|
|
9814
|
+
await doRequest('/camunda/send/message', 'POST', body);
|
|
9815
|
+
};
|
|
9816
|
+
|
|
9642
9817
|
const FailedStatusContent$1 = JSX(() => (jsx(FormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0412\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435", description: "\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u0411\u0430\u043D\u043A \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u043E\u0434\u043E\u0431\u0440\u0438\u0442\u044C \u0412\u0430\u0448\u0443 \u0437\u0430\u044F\u0432\u043A\u0443 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0434\u0430\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443 \u043F\u043E\u0437\u0436\u0435. \u0421\u043F\u0430\u0441\u0438\u0431\u043E \u0437\u0430 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0432 \u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB.", buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })));
|
|
9643
9818
|
|
|
9644
9819
|
const PendingStatusContent$1 = JSX(({ onExpire }) => {
|
|
@@ -9716,13 +9891,25 @@
|
|
|
9716
9891
|
'CREATE_APPLICATION_SHORT_SIGNAL',
|
|
9717
9892
|
'CREATE_APPLICATION_LOAN_V3_SIGNAL',
|
|
9718
9893
|
];
|
|
9894
|
+
const MESSAGE_NAMES = [
|
|
9895
|
+
'CREATE_APPLICATION_SHORT_MESSAGE',
|
|
9896
|
+
// 'CREATE_APPLICATION_LOAN_MESSAGE',
|
|
9897
|
+
];
|
|
9719
9898
|
const CreditFormStatusTracker = JSX(() => {
|
|
9899
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
9720
9900
|
const [status, setStatus] = useState(STATUS_TYPE.process);
|
|
9721
9901
|
const { taskId } = useRetailFormStore();
|
|
9722
9902
|
useEffect(() => {
|
|
9723
9903
|
(async () => {
|
|
9724
|
-
|
|
9725
|
-
|
|
9904
|
+
if (isNewMicroservice) {
|
|
9905
|
+
for (const messageName of MESSAGE_NAMES) {
|
|
9906
|
+
await sendMessage({ messageName, taskId });
|
|
9907
|
+
}
|
|
9908
|
+
}
|
|
9909
|
+
else {
|
|
9910
|
+
for (const signalType of SIGNAL_TYPES) {
|
|
9911
|
+
await sendSignalToProcess({ signalType, taskId });
|
|
9912
|
+
}
|
|
9726
9913
|
}
|
|
9727
9914
|
})();
|
|
9728
9915
|
}, [taskId]);
|
|
@@ -9784,33 +9971,43 @@
|
|
|
9784
9971
|
};
|
|
9785
9972
|
};
|
|
9786
9973
|
|
|
9787
|
-
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) =>
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9791
|
-
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
{
|
|
9795
|
-
id: participantId,
|
|
9796
|
-
profile: {
|
|
9797
|
-
id: profileId,
|
|
9798
|
-
},
|
|
9799
|
-
roleCd: {
|
|
9800
|
-
key: 'BORROWER',
|
|
9801
|
-
value: 'Заемщик',
|
|
9802
|
-
},
|
|
9803
|
-
...getCurrentStepData$1(step, formData),
|
|
9974
|
+
const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
|
|
9975
|
+
const isNewMicroservice = checkNewMicroservice();
|
|
9976
|
+
const participantInfo = {
|
|
9977
|
+
id: participantId,
|
|
9978
|
+
...(!isNewMicroservice && {
|
|
9979
|
+
profile: {
|
|
9980
|
+
id: profileId,
|
|
9804
9981
|
},
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
key: formData?.esiaAccountTypeCd?.key,
|
|
9982
|
+
}),
|
|
9983
|
+
roleCd: {
|
|
9984
|
+
key: 'BORROWER',
|
|
9985
|
+
value: 'Заемщик',
|
|
9810
9986
|
},
|
|
9811
|
-
|
|
9812
|
-
}
|
|
9813
|
-
|
|
9987
|
+
...getCurrentStepData$1(step, formData),
|
|
9988
|
+
};
|
|
9989
|
+
return {
|
|
9990
|
+
sendToBank: true,
|
|
9991
|
+
taskKind: 'UNITED',
|
|
9992
|
+
task: {
|
|
9993
|
+
id: taskId,
|
|
9994
|
+
authorizedAgentId: formData?.bankEmployeeCode,
|
|
9995
|
+
...(isNewMicroservice
|
|
9996
|
+
? {
|
|
9997
|
+
participant: participantInfo,
|
|
9998
|
+
}
|
|
9999
|
+
: {
|
|
10000
|
+
participants: [participantInfo],
|
|
10001
|
+
}),
|
|
10002
|
+
...getCalcData(formData),
|
|
10003
|
+
...getDeliveryCreditData(formData),
|
|
10004
|
+
esiaAccountTypeCd: {
|
|
10005
|
+
key: formData?.esiaAccountTypeCd?.key,
|
|
10006
|
+
},
|
|
10007
|
+
files: formData?.files,
|
|
10008
|
+
},
|
|
10009
|
+
};
|
|
10010
|
+
};
|
|
9814
10011
|
const getCurrentStepData$1 = (step, formData) => {
|
|
9815
10012
|
switch (step) {
|
|
9816
10013
|
case 0:
|
|
@@ -9875,7 +10072,7 @@
|
|
|
9875
10072
|
retailFormStore.leadForm = formData;
|
|
9876
10073
|
try {
|
|
9877
10074
|
const { taskId, profileId, participantId } = retailFormStore;
|
|
9878
|
-
if (taskId
|
|
10075
|
+
if (taskId) {
|
|
9879
10076
|
const response = await updateUserTask(getCreditFormTaskData({
|
|
9880
10077
|
participantId,
|
|
9881
10078
|
taskId,
|
|
@@ -10694,7 +10891,7 @@
|
|
|
10694
10891
|
};
|
|
10695
10892
|
const ErrorBlock = JSX(({ className = '', title, description, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-center items-center', className), defaultPadding: style('p-6xl'), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center", children: renderErrorContent(error) }), jsx(Headline, { title: title, description: description, headlineVersion: "XL", isEmbedded: true, className: "mb-2xl last:mb-0" }), button?.text ? (jsx(LinkButton, { version: button?.version, text: button?.text, ...button })) : null] })));
|
|
10696
10893
|
|
|
10697
|
-
const REGION_URL = `${API_BASE_URI
|
|
10894
|
+
const REGION_URL = `${API_BASE_URI}/region`;
|
|
10698
10895
|
function useLocation(defaultLocation = 'Москва') {
|
|
10699
10896
|
const locationStore = useLocalStore();
|
|
10700
10897
|
return locationStore.location ?? { name: defaultLocation };
|
|
@@ -10883,7 +11080,7 @@
|
|
|
10883
11080
|
}
|
|
10884
11081
|
};
|
|
10885
11082
|
|
|
10886
|
-
const EXCHANGE_RATES_URL = `${API_BASE_URI
|
|
11083
|
+
const EXCHANGE_RATES_URL = `${API_BASE_URI}/exchangerates`;
|
|
10887
11084
|
function useFetchExchangeRateData(currentRegion) {
|
|
10888
11085
|
const regionCode = currentRegion?.code || '000';
|
|
10889
11086
|
const { data } = useAsyncData(EXCHANGE_RATES_URL + `?regionCode=${regionCode}`, fetchJSONUnsafe);
|
|
@@ -11131,7 +11328,7 @@
|
|
|
11131
11328
|
});
|
|
11132
11329
|
|
|
11133
11330
|
const IS_SINGLE_SEARCH_INDEX = Boolean(env.SINGLE_SEARCH_INDEX);
|
|
11134
|
-
const SearchDialog = JSX(({ initialQuery, navigationItems, onClose
|
|
11331
|
+
const SearchDialog = JSX(({ initialQuery, navigationItems, onClose }) => {
|
|
11135
11332
|
const basePath = getBasePath(env.SITE_URL);
|
|
11136
11333
|
const basePathList = useMemo(() => (IS_SINGLE_SEARCH_INDEX ? [basePath] : navigationItems?.map((_) => _.href || '/')), [navigationItems]);
|
|
11137
11334
|
const [searchResult, searchInputProps] = useSearch({
|
|
@@ -11139,7 +11336,7 @@
|
|
|
11139
11336
|
initialQuery,
|
|
11140
11337
|
});
|
|
11141
11338
|
const searchItems = useMemo(() => combineTopItemsAndSearchResult(navigationItems)(searchResult), [navigationItems, searchResult]);
|
|
11142
|
-
return (jsx(Dialog, { maxWidth: "none", head: jsx(SearchInput, { className: "mt-s", autoFocus: true,
|
|
11339
|
+
return (jsx(Dialog, { maxWidth: "none", head: jsx(SearchInput, { className: "mt-s", autoFocus: true, ...searchInputProps }), onClose: onClose, children: jsx(Sitemap, { navigationItems: searchItems, isSearchPanel: true }) }));
|
|
11143
11340
|
});
|
|
11144
11341
|
const combineTopItemsAndSearchResult = (topItems) => (searchResult) => topItems?.length && searchResult?.length
|
|
11145
11342
|
? zip(topItems, searchResult).map(([_, portalSearchResult]) => ({
|
|
@@ -11159,15 +11356,15 @@
|
|
|
11159
11356
|
searchDialog.open({ initialQuery: _, onClose: resetQueryOnDialogClose });
|
|
11160
11357
|
}
|
|
11161
11358
|
}, [resetQueryOnDialogClose, searchDialog]);
|
|
11162
|
-
return (jsxs("div", { className: style('relative', className), role: "search", children: [jsx(SearchInput, { value: value, placeholder: search?.placeholder, onChange: handleInitialInputChange
|
|
11359
|
+
return (jsxs("div", { className: style('relative', className), role: "search", children: [jsx(SearchInput, { value: value, placeholder: search?.placeholder, onChange: handleInitialInputChange }), jsx(CloseButton, { className: "absolute top-0 right-0 sm:hidden", onClose: resetQueryOnDialogClose })] }));
|
|
11163
11360
|
});
|
|
11164
11361
|
const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
|
|
11165
11362
|
|
|
11166
11363
|
const renderLogoSearchBar = (common, navigationItems) => {
|
|
11167
|
-
const { logo
|
|
11364
|
+
const { logo } = common ?? {};
|
|
11168
11365
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11169
11366
|
const { dataHeader, dataFooter, ...logoProps } = logo ?? {};
|
|
11170
|
-
return (jsxs("div", { className: "flex items-stretch gap-3xl", children: [jsx(Logo, { className: LEFT_COLUMN_STYLE, logo: logoProps, data: dataFooter, showTitle: false }), jsx(SearchBar$1, { className: "grow", navigationItems: navigationItems,
|
|
11367
|
+
return (jsxs("div", { className: "flex items-stretch gap-3xl", children: [jsx(Logo, { className: LEFT_COLUMN_STYLE, logo: logoProps, data: dataFooter, showTitle: false }), jsx(SearchBar$1, { className: "grow", navigationItems: navigationItems, ...common })] }));
|
|
11171
11368
|
};
|
|
11172
11369
|
|
|
11173
11370
|
const TextInformationLink = JSX(({ className = '', index, ...rest }) => {
|
|
@@ -11182,7 +11379,7 @@
|
|
|
11182
11379
|
const { navigationItems } = rest.options?.page?.navigation ?? {};
|
|
11183
11380
|
const common = rest.options?.page?.common ?? {};
|
|
11184
11381
|
const { documents, relatedEnterprises, contacts, mediaLinks = [], horizontalNavigationTitle, feedbackButton, license, otherLinks = [], } = footer ?? {};
|
|
11185
|
-
return (jsxs(BlockWrapper, { tag: "footer", className: style('grid gap-y-xl p-4xl pb-24 lg:p-xl', className), ...rest, children: [renderLogoSearchBar(common, navigationItems), jsxs("div", { className: "flex flex-col lg:flex-row items-center @lg:items-stretch gap-lg lg:gap-6xl ", children: [jsx(Sitemap, { navigationItems: navigationItems }), jsx("div", { className: "border-t border-main-divider lg:hidden w-full" }), jsxs("div", { className: style(LEFT_COLUMN_STYLE, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), feedbackButton ? (jsx(LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => (jsx(SocialMedia, { media: _?.links ?? [], showButtonText: false, stretched: true, children: _?.title }, String(i)))),
|
|
11382
|
+
return (jsxs(BlockWrapper, { tag: "footer", className: style('grid gap-y-xl p-4xl pb-24 lg:p-xl', className), ...rest, children: [renderLogoSearchBar(common, navigationItems), jsxs("div", { className: "flex flex-col lg:flex-row items-center @lg:items-stretch gap-lg lg:gap-6xl ", children: [jsx(Sitemap, { navigationItems: navigationItems }), jsx("div", { className: "border-t border-main-divider lg:hidden w-full" }), jsxs("div", { className: style(LEFT_COLUMN_STYLE, 'flex flex-col shrink-0 overflow-hidden space-y-xl'), children: [jsx(Contacts, { items: contacts }), feedbackButton ? (jsx(LinkButton, { className: "w-full", version: "primary", ...feedbackButton })) : null, mediaLinks.map((_, i) => (jsx(SocialMedia, { media: _?.links ?? [], showButtonText: false, stretched: true, children: _?.title }, String(i)))), otherLinks.map((_, i) => (jsx(Link, { className: "text-s font-light", ..._ }, `${_.href}_${i}`)))] })] }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents, license: license })] }));
|
|
11186
11383
|
});
|
|
11187
11384
|
|
|
11188
11385
|
const getInnerPadding = (isPadding = false) => isPadding ? {} : { padding: 'p-0' };
|
|
@@ -11922,7 +12119,7 @@
|
|
|
11922
12119
|
|
|
11923
12120
|
const EMPTY_VALUE$1 = [];
|
|
11924
12121
|
function useAtms(regionCode) {
|
|
11925
|
-
const { data, error } = useAsyncData(`${API_BASE_URI
|
|
12122
|
+
const { data, error } = useAsyncData(`${API_BASE_URI}/atms?regionCode=${regionCode}`, fetchMap$1);
|
|
11926
12123
|
const isLoad = !data && !error;
|
|
11927
12124
|
return { data: data || EMPTY_VALUE$1, isLoad };
|
|
11928
12125
|
}
|
|
@@ -11963,7 +12160,7 @@
|
|
|
11963
12160
|
|
|
11964
12161
|
const EMPTY_VALUE = { branches: [], remoteWorkplaces: [] };
|
|
11965
12162
|
function useOffices(regionCode = '000') {
|
|
11966
|
-
const { data, error } = useAsyncData(`${API_BASE_URI
|
|
12163
|
+
const { data, error } = useAsyncData(`${API_BASE_URI}/branchesAndRemoteWorkplaces?regionCode=${encodeURIComponent(regionCode)}`, fetchMap);
|
|
11967
12164
|
const isLoad = !data && !error;
|
|
11968
12165
|
return { data: data || EMPTY_VALUE, isLoad };
|
|
11969
12166
|
}
|
|
@@ -12599,7 +12796,7 @@
|
|
|
12599
12796
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
12600
12797
|
});
|
|
12601
12798
|
|
|
12602
|
-
const packageVersion = "0.14.
|
|
12799
|
+
const packageVersion = "0.14.951";
|
|
12603
12800
|
|
|
12604
12801
|
exports.Blocks = Blocks;
|
|
12605
12802
|
exports.ContentPage = ContentPage;
|