@redneckz/wildless-cms-uni-blocks 0.14.688 → 0.14.690

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 (829) hide show
  1. package/bundle/bundle.umd.js +277 -346
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/{dist/components/CreditCardForm/getFirstStepData.d.ts → bundle/components/CreditCardForm/getCardData.d.ts} +1 -1
  4. package/bundle/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  5. package/bundle/components/StickyBottomMenu/useBottomMenuItemDialog.d.ts +2 -7
  6. package/bundle/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +2 -5
  7. package/bundle/hooks/useLocalStorage.d.ts +1 -1
  8. package/bundle/hooks/useOnEscape.d.ts +1 -0
  9. package/bundle/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +0 -1
  10. package/bundle/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -1
  11. package/bundle/ui-kit/DialogManager/DialogAction.d.ts +8 -9
  12. package/bundle/ui-kit/DialogManager/isDialogOpen.d.ts +2 -2
  13. package/bundle/ui-kit/DialogManager/useDialog.d.ts +9 -0
  14. package/bundle/ui-kit/DialogManager/useDialogManager.d.ts +3 -6
  15. package/bundle/ui-kit/DialogManager/useDialogsList.d.ts +8 -7
  16. package/bundle/ui-kit/DocumentDialog/DocumentDialog.d.ts +6 -0
  17. package/bundle/ui-kit/DocumentDialog/uaeDocumentDialog.d.ts +2 -0
  18. package/bundle/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +1 -1
  19. package/bundle/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +1 -9
  20. package/bundle/ui-kit/FormField/SelectField.d.ts +1 -0
  21. package/bundle/ui-kit/LocationDialog/LocationDialog.d.ts +1 -0
  22. package/bundle/ui-kit/PopupManager/PopupAction.d.ts +7 -10
  23. package/bundle/ui-kit/PopupManager/usePopupManager.d.ts +3 -4
  24. package/bundle/ui-kit/ReportDialog/ReportDialog.d.ts +1 -0
  25. package/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
  26. package/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +1 -0
  27. package/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -2
  28. package/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +3 -3
  29. package/dist/components/ApplicationForm/ApplicationForm.js +5 -4
  30. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  31. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +7 -11
  32. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  33. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -6
  34. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  35. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +23 -18
  36. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  37. package/dist/components/CreditCardForm/StepsNavigationButtons.js +1 -1
  38. package/dist/components/CreditCardForm/calculateInputs.js +2 -1
  39. package/dist/components/CreditCardForm/calculateInputs.js.map +1 -1
  40. package/dist/components/CreditCardForm/creditCardFormStepsData.js +18 -9
  41. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  42. package/{bundle/components/CreditCardForm/getFirstStepData.d.ts → dist/components/CreditCardForm/getCardData.d.ts} +1 -1
  43. package/dist/components/CreditCardForm/{getFirstStepData.js → getCardData.js} +4 -4
  44. package/dist/components/CreditCardForm/getCardData.js.map +1 -0
  45. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
  46. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  47. package/dist/components/CreditForm/calculateInputs.js +1 -1
  48. package/dist/components/CreditForm/calculateInputs.js.map +1 -1
  49. package/dist/components/CreditForm/creditFormStepsData.js +6 -6
  50. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  51. package/dist/components/Header/HeaderSecondaryMenu.js +7 -6
  52. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  53. package/dist/components/LinkDocs/LinkDocs.js +2 -2
  54. package/dist/components/LinkDocs/ReportDialogButton.js +15 -0
  55. package/dist/components/LinkDocs/ReportDialogButton.js.map +1 -0
  56. package/dist/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  57. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js +8 -7
  58. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  59. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +8 -10
  60. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  61. package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -10
  62. package/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  63. package/dist/components/StickyBottomMenu/useBottomMenuItemDialog.d.ts +2 -7
  64. package/dist/components/StickyBottomMenu/useBottomMenuItemDialog.js +17 -9
  65. package/dist/components/StickyBottomMenu/useBottomMenuItemDialog.js.map +1 -1
  66. package/dist/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +2 -5
  67. package/dist/components/StickyBottomMenu/useBurgerMenuDialog.js +8 -15
  68. package/dist/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -1
  69. package/dist/hooks/useLocalStorage.d.ts +1 -1
  70. package/dist/hooks/useLocalStorage.js +8 -4
  71. package/dist/hooks/useLocalStorage.js.map +1 -1
  72. package/dist/hooks/useMobileMode.js +6 -5
  73. package/dist/hooks/useMobileMode.js.map +1 -1
  74. package/dist/hooks/useOnEscape.d.ts +1 -0
  75. package/dist/hooks/useOnEscape.js +14 -0
  76. package/dist/hooks/useOnEscape.js.map +1 -0
  77. package/dist/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +0 -1
  78. package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +4 -4
  79. package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  80. package/dist/ui-kit/Checkbox/CheckboxWithDoc.js +3 -6
  81. package/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  82. package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -1
  83. package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +15 -19
  84. package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  85. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +9 -8
  86. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  87. package/dist/ui-kit/DialogManager/Dialog.js +1 -10
  88. package/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  89. package/dist/ui-kit/DialogManager/DialogAction.d.ts +8 -9
  90. package/dist/ui-kit/DialogManager/DialogManager.js +10 -26
  91. package/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
  92. package/dist/ui-kit/DialogManager/isDialogOpen.d.ts +2 -2
  93. package/dist/ui-kit/DialogManager/isDialogOpen.js.map +1 -1
  94. package/dist/ui-kit/DialogManager/useDialog.d.ts +9 -0
  95. package/dist/ui-kit/DialogManager/useDialog.js +18 -0
  96. package/dist/ui-kit/DialogManager/useDialog.js.map +1 -0
  97. package/dist/ui-kit/DialogManager/useDialogManager.d.ts +3 -6
  98. package/dist/ui-kit/DialogManager/useDialogManager.js +2 -5
  99. package/dist/ui-kit/DialogManager/useDialogManager.js.map +1 -1
  100. package/dist/ui-kit/DialogManager/useDialogsList.d.ts +8 -7
  101. package/dist/ui-kit/DialogManager/useDialogsList.js +8 -32
  102. package/dist/ui-kit/DialogManager/useDialogsList.js.map +1 -1
  103. package/dist/ui-kit/DocumentDialog/DocumentDialog.d.ts +6 -0
  104. package/dist/ui-kit/DocumentDialog/DocumentDialog.js +9 -0
  105. package/dist/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -0
  106. package/dist/ui-kit/DocumentDialog/uaeDocumentDialog.d.ts +2 -0
  107. package/dist/ui-kit/DocumentDialog/uaeDocumentDialog.js +19 -0
  108. package/dist/ui-kit/DocumentDialog/uaeDocumentDialog.js.map +1 -0
  109. package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +1 -1
  110. package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +3 -3
  111. package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  112. package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +1 -9
  113. package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +5 -11
  114. package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
  115. package/dist/ui-kit/FormField/Fields/AddressField.js +14 -1
  116. package/dist/ui-kit/FormField/Fields/AddressField.js.map +1 -1
  117. package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
  118. package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
  119. package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
  120. package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
  121. package/dist/ui-kit/FormField/SelectField.d.ts +1 -0
  122. package/dist/ui-kit/FormField/SelectField.js +4 -2
  123. package/dist/ui-kit/FormField/SelectField.js.map +1 -1
  124. package/dist/ui-kit/Input/useInputPopup.js +2 -1
  125. package/dist/ui-kit/Input/useInputPopup.js.map +1 -1
  126. package/dist/ui-kit/LocationDialog/LocationDialog.d.ts +1 -0
  127. package/dist/ui-kit/LocationDialog/LocationDialog.js +4 -6
  128. package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  129. package/dist/ui-kit/PopupManager/PopupAction.d.ts +7 -10
  130. package/dist/ui-kit/PopupManager/PopupManager.js +7 -24
  131. package/dist/ui-kit/PopupManager/PopupManager.js.map +1 -1
  132. package/dist/ui-kit/PopupManager/usePopupManager.d.ts +3 -4
  133. package/dist/ui-kit/PopupManager/usePopupManager.js +2 -5
  134. package/dist/ui-kit/PopupManager/usePopupManager.js.map +1 -1
  135. package/dist/ui-kit/ReportDialog/ReportDialog.d.ts +1 -0
  136. package/dist/ui-kit/ReportDialog/ReportDialog.js +2 -8
  137. package/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  138. package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
  139. package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +2 -8
  140. package/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
  141. package/dist/ui-kit/SearchBar/SearchBar.js +4 -3
  142. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  143. package/dist/ui-kit/SearchDialog/SearchDialog.d.ts +1 -0
  144. package/dist/ui-kit/SearchDialog/SearchDialog.js +2 -2
  145. package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  146. package/dist/ui-kit/Select/useSelectPopup.js +2 -1
  147. package/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
  148. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -2
  149. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +10 -9
  150. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  151. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +3 -3
  152. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +14 -23
  153. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  154. package/lib/components/ApplicationForm/ApplicationForm.js +5 -4
  155. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  156. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +1 -0
  157. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +8 -12
  158. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  159. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -6
  160. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  161. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +24 -19
  162. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  163. package/lib/components/CreditCardForm/StepsNavigationButtons.js +1 -1
  164. package/lib/components/CreditCardForm/calculateInputs.js +2 -1
  165. package/lib/components/CreditCardForm/calculateInputs.js.map +1 -1
  166. package/lib/components/CreditCardForm/creditCardFormStepsData.js +18 -9
  167. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  168. package/lib/components/CreditCardForm/{getFirstStepData.d.ts → getCardData.d.ts} +1 -1
  169. package/lib/components/CreditCardForm/{getFirstStepData.js → getCardData.js} +2 -2
  170. package/lib/components/CreditCardForm/getCardData.js.map +1 -0
  171. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
  172. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  173. package/lib/components/CreditForm/calculateInputs.js +1 -1
  174. package/lib/components/CreditForm/calculateInputs.js.map +1 -1
  175. package/lib/components/CreditForm/creditFormStepsData.js +6 -6
  176. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  177. package/lib/components/Header/HeaderSecondaryMenu.js +7 -6
  178. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  179. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  180. package/lib/components/LinkDocs/ReportDialogButton.js +13 -0
  181. package/lib/components/LinkDocs/ReportDialogButton.js.map +1 -0
  182. package/lib/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  183. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js +8 -7
  184. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  185. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +8 -10
  186. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  187. package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -10
  188. package/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  189. package/lib/components/StickyBottomMenu/useBottomMenuItemDialog.d.ts +2 -7
  190. package/lib/components/StickyBottomMenu/useBottomMenuItemDialog.js +17 -9
  191. package/lib/components/StickyBottomMenu/useBottomMenuItemDialog.js.map +1 -1
  192. package/lib/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +2 -5
  193. package/lib/components/StickyBottomMenu/useBurgerMenuDialog.js +8 -15
  194. package/lib/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -1
  195. package/lib/hooks/useLocalStorage.d.ts +1 -1
  196. package/lib/hooks/useLocalStorage.js +8 -4
  197. package/lib/hooks/useLocalStorage.js.map +1 -1
  198. package/lib/hooks/useMobileMode.js +6 -5
  199. package/lib/hooks/useMobileMode.js.map +1 -1
  200. package/lib/hooks/useOnEscape.d.ts +1 -0
  201. package/lib/hooks/useOnEscape.js +11 -0
  202. package/lib/hooks/useOnEscape.js.map +1 -0
  203. package/lib/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +0 -1
  204. package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +4 -4
  205. package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  206. package/lib/ui-kit/Checkbox/CheckboxWithDoc.js +3 -6
  207. package/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  208. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -1
  209. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +15 -19
  210. package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  211. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +9 -8
  212. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  213. package/lib/ui-kit/DialogManager/Dialog.js +1 -10
  214. package/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  215. package/lib/ui-kit/DialogManager/DialogAction.d.ts +8 -9
  216. package/lib/ui-kit/DialogManager/DialogManager.js +11 -27
  217. package/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
  218. package/lib/ui-kit/DialogManager/isDialogOpen.d.ts +2 -2
  219. package/lib/ui-kit/DialogManager/isDialogOpen.js.map +1 -1
  220. package/lib/ui-kit/DialogManager/useDialog.d.ts +9 -0
  221. package/lib/ui-kit/DialogManager/useDialog.js +15 -0
  222. package/lib/ui-kit/DialogManager/useDialog.js.map +1 -0
  223. package/lib/ui-kit/DialogManager/useDialogManager.d.ts +3 -6
  224. package/lib/ui-kit/DialogManager/useDialogManager.js +2 -5
  225. package/lib/ui-kit/DialogManager/useDialogManager.js.map +1 -1
  226. package/lib/ui-kit/DialogManager/useDialogsList.d.ts +8 -7
  227. package/lib/ui-kit/DialogManager/useDialogsList.js +8 -32
  228. package/lib/ui-kit/DialogManager/useDialogsList.js.map +1 -1
  229. package/lib/ui-kit/DocumentDialog/DocumentDialog.d.ts +6 -0
  230. package/lib/ui-kit/DocumentDialog/DocumentDialog.js +7 -0
  231. package/lib/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -0
  232. package/lib/ui-kit/DocumentDialog/uaeDocumentDialog.d.ts +2 -0
  233. package/lib/ui-kit/DocumentDialog/uaeDocumentDialog.js +16 -0
  234. package/lib/ui-kit/DocumentDialog/uaeDocumentDialog.js.map +1 -0
  235. package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +1 -1
  236. package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +3 -3
  237. package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  238. package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +1 -9
  239. package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +5 -11
  240. package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
  241. package/lib/ui-kit/FormField/Fields/AddressField.js +14 -1
  242. package/lib/ui-kit/FormField/Fields/AddressField.js.map +1 -1
  243. package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
  244. package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
  245. package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
  246. package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
  247. package/lib/ui-kit/FormField/SelectField.d.ts +1 -0
  248. package/lib/ui-kit/FormField/SelectField.js +4 -2
  249. package/lib/ui-kit/FormField/SelectField.js.map +1 -1
  250. package/lib/ui-kit/Input/useInputPopup.js +2 -1
  251. package/lib/ui-kit/Input/useInputPopup.js.map +1 -1
  252. package/lib/ui-kit/LocationDialog/LocationDialog.d.ts +1 -0
  253. package/lib/ui-kit/LocationDialog/LocationDialog.js +4 -6
  254. package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  255. package/lib/ui-kit/PopupManager/PopupAction.d.ts +7 -10
  256. package/lib/ui-kit/PopupManager/PopupManager.js +8 -25
  257. package/lib/ui-kit/PopupManager/PopupManager.js.map +1 -1
  258. package/lib/ui-kit/PopupManager/usePopupManager.d.ts +3 -4
  259. package/lib/ui-kit/PopupManager/usePopupManager.js +2 -5
  260. package/lib/ui-kit/PopupManager/usePopupManager.js.map +1 -1
  261. package/lib/ui-kit/ReportDialog/ReportDialog.d.ts +1 -0
  262. package/lib/ui-kit/ReportDialog/ReportDialog.js +2 -8
  263. package/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  264. package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
  265. package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +2 -8
  266. package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
  267. package/lib/ui-kit/SearchBar/SearchBar.js +4 -3
  268. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  269. package/lib/ui-kit/SearchDialog/SearchDialog.d.ts +1 -0
  270. package/lib/ui-kit/SearchDialog/SearchDialog.js +2 -2
  271. package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  272. package/lib/ui-kit/Select/useSelectPopup.js +2 -1
  273. package/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
  274. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -2
  275. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +10 -9
  276. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  277. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +3 -3
  278. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +15 -24
  279. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  280. package/mobile/bundle/bundle.umd.js +301 -374
  281. package/mobile/bundle/bundle.umd.min.js +1 -1
  282. package/mobile/bundle/components/CreditCardForm/{getFirstStepData.d.ts → getCardData.d.ts} +1 -1
  283. package/mobile/bundle/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  284. package/mobile/bundle/components/StickyBottomMenu/useBottomMenuItemDialog.d.ts +2 -7
  285. package/mobile/bundle/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +2 -5
  286. package/mobile/bundle/hooks/useLocalStorage.d.ts +1 -1
  287. package/mobile/bundle/hooks/useOnEscape.d.ts +1 -0
  288. package/mobile/bundle/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +0 -1
  289. package/mobile/bundle/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -1
  290. package/mobile/bundle/ui-kit/DialogManager/DialogAction.d.ts +8 -9
  291. package/mobile/bundle/ui-kit/DialogManager/isDialogOpen.d.ts +2 -2
  292. package/mobile/bundle/ui-kit/DialogManager/useDialog.d.ts +9 -0
  293. package/mobile/bundle/ui-kit/DialogManager/useDialogManager.d.ts +3 -6
  294. package/mobile/bundle/ui-kit/DialogManager/useDialogsList.d.ts +8 -7
  295. package/mobile/bundle/ui-kit/DocumentDialog/DocumentDialog.d.ts +6 -0
  296. package/mobile/bundle/ui-kit/DocumentDialog/uaeDocumentDialog.d.ts +2 -0
  297. package/mobile/bundle/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +1 -1
  298. package/mobile/bundle/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +1 -9
  299. package/mobile/bundle/ui-kit/FormField/SelectField.d.ts +1 -0
  300. package/mobile/bundle/ui-kit/LocationDialog/LocationDialog.d.ts +1 -0
  301. package/mobile/bundle/ui-kit/PopupManager/PopupAction.d.ts +7 -10
  302. package/mobile/bundle/ui-kit/PopupManager/usePopupManager.d.ts +3 -4
  303. package/mobile/bundle/ui-kit/ReportDialog/ReportDialog.d.ts +1 -0
  304. package/mobile/bundle/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
  305. package/mobile/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +1 -0
  306. package/mobile/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -2
  307. package/mobile/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +3 -3
  308. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +5 -4
  309. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  310. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +7 -11
  311. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  312. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -6
  313. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  314. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +23 -18
  315. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  316. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +1 -1
  317. package/mobile/dist/components/CreditCardForm/calculateInputs.js +2 -1
  318. package/mobile/dist/components/CreditCardForm/calculateInputs.js.map +1 -1
  319. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +18 -9
  320. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  321. package/mobile/dist/components/CreditCardForm/getCardData.d.ts +3 -0
  322. package/mobile/dist/components/CreditCardForm/{getFirstStepData.js → getCardData.js} +4 -4
  323. package/mobile/dist/components/CreditCardForm/getCardData.js.map +1 -0
  324. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
  325. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  326. package/mobile/dist/components/CreditForm/calculateInputs.js +1 -1
  327. package/mobile/dist/components/CreditForm/calculateInputs.js.map +1 -1
  328. package/mobile/dist/components/CreditForm/creditFormStepsData.js +6 -6
  329. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  330. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +7 -6
  331. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  332. package/mobile/dist/components/LinkDocs/LinkDocs.js +2 -2
  333. package/mobile/dist/components/LinkDocs/ReportDialogButton.js +15 -0
  334. package/mobile/dist/components/LinkDocs/ReportDialogButton.js.map +1 -0
  335. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  336. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js +8 -7
  337. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  338. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +8 -10
  339. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  340. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -10
  341. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  342. package/mobile/dist/components/StickyBottomMenu/useBottomMenuItemDialog.d.ts +2 -7
  343. package/mobile/dist/components/StickyBottomMenu/useBottomMenuItemDialog.js +17 -9
  344. package/mobile/dist/components/StickyBottomMenu/useBottomMenuItemDialog.js.map +1 -1
  345. package/mobile/dist/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +2 -5
  346. package/mobile/dist/components/StickyBottomMenu/useBurgerMenuDialog.js +8 -15
  347. package/mobile/dist/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -1
  348. package/mobile/dist/hooks/useLocalStorage.d.ts +1 -1
  349. package/mobile/dist/hooks/useLocalStorage.js +8 -4
  350. package/mobile/dist/hooks/useLocalStorage.js.map +1 -1
  351. package/mobile/dist/hooks/useMobileMode.js +6 -5
  352. package/mobile/dist/hooks/useMobileMode.js.map +1 -1
  353. package/mobile/dist/hooks/useOnEscape.d.ts +1 -0
  354. package/mobile/dist/hooks/useOnEscape.js +14 -0
  355. package/mobile/dist/hooks/useOnEscape.js.map +1 -0
  356. package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +0 -1
  357. package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +4 -4
  358. package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  359. package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js +3 -6
  360. package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  361. package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -1
  362. package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +15 -19
  363. package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  364. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +9 -8
  365. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  366. package/mobile/dist/ui-kit/DialogManager/Dialog.js +1 -10
  367. package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -1
  368. package/mobile/dist/ui-kit/DialogManager/DialogAction.d.ts +8 -9
  369. package/mobile/dist/ui-kit/DialogManager/DialogManager.js +10 -26
  370. package/mobile/dist/ui-kit/DialogManager/DialogManager.js.map +1 -1
  371. package/mobile/dist/ui-kit/DialogManager/isDialogOpen.d.ts +2 -2
  372. package/mobile/dist/ui-kit/DialogManager/isDialogOpen.js.map +1 -1
  373. package/mobile/dist/ui-kit/DialogManager/useDialog.d.ts +9 -0
  374. package/mobile/dist/ui-kit/DialogManager/useDialog.js +18 -0
  375. package/mobile/dist/ui-kit/DialogManager/useDialog.js.map +1 -0
  376. package/mobile/dist/ui-kit/DialogManager/useDialogManager.d.ts +3 -6
  377. package/mobile/dist/ui-kit/DialogManager/useDialogManager.js +2 -5
  378. package/mobile/dist/ui-kit/DialogManager/useDialogManager.js.map +1 -1
  379. package/mobile/dist/ui-kit/DialogManager/useDialogsList.d.ts +8 -7
  380. package/mobile/dist/ui-kit/DialogManager/useDialogsList.js +8 -32
  381. package/mobile/dist/ui-kit/DialogManager/useDialogsList.js.map +1 -1
  382. package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.d.ts +6 -0
  383. package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.js +9 -0
  384. package/mobile/dist/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -0
  385. package/mobile/dist/ui-kit/DocumentDialog/uaeDocumentDialog.d.ts +2 -0
  386. package/mobile/dist/ui-kit/DocumentDialog/uaeDocumentDialog.js +19 -0
  387. package/mobile/dist/ui-kit/DocumentDialog/uaeDocumentDialog.js.map +1 -0
  388. package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +1 -1
  389. package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +3 -3
  390. package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  391. package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +1 -9
  392. package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +5 -11
  393. package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
  394. package/mobile/dist/ui-kit/FormField/Fields/AddressField.js +14 -1
  395. package/mobile/dist/ui-kit/FormField/Fields/AddressField.js.map +1 -1
  396. package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
  397. package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
  398. package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
  399. package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
  400. package/mobile/dist/ui-kit/FormField/SelectField.d.ts +1 -0
  401. package/mobile/dist/ui-kit/FormField/SelectField.js +4 -2
  402. package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
  403. package/mobile/dist/ui-kit/Input/useInputPopup.js +2 -1
  404. package/mobile/dist/ui-kit/Input/useInputPopup.js.map +1 -1
  405. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.d.ts +1 -0
  406. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +4 -6
  407. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  408. package/mobile/dist/ui-kit/PopupManager/PopupAction.d.ts +7 -10
  409. package/mobile/dist/ui-kit/PopupManager/PopupManager.js +7 -24
  410. package/mobile/dist/ui-kit/PopupManager/PopupManager.js.map +1 -1
  411. package/mobile/dist/ui-kit/PopupManager/usePopupManager.d.ts +3 -4
  412. package/mobile/dist/ui-kit/PopupManager/usePopupManager.js +2 -5
  413. package/mobile/dist/ui-kit/PopupManager/usePopupManager.js.map +1 -1
  414. package/mobile/dist/ui-kit/ReportDialog/ReportDialog.d.ts +1 -0
  415. package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js +2 -8
  416. package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  417. package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
  418. package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +2 -8
  419. package/mobile/dist/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
  420. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +4 -3
  421. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  422. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.d.ts +1 -0
  423. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +2 -2
  424. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  425. package/mobile/dist/ui-kit/Select/useSelectPopup.js +2 -1
  426. package/mobile/dist/ui-kit/Select/useSelectPopup.js.map +1 -1
  427. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -2
  428. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +10 -9
  429. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  430. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +3 -3
  431. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +14 -23
  432. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  433. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +5 -4
  434. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  435. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +8 -12
  436. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  437. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -6
  438. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  439. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +24 -19
  440. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  441. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +1 -1
  442. package/mobile/lib/components/CreditCardForm/calculateInputs.js +2 -1
  443. package/mobile/lib/components/CreditCardForm/calculateInputs.js.map +1 -1
  444. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +18 -9
  445. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  446. package/mobile/lib/components/CreditCardForm/getCardData.d.ts +3 -0
  447. package/mobile/lib/components/CreditCardForm/{getFirstStepData.js → getCardData.js} +2 -2
  448. package/mobile/lib/components/CreditCardForm/getCardData.js.map +1 -0
  449. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
  450. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  451. package/mobile/lib/components/CreditForm/calculateInputs.js +1 -1
  452. package/mobile/lib/components/CreditForm/calculateInputs.js.map +1 -1
  453. package/mobile/lib/components/CreditForm/creditFormStepsData.js +6 -6
  454. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  455. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +7 -6
  456. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  457. package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
  458. package/mobile/lib/components/LinkDocs/ReportDialogButton.js +13 -0
  459. package/mobile/lib/components/LinkDocs/ReportDialogButton.js.map +1 -0
  460. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.d.ts +1 -1
  461. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js +8 -7
  462. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  463. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +8 -10
  464. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  465. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js +1 -10
  466. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuDialog.js.map +1 -1
  467. package/mobile/lib/components/StickyBottomMenu/useBottomMenuItemDialog.d.ts +2 -7
  468. package/mobile/lib/components/StickyBottomMenu/useBottomMenuItemDialog.js +17 -9
  469. package/mobile/lib/components/StickyBottomMenu/useBottomMenuItemDialog.js.map +1 -1
  470. package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +2 -5
  471. package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.js +8 -15
  472. package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -1
  473. package/mobile/lib/hooks/useLocalStorage.d.ts +1 -1
  474. package/mobile/lib/hooks/useLocalStorage.js +8 -4
  475. package/mobile/lib/hooks/useLocalStorage.js.map +1 -1
  476. package/mobile/lib/hooks/useMobileMode.js +6 -5
  477. package/mobile/lib/hooks/useMobileMode.js.map +1 -1
  478. package/mobile/lib/hooks/useOnEscape.d.ts +1 -0
  479. package/mobile/lib/hooks/useOnEscape.js +11 -0
  480. package/mobile/lib/hooks/useOnEscape.js.map +1 -0
  481. package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.d.ts +0 -1
  482. package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +4 -4
  483. package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
  484. package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js +3 -6
  485. package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
  486. package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -1
  487. package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +15 -19
  488. package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  489. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +9 -8
  490. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  491. package/mobile/lib/ui-kit/DialogManager/Dialog.js +1 -10
  492. package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -1
  493. package/mobile/lib/ui-kit/DialogManager/DialogAction.d.ts +8 -9
  494. package/mobile/lib/ui-kit/DialogManager/DialogManager.js +11 -27
  495. package/mobile/lib/ui-kit/DialogManager/DialogManager.js.map +1 -1
  496. package/mobile/lib/ui-kit/DialogManager/isDialogOpen.d.ts +2 -2
  497. package/mobile/lib/ui-kit/DialogManager/isDialogOpen.js.map +1 -1
  498. package/mobile/lib/ui-kit/DialogManager/useDialog.d.ts +9 -0
  499. package/mobile/lib/ui-kit/DialogManager/useDialog.js +15 -0
  500. package/mobile/lib/ui-kit/DialogManager/useDialog.js.map +1 -0
  501. package/mobile/lib/ui-kit/DialogManager/useDialogManager.d.ts +3 -6
  502. package/mobile/lib/ui-kit/DialogManager/useDialogManager.js +2 -5
  503. package/mobile/lib/ui-kit/DialogManager/useDialogManager.js.map +1 -1
  504. package/mobile/lib/ui-kit/DialogManager/useDialogsList.d.ts +8 -7
  505. package/mobile/lib/ui-kit/DialogManager/useDialogsList.js +8 -32
  506. package/mobile/lib/ui-kit/DialogManager/useDialogsList.js.map +1 -1
  507. package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.d.ts +6 -0
  508. package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.js +7 -0
  509. package/mobile/lib/ui-kit/DocumentDialog/DocumentDialog.js.map +1 -0
  510. package/mobile/lib/ui-kit/DocumentDialog/uaeDocumentDialog.d.ts +2 -0
  511. package/mobile/lib/ui-kit/DocumentDialog/uaeDocumentDialog.js +16 -0
  512. package/mobile/lib/ui-kit/DocumentDialog/uaeDocumentDialog.js.map +1 -0
  513. package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.d.ts +1 -1
  514. package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +3 -3
  515. package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  516. package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.d.ts +1 -9
  517. package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +5 -11
  518. package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
  519. package/mobile/lib/ui-kit/FormField/Fields/AddressField.js +14 -1
  520. package/mobile/lib/ui-kit/FormField/Fields/AddressField.js.map +1 -1
  521. package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
  522. package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
  523. package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
  524. package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
  525. package/mobile/lib/ui-kit/FormField/SelectField.d.ts +1 -0
  526. package/mobile/lib/ui-kit/FormField/SelectField.js +4 -2
  527. package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
  528. package/mobile/lib/ui-kit/Input/useInputPopup.js +2 -1
  529. package/mobile/lib/ui-kit/Input/useInputPopup.js.map +1 -1
  530. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.d.ts +1 -0
  531. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +4 -6
  532. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  533. package/mobile/lib/ui-kit/PopupManager/PopupAction.d.ts +7 -10
  534. package/mobile/lib/ui-kit/PopupManager/PopupManager.js +8 -25
  535. package/mobile/lib/ui-kit/PopupManager/PopupManager.js.map +1 -1
  536. package/mobile/lib/ui-kit/PopupManager/usePopupManager.d.ts +3 -4
  537. package/mobile/lib/ui-kit/PopupManager/usePopupManager.js +2 -5
  538. package/mobile/lib/ui-kit/PopupManager/usePopupManager.js.map +1 -1
  539. package/mobile/lib/ui-kit/ReportDialog/ReportDialog.d.ts +1 -0
  540. package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js +2 -8
  541. package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  542. package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.d.ts +1 -0
  543. package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js +2 -8
  544. package/mobile/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.js.map +1 -1
  545. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +4 -3
  546. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  547. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.d.ts +1 -0
  548. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +2 -2
  549. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  550. package/mobile/lib/ui-kit/Select/useSelectPopup.js +2 -1
  551. package/mobile/lib/ui-kit/Select/useSelectPopup.js.map +1 -1
  552. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -2
  553. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +10 -9
  554. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  555. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +3 -3
  556. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +15 -24
  557. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  558. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +7 -4
  559. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +8 -13
  560. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +11 -9
  561. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +34 -27
  562. package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +1 -1
  563. package/mobile/src/components/CreditCardForm/calculateInputs.ts +6 -3
  564. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +18 -9
  565. package/mobile/src/components/CreditCardForm/{getFirstStepData.tsx → getCardData.tsx} +1 -1
  566. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -2
  567. package/mobile/src/components/CreditForm/calculateInputs.ts +3 -3
  568. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +6 -6
  569. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +7 -6
  570. package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
  571. package/mobile/src/components/LinkDocs/{RepordDialogButton.tsx → ReportDialogButton.tsx} +9 -9
  572. package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +11 -11
  573. package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +8 -10
  574. package/mobile/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +12 -23
  575. package/mobile/src/components/StickyBottomMenu/useBottomMenuItemDialog.tsx +48 -46
  576. package/mobile/src/components/StickyBottomMenu/useBurgerMenuDialog.tsx +18 -36
  577. package/mobile/src/hooks/useLocalStorage.ts +13 -6
  578. package/mobile/src/hooks/useMobileMode.ts +7 -7
  579. package/mobile/src/hooks/useOnEscape.ts +14 -0
  580. package/mobile/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +50 -53
  581. package/mobile/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +3 -9
  582. package/mobile/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +51 -57
  583. package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +9 -13
  584. package/mobile/src/ui-kit/DialogManager/Dialog.tsx +12 -23
  585. package/mobile/src/ui-kit/DialogManager/DialogAction.ts +8 -10
  586. package/mobile/src/ui-kit/DialogManager/DialogManager.tsx +11 -32
  587. package/mobile/src/ui-kit/DialogManager/isDialogOpen.ts +2 -2
  588. package/mobile/src/ui-kit/DialogManager/useDialog.tsx +31 -0
  589. package/mobile/src/ui-kit/DialogManager/useDialogManager.ts +2 -12
  590. package/mobile/src/ui-kit/DialogManager/useDialogsList.ts +13 -47
  591. package/mobile/src/ui-kit/DocumentDialog/DocumentDialog.tsx +23 -0
  592. package/mobile/src/ui-kit/DocumentDialog/uaeDocumentDialog.ts +18 -0
  593. package/mobile/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +5 -6
  594. package/mobile/src/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.tsx +5 -17
  595. package/mobile/src/ui-kit/FormField/Fields/AddressField.tsx +14 -1
  596. package/mobile/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +3 -2
  597. package/mobile/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +1 -0
  598. package/mobile/src/ui-kit/FormField/SelectField.tsx +5 -4
  599. package/mobile/src/ui-kit/Input/useInputPopup.tsx +2 -1
  600. package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +5 -6
  601. package/mobile/src/ui-kit/PopupManager/PopupAction.ts +7 -12
  602. package/mobile/src/ui-kit/PopupManager/PopupManager.tsx +10 -35
  603. package/mobile/src/ui-kit/PopupManager/usePopupManager.tsx +2 -9
  604. package/mobile/src/ui-kit/ReportDialog/ReportDialog.tsx +5 -10
  605. package/mobile/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +30 -34
  606. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +4 -3
  607. package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +3 -2
  608. package/mobile/src/ui-kit/Select/useSelectPopup.tsx +15 -15
  609. package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +18 -13
  610. package/mobile/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +19 -32
  611. package/package.json +2 -2
  612. package/src/components/ApplicationForm/ApplicationForm.tsx +7 -4
  613. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +13 -0
  614. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +8 -13
  615. package/src/components/ApplicationLeadForm/useApplicationLeadApi.ts +11 -9
  616. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +34 -27
  617. package/src/components/CreditCardForm/StepsNavigationButtons.tsx +1 -1
  618. package/src/components/CreditCardForm/calculateInputs.ts +6 -3
  619. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +18 -9
  620. package/src/components/CreditCardForm/{getFirstStepData.tsx → getCardData.tsx} +1 -1
  621. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -2
  622. package/src/components/CreditForm/calculateInputs.ts +3 -3
  623. package/src/components/CreditForm/creditFormStepsData.tsx +6 -6
  624. package/src/components/Header/HeaderSecondaryMenu.tsx +7 -6
  625. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  626. package/src/components/LinkDocs/{RepordDialogButton.tsx → ReportDialogButton.tsx} +9 -9
  627. package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +11 -11
  628. package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +8 -10
  629. package/src/components/StickyBottomMenu/StickyBottomMenuDialog.tsx +12 -23
  630. package/src/components/StickyBottomMenu/useBottomMenuItemDialog.tsx +48 -46
  631. package/src/components/StickyBottomMenu/useBurgerMenuDialog.tsx +18 -36
  632. package/src/hooks/useLocalStorage.ts +13 -6
  633. package/src/hooks/useMobileMode.ts +7 -7
  634. package/src/hooks/useOnEscape.ts +14 -0
  635. package/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +50 -53
  636. package/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +3 -9
  637. package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +51 -57
  638. package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +9 -13
  639. package/src/ui-kit/DialogManager/Dialog.tsx +12 -23
  640. package/src/ui-kit/DialogManager/DialogAction.ts +8 -10
  641. package/src/ui-kit/DialogManager/DialogManager.tsx +11 -32
  642. package/src/ui-kit/DialogManager/isDialogOpen.ts +2 -2
  643. package/src/ui-kit/DialogManager/useDialog.tsx +31 -0
  644. package/src/ui-kit/DialogManager/useDialogManager.ts +2 -12
  645. package/src/ui-kit/DialogManager/useDialogsList.ts +13 -47
  646. package/src/ui-kit/DocumentDialog/DocumentDialog.tsx +23 -0
  647. package/src/ui-kit/DocumentDialog/uaeDocumentDialog.ts +18 -0
  648. package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +5 -6
  649. package/src/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.tsx +5 -17
  650. package/src/ui-kit/FormField/Fields/AddressField.tsx +14 -1
  651. package/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +3 -2
  652. package/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +1 -0
  653. package/src/ui-kit/FormField/SelectField.tsx +5 -4
  654. package/src/ui-kit/Input/useInputPopup.tsx +2 -1
  655. package/src/ui-kit/LocationDialog/LocationDialog.tsx +5 -6
  656. package/src/ui-kit/PopupManager/PopupAction.ts +7 -12
  657. package/src/ui-kit/PopupManager/PopupManager.tsx +10 -35
  658. package/src/ui-kit/PopupManager/usePopupManager.tsx +2 -9
  659. package/src/ui-kit/ReportDialog/ReportDialog.tsx +5 -10
  660. package/src/ui-kit/ResponseTypeDialog/ResponseTypeDialog.tsx +30 -34
  661. package/src/ui-kit/SearchBar/SearchBar.tsx +4 -3
  662. package/src/ui-kit/SearchDialog/SearchDialog.tsx +3 -2
  663. package/src/ui-kit/Select/useSelectPopup.tsx +15 -15
  664. package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +18 -13
  665. package/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +19 -32
  666. package/bundle/EventBus/useLatestEvent.d.ts +0 -2
  667. package/bundle/ui-kit/CaptchaDialog/useCaptchaDialog.d.ts +0 -6
  668. package/bundle/ui-kit/Checkbox/getDocument.d.ts +0 -1
  669. package/bundle/ui-kit/DialogManager/openDocument.d.ts +0 -9
  670. package/bundle/ui-kit/LocationDialog/useLocationDialog.d.ts +0 -6
  671. package/bundle/ui-kit/ReportDialog/useReportDialog.d.ts +0 -6
  672. package/bundle/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +0 -9
  673. package/bundle/ui-kit/SearchDialog/useSearchDialog.d.ts +0 -6
  674. package/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +0 -5
  675. package/dist/EventBus/useLatestEvent.d.ts +0 -2
  676. package/dist/EventBus/useLatestEvent.js +0 -11
  677. package/dist/EventBus/useLatestEvent.js.map +0 -1
  678. package/dist/components/CreditCardForm/getFirstStepData.js.map +0 -1
  679. package/dist/components/LinkDocs/RepordDialogButton.js +0 -17
  680. package/dist/components/LinkDocs/RepordDialogButton.js.map +0 -1
  681. package/dist/ui-kit/CaptchaDialog/useCaptchaDialog.d.ts +0 -6
  682. package/dist/ui-kit/CaptchaDialog/useCaptchaDialog.js +0 -15
  683. package/dist/ui-kit/CaptchaDialog/useCaptchaDialog.js.map +0 -1
  684. package/dist/ui-kit/Checkbox/getDocument.d.ts +0 -1
  685. package/dist/ui-kit/Checkbox/getDocument.js +0 -9
  686. package/dist/ui-kit/Checkbox/getDocument.js.map +0 -1
  687. package/dist/ui-kit/DialogManager/openDocument.d.ts +0 -9
  688. package/dist/ui-kit/DialogManager/openDocument.js +0 -12
  689. package/dist/ui-kit/DialogManager/openDocument.js.map +0 -1
  690. package/dist/ui-kit/LocationDialog/useLocationDialog.d.ts +0 -6
  691. package/dist/ui-kit/LocationDialog/useLocationDialog.js +0 -14
  692. package/dist/ui-kit/LocationDialog/useLocationDialog.js.map +0 -1
  693. package/dist/ui-kit/ReportDialog/useReportDialog.d.ts +0 -6
  694. package/dist/ui-kit/ReportDialog/useReportDialog.js +0 -14
  695. package/dist/ui-kit/ReportDialog/useReportDialog.js.map +0 -1
  696. package/dist/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +0 -9
  697. package/dist/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js +0 -14
  698. package/dist/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js.map +0 -1
  699. package/dist/ui-kit/SearchDialog/useSearchDialog.d.ts +0 -6
  700. package/dist/ui-kit/SearchDialog/useSearchDialog.js +0 -14
  701. package/dist/ui-kit/SearchDialog/useSearchDialog.js.map +0 -1
  702. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +0 -5
  703. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js +0 -14
  704. package/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js.map +0 -1
  705. package/lib/EventBus/useLatestEvent.d.ts +0 -2
  706. package/lib/EventBus/useLatestEvent.js +0 -8
  707. package/lib/EventBus/useLatestEvent.js.map +0 -1
  708. package/lib/components/CreditCardForm/getFirstStepData.js.map +0 -1
  709. package/lib/components/LinkDocs/RepordDialogButton.js +0 -15
  710. package/lib/components/LinkDocs/RepordDialogButton.js.map +0 -1
  711. package/lib/ui-kit/CaptchaDialog/useCaptchaDialog.d.ts +0 -6
  712. package/lib/ui-kit/CaptchaDialog/useCaptchaDialog.js +0 -12
  713. package/lib/ui-kit/CaptchaDialog/useCaptchaDialog.js.map +0 -1
  714. package/lib/ui-kit/Checkbox/getDocument.d.ts +0 -1
  715. package/lib/ui-kit/Checkbox/getDocument.js +0 -6
  716. package/lib/ui-kit/Checkbox/getDocument.js.map +0 -1
  717. package/lib/ui-kit/DialogManager/openDocument.d.ts +0 -9
  718. package/lib/ui-kit/DialogManager/openDocument.js +0 -9
  719. package/lib/ui-kit/DialogManager/openDocument.js.map +0 -1
  720. package/lib/ui-kit/LocationDialog/useLocationDialog.d.ts +0 -6
  721. package/lib/ui-kit/LocationDialog/useLocationDialog.js +0 -11
  722. package/lib/ui-kit/LocationDialog/useLocationDialog.js.map +0 -1
  723. package/lib/ui-kit/ReportDialog/useReportDialog.d.ts +0 -6
  724. package/lib/ui-kit/ReportDialog/useReportDialog.js +0 -11
  725. package/lib/ui-kit/ReportDialog/useReportDialog.js.map +0 -1
  726. package/lib/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +0 -9
  727. package/lib/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js +0 -11
  728. package/lib/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js.map +0 -1
  729. package/lib/ui-kit/SearchDialog/useSearchDialog.d.ts +0 -6
  730. package/lib/ui-kit/SearchDialog/useSearchDialog.js +0 -11
  731. package/lib/ui-kit/SearchDialog/useSearchDialog.js.map +0 -1
  732. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +0 -5
  733. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js +0 -11
  734. package/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js.map +0 -1
  735. package/mobile/bundle/EventBus/useLatestEvent.d.ts +0 -2
  736. package/mobile/bundle/ui-kit/CaptchaDialog/useCaptchaDialog.d.ts +0 -6
  737. package/mobile/bundle/ui-kit/Checkbox/getDocument.d.ts +0 -1
  738. package/mobile/bundle/ui-kit/DialogManager/openDocument.d.ts +0 -9
  739. package/mobile/bundle/ui-kit/LocationDialog/useLocationDialog.d.ts +0 -6
  740. package/mobile/bundle/ui-kit/ReportDialog/useReportDialog.d.ts +0 -6
  741. package/mobile/bundle/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +0 -9
  742. package/mobile/bundle/ui-kit/SearchDialog/useSearchDialog.d.ts +0 -6
  743. package/mobile/bundle/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +0 -5
  744. package/mobile/dist/EventBus/useLatestEvent.d.ts +0 -2
  745. package/mobile/dist/EventBus/useLatestEvent.js +0 -11
  746. package/mobile/dist/EventBus/useLatestEvent.js.map +0 -1
  747. package/mobile/dist/components/CreditCardForm/getFirstStepData.d.ts +0 -3
  748. package/mobile/dist/components/CreditCardForm/getFirstStepData.js.map +0 -1
  749. package/mobile/dist/components/LinkDocs/RepordDialogButton.js +0 -17
  750. package/mobile/dist/components/LinkDocs/RepordDialogButton.js.map +0 -1
  751. package/mobile/dist/ui-kit/CaptchaDialog/useCaptchaDialog.d.ts +0 -6
  752. package/mobile/dist/ui-kit/CaptchaDialog/useCaptchaDialog.js +0 -15
  753. package/mobile/dist/ui-kit/CaptchaDialog/useCaptchaDialog.js.map +0 -1
  754. package/mobile/dist/ui-kit/Checkbox/getDocument.d.ts +0 -1
  755. package/mobile/dist/ui-kit/Checkbox/getDocument.js +0 -9
  756. package/mobile/dist/ui-kit/Checkbox/getDocument.js.map +0 -1
  757. package/mobile/dist/ui-kit/DialogManager/openDocument.d.ts +0 -9
  758. package/mobile/dist/ui-kit/DialogManager/openDocument.js +0 -12
  759. package/mobile/dist/ui-kit/DialogManager/openDocument.js.map +0 -1
  760. package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.d.ts +0 -6
  761. package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.js +0 -14
  762. package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.js.map +0 -1
  763. package/mobile/dist/ui-kit/ReportDialog/useReportDialog.d.ts +0 -6
  764. package/mobile/dist/ui-kit/ReportDialog/useReportDialog.js +0 -14
  765. package/mobile/dist/ui-kit/ReportDialog/useReportDialog.js.map +0 -1
  766. package/mobile/dist/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +0 -9
  767. package/mobile/dist/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js +0 -14
  768. package/mobile/dist/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js.map +0 -1
  769. package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.d.ts +0 -6
  770. package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.js +0 -14
  771. package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.js.map +0 -1
  772. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +0 -5
  773. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js +0 -14
  774. package/mobile/dist/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js.map +0 -1
  775. package/mobile/lib/EventBus/useLatestEvent.d.ts +0 -2
  776. package/mobile/lib/EventBus/useLatestEvent.js +0 -8
  777. package/mobile/lib/EventBus/useLatestEvent.js.map +0 -1
  778. package/mobile/lib/components/CreditCardForm/getFirstStepData.d.ts +0 -3
  779. package/mobile/lib/components/CreditCardForm/getFirstStepData.js.map +0 -1
  780. package/mobile/lib/components/LinkDocs/RepordDialogButton.js +0 -15
  781. package/mobile/lib/components/LinkDocs/RepordDialogButton.js.map +0 -1
  782. package/mobile/lib/ui-kit/CaptchaDialog/useCaptchaDialog.d.ts +0 -6
  783. package/mobile/lib/ui-kit/CaptchaDialog/useCaptchaDialog.js +0 -12
  784. package/mobile/lib/ui-kit/CaptchaDialog/useCaptchaDialog.js.map +0 -1
  785. package/mobile/lib/ui-kit/Checkbox/getDocument.d.ts +0 -1
  786. package/mobile/lib/ui-kit/Checkbox/getDocument.js +0 -6
  787. package/mobile/lib/ui-kit/Checkbox/getDocument.js.map +0 -1
  788. package/mobile/lib/ui-kit/DialogManager/openDocument.d.ts +0 -9
  789. package/mobile/lib/ui-kit/DialogManager/openDocument.js +0 -9
  790. package/mobile/lib/ui-kit/DialogManager/openDocument.js.map +0 -1
  791. package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.d.ts +0 -6
  792. package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.js +0 -11
  793. package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.js.map +0 -1
  794. package/mobile/lib/ui-kit/ReportDialog/useReportDialog.d.ts +0 -6
  795. package/mobile/lib/ui-kit/ReportDialog/useReportDialog.js +0 -11
  796. package/mobile/lib/ui-kit/ReportDialog/useReportDialog.js.map +0 -1
  797. package/mobile/lib/ui-kit/ResponseTypeDialog/useResponseTypeDialog.d.ts +0 -9
  798. package/mobile/lib/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js +0 -11
  799. package/mobile/lib/ui-kit/ResponseTypeDialog/useResponseTypeDialog.js.map +0 -1
  800. package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.d.ts +0 -6
  801. package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.js +0 -11
  802. package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.js.map +0 -1
  803. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.d.ts +0 -5
  804. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js +0 -11
  805. package/mobile/lib/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.js.map +0 -1
  806. package/mobile/src/EventBus/useLatestEvent.ts +0 -16
  807. package/mobile/src/ui-kit/CaptchaDialog/useCaptchaDialog.tsx +0 -12
  808. package/mobile/src/ui-kit/Checkbox/getDocument.ts +0 -7
  809. package/mobile/src/ui-kit/DialogManager/openDocument.tsx +0 -27
  810. package/mobile/src/ui-kit/LocationDialog/useLocationDialog.tsx +0 -11
  811. package/mobile/src/ui-kit/ReportDialog/useReportDialog.tsx +0 -11
  812. package/mobile/src/ui-kit/ResponseTypeDialog/useResponseTypeDialog.tsx +0 -17
  813. package/mobile/src/ui-kit/SearchDialog/useSearchDialog.tsx +0 -12
  814. package/mobile/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.tsx +0 -12
  815. package/src/EventBus/useLatestEvent.ts +0 -16
  816. package/src/ui-kit/CaptchaDialog/useCaptchaDialog.tsx +0 -12
  817. package/src/ui-kit/Checkbox/getDocument.ts +0 -7
  818. package/src/ui-kit/DialogManager/openDocument.tsx +0 -27
  819. package/src/ui-kit/LocationDialog/useLocationDialog.tsx +0 -11
  820. package/src/ui-kit/ReportDialog/useReportDialog.tsx +0 -11
  821. package/src/ui-kit/ResponseTypeDialog/useResponseTypeDialog.tsx +0 -17
  822. package/src/ui-kit/SearchDialog/useSearchDialog.tsx +0 -12
  823. package/src/ui-kit/VerifyPhoneDialog/useVerifyPhoneDialog.tsx +0 -12
  824. /package/bundle/components/LinkDocs/{RepordDialogButton.d.ts → ReportDialogButton.d.ts} +0 -0
  825. /package/dist/components/LinkDocs/{RepordDialogButton.d.ts → ReportDialogButton.d.ts} +0 -0
  826. /package/lib/components/LinkDocs/{RepordDialogButton.d.ts → ReportDialogButton.d.ts} +0 -0
  827. /package/mobile/bundle/components/LinkDocs/{RepordDialogButton.d.ts → ReportDialogButton.d.ts} +0 -0
  828. /package/mobile/dist/components/LinkDocs/{RepordDialogButton.d.ts → ReportDialogButton.d.ts} +0 -0
  829. /package/mobile/lib/components/LinkDocs/{RepordDialogButton.d.ts → ReportDialogButton.d.ts} +0 -0
