@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.
Files changed (512) hide show
  1. package/bundle/api/apiBaseUrl.d.ts +0 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +318 -121
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  6. package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  7. package/bundle/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  8. package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  9. package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  10. package/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  11. package/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  12. package/bundle/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  13. package/bundle/retail/api/apiBaseUrl.d.ts +2 -1
  14. package/bundle/retail/api/checkCaptcha.d.ts +1 -0
  15. package/bundle/retail/api/checkCode.d.ts +1 -0
  16. package/bundle/retail/api/createDraftTask.d.ts +2 -1
  17. package/bundle/retail/api/createParticipant.d.ts +6 -0
  18. package/bundle/retail/api/sendMessage.d.ts +7 -0
  19. package/bundle/retail/api/updateUserTask.d.ts +14 -8
  20. package/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  21. package/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  22. package/bundle/retail/hooks/useRetailFormStore.d.ts +1 -1
  23. package/bundle/retail/model/LeadFormState.d.ts +2 -4
  24. package/bundle/retail/utils/checkNewMicroservice.d.ts +1 -0
  25. package/bundle/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  26. package/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  27. package/dist/api/apiBaseUrl.d.ts +0 -1
  28. package/dist/api/apiBaseUrl.js +1 -2
  29. package/dist/api/apiBaseUrl.js.map +1 -1
  30. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  31. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  32. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  33. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  34. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +35 -24
  35. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  36. package/dist/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  37. package/dist/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
  38. package/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  39. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  40. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
  41. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  42. package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  43. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
  44. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  45. package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  46. package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  47. package/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  48. package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  49. package/dist/components/CreditForm/CreditFormStatusTracker.js +16 -2
  50. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  51. package/dist/components/CreditForm/useCreditFormAPI.js +1 -1
  52. package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  53. package/dist/components/Footer/Footer.js +1 -1
  54. package/dist/components/Footer/Footer.js.map +1 -1
  55. package/dist/components/Footer/renderLogoSearchBar.js +2 -2
  56. package/dist/components/Footer/renderLogoSearchBar.js.map +1 -1
  57. package/dist/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  58. package/dist/retail/adaptors/getCreditFormTaskData.js +36 -25
  59. package/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  60. package/dist/retail/adaptors/utils.js +1 -1
  61. package/dist/retail/adaptors/utils.js.map +1 -1
  62. package/dist/retail/api/apiBaseUrl.d.ts +2 -1
  63. package/dist/retail/api/apiBaseUrl.js +3 -2
  64. package/dist/retail/api/apiBaseUrl.js.map +1 -1
  65. package/dist/retail/api/checkCaptcha.d.ts +1 -0
  66. package/dist/retail/api/checkCaptcha.js +10 -3
  67. package/dist/retail/api/checkCaptcha.js.map +1 -1
  68. package/dist/retail/api/checkCode.d.ts +1 -0
  69. package/dist/retail/api/checkCode.js +9 -1
  70. package/dist/retail/api/checkCode.js.map +1 -1
  71. package/dist/retail/api/createCaptcha.js +5 -1
  72. package/dist/retail/api/createCaptcha.js.map +1 -1
  73. package/dist/retail/api/createDraftTask.d.ts +2 -1
  74. package/dist/retail/api/createDraftTask.js.map +1 -1
  75. package/dist/retail/api/createParticipant.d.ts +6 -0
  76. package/dist/retail/api/createParticipant.js +6 -0
  77. package/dist/retail/api/createParticipant.js.map +1 -0
  78. package/dist/retail/api/doRequest.js +4 -2
  79. package/dist/retail/api/doRequest.js.map +1 -1
  80. package/dist/retail/api/esiaRequestProfile.js +11 -7
  81. package/dist/retail/api/esiaRequestProfile.js.map +1 -1
  82. package/dist/retail/api/getDictionaries.js +3 -1
  83. package/dist/retail/api/getDictionaries.js.map +1 -1
  84. package/dist/retail/api/getLink.js +5 -1
  85. package/dist/retail/api/getLink.js.map +1 -1
  86. package/dist/retail/api/sendCode.js +8 -1
  87. package/dist/retail/api/sendCode.js.map +1 -1
  88. package/dist/retail/api/sendMessage.d.ts +7 -0
  89. package/dist/retail/api/sendMessage.js +8 -0
  90. package/dist/retail/api/sendMessage.js.map +1 -0
  91. package/dist/retail/api/updateUserTask.d.ts +14 -8
  92. package/dist/retail/api/updateUserTask.js.map +1 -1
  93. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  94. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  95. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  96. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
  97. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  98. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  99. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  100. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  101. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
  102. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  103. package/dist/retail/hooks/useLeadFormData.js +3 -1
  104. package/dist/retail/hooks/useLeadFormData.js.map +1 -1
  105. package/dist/retail/hooks/useRetailFormStore.d.ts +1 -1
  106. package/dist/retail/model/LeadFormState.d.ts +2 -4
  107. package/dist/retail/utils/checkNewMicroservice.d.ts +1 -0
  108. package/dist/retail/utils/checkNewMicroservice.js +8 -0
  109. package/dist/retail/utils/checkNewMicroservice.js.map +1 -0
  110. package/dist/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  111. package/dist/ui-kit/SearchBar/SearchBar.js +1 -1
  112. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  113. package/dist/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  114. package/dist/ui-kit/SearchDialog/SearchDialog.js +2 -2
  115. package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  116. package/dist/ui-kit/YandexMap/useYandexMaps.js +1 -2
  117. package/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  118. package/dist/wlc.json +1 -2
  119. package/lib/api/apiBaseUrl.d.ts +0 -1
  120. package/lib/api/apiBaseUrl.js +0 -1
  121. package/lib/api/apiBaseUrl.js.map +1 -1
  122. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +1 -0
  123. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  124. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  125. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  126. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  127. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +33 -23
  128. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  129. package/lib/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  130. package/lib/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
  131. package/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  132. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  133. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
  134. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  135. package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  136. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
  137. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  138. package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  139. package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  140. package/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  141. package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  142. package/lib/components/CreditForm/CreditFormStatusTracker.js +16 -2
  143. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  144. package/lib/components/CreditForm/useCreditFormAPI.js +1 -1
  145. package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  146. package/lib/components/Footer/Footer.js +1 -1
  147. package/lib/components/Footer/Footer.js.map +1 -1
  148. package/lib/components/Footer/renderLogoSearchBar.js +2 -2
  149. package/lib/components/Footer/renderLogoSearchBar.js.map +1 -1
  150. package/lib/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  151. package/lib/retail/adaptors/getCreditFormTaskData.js +36 -25
  152. package/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  153. package/lib/retail/adaptors/utils.js +1 -1
  154. package/lib/retail/adaptors/utils.js.map +1 -1
  155. package/lib/retail/api/apiBaseUrl.d.ts +2 -1
  156. package/lib/retail/api/apiBaseUrl.js +2 -1
  157. package/lib/retail/api/apiBaseUrl.js.map +1 -1
  158. package/lib/retail/api/checkCaptcha.d.ts +1 -0
  159. package/lib/retail/api/checkCaptcha.js +10 -3
  160. package/lib/retail/api/checkCaptcha.js.map +1 -1
  161. package/lib/retail/api/checkCode.d.ts +1 -0
  162. package/lib/retail/api/checkCode.js +9 -1
  163. package/lib/retail/api/checkCode.js.map +1 -1
  164. package/lib/retail/api/createCaptcha.js +5 -1
  165. package/lib/retail/api/createCaptcha.js.map +1 -1
  166. package/lib/retail/api/createDraftTask.d.ts +2 -1
  167. package/lib/retail/api/createDraftTask.js.map +1 -1
  168. package/lib/retail/api/createParticipant.d.ts +6 -0
  169. package/lib/retail/api/createParticipant.js +3 -0
  170. package/lib/retail/api/createParticipant.js.map +1 -0
  171. package/lib/retail/api/doRequest.js +4 -2
  172. package/lib/retail/api/doRequest.js.map +1 -1
  173. package/lib/retail/api/esiaRequestProfile.js +11 -7
  174. package/lib/retail/api/esiaRequestProfile.js.map +1 -1
  175. package/lib/retail/api/getDictionaries.js +3 -1
  176. package/lib/retail/api/getDictionaries.js.map +1 -1
  177. package/lib/retail/api/getLink.js +5 -1
  178. package/lib/retail/api/getLink.js.map +1 -1
  179. package/lib/retail/api/sendCode.js +8 -1
  180. package/lib/retail/api/sendCode.js.map +1 -1
  181. package/lib/retail/api/sendMessage.d.ts +7 -0
  182. package/lib/retail/api/sendMessage.js +5 -0
  183. package/lib/retail/api/sendMessage.js.map +1 -0
  184. package/lib/retail/api/updateUserTask.d.ts +14 -8
  185. package/lib/retail/api/updateUserTask.js.map +1 -1
  186. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  187. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  188. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  189. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
  190. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  191. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  192. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  193. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  194. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
  195. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  196. package/lib/retail/hooks/useLeadFormData.js +4 -2
  197. package/lib/retail/hooks/useLeadFormData.js.map +1 -1
  198. package/lib/retail/hooks/useRetailFormStore.d.ts +1 -1
  199. package/lib/retail/model/LeadFormState.d.ts +2 -4
  200. package/lib/retail/utils/checkNewMicroservice.d.ts +1 -0
  201. package/lib/retail/utils/checkNewMicroservice.js +5 -0
  202. package/lib/retail/utils/checkNewMicroservice.js.map +1 -0
  203. package/lib/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  204. package/lib/ui-kit/SearchBar/SearchBar.js +1 -1
  205. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  206. package/lib/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  207. package/lib/ui-kit/SearchDialog/SearchDialog.js +2 -2
  208. package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  209. package/lib/ui-kit/YandexMap/useYandexMaps.js +1 -2
  210. package/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  211. package/lib/wlc.json +1 -2
  212. package/mobile/bundle/api/apiBaseUrl.d.ts +0 -1
  213. package/mobile/bundle/bundle.umd.js +313 -116
  214. package/mobile/bundle/bundle.umd.min.js +1 -1
  215. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  216. package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  217. package/mobile/bundle/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  218. package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  219. package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  220. package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  221. package/mobile/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  222. package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  223. package/mobile/bundle/retail/api/apiBaseUrl.d.ts +2 -1
  224. package/mobile/bundle/retail/api/checkCaptcha.d.ts +1 -0
  225. package/mobile/bundle/retail/api/checkCode.d.ts +1 -0
  226. package/mobile/bundle/retail/api/createDraftTask.d.ts +2 -1
  227. package/mobile/bundle/retail/api/createParticipant.d.ts +6 -0
  228. package/mobile/bundle/retail/api/sendMessage.d.ts +7 -0
  229. package/mobile/bundle/retail/api/updateUserTask.d.ts +14 -8
  230. package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  231. package/mobile/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  232. package/mobile/bundle/retail/hooks/useRetailFormStore.d.ts +1 -1
  233. package/mobile/bundle/retail/model/LeadFormState.d.ts +2 -4
  234. package/mobile/bundle/retail/utils/checkNewMicroservice.d.ts +1 -0
  235. package/mobile/bundle/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  236. package/mobile/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  237. package/mobile/dist/api/apiBaseUrl.d.ts +0 -1
  238. package/mobile/dist/api/apiBaseUrl.js +1 -2
  239. package/mobile/dist/api/apiBaseUrl.js.map +1 -1
  240. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  241. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  242. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  243. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  244. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +35 -24
  245. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  246. package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  247. package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
  248. package/mobile/dist/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  249. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  250. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
  251. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  252. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  253. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
  254. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  255. package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  256. package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  257. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  258. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  259. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +16 -2
  260. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  261. package/mobile/dist/components/CreditForm/useCreditFormAPI.js +1 -1
  262. package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  263. package/mobile/dist/components/Footer/Footer.js +1 -1
  264. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  265. package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  266. package/mobile/dist/retail/adaptors/getCreditFormTaskData.js +36 -25
  267. package/mobile/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  268. package/mobile/dist/retail/adaptors/utils.js +1 -1
  269. package/mobile/dist/retail/adaptors/utils.js.map +1 -1
  270. package/mobile/dist/retail/api/apiBaseUrl.d.ts +2 -1
  271. package/mobile/dist/retail/api/apiBaseUrl.js +3 -2
  272. package/mobile/dist/retail/api/apiBaseUrl.js.map +1 -1
  273. package/mobile/dist/retail/api/checkCaptcha.d.ts +1 -0
  274. package/mobile/dist/retail/api/checkCaptcha.js +10 -3
  275. package/mobile/dist/retail/api/checkCaptcha.js.map +1 -1
  276. package/mobile/dist/retail/api/checkCode.d.ts +1 -0
  277. package/mobile/dist/retail/api/checkCode.js +9 -1
  278. package/mobile/dist/retail/api/checkCode.js.map +1 -1
  279. package/mobile/dist/retail/api/createCaptcha.js +5 -1
  280. package/mobile/dist/retail/api/createCaptcha.js.map +1 -1
  281. package/mobile/dist/retail/api/createDraftTask.d.ts +2 -1
  282. package/mobile/dist/retail/api/createDraftTask.js.map +1 -1
  283. package/mobile/dist/retail/api/createParticipant.d.ts +6 -0
  284. package/mobile/dist/retail/api/createParticipant.js +6 -0
  285. package/mobile/dist/retail/api/createParticipant.js.map +1 -0
  286. package/mobile/dist/retail/api/doRequest.js +4 -2
  287. package/mobile/dist/retail/api/doRequest.js.map +1 -1
  288. package/mobile/dist/retail/api/esiaRequestProfile.js +11 -7
  289. package/mobile/dist/retail/api/esiaRequestProfile.js.map +1 -1
  290. package/mobile/dist/retail/api/getDictionaries.js +3 -1
  291. package/mobile/dist/retail/api/getDictionaries.js.map +1 -1
  292. package/mobile/dist/retail/api/getLink.js +5 -1
  293. package/mobile/dist/retail/api/getLink.js.map +1 -1
  294. package/mobile/dist/retail/api/sendCode.js +8 -1
  295. package/mobile/dist/retail/api/sendCode.js.map +1 -1
  296. package/mobile/dist/retail/api/sendMessage.d.ts +7 -0
  297. package/mobile/dist/retail/api/sendMessage.js +8 -0
  298. package/mobile/dist/retail/api/sendMessage.js.map +1 -0
  299. package/mobile/dist/retail/api/updateUserTask.d.ts +14 -8
  300. package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
  301. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  302. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  303. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  304. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
  305. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  306. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  307. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  308. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  309. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
  310. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  311. package/mobile/dist/retail/hooks/useLeadFormData.js +3 -1
  312. package/mobile/dist/retail/hooks/useLeadFormData.js.map +1 -1
  313. package/mobile/dist/retail/hooks/useRetailFormStore.d.ts +1 -1
  314. package/mobile/dist/retail/model/LeadFormState.d.ts +2 -4
  315. package/mobile/dist/retail/utils/checkNewMicroservice.d.ts +1 -0
  316. package/mobile/dist/retail/utils/checkNewMicroservice.js +8 -0
  317. package/mobile/dist/retail/utils/checkNewMicroservice.js.map +1 -0
  318. package/mobile/dist/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  319. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +1 -1
  320. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  321. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  322. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +2 -2
  323. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  324. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js +1 -2
  325. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  326. package/mobile/dist/wlc.json +1 -2
  327. package/mobile/lib/api/apiBaseUrl.d.ts +0 -1
  328. package/mobile/lib/api/apiBaseUrl.js +0 -1
  329. package/mobile/lib/api/apiBaseUrl.js.map +1 -1
  330. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -1
  331. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  332. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -0
  333. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +6 -4
  334. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +33 -23
  335. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  336. package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.d.ts +1 -1
  337. package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js +13 -11
  338. package/mobile/lib/components/ApplicationLeadForm/parseEsiaProfile.js.map +1 -1
  339. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +2 -1
  340. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +98 -4
  341. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  342. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +3 -1
  343. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +3 -2
  344. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  345. package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +3 -2
  346. package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  347. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +2 -1
  348. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  349. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +16 -2
  350. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  351. package/mobile/lib/components/CreditForm/useCreditFormAPI.js +1 -1
  352. package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  353. package/mobile/lib/components/Footer/Footer.js +1 -1
  354. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  355. package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +3 -2
  356. package/mobile/lib/retail/adaptors/getCreditFormTaskData.js +36 -25
  357. package/mobile/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  358. package/mobile/lib/retail/adaptors/utils.js +1 -1
  359. package/mobile/lib/retail/adaptors/utils.js.map +1 -1
  360. package/mobile/lib/retail/api/apiBaseUrl.d.ts +2 -1
  361. package/mobile/lib/retail/api/apiBaseUrl.js +2 -1
  362. package/mobile/lib/retail/api/apiBaseUrl.js.map +1 -1
  363. package/mobile/lib/retail/api/checkCaptcha.d.ts +1 -0
  364. package/mobile/lib/retail/api/checkCaptcha.js +10 -3
  365. package/mobile/lib/retail/api/checkCaptcha.js.map +1 -1
  366. package/mobile/lib/retail/api/checkCode.d.ts +1 -0
  367. package/mobile/lib/retail/api/checkCode.js +9 -1
  368. package/mobile/lib/retail/api/checkCode.js.map +1 -1
  369. package/mobile/lib/retail/api/createCaptcha.js +5 -1
  370. package/mobile/lib/retail/api/createCaptcha.js.map +1 -1
  371. package/mobile/lib/retail/api/createDraftTask.d.ts +2 -1
  372. package/mobile/lib/retail/api/createDraftTask.js.map +1 -1
  373. package/mobile/lib/retail/api/createParticipant.d.ts +6 -0
  374. package/mobile/lib/retail/api/createParticipant.js +3 -0
  375. package/mobile/lib/retail/api/createParticipant.js.map +1 -0
  376. package/mobile/lib/retail/api/doRequest.js +4 -2
  377. package/mobile/lib/retail/api/doRequest.js.map +1 -1
  378. package/mobile/lib/retail/api/esiaRequestProfile.js +11 -7
  379. package/mobile/lib/retail/api/esiaRequestProfile.js.map +1 -1
  380. package/mobile/lib/retail/api/getDictionaries.js +3 -1
  381. package/mobile/lib/retail/api/getDictionaries.js.map +1 -1
  382. package/mobile/lib/retail/api/getLink.js +5 -1
  383. package/mobile/lib/retail/api/getLink.js.map +1 -1
  384. package/mobile/lib/retail/api/sendCode.js +8 -1
  385. package/mobile/lib/retail/api/sendCode.js.map +1 -1
  386. package/mobile/lib/retail/api/sendMessage.d.ts +7 -0
  387. package/mobile/lib/retail/api/sendMessage.js +5 -0
  388. package/mobile/lib/retail/api/sendMessage.js.map +1 -0
  389. package/mobile/lib/retail/api/updateUserTask.d.ts +14 -8
  390. package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
  391. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  392. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  393. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +9 -1
  394. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +28 -4
  395. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  396. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -1
  397. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  398. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +2 -1
  399. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +2 -1
  400. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  401. package/mobile/lib/retail/hooks/useLeadFormData.js +4 -2
  402. package/mobile/lib/retail/hooks/useLeadFormData.js.map +1 -1
  403. package/mobile/lib/retail/hooks/useRetailFormStore.d.ts +1 -1
  404. package/mobile/lib/retail/model/LeadFormState.d.ts +2 -4
  405. package/mobile/lib/retail/utils/checkNewMicroservice.d.ts +1 -0
  406. package/mobile/lib/retail/utils/checkNewMicroservice.js +5 -0
  407. package/mobile/lib/retail/utils/checkNewMicroservice.js.map +1 -0
  408. package/mobile/lib/ui-kit/SearchBar/SearchBar.d.ts +1 -2
  409. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +1 -1
  410. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  411. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.d.ts +0 -2
  412. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +2 -2
  413. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  414. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js +1 -2
  415. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  416. package/mobile/lib/wlc.json +1 -2
  417. package/mobile/src/api/apiBaseUrl.ts +0 -1
  418. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -0
  419. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -0
  420. package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +50 -24
  421. package/mobile/src/components/ApplicationLeadForm/parseEsiaProfile.ts +17 -11
  422. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +129 -3
  423. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +9 -1
  424. package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
  425. package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +2 -1
  426. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +16 -2
  427. package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +1 -1
  428. package/mobile/src/components/Footer/Footer.tsx +3 -5
  429. package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +42 -28
  430. package/mobile/src/retail/adaptors/utils.ts +1 -1
  431. package/mobile/src/retail/api/apiBaseUrl.ts +2 -1
  432. package/mobile/src/retail/api/checkCaptcha.ts +10 -2
  433. package/mobile/src/retail/api/checkCode.ts +11 -2
  434. package/mobile/src/retail/api/createCaptcha.ts +11 -4
  435. package/mobile/src/retail/api/createDraftTask.ts +2 -1
  436. package/mobile/src/retail/api/createParticipant.ts +17 -0
  437. package/mobile/src/retail/api/doRequest.ts +17 -12
  438. package/mobile/src/retail/api/esiaRequestProfile.ts +10 -2
  439. package/mobile/src/retail/api/getDictionaries.ts +6 -1
  440. package/mobile/src/retail/api/getLink.ts +10 -2
  441. package/mobile/src/retail/api/sendCode.ts +9 -1
  442. package/mobile/src/retail/api/sendMessage.ts +12 -0
  443. package/mobile/src/retail/api/updateUserTask.ts +14 -9
  444. package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +1 -1
  445. package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +54 -21
  446. package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +2 -1
  447. package/mobile/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +3 -0
  448. package/mobile/src/retail/hooks/useLeadFormData.ts +7 -2
  449. package/mobile/src/retail/model/LeadFormState.ts +2 -4
  450. package/mobile/src/retail/utils/checkNewMicroservice.ts +5 -0
  451. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +1 -3
  452. package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +28 -39
  453. package/mobile/src/ui-kit/YandexMap/useYandexMaps.ts +1 -4
  454. package/mobile/src/wlc.json +2 -2
  455. package/package.json +1 -1
  456. package/src/api/apiBaseUrl.ts +0 -1
  457. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +15 -0
  458. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +3 -0
  459. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -0
  460. package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +50 -24
  461. package/src/components/ApplicationLeadForm/parseEsiaProfile.ts +17 -11
  462. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +129 -3
  463. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +9 -1
  464. package/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
  465. package/src/components/ApplicationLeadForm/useSaveUserData.ts +2 -1
  466. package/src/components/CreditForm/CreditForm.fixture.tsx +12 -18
  467. package/src/components/CreditForm/CreditFormStatusTracker.tsx +16 -2
  468. package/src/components/CreditForm/useCreditFormAPI.tsx +1 -1
  469. package/src/components/Footer/Footer.tsx +3 -5
  470. package/src/components/Footer/renderLogoSearchBar.tsx +2 -7
  471. package/src/retail/adaptors/getCreditFormTaskData.ts +42 -28
  472. package/src/retail/adaptors/utils.ts +1 -1
  473. package/src/retail/api/apiBaseUrl.ts +2 -1
  474. package/src/retail/api/checkCaptcha.ts +10 -2
  475. package/src/retail/api/checkCode.ts +11 -2
  476. package/src/retail/api/createCaptcha.ts +11 -4
  477. package/src/retail/api/createDraftTask.ts +2 -1
  478. package/src/retail/api/createParticipant.ts +17 -0
  479. package/src/retail/api/doRequest.ts +17 -12
  480. package/src/retail/api/esiaRequestProfile.ts +10 -2
  481. package/src/retail/api/getDictionaries.ts +6 -1
  482. package/src/retail/api/getLink.ts +10 -2
  483. package/src/retail/api/sendCode.ts +9 -1
  484. package/src/retail/api/sendMessage.ts +12 -0
  485. package/src/retail/api/updateUserTask.ts +14 -9
  486. package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +1 -1
  487. package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +54 -21
  488. package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +2 -1
  489. package/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +3 -0
  490. package/src/retail/hooks/useLeadFormData.ts +7 -2
  491. package/src/retail/model/LeadFormState.ts +2 -4
  492. package/src/retail/utils/checkNewMicroservice.ts +5 -0
  493. package/src/ui-kit/SearchBar/SearchBar.tsx +1 -3
  494. package/src/ui-kit/SearchDialog/SearchDialog.tsx +28 -39
  495. package/src/ui-kit/YandexMap/useYandexMaps.ts +1 -4
  496. package/src/wlc.json +2 -2
  497. package/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  498. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  499. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -14
  500. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
  501. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  502. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -11
  503. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
  504. package/mobile/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  505. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  506. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -14
  507. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
  508. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +0 -8
  509. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +0 -11
  510. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +0 -1
  511. package/mobile/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +0 -32
  512. package/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +0 -32
