@redneckz/wildless-cms-uni-blocks 0.14.680 → 0.14.682

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 (533) hide show
  1. package/bundle/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  2. package/bundle/api/RetailAPI/updateRefreshToken.d.ts +1 -1
  3. package/bundle/api/RetailAPI/updateUserTask.d.ts +1 -0
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +157 -159
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  8. package/bundle/components/CreditCardForm/getSixthStepData.d.ts +5 -0
  9. package/bundle/components/LinkDocs/renderDefaultItem.d.ts +1 -1
  10. package/bundle/external/locationNavigator.d.ts +11 -0
  11. package/bundle/index.d.ts +3 -3
  12. package/bundle/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  13. package/bundle/utils/adjustSrc.d.ts +1 -1
  14. package/dist/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  15. package/dist/api/RetailAPI/getPaymentSystems.js +2 -2
  16. package/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
  17. package/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -1
  18. package/dist/api/RetailAPI/updateRefreshToken.js +9 -4
  19. package/dist/api/RetailAPI/updateRefreshToken.js.map +1 -1
  20. package/dist/api/RetailAPI/updateUserTask.d.ts +1 -0
  21. package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  22. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  23. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
  24. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  25. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
  26. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  27. package/dist/components/Blocks.js +0 -2
  28. package/dist/components/Blocks.js.map +1 -1
  29. package/dist/components/CreditCardForm/CreditCardForm.js +1 -4
  30. package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
  31. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +4 -4
  32. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  33. package/dist/components/CreditCardForm/getFourthStepData.js +3 -1
  34. package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
  35. package/dist/components/CreditCardForm/getSixthStepData.d.ts +5 -0
  36. package/dist/components/CreditCardForm/getSixthStepData.js +8 -1
  37. package/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
  38. package/dist/components/CreditCardForm/getThirdStepData.js +3 -1
  39. package/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
  40. package/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
  41. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  42. package/dist/components/CreditForm/CreditForm.js +1 -4
  43. package/dist/components/CreditForm/CreditForm.js.map +1 -1
  44. package/dist/components/CreditForm/getCreditFormTaskData.js +28 -27
  45. package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  46. package/dist/components/CreditForm/getSecondStepData.js +3 -1
  47. package/dist/components/CreditForm/getSecondStepData.js.map +1 -1
  48. package/dist/components/CreditForm/getThirdStepData.js +3 -1
  49. package/dist/components/CreditForm/getThirdStepData.js.map +1 -1
  50. package/dist/components/Header/HeaderTop.js +1 -1
  51. package/dist/components/Header/HeaderTop.js.map +1 -1
  52. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  53. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  54. package/dist/components/LinkDocs/renderDefaultItem.d.ts +1 -1
  55. package/dist/components/TabsLayout/TabsLayout.js +1 -1
  56. package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  57. package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
  58. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  59. package/dist/components/Video/Video.js +1 -1
  60. package/dist/components/Video/Video.js.map +1 -1
  61. package/dist/external/handlerDecorator.js.map +1 -0
  62. package/dist/external/locationNavigator.d.ts +11 -0
  63. package/dist/external/locationNavigator.js +21 -0
  64. package/dist/external/locationNavigator.js.map +1 -0
  65. package/dist/external/useRouter.js.map +1 -0
  66. package/dist/hooks/useActiveRoute.js +1 -1
  67. package/dist/hooks/useActiveRoute.js.map +1 -1
  68. package/dist/hooks/useAspects/aspects/forwardQuery.js +4 -15
  69. package/dist/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
  70. package/dist/hooks/useClickHandler.js +1 -1
  71. package/dist/hooks/useClickHandler.js.map +1 -1
  72. package/dist/hooks/useLink.js +2 -2
  73. package/dist/hooks/useLink.js.map +1 -1
  74. package/dist/index.d.ts +3 -3
  75. package/dist/index.js +5 -5
  76. package/dist/index.js.map +1 -1
  77. package/dist/setup-fixture.js +2 -2
  78. package/dist/setup-fixture.js.map +1 -1
  79. package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  80. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  81. package/dist/ui-kit/Button/useButton.js +1 -1
  82. package/dist/ui-kit/Button/useButton.js.map +1 -1
  83. package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
  84. package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  85. package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
  86. package/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
  87. package/dist/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  88. package/dist/ui-kit/FormField/Fields/ProductField.js +2 -2
  89. package/dist/ui-kit/FormField/Fields/ProductField.js.map +1 -1
  90. package/dist/ui-kit/Icon/Icon.js +1 -1
  91. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  92. package/dist/ui-kit/Img/ImgAsPicture.js +1 -1
  93. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  94. package/dist/ui-kit/ReportDialog/ReportDialog.js +1 -1
  95. package/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  96. package/dist/utils/adjustSrc.d.ts +1 -1
  97. package/lib/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  98. package/lib/api/RetailAPI/getPaymentSystems.js +2 -2
  99. package/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
  100. package/lib/api/RetailAPI/updateRefreshToken.d.ts +1 -1
  101. package/lib/api/RetailAPI/updateRefreshToken.js +9 -4
  102. package/lib/api/RetailAPI/updateRefreshToken.js.map +1 -1
  103. package/lib/api/RetailAPI/updateUserTask.d.ts +1 -0
  104. package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  105. package/lib/common.css +1 -1
  106. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  107. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
  108. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  109. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
  110. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  111. package/lib/components/Blocks.js +0 -2
  112. package/lib/components/Blocks.js.map +1 -1
  113. package/lib/components/CreditCardForm/CreditCardForm.js +1 -4
  114. package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
  115. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +5 -5
  116. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  117. package/lib/components/CreditCardForm/getFourthStepData.js +3 -1
  118. package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
  119. package/lib/components/CreditCardForm/getSixthStepData.d.ts +5 -0
  120. package/lib/components/CreditCardForm/getSixthStepData.js +6 -0
  121. package/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
  122. package/lib/components/CreditCardForm/getThirdStepData.js +3 -1
  123. package/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
  124. package/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
  125. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  126. package/lib/components/CreditForm/CreditForm.js +1 -4
  127. package/lib/components/CreditForm/CreditForm.js.map +1 -1
  128. package/lib/components/CreditForm/getCreditFormTaskData.js +28 -27
  129. package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  130. package/lib/components/CreditForm/getSecondStepData.js +3 -1
  131. package/lib/components/CreditForm/getSecondStepData.js.map +1 -1
  132. package/lib/components/CreditForm/getThirdStepData.js +3 -1
  133. package/lib/components/CreditForm/getThirdStepData.js.map +1 -1
  134. package/lib/components/Header/HeaderTop.js +1 -1
  135. package/lib/components/Header/HeaderTop.js.map +1 -1
  136. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  137. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  138. package/lib/components/LinkDocs/renderDefaultItem.d.ts +1 -1
  139. package/lib/components/TabsLayout/TabsLayout.js +1 -1
  140. package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  141. package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
  142. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  143. package/lib/components/Video/Video.js +1 -1
  144. package/lib/components/Video/Video.js.map +1 -1
  145. package/lib/external/handlerDecorator.js.map +1 -0
  146. package/lib/external/locationNavigator.d.ts +11 -0
  147. package/lib/external/locationNavigator.js +18 -0
  148. package/lib/external/locationNavigator.js.map +1 -0
  149. package/lib/external/useRouter.js.map +1 -0
  150. package/lib/hooks/useActiveRoute.js +1 -1
  151. package/lib/hooks/useActiveRoute.js.map +1 -1
  152. package/lib/hooks/useAspects/aspects/forwardQuery.js +4 -15
  153. package/lib/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
  154. package/lib/hooks/useClickHandler.js +1 -1
  155. package/lib/hooks/useClickHandler.js.map +1 -1
  156. package/lib/hooks/useLink.js +2 -2
  157. package/lib/hooks/useLink.js.map +1 -1
  158. package/lib/index.d.ts +3 -3
  159. package/lib/index.js +3 -3
  160. package/lib/index.js.map +1 -1
  161. package/lib/setup-fixture.js +2 -2
  162. package/lib/setup-fixture.js.map +1 -1
  163. package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  164. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  165. package/lib/ui-kit/Button/useButton.js +1 -1
  166. package/lib/ui-kit/Button/useButton.js.map +1 -1
  167. package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
  168. package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  169. package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
  170. package/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
  171. package/lib/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  172. package/lib/ui-kit/FormField/Fields/ProductField.js +2 -2
  173. package/lib/ui-kit/FormField/Fields/ProductField.js.map +1 -1
  174. package/lib/ui-kit/Icon/Icon.js +1 -1
  175. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  176. package/lib/ui-kit/Img/ImgAsPicture.js +1 -1
  177. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  178. package/lib/ui-kit/ReportDialog/ReportDialog.js +1 -1
  179. package/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  180. package/lib/utils/adjustSrc.d.ts +1 -1
  181. package/mobile/bundle/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  182. package/mobile/bundle/api/RetailAPI/updateRefreshToken.d.ts +1 -1
  183. package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +1 -0
  184. package/mobile/bundle/bundle.umd.js +141 -130
  185. package/mobile/bundle/bundle.umd.min.js +1 -1
  186. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  187. package/mobile/bundle/components/CreditCardForm/getSixthStepData.d.ts +5 -0
  188. package/mobile/bundle/components/LinkDocs/renderDefaultItem.d.ts +1 -1
  189. package/mobile/bundle/external/locationNavigator.d.ts +11 -0
  190. package/mobile/bundle/index.d.ts +3 -3
  191. package/mobile/bundle/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  192. package/mobile/bundle/utils/adjustSrc.d.ts +1 -1
  193. package/mobile/dist/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  194. package/mobile/dist/api/RetailAPI/getPaymentSystems.js +2 -2
  195. package/mobile/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
  196. package/mobile/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -1
  197. package/mobile/dist/api/RetailAPI/updateRefreshToken.js +9 -4
  198. package/mobile/dist/api/RetailAPI/updateRefreshToken.js.map +1 -1
  199. package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +1 -0
  200. package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  201. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  202. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
  203. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  204. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
  205. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  206. package/mobile/dist/components/CreditCardForm/CreditCardForm.js +1 -4
  207. package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
  208. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +4 -4
  209. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  210. package/mobile/dist/components/CreditCardForm/getFourthStepData.js +3 -1
  211. package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
  212. package/mobile/dist/components/CreditCardForm/getSixthStepData.d.ts +5 -0
  213. package/mobile/dist/components/CreditCardForm/getSixthStepData.js +8 -1
  214. package/mobile/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
  215. package/mobile/dist/components/CreditCardForm/getThirdStepData.js +3 -1
  216. package/mobile/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
  217. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
  218. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  219. package/mobile/dist/components/CreditForm/CreditForm.js +1 -4
  220. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
  221. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +28 -27
  222. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  223. package/mobile/dist/components/CreditForm/getSecondStepData.js +3 -1
  224. package/mobile/dist/components/CreditForm/getSecondStepData.js.map +1 -1
  225. package/mobile/dist/components/CreditForm/getThirdStepData.js +3 -1
  226. package/mobile/dist/components/CreditForm/getThirdStepData.js.map +1 -1
  227. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  228. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  229. package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
  230. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  231. package/mobile/dist/components/LinkDocs/renderDefaultItem.d.ts +1 -1
  232. package/mobile/dist/components/TabsLayout/TabsLayout.js +1 -1
  233. package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  234. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
  235. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  236. package/mobile/dist/components/Video/Video.js +1 -1
  237. package/mobile/dist/components/Video/Video.js.map +1 -1
  238. package/mobile/dist/external/handlerDecorator.js.map +1 -0
  239. package/mobile/dist/external/locationNavigator.d.ts +11 -0
  240. package/mobile/dist/external/locationNavigator.js +21 -0
  241. package/mobile/dist/external/locationNavigator.js.map +1 -0
  242. package/mobile/dist/external/useRouter.js.map +1 -0
  243. package/mobile/dist/hooks/useActiveRoute.js +1 -1
  244. package/mobile/dist/hooks/useActiveRoute.js.map +1 -1
  245. package/mobile/dist/hooks/useAspects/aspects/forwardQuery.js +4 -15
  246. package/mobile/dist/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
  247. package/mobile/dist/hooks/useClickHandler.js +1 -1
  248. package/mobile/dist/hooks/useClickHandler.js.map +1 -1
  249. package/mobile/dist/hooks/useLink.js +2 -2
  250. package/mobile/dist/hooks/useLink.js.map +1 -1
  251. package/mobile/dist/index.d.ts +3 -3
  252. package/mobile/dist/index.js +5 -5
  253. package/mobile/dist/index.js.map +1 -1
  254. package/mobile/dist/setup-fixture.js +2 -2
  255. package/mobile/dist/setup-fixture.js.map +1 -1
  256. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  257. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  258. package/mobile/dist/ui-kit/Button/useButton.js +1 -1
  259. package/mobile/dist/ui-kit/Button/useButton.js.map +1 -1
  260. package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
  261. package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  262. package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
  263. package/mobile/dist/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
  264. package/mobile/dist/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  265. package/mobile/dist/ui-kit/FormField/Fields/ProductField.js +2 -2
  266. package/mobile/dist/ui-kit/FormField/Fields/ProductField.js.map +1 -1
  267. package/mobile/dist/ui-kit/Icon/Icon.js +1 -1
  268. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  269. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +1 -1
  270. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
  271. package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js +1 -1
  272. package/mobile/dist/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  273. package/mobile/dist/utils/adjustSrc.d.ts +1 -1
  274. package/mobile/lib/api/RetailAPI/getPaymentSystems.d.ts +1 -1
  275. package/mobile/lib/api/RetailAPI/getPaymentSystems.js +2 -2
  276. package/mobile/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
  277. package/mobile/lib/api/RetailAPI/updateRefreshToken.d.ts +1 -1
  278. package/mobile/lib/api/RetailAPI/updateRefreshToken.js +9 -4
  279. package/mobile/lib/api/RetailAPI/updateRefreshToken.js.map +1 -1
  280. package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +1 -0
  281. package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  282. package/mobile/lib/common.css +1 -1
  283. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
  284. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +3 -1
  285. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  286. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +4 -2
  287. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  288. package/mobile/lib/components/CreditCardForm/CreditCardForm.js +1 -4
  289. package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
  290. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +5 -5
  291. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  292. package/mobile/lib/components/CreditCardForm/getFourthStepData.js +3 -1
  293. package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
  294. package/mobile/lib/components/CreditCardForm/getSixthStepData.d.ts +5 -0
  295. package/mobile/lib/components/CreditCardForm/getSixthStepData.js +6 -0
  296. package/mobile/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
  297. package/mobile/lib/components/CreditCardForm/getThirdStepData.js +3 -1
  298. package/mobile/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
  299. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
  300. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  301. package/mobile/lib/components/CreditForm/CreditForm.js +1 -4
  302. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
  303. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +28 -27
  304. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  305. package/mobile/lib/components/CreditForm/getSecondStepData.js +3 -1
  306. package/mobile/lib/components/CreditForm/getSecondStepData.js.map +1 -1
  307. package/mobile/lib/components/CreditForm/getThirdStepData.js +3 -1
  308. package/mobile/lib/components/CreditForm/getThirdStepData.js.map +1 -1
  309. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  310. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  311. package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
  312. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  313. package/mobile/lib/components/LinkDocs/renderDefaultItem.d.ts +1 -1
  314. package/mobile/lib/components/TabsLayout/TabsLayout.js +1 -1
  315. package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  316. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
  317. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  318. package/mobile/lib/components/Video/Video.js +1 -1
  319. package/mobile/lib/components/Video/Video.js.map +1 -1
  320. package/mobile/lib/external/handlerDecorator.js.map +1 -0
  321. package/mobile/lib/external/locationNavigator.d.ts +11 -0
  322. package/mobile/lib/external/locationNavigator.js +18 -0
  323. package/mobile/lib/external/locationNavigator.js.map +1 -0
  324. package/mobile/lib/external/useRouter.js.map +1 -0
  325. package/mobile/lib/hooks/useActiveRoute.js +1 -1
  326. package/mobile/lib/hooks/useActiveRoute.js.map +1 -1
  327. package/mobile/lib/hooks/useAspects/aspects/forwardQuery.js +4 -15
  328. package/mobile/lib/hooks/useAspects/aspects/forwardQuery.js.map +1 -1
  329. package/mobile/lib/hooks/useClickHandler.js +1 -1
  330. package/mobile/lib/hooks/useClickHandler.js.map +1 -1
  331. package/mobile/lib/hooks/useLink.js +2 -2
  332. package/mobile/lib/hooks/useLink.js.map +1 -1
  333. package/mobile/lib/index.d.ts +3 -3
  334. package/mobile/lib/index.js +3 -3
  335. package/mobile/lib/index.js.map +1 -1
  336. package/mobile/lib/setup-fixture.js +2 -2
  337. package/mobile/lib/setup-fixture.js.map +1 -1
  338. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  339. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  340. package/mobile/lib/ui-kit/Button/useButton.js +1 -1
  341. package/mobile/lib/ui-kit/Button/useButton.js.map +1 -1
  342. package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js +4 -2
  343. package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  344. package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js +3 -1
  345. package/mobile/lib/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.js.map +1 -1
  346. package/mobile/lib/ui-kit/FormField/Fields/ProductField.d.ts +1 -1
  347. package/mobile/lib/ui-kit/FormField/Fields/ProductField.js +2 -2
  348. package/mobile/lib/ui-kit/FormField/Fields/ProductField.js.map +1 -1
  349. package/mobile/lib/ui-kit/Icon/Icon.js +1 -1
  350. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  351. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +1 -1
  352. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
  353. package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js +1 -1
  354. package/mobile/lib/ui-kit/ReportDialog/ReportDialog.js.map +1 -1
  355. package/mobile/lib/utils/adjustSrc.d.ts +1 -1
  356. package/mobile/src/api/RetailAPI/getPaymentSystems.ts +6 -4
  357. package/mobile/src/api/RetailAPI/updateRefreshToken.ts +11 -4
  358. package/mobile/src/api/RetailAPI/updateUserTask.ts +1 -0
  359. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +1 -1
  360. package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +3 -1
  361. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +4 -2
  362. package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +1 -6
  363. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +6 -5
  364. package/mobile/src/components/CreditCardForm/getFourthStepData.ts +4 -0
  365. package/mobile/src/components/CreditCardForm/getSixthStepData.ts +8 -0
  366. package/mobile/src/components/CreditCardForm/getThirdStepData.tsx +3 -0
  367. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +1 -1
  368. package/mobile/src/components/CreditForm/CreditForm.tsx +1 -6
  369. package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +31 -29
  370. package/mobile/src/components/CreditForm/getSecondStepData.tsx +3 -0
  371. package/mobile/src/components/CreditForm/getThirdStepData.ts +4 -0
  372. package/mobile/src/components/Header/HeaderTop.tsx +1 -1
  373. package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
  374. package/mobile/src/components/LinkDocs/renderDefaultItem.tsx +1 -1
  375. package/mobile/src/components/TabsLayout/TabsLayout.tsx +1 -1
  376. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
  377. package/mobile/src/components/Video/Video.tsx +1 -1
  378. package/mobile/src/external/locationNavigator.ts +27 -0
  379. package/mobile/src/hooks/useActiveRoute.ts +1 -2
  380. package/mobile/src/hooks/useAspects/aspects/forwardQuery.ts +4 -16
  381. package/mobile/src/hooks/useClickHandler.ts +1 -1
  382. package/mobile/src/hooks/useLink.ts +2 -2
  383. package/mobile/src/index.ts +3 -3
  384. package/mobile/src/setup-fixture.ts +2 -2
  385. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
  386. package/mobile/src/ui-kit/Button/useButton.ts +1 -1
  387. package/mobile/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +5 -2
  388. package/mobile/src/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.tsx +3 -1
  389. package/mobile/src/ui-kit/FormField/Fields/ProductField.tsx +2 -2
  390. package/mobile/src/ui-kit/Icon/Icon.tsx +1 -1
  391. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
  392. package/mobile/src/ui-kit/ReportDialog/ReportDialog.tsx +1 -1
  393. package/mobile/src/utils/adjustSrc.ts +1 -1
  394. package/package.json +1 -1
  395. package/src/api/RetailAPI/getPaymentSystems.ts +6 -4
  396. package/src/api/RetailAPI/updateRefreshToken.ts +11 -4
  397. package/src/api/RetailAPI/updateUserTask.ts +1 -0
  398. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +1 -1
  399. package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +3 -1
  400. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +4 -2
  401. package/src/components/Blocks.ts +0 -2
  402. package/src/components/CreditCardForm/CreditCardForm.tsx +1 -6
  403. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +6 -5
  404. package/src/components/CreditCardForm/getFourthStepData.ts +4 -0
  405. package/src/components/CreditCardForm/getSixthStepData.ts +8 -0
  406. package/src/components/CreditCardForm/getThirdStepData.tsx +3 -0
  407. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +1 -1
  408. package/src/components/CreditForm/CreditForm.tsx +1 -6
  409. package/src/components/CreditForm/getCreditFormTaskData.ts +31 -29
  410. package/src/components/CreditForm/getSecondStepData.tsx +3 -0
  411. package/src/components/CreditForm/getThirdStepData.ts +4 -0
  412. package/src/components/Header/HeaderTop.tsx +1 -1
  413. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  414. package/src/components/LinkDocs/renderDefaultItem.tsx +1 -1
  415. package/src/components/TabsLayout/TabsLayout.tsx +1 -1
  416. package/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
  417. package/src/components/Video/Video.tsx +1 -1
  418. package/src/external/locationNavigator.ts +27 -0
  419. package/src/hooks/useActiveRoute.ts +1 -2
  420. package/src/hooks/useAspects/aspects/forwardQuery.ts +4 -16
  421. package/src/hooks/useClickHandler.ts +1 -1
  422. package/src/hooks/useLink.ts +2 -2
  423. package/src/index.ts +3 -3
  424. package/src/setup-fixture.ts +2 -2
  425. package/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
  426. package/src/ui-kit/Button/useButton.ts +1 -1
  427. package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +5 -2
  428. package/src/ui-kit/EsiaLoginDialog/useEsiaLoginDialog.tsx +3 -1
  429. package/src/ui-kit/FormField/Fields/ProductField.tsx +2 -2
  430. package/src/ui-kit/Icon/Icon.tsx +1 -1
  431. package/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
  432. package/src/ui-kit/ReportDialog/ReportDialog.tsx +1 -1
  433. package/src/utils/adjustSrc.ts +1 -1
  434. package/bundle/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
  435. package/bundle/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
  436. package/bundle/hooks/useNavigator.d.ts +0 -8
  437. package/dist/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
  438. package/dist/components/ApplicationStatus/ApplicationStatus.js +0 -25
  439. package/dist/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
  440. package/dist/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
  441. package/dist/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
  442. package/dist/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
  443. package/dist/hooks/handlerDecorator.js.map +0 -1
  444. package/dist/hooks/useNavigator.d.ts +0 -8
  445. package/dist/hooks/useNavigator.js +0 -13
  446. package/dist/hooks/useNavigator.js.map +0 -1
  447. package/dist/hooks/useRouter.js.map +0 -1
  448. package/dist/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
  449. package/dist/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
  450. package/dist/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
  451. package/lib/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
  452. package/lib/components/ApplicationStatus/ApplicationStatus.fixture.d.ts +0 -9
  453. package/lib/components/ApplicationStatus/ApplicationStatus.js +0 -23
  454. package/lib/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
  455. package/lib/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
  456. package/lib/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
  457. package/lib/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
  458. package/lib/hooks/handlerDecorator.js.map +0 -1
  459. package/lib/hooks/useNavigator.d.ts +0 -8
  460. package/lib/hooks/useNavigator.js +0 -10
  461. package/lib/hooks/useNavigator.js.map +0 -1
  462. package/lib/hooks/useRouter.js.map +0 -1
  463. package/lib/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
  464. package/lib/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
  465. package/lib/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
  466. package/mobile/bundle/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
  467. package/mobile/bundle/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
  468. package/mobile/bundle/hooks/useNavigator.d.ts +0 -8
  469. package/mobile/dist/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
  470. package/mobile/dist/components/ApplicationStatus/ApplicationStatus.js +0 -25
  471. package/mobile/dist/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
  472. package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
  473. package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
  474. package/mobile/dist/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
  475. package/mobile/dist/hooks/handlerDecorator.js.map +0 -1
  476. package/mobile/dist/hooks/useNavigator.d.ts +0 -8
  477. package/mobile/dist/hooks/useNavigator.js +0 -13
  478. package/mobile/dist/hooks/useNavigator.js.map +0 -1
  479. package/mobile/dist/hooks/useRouter.js.map +0 -1
  480. package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
  481. package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
  482. package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
  483. package/mobile/lib/components/ApplicationStatus/ApplicationStatus.d.ts +0 -5
  484. package/mobile/lib/components/ApplicationStatus/ApplicationStatus.js +0 -23
  485. package/mobile/lib/components/ApplicationStatus/ApplicationStatus.js.map +0 -1
  486. package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.d.ts +0 -18
  487. package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.js +0 -2
  488. package/mobile/lib/components/ApplicationStatus/ApplicationStatusContent.js.map +0 -1
  489. package/mobile/lib/hooks/handlerDecorator.js.map +0 -1
  490. package/mobile/lib/hooks/useNavigator.d.ts +0 -8
  491. package/mobile/lib/hooks/useNavigator.js +0 -10
  492. package/mobile/lib/hooks/useNavigator.js.map +0 -1
  493. package/mobile/lib/hooks/useRouter.js.map +0 -1
  494. package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +0 -0
  495. package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.js +0 -1
  496. package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.js.map +0 -1
  497. package/mobile/src/components/ApplicationStatus/ApplicationStatus.example.json +0 -6
  498. package/mobile/src/components/ApplicationStatus/ApplicationStatus.tsx +0 -108
  499. package/mobile/src/components/ApplicationStatus/ApplicationStatus.ui.json +0 -1
  500. package/mobile/src/components/ApplicationStatus/ApplicationStatusContent.ts +0 -19
  501. package/mobile/src/hooks/useNavigator.ts +0 -15
  502. package/mobile/src/ui-kit/FormField/Fields/FeedbackTypeField.tsx +0 -0
  503. package/src/components/ApplicationStatus/ApplicationStatus.example.json +0 -6
  504. package/src/components/ApplicationStatus/ApplicationStatus.fixture.tsx +0 -129
  505. package/src/components/ApplicationStatus/ApplicationStatus.tsx +0 -108
  506. package/src/components/ApplicationStatus/ApplicationStatus.ui.json +0 -1
  507. package/src/components/ApplicationStatus/ApplicationStatusContent.ts +0 -19
  508. package/src/hooks/useNavigator.ts +0 -15
  509. package/src/ui-kit/FormField/Fields/FeedbackTypeField.tsx +0 -0
  510. /package/bundle/{hooks → external}/handlerDecorator.d.ts +0 -0
  511. /package/bundle/{hooks → external}/useRouter.d.ts +0 -0
  512. /package/dist/{hooks → external}/handlerDecorator.d.ts +0 -0
  513. /package/dist/{hooks → external}/handlerDecorator.js +0 -0
  514. /package/dist/{hooks → external}/useRouter.d.ts +0 -0
  515. /package/dist/{hooks → external}/useRouter.js +0 -0
  516. /package/lib/{hooks → external}/handlerDecorator.d.ts +0 -0
  517. /package/lib/{hooks → external}/handlerDecorator.js +0 -0
  518. /package/lib/{hooks → external}/useRouter.d.ts +0 -0
  519. /package/lib/{hooks → external}/useRouter.js +0 -0
  520. /package/mobile/bundle/{hooks → external}/handlerDecorator.d.ts +0 -0
  521. /package/mobile/bundle/{hooks → external}/useRouter.d.ts +0 -0
  522. /package/mobile/dist/{hooks → external}/handlerDecorator.d.ts +0 -0
  523. /package/mobile/dist/{hooks → external}/handlerDecorator.js +0 -0
  524. /package/mobile/dist/{hooks → external}/useRouter.d.ts +0 -0
  525. /package/mobile/dist/{hooks → external}/useRouter.js +0 -0
  526. /package/mobile/lib/{hooks → external}/handlerDecorator.d.ts +0 -0
  527. /package/mobile/lib/{hooks → external}/handlerDecorator.js +0 -0
  528. /package/mobile/lib/{hooks → external}/useRouter.d.ts +0 -0
  529. /package/mobile/lib/{hooks → external}/useRouter.js +0 -0
  530. /package/mobile/src/{hooks → external}/handlerDecorator.ts +0 -0
  531. /package/mobile/src/{hooks → external}/useRouter.ts +0 -0
  532. /package/src/{hooks → external}/handlerDecorator.ts +0 -0
  533. /package/src/{hooks → external}/useRouter.ts +0 -0