@@ -423,6 +423,17 @@
423
423
  handlerDecorator._impl = impl;
424
424
  };
425
425
 
426
+ function useEmitterWithActions(eventBus, type) {
427
+ const cache = useRef({});
428
+ return useMemo(() => new Proxy({}, {
429
+ get(_, actionType) {
430
+ cache.current ||= {};
431
+ cache.current[actionType] ||= action => eventBus.fire(type, { ...(action ?? {}), type: actionType });
432
+ return cache.current[actionType];
433
+ }
434
+ }), [eventBus, type]);
435
+ }
436
+
426
437
  class EventBus {
427
438
  watchers = new Set();
428
439
  subscribersMap = {};
@@ -474,11 +485,7 @@
474
485
 
475
486
  const defaultEventBus = new EventBus();
476
487
 
477
- const useDialogManager = () => ({
478
- open: (dialog, options = {}) => defaultEventBus.fire('dialog', { type: 'open', dialog, ...options }),
479
- close: () => defaultEventBus.fire('dialog', { type: 'close' }),
480
- closeAll: () => defaultEventBus.fire('dialog', { type: 'close', all: true }),
481
- });
488
+ const useDialogManager = () => useEmitterWithActions(defaultEventBus.emitter, 'dialog');
482
489
 
483
490
  const adjustBase = (href, basePath = '') => href?.replace(basePath, '') || '/';
484
491
 
@@ -610,17 +617,18 @@
610
617
 
611
618
  const INITIAL_MOBILE_MODE = true;
612
619
 
620
+ const MOBILE_WIDTH = 1024;
621
+ const MOBILE_QUERY = `(max-width: ${MOBILE_WIDTH}px)`;
613
622
  const useMobileMode = () => {
614
- const mq = `(max-width: 1024px)`;
615
- const [isMobileMode, setIsMobileMode] = useState(INITIAL_MOBILE_MODE);
623
+ const [isMobileMode, setMobileMode] = useState(INITIAL_MOBILE_MODE);
616
624
  useEffect(() => {
617
- const mqList = globalThis.matchMedia?.(mq);
625
+ const mqList = globalThis.matchMedia?.(MOBILE_QUERY);
618
626
  const mqHandler = () => {
619
- setIsMobileMode(Boolean(mqList?.matches));
627
+ setMobileMode(Boolean(mqList?.matches));
620
628
  };
621
629
  mqList?.addEventListener('change', mqHandler);
622
630
  if (mqList?.matches) {
623
- setIsMobileMode(Boolean(mqList.matches));
631
+ setMobileMode(true);
624
632
  }
625
633
  return () => {
626
634
  mqList?.removeEventListener('change', mqHandler);
@@ -1209,6 +1217,18 @@
1209
1217
  return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container max-w-[978px] space-y-lg", children: [title ? jsx(Heading, { headingType: "h3", title: title, className: "@xl:text-center" }) : null, children] }) }));
1210
1218
  });
1211
1219
 
1220
+ function useDialog(Dialog, initialProps = {}) {
1221
+ const { open, close, ...rest } = useDialogManager();
1222
+ const openDialog = useCallback((props, options = {}) => open({
1223
+ dialog: (jsx(Dialog, { ...initialProps, ...props, onClose: () => {
1224
+ close();
1225
+ props.onClose?.();
1226
+ } })),
1227
+ ...options,
1228
+ }), [Dialog, open, close]);
1229
+ return { open: openDialog, close, ...rest };
1230
+ }
1231
+
1212
1232
  const getConsentDataProcessing = (inputs) => inputs?.find((_) => _?.name === 'consentDataProcessing');
1213
1233
 
1214
1234
  function useBool(defaultValue = false) {
@@ -1380,11 +1400,7 @@
1380
1400
  return debouncedCallback;
1381
1401
  };
1382
1402
 
1383
- const usePopupManager = () => ({
1384
- open: (popup, options) => defaultEventBus.fire('popup', { type: 'open', popup, ...options }),
1385
- update: (popup, options) => defaultEventBus.fire('popup', { type: 'update', popup, ...options }),
1386
- close: () => defaultEventBus.fire('popup', { type: 'close' }),
1387
- });
1403
+ const usePopupManager = () => useEmitterWithActions(defaultEventBus.emitter, 'popup');
1388
1404
 
1389
1405
  const InputPopup = JSX(({ options, onChange }) => (jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-2xl", role: "list", children: options?.map((item, key) => (jsx("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "listitem", onMouseDown: () => onChange(item), children: jsx("span", { className: "min-h-6", children: item.processedValue }) }, key.toString()))) })));