@@ -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$1 = '/api/v1';
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$1}${isNaturalPerson ? '/lead' : '/sendcorporatelead'}`;
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$1}/initCorporateLead`, submitBody).then(async (res) => {
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$1}/confirmCorporateLead`, submitBody);
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$1}/callback`, formatSubmitBody);
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$1}/branches`;
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$1}${isPremium ? PREMIUM_REGIONS_URL : REGIONS_URL$1}`, fetchJSONUnsafe);
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$1}/outservice`;
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$1}/regions`;
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$1}/outservice/outserviceregions`;
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) => fetchRetailJSON('/esia/getLink', 'POST', 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/?apikey=${projectSettings.YANDEX_MAP_API_KEY || ''}&lang=ru_RU`;
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 { data, error } = useAsyncData(`${API_BASE_URI}/dictionary?dictionaryType=${encodeURIComponent(typeField)}`, fetchData);
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(`/dictionary?dictionaryType=${encodeURIComponent(dictionaryName)}`, 'POST').then((res) => {
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) => doRequest('/sms/sendCode', 'POST', 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) => doRequest('/sms/checkCaptcha', 'POST', body)
5902
- .then((res) => res.text())
5903
- .then((text) => text !== 'ERROR');
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) => doRequest(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(phoneNumber)}`, 'GET').then(async (res) => (res ? res.blob() : new Blob()));
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) => await doRequest('/sms/checkCode', 'POST', 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 handleSubmitBkiConstent = (phone, profileId, onFail) => async (confirmStatus) => {
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({ onSubmit: handleSubmitBkiConstent(phone, profileId, onFail), onClose }),
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
- /* eslint-disable camelcase */
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
- participants: [
6458
- {
6459
- birthDate: limitedBirthday && formatDate(limitedBirthday, true),
6460
- id: participantId,
6461
- midname: middleName,
6462
- name,
6463
- surname,
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 handleSubmit = useCallback(async (formData) => {
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(transformedFormData.phone, profileId, handleFailSendForm);
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
- return { isSending, handleSubmit };
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 = (body) => fetchRetailJSON('/esia/requestProfile', 'POST', body).then((res) => {
6768
- if (res?.access_token && res?.refresh_token) {
6769
- saveToken(res);
6770
- updateRefreshToken(true);
6771
- }
6772
- return res;
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$1}/depositrates/${serviceName}` : null, fetchJSONUnsafe);
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$1}/payment/${paymentURLMap[typeForm]}`;
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
- for (const signalType of SIGNAL_TYPES) {
9725
- await sendSignalToProcess({ signalType, taskId });
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
- sendToBank: true,
9789
- taskKind: 'UNITED',
9790
- task: {
9791
- id: taskId,
9792
- authorizedAgentId: formData?.bankEmployeeCode,
9793
- participants: [
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
- ...getCalcData(formData),
9807
- ...getDeliveryCreditData(formData),
9808
- esiaAccountTypeCd: {
9809
- key: formData?.esiaAccountTypeCd?.key,
9982
+ }),
9983
+ roleCd: {
9984
+ key: 'BORROWER',
9985
+ value: 'Заемщик',
9810
9986
  },
9811
- files: formData?.files,
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 && profileId && participantId) {
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$1}/region`;
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$1}/exchangerates`;
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, search }) => {
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, placeholder: search?.placeholder, ...searchInputProps }), onClose: onClose, children: jsx(Sitemap, { navigationItems: searchItems, isSearchPanel: 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, ...rest }), jsx(CloseButton, { className: "absolute top-0 right-0 sm:hidden", onClose: resetQueryOnDialogClose })] }));
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, search } = common ?? {};
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, placeholder: search?.placeholder, ...common })] }));
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)))), jsx("div", { className: "flex gap-m xl:gap-xs flex-wrap", children: otherLinks.map((_, i) => (jsx(Link, { className: "text-s font-light", ..._ }, `${_.href}_${i}`))) })] })] }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents, license: license })] }));
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$1}/atms?regionCode=${regionCode}`, fetchMap$1);
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$1}/branchesAndRemoteWorkplaces?regionCode=${encodeURIComponent(regionCode)}`, fetchMap);
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.949";
12799
+ const packageVersion = "0.14.951";
12603
12800
 
12604
12801
  exports.Blocks = Blocks;
12605
12802
  exports.ContentPage = ContentPage;