@@ -414,6 +414,15 @@
414
414
  className,
415
415
  ].join(' ');
416
416
 
417
+ /* eslint-disable @typescript-eslint/ban-types */
418
+ const handlerDecorator = (handler) => {
419
+ return handlerDecorator._impl(handler);
420
+ };
421
+ handlerDecorator._impl = (handler) => handler;
422
+ handlerDecorator.setup = (impl) => {
423
+ handlerDecorator._impl = impl;
424
+ };
425
+
417
426
  class EventBus {
418
427
  watchers = new Set();
419
428
  subscribersMap = {};
@@ -473,15 +482,6 @@
473
482
 
474
483
  const adjustBase = (href, basePath = '') => href?.replace(basePath, '') || '/';
475
484
 
476
- /* eslint-disable @typescript-eslint/ban-types */
477
- const handlerDecorator = (handler) => {
478
- return handlerDecorator._impl(handler);
479
- };
480
- handlerDecorator._impl = (handler) => handler;
481
- handlerDecorator.setup = (impl) => {
482
- handlerDecorator._impl = impl;
483
- };
484
-
485
485
  function useLink() {
486
486
  const basePath = getBasePath(env.SITE_URL);
487
487
  const router = useRouter();
@@ -1073,6 +1073,24 @@
1073
1073
  }
1074
1074
  };