1390
1406
 
@@ -1434,7 +1450,8 @@
1434
1450
  debouncedGetHintsList(value);
1435
1451
  prevInputValue.current = value;
1436
1452
  }
1437
- popup.update(jsx(InputPopup, { options: hintsList, value: value, onChange: handleChange }), {
1453
+ popup.open({
1454
+ popup: jsx(InputPopup, { options: hintsList, value: value, onChange: handleChange }),
1438
1455
  top: top + globalThis.scrollY + height,
1439
1456
  left,
1440
1457
  width,
@@ -1502,7 +1519,8 @@
1502
1519
  }
1503
1520
  const inputElement = inputRef.current;
1504
1521
  const { top, left, width, height } = inputElement.getBoundingClientRect();
1505
- popup.update(jsx(SelectPopup, { popupRef: popupRef, options: options, value: value, query: query, onChange: handleChange, iconVersion: iconVersion }), {
1522
+ popup.open({
1523
+ popup: (jsx(SelectPopup, { popupRef: popupRef, options: options, value: value, query: query, onChange: handleChange, iconVersion: iconVersion })),
1506
1524
  top: top + window.scrollY + height,
1507
1525
  left,
1508
1526
  width,
@@ -1890,8 +1908,21 @@
1890
1908
  }, []);
1891
1909
  const onChange = useCallback((value) => {
1892
1910
  field?.(fieldName)?.onChange?.({
1893
- ...field(fieldName).value,
1911
+ apartment: '',
1912
+ city: '',
1913
+ district: '',
1894
1914
  fullAddress: value,
1915
+ fiasCode: '',
1916
+ house: '',
1917
+ locality: '',
1918
+ okatoRegionCode: '',
1919
+ postcode: '',
1920
+ region: '',
1921
+ regionCode: '',
1922
+ street: '',
1923
+ qc: '',
1924
+ qcComplete: '',
1925
+ qcHouse: '',
1895
1926
  });
1896
1927
  }, []);
1897
1928
  return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, fieldName), label: "\u0410\u0434\u0440\u0435\u0441", ...getValidation(field(fieldName), validatorObj[fieldName], input?.required), value: fieldValue.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
@@ -2619,12 +2650,14 @@
2619
2650
  const ITEMS_CREDIT_AMOUNT = ['От 1 000 ₽', 'До 1 000 000 000 ₽'];
2620
2651
  const AmountField = JSX(({ field }) => (jsx(InputRange, { title: "\u0421\u0443\u043C\u043C\u0430, \u20BD", items: ITEMS_CREDIT_AMOUNT, min: MIN_CREDIT_AMOUNT, max: MAX_CREDIT_AMOUNT, ...field('amount') })));
2621
2652
 
2622
- const SelectField = UniBlock(({ field, source, label, fieldName, input, placeholder = 'Выберите из списка', isSearch = false, }) => {
2653
+ const SelectField = UniBlock(({ field, source, fieldName, input, placeholder = 'Выберите из списка',
2654
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2655
+ options, ...rest }) => {
2623
2656
  const leadOptions = source?.map((_) => ({
2624
2657
  key: _.key || '',
2625
2658
  text: _.value,
2626
2659
  })) || [];
2627
- return (jsx(SelectControl, { placeholder: placeholder, label: label, options: leadOptions, isSearch: isSearch, ...getValidation(field(fieldName), validatorObj[fieldName], input?.required) }));
2660
+ return (jsx(SelectControl, { placeholder: placeholder, options: leadOptions, ...getValidation(field(fieldName), validatorObj[fieldName], input?.required), ...rest }));
2628
2661
  });
2629
2662
 
2630
2663
  const AmountWorkersField = JSX(({ field, input }) => {
@@ -2935,11 +2968,15 @@
2935
2968
  };
2936
2969
 
2937
2970
  function useLocalStorage(key) {
2938
- const [storedValue, setStoredValue] = useState(JSON.parse(globalThis.localStorage?.getItem(key) || 'null'));
2971
+ const initialValue = globalThis.localStorage?.getItem(key);
2972
+ const [storedValue, setStoredValue] = useState(initialValue ? JSON.parse(initialValue) : null);
2939
2973
  const setValue = useCallback((value) => {
2940
- globalThis.localStorage?.setItem(key, JSON.stringify(value));
2941
- setStoredValue(value);
2942
- }, [key, globalThis.localStorage]);
2974
+ setStoredValue((oldValue) => {
2975
+ const newValue = value instanceof Function ? value(oldValue) : value;
2976
+ globalThis.localStorage?.setItem(key, JSON.stringify(newValue));
2977
+ return newValue;
2978
+ });
2979
+ }, [key]);
2943
2980
  return [storedValue, setValue];
2944
2981
  }
2945
2982
 
@@ -3007,6 +3044,11 @@
3007
3044
  },
3008
3045
  };
3009
3046
 
3047
+ const feedbackById = async (id, convertToPng = false) => {
3048
+ const response = await doRequest(`/feedback/file?id=${encodeURIComponent(id)}&convertToPngFlg=${convertToPng}`, 'GET');
3049
+ return response ? await response.blob() : new Blob();
3050
+ };
3051
+
3010
3052
  function useButton() {
3011
3053
  return (props) => ({
3012
3054
  ...props,
@@ -3039,37 +3081,28 @@
3039
3081
  : '', className), type: type, role: role, onClick: onClick, children: children }));
3040
3082
  });
3041
3083
 
3042
- const feedbackById = async (id, convertToPng = false) => {
3043
- const response = await doRequest(`/feedback/file?id=${encodeURIComponent(id)}&convertToPngFlg=${convertToPng}`, 'GET');
3044
- return response ? await response.blob() : new Blob();
3045
- };
3046
-
3047
- const getDocument = async (id, convertToPng = false) => {
3048
- const response = await feedbackById(id, convertToPng);
3049
- return URL.createObjectURL(response);
3050
- };
3051
-
3052
3084
  const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", type: "button", children: jsx(Icon, { name: "CloseIcon", width: "20", height: "20", iconVersion: "gray" }) })));
3053
3085
 
3054
- const Dialog = JSX(({ className, head, children, onClose, onClick }) => {
3055
- const { close } = useDialogManager();
3056
- const handleClose = useCallback(() => {
3057
- close();
3058
- onClose && onClose();
3059
- }, [onClose]);
3060
- return (jsxs("div", { onClick: onClick, className: style('relative min-h-full bg-white pt-0 p-lg', className), role: "dialog", children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: handleClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] }));
3061
- });
3086
+ const Dialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { className: style('relative min-h-full bg-white pt-0 p-lg', className), role: "dialog", onClick: onClick, children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: onClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] })));
3062
3087
 
3063
- const openDocument = async ({ open, close, id, convertToPng = false }) => {
3064
- const document = await getDocument(id, convertToPng);
3065
- open(jsxs(Dialog, { className: "my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0", children: [convertToPng ? (jsx("img", { src: document })) : (jsx("iframe", { src: `${document}#toolbar=0`, className: "w-full h-[80vh]", id: "iframe-dialog" })), jsx(Button, { className: "mx-auto mt-m", type: "button", onClick: close, children: "\u041E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C\u0441\u044F" })] }));
3088
+ // TODO Перенесено как есть из openDocument. Требует рефакторинга
3089
+ const DocumentDialog = JSX(({ src, convertToPng, onClose }) => (jsxs(Dialog, { className: "my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0", onClose: onClose, children: [convertToPng ? (jsx("img", { src: src })) : (jsx("iframe", { src: `${src}#toolbar=0`, className: "w-full h-[80vh]", id: "iframe-dialog" })), jsx(Button, { className: "mx-auto mt-m", type: "button", onClick: onClose, children: "\u041E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C\u0441\u044F" })] })));
3090
+
3091
+ const useDocumentDialog = (docId) => {
3092
+ const { open } = useDialog(DocumentDialog);
3093
+ const isMobileMode = useMobileMode();
3094
+ return useCallback(async () => {
3095
+ if (docId) {
3096
+ const src = URL.createObjectURL(await feedbackById(docId, isMobileMode));
3097
+ open({ src });
3098
+ }
3099
+ }, [open, docId, isMobileMode]);
3066
3100
  };
3067
3101
 
3068
3102
  const OPEN_DOC_BUTTON_TEXT = 'Ознакомиться';
3069
3103
  const CheckboxWithDoc = JSX(({ className, error, docId, ...props }) => {
3070
- const { open, close } = useDialogManager();
3071
- const isMobile = useMobileMode();
3072
- return (jsxs("div", { className: className, children: [jsxs("div", { className: "flex flex-wrap gap-x-m", children: [jsx(Checkbox, { ...props }), docId ? (jsx(LinkButton, { className: "text-primary-main", onClick: () => openDocument({ open, close, id: docId, convertToPng: isMobile }), children: jsx(Text, { children: OPEN_DOC_BUTTON_TEXT }) })) : null] }), renderErrorText(error)] }));
3104
+ const openDocument = useDocumentDialog(docId);
3105
+ return (jsxs("div", { className: className, children: [jsxs("div", { className: "flex flex-wrap gap-x-m", children: [jsx(Checkbox, { ...props }), docId ? (jsx(LinkButton, { className: "text-primary-main", onClick: openDocument, children: jsx(Text, { children: OPEN_DOC_BUTTON_TEXT }) })) : null] }), renderErrorText(error)] }));
3073
3106
  });
3074
3107
 
3075
3108
  const ConsentField = JSX(({ field, input }) => input && input.name ? (jsx(CheckboxWithDoc, { text: CONSENTS[input.name]?.text, docId: CONSENTS[input.name]?.docId, ...getValidation(field(input.name), validatorObj[input.name], input?.required) })) : null);
@@ -3386,12 +3419,12 @@
3386
3419
  return (jsx(CalculatorCredit, { ...params?.calcData, defaultParams: defaultValueAdapter(field(FIELD_NAME$9).value), onChange: handleChange }));
3387
3420
  });