1075
1075
 
1076
+ function locationNavigator() {
1077
+ return locationNavigator._impl();
1078
+ }
1079
+ locationNavigator._impl = () => ({
1080
+ assign: (url, target) => {
1081
+ globalThis.open(url, target || '_self');
1082
+ },
1083
+ get origin() {
1084
+ return globalThis.location.origin;
1085
+ },
1086
+ get href() {
1087
+ return globalThis.location.href;
1088
+ },
1089
+ });
1090
+ locationNavigator.setup = (impl) => {
1091
+ locationNavigator._impl = impl;
1092
+ };
1093
+
1076
1094
  const QUERY_STORAGE_KEY = 'rshb-query-params';
1077
1095
  function saveSessionQuery() {
1078
1096
  const result = globalThis.location?.search || globalThis.sessionStorage?.getItem(QUERY_STORAGE_KEY) || '';
@@ -1094,69 +1112,18 @@
1094
1112
  return url.toString();
1095
1113
  };
1096
1114
 
1097
- function assertNonEmpty(value) {
1098
- if (!value) {
1099
- throw new Error('Value should be fulfilled');
1100
- }
1101
- return value;
1102
- }
1103
-
1104
- const baseTableFunc = (table) => (input) => {
1105
- const [, unit] = assertNonEmpty(table.find(([predicate]) => predicate(input)));
1106
- return unit(input);
1107
- };
1108
- const tableFunc = (table) => baseTableFunc(table.map(([p, o]) => [p, () => o]));
1109
- tableFunc.if = (predicate) => new TableFuncBuilder(undefined, predicate);
1110
- class TableFuncBuilder {
1111
- parent;
1112
- predicate;
1113
- unit;
1114
- get entry() {
1115
- return [assertNonEmpty(this.predicate), assertNonEmpty(this.unit)];
1116
- }
1117
- constructor(parent, predicate, unit) {
1118
- this.parent = parent;
1119
- this.predicate = predicate;
1120
- this.unit = unit;
1121
- }
1122
- if(predicate) {
1123
- return new TableFuncBuilder(this, predicate);
1124
- }
1125
- then(unit) {
1126
- return new TableFuncBuilder(this.parent, this.predicate, unit);
1127
- }
1128
- else(unit) {
1129
- return baseTableFunc([...buildTable(this), [() => true, unit]]);
1130
- }
1131
- }
1132
- const buildTable = (builder) => [
1133
- ...(builder?.parent ? buildTable(builder.parent) : []),
1134
- builder.entry,
1135
- ];
1136
-
1137
1115
  const forwardQuery = (ev) => {
1138
1116
  const anchor = ev.target?.closest('a');
1139
- if (isURL(anchor?.href) && !anchor?.href?.startsWith(globalThis.location?.origin)) {
1117
+ const navigator = locationNavigator();
1118
+ if (isURL(anchor?.href) && !anchor?.href?.startsWith(navigator.origin)) {
1140
1119
  ev.preventDefault();
1141
1120
  ev.stopPropagation();
1142
1121
  const url = adjustSessionQuery(anchor?.href) || anchor?.href;
1143
1122
  if (url) {
1144
- const transition = getTransition(anchor?.target);
1145
- transition?.(url);
1123
+ navigator.assign(url, anchor?.target);
1146
1124
  }
1147
1125
  }
1148
1126
  };
1149
- const getTransition = tableFunc([
1150
- [(_) => _ === '_blank', (url) => globalThis.open(url, '_blank')],
1151
- [(_) => _ === '_parent', (url) => globalThis.parent && (globalThis.parent.location.href = url)],
1152
- [
1153
- (_) => _ === '_top',
1154
- (url) => {
1155
- globalThis.top && (globalThis.top.location.href = url);
1156
- },
1157
- ],
1158
- [() => true, (url) => globalThis.location && (globalThis.location.href = url)],
1159
- ]);
1160
1127
 
1161
1128
  function useAspects() {
1162
1129
  return useAspects._impl();
@@ -3371,10 +3338,10 @@
3371
3338
  creditProgramId: 13,
3372
3339
  });