3388
3421
 
3389
- const LABEL_TEXT = `Имеет ли юридическое лицо, акционером / участником / членом / пайщиком /
3390
- вкладчиком с долей участия более 20% уставного капитала руководителем,
3422
+ const LABEL_TEXT = `Имеет ли юридическое лицо, акционером / участником / членом / пайщиком /
3423
+ вкладчиком с долей участия более 20% уставного капитала руководителем,
3391
3424
  которого Вы являетесь, кредит в АО «Россельхозбанк»`;
3392
3425
  const CreditInRshbCdField = JSX(({ field, input }) => {
3393
3426
  const { data: creditInRshbCd } = useLeadFormData('CREDIT_IN_RSHB');
3394
- return (jsx(SelectField, { field: field, source: creditInRshbCd, label: LABEL_TEXT, fieldName: "creditInRshbCd", input: input }));
3427
+ return (jsx(SelectField, { field: field, source: creditInRshbCd, label: LABEL_TEXT, fieldName: "creditInRshbCd", input: input, disabled: !field?.('shareholderFlg')?.value }));
3395
3428
  });
3396
3429
 
3397
3430
  const RadioButtonGroupControl = JSX(({ className, label, onChange, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(RadioButtonGroup, { label: getRequiredLabel({ label, errors: rest?.errors }), onChange: (_) => onChange && onChange(_), ...rest }), renderErrorText(error)] })));
@@ -3522,7 +3555,7 @@
3522
3555
  const LastJobExperienceField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0421\u0442\u0430\u0436 \u043D\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u043C \u0440\u0430\u0431\u043E\u0447\u0435\u043C \u043C\u0435\u0441\u0442\u0435", placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043B\u0435\u0442", type: "number", maxLength: 2, ...getValidation(field('lastJobExperience'), validatorObj.lastJobExperience, input?.required), ...input })));
3523
3556
 
3524
3557
  const LegalEntityNameField = JSX(({ field, input }) => {
3525
- return (jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043B\u0438\u0446\u0430", ...input, ...getValidation(field('legalEntityName'), validatorObj.legalEntityName, input?.required) }));
3558
+ return (jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043B\u0438\u0446\u0430", ...input, ...getValidation(field('legalEntityName'), validatorObj.legalEntityName, input?.required), disabled: !field?.('shareholderFlg')?.value }));
3526
3559
  });
3527
3560
 
3528
3561
  const LegalFormField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u041F\u0424", placeholder: "\u041E\u041E\u041E, \u041F\u0410\u041E \u0438 \u0434\u0440.", ...getValidation(field('legalForm'), validatorObj.legalForm, input?.required), ...input })));
@@ -3919,29 +3952,17 @@
3919
3952
 
3920
3953
  const renderTitle = (title) => title ? (jsx("div", { className: "@xl:text-center @xl:col-span-2 mb-m", children: jsx(Text, { size: "text-h6", children: title }) })) : null;
3921
3954
 
3922
- const ResponseTypeDialog = JSX(function ({ responseType, typeForm, }) {
3955
+ const ResponseTypeDialog = JSX(({ responseType, typeForm, onClose }) => {
3923
3956
  const responseOK = responseType === 'OK';
3924
3957
  const statusIcon = responseOK ? 'ResponseOKIcon' : 'ResponseFailIcon';
3925
- const { close } = useDialogManager();
3926
- const handleClose = useCallback(() => {
3927
- close();
3928
- }, []);
3929
3958
  const responseOKDescription = typeForm === 'ANTIFRAUD'
3930
3959
  ? `Сообщение отправлено. Для уточнения информации с Вами могут связаться работники Банка либо Вы
3931
3960
  можете самостоятельно позвонить по номеру контакт-центра +78001000100. Будьте внимательны, работники Банка
3932
3961
  не звонят с использованием мессенджеров.`
3933
3962
  : 'Совсем скоро мы с вами свяжемся';
3934
- return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto ", children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: statusIcon, iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', description: responseOK ? responseOKDescription : 'Пожалуйста, повторите позднее', headlineVersion: "XS", isEmbedded: true }), jsx(Button, { type: "button", onClick: handleClose, children: "\u0425\u043E\u0440\u043E\u0448\u043E" })] }) }));
3963
+ return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: statusIcon, iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', description: responseOK ? responseOKDescription : 'Пожалуйста, повторите позднее', headlineVersion: "XS", isEmbedded: true }), jsx(Button, { type: "button", onClick: onClose, children: "\u0425\u043E\u0440\u043E\u0448\u043E" })] }) }));
3935
3964
  });
3936
3965
 
3937
- const useResponseTypeDialog = (initialProps) => {
3938
- const { open, close } = useDialogManager();
3939
- return {
3940
- open: (props, options = {}) => open(jsx(ResponseTypeDialog, { ...initialProps, ...props }), options),
3941
- close,
3942
- };
3943
- };
3944
-
3945
3966
  const objectValidator = (validatorsMap) => (o) => (o &&
3946
3967
  Object.entries(validatorsMap).flatMap(([key, validator]) => validator(o[key]))) ||
3947
3968
  [];
@@ -4032,7 +4053,7 @@
4032
4053
  const inputs = (sections?.flatMap((_) => _?.inputs) || []);
4033
4054
  const initialFormState = getInitialFormState$3(inputs, typeForm);
4034
4055
  const [responseType, setResponseType] = useState('');
4035
- const responseTypeDialog = useResponseTypeDialog({ typeForm });
4056
+ const responseTypeDialog = useDialog(ResponseTypeDialog);
4036
4057
  const handleSubmit = useCallback(async (formData, ev) => {
4037
4058
  const inputsFiltered = getFilteredInputs(inputs, formData);
4038
4059
  const feedbackValidator = objectValidator(getObjectValidator(inputsFiltered));
@@ -4043,14 +4064,14 @@
4043
4064
  const status = (await API.send(formatData, endpoint === 'lead')) ? 'OK' : 'Fail';
4044
4065
  setResponseType(status);
4045
4066
  if (status) {
4046
- responseTypeDialog.open({ responseType: status });
4067
+ responseTypeDialog.open({ typeForm, responseType: status });
4047
4068
  }
4048
4069
  if (status === 'OK' && data) {
4049
4070
  const aspects = useAspects();
4050
4071
  handleAspects({ aspectsAttributes: data, aspects, ev });
4051
4072
  }
4052
4073
  return status;
4053
- }, []);
4074
+ }, [typeForm]);
4054
4075
  const [, { field, onSubmit, reset }] = useForm(initialFormState, { onSubmit: handleSubmit });
4055
4076
  const fieldName = getConsentDataProcessing(inputs)?.name;
4056
4077
  useEffect(() => {
@@ -4246,7 +4267,7 @@
4246
4267
  ? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title ?? 'Россельхозбанк' }) }))
4247
4268
  : null] })));
4248
4269
 
4249
- const CaptchaDialog = JSX(({ phoneNumber, close, sendCode, onClose }) => {
4270
+ const CaptchaDialog = JSX(({ phoneNumber, sendCode, onClose }) => {
4250
4271
  const [captcha, setCaptcha] = useState('');
4251
4272
  const [code, setCode] = useState('');
4252
4273
  const [hasError, setHasError] = useState(false);
@@ -4254,28 +4275,19 @@
4254
4275
  const isValidCode = await checkCaptcha({ captchaText: code });
4255
4276
  if (isValidCode) {
4256
4277
  sendCode?.();
4257
- close?.();
4278
+ onClose?.();
4258
4279
  }
4259
4280
  else {
4260
4281
  setHasError(isValidCode);
4261
4282
  }
4262
- }, [code]);
4283
+ }, [code, sendCode]);
4263
4284
  const handleCreateCaptcha = useCallback(() => {
4264
4285
  (async () => setCaptcha(URL.createObjectURL(await createCaptcha(phoneNumber))))();
4265
4286
  }, []);
4266
4287
  useEffect(handleCreateCaptcha, []);
4267
- return (jsx(Dialog, { head: jsx(Logo, {}), onClose: onClose, className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex h-36 w-72", children: [jsx("img", { className: "grow", src: captcha }), jsx("div", { onClick: handleCreateCaptcha, className: "flex w-8 items-center justify-center cursor-pointer", children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-[300px]", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-[310px] justify-between", children: [jsx(Button, { onClick: close, version: "secondary", children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(Button, { type: "submit", disabled: !code, onClick: handleCheckCaptcha, version: "secondary", children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] })] }) }));
4288
+ return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", head: jsx(Logo, {}), onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex h-36 w-72", children: [jsx("img", { className: "grow", src: captcha }), jsx("div", { onClick: handleCreateCaptcha, className: "flex w-8 items-center justify-center cursor-pointer", children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-[300px]", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-[310px] justify-between", children: [jsx(Button, { onClick: close, version: "secondary", children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(Button, { type: "submit", disabled: !code, onClick: handleCheckCaptcha, version: "secondary", children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] })] }) }));
4268
4289
  });
4269
4290
 
4270
- const useCaptchaDialog = (initialProps, onClose) => {
4271
- const { open, close, closeAll } = useDialogManager();
4272
- return {
4273
- open: () => open(jsx(CaptchaDialog, { close: close, onClose: onClose, ...initialProps })),
4274
- close,
4275
- closeAll,
4276
- };
4277
- };
4278
-
4279
4291
  const Timer = JSX(({ time, setTime, className }) => {
4280
4292
  useEffect(() => {
4281
4293
  const timer = setInterval(() => {
@@ -4348,94 +4360,77 @@
4348
4360
  }
4349
4361
  };
4350
4362
 
4351
- const useVerifyPhoneDialogSubmit = ({ close, values }) => {
4352
- const [hasError, setHasError] = useState(false);
4363
+ const useVerifyPhoneDialogSubmit = ({ values, onSuccess, }) => {
4353
4364
  const [errorText, setErrorText] = useState('');
4354
4365
  const [isLoading, setIsLoading] = useState(false);
4355
4366
  const [timeNextReq, setTimeNextReq] = useState(0);
4356
4367
  const [isTimerStarted, setIsTimerStarted] = useState(false);
4357
- const [attemps, setAttemps] = useState(0);
4358
- const resetError = useCallback(() => {
4359
- setHasError(false);
4360
- setErrorText('');
4361
- }, []);
4362
- const isTimeExpired = useMemo(() => timeNextReq === 0 && isTimerStarted, [timeNextReq, isTimerStarted]);
4363
- const isSubmitButtonDisabled = useMemo(() => attemps > 2 || !values.every(Boolean) || isTimeExpired, [values]);
4368
+ const [attempts, setAttempts] = useState(0);
4369
+ const resetError = useCallback(() => setErrorText(''), []);
4370
+ const isTimeExpired = Boolean(timeNextReq === 0 && isTimerStarted);
4371
+ const isSubmitButtonDisabled = attempts > 2 || isTimeExpired || !values.every(Boolean);
4364
4372
  const handleSubmit = useCallback(async () => {
4365
4373
  try {
4366
4374
  setIsTimerStarted(false);
4367
4375
  setTimeNextReq(0);
4368
- setAttemps(attemps + 1);
4376
+ setAttempts((_) => _ + 1);
4369
4377
  setIsLoading(true);
4370
4378
  await checkCode({
4371
4379
  smsText: values.join(''),
4372
4380
  smsCodesSetName: { key: 'AUTHENTICATION' },
4373
4381
  });
4374
4382
  resetError();
4375
- close && close(values.join(''));
4383
+ onSuccess?.(values.join(''));
4376
4384
  }
4377
4385
  catch {
4386
+ setErrorText(attempts > 1 ? 'Исчерпан лимит ввода смс-кода' : 'Неверный код');
4387
+ }
4388
+ finally {
4378
4389
  setIsLoading(false);
4379
- attemps > 1 ? setErrorText('Исчерпан лимит ввода смс-кода') : setErrorText('Неверный код');
4380
- setHasError(true);
4381
4390
  }
4382
- }, [values, attemps]);
4391
+ }, [values, attempts]);
4383
4392
  useEffect(() => {
4384
- if (isTimeExpired) {
4385
- setHasError(true);
4386
- setErrorText('Код просрочен');
4387
- }
4388
- else {
4389
- setHasError(false);
4390
- }
4393
+ setErrorText(isTimeExpired ? 'Код просрочен' : '');
4391
4394
  }, [isTimeExpired]);
4392
4395
  return {
4393
4396
  handleSubmit,
4394
- hasError,
4397
+ hasError: Boolean(errorText),
4395
4398
  errorText,
4396
4399
  isLoading,
4397
4400
  timeNextReq,
4398
4401
  isSubmitButtonDisabled,
4399
4402
  setTimeNextReq,
4400
4403
  setIsTimerStarted,
4401
- setAttemps,
4404
+ setAttempts,
4402
4405
  };
4403
4406
  };
4404
4407
 
4405
- const VerifyPhoneDialog = JSX(({ close = noop, onClose = noop, title, description, __html, code = true, codeLength = 4, textButton = 'Далее', phoneNumber = '+79999999999', }) => {
4408
+ const VerifyPhoneDialog = JSX(({ title, description, __html, code = true, codeLength = 4, textButton = 'Далее', phoneNumber = '+79999999999', onSuccess = noop, onClose = noop, }) => {
4406
4409
  const [values, setValues] = useState(Array(codeLength).fill(''));
4407
- const { handleSubmit, hasError, errorText, isLoading, timeNextReq, isSubmitButtonDisabled, setTimeNextReq, setIsTimerStarted, setAttemps, } = useVerifyPhoneDialogSubmit({ values, close });
4410
+ const { handleSubmit, hasError, errorText, isLoading, timeNextReq, isSubmitButtonDisabled, setTimeNextReq, setIsTimerStarted, setAttempts, } = useVerifyPhoneDialogSubmit({ values, onSuccess });
4411
+ const captchaDialog = useDialog(CaptchaDialog);
4408
4412
  const handleSendCode = useCallback(async () => {
4409
4413
  const isSuccessSendCode = await sendCode({
4410
- phoneNumber: phoneNumber,
4414
+ phoneNumber,
4411
4415
  smsCodesSetName: { key: 'AUTHENTICATION' },
4412
4416
  });
4413
4417
  if (isSuccessSendCode) {
4414
- setAttemps(0);
4418
+ setAttempts(0);
4415
4419
  setTimeNextReq(180);
4416
4420
  setIsTimerStarted(true);
4417
4421
  }
4418
4422
  else {
4419
- captchaDialog.open();
4423
+ captchaDialog.open({ phoneNumber, sendCode: handleSendCode, onClose });
4420
4424
  }
4421
- }, []);
4422
- const captchaDialog = useCaptchaDialog({ phoneNumber, sendCode: handleSendCode }, onClose);
4425
+ }, [phoneNumber, onClose]);
4423
4426
  useEffect(() => {
4424
4427
  handleSendCode();
4425
4428
  }, []);
4426
- return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl px-5xl py-0", children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: title, description: description, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$2(timeNextReq, setTimeNextReq, handleSendCode), jsx(RichText, { itemSize: "list-s", __html: __html }), renderTextButton(textButton, isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
4429
+ return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl px-5xl py-0", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: title, description: description, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$2(timeNextReq, setTimeNextReq, handleSendCode), jsx(RichText, { itemSize: "list-s", __html: __html }), renderTextButton(textButton, isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
4427
4430
  });
4428
4431
  const renderTextButton = (textButton, isDisabled, handleSubmit) => textButton ? (jsx(SubmitButton, { isDisabled: isDisabled, onClick: handleSubmit, text: textButton })) : null;
4429
4432
  const renderText$2 = (timeNextReq, setTimeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "text-base ml-1", time: timeNextReq, setTime: setTimeNextReq })] })) : (jsx(LinkButton, { onClick: handleSendCode, className: "text-primary-main", children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }));
4430
4433
 
4431
- const useVerifyPhoneDialog = () => {
4432
- const { open, close } = useDialogManager();
4433
- return {
4434
- open: (handleClose, props) => open(jsx(VerifyPhoneDialog, { onClose: close, close: handleClose, ...props })),
4435
- close,
4436
- };
4437
- };
4438
-
4439
4434
  const defaultConsentText = {
4440
4435
  title: 'Подпишите согласие на запрос в БКИ',
4441
4436
  description: 'Согласие на запрос в Бюро кредитных историй (БКИ) ускорит решение по кредиту',
@@ -4444,33 +4439,31 @@
4444
4439
  title: 'Вы уверены, что хотите отказаться от запроса в БКИ',
4445
4440
  description: 'Согласие на запрос в Бюро кредитных историй (БКИ) повысит вероятность одобрения',
4446
4441
  };
4447
- const ConsentBkiDialog = JSX(function ({ handleSubmit = noop, onClose = noop, }) {
4442
+ const ITEMS$1 = [
4443
+ { id: 'SIGNED', text: 'Подписать' },
4444
+ { id: 'REFUSE', text: 'Отказаться' },
4445
+ ];
4446
+ const CONSENT_BKI_ID = 2;
4447
+ const ConsentBkiDialog = JSX(({ onSubmit = noop, onClose = noop }) => {
4448
4448
  const [confirmStatus, setConfirmStatus] = useState('');
4449
- const [showRefuceContent, setShowRefuceContent] = useState(false);
4450
- const { open, close } = useDialogManager();
4451
- const isMobile = useMobileMode();
4452
- const handleClose = useCallback(() => {
4453
- close();
4454
- handleSubmit(confirmStatus);
4455
- }, [confirmStatus]);
4449
+ const [showRefuseContent, setShowRefuseContent] = useState(false);
4450
+ const openDocument = useDocumentDialog(CONSENT_BKI_ID);
4451
+ const handleSubmit = useCallback(() => {
4452
+ onSubmit(confirmStatus);
4453
+ }, [onSubmit, confirmStatus]);
4456
4454
  const handleConfirmChange = useCallback((value) => {
4457
4455
  setConfirmStatus(value);
4458
4456
  if (value === 'REFUSE') {
4459
- setShowRefuceContent(true);
4457
+ setShowRefuseContent(true);
4460
4458
  }
4461
4459
  }, []);
4462
- const consentText = showRefuceContent ? refuseConsentText : defaultConsentText;
4463
- return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg py-0 px-5xl", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx("div", { role: "button", onClick: () => openDocument({ open, close, id: CONSENT_BKI_ID, convertToPng: isMobile }), children: jsx(Heading, { className: "text-center text-balance", headingType: "h2", title: consentText.title }) }), jsx(Paragraph, { align: "text-center", children: consentText.description }), jsx(RadioButtonGroup, { className: "whitespace-normal", orientation: "horizontal", items: ITEMS$1, value: confirmStatus, onChange: handleConfirmChange }), jsx(Button, { disabled: !confirmStatus, type: "button", onClick: handleClose, children: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C" })] }) }));
4460
+ const consentText = showRefuseContent ? refuseConsentText : defaultConsentText;
4461
+ return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg py-0 px-5xl", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx("div", { role: "button", onClick: openDocument, children: jsx(Heading, { className: "text-center text-balance", headingType: "h2", title: consentText.title }) }), jsx(Paragraph, { align: "text-center", children: consentText.description }), jsx(RadioButtonGroup, { className: "whitespace-normal", orientation: "horizontal", items: ITEMS$1, value: confirmStatus, onChange: handleConfirmChange }), jsx(Button, { disabled: !confirmStatus, type: "button", onClick: handleSubmit, children: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C" })] }) }));
4464
4462
  });
4465
- const ITEMS$1 = [
4466
- { id: 'SIGNED', text: 'Подписать' },
4467
- { id: 'REFUSE', text: 'Отказаться' },
4468
- ];
4469
- const CONSENT_BKI_ID = 2;
4470
4463
 
4471
4464
  const useConsentBkiDialog = (onClose) => {
4472
- const { open, close } = useDialogManager();
4473
- const verifyPhoneDialog = useVerifyPhoneDialog();
4465
+ const { open } = useDialog(ConsentBkiDialog);
4466
+ const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
4474
4467
  const handleSuccessVerify = (profileId) => async (smsCode) => {
4475
4468
  try {
4476
4469
  if (profileId) {
@@ -4489,16 +4482,18 @@
4489
4482
  }
4490
4483
  };
4491
4484
  const handleSubmitBkiConstent = (phone, profileId) => async (confirmStatus) => {
4492
- close();
4493
4485
  if (confirmStatus === 'SIGNED' && phone) {
4494
- verifyPhoneDialog.open(handleSuccessVerify(profileId), verifyPhoneContent$1(phone));
4486
+ verifyPhoneDialog.open({
4487
+ ...verifyPhoneContent$1(phone),
4488
+ onSuccess: handleSuccessVerify(profileId),
4489
+ });
4495
4490
  }
4496
4491
  else {
4497
4492
  onClose();
4498
4493
  }
4499
4494
  };
4500
4495
  return {
4501
- open: (phone, profileId) => open(jsx(ConsentBkiDialog, { handleSubmit: handleSubmitBkiConstent(phone, profileId), onClose: onClose })),
4496
+ open: (phone, profileId) => open({ onSubmit: handleSubmitBkiConstent(phone, profileId), onClose }),
4502
4497
  };
4503
4498
  };
4504
4499
  const verifyPhoneContent$1 = (phone) => ({
@@ -4512,30 +4507,25 @@
4512
4507
 
4513
4508
  const getLink = (body) => fetchRetailJSON('/esia/getLink', 'POST', body);
4514
4509
 
4515
- const EsiaLoginDialog = JSX(function ({ handleClose }) {
4510
+ const EsiaLoginDialog = JSX(({ onClose }) => {
4516
4511
  const navigator = locationNavigator();
4517
4512
  const handleAuth = useCallback(async () => {
4518
4513
  const resp = await getLink({
4519
4514
  redirectUri: navigator.href,
4520
4515
  });
4521
- if (resp) {
4516
+ if (resp?.link) {
4522
4517
  navigator.assign(resp.link);
4523
4518
  }
4524
4519
  }, []);
4525
- return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex items-center justify-around w-full", children: [jsxs("ul", { className: "list-disc", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), jsxs("div", { className: "flex items-center justify-between w-full m-0", children: [jsx(Button, { type: "button", onClick: handleAuth, children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), jsx(Button, { type: "button", version: "secondary", onClick: handleClose, children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
4520
+ return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex items-center justify-around w-full", children: [jsxs("ul", { className: "list-disc", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), jsxs("div", { className: "flex items-center justify-between w-full m-0", children: [jsx(Button, { type: "button", onClick: handleAuth, children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), jsx(Button, { type: "button", version: "secondary", onClick: onClose, children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
4526
4521
  });
4527
4522
 
4528
4523
  const useEsiaLoginDialog = (nextStepLink) => {
4529
- const { open, close } = useDialogManager();
4524
+ const { open } = useDialog(EsiaLoginDialog);
4530
4525
  const navigator = locationNavigator();
4531
- const handleClose = useCallback(() => {
4532
- close();
4533
- navigator.assign(nextStepLink);
4534
- }, []);
4535
- return {
4536
- open: (options = {}) => open(jsx(EsiaLoginDialog, { handleClose: handleClose }), options),
4537
- close,
4538
- };
4526
+ return useCallback(() => {
4527
+ open({ onClose: () => navigator.assign(nextStepLink) });
4528
+ }, [open, nextStepLink]);
4539
4529
  };
4540
4530
 
4541
4531
  const fieldsNamesToContactKeysMap = {
@@ -4643,9 +4633,9 @@
4643
4633
  const [, setProfileId] = useLocalStorage('profileId');
4644
4634
  const [, setParticipantId] = useLocalStorage('participantId');
4645
4635
  const [, setProgramId] = useLocalStorage('programId');
4646
- const esiaLoginDialog = useEsiaLoginDialog(nextStepLink);
4647
- const consentBkiDialog = useConsentBkiDialog(esiaLoginDialog.open);
4648
- const verifyPhoneDialog = useVerifyPhoneDialog();
4636
+ const openEsiaLoginDialog = useEsiaLoginDialog(nextStepLink);
4637
+ const consentBkiDialog = useConsentBkiDialog(openEsiaLoginDialog);
4638
+ const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
4649
4639
  const saveUserData = useCallback(({ participantId, taskId, profileId, programId: programNumber }) => {
4650
4640
  setParticipantId(participantId);
4651
4641
  setTaskId(taskId);
@@ -4656,7 +4646,7 @@
4656
4646
  const handleSubmit = useCallback(async (formData) => {
4657
4647
  const feedbackValidator = objectValidator(getObjectValidator(inputs));
4658
4648
  if (!isValidationSuccess(feedbackValidator(formData))) {
4659
- return console.warn('validation fail');
4649
+ return;
4660
4650
  }
4661
4651
  try {
4662
4652
  const profileId = await createUserProfile({
@@ -4682,7 +4672,10 @@
4682
4672
  const acceptedConsents = Object.keys(CONSENTS)
4683
4673
  .filter((_) => formData[_])
4684
4674
  .map((_) => CONSENTS[_]?.text);
4685
- verifyPhoneDialog.open(handleSuccessVerify, verifyPhoneContent(formData?.phone, acceptedConsents));
4675
+ verifyPhoneDialog.open({
4676
+ ...verifyPhoneContent(formData?.phone, acceptedConsents),
4677
+ onSuccess: handleSuccessVerify,
4678
+ });
4686
4679
  }
4687
4680
  }
4688
4681
  catch {
@@ -4786,32 +4779,36 @@
4786
4779
 
4787
4780
  const useInitApplicationLead = (nextStepLink) => {
4788
4781
  const navigator = locationNavigator();
4789
- const [isLoading, setIsLoading] = useState(false);
4790
- const [profileId] = useLocalStorage('profileId');
4791
- const [leadForm, setLeadForm] = useLocalStorage('leadForm');
4792
- const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
4793
- const code = params.get('code');
4794
- const state = params.get('state');
4795
- const updateEsiaProfile = useCallback(async () => {
4796
- if (profileId && code && state) {
4782
+ const [isLoading, { setTrue: startLoading, setFalse: endLoading }] = useBool(false);
4783
+ const [, setLeadForm] = useLocalStorage('leadForm');
4784
+ const updateEsiaProfile = useCallback(async (profileId, code, state) => {
4785
+ startLoading();
4786
+ try {
4797
4787
  const data = await updateProfileEsia({
4798
- profileId: profileId,
4788
+ profileId,
4799
4789
  code,
4800
4790
  state,
4801
- redirectUri: navigator.href,
4791
+ redirectUri: globalThis.location?.href,
4802
4792
  });
4803
- data &&
4804
- setLeadForm({
4805
- ...leadForm,
4793
+ if (data) {
4794
+ setLeadForm((_) => ({
4795
+ ..._,
4806
4796
  ...parseEsiaProfile(data),
4807
- });
4797
+ }));
4798
+ }
4808
4799
  navigator.assign(nextStepLink);
4809
4800
  }
4810
- }, []);
4801
+ finally {
4802
+ endLoading();
4803
+ }
4804
+ }, [nextStepLink]);
4811
4805
  useEffect(() => {
4812
- if (code) {
4813
- setIsLoading(true);
4814
- updateEsiaProfile();
4806
+ const profileId = JSON.parse(globalThis.localStorage?.getItem('profileId') ?? 'null');
4807
+ const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
4808
+ const code = params.get('code');
4809
+ const state = params.get('state');
4810
+ if (profileId && code && state) {
4811
+ updateEsiaProfile(profileId, code, state);
4815
4812
  }
4816
4813
  else {
4817
4814
  sessionStorage.removeItem('accessToken');
@@ -4825,7 +4822,6 @@
4825
4822
 
4826
4823
  const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, ...rest }) => {
4827
4824
  const inputs = (applicationFormData?.flatMap((_) => _?.inputs) || []);
4828
- const [responseType, setResponseType] = useState('');
4829
4825
  const { isLoading } = useInitApplicationLead(nextStepLink);
4830
4826
  const [leadForm, setLeadForm] = useLocalStorage('leadForm');
4831
4827
  const initialFormState = getInitialFormState$2(inputs, leadForm);
@@ -4835,17 +4831,13 @@
4835
4831
  nextStepLink,
4836
4832
  saveForm: setLeadForm,
4837
4833
  });
4838
- if (responseStatus) {
4839
- const responseTypeDialog = useResponseTypeDialog({ responseType: responseStatus });
4840
- responseTypeDialog.open();
4841
- }
4842
- const [, { field, onSubmit, reset }] = useForm(initialFormState, { onSubmit: handleSubmit });
4834
+ const [, { field, onSubmit }] = useForm(initialFormState, { onSubmit: handleSubmit });
4835
+ const responseTypeDialog = useDialog(ResponseTypeDialog);
4843
4836
  useEffect(() => {
4844
- if (responseType === 'OK') {
4845
- setResponseType('');
4846
- reset();
4837
+ if (responseStatus) {
4838
+ responseTypeDialog.open({ responseType: responseStatus });
4847
4839
  }
4848
- }, [responseType]);
4840
+ }, [responseStatus]);
4849
4841
  return (jsx(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: jsxs("form", { onSubmit: onSubmit, className: "space-y-m relative", children: [isLoading ? jsx(Loader, { blur: false }) : null, applicationFormData.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$2({ field, inputs: _?.inputs })] }, `section-${i}`))), renderSubmitButton(button)] }) }));
4850
4842
  });
4851
4843
 
@@ -6494,7 +6486,6 @@
6494
6486
  });
6495
6487
  const checkIsRetiree$1 = (step, getValue) => step === 2 && getValue('employment')?.key === 'RETIREE';
6496
6488
  const checkBusinessOwner$1 = ({ name }, getValue) => name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
6497
- const checkConsentPfrFlg$1 = ({ name }, getValue) => name === 'snils' && !getValue('consentPfrFlg');
6498
6489
  const checkAddressFillFromESIA$1 = ({ name, filledByEsia }, getValue) => name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
6499
6490
  const checkAddressFact$1 = ({ name }, getValue) => name === 'addressFact' && getValue('addressMatch');
6500
6491
  const checkCondition$1 = ({ condition }, getValue) => condition?.name &&
@@ -6502,6 +6493,8 @@
6502
6493
  const dataValue = getValue(condition?.name);
6503
6494
  return _ !== (dataValue?.key ?? dataValue);
6504
6495
  });
6496
+ const checkConsentPfrFlg$1 = ({ name }, getValue) => name === 'snils' && isSnilsRequired$1(getValue);
6497
+ const isSnilsRequired$1 = (getValue) => getValue('confirmationIncome')?.key !== 'PFR_CERTIFICATE';
6505
6498
 
6506
6499
  const renderInfo$2 = (inputs = []) => {
6507
6500
  const infoInputs = inputs.filter((_) => _.fieldType === 'info');
@@ -6521,10 +6514,20 @@
6521
6514
 
6522
6515
  const StepsNavigationButtons$1 = JSX(({ step, onPrevStep }) => {
6523
6516
  const isFirstStep = step === 0;
6524
- const isFinalStep = step === 6;
6517
+ const isFinalStep = step === 5;
6525
6518
  return (jsxs("div", { className: "flex justify-between gap-m", children: [jsx(Button, { onClick: onPrevStep, type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { type: "submit", children: isFinalStep ? 'Отправить заявку' : 'Далее' })] }));
6526
6519
  });
6527
6520
 
6521
+ const getCardData = (formData) => {
6522
+ const { currency, paymentSystem, cardCategory, codeWord } = formData;
6523
+ return {
6524
+ currencyCode: currency,
6525
+ paymentSystemTypeCd: paymentSystem,
6526
+ classCard: cardCategory,
6527
+ codeWord: codeWord,
6528
+ };
6529
+ };
6530
+
6528
6531
  const getFifthStepData$1 = (formData) => {
6529
6532
  const { bankruptcyFlg, shareholderFlg, legalEntityName, creditInRshbCd } = formData;
6530
6533
  return {
@@ -6535,16 +6538,6 @@
6535
6538
  };
6536
6539
  };
6537
6540
 
6538
- const getFirstStepData$1 = (formData) => {
6539
- const { currency, paymentSystem, cardCategory, codeWord } = formData;
6540
- return {
6541
- currencyCode: currency,
6542
- paymentSystemTypeCd: paymentSystem,
6543
- classCard: cardCategory,
6544
- codeWord: codeWord,
6545
- };
6546
- };
6547
-
6548
6541
  const getFourthStepData$1 = (formData) => {
6549
6542
  const { familyStatus, dependents, familyMembers, children, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, conscription, } = formData;
6550
6543
  return {
@@ -6673,6 +6666,7 @@
6673
6666
  ...getCurrentStepData$1(step, formData),
6674
6667
  },
6675
6668
  ],
6669
+ ...getCardData(formData),
6676
6670
  ...getDeliveryData(formData),
6677
6671
  },
6678
6672
  };
@@ -6680,7 +6674,7 @@
6680
6674
  const getCurrentStepData$1 = (step, formData) => {
6681
6675
  switch (step) {
6682
6676
  case 0:
6683
- return getFirstStepData$1(formData);
6677
+ return {};
6684
6678
  case 1:
6685
6679
  return getSecondStepData$1(formData);
6686
6680
  case 2:
@@ -6782,8 +6776,8 @@
6782
6776
  { fieldType: 'common', name: 'middleName', dadata: true, filledByEsia: true },
6783
6777
  { fieldType: 'common', name: 'sex', required: true },
6784
6778
  { fieldType: 'common', name: 'limitedBirthday', required: true, filledByEsia: true },
6785
- { fieldType: 'common', name: 'birthPlace', required: true },
6786
- { fieldType: 'common', name: 'phone', required: true },
6779
+ { fieldType: 'common', name: 'birthPlace', required: true, filledByEsia: true },
6780
+ { fieldType: 'common', name: 'phone', required: true, filledByEsia: true },
6787
6781
  { fieldType: 'common', name: 'email', required: true, dadata: true },
6788
6782
  ],
6789
6783
  },
@@ -6867,7 +6861,7 @@
6867
6861
  },
6868
6862
  {
6869
6863
  inputs: [
6870
- { fieldType: 'common', name: 'employment' },
6864
+ { fieldType: 'common', name: 'employment', required: true },
6871
6865
  { fieldType: 'common', name: 'organizationName', required: true, dadata: true },
6872
6866
  ],
6873
6867
  },
@@ -6880,15 +6874,15 @@
6880
6874
  },
6881
6875
  {
6882
6876
  inputs: [
6883
- { fieldType: 'common', name: 'organization', required: false },
6884
- { fieldType: 'common', name: 'amountWorkers', required: false },
6877
+ { fieldType: 'common', name: 'organization', required: true },
6878
+ { fieldType: 'common', name: 'amountWorkers', required: true },
6885
6879
  ],
6886
6880
  },
6887
6881
  {
6888
6882
  columns: 2,
6889
6883
  inputs: [
6890
- { fieldType: 'common', name: 'employerActivities', required: false },
6891
- { fieldType: 'common', name: 'employerOrganization', required: false },
6884
+ { fieldType: 'common', name: 'employerActivities', required: true },
6885
+ { fieldType: 'common', name: 'employerOrganization', required: true },
6892
6886
  { fieldType: 'common', name: 'generalSeniority', required: true },
6893
6887
  { fieldType: 'common', name: 'lastJobExperience', required: true },
6894
6888
  { fieldType: 'common', name: 'experience5Years', required: true },
@@ -6909,7 +6903,7 @@
6909
6903
  {
6910
6904
  columns: 2,
6911
6905
  inputs: [
6912
- { fieldType: 'common', name: 'positionOrganization', required: false },
6906
+ { fieldType: 'common', name: 'positionOrganization', required: true },
6913
6907
  {
6914
6908
  fieldType: 'common',
6915
6909
  name: 'partInBusiness',
@@ -6956,6 +6950,10 @@
6956
6950
  },
6957
6951
  ],
6958
6952
  },
6953
+ {
6954
+ columns: 1,
6955
+ inputs: [{ fieldType: 'common', name: 'confirmationIncome', required: true }],
6956
+ },
6959
6957
  {
6960
6958
  columns: 1,
6961
6959
  inputs: [{ fieldType: 'common', name: 'wages', required: true }],
@@ -6993,7 +6991,12 @@
6993
6991
  inputs: [{ fieldType: 'common', name: 'shareholderFlg' }],
6994
6992
  },
6995
6993
  {
6996
- inputs: [{ fieldType: 'common', name: 'legalEntityName' }],
6994
+ inputs: [
6995
+ {
6996
+ fieldType: 'common',
6997
+ name: 'legalEntityName',
6998
+ },
6999
+ ],
6997
7000
  },
6998
7001
  {
6999
7002
  inputs: [{ fieldType: 'common', name: 'creditInRshbCd' }],
@@ -7366,7 +7369,6 @@
7366
7369
  });
7367
7370
  const checkIsRetiree = (step, getValue) => step === 2 && getValue('employment')?.key === 'RETIREE';
7368
7371
  const checkBusinessOwner = ({ name }, getValue) => name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
7369
- const checkConsentPfrFlg = ({ name }, getValue) => name === 'snils' && isSnilsRequired(getValue);
7370
7372
  const checkAddressFillFromESIA = ({ name, filledByEsia }, getValue) => name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
7371
7373
  const checkAddressFact = ({ name }, getValue) => name === 'addressFact' && getValue('addressMatch');
7372
7374
  const checkCondition = ({ condition }, getValue) => condition?.name &&
@@ -7374,6 +7376,7 @@
7374
7376
  const dataValue = getValue(condition?.name);
7375
7377
  return _ !== (dataValue?.key ?? dataValue);
7376
7378
  });
7379
+ const checkConsentPfrFlg = ({ name }, getValue) => name === 'snils' && isSnilsRequired(getValue);
7377
7380
  const isSnilsRequired = (getValue) => getValue('confirmationIncome')?.key !== 'PFR_CERTIFICATE';
7378
7381
 
7379
7382
  const renderInfo$1 = (inputs = []) => {
@@ -7729,7 +7732,7 @@
7729
7732
  },
7730
7733
  {
7731
7734
  inputs: [
7732
- { fieldType: 'common', name: 'employment' },
7735
+ { fieldType: 'common', name: 'employment', required: true },
7733
7736
  { fieldType: 'common', name: 'organizationName', required: true, dadata: true },
7734
7737
  ],
7735
7738
  },
@@ -7742,15 +7745,15 @@
7742
7745
  },
7743
7746
  {
7744
7747
  inputs: [
7745
- { fieldType: 'common', name: 'organization', required: false },
7746
- { fieldType: 'common', name: 'amountWorkers', required: false },
7748
+ { fieldType: 'common', name: 'organization', required: true },
7749
+ { fieldType: 'common', name: 'amountWorkers', required: true },
7747
7750
  ],
7748
7751
  },
7749
7752
  {
7750
7753
  columns: 2,
7751
7754
  inputs: [
7752
- { fieldType: 'common', name: 'employerActivities', required: false },
7753
- { fieldType: 'common', name: 'employerOrganization', required: false },
7755
+ { fieldType: 'common', name: 'employerActivities', required: true },
7756
+ { fieldType: 'common', name: 'employerOrganization', required: true },
7754
7757
  { fieldType: 'common', name: 'generalSeniority', required: true },
7755
7758
  { fieldType: 'common', name: 'lastJobExperience', required: true },
7756
7759
  { fieldType: 'common', name: 'experience5Years', required: true },
@@ -7771,7 +7774,7 @@
7771
7774
  {
7772
7775
  columns: 2,
7773
7776
  inputs: [
7774
- { fieldType: 'common', name: 'positionOrganization', required: false },
7777
+ { fieldType: 'common', name: 'positionOrganization', required: true },
7775
7778
  {
7776
7779
  fieldType: 'common',
7777
7780
  name: 'partInBusiness',
@@ -8653,31 +8656,16 @@
8653
8656
  return docFormat.includes('/') ? docFormat.replace(regexp, '') : docFormat;
8654
8657
  };
8655
8658
 
8656
- const ReportDialog = JSX(({ href, __html, target }) => {
8657
- const { close } = useDialogManager();
8659
+ const ReportDialog = JSX(({ href, __html, target, onClose }) => {
8658
8660
  const router = useRouter();
8659
8661
  const adjustedHref = adjustHref(router)(href);
8660
- const handleClose = useCallback(() => {
8661
- close();
8662
- }, []);
8663
- return (jsxs(Dialog, { className: "my-6xl min-h-fit w-fit mx-auto", children: [__html ? jsx(RichText, { __html: __html }) : null, jsxs("div", { className: "flex flex-row mx-auto w-fit gap-lg py-lg", children: [jsx(LinkButton, { text: "\u042F \u0441\u043E\u0433\u043B\u0430\u0441\u0435\u043D", version: "primary", target: target, href: adjustedHref, onClick: handleClose }), jsx(Button, { type: "button", version: "secondary", onClick: handleClose, children: "\u042F \u043D\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0435\u043D" })] }), jsx("div", { children: "\u041D\u0430\u0436\u0438\u043C\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0443 \u00AB\u042F \u0421\u041E\u0413\u041B\u0410\u0421\u0415\u041D\u00BB \u043D\u0438\u0436\u0435 \u0412\u044B \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F. \u0420\u0430\u0441\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u0440\u0430\u0441\u043A\u0440\u044B\u0442\u0438\u0435 \u043B\u044E\u0431\u043E\u0439 \u0447\u0430\u0441\u0442\u0438 \u0434\u0430\u043D\u043D\u043E\u0433\u043E \u0417\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438, \u0438\u043B\u0438 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438 \u0432 \u043D\u0435\u043C \u0437\u0430\u043F\u0440\u0435\u0449\u0435\u043D\u043E.\u00BB" })] }));
8662
+ return (jsxs(Dialog, { className: "my-6xl min-h-fit w-fit mx-auto", onClose: onClose, children: [__html ? jsx(RichText, { __html: __html }) : null, jsxs("div", { className: "flex flex-row mx-auto w-fit gap-lg py-lg", children: [jsx(LinkButton, { text: "\u042F \u0441\u043E\u0433\u043B\u0430\u0441\u0435\u043D", version: "primary", target: target, href: adjustedHref, onClick: onClose }), jsx(Button, { type: "button", version: "secondary", onClick: onClose, children: "\u042F \u043D\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0435\u043D" })] }), jsx("div", { children: "\u041D\u0430\u0436\u0438\u043C\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0443 \u00AB\u042F \u0421\u041E\u0413\u041B\u0410\u0421\u0415\u041D\u00BB \u043D\u0438\u0436\u0435 \u0412\u044B \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0435 \u0434\u0430\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F. \u0420\u0430\u0441\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u0440\u0430\u0441\u043A\u0440\u044B\u0442\u0438\u0435 \u043B\u044E\u0431\u043E\u0439 \u0447\u0430\u0441\u0442\u0438 \u0434\u0430\u043D\u043D\u043E\u0433\u043E \u0417\u0430\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438, \u0438\u043B\u0438 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438 \u0432 \u043D\u0435\u043C \u0437\u0430\u043F\u0440\u0435\u0449\u0435\u043D\u043E.\u00BB" })] }));
8664
8663
  });
8665
8664
 
8666
- const useReportDialog = (props) => {
8667
- const { open, close } = useDialogManager();
8668
- return {
8669
- open: (options = {}) => open(jsx(ReportDialog, { ...props }), options),
8670
- close,
8671
- };
8672
- };
8673
-
8674
8665
  const ReportDialogButton = JSX(({ text, href, target, __html, icon }) => {
8675
- if (!text && !__html) {
8676
- return null;
8677
- }
8678
- const reportDialog = useReportDialog({ __html, href, target });
8679
- const openReportDialog = useCallback(() => reportDialog.open(), [reportDialog]);
8680
- return (jsxs("button", { className: "flex gap-s text-primary-text no-underline hover:text-primary-main", onClick: openReportDialog, children: [renderImg(icon), jsx(Text, { font: "font-light", children: text })] }));
8666
+ const { open } = useDialog(ReportDialog);
8667
+ const openReportDialog = useCallback(() => open({ __html, href, target }), [__html, href, target]);
8668
+ return text ? (jsxs("button", { className: "flex gap-s text-primary-text no-underline hover:text-primary-main", onClick: openReportDialog, children: [renderImg(icon), jsx(Text, { font: "font-light", children: text })] })) : null;
8681
8669
  });
8682
8670
 
8683
8671
  const linkColumnsModeStyleMap = {
@@ -9231,30 +9219,39 @@
9231
9219
 
9232
9220
  const StickyBottomMenuItem = JSX(({ isActive, item, onClick }) => (jsxs("div", { className: style(isActive ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer`), title: item?.title || '', onClick: onClick, children: [jsx(Icon, { className: "w-6 h-6", name: item?.icon?.icon, iconVersion: isActive ? 'color' : 'black' }), item?.title || ''] })));