3373
3340
  const data = await response?.json();
3374
- return data?.paymentSystems?.map((paymentSystem) => ({
3341
+ return (data?.paymentSystems?.map((paymentSystem) => ({
3375
3342
  id: paymentSystem.type,
3376
3343
  text: paymentSystem.name,
3377
- }));
3344
+ })) ?? []);
3378
3345
  };
3379
3346
 
3380
3347
  const PaymentSystemField = JSX(({ field, input }) => {
@@ -3427,7 +3394,7 @@
3427
3394
 
3428
3395
  const PosTerminalField = JSX(({ field }) => isAcquiringTrade(field('acquiringType')?.value?.key) ? (jsx(SlideCheckbox, { type: "radio", text: "\u0425\u043E\u0447\u0443 POS-\u0442\u0435\u0440\u043C\u0438\u043D\u0430\u043B", ...field('posTerminal') })) : null);
3429
3396
 
3430
- const ProductField = UniBlock(({ field, source }) => (jsx(SelectControl, { placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0440\u043E\u0434\u0443\u043A\u0442", label: "\u041F\u0440\u043E\u0434\u0443\u043A\u0442", options: arrayToOptions(source?.productList), ...withValidator(field('product'), validatorObj.product) })));
3397
+ const ProductField = JSX(({ field, source }) => (jsx(SelectControl, { placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0440\u043E\u0434\u0443\u043A\u0442", label: "\u041F\u0440\u043E\u0434\u0443\u043A\u0442", options: arrayToOptions(source?.productList), ...withValidator(field('product'), validatorObj.product) })));
3431
3398
  const arrayToOptions = (array) => (array ?? []).map((_) => ({ key: _, value: _ }));
3432
3399
 
3433
3400
  const REGIONS_URL = `${API_BASE_URI}/regions`;
@@ -4232,12 +4199,13 @@
4232
4199
  const getLink = (body) => fetchRetailJSON('/esia/getLink', 'POST', body);
4233
4200
 
4234
4201
  const EsiaLoginDialog = JSX(function ({ handleClose }) {
4202
+ const navigator = locationNavigator();
4235
4203
  const handleAuth = useCallback(async () => {
4236
4204
  const resp = await getLink({
4237
- redirectUri: globalThis.location.href,
4205
+ redirectUri: navigator.href,
4238
4206
  });
4239
4207
  if (resp) {
4240
- globalThis.location.href = resp.link;
4208
+ navigator.assign(resp.link);
4241
4209
  }
4242
4210
  }, []);
4243
4211
  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" })] })] }) }));
@@ -4245,9 +4213,10 @@
4245
4213
 
4246
4214
  const useEsiaLoginDialog = (nextStepLink) => {
4247
4215
  const { open, close } = useDialogManager();
4216
+ const navigator = locationNavigator();
4248
4217
  const handleClose = useCallback(() => {
4249
4218
  close();
4250
- globalThis.location.href = nextStepLink;
4219
+ navigator.assign(nextStepLink);
4251
4220
  }, []);
4252
4221
  return {
4253
4222
  open: (options = {}) => open(jsx(EsiaLoginDialog, { handleClose: handleClose }), options),
@@ -4323,11 +4292,12 @@
4323
4292
 
4324
4293
  const getLeadFormTaskData = ({ participantId, taskId, profileId, formData, }) => {
4325
4294
  const { name, surname, middleName, limitedBirthday, phone, email } = formData;
4295
+ const navigator = locationNavigator();
4326
4296
  return {
4327
4297
  sendToBank: true,
4328
4298
  taskKind: 'SHORT',
4329
4299
  task: {
4330
- taskSource: globalThis.location.origin,
4300
+ taskSource: navigator.origin,
4331
4301
  id: taskId,
4332
4302
  participants: [
4333
4303
  {
@@ -4494,6 +4464,7 @@
4494
4464
  };
4495
4465
 
4496
4466
  const useInitApplicationLead = (nextStepLink) => {
4467
+ const navigator = locationNavigator();
4497
4468
  const [isLoading, setIsLoading] = useState(false);
4498
4469
  const [profileId] = useLocalStorage('profileId');
4499
4470
  const [leadForm, setLeadForm] = useLocalStorage('leadForm');
@@ -4506,14 +4477,14 @@
4506
4477
  profileId: profileId,
4507
4478
  code,
4508
4479
  state,
4509
- redirectUri: globalThis.location?.href,
4480
+ redirectUri: navigator.href,
4510
4481
  });
4511
4482
  data &&
4512
4483
  setLeadForm({
4513
4484
  ...leadForm,
4514
4485
  ...parseEsiaProfile(data),
4515
4486
  });
4516
- globalThis.location.href = nextStepLink;
4487
+ navigator.assign(nextStepLink);
4517
4488
  }
4518
4489
  }, []);
4519
4490
  useEffect(() => {
@@ -6167,14 +6138,18 @@
6167
6138
  }
6168
6139
  }, type: "button", ...(isUnfolded ? getAspectsAttributes(data) : {}), children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
6169
6140
 
6141
+ const PORTAL_NATURAL_URL = '/';
6170
6142
  const UPDATING_INTERVAL = 60000 * 4;
6171
- const updateRefreshToken = (failCallback) => {
6143
+ const updateRefreshToken = () => {
6172
6144
  const refreshToken = globalThis.sessionStorage?.getItem('refreshToken');
6173
6145
  const accessToken = globalThis.sessionStorage?.getItem('accessToken');
6174
6146
  const taskId = globalThis.localStorage.getItem('taskId');
6147
+ const navigator = locationNavigator();
6175
6148
  if (!accessToken || !refreshToken || !taskId) {
6176
- failCallback();
6177
- return () => null;
6149
+ navigator.assign(PORTAL_NATURAL_URL);
6150
+ return () => {
6151
+ // do nothing
6152
+ };
6178
6153
  }
6179
6154
  const updateTokenRequest = async () => {
6180
6155
  const res = await doRequest('/auth/refresh', 'POST', {
@@ -6184,7 +6159,7 @@
6184
6159
  access_token: accessToken,
6185
6160
  });
6186
6161
  if (res?.status == 401) {
6187
- failCallback();
6162
+ navigator.assign(PORTAL_NATURAL_URL);
6188
6163
  }
6189
6164
  if (res?.ok) {
6190
6165
  const data = await res.json();
@@ -6197,16 +6172,6 @@
6197
6172
  return () => clearInterval(timer);
6198
6173
  };
6199
6174
 
6200
- function useNavigator() {
6201
- return useNavigator._impl();
6202
- }
6203
- useNavigator._impl = () => ({
6204
- assign: (url) => globalThis.location.assign(url),
6205
- });
6206
- useNavigator.setup = (impl) => {
6207
- useNavigator._impl = impl;
6208
- };
6209
-
6210
6175
  const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (jsxs("div", { children: [jsx("div", { className: "h-4 w-full bg-gray relative", children: jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), jsxs("div", { className: "relative", children: [showPercentage ? jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? jsx("div", { className: "text-right mr-4 text-gray", children: description }) : null] })] })));
6211
6176
 
6212
6177
  const CreditCardFormProgress = JSX(({ step = 1, totalSteps = 6, stepsTitles = [] }) => {
@@ -6528,11 +6493,13 @@
6528
6493
  };
6529
6494
 
6530
6495
  const getFourthStepData$1 = (formData) => {
6531
- const { familyStatus, dependents, familyMembers, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, } = formData;
6496
+ const { familyStatus, dependents, familyMembers, children, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, conscription, } = formData;
6532
6497
  return {
6533
6498
  maritalStatusCd: familyStatus,
6499
+ childrenDependents: children,
6534
6500
  totalDependents: familyMembers,
6535
6501
  otherDependents: dependents,
6502
+ militaryStatusCd: conscription,
6536
6503
  participantIncomes: getParticipantIncomes({
6537
6504
  wages,
6538
6505
  mandatoryPayments,
@@ -6592,6 +6559,12 @@
6592
6559
  deliveryTimeCd: { value: 'TIME_2' },
6593
6560
  };
6594
6561
  };
6562
+ const getOfficeCode = (formData) => {
6563
+ const { addressRetail } = formData;
6564
+ return {
6565
+ office: addressRetail?.key ? { id: addressRetail.key } : undefined,
6566
+ };
6567
+ };
6595
6568
  const getSixthStepData = (formData) => {
6596
6569
  const { addressCourier } = formData;
6597
6570
  return {
@@ -6600,8 +6573,9 @@
6600
6573
  };
6601
6574
 
6602
6575
  const getThirdStepData$1 = (formData) => {
6603
- const { employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
6576
+ const { beginDate, employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
6604
6577
  return {
6578
+ employmentContractDate: formatDate(beginDate || '', true),
6605
6579
  employmentTypeCd: employment,
6606
6580
  organizationName,
6607
6581
  organizationInn: inn,
@@ -6624,15 +6598,14 @@
6624
6598
  };
6625
6599
 
6626
6600
  const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
6601
+ const navigator = locationNavigator();
6627
6602
  return {
6628
6603
  sendToBank: true,
6629
6604
  taskKind: 'UNITED',
6630
6605
  task: {
6631
- taskSource: globalThis.location.origin,
6606
+ taskSource: navigator.origin,
6632
6607
  id: taskId,
6633
- office: {
6634
- id: '650', // TODO: Remove hardcode
6635
- },
6608
+ ...getOfficeCode(formData),
6636
6609
  authorizedAgentId: formData?.bankEmployeeCode,
6637
6610
  participants: [
6638
6611
  {
@@ -6676,7 +6649,6 @@
6676
6649
  const [participantId] = useLocalStorage('participantId');
6677
6650
  const handleSubmit = useCallback(async (formData) => {
6678
6651
  const feedbackValidator = objectValidator(getObjectValidator(calculateInputs$1(getValue$2(formData))(inputs, step)));
6679
- console.log(getObjectValidator(calculateInputs$1(getValue$2(formData))(inputs, step)));
6680
6652
  if (!isValidationSuccess(feedbackValidator(formData))) {
6681
6653
  return console.warn('validation fail');
6682
6654
  }
@@ -7075,7 +7047,6 @@
7075
7047
  ],
7076
7048
  ];
7077
7049
 
7078
- const PORTAL_NATURAL_URL$1 = '/';
7079
7050
  const WIZARD_STEPS$1 = 6;
7080
7051
  const WIZARD_TITLES$1 = [
7081
7052
  'Параметры карты',
@@ -7089,8 +7060,7 @@
7089
7060
  const [step, setStep] = useState(0);
7090
7061
  const formContainerRef = useRef(null);
7091
7062
  const scrollToTop = useCallback(() => formContainerRef?.current?.scrollIntoView({ behavior: 'smooth' }), [formContainerRef]);
7092
- const navigator = useNavigator();
7093
- useEffect(() => updateRefreshToken(() => navigator.assign(PORTAL_NATURAL_URL$1)), []);
7063
+ useEffect(updateRefreshToken, []);
7094
7064
  const handleNextStep = useCallback(() => {
7095
7065
  setStep((_) => Math.min(_ + 1, WIZARD_STEPS$1));
7096
7066
  scrollToTop();
@@ -7430,8 +7400,9 @@
7430
7400
  };
7431
7401
 
7432
7402
  const getSecondStepData = (formData) => {
7433
- const { employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
7403
+ const { beginDate, employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
7434
7404
  return {
7405
+ employmentContractDate: formatDate(beginDate || '', true),
7435
7406
  employmentTypeCd: employment,
7436
7407
  organizationName,
7437
7408
  organizationInn: inn,
@@ -7454,12 +7425,14 @@
7454
7425
  };
7455
7426
 
7456
7427
  const getThirdStepData = (formData) => {
7457
- const { familyStatus, dependents, familyMembers, confirmationIncome, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, } = formData;
7428
+ const { familyStatus, dependents, familyMembers, children, confirmationIncome, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, conscription, } = formData;
7458
7429
  return {
7459
7430
  maritalStatusCd: familyStatus,
7460
7431
  totalDependents: familyMembers,
7461
7432
  incomeCertificateCd: confirmationIncome,
7462
7433
  otherDependents: dependents,
7434
+ childrenDependents: children,
7435
+ militaryStatusCd: conscription,
7463
7436
  participantIncomes: getParticipantIncomes({
7464
7437
  wages,
7465
7438
  mandatoryPayments,
@@ -7488,36 +7461,36 @@
7488
7461
  };
7489
7462
  };
7490
7463
 
7491
- const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => ({
7492
- sendToBank: true,
7493
- taskKind: 'UNITED',
7494
- task: {
7495
- taskSource: globalThis.location.origin,
7496
- id: taskId,
7497
- office: {
7498
- id: '',
7499
- },
7500
- authorizedAgentId: formData?.bankEmployeeCode,
7501
- participants: [
7502
- {
7503
- id: participantId,
7504
- profile: {
7505
- id: profileId,
7506
- },
7507
- roleCd: {
7508
- key: 'BORROWER',
7509
- value: 'Заемщик',
7464
+ const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
7465
+ const navigator = locationNavigator();
7466
+ return {
7467
+ sendToBank: true,
7468
+ taskKind: 'UNITED',
7469
+ task: {
7470
+ taskSource: navigator.origin,
7471
+ id: taskId,
7472
+ authorizedAgentId: formData?.bankEmployeeCode,
7473
+ participants: [
7474
+ {
7475
+ id: participantId,
7476
+ profile: {
7477
+ id: profileId,
7478
+ },
7479
+ roleCd: {
7480
+ key: 'BORROWER',
7481
+ value: 'Заемщик',
7482
+ },
7483
+ ...getCurrentStepData(step, formData),
7510
7484
  },
7511
- ...getCurrentStepData(step, formData),
7485
+ ],
7486
+ ...getZeroStepData(formData),
7487
+ ...getFifthStepData(formData),
7488
+ esiaAccountTypeCd: {
7489
+ key: formData?.esiaAccountTypeCd?.key,
7512
7490
  },
7513
- ],
7514
- ...getZeroStepData(formData),
7515
- ...getFifthStepData(formData),
7516
- esiaAccountTypeCd: {
7517
- key: formData?.esiaAccountTypeCd?.key,
7518
7491
  },
7519
- },
7520
- });
7492
+ };
7493
+ };
7521
7494
  const getCurrentStepData = (step, formData) => {
7522
7495
  switch (step) {
7523
7496
  case 0:
@@ -7868,7 +7841,6 @@
7868
7841
  ],
7869
7842
  ];
7870
7843
 
7871
- const PORTAL_NATURAL_URL = '/';
7872
7844
  const WIZARD_STEPS = 5;
7873
7845
  const WIZARD_TITLES = [
7874
7846
  '',
@@ -7882,8 +7854,7 @@
7882
7854
  const [step, setStep] = useState(0);
7883
7855
  const formContainerRef = useRef(null);
7884
7856
  const scrollToTop = useCallback(() => formContainerRef?.current?.scrollIntoView({ behavior: 'smooth' }), [formContainerRef]);
7885
- const navigator = useNavigator();
7886
- useEffect(() => updateRefreshToken(() => navigator.assign(PORTAL_NATURAL_URL)), []);
7857
+ useEffect(updateRefreshToken, []);
7887
7858
  const handleNextStep = useCallback(() => {
7888
7859
  setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
7889
7860
  scrollToTop();
@@ -8281,6 +8252,46 @@
8281
8252
  };
8282
8253
  const formatValue = (value) => value.replace(/[^\d.,]/g, '').replace(',', '.');
8283
8254
 
8255
+ function assertNonEmpty(value) {
8256
+ if (!value) {
8257
+ throw new Error('Value should be fulfilled');
8258
+ }
8259
+ return value;
8260
+ }
8261
+
8262
+ const baseTableFunc = (table) => (input) => {
8263
+ const [, unit] = assertNonEmpty(table.find(([predicate]) => predicate(input)));
8264
+ return unit(input);
8265
+ };
8266
+ const tableFunc = (table) => baseTableFunc(table.map(([p, o]) => [p, () => o]));
8267
+ tableFunc.if = (predicate) => new TableFuncBuilder(undefined, predicate);
8268
+ class TableFuncBuilder {
8269
+ parent;
8270
+ predicate;
8271
+ unit;
8272
+ get entry() {
8273
+ return [assertNonEmpty(this.predicate), assertNonEmpty(this.unit)];
8274
+ }
8275
+ constructor(parent, predicate, unit) {
8276
+ this.parent = parent;
8277
+ this.predicate = predicate;
8278
+ this.unit = unit;
8279
+ }
8280
+ if(predicate) {
8281
+ return new TableFuncBuilder(this, predicate);
8282
+ }
8283
+ then(unit) {
8284
+ return new TableFuncBuilder(this.parent, this.predicate, unit);
8285
+ }
8286
+ else(unit) {
8287
+ return baseTableFunc([...buildTable(this), [() => true, unit]]);
8288
+ }
8289
+ }
8290
+ const buildTable = (builder) => [
8291
+ ...(builder?.parent ? buildTable(builder.parent) : []),
8292
+ builder.entry,
8293
+ ];
8294
+
8284
8295
  const callbackCurrencySelect = (props) => tableFunc([
8285
8296
  [
8286
8297
  (_) => _.value !== Currency.RUB && _.oppositeValue !== Currency.RUB,
@@ -9938,18 +9949,18 @@
9938
9949
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
9939
9950
  });
9940
9951
 
9941
- const packageVersion = "0.14.679";
9952
+ const packageVersion = "0.14.681";
9942
9953
 
9943
9954
  exports.Blocks = Blocks;
9944
9955
  exports.ContentPage = ContentPage;
9945
9956
  exports.handlerDecorator = handlerDecorator;
9946
9957
  exports.joinList = joinList;
9958
+ exports.locationNavigator = locationNavigator;
9947
9959
  exports.packageVersion = packageVersion;
9948
9960
  exports.projectSettings = projectSettings;
9949
9961
  exports.setup = setup;
9950
9962
  exports.setupHooks = setupHooks;
9951
9963
  exports.url = url;
9952
- exports.useNavigator = useNavigator;
9953
9964
  exports.useRouter = useRouter;
9954
9965
 
9955
9966
  Object.defineProperty(exports, '__esModule', { value: true });