9233
9221
 
9234
- const StickyBottomMenuDialog = JSX(({ className, head, children, onClose, onClick }) => {
9235
- const { close } = useDialogManager();
9236
- const handleClose = useCallback(() => {
9237
- close();
9238
- onClose && onClose();
9239
- }, [onClose]);
9240
- return (jsxs("div", { onClick: onClick, className: style('relative min-h-full bg-white p-0 rounded-xl top-32', className), role: "dialog", children: [jsxs("div", { className: "sticky py-xl top-0 rounded-xl bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-1.5 right-0", onClose: handleClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] }));
9241
- });
9222
+ const StickyBottomMenuDialog = JSX(({ className, head, children, onClose, onClick }) => (jsxs("div", { onClick: onClick, className: style('relative min-h-full bg-white p-0 rounded-xl top-32', className), role: "dialog", children: [jsxs("div", { className: "sticky py-xl top-0 rounded-xl bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-1.5 right-0", onClose: onClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] })));
9242
9223
 
9243
- const useBottomMenuItemDialog = ({ menuRef, dialogRef, closeDialog, openDialog, leftItems, rightItems, }) => {
9244
- const openBottomMenuItemDialog = (index, itemsPosition) => {
9224
+ const useBottomMenuItemDialog = ({ menuRef, dialogRef, leftItems, rightItems, onClose, }) => {
9225
+ const { open, close } = useDialogManager();
9226
+ const handleIframeLoad = useCallback(() => {
9227
+ const ifDoc = document.getElementsByTagName('iframe')['iframe-dialog'];
9228
+ ifDoc.style.height = `${ifDoc?.contentWindow?.document.body.offsetHeight}px`;
9229
+ }, []);
9230
+ return useCallback((index, itemsPosition) => {
9245
9231
  const requiredArray = itemsPosition === 'left' ? leftItems : rightItems;
9246
9232
  const menuDimensions = menuRef?.current?.getBoundingClientRect();
9247
- const handleIframeLoad = () => {
9248
- const ifDoc = document.getElementsByTagName('iframe')['iframe-dialog'];
9249
- ifDoc.style.height = String(ifDoc?.contentWindow?.document.body.offsetHeight) + 'px';
9250
- };
9251
- openDialog(jsx(StickyBottomMenuDialog, { onClick: (e) => e.stopPropagation(), onClose: closeDialog, className: "mt-[20%] border-t border-current", head: jsx("div", { className: "flex items-center justify-center px-xl", children: jsx(Heading, { as: "h4", title: requiredArray[index].description || requiredArray[index].title }) }), children: jsx("div", { className: "bg-white pb-20 pt-1 text-l", ref: dialogRef, children: jsx("iframe", { id: "iframe-dialog", onLoad: () => handleIframeLoad(), src: requiredArray[index]?.src, width: menuDimensions?.width || 0 }) }) }), { id: itemsPosition === 'left' ? leftItems[index].title : rightItems[index].title });
9252
- };
9253
- return [{ openBottomMenuItemDialog }];
9233
+ open({
9234
+ id: itemsPosition === 'left' ? leftItems[index].title : rightItems[index].title,
9235
+ dialog: (jsx(StickyBottomMenuDialog, { className: "mt-[20%] border-t border-current", head: jsx("div", { className: "flex items-center justify-center px-xl", children: jsx(Heading, { as: "h4", title: requiredArray[index].description || requiredArray[index].title }) }), onClick: (e) => e.stopPropagation(), onClose: () => {
9236
+ close();
9237
+ onClose?.();
9238
+ }, children: jsx("div", { className: "bg-white pb-20 pt-1 text-l", ref: dialogRef, children: jsx("iframe", { id: "iframe-dialog", src: requiredArray[index]?.src, width: menuDimensions?.width ?? 0, onLoad: handleIframeLoad }) }) })),
9239
+ });
9240
+ }, [handleIframeLoad, leftItems, rightItems, onClose]);
9254
9241
  };
9255
9242
 
9256
9243
  const isDialogOpen = (id, dialogs) => Boolean(dialogs.find((item) => item.id === id, id));
9257
9244
 
9245
+ function useObservableWithActions(eventBus, type, handlersMap) {
9246
+ useEffect(() => eventBus.subscribe(type, action => {
9247
+ const actionType = action?.type;
9248
+ if (actionType && typeof actionType === 'string') {
9249
+ const handler = handlersMap[actionType];
9250
+ handler && handler(action);
9251
+ }
9252
+ }), [eventBus, type, ...Object.values(handlersMap)]);
9253
+ }
9254
+
9258
9255
  function useList(initialList = []) {
9259
9256
  const [list, setList] = useState(initialList);
9260
9257
  const push = useCallback((item) => setList(_ => [..._, item]), []);
@@ -9264,41 +9261,14 @@
9264
9261
  return [list, { setList, push, pop, remove, clear }];
9265
9262
  }
9266
9263
 
9267
- function assertUnreachable(x) {
9268
- throw new Error(x);
9269
- }
9270
-
9271
- const useDialogsList = ({ onCloseAll, onClose, } = {}) => {
9264
+ const useDialogsList = () => {
9272
9265
  const [dialogs, { push, pop, clear }] = useList();
9273
- const closeAll = useCallback(() => {
9274
- onCloseAll && onCloseAll(dialogs);
9275
- clear();
9276
- }, [dialogs, onCloseAll]);
9277
- const close = useCallback(() => {
9278
- onClose && onClose(dialogs[dialogs.length - 1]);
9279
- pop();
9280
- }, [dialogs, onClose]);
9281
- useEffect(() => defaultEventBus.subscribe('dialog', (action) => {
9282
- if (!action) {
9283
- return;
9284
- }
9285
- switch (action.type) {
9286
- case 'open':
9287
- push(action);
9288
- break;
9289
- case 'close':
9290
- if (action.all) {
9291
- closeAll();
9292
- }
9293
- else {
9294
- close();
9295
- }
9296
- break;
9297
- default:
9298
- assertUnreachable(action);
9299
- }
9300
- }), [closeAll, close]);
9301
- return dialogs;
9266
+ useObservableWithActions(defaultEventBus.observable, 'dialog', {
9267
+ open: push,
9268
+ close: pop,
9269
+ closeAll: clear,
9270
+ });
9271
+ return [dialogs, { close: pop, closeAll: clear }];
9302
9272
  };
9303
9273
 
9304
9274
  const groupBy = (list, keyGetter) => {
@@ -9398,18 +9368,17 @@
9398
9368
  });
9399
9369
 
9400
9370
  const SEARCH_TERM_MIN_LENGTH = 3;
9401
- const LocationDialog = JSX(({ foreignOffices, branches }) => {
9371
+ const LocationDialog = JSX(({ foreignOffices, branches, onClose }) => {
9402
9372
  const locationStore = useDefaultLocation(branches?.default);
9403
9373
  const [query, setQuery] = useState('');
9404
9374
  const rawRegions = useRegions();
9405
9375
  const regions = useMemo(() => cleanUpRegions(rawRegions).sort((a, b) => a.name.localeCompare(b.name)), [rawRegions]);
9406
9376
  const regionsGroupByLetter = useMemo(() => groupBy(regions, regionFirstLetter), [regions]);
9407
- const { close } = useDialogManager();
9408
9377
  const handleChangeLocation = useCallback((_) => {
9409
9378
  locationStore.location = _;
9410
- close();
9411
- }, [locationStore]);
9412
- return (jsxs(Dialog, { className: "pb-20", head: jsxs("div", { children: [jsx(Text, { size: "text-h4", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B" }), jsx(SelectedLocation, { defaultLocation: branches?.default }), jsx(SearchBar, { onSearch: setQuery, searchTerm: query })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
9379
+ onClose?.();
9380
+ }, [locationStore, onClose]);
9381
+ return (jsxs(Dialog, { className: "pb-20", head: jsxs("div", { children: [jsx(Text, { size: "text-h4", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B" }), jsx(SelectedLocation, { defaultLocation: branches?.default }), jsx(SearchBar, { onSearch: setQuery, searchTerm: query })] }), onClose: onClose, children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
9413
9382
  .filter(({ name }) => name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8)
9414
9383
  .map(renderRegion(branches?.dataSelect, handleChangeLocation)) })) : (jsx("div", { className: "columns-1 sm:columns-3 md:columns-4 lg:columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation, branches?.dataSelect)) })), renderForeignOffices(foreignOffices)] }));
9415
9384
  });
@@ -9419,16 +9388,8 @@
9419
9388
  name: region.name?.replace(/республика|область|край'/gi, '').trim() ?? '',
9420
9389
  }));
9421
9390
 
9422
- const useLocationDialog = (props) => {
9423
- const { open, close } = useDialogManager();
9424
- return {
9425
- open: (options = {}) => open(jsx(LocationDialog, { ...props }), options),
9426
- close,
9427
- };
9428
- };
9429
-
9430
- const BurgerMenuDialog = JSX(({ menuRef, menuItem, locationDialogProps, closeAll }) => {
9431
- const locationDialog = useLocationDialog(locationDialogProps || {});
9391
+ const BurgerMenuDialog = JSX(({ menuRef, menuItem, locationDialogProps, onClose }) => {
9392
+ const locationDialog = useDialog(LocationDialog, locationDialogProps);
9432
9393
  const { name: location } = useLocation();
9433
9394
  const menuDimensions = menuRef?.current?.getBoundingClientRect();
9434
9395
  const basePath = getBasePath(env.SITE_URL);
@@ -9446,10 +9407,10 @@
9446
9407
  useEffect(() => {
9447
9408
  const onMessage = (e) => {
9448
9409
  if (e.data.type === 'location') {
9449
- locationDialog.open();
9410
+ locationDialog.open({});
9450
9411
  }
9451
9412
  if (e.data.type === 'reload') {
9452
- closeAll();
9413
+ onClose?.();
9453
9414
  }
9454
9415
  if (e.data.type === 'resize') {
9455
9416
  const ifDoc = document.getElementsByTagName('iframe')['iframe-dialog'];
@@ -9462,26 +9423,17 @@
9462
9423
  return () => {
9463
9424
  globalThis.removeEventListener('message', onMessage);
9464
9425
  };
9465
- }, []);
9466
- return (jsx(StickyBottomMenuDialog, { onClick: (e) => e.stopPropagation(), head: jsx("div", { className: "flex items-center justify-center px-xl", children: jsx(Heading, { as: "h4", title: menuItem?.title, className: "font-medium" }) }), children: jsx("div", { className: "bg-white pb-20 pt-1 text-l", children: jsx("iframe", { id: "iframe-dialog", name: "burger-menu-iframe", onLoad: () => handleIframeLoad(), src: menuItem?.src, width: menuDimensions?.width || 0 }) }) }));
9426
+ }, [onClose]);
9427
+ return (jsx(StickyBottomMenuDialog, { head: jsx("div", { className: "flex items-center justify-center px-xl", children: jsx(Heading, { as: "h4", title: menuItem?.title, className: "font-medium" }) }), onClick: (e) => e.stopPropagation(), onClose: onClose, children: jsx("div", { className: "bg-white pb-20 pt-1 text-l", children: jsx("iframe", { id: "iframe-dialog", name: "burger-menu-iframe", onLoad: () => handleIframeLoad(), src: menuItem?.src, width: menuDimensions?.width || 0 }) }) }));
9467
9428
  });
9468
9429
 
9469
9430
  const BURGER_MENU_DIALOG_ID = 'burgerMenuDialog';
9470
- const useBurgerMenuDialog = ({ menuRef, centralMenuItem, closeAll, openDialog, locationDialogProps, }) => {
9471
- const dialogs = useDialogsList();
9431
+ const useBurgerMenuDialog = ({ menuRef, centralMenuItem, locationDialogProps, onClose = noop, }) => {
9432
+ const { open } = useDialog(BurgerMenuDialog);
9433
+ const [dialogs] = useDialogsList(); // TODO Рефакторинг
9472
9434
  const isBurgerMenuOpen = isDialogOpen(BURGER_MENU_DIALOG_ID, dialogs);
9473
- const open = () => openDialog(jsx(BurgerMenuDialog, { locationDialogProps: locationDialogProps, menuRef: menuRef, menuItem: centralMenuItem, closeAll: closeAll }), {
9474
- id: BURGER_MENU_DIALOG_ID,
9475
- });
9476
- const toggle = () => {
9477
- if (isBurgerMenuOpen) {
9478
- closeAll();
9479
- }
9480
- else {
9481
- open();
9482
- }
9483
- };
9484
- return [isBurgerMenuOpen, { toggle }];
9435
+ const openDialog = useCallback(() => open({ menuRef, locationDialogProps, menuItem: centralMenuItem, onClose }, { id: BURGER_MENU_DIALOG_ID }), [menuRef, locationDialogProps, centralMenuItem, onClose]);
9436
+ return [isBurgerMenuOpen, { toggle: isBurgerMenuOpen ? onClose : openDialog }];
9485
9437
  };
9486
9438
 
9487
9439
  const EMPTY_MENU = [];
@@ -9494,34 +9446,32 @@
9494
9446
  const rightItems = lateralMenuItems.slice(middleIdx);
9495
9447
  const [activeIndex, setActiveIndex] = useState(-1);
9496
9448
  const [currentItemPosition, setCurrentItemPosition] = useState('');
9497
- const { open: openDialog, closeAll } = useDialogManager();
9498
- const closeDialog = useCallback(() => {
9449
+ const { closeAll } = useDialogManager();
9450
+ const handleClose = useCallback(() => {
9499
9451
  setActiveIndex(-1);
9500
9452
  setCurrentItemPosition('');
9501
9453
  closeAll();
9502
9454
  }, [closeAll]);
9503
- const dialogRef = useOutsideClick(closeDialog);
9455
+ const dialogRef = useOutsideClick(handleClose);
9504
9456
  const menuRef = useRef(null);
9505
9457
  const [isBurgerMenuDialogOpen, { toggle }] = useBurgerMenuDialog({
9506
9458
  menuRef,
9507
9459
  centralMenuItem,
9508
- closeAll,
9509
- openDialog,
9510
9460
  locationDialogProps: rest.header,
9461
+ onClose: handleClose,
9511
9462
  });
9512
- const [{ openBottomMenuItemDialog }] = useBottomMenuItemDialog({
9463
+ const openBottomMenuItemDialog = useBottomMenuItemDialog({
9513
9464
  menuRef,
9514
9465
  dialogRef,
9515
- closeDialog,
9516
- openDialog,
9517
9466
  leftItems,
9518
9467
  rightItems,
9468
+ onClose: handleClose,
9519
9469
  });
9520
9470
  const handleMenuBurgerClick = useCallback((e) => {
9521
- closeDialog();
9522
9471
  e.stopPropagation();
9472
+ handleClose();
9523
9473
  toggle();
9524
- }, [closeDialog, toggle]);
9474
+ }, [handleClose, toggle]);
9525
9475
  const handleMenuItemClick = useCallback((index, itemsPosition) => {
9526
9476
  setCurrentItemPosition(itemsPosition);
9527
9477
  setActiveIndex(index);
@@ -9954,35 +9904,29 @@
9954
9904
  return opened && __html ? (jsx("div", { className: "container fixed left-0 right-0 bottom-0 z-50", role: "dialog", children: jsxs("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black", children: [jsx("div", { className: "sm:flex-1", children: jsx(RichText, { __html: __html }) }), jsx("div", { className: "ml-s sm:ml-0 w-36 flex justify-end", children: jsx(CloseButton, { className: "bg-main-gray rounded-md w-11 h-11", onClose: handleClose }) })] }) })) : null;
9955
9905
  });
9956
9906
 
9957
- const DialogManager = JSX(() => {
9958
- const handleCloseAll = useCallback((dialogActions) => {
9959
- for (const _ of dialogActions) {
9960
- _?.onClose && _.onClose();
9961
- }
9962
- }, []);
9963
- const handleClose = useCallback((_) => {
9964
- _?.onClose && _.onClose();
9965
- }, []);
9966
- const dialogs = useDialogsList({ onCloseAll: handleCloseAll, onClose: handleClose });
9967
- const { close } = useDialogManager();
9907
+ function useOnEscape(handler) {
9968
9908
  const escapeHandler = useCallback(({ key }) => {
9969
9909
  if (key === 'Escape') {
9970
- close();
9910
+ handler();
9971
9911
  }
9972
- }, []);
9912
+ }, [handler]);
9973
9913
  useEventListener(globalThis.document, 'keydown', escapeHandler);
9914
+ }
9915
+
9916
+ const DialogManager = JSX(() => {
9917
+ const [dialogs, { close }] = useDialogsList();
9918
+ const hasDialogs = Boolean(dialogs.length);
9919
+ useOnEscape(close);
9974
9920
  useEffect(() => {
9975
- if (dialogs.length) {
9976
- globalThis.document?.body.classList.add('no-scrollbar');
9977
- globalThis.document?.body.classList.add('overflow-hidden');
9921
+ if (hasDialogs) {
9922
+ globalThis.document?.body.classList.add('no-scrollbar', 'overflow-hidden');
9978
9923
  }
9979
9924
  else {
9980
- globalThis.document?.body.classList.remove('no-scrollbar');
9981
- globalThis.document?.body.classList.remove('overflow-hidden');
9925
+ globalThis.document?.body.classList.remove('no-scrollbar', 'overflow-hidden');
9982
9926
  }
9983
- }, [dialogs]);
9984
- return dialogs.length ? (jsx("div", { className: "fixed inset-0 z-50", role: "dialog", children: dialogs.map(({ dialog, id }, i) => (jsx("div", { className: style('absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar bg-black/50', {
9985
- hidden: i !== dialogs.length - 1,
9927
+ }, [hasDialogs]);
9928
+ return hasDialogs ? (jsx("div", { className: "fixed inset-0 z-50", role: "dialog", children: dialogs.map(({ dialog, id }, i) => (jsx("div", { className: style('absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar bg-black/50', {
9929
+ hidden: i !== dialogs.length - 1, // TODO Чего?)
9986
9930
  }), children: dialog }, String(id || i)))) })) : null;
9987
9931
  });
9988
9932
 
@@ -9991,28 +9935,11 @@
9991
9935
  const close = useCallback(() => {
9992
9936
  setPopup(null);
9993
9937
  }, []);
9994
- useEffect(() => defaultEventBus.subscribe('popup', (action) => {
9995
- if (!action) {
9996
- return;
9997
- }
9998
- switch (action.type) {
9999
- case 'open':
10000
- case 'update':
10001
- setPopup(action);
10002
- break;
10003
- case 'close':
10004
- close();
10005
- break;
10006
- default:
10007
- assertUnreachable(action);
10008
- }
10009
- }), []);
10010
- const escapeHandler = useCallback(({ key }) => {
10011
- if (key === 'Escape') {
10012
- close();
10013
- }
10014
- }, [close]);
10015
- useEventListener(globalThis.document, 'keydown', escapeHandler);
9938
+ useObservableWithActions(defaultEventBus.observable, 'popup', {
9939
+ open: setPopup,
9940
+ close,
9941
+ });
9942
+ useOnEscape(close);
10016
9943
  return popup ? (jsx("div", { className: style('z-50', popup.fixed ? 'fixed' : 'absolute'), style: {
10017
9944
  left: `${popup.left}px`,
10018
9945
  top: `${popup.top}px`,
@@ -10050,7 +9977,7 @@
10050
9977
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10051
9978
  });
10052
9979
 
10053
- const packageVersion = "0.14.687";
9980
+ const packageVersion = "0.14.689";
10054
9981
 
10055
9982
  exports.Blocks = Blocks;
10056
9983
  exports.ContentPage = ContentPage;