@redneckz/wildless-cms-uni-blocks 0.14.651 → 0.14.653

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 (652) hide show
  1. package/bundle/api/RetailAPI/getTaskStatus.d.ts +1 -1
  2. package/bundle/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  3. package/bundle/api/RetailAPI/updateUserTask.d.ts +4 -0
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +959 -119
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  8. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  9. package/bundle/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  10. package/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  11. package/bundle/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  12. package/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  13. package/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  14. package/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  15. package/bundle/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  16. package/bundle/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  17. package/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  18. package/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  19. package/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  20. package/bundle/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  21. package/bundle/components/CreditCardForm/formStateMap.d.ts +74 -0
  22. package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  23. package/bundle/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  24. package/bundle/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  25. package/bundle/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  26. package/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  27. package/bundle/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  28. package/bundle/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  29. package/bundle/components/CreditCardForm/renderInfo.d.ts +3 -0
  30. package/bundle/components/CreditCardForm/renderInputs.d.ts +3 -0
  31. package/bundle/components/CreditCardForm/renderStep.d.ts +13 -0
  32. package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  33. package/bundle/components/CreditForm/CreditFormStep.d.ts +1 -1
  34. package/bundle/components/CreditForm/creditFormStepsData.d.ts +1 -1
  35. package/bundle/hooks/useInterval.d.ts +1 -0
  36. package/bundle/model/InputSectionsType.d.ts +9 -1
  37. package/bundle/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  38. package/bundle/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  39. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  40. package/dist/api/RetailAPI/doRequest.js +1 -0
  41. package/dist/api/RetailAPI/doRequest.js.map +1 -1
  42. package/dist/api/RetailAPI/getTaskStatus.d.ts +1 -1
  43. package/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
  44. package/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  45. package/dist/api/RetailAPI/updateRefreshToken.js +31 -0
  46. package/dist/api/RetailAPI/updateRefreshToken.js.map +1 -0
  47. package/dist/api/RetailAPI/updateUserTask.d.ts +4 -0
  48. package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  49. package/dist/api/dadataHints/hintsListsOptions.js +1 -0
  50. package/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
  51. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  52. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  53. package/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  54. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  55. package/dist/components/Blocks.js +2 -0
  56. package/dist/components/Blocks.js.map +1 -1
  57. package/dist/components/Blocks.mobile.js +2 -0
  58. package/dist/components/Blocks.mobile.js.map +1 -1
  59. package/dist/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  60. package/dist/components/CreditCardForm/CreditCardForm.js +34 -0
  61. package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -0
  62. package/dist/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  63. package/dist/components/CreditCardForm/CreditCardFormContent.js +2 -0
  64. package/dist/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  65. package/dist/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  66. package/dist/components/CreditCardForm/CreditCardFormProgress.js +11 -0
  67. package/dist/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  68. package/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  69. package/dist/components/CreditCardForm/CreditCardFormStatus.js +25 -0
  70. package/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  71. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  72. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +43 -0
  73. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  74. package/dist/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  75. package/dist/components/CreditCardForm/CreditCardFormStep.js +41 -0
  76. package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  77. package/dist/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  78. package/dist/components/CreditCardForm/FailedStatusContent.js +7 -0
  79. package/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  80. package/dist/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  81. package/dist/components/CreditCardForm/PendingStatusContent.js +32 -0
  82. package/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  83. package/dist/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  84. package/dist/components/CreditCardForm/ReworkStatusContent.js +25 -0
  85. package/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  86. package/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  87. package/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -0
  88. package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  89. package/dist/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  90. package/dist/components/CreditCardForm/SuccessStatusContent.js +32 -0
  91. package/dist/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  92. package/dist/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  93. package/dist/components/CreditCardForm/creditCardFormStepsData.js +310 -0
  94. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  95. package/dist/components/CreditCardForm/formStateMap.d.ts +74 -0
  96. package/dist/components/CreditCardForm/formStateMap.js +93 -0
  97. package/dist/components/CreditCardForm/formStateMap.js.map +1 -0
  98. package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  99. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +54 -0
  100. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  101. package/dist/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  102. package/dist/components/CreditCardForm/getFifthStepData.js +13 -0
  103. package/dist/components/CreditCardForm/getFifthStepData.js.map +1 -0
  104. package/dist/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  105. package/dist/components/CreditCardForm/getFirstStepData.js +13 -0
  106. package/dist/components/CreditCardForm/getFirstStepData.js.map +1 -0
  107. package/dist/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  108. package/dist/components/CreditCardForm/getFourthStepData.js +19 -0
  109. package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -0
  110. package/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  111. package/dist/components/CreditCardForm/getInitialFormState.js +27 -0
  112. package/dist/components/CreditCardForm/getInitialFormState.js.map +1 -0
  113. package/dist/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  114. package/dist/components/CreditCardForm/getSecondStepData.js +35 -0
  115. package/dist/components/CreditCardForm/getSecondStepData.js.map +1 -0
  116. package/dist/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  117. package/dist/components/CreditCardForm/getThirdStepData.js +28 -0
  118. package/dist/components/CreditCardForm/getThirdStepData.js.map +1 -0
  119. package/dist/components/CreditCardForm/renderInfo.d.ts +3 -0
  120. package/dist/components/CreditCardForm/renderInfo.js +12 -0
  121. package/dist/components/CreditCardForm/renderInfo.js.map +1 -0
  122. package/dist/components/CreditCardForm/renderInputs.d.ts +3 -0
  123. package/dist/components/CreditCardForm/renderInputs.js +6 -0
  124. package/dist/components/CreditCardForm/renderInputs.js.map +1 -0
  125. package/dist/components/CreditCardForm/renderStep.d.ts +13 -0
  126. package/dist/components/CreditCardForm/renderStep.js +19 -0
  127. package/dist/components/CreditCardForm/renderStep.js.map +1 -0
  128. package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  129. package/dist/components/CreditCardForm/useCreditCardFormAPI.js +46 -0
  130. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  131. package/dist/components/CreditForm/CreditForm.js +2 -0
  132. package/dist/components/CreditForm/CreditForm.js.map +1 -1
  133. package/dist/components/CreditForm/CreditFormStatusTracker.js +8 -7
  134. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  135. package/dist/components/CreditForm/CreditFormStep.d.ts +1 -1
  136. package/dist/components/CreditForm/FailedStatusContent.js +1 -1
  137. package/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
  138. package/dist/components/CreditForm/creditFormStepsData.d.ts +1 -1
  139. package/dist/components/CreditForm/getCreditFormTaskData.js +1 -1
  140. package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  141. package/dist/hooks/useInterval.d.ts +1 -0
  142. package/dist/hooks/useInterval.js +14 -0
  143. package/dist/hooks/useInterval.js.map +1 -0
  144. package/dist/model/InputSectionsType.d.ts +9 -1
  145. package/dist/ui-kit/FormField/Fields/CurrencyField.js +6 -5
  146. package/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  147. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  148. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js +9 -0
  149. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  150. package/dist/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  151. package/dist/ui-kit/FormField/Fields/MethodObtainField.js +13 -0
  152. package/dist/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  153. package/dist/ui-kit/FormField/Fields/PaymentSystemField.js +6 -5
  154. package/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  155. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  156. package/dist/ui-kit/FormField/getField.js +5 -0
  157. package/dist/ui-kit/FormField/getField.js.map +1 -1
  158. package/dist/ui-kit/FormField/getObjectValidator.js +6 -1
  159. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  160. package/lib/api/RetailAPI/doRequest.js +1 -0
  161. package/lib/api/RetailAPI/doRequest.js.map +1 -1
  162. package/lib/api/RetailAPI/getTaskStatus.d.ts +1 -1
  163. package/lib/api/RetailAPI/getTaskStatus.js.map +1 -1
  164. package/lib/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  165. package/lib/api/RetailAPI/updateRefreshToken.js +28 -0
  166. package/lib/api/RetailAPI/updateRefreshToken.js.map +1 -0
  167. package/lib/api/RetailAPI/updateUserTask.d.ts +4 -0
  168. package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  169. package/lib/api/dadataHints/hintsListsOptions.js +1 -0
  170. package/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
  171. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  172. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  173. package/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  174. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  175. package/lib/components/Blocks.js +2 -0
  176. package/lib/components/Blocks.js.map +1 -1
  177. package/lib/components/Blocks.mobile.js +2 -0
  178. package/lib/components/Blocks.mobile.js.map +1 -1
  179. package/lib/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  180. package/lib/components/CreditCardForm/CreditCardForm.fixture.d.ts +6 -0
  181. package/lib/components/CreditCardForm/CreditCardForm.js +32 -0
  182. package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -0
  183. package/lib/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  184. package/lib/components/CreditCardForm/CreditCardFormContent.js +2 -0
  185. package/lib/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  186. package/lib/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  187. package/lib/components/CreditCardForm/CreditCardFormProgress.js +9 -0
  188. package/lib/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  189. package/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  190. package/lib/components/CreditCardForm/CreditCardFormStatus.js +23 -0
  191. package/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  192. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  193. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +41 -0
  194. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  195. package/lib/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  196. package/lib/components/CreditCardForm/CreditCardFormStep.js +39 -0
  197. package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  198. package/lib/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  199. package/lib/components/CreditCardForm/FailedStatusContent.js +5 -0
  200. package/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  201. package/lib/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  202. package/lib/components/CreditCardForm/PendingStatusContent.js +30 -0
  203. package/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  204. package/lib/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  205. package/lib/components/CreditCardForm/ReworkStatusContent.js +23 -0
  206. package/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  207. package/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  208. package/lib/components/CreditCardForm/StepsNavigationButtons.js +9 -0
  209. package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  210. package/lib/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  211. package/lib/components/CreditCardForm/SuccessStatusContent.js +30 -0
  212. package/lib/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  213. package/lib/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  214. package/lib/components/CreditCardForm/creditCardFormStepsData.js +308 -0
  215. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  216. package/lib/components/CreditCardForm/formStateMap.d.ts +74 -0
  217. package/lib/components/CreditCardForm/formStateMap.js +91 -0
  218. package/lib/components/CreditCardForm/formStateMap.js.map +1 -0
  219. package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  220. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +51 -0
  221. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  222. package/lib/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  223. package/lib/components/CreditCardForm/getFifthStepData.js +10 -0
  224. package/lib/components/CreditCardForm/getFifthStepData.js.map +1 -0
  225. package/lib/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  226. package/lib/components/CreditCardForm/getFirstStepData.js +10 -0
  227. package/lib/components/CreditCardForm/getFirstStepData.js.map +1 -0
  228. package/lib/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  229. package/lib/components/CreditCardForm/getFourthStepData.js +16 -0
  230. package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -0
  231. package/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  232. package/lib/components/CreditCardForm/getInitialFormState.js +24 -0
  233. package/lib/components/CreditCardForm/getInitialFormState.js.map +1 -0
  234. package/lib/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  235. package/lib/components/CreditCardForm/getSecondStepData.js +32 -0
  236. package/lib/components/CreditCardForm/getSecondStepData.js.map +1 -0
  237. package/lib/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  238. package/lib/components/CreditCardForm/getThirdStepData.js +25 -0
  239. package/lib/components/CreditCardForm/getThirdStepData.js.map +1 -0
  240. package/lib/components/CreditCardForm/renderInfo.d.ts +2 -0
  241. package/lib/components/CreditCardForm/renderInfo.js +9 -0
  242. package/lib/components/CreditCardForm/renderInfo.js.map +1 -0
  243. package/lib/components/CreditCardForm/renderInputs.d.ts +2 -0
  244. package/lib/components/CreditCardForm/renderInputs.js +3 -0
  245. package/lib/components/CreditCardForm/renderInputs.js.map +1 -0
  246. package/lib/components/CreditCardForm/renderStep.d.ts +12 -0
  247. package/lib/components/CreditCardForm/renderStep.js +16 -0
  248. package/lib/components/CreditCardForm/renderStep.js.map +1 -0
  249. package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  250. package/lib/components/CreditCardForm/useCreditCardFormAPI.js +43 -0
  251. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  252. package/lib/components/CreditForm/CreditForm.js +3 -1
  253. package/lib/components/CreditForm/CreditForm.js.map +1 -1
  254. package/lib/components/CreditForm/CreditFormStatusTracker.js +8 -7
  255. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  256. package/lib/components/CreditForm/CreditFormStep.d.ts +1 -1
  257. package/lib/components/CreditForm/FailedStatusContent.js +1 -1
  258. package/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
  259. package/lib/components/CreditForm/creditFormStepsData.d.ts +1 -1
  260. package/lib/components/CreditForm/getCreditFormTaskData.js +1 -1
  261. package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  262. package/lib/hooks/useInterval.d.ts +1 -0
  263. package/lib/hooks/useInterval.js +11 -0
  264. package/lib/hooks/useInterval.js.map +1 -0
  265. package/lib/model/InputSectionsType.d.ts +9 -1
  266. package/lib/ui-kit/FormField/Fields/CurrencyField.js +7 -6
  267. package/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  268. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  269. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js +7 -0
  270. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  271. package/lib/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  272. package/lib/ui-kit/FormField/Fields/MethodObtainField.js +11 -0
  273. package/lib/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  274. package/lib/ui-kit/FormField/Fields/PaymentSystemField.js +7 -6
  275. package/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  276. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  277. package/lib/ui-kit/FormField/getField.js +5 -0
  278. package/lib/ui-kit/FormField/getField.js.map +1 -1
  279. package/lib/ui-kit/FormField/getObjectValidator.js +6 -1
  280. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  281. package/mobile/bundle/api/RetailAPI/getTaskStatus.d.ts +1 -1
  282. package/mobile/bundle/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  283. package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +4 -0
  284. package/mobile/bundle/bundle.umd.js +955 -115
  285. package/mobile/bundle/bundle.umd.min.js +1 -1
  286. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  287. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  288. package/mobile/bundle/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  289. package/mobile/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  290. package/mobile/bundle/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  291. package/mobile/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  292. package/mobile/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  293. package/mobile/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  294. package/mobile/bundle/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  295. package/mobile/bundle/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  296. package/mobile/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  297. package/mobile/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  298. package/mobile/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  299. package/mobile/bundle/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  300. package/mobile/bundle/components/CreditCardForm/formStateMap.d.ts +74 -0
  301. package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  302. package/mobile/bundle/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  303. package/mobile/bundle/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  304. package/mobile/bundle/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  305. package/mobile/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  306. package/mobile/bundle/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  307. package/mobile/bundle/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  308. package/mobile/bundle/components/CreditCardForm/renderInfo.d.ts +3 -0
  309. package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +3 -0
  310. package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +13 -0
  311. package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  312. package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +1 -1
  313. package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +1 -1
  314. package/mobile/bundle/hooks/useInterval.d.ts +1 -0
  315. package/mobile/bundle/model/InputSectionsType.d.ts +9 -1
  316. package/mobile/bundle/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  317. package/mobile/bundle/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  318. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  319. package/mobile/dist/api/RetailAPI/doRequest.js +1 -0
  320. package/mobile/dist/api/RetailAPI/doRequest.js.map +1 -1
  321. package/mobile/dist/api/RetailAPI/getTaskStatus.d.ts +1 -1
  322. package/mobile/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
  323. package/mobile/dist/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  324. package/mobile/dist/api/RetailAPI/updateRefreshToken.js +31 -0
  325. package/mobile/dist/api/RetailAPI/updateRefreshToken.js.map +1 -0
  326. package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +4 -0
  327. package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  328. package/mobile/dist/api/dadataHints/hintsListsOptions.js +1 -0
  329. package/mobile/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
  330. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  331. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  332. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  333. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  334. package/mobile/dist/components/Blocks.js +2 -0
  335. package/mobile/dist/components/Blocks.js.map +1 -1
  336. package/mobile/dist/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  337. package/mobile/dist/components/CreditCardForm/CreditCardForm.js +34 -0
  338. package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -0
  339. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  340. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.js +2 -0
  341. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  342. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  343. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.js +11 -0
  344. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  345. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  346. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js +25 -0
  347. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  348. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  349. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +43 -0
  350. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  351. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  352. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +41 -0
  353. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  354. package/mobile/dist/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  355. package/mobile/dist/components/CreditCardForm/FailedStatusContent.js +7 -0
  356. package/mobile/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  357. package/mobile/dist/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  358. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js +32 -0
  359. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  360. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  361. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js +25 -0
  362. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  363. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  364. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -0
  365. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  366. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  367. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js +32 -0
  368. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  369. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  370. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +310 -0
  371. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  372. package/mobile/dist/components/CreditCardForm/formStateMap.d.ts +74 -0
  373. package/mobile/dist/components/CreditCardForm/formStateMap.js +93 -0
  374. package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -0
  375. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  376. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +54 -0
  377. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  378. package/mobile/dist/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  379. package/mobile/dist/components/CreditCardForm/getFifthStepData.js +13 -0
  380. package/mobile/dist/components/CreditCardForm/getFifthStepData.js.map +1 -0
  381. package/mobile/dist/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  382. package/mobile/dist/components/CreditCardForm/getFirstStepData.js +13 -0
  383. package/mobile/dist/components/CreditCardForm/getFirstStepData.js.map +1 -0
  384. package/mobile/dist/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  385. package/mobile/dist/components/CreditCardForm/getFourthStepData.js +19 -0
  386. package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -0
  387. package/mobile/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  388. package/mobile/dist/components/CreditCardForm/getInitialFormState.js +27 -0
  389. package/mobile/dist/components/CreditCardForm/getInitialFormState.js.map +1 -0
  390. package/mobile/dist/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  391. package/mobile/dist/components/CreditCardForm/getSecondStepData.js +35 -0
  392. package/mobile/dist/components/CreditCardForm/getSecondStepData.js.map +1 -0
  393. package/mobile/dist/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  394. package/mobile/dist/components/CreditCardForm/getThirdStepData.js +28 -0
  395. package/mobile/dist/components/CreditCardForm/getThirdStepData.js.map +1 -0
  396. package/mobile/dist/components/CreditCardForm/renderInfo.d.ts +3 -0
  397. package/mobile/dist/components/CreditCardForm/renderInfo.js +12 -0
  398. package/mobile/dist/components/CreditCardForm/renderInfo.js.map +1 -0
  399. package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +3 -0
  400. package/mobile/dist/components/CreditCardForm/renderInputs.js +6 -0
  401. package/mobile/dist/components/CreditCardForm/renderInputs.js.map +1 -0
  402. package/mobile/dist/components/CreditCardForm/renderStep.d.ts +13 -0
  403. package/mobile/dist/components/CreditCardForm/renderStep.js +19 -0
  404. package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -0
  405. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  406. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +46 -0
  407. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  408. package/mobile/dist/components/CreditForm/CreditForm.js +2 -0
  409. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
  410. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +8 -7
  411. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  412. package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +1 -1
  413. package/mobile/dist/components/CreditForm/FailedStatusContent.js +1 -1
  414. package/mobile/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
  415. package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +1 -1
  416. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +1 -1
  417. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  418. package/mobile/dist/hooks/useInterval.d.ts +1 -0
  419. package/mobile/dist/hooks/useInterval.js +14 -0
  420. package/mobile/dist/hooks/useInterval.js.map +1 -0
  421. package/mobile/dist/model/InputSectionsType.d.ts +9 -1
  422. package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js +6 -5
  423. package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  424. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  425. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js +9 -0
  426. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  427. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  428. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.js +13 -0
  429. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  430. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js +6 -5
  431. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  432. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  433. package/mobile/dist/ui-kit/FormField/getField.js +5 -0
  434. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  435. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +6 -1
  436. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  437. package/mobile/lib/api/RetailAPI/doRequest.js +1 -0
  438. package/mobile/lib/api/RetailAPI/doRequest.js.map +1 -1
  439. package/mobile/lib/api/RetailAPI/getTaskStatus.d.ts +1 -1
  440. package/mobile/lib/api/RetailAPI/getTaskStatus.js.map +1 -1
  441. package/mobile/lib/api/RetailAPI/updateRefreshToken.d.ts +1 -0
  442. package/mobile/lib/api/RetailAPI/updateRefreshToken.js +28 -0
  443. package/mobile/lib/api/RetailAPI/updateRefreshToken.js.map +1 -0
  444. package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +4 -0
  445. package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  446. package/mobile/lib/api/dadataHints/hintsListsOptions.js +1 -0
  447. package/mobile/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
  448. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  449. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  450. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  451. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  452. package/mobile/lib/components/Blocks.js +2 -0
  453. package/mobile/lib/components/Blocks.js.map +1 -1
  454. package/mobile/lib/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  455. package/mobile/lib/components/CreditCardForm/CreditCardForm.js +32 -0
  456. package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -0
  457. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  458. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.js +2 -0
  459. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  460. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  461. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.js +9 -0
  462. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  463. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  464. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js +23 -0
  465. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  466. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  467. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +41 -0
  468. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  469. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  470. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +39 -0
  471. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  472. package/mobile/lib/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  473. package/mobile/lib/components/CreditCardForm/FailedStatusContent.js +5 -0
  474. package/mobile/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  475. package/mobile/lib/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  476. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js +30 -0
  477. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  478. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  479. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js +23 -0
  480. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  481. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  482. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +9 -0
  483. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  484. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  485. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js +30 -0
  486. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  487. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  488. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +308 -0
  489. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  490. package/mobile/lib/components/CreditCardForm/formStateMap.d.ts +74 -0
  491. package/mobile/lib/components/CreditCardForm/formStateMap.js +91 -0
  492. package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -0
  493. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  494. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +51 -0
  495. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  496. package/mobile/lib/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  497. package/mobile/lib/components/CreditCardForm/getFifthStepData.js +10 -0
  498. package/mobile/lib/components/CreditCardForm/getFifthStepData.js.map +1 -0
  499. package/mobile/lib/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  500. package/mobile/lib/components/CreditCardForm/getFirstStepData.js +10 -0
  501. package/mobile/lib/components/CreditCardForm/getFirstStepData.js.map +1 -0
  502. package/mobile/lib/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  503. package/mobile/lib/components/CreditCardForm/getFourthStepData.js +16 -0
  504. package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -0
  505. package/mobile/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  506. package/mobile/lib/components/CreditCardForm/getInitialFormState.js +24 -0
  507. package/mobile/lib/components/CreditCardForm/getInitialFormState.js.map +1 -0
  508. package/mobile/lib/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  509. package/mobile/lib/components/CreditCardForm/getSecondStepData.js +32 -0
  510. package/mobile/lib/components/CreditCardForm/getSecondStepData.js.map +1 -0
  511. package/mobile/lib/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  512. package/mobile/lib/components/CreditCardForm/getThirdStepData.js +25 -0
  513. package/mobile/lib/components/CreditCardForm/getThirdStepData.js.map +1 -0
  514. package/mobile/lib/components/CreditCardForm/renderInfo.d.ts +3 -0
  515. package/mobile/lib/components/CreditCardForm/renderInfo.js +9 -0
  516. package/mobile/lib/components/CreditCardForm/renderInfo.js.map +1 -0
  517. package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +3 -0
  518. package/mobile/lib/components/CreditCardForm/renderInputs.js +3 -0
  519. package/mobile/lib/components/CreditCardForm/renderInputs.js.map +1 -0
  520. package/mobile/lib/components/CreditCardForm/renderStep.d.ts +13 -0
  521. package/mobile/lib/components/CreditCardForm/renderStep.js +16 -0
  522. package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -0
  523. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  524. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +43 -0
  525. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  526. package/mobile/lib/components/CreditForm/CreditForm.js +3 -1
  527. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
  528. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +8 -7
  529. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  530. package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +1 -1
  531. package/mobile/lib/components/CreditForm/FailedStatusContent.js +1 -1
  532. package/mobile/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
  533. package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +1 -1
  534. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +1 -1
  535. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  536. package/mobile/lib/hooks/useInterval.d.ts +1 -0
  537. package/mobile/lib/hooks/useInterval.js +11 -0
  538. package/mobile/lib/hooks/useInterval.js.map +1 -0
  539. package/mobile/lib/model/InputSectionsType.d.ts +9 -1
  540. package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js +7 -6
  541. package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  542. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  543. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js +7 -0
  544. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  545. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  546. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.js +11 -0
  547. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  548. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js +7 -6
  549. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  550. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  551. package/mobile/lib/ui-kit/FormField/getField.js +5 -0
  552. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  553. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +6 -1
  554. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  555. package/mobile/src/api/RetailAPI/doRequest.ts +1 -0
  556. package/mobile/src/api/RetailAPI/getTaskStatus.ts +1 -1
  557. package/mobile/src/api/RetailAPI/updateRefreshToken.ts +42 -0
  558. package/mobile/src/api/RetailAPI/updateUserTask.ts +4 -0
  559. package/mobile/src/api/dadataHints/hintsListsOptions.ts +1 -0
  560. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +0 -11
  561. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -0
  562. package/mobile/src/components/Blocks.ts +2 -0
  563. package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +69 -0
  564. package/mobile/src/components/CreditCardForm/CreditCardFormContent.ts +27 -0
  565. package/mobile/src/components/CreditCardForm/CreditCardFormProgress.tsx +27 -0
  566. package/mobile/src/components/CreditCardForm/CreditCardFormStatus.tsx +119 -0
  567. package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +48 -0
  568. package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +66 -0
  569. package/mobile/src/components/CreditCardForm/FailedStatusContent.tsx +10 -0
  570. package/mobile/src/components/CreditCardForm/PendingStatusContent.tsx +38 -0
  571. package/mobile/src/components/CreditCardForm/ReworkStatusContent.tsx +32 -0
  572. package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +29 -0
  573. package/mobile/src/components/CreditCardForm/SuccessStatusContent.tsx +37 -0
  574. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +310 -0
  575. package/mobile/src/components/CreditCardForm/formStateMap.tsx +165 -0
  576. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +68 -0
  577. package/mobile/src/components/CreditCardForm/getFifthStepData.ts +13 -0
  578. package/mobile/src/components/CreditCardForm/getFirstStepData.tsx +13 -0
  579. package/mobile/src/components/CreditCardForm/getFourthStepData.ts +27 -0
  580. package/mobile/src/components/CreditCardForm/getInitialFormState.tsx +28 -0
  581. package/mobile/src/components/CreditCardForm/getSecondStepData.tsx +54 -0
  582. package/mobile/src/components/CreditCardForm/getThirdStepData.tsx +44 -0
  583. package/mobile/src/components/CreditCardForm/renderInfo.tsx +10 -0
  584. package/mobile/src/components/CreditCardForm/renderInputs.tsx +5 -0
  585. package/mobile/src/components/CreditCardForm/renderStep.tsx +43 -0
  586. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +75 -0
  587. package/mobile/src/components/CreditForm/CreditForm.tsx +6 -5
  588. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +4 -2
  589. package/mobile/src/components/CreditForm/CreditFormStep.tsx +1 -1
  590. package/mobile/src/components/CreditForm/FailedStatusContent.tsx +1 -2
  591. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +1 -1
  592. package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +1 -1
  593. package/mobile/src/hooks/useInterval.ts +14 -0
  594. package/mobile/src/model/InputSectionsType.ts +13 -1
  595. package/mobile/src/ui-kit/FormField/Fields/CurrencyField.tsx +14 -15
  596. package/mobile/src/ui-kit/FormField/Fields/DeliveryDateFiels.tsx +12 -0
  597. package/mobile/src/ui-kit/FormField/Fields/MethodObtainField.tsx +19 -0
  598. package/mobile/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -16
  599. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +3 -0
  600. package/mobile/src/ui-kit/FormField/getField.tsx +6 -0
  601. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +6 -1
  602. package/package.json +2 -2
  603. package/src/api/RetailAPI/doRequest.ts +1 -0
  604. package/src/api/RetailAPI/getTaskStatus.ts +1 -1
  605. package/src/api/RetailAPI/updateRefreshToken.ts +42 -0
  606. package/src/api/RetailAPI/updateUserTask.ts +4 -0
  607. package/src/api/dadataHints/hintsListsOptions.ts +1 -0
  608. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +0 -11
  609. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -0
  610. package/src/components/Blocks.mobile.ts +2 -0
  611. package/src/components/Blocks.ts +2 -0
  612. package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +14 -0
  613. package/src/components/CreditCardForm/CreditCardForm.tsx +69 -0
  614. package/src/components/CreditCardForm/CreditCardFormContent.ts +27 -0
  615. package/src/components/CreditCardForm/CreditCardFormProgress.tsx +27 -0
  616. package/src/components/CreditCardForm/CreditCardFormStatus.tsx +119 -0
  617. package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +48 -0
  618. package/src/components/CreditCardForm/CreditCardFormStep.tsx +66 -0
  619. package/src/components/CreditCardForm/FailedStatusContent.tsx +10 -0
  620. package/src/components/CreditCardForm/PendingStatusContent.tsx +38 -0
  621. package/src/components/CreditCardForm/ReworkStatusContent.tsx +32 -0
  622. package/src/components/CreditCardForm/StepsNavigationButtons.tsx +29 -0
  623. package/src/components/CreditCardForm/SuccessStatusContent.tsx +37 -0
  624. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +310 -0
  625. package/src/components/CreditCardForm/formStateMap.tsx +165 -0
  626. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +68 -0
  627. package/src/components/CreditCardForm/getFifthStepData.ts +13 -0
  628. package/src/components/CreditCardForm/getFirstStepData.tsx +13 -0
  629. package/src/components/CreditCardForm/getFourthStepData.ts +27 -0
  630. package/src/components/CreditCardForm/getInitialFormState.tsx +28 -0
  631. package/src/components/CreditCardForm/getSecondStepData.tsx +54 -0
  632. package/src/components/CreditCardForm/getThirdStepData.tsx +44 -0
  633. package/src/components/CreditCardForm/renderInfo.tsx +10 -0
  634. package/src/components/CreditCardForm/renderInputs.tsx +5 -0
  635. package/src/components/CreditCardForm/renderStep.tsx +43 -0
  636. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +75 -0
  637. package/src/components/CreditForm/CreditForm.fixture.tsx +7 -0
  638. package/src/components/CreditForm/CreditForm.tsx +6 -5
  639. package/src/components/CreditForm/CreditFormStatusTracker.tsx +4 -2
  640. package/src/components/CreditForm/CreditFormStep.tsx +1 -1
  641. package/src/components/CreditForm/FailedStatusContent.tsx +1 -2
  642. package/src/components/CreditForm/creditFormStepsData.tsx +1 -1
  643. package/src/components/CreditForm/getCreditFormTaskData.ts +1 -1
  644. package/src/hooks/useInterval.ts +14 -0
  645. package/src/model/InputSectionsType.ts +13 -1
  646. package/src/ui-kit/FormField/Fields/CurrencyField.tsx +14 -15
  647. package/src/ui-kit/FormField/Fields/DeliveryDateFiels.tsx +12 -0
  648. package/src/ui-kit/FormField/Fields/MethodObtainField.tsx +19 -0
  649. package/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -16
  650. package/src/ui-kit/FormField/NameFieldDef.ts +3 -0
  651. package/src/ui-kit/FormField/getField.tsx +6 -0
  652. package/src/ui-kit/FormField/getObjectValidator.tsx +6 -1
@@ -1255,6 +1255,7 @@
1255
1255
  addressRegistration: ADDRESS_HINTS_LIST_OPTIONS,
1256
1256
  addressFact: ADDRESS_HINTS_LIST_OPTIONS,
1257
1257
  organizationAddress: ADDRESS_HINTS_LIST_OPTIONS,
1258
+ addressCourier: ADDRESS_HINTS_LIST_OPTIONS,
1258
1259
  };
1259
1260
 
1260
1261
  const debounce = (fn, delay = 600) => {
@@ -1533,6 +1534,8 @@
1533
1534
  sex: defaultValidator('Укажите свой пол'),
1534
1535
  addressRegistration: addressDaDataValidator(),
1535
1536
  organizationAddress: addressDaDataValidator(),
1537
+ deliveryDate: defaultValidator('Укажите дату доставки'),
1538
+ addressCourier: addressDaDataValidator(),
1536
1539
  participantDateRegistration: defaultValidator('Укажите дату регистрации'),
1537
1540
  retirementIncome: defaultValidator(),
1538
1541
  otherIncome: defaultValidator(),
@@ -1547,7 +1550,10 @@
1547
1550
  regionRetail: defaultSelectValidator('Выберите филиал банка'),
1548
1551
  addressRetail: defaultSelectValidator('Выберите адрес банка'),
1549
1552
  addressMatch: defaultValidator(),
1550
- codeWord: codeWordValidator('Необходимо ввести кодовое слово'),
1553
+ codeWord: codeWordValidator('Необходимо ввести кодовое слово латиницей'),
1554
+ currency: defaultValidator(),
1555
+ paymentSystem: defaultValidator(),
1556
+ cardCategory: defaultSelectValidator(),
1551
1557
  confirmationIncome: defaultValidator(),
1552
1558
  };
1553
1559
  const getObjectValidator = (inputs) => {
@@ -2263,6 +2269,7 @@
2263
2269
  credentials: 'include',
2264
2270
  body: body ? JSON.stringify(body) : null,
2265
2271
  });
2272
+ // TODO: add error handling
2266
2273
  return isJSON(response) ? response.json() : response;
2267
2274
  }
2268
2275
  // TODO: Need delete isJSON
@@ -2321,12 +2328,16 @@
2321
2328
  };
2322
2329
  const RadioButtonGroup = JSX(({ label, items, value, className, onChange: onChangeCheckedItem, disabled = false, orientation = 'horizontal', }) => (jsxs("div", { className: "grid gap-xs whitespace-nowrap", children: [label ? (jsx("div", { role: "radiogroup", "aria-label": label, children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: label }) })) : null, jsx("div", { className: style('flex flex-col gap-s', orientationStyleMap[orientation], className), role: "radiogroup", "aria-label": "\u0413\u0440\u0443\u043F\u043F\u0430 \u043A\u043D\u043E\u043F\u043E\u043A", children: items?.map(({ id, text }) => (jsx(Checkbox, { isRadio: true, text: text, value: value === id, onChange: () => onChangeCheckedItem && onChangeCheckedItem(id), disabled: disabled }, String(id)))) })] })));
2323
2330
 
2331
+ 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)] })));
2332
+
2324
2333
  const CURRENCY_TYPES = [{ id: 'rub', text: 'Рубль' }];
2325
- const CurrencyField = JSX(({ field }) => {
2326
- const { value } = field('currency');
2327
- return (jsxs("div", { className: "", children: [jsx(Text, { font: "font-light", children: "\u0412\u0430\u043B\u044E\u0442\u0430 \u0434\u0435\u0431\u0435\u0442\u043E\u0432\u043E\u0439 \u043A\u0430\u0440\u0442\u044B" }), jsx("div", { className: "py-m gap-m grid @xl:flex @xl:items-center", children: jsx(RadioButtonGroup, { className: "whitespace-normal", orientation: "horizontal", items: CURRENCY_TYPES, value: value ?? 'rub' }) })] }));
2334
+ const CurrencyField = JSX(({ field, input }) => {
2335
+ const { value, onChange } = field('currency');
2336
+ return (jsx(RadioButtonGroupControl, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", orientation: "horizontal", items: CURRENCY_TYPES, value: value, onChange: (_) => onChange?.(_), ...getValidation(field('currency'), validatorObj.currency, input?.required) }));
2328
2337
  });
2329
2338
 
2339
+ const DeliveryDateFiels = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438", ...getValidation(field('deliveryDate'), validatorObj.deliveryDate, input?.required) })));
2340
+
2330
2341
  const DependentsField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0436\u0434\u0438\u0432\u0435\u043D\u0446\u0435\u0432", placeholder: "\u0417\u0430 \u0438\u0441\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0434\u0435\u0442\u0435\u0439 \u0434\u043E 18 \u043B\u0435\u0442", type: "number", inputLength: 2, ...getValidation(field('dependents'), validatorObj.dependents, input?.required), ...input })));
2331
2342
 
2332
2343
  const DesiredMeetingDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0416\u0435\u043B\u0430\u0435\u043C\u0430\u044F \u0434\u0430\u0442\u0430 \u0432\u0441\u0442\u0440\u0435\u0447\u0438", ...getValidation(field('desiredMeetingDate'), validatorObj.meetingDay, input?.required) })));
@@ -2468,6 +2479,12 @@
2468
2479
 
2469
2480
  const MandatoryIncomeField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0421\u043E\u0432\u043E\u043A\u0443\u043F\u043D\u044B\u0439 \u0434\u043E\u0445\u043E\u0434 \u0432 \u043C\u0435\u0441\u044F\u0446 \u043F\u043E\u0441\u043B\u0435 \u0432\u044B\u0447\u0435\u0442\u0430 \u043D\u0430\u043B\u043E\u0433\u043E\u0432 (\u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0430, \u043F\u0440\u0435\u043C\u0438\u0438)", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('mandatoryIncome'), validatorObj.mandatoryIncome, input?.required), ...input })));
2470
2481
 
2482
+ const METHODS_OF_OBTAIN = [
2483
+ { id: 'office', text: 'В отделении Банка' },
2484
+ { id: 'courier', text: 'Курьерская доставка' },
2485
+ ];
2486
+ const MethodObtainField = JSX(({ field, input }) => (jsx(RadioButtonGroupControl, { orientation: "horizontal", items: METHODS_OF_OBTAIN, ...getValidation(field('methodObtain'), validatorObj.methodObtain, input?.required) })));
2487
+
2471
2488
  const MiddleNameField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", inputLength: 60, disabled: input?.filledByEsia && isEsiaAuthorize(field), ...getValidation(field('middleName'), validatorObj.middleName), ...input })));
2472
2489
 
2473
2490
  const NameField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0418\u043C\u044F", inputLength: 60, disabled: input?.filledByEsia && isEsiaAuthorize(field), ...getValidation(field('name'), validatorObj.name, input?.required), ...input })));
@@ -2515,12 +2532,12 @@
2515
2532
  { id: 'mir', text: 'Карта МИР' },
2516
2533
  { id: 'union_pay', text: 'UnionPay' },
2517
2534
  { id: 'payment_system_j', text: 'Платежная система (Дж)' },
2518
- { id: 'payment_system_b', text: 'Платежная система (B)* ' },
2535
+ { id: 'payment_system_b', text: 'Платежная система (B) ' },
2519
2536
  { id: 'free_card', text: 'Бесплатная карта' },
2520
2537
  ];
2521
- const PaymentSystemField = JSX(({ field }) => {
2538
+ const PaymentSystemField = JSX(({ field, input }) => {
2522
2539
  const { value, onChange } = field('paymentSystem');
2523
- return (jsxs("div", { className: "", children: [jsx(Text, { font: "font-light", children: "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430" }), jsx("div", { className: "py-m gap-m grid @xl:flex @xl:items-center", children: jsx(RadioButtonGroup, { className: "whitespace-normal", orientation: "horizontal", items: PAYMENT_SYSTEM_TYPES, value: value ?? 'mir', onChange: (_) => onChange && onChange(_) }) })] }));
2540
+ return (jsx(RadioButtonGroupControl, { label: "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430", orientation: "horizontal", items: PAYMENT_SYSTEM_TYPES, value: value, onChange: (_) => onChange?.(_), ...getValidation(field('paymentSystem'), validatorObj.paymentSystem, input?.required) }));
2524
2541
  });
2525
2542
 
2526
2543
  const isPlaceholder = (_) => _ === '_';
@@ -3255,8 +3272,6 @@
3255
3272
 
3256
3273
  const ServiceDirectionField = JSX(({ field, input }) => (jsx(SelectControl, { label: "\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435", options: SERVICE_DIRECTIONS, ...getValidation(field('serviceDirection'), validatorObj.serviceDirection, input?.required) })));
3257
3274
 
3258
- 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)] })));
3259
-
3260
3275
  const SEX_TYPES = [
3261
3276
  { id: 'male', text: 'Мужской' },
3262
3277
  { id: 'female', text: 'Женский' },
@@ -3393,6 +3408,7 @@
3393
3408
  dulSubdivisionCode: jsx(DulSubdivisionCodeField, { field: field, input: input }),
3394
3409
  dulIssuedBy: jsx(DulIssuedByField, { field: field, input: input }),
3395
3410
  addressRegistration: jsx(AddressField, { field: field, input: input }),
3411
+ addressCourier: jsx(AddressField, { field: field, input: input }),
3396
3412
  participantDateRegistration: jsx(ParticipantDateRegistrationField, { field: field, input: input }),
3397
3413
  retirementIncome: jsx(RetirementIncomeField, { field: field, input: input }),
3398
3414
  otherIncome: jsx(OtherIncomeField, { field: field, input: input }),
@@ -3413,6 +3429,8 @@
3413
3429
  cardCategory: jsx(CardCategoryField, { field: field, input: input }),
3414
3430
  codeWord: jsx(CodeWordField, { field: field, input: input }),
3415
3431
  confirmationIncome: jsx(ConfirmationIncomeField, { field: field, input: input }),
3432
+ methodObtain: jsx(MethodObtainField, { field: field, input: input }),
3433
+ deliveryDate: jsx(DeliveryDateFiels, { field: field, input: input }),
3416
3434
  };
3417
3435
  return isRenderField({ input, field }) ? (jsx("div", { children: InputsMap[input?.name || ''] }, String(i))) : null;
3418
3436
  };
@@ -3506,7 +3524,7 @@
3506
3524
  consentToReceiveMaterials: false,
3507
3525
  consentDataProcessing: false,
3508
3526
  };
3509
- const getInitialFormState$2 = (inputs, typeForm = '') => {
3527
+ const getInitialFormState$3 = (inputs, typeForm = '') => {
3510
3528
  const formState = Object.fromEntries(inputs.map((_) => [
3511
3529
  _.name,
3512
3530
  (_.fieldType === 'ved' && _?.defaultValue) || initialFormState$1[_.name || ''],
@@ -3531,7 +3549,7 @@
3531
3549
  // eslint-disable-next-line max-lines-per-function
3532
3550
  ({ className, title, typeForm = '', sections = [], button, link, endpoint, additionalParams, isContacts, data, ...rest }) => {
3533
3551
  const inputs = (sections?.flatMap((_) => _?.inputs) || []);
3534
- const initialFormState = getInitialFormState$2(inputs, typeForm);
3552
+ const initialFormState = getInitialFormState$3(inputs, typeForm);
3535
3553
  const [responseType, setResponseType] = useState('');
3536
3554
  const responseTypeDialog = useResponseTypeDialog({ typeForm });
3537
3555
  const handleSubmit = useCallback(async (formData, ev) => {
@@ -3596,7 +3614,7 @@
3596
3614
  });
3597
3615
  const renderGeneralCheckbox = (generalCheckBox) => (foldableData) => (jsxs("div", { className: "flex items-start", children: [generalCheckBox, jsx("button", { onClick: foldableData.onToggle, className: "px-m py-2xs", type: "button", children: jsx(Icon, { className: "text-primary-text", name: foldableData.isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" }) })] }));
3598
3616
 
3599
- const renderInputs$1 = ({ field, typeForm = '', inputs, isRetailForm = false, }) => {
3617
+ const renderInputs$2 = ({ field, typeForm = '', inputs, isRetailForm = false, }) => {
3600
3618
  const { consentInputs, restInputs } = splitInputs(inputs || []);
3601
3619
  return consentInputs.length > 2 ? (jsxs("div", { children: [restInputs.map(getField(field, typeForm, isRetailForm)), jsx(GroupedConsents, { inputs: consentInputs, field: field })] })) : ((inputs || [])?.map(getField(field, typeForm, isRetailForm)));
3602
3620
  };
@@ -3638,8 +3656,12 @@
3638
3656
  consentInformFlg: false,
3639
3657
  addressRegistration: '',
3640
3658
  participantDateRegistration: undefined,
3659
+ currency: '',
3660
+ paymentSystem: '',
3661
+ cardCategory: { key: '', text: '' },
3662
+ codeWord: '',
3641
3663
  };
3642
- const getInitialFormState$1 = (inputs, savedForm, typeForm = '') => {
3664
+ const getInitialFormState$2 = (inputs, savedForm, typeForm = '') => {
3643
3665
  if (savedForm) {
3644
3666
  const formStateCopy = { ...savedForm };
3645
3667
  formStateCopy.birthday = new Date(formStateCopy?.birthday || 0);
@@ -4295,7 +4317,7 @@
4295
4317
  const [responseType, setResponseType] = useState('');
4296
4318
  const { isLoading } = useInitApplicationLead(nextStepLink);
4297
4319
  const [leadForm, setLeadForm] = useLocalStorage('leadForm');
4298
- const initialFormState = getInitialFormState$1(inputs, leadForm);
4320
+ const initialFormState = getInitialFormState$2(inputs, leadForm);
4299
4321
  const { handleSubmit, responseStatus } = useApplicationLeadApi({
4300
4322
  inputs,
4301
4323
  programId,
@@ -4313,7 +4335,7 @@
4313
4335
  reset();
4314
4336
  }
4315
4337
  }, [responseType]);
4316
- 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, sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$1({ field, inputs: _?.inputs, isRetailForm: true })] }, `section-${i}`))), renderSubmitButton(button)] }) }));
4338
+ 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, sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [renderTitle(_.title), renderInputs$2({ field, inputs: _?.inputs, isRetailForm: true })] }, `section-${i}`))), renderSubmitButton(button)] }) }));
4317
4339
  });
4318
4340
 
4319
4341
  const NotFound = JSX(({ title, description }) => {
@@ -5928,9 +5950,9 @@
5928
5950
 
5929
5951
  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] })] })));
5930
5952
 
5931
- const CreditFormProgress = JSX(({ step = 1, totalSteps = 5, stepsTitles = [] }) => {
5932
- const progress = useMemo(() => (step / totalSteps) * 100, [step, totalSteps]);
5933
- return (jsx("div", { className: "py-lg px-5xl bg-white col-span-12", children: jsxs("div", { children: [jsxs("span", { className: "font-bold mr-s", children: ["\u0428\u0430\u0433 ", step, " \u0438\u0437 ", totalSteps, "."] }), stepsTitles[step] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }) }));
5953
+ const CreditCardFormProgress = JSX(({ step = 1, totalSteps = 6, stepsTitles = [] }) => {
5954
+ const progress = useMemo(() => ((step + 1) / totalSteps) * 100, [step, totalSteps]);
5955
+ return (jsx("div", { className: "py-lg px-5xl bg-white col-span-12", children: jsxs("div", { children: [jsxs("span", { className: "font-bold mr-s", children: ["\u0428\u0430\u0433 ", step + 1, " \u0438\u0437 ", totalSteps, "."] }), stepsTitles[step] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }) }));
5934
5956
  });
5935
5957
 
5936
5958
  var STATUS_TYPE;
@@ -5954,23 +5976,23 @@
5954
5976
  } }), jsx("div", { className: "z-10 flex items-center justify-center px-4 py-2 rounded-full w-20 h-20 bg-white text-primary-text text-m", children: jsx(Timer, { interval: interval, time: time, setTime: setTime }) })] }), __html ? jsx(RichText, { __html: __html }) : null] })] }));
5955
5977
  });
5956
5978
 
5957
- const CreditFormStatus = JSX(({ title, description: dsc, infoCard, sectionInfoTitle, sectionInfo, sectionAdditionalTitle, sectionInfoAdditional, buttonText, interval, ...props }) => (jsxs(BlockWrapper, { ...props, children: [jsxs("div", { className: "flex flex-col md:flex-row items-center", children: [jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }), interval ? jsx(TimerCircle, { interval: interval }) : null] }), jsx(SectionInfo, { title: sectionInfoTitle, items: sectionInfo }), jsx(SectionInfo, { title: sectionAdditionalTitle, items: sectionInfoAdditional, countColumns: true }), infoCard?.__html ? (jsx(InfoCard, { __html: infoCard?.__html, icon: infoCard?.icon, link: {
5979
+ const CreditCardFormStatus = JSX(({ title, description: dsc, infoCard, sectionInfoTitle, sectionInfo, sectionAdditionalTitle, sectionInfoAdditional, buttonText, interval, ...props }) => (jsxs(BlockWrapper, { ...props, children: [jsxs("div", { className: "flex flex-col md:flex-row items-center", children: [jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }), interval ? jsx(TimerCircle, { interval: interval }) : null] }), jsx(SectionInfo$1, { title: sectionInfoTitle, items: sectionInfo }), jsx(SectionInfo$1, { title: sectionAdditionalTitle, items: sectionInfoAdditional, countColumns: true }), infoCard?.__html ? (jsx(InfoCard, { __html: infoCard?.__html, icon: infoCard?.icon, link: {
5958
5980
  text: infoCard?.link?.text,
5959
5981
  } })) : null, buttonText ? (jsx(LinkButton, { href: "/natural", text: buttonText, version: "primary", className: "w-full mt-lg" })) : null] })));
5960
- const SectionInfo = ({ title, items, countColumns = false, }) => {
5982
+ const SectionInfo$1 = ({ title, items, countColumns = false, }) => {
5961
5983
  const isMobile = useMobileMode();
5962
5984
  if (!items) {
5963
5985
  return null;
5964
5986
  }
5965
- return (jsxs("div", { children: [jsx("hr", { className: "w-full h-px bg-main-gray border-0" }), jsxs("div", { className: "p-xl", children: [title ? (jsx(Text, { color: "text-primary-text", size: "text-h5", children: jsx("div", { className: style({ 'mb-m': Boolean(title) }), children: title }) })) : null, items ? (jsx("div", { className: style('grid grid-cols-1 gap-m', inputColumnStyles(countColumns || isMobile ? 1 : 2)), children: items.map((item, index) => (jsx("div", { children: renderItem(item) }, index))) })) : null] })] }));
5987
+ return (jsxs("div", { children: [jsx("hr", { className: "w-full h-px bg-main-gray border-0" }), jsxs("div", { className: "p-xl", children: [title ? (jsx(Text, { color: "text-primary-text", size: "text-h5", children: jsx("div", { className: style({ 'mb-m': Boolean(title) }), children: title }) })) : null, items ? (jsx("div", { className: style('grid grid-cols-1 gap-m', inputColumnStyles(countColumns || isMobile ? 1 : 2)), children: items.map((item, index) => (jsx("div", { children: renderItem$1(item) }, index))) })) : null] })] }));
5966
5988
  };
5967
- const renderItem = ({ label, description }) => (jsxs("div", { className: "flex flex-col", children: [jsx(Text, { color: "text-secondary-text", size: "text-l", children: label }), jsx(Text, { color: "text-primary-text", size: "text-xl", children: description })] }));
5989
+ const renderItem$1 = ({ label, description }) => (jsxs("div", { className: "flex flex-col", children: [jsx(Text, { color: "text-secondary-text", size: "text-l", children: label }), jsx(Text, { color: "text-primary-text", size: "text-xl", children: description })] }));
5968
5990
 
5969
- const FailedStatusContent = JSX(() => (jsx(CreditFormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0412\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435", description: "\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u0411\u0430\u043D\u043A \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u043E\u0434\u043E\u0431\u0440\u0438\u0442\u044C \u0412\u0430\u0448\u0443 \u0437\u0430\u044F\u0432\u043A\u0443 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442.\n \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0434\u0430\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443 \u043F\u043E\u0437\u0436\u0435. \u0421\u043F\u0430\u0441\u0438\u0431\u043E \u0437\u0430 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0432 \u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB.", buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })));
5991
+ const FailedStatusContent$1 = JSX(() => (jsx(CreditCardFormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0412\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435", description: "\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u0411\u0430\u043D\u043A \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u043E\u0434\u043E\u0431\u0440\u0438\u0442\u044C \u0412\u0430\u0448\u0443 \u0437\u0430\u044F\u0432\u043A\u0443 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0434\u0430\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443 \u043F\u043E\u0437\u0436\u0435. \u0421\u043F\u0430\u0441\u0438\u0431\u043E \u0437\u0430 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0432 \u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB.", buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })));
5970
5992
 
5971
- const PendingStatusContent = JSX(() => {
5993
+ const PendingStatusContent$1 = JSX(() => {
5972
5994
  const [leadForm] = useLocalStorage('leadForm');
5973
- return (jsx(CreditFormStatus, { interval: 300, title: "\u0417\u0430\u044F\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430", description: "\u041D\u0435 \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u043E\u043A\u043D\u043E, \u0441\u043A\u043E\u0440\u043E \u0441\u043E\u043E\u0431\u0449\u0438\u043C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442", sectionInfoTitle: "\u0417\u0430\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u043E \u043A\u0440\u0435\u0434\u0438\u0442\u0443", sectionInfo: [
5995
+ return (jsx(CreditCardFormStatus, { interval: 300, title: "\u0417\u0430\u044F\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430", description: "\u041D\u0435 \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u043E\u043A\u043D\u043E, \u0441\u043A\u043E\u0440\u043E \u0441\u043E\u043E\u0431\u0449\u0438\u043C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442", sectionInfoTitle: "\u0417\u0430\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u043E \u043A\u0440\u0435\u0434\u0438\u0442\u0443", sectionInfo: [
5974
5996
  {
5975
5997
  label: 'Название продукта',
5976
5998
  description: 'Кредит на любые цели',
@@ -5994,9 +6016,9 @@
5994
6016
  ] }));
5995
6017
  });
5996
6018
 
5997
- const ReworkStatusContent = JSX(() => {
6019
+ const ReworkStatusContent$1 = JSX(() => {
5998
6020
  const [leadForm] = useLocalStorage('leadForm');
5999
- return (jsx(CreditFormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0432\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u043C \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u0432\u0440\u0435\u043C\u0435\u043D\u0438 \u0434\u043B\u044F \u043F\u0440\u0438\u043D\u044F\u0442\u0438\u044F \u0440\u0435\u0448\u0435\u043D\u0438\u044F", description: "\u041F\u043E\u0441\u0435\u0442\u0438\u0442\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430 \u0441 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u043C\u0438 \u0438 \u0442\u0430\u043A \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0435 \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0430.", sectionAdditionalTitle: "\u0412 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0438 \u0411\u0430\u043D\u043A\u0430", sectionInfoAdditional: [
6021
+ return (jsx(CreditCardFormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0432\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u043C \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u0432\u0440\u0435\u043C\u0435\u043D\u0438 \u0434\u043B\u044F \u043F\u0440\u0438\u043D\u044F\u0442\u0438\u044F \u0440\u0435\u0448\u0435\u043D\u0438\u044F", description: "\u041F\u043E\u0441\u0435\u0442\u0438\u0442\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430 \u0441 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u043C\u0438 \u0438 \u0442\u0430\u043A \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0435 \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0430.", sectionAdditionalTitle: "\u0412 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0438 \u0411\u0430\u043D\u043A\u0430", sectionInfoAdditional: [
6000
6022
  {
6001
6023
  label: 'Регион',
6002
6024
  description: leadForm?.regionRetail?.text,
@@ -6013,9 +6035,9 @@
6013
6035
  ], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
6014
6036
  });
6015
6037
 
6016
- const SuccessStatusContent = JSX(() => {
6038
+ const SuccessStatusContent$1 = JSX(() => {
6017
6039
  const [leadForm] = useLocalStorage('leadForm');
6018
- return (jsx(CreditFormStatus, { title: "\u0411\u0430\u043D\u043A \u043E\u0434\u043E\u0431\u0440\u0438\u043B \u0432\u0430\u043C \u043A\u0440\u0435\u0434\u0438\u0442", description: "\u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442 \u0432\u0430\u0448 \u043A\u0440\u0435\u0434\u0438\u0442", sectionInfo: [
6040
+ return (jsx(CreditCardFormStatus, { title: "\u0411\u0430\u043D\u043A \u043E\u0434\u043E\u0431\u0440\u0438\u043B \u0432\u0430\u043C \u043A\u0440\u0435\u0434\u0438\u0442", description: "\u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442 \u0432\u0430\u0448 \u043A\u0440\u0435\u0434\u0438\u0442", sectionInfo: [
6019
6041
  {
6020
6042
  label: 'Название продукта',
6021
6043
  description: 'Кредит на любые цели',
@@ -6039,19 +6061,18 @@
6039
6061
  ], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
6040
6062
  });
6041
6063
 
6042
- const TASK_ID = 2816419;
6043
- const SIGNAL_TYPES = [
6064
+ const SIGNAL_TYPES$1 = [
6044
6065
  'CREATE_APPLICATION_SHORT_SIGNAL',
6045
6066
  'CREATE_APPLICATION_LOAN_V3_SIGNAL',
6046
6067
  ];
6047
- const CreditFormStatusTracker = JSX(() => {
6068
+ const CreditCardFormStatusTracker = JSX(() => {
6048
6069
  const [status, setStatus] = useState(STATUS_TYPE.process);
6049
6070
  const [taskId] = useLocalStorage('taskId');
6050
6071
  useEffect(() => {
6051
- for (const signalType of SIGNAL_TYPES) {
6072
+ for (const signalType of SIGNAL_TYPES$1) {
6052
6073
  sendSignalToProcess({ signalType, taskId });
6053
6074
  }
6054
- const trackStatus = () => getTaskStatus({ taskId: TASK_ID }).then((res) => {
6075
+ const trackStatus = () => getTaskStatus({ taskId }).then((res) => {
6055
6076
  if (res.statusCd && res.statusCd !== STATUS_TYPE.process) {
6056
6077
  clearInterval(pullingInterval);
6057
6078
  setStatus(res.statusCd);
@@ -6059,27 +6080,24 @@
6059
6080
  });
6060
6081
  const pullingInterval = setInterval(trackStatus, 30000);
6061
6082
  }, []);
6062
- return renderStatus(status);
6083
+ return renderStatus$1(status);
6063
6084
  });
6064
- const renderStatus = (status) => {
6085
+ const renderStatus$1 = (status) => {
6065
6086
  const statusesMap = {
6066
- IN_PROCESS: jsx(PendingStatusContent, {}),
6067
- FAILED: jsx(FailedStatusContent, {}),
6068
- OK: jsx(SuccessStatusContent, {}),
6069
- REWORK: jsx(ReworkStatusContent, {}),
6087
+ IN_PROCESS: jsx(PendingStatusContent$1, {}),
6088
+ FAILED: jsx(FailedStatusContent$1, {}),
6089
+ OK: jsx(SuccessStatusContent$1, {}),
6090
+ REWORK: jsx(ReworkStatusContent$1, {}),
6070
6091
  };
6071
6092
  return statusesMap[status] || null;
6072
6093
  };
6073
6094
 
6074
- const formStateMap = {
6095
+ /* eslint-disable max-lines */
6096
+ const formStateMap$1 = {
6075
6097
  0: {
6076
- moneyValue: 0,
6077
- monthsValue: 0,
6078
- isAnnuity: false,
6079
- isInsurance: false,
6080
- isSalaryClient: false,
6081
- isPensionClient: false,
6082
- isStateEmployee: false,
6098
+ paymentSystem: PAYMENT_SYSTEM_TYPES[0].id,
6099
+ currency: 'rub',
6100
+ codeWord: '',
6083
6101
  },
6084
6102
  1: {
6085
6103
  surname: '',
@@ -6105,6 +6123,11 @@
6105
6123
  fiasCode: '',
6106
6124
  },
6107
6125
  housing: '',
6126
+ methodObtain: 'office',
6127
+ addressCourier: {
6128
+ fullAddress: '',
6129
+ fiasCode: '',
6130
+ },
6108
6131
  },
6109
6132
  2: {
6110
6133
  amountWorkers: { key: '', text: '' },
@@ -6131,7 +6154,6 @@
6131
6154
  familyStatus: { key: '', text: '' },
6132
6155
  dependents: undefined,
6133
6156
  familyMembers: undefined,
6134
- confirmationIncome: { key: '', text: '' },
6135
6157
  mandatoryIncome: undefined,
6136
6158
  otherPayments: undefined,
6137
6159
  snils: '',
@@ -6146,12 +6168,21 @@
6146
6168
  },
6147
6169
  5: {
6148
6170
  regionRetail: '',
6149
- addressRetail: '',
6171
+ addressRetail: {
6172
+ fullAddress: '',
6173
+ fiasCode: '',
6174
+ },
6150
6175
  bankEmployeeCode: '',
6176
+ addressCoutier: {
6177
+ fullAddress: '',
6178
+ fiasCode: '',
6179
+ },
6180
+ methodObtain: 'office',
6181
+ deliveryDate: undefined,
6151
6182
  },
6152
6183
  };
6153
6184
 
6154
- const getInitialFormState = (step, localStorageData) => {
6185
+ const getInitialFormState$1 = (step, localStorageData) => {
6155
6186
  if (localStorageData) {
6156
6187
  // TODO: Fill in for other fields with type Date
6157
6188
  // TODO: Take it out to the helper
@@ -6169,28 +6200,71 @@
6169
6200
  : undefined;
6170
6201
  }
6171
6202
  return {
6172
- ...formStateMap[step],
6203
+ ...formStateMap$1[step],
6173
6204
  ...localStorageData,
6174
6205
  };
6175
6206
  };
6176
6207
 
6177
- const renderInfo$1 = (inputs = []) => {
6208
+ const renderInfo$2 = (inputs = []) => {
6178
6209
  const infoInputs = inputs.filter((_) => _.fieldType === 'info');
6179
6210
  return infoInputs.length
6180
6211
  ? infoInputs.map(({ text, name }, i) => jsx(InfoCard, { __html: text }, `${name}_${i}`))
6181
6212
  : null;
6182
6213
  };
6183
6214
 
6184
- const renderInputs = ({ field, inputs }) => (inputs || [])?.map(getField(field, ''));
6215
+ const renderInputs$1 = ({ field, inputs }) => (inputs || [])?.map(getField(field, ''));
6185
6216
 
6186
- const renderStep = ({ sections, field }) => sections?.map(({ inputs, columns, title }, i) => (jsxs("div", { className: style(inputColumnStyles(columns), 'grid gap-x-m'), children: [renderInfo$1(inputs), renderTitle(title), renderInputs({ field, inputs })] }, `section-${i}`)));
6217
+ const renderLastStep = ({ sections, field, methodObtain }) => sections
6218
+ ?.filter(({ type }) => type === methodObtain || !type)
6219
+ .map(({ inputs, columns, title }, i) => (jsxs("div", { className: style(inputColumnStyles(columns), 'grid gap-x-m'), children: [renderInfo$2(inputs), renderTitle(title), renderInputs$1({ field, inputs })] }, `section-${i}`)));
6220
+ const renderStep$1 = ({ sections, field, isLastStep, methodObtain }) => {
6221
+ if (isLastStep) {
6222
+ return renderLastStep({ sections, field, methodObtain });
6223
+ }
6224
+ return sections?.map(({ inputs, columns, title }, i) => (jsxs("div", { className: style(inputColumnStyles(columns), 'grid gap-x-m'), children: [renderInfo$2(inputs), renderTitle(title), renderInputs$1({ field, inputs })] }, `section-${i}`)));
6225
+ };
6187
6226
 
6188
- const StepsNavigationButtons = JSX(({ step, onPrevStep }) => {
6227
+ const StepsNavigationButtons$1 = JSX(({ step, onPrevStep }) => {
6189
6228
  const isFirstStep = step === 0;
6190
- return (jsxs("div", { className: 'flex justify-between', children: [jsx(Button, { onClick: onPrevStep, className: style('w-full @xl:w-auto'), type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { className: style('w-full @xl:w-auto'), type: "submit", children: "\u0414\u0430\u043B\u0435\u0435" })] }));
6229
+ return (jsxs("div", { className: "flex justify-between gap-m", children: [jsx(Button, { onClick: onPrevStep, className: style('w-full @xl:w-auto'), type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { className: "w-full @xl:w-auto", type: "submit", children: "\u0414\u0430\u043B\u0435\u0435" })] }));
6191
6230
  });
6192
6231
 
6193
- const getFirstStepData = (formData) => {
6232
+ const getFifthStepData = (formData) => {
6233
+ const { bankruptcyFlg, shareholderFlg, legalEntityName, creditInRshbCd } = formData;
6234
+ return {
6235
+ bankruptcyFlg,
6236
+ shareholderFlg,
6237
+ nameLegalEntity: legalEntityName,
6238
+ creditInRshbCd,
6239
+ };
6240
+ };
6241
+
6242
+ const getFirstStepData$1 = (formData) => {
6243
+ const { currency, paymentSystem, cardCategory, codeWord } = formData;
6244
+ return {
6245
+ currencyCode: currency,
6246
+ paymentSystemTypeCd: paymentSystem,
6247
+ classCard: cardCategory,
6248
+ codeWord: codeWord,
6249
+ };
6250
+ };
6251
+
6252
+ const getFourthStepData$1 = (formData) => {
6253
+ const { familyStatus, dependents, familyMembers, mandatoryIncome, otherPayments, snils, armyIdFlg, } = formData;
6254
+ return {
6255
+ maritalStatusCd: familyStatus,
6256
+ totalDependents: familyMembers,
6257
+ otherDependents: dependents,
6258
+ participantIncomes: getParticipantIncomes({
6259
+ mandatoryIncome,
6260
+ otherPayments,
6261
+ }),
6262
+ snils: snils?.replaceAll(' ', ''),
6263
+ armyIdFlg,
6264
+ };
6265
+ };
6266
+
6267
+ const getSecondStepData$1 = (formData) => {
6194
6268
  const { name, surname, middleName, birthday = '', phone = '', email, sex, birthPlace, dulIssueDateField = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, } = formData;
6195
6269
  return {
6196
6270
  birthDate: formatDate(birthday, true),
@@ -6219,17 +6293,7 @@
6219
6293
  };
6220
6294
  };
6221
6295
 
6222
- const getFourthStepData = (formData) => {
6223
- const { bankruptcyFlg, shareholderFlg, legalEntityName, creditInRshbCd } = formData;
6224
- return {
6225
- bankruptcyFlg,
6226
- shareholderFlg,
6227
- nameLegalEntity: legalEntityName,
6228
- creditInRshbCd,
6229
- };
6230
- };
6231
-
6232
- const getSecondStepData = (formData) => {
6296
+ const getThirdStepData$1 = (formData) => {
6233
6297
  const { employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
6234
6298
  return {
6235
6299
  employmentTypeCd: employment,
@@ -6252,60 +6316,834 @@
6252
6316
  };
6253
6317
  };
6254
6318
 
6255
- const getThirdStepData = (formData) => {
6256
- const { familyStatus, dependents, familyMembers, confirmationIncome, mandatoryIncome, otherPayments, snils, armyIdFlg, } = formData;
6319
+ const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
6257
6320
  return {
6258
- maritalStatusCd: familyStatus,
6259
- totalDependents: familyMembers,
6260
- incomeCertificateCd: confirmationIncome,
6261
- otherDependents: dependents,
6262
- participantIncomes: getParticipantIncomes({
6263
- mandatoryIncome,
6264
- otherPayments,
6265
- }),
6266
- snils: snils?.replaceAll(' ', ''),
6267
- armyIdFlg,
6268
- };
6269
- };
6270
-
6271
- const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => ({
6272
- sendToBank: true,
6273
- taskKind: 'UNITED',
6274
- task: {
6275
- taskSource: globalThis.location.origin,
6276
- id: taskId,
6277
- //TODO: Добавить id офиса
6278
- authorizedAgentId: formData?.bankEmployeeCode,
6279
- participants: [
6280
- {
6281
- id: participantId,
6282
- profile: {
6283
- id: profileId,
6284
- },
6285
- roleCd: {
6286
- key: 'BORROWER',
6287
- value: 'Заемщик',
6321
+ sendToBank: true,
6322
+ taskKind: 'UNITED',
6323
+ task: {
6324
+ taskSource: globalThis.location.origin,
6325
+ id: taskId,
6326
+ //TODO: Добавить id офиса
6327
+ authorizedAgentId: formData?.bankEmployeeCode,
6328
+ participants: [
6329
+ {
6330
+ id: participantId,
6331
+ profile: {
6332
+ id: profileId,
6333
+ },
6334
+ roleCd: {
6335
+ key: 'BORROWER',
6336
+ value: 'Заемщик',
6337
+ },
6338
+ ...getCurrentStepData$1(step, formData),
6288
6339
  },
6289
- ...getCurrentStepData(step, formData),
6290
- },
6291
- ],
6292
- esiaAccountTypeCd: {
6293
- key: formData?.esiaAccountTypeCd?.key,
6340
+ ],
6294
6341
  },
6295
- },
6296
- });
6297
- const getCurrentStepData = (step, formData) => {
6342
+ };
6343
+ };
6344
+ const getCurrentStepData$1 = (step, formData) => {
6298
6345
  switch (step) {
6346
+ case 0:
6347
+ return getFirstStepData$1(formData);
6299
6348
  case 1:
6300
- return getFirstStepData(formData);
6349
+ return getSecondStepData$1(formData);
6301
6350
  case 2:
6302
- return getSecondStepData(formData);
6351
+ return getThirdStepData$1(formData);
6303
6352
  case 3:
6304
- return getThirdStepData(formData);
6353
+ return getFourthStepData$1(formData);
6305
6354
  case 4:
6306
- return getFourthStepData(formData);
6355
+ return getFifthStepData(formData);
6356
+ case 5:
6357
+ return {
6358
+ //TODO: Сделать адаптер данных способа получения карты
6359
+ };
6307
6360
  default:
6308
- return getFirstStepData(formData);
6361
+ return {};
6362
+ }
6363
+ };
6364
+
6365
+ const useCreditCardFormAPI = ({ step, inputs, onNextStep, saveStep, finishForm, }) => {
6366
+ const [taskId] = useLocalStorage('taskId');
6367
+ const [profileId] = useLocalStorage('profileId');
6368
+ const [participantId] = useLocalStorage('participantId');
6369
+ const handleSubmit = useCallback(async (formData) => {
6370
+ const feedbackValidator = objectValidator(getObjectValidator(calculateInputs$1(formData, inputs, step)));
6371
+ if (!isValidationSuccess(feedbackValidator(formData))) {
6372
+ return console.warn('validation fail');
6373
+ }
6374
+ saveStep(formData);
6375
+ try {
6376
+ if (taskId && profileId && participantId) {
6377
+ await updateUserTask(getCreditCardFormTaskData({
6378
+ participantId,
6379
+ taskId,
6380
+ profileId,
6381
+ step,
6382
+ formData: formData,
6383
+ }));
6384
+ }
6385
+ }
6386
+ catch (ex) {
6387
+ return 'Fail';
6388
+ }
6389
+ onNextStep();
6390
+ if (step === 5) {
6391
+ finishForm?.(true);
6392
+ }
6393
+ return 'OK';
6394
+ }, []);
6395
+ return {
6396
+ handleSubmit,
6397
+ };
6398
+ };
6399
+ const calculateInputs$1 = (formData, inputs, step) => step === 2 && 'employment' in formData && formData?.employment?.key === 'RETIREE' ? [] : inputs;
6400
+
6401
+ const CreditCardFormStep = JSX(({ step, sections, onPrevStep, onNextStep, inputs, isFormFinished, finishForm }) => {
6402
+ const [localStorageData, saveStep] = useLocalStorage('leadForm');
6403
+ const initialState = getInitialFormState$1(step, localStorageData);
6404
+ const customSubmit = useRef(undefined);
6405
+ const registerSubmit = useCallback((submit) => {
6406
+ customSubmit.current = submit;
6407
+ }, []);
6408
+ const { handleSubmit } = useCreditCardFormAPI({
6409
+ step,
6410
+ inputs,
6411
+ onNextStep,
6412
+ saveStep,
6413
+ finishForm,
6414
+ });
6415
+ const [state, { field, onSubmit }] = useForm(initialState, {
6416
+ onSubmit: (formData, ev) => {
6417
+ handleSubmit({ ...formData, ...customSubmit.current?.(ev) });
6418
+ },
6419
+ });
6420
+ const methodObtain = 'methodObtain' in state ? state.methodObtain : undefined;
6421
+ return isFormFinished ? (jsx(CreditCardFormStatusTracker, {})) : (jsxs("form", { onSubmit: onSubmit, className: "space-y-m", children: [renderStep$1({
6422
+ sections,
6423
+ field,
6424
+ registerSubmit,
6425
+ methodObtain,
6426
+ isLastStep: step === 5,
6427
+ }), jsx(StepsNavigationButtons$1, { step: step, onPrevStep: onPrevStep })] }));
6428
+ });
6429
+
6430
+ /* eslint-disable max-lines */
6431
+ /* eslint-disable max-len */
6432
+ const stepsSectionsMap$1 = [
6433
+ [
6434
+ {
6435
+ title: 'Параметры карты',
6436
+ inputs: [],
6437
+ },
6438
+ {
6439
+ inputs: [
6440
+ { fieldType: 'common', name: 'currency', required: true },
6441
+ { fieldType: 'common', name: 'paymentSystem', required: true },
6442
+ { fieldType: 'common', name: 'cardCategory', required: true },
6443
+ { fieldType: 'common', name: 'codeWord', required: true },
6444
+ ],
6445
+ },
6446
+ ],
6447
+ [
6448
+ {
6449
+ title: 'Персональные данные',
6450
+ columns: 2,
6451
+ inputs: [
6452
+ {
6453
+ fieldType: 'common',
6454
+ name: 'surname',
6455
+ required: true,
6456
+ dadata: true,
6457
+ filledByEsia: true,
6458
+ },
6459
+ { fieldType: 'common', name: 'name', required: true, dadata: true, filledByEsia: true },
6460
+ { fieldType: 'common', name: 'middleName', dadata: true, filledByEsia: true },
6461
+ { fieldType: 'common', name: 'sex', required: true },
6462
+ { fieldType: 'common', name: 'birthday', required: true, filledByEsia: true },
6463
+ { fieldType: 'common', name: 'birthPlace', required: true },
6464
+ { fieldType: 'common', name: 'phone', required: true },
6465
+ { fieldType: 'common', name: 'email', required: true, dadata: true },
6466
+ ],
6467
+ },
6468
+ {
6469
+ title: 'Паспортные данные',
6470
+ columns: 2,
6471
+ inputs: [
6472
+ { fieldType: 'common', name: 'dulSerie', required: true, filledByEsia: true },
6473
+ { fieldType: 'common', name: 'dulNumber', required: true, filledByEsia: true },
6474
+ { fieldType: 'common', name: 'dulIssueDateField', required: true, filledByEsia: true },
6475
+ {
6476
+ fieldType: 'common',
6477
+ name: 'dulSubdivisionCode',
6478
+ required: true,
6479
+ dadata: true,
6480
+ filledByEsia: true,
6481
+ },
6482
+ ],
6483
+ },
6484
+ {
6485
+ inputs: [
6486
+ {
6487
+ fieldType: 'common',
6488
+ name: 'dulIssuedBy',
6489
+ required: true,
6490
+ dadata: true,
6491
+ filledByEsia: true,
6492
+ },
6493
+ {
6494
+ fieldType: 'common',
6495
+ name: 'education',
6496
+ required: true,
6497
+ },
6498
+ ],
6499
+ },
6500
+ {
6501
+ title: 'Адрес регистрации по месту жительства',
6502
+ columns: 1,
6503
+ inputs: [],
6504
+ },
6505
+ {
6506
+ inputs: [
6507
+ {
6508
+ fieldType: 'common',
6509
+ name: 'addressRegistration',
6510
+ required: true,
6511
+ dadata: true,
6512
+ filledByEsia: true,
6513
+ },
6514
+ { fieldType: 'common', name: 'addressMatch' },
6515
+ ],
6516
+ },
6517
+ {
6518
+ columns: 2,
6519
+ inputs: [{ fieldType: 'common', name: 'participantDateRegistration', required: true }],
6520
+ },
6521
+ {
6522
+ title: 'Адрес фактического проживания (место пребывания РФ)',
6523
+ inputs: [],
6524
+ },
6525
+ {
6526
+ columns: 2,
6527
+ inputs: [{ fieldType: 'common', name: 'housing', required: true }],
6528
+ },
6529
+ {
6530
+ inputs: [{ fieldType: 'common', name: 'addressFact', required: true, dadata: true }],
6531
+ },
6532
+ ],
6533
+ [
6534
+ {
6535
+ title: 'Данные о трудоустройстве',
6536
+ inputs: [],
6537
+ },
6538
+ {
6539
+ inputs: [
6540
+ {
6541
+ fieldType: 'info',
6542
+ text: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
6543
+ },
6544
+ ],
6545
+ },
6546
+ {
6547
+ inputs: [
6548
+ { fieldType: 'common', name: 'employment' },
6549
+ { fieldType: 'common', name: 'organizationName', required: true, dadata: true },
6550
+ ],
6551
+ },
6552
+ {
6553
+ columns: 2,
6554
+ inputs: [
6555
+ { fieldType: 'common', name: 'inn', required: true, dadata: true },
6556
+ { fieldType: 'common', name: 'legalForm', required: true },
6557
+ ],
6558
+ },
6559
+ {
6560
+ inputs: [
6561
+ { fieldType: 'common', name: 'organization', required: false },
6562
+ { fieldType: 'common', name: 'amountWorkers', required: false },
6563
+ ],
6564
+ },
6565
+ {
6566
+ columns: 2,
6567
+ inputs: [
6568
+ { fieldType: 'common', name: 'employerActivities', required: false },
6569
+ { fieldType: 'common', name: 'employerOrganization', required: false },
6570
+ { fieldType: 'common', name: 'generalSeniority', required: true },
6571
+ { fieldType: 'common', name: 'lastJobExperience', required: true },
6572
+ { fieldType: 'common', name: 'experience5Years', required: true },
6573
+ { fieldType: 'common', name: 'jobsNumber', required: true },
6574
+ ],
6575
+ },
6576
+ {
6577
+ inputs: [
6578
+ {
6579
+ fieldType: 'common',
6580
+ name: 'organizationPhone',
6581
+ label: 'Телефон работодателя',
6582
+ required: true,
6583
+ },
6584
+ { fieldType: 'common', name: 'beginDate', required: true },
6585
+ ],
6586
+ },
6587
+ {
6588
+ columns: 2,
6589
+ inputs: [
6590
+ { fieldType: 'common', name: 'positionOrganization', required: false },
6591
+ { fieldType: 'common', name: 'partInBusiness', required: true },
6592
+ ],
6593
+ },
6594
+ {
6595
+ title: 'Адрес работодателя',
6596
+ inputs: [],
6597
+ },
6598
+ {
6599
+ inputs: [{ fieldType: 'common', name: 'organizationAddress', required: true, dadata: true }],
6600
+ },
6601
+ ],
6602
+ [
6603
+ {
6604
+ title: 'Семейное положение',
6605
+ },
6606
+ {
6607
+ columns: 1,
6608
+ inputs: [{ fieldType: 'common', name: 'familyStatus', required: true }],
6609
+ },
6610
+ {
6611
+ columns: 1,
6612
+ inputs: [{ fieldType: 'common', name: 'dependents', required: true }],
6613
+ },
6614
+ {
6615
+ columns: 2,
6616
+ inputs: [
6617
+ { fieldType: 'common', name: 'familyMembers' },
6618
+ { fieldType: 'common', name: 'children', required: true },
6619
+ ],
6620
+ },
6621
+ {
6622
+ title: 'Совокупный доход',
6623
+ },
6624
+ {
6625
+ inputs: [
6626
+ {
6627
+ fieldType: 'info',
6628
+ text: 'Сумма основного и дополнительных доходов после вычета налога',
6629
+ },
6630
+ ],
6631
+ },
6632
+ {
6633
+ columns: 1,
6634
+ inputs: [{ fieldType: 'common', name: 'mandatoryIncome', required: true }],
6635
+ },
6636
+ {
6637
+ columns: 1,
6638
+ inputs: [{ fieldType: 'common', name: 'otherPayments', required: true }],
6639
+ },
6640
+ {
6641
+ columns: 1,
6642
+ inputs: [{ fieldType: 'common', name: 'snils', required: true }],
6643
+ },
6644
+ {
6645
+ columns: 1,
6646
+ inputs: [{ fieldType: 'common', name: 'conscription', required: true }],
6647
+ },
6648
+ {
6649
+ columns: 2,
6650
+ inputs: [{ fieldType: 'common', name: 'armyIdFlg' }],
6651
+ },
6652
+ ],
6653
+ [
6654
+ {
6655
+ title: 'Дополнительные сведения',
6656
+ columns: 1,
6657
+ inputs: [],
6658
+ },
6659
+ {
6660
+ inputs: [{ fieldType: 'common', name: 'disablePeopleFlg' }],
6661
+ },
6662
+ {
6663
+ inputs: [{ fieldType: 'common', name: 'bankruptcyFlg' }],
6664
+ },
6665
+ {
6666
+ inputs: [{ fieldType: 'common', name: 'shareholderFlg' }],
6667
+ },
6668
+ {
6669
+ inputs: [{ fieldType: 'common', name: 'legalEntityName' }],
6670
+ },
6671
+ {
6672
+ inputs: [{ fieldType: 'common', name: 'creditInRshbCd' }],
6673
+ },
6674
+ ],
6675
+ [
6676
+ {
6677
+ title: 'Способ получения',
6678
+ columns: 1,
6679
+ inputs: [],
6680
+ },
6681
+ {
6682
+ inputs: [{ fieldType: 'common', name: 'methodObtain' }],
6683
+ },
6684
+ {
6685
+ type: 'courier',
6686
+ title: 'Адрес',
6687
+ columns: 1,
6688
+ inputs: [],
6689
+ },
6690
+ {
6691
+ type: 'courier',
6692
+ inputs: [{ fieldType: 'common', name: 'addressCourier', dadata: true }],
6693
+ },
6694
+ {
6695
+ type: 'courier',
6696
+ inputs: [{ fieldType: 'common', name: 'deliveryDate' }],
6697
+ },
6698
+ {
6699
+ type: 'courier',
6700
+ inputs: [{ fieldType: 'common', name: 'comment' }],
6701
+ },
6702
+ {
6703
+ type: 'office',
6704
+ title: 'Отделение Банка',
6705
+ columns: 1,
6706
+ inputs: [],
6707
+ },
6708
+ {
6709
+ type: 'office',
6710
+ inputs: [{ fieldType: 'common', name: 'regionRetail', required: true }],
6711
+ },
6712
+ {
6713
+ type: 'office',
6714
+ inputs: [{ fieldType: 'common', name: 'addressRetail', required: true }],
6715
+ },
6716
+ {
6717
+ type: 'office',
6718
+ title: 'Код представителя Банка',
6719
+ columns: 1,
6720
+ inputs: [],
6721
+ },
6722
+ {
6723
+ type: 'office',
6724
+ inputs: [
6725
+ {
6726
+ fieldType: 'info',
6727
+ text: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
6728
+ },
6729
+ ],
6730
+ },
6731
+ {
6732
+ type: 'office',
6733
+ inputs: [{ fieldType: 'common', name: 'bankEmployeeCode' }],
6734
+ },
6735
+ ],
6736
+ ];
6737
+
6738
+ const WIZARD_STEPS$1 = 6;
6739
+ const WIZARD_TITLES$1 = [
6740
+ 'Параметры карты',
6741
+ 'Персональные данные',
6742
+ 'Данные о трудоустройстве',
6743
+ 'Данные о доходах и расходах',
6744
+ 'Дополнительные сведения',
6745
+ 'Выбор способа получения',
6746
+ ];
6747
+ const CreditCardForm = JSX(({ className, ...rest }) => {
6748
+ const [step, setStep] = useState(0);
6749
+ const handleNextStep = useCallback(() => {
6750
+ setStep((_) => Math.min(_ + 1, WIZARD_STEPS$1));
6751
+ }, []);
6752
+ const handlePrevStep = useCallback(() => {
6753
+ //TODO search hook - 1,
6754
+ setStep((_) => Math.max(_ - 1, 0));
6755
+ }, []);
6756
+ const sections = useMemo(() => stepsSectionsMap$1[step], [step]);
6757
+ const inputs = (sections?.flatMap((_) => _?.inputs) || []);
6758
+ const [isFormFinished, setIsFormFinished] = useState(false);
6759
+ return (jsx(BlockWrapper, { className: style('bg-transparent', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "container grid grid-cols-12", children: [isFormFinished ? null : (jsx(CreditCardFormProgress, { stepsTitles: WIZARD_TITLES$1, step: step, totalSteps: WIZARD_STEPS$1 })), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: jsx(CreditCardFormStep, { step: step, inputs: inputs, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep, isFormFinished: isFormFinished, finishForm: setIsFormFinished }, String(step)) })] }) }));
6760
+ });
6761
+
6762
+ const PORTAL_NATURAL_URL = '/';
6763
+ const UPDATING_INTERVAL = 60000 * 4;
6764
+ const updateRefreshToken = () => {
6765
+ const refreshToken = globalThis.sessionStorage?.getItem('refreshToken');
6766
+ const accessToken = globalThis.sessionStorage?.getItem('accessToken');
6767
+ const taskId = globalThis.localStorage.getItem('taskId');
6768
+ if (!accessToken || !refreshToken || !taskId) {
6769
+ globalThis.location.href = PORTAL_NATURAL_URL;
6770
+ return () => null;
6771
+ }
6772
+ const timer = setInterval(async () => {
6773
+ const res = await doRequest('/auth/refresh', 'POST', {
6774
+ // eslint-disable-next-line camelcase
6775
+ refresh_token: refreshToken,
6776
+ // eslint-disable-next-line camelcase
6777
+ access_token: accessToken,
6778
+ });
6779
+ if (res instanceof Response) {
6780
+ globalThis.location.href = PORTAL_NATURAL_URL;
6781
+ return;
6782
+ }
6783
+ sessionStorage.setItem('refreshToken', res.refresh_token);
6784
+ sessionStorage.setItem('accessToken', res.access_token);
6785
+ }, UPDATING_INTERVAL);
6786
+ return () => clearInterval(timer);
6787
+ };
6788
+
6789
+ const CreditFormProgress = JSX(({ step = 1, totalSteps = 5, stepsTitles = [] }) => {
6790
+ const progress = useMemo(() => (step / totalSteps) * 100, [step, totalSteps]);
6791
+ return (jsx("div", { className: "py-lg px-5xl bg-white col-span-12", children: jsxs("div", { children: [jsxs("span", { className: "font-bold mr-s", children: ["\u0428\u0430\u0433 ", step, " \u0438\u0437 ", totalSteps, "."] }), stepsTitles[step] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }) }));
6792
+ });
6793
+
6794
+ const CreditFormStatus = JSX(({ title, description: dsc, infoCard, sectionInfoTitle, sectionInfo, sectionAdditionalTitle, sectionInfoAdditional, buttonText, interval, ...props }) => (jsxs(BlockWrapper, { ...props, children: [jsxs("div", { className: "flex flex-col md:flex-row items-center", children: [jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }), interval ? jsx(TimerCircle, { interval: interval }) : null] }), jsx(SectionInfo, { title: sectionInfoTitle, items: sectionInfo }), jsx(SectionInfo, { title: sectionAdditionalTitle, items: sectionInfoAdditional, countColumns: true }), infoCard?.__html ? (jsx(InfoCard, { __html: infoCard?.__html, icon: infoCard?.icon, link: {
6795
+ text: infoCard?.link?.text,
6796
+ } })) : null, buttonText ? (jsx(LinkButton, { href: "/natural", text: buttonText, version: "primary", className: "w-full mt-lg" })) : null] })));
6797
+ const SectionInfo = ({ title, items, countColumns = false, }) => {
6798
+ const isMobile = useMobileMode();
6799
+ if (!items) {
6800
+ return null;
6801
+ }
6802
+ return (jsxs("div", { children: [jsx("hr", { className: "w-full h-px bg-main-gray border-0" }), jsxs("div", { className: "p-xl", children: [title ? (jsx(Text, { color: "text-primary-text", size: "text-h5", children: jsx("div", { className: style({ 'mb-m': Boolean(title) }), children: title }) })) : null, items ? (jsx("div", { className: style('grid grid-cols-1 gap-m', inputColumnStyles(countColumns || isMobile ? 1 : 2)), children: items.map((item, index) => (jsx("div", { children: renderItem(item) }, index))) })) : null] })] }));
6803
+ };
6804
+ const renderItem = ({ label, description }) => (jsxs("div", { className: "flex flex-col", children: [jsx(Text, { color: "text-secondary-text", size: "text-l", children: label }), jsx(Text, { color: "text-primary-text", size: "text-xl", children: description })] }));
6805
+
6806
+ const FailedStatusContent = JSX(() => (jsx(CreditFormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0412\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435", description: "\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u0411\u0430\u043D\u043A \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u043E\u0434\u043E\u0431\u0440\u0438\u0442\u044C \u0412\u0430\u0448\u0443 \u0437\u0430\u044F\u0432\u043A\u0443 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0434\u0430\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443 \u043F\u043E\u0437\u0436\u0435. \u0421\u043F\u0430\u0441\u0438\u0431\u043E \u0437\u0430 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0432 \u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB.", buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })));
6807
+
6808
+ const PendingStatusContent = JSX(() => {
6809
+ const [leadForm] = useLocalStorage('leadForm');
6810
+ return (jsx(CreditFormStatus, { interval: 300, title: "\u0417\u0430\u044F\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430", description: "\u041D\u0435 \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u043E\u043A\u043D\u043E, \u0441\u043A\u043E\u0440\u043E \u0441\u043E\u043E\u0431\u0449\u0438\u043C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442", sectionInfoTitle: "\u0417\u0430\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u043E \u043A\u0440\u0435\u0434\u0438\u0442\u0443", sectionInfo: [
6811
+ {
6812
+ label: 'Название продукта',
6813
+ description: 'Кредит на любые цели',
6814
+ },
6815
+ {
6816
+ label: 'Цель кредита',
6817
+ description: 'На любые цели',
6818
+ },
6819
+ {
6820
+ label: 'Сумма',
6821
+ description: leadForm?.moneyValue?.toLocaleString() + ' ₽',
6822
+ },
6823
+ {
6824
+ label: 'Срок кредита',
6825
+ description: leadForm?.monthsValue + ' мес',
6826
+ },
6827
+ {
6828
+ label: 'Тип платежа',
6829
+ description: leadForm?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
6830
+ },
6831
+ ] }));
6832
+ });
6833
+
6834
+ const ReworkStatusContent = JSX(() => {
6835
+ const [leadForm] = useLocalStorage('leadForm');
6836
+ return (jsx(CreditFormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0432\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u043C \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u0432\u0440\u0435\u043C\u0435\u043D\u0438 \u0434\u043B\u044F \u043F\u0440\u0438\u043D\u044F\u0442\u0438\u044F \u0440\u0435\u0448\u0435\u043D\u0438\u044F", description: "\u041F\u043E\u0441\u0435\u0442\u0438\u0442\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430 \u0441 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u043C\u0438 \u0438 \u0442\u0430\u043A \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0435 \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0430.", sectionAdditionalTitle: "\u0412 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0438 \u0411\u0430\u043D\u043A\u0430", sectionInfoAdditional: [
6837
+ {
6838
+ label: 'Регион',
6839
+ description: leadForm?.regionRetail?.text,
6840
+ },
6841
+ {
6842
+ label: 'Адрес',
6843
+ description: leadForm?.addressRetail?.text,
6844
+ },
6845
+ ], sectionInfo: [
6846
+ {
6847
+ label: 'Основные документы:',
6848
+ description: '- Паспорт РФ',
6849
+ },
6850
+ ], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
6851
+ });
6852
+
6853
+ const SuccessStatusContent = JSX(() => {
6854
+ const [leadForm] = useLocalStorage('leadForm');
6855
+ return (jsx(CreditFormStatus, { title: "\u0411\u0430\u043D\u043A \u043E\u0434\u043E\u0431\u0440\u0438\u043B \u0432\u0430\u043C \u043A\u0440\u0435\u0434\u0438\u0442", description: "\u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442 \u0432\u0430\u0448 \u043A\u0440\u0435\u0434\u0438\u0442", sectionInfo: [
6856
+ {
6857
+ label: 'Название продукта',
6858
+ description: 'Кредит на любые цели',
6859
+ },
6860
+ {
6861
+ label: 'Ставка',
6862
+ description: '14,5%',
6863
+ },
6864
+ {
6865
+ label: 'Ежемесячный платеж',
6866
+ description: '86 052 ₽',
6867
+ },
6868
+ {
6869
+ label: 'Срок кредита',
6870
+ description: leadForm?.monthsValue + ' мес',
6871
+ },
6872
+ {
6873
+ label: 'Тип платежа',
6874
+ description: leadForm?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
6875
+ },
6876
+ ], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
6877
+ });
6878
+
6879
+ const SIGNAL_TYPES = [
6880
+ 'CREATE_APPLICATION_SHORT_SIGNAL',
6881
+ 'CREATE_APPLICATION_LOAN_V3_SIGNAL',
6882
+ ];
6883
+ const CreditFormStatusTracker = JSX(() => {
6884
+ const [status, setStatus] = useState(STATUS_TYPE.process);
6885
+ const [taskId] = useLocalStorage('taskId');
6886
+ useEffect(() => {
6887
+ for (const signalType of SIGNAL_TYPES) {
6888
+ sendSignalToProcess({ signalType, taskId });
6889
+ }
6890
+ const trackStatus = () => taskId &&
6891
+ getTaskStatus({ taskId }).then((res) => {
6892
+ if (res.statusCd && res.statusCd !== STATUS_TYPE.process) {
6893
+ clearInterval(pullingInterval);
6894
+ setStatus(res.statusCd);
6895
+ }
6896
+ });
6897
+ const pullingInterval = setInterval(trackStatus, 30000);
6898
+ return () => clearInterval(pullingInterval);
6899
+ }, []);
6900
+ return renderStatus(status);
6901
+ });
6902
+ const renderStatus = (status) => {
6903
+ const statusesMap = {
6904
+ IN_PROCESS: jsx(PendingStatusContent, {}),
6905
+ FAILED: jsx(FailedStatusContent, {}),
6906
+ OK: jsx(SuccessStatusContent, {}),
6907
+ REWORK: jsx(ReworkStatusContent, {}),
6908
+ };
6909
+ return statusesMap[status] || null;
6910
+ };
6911
+
6912
+ const formStateMap = {
6913
+ 0: {
6914
+ moneyValue: 0,
6915
+ monthsValue: 0,
6916
+ isAnnuity: false,
6917
+ isInsurance: false,
6918
+ isSalaryClient: false,
6919
+ isPensionClient: false,
6920
+ isStateEmployee: false,
6921
+ },
6922
+ 1: {
6923
+ surname: '',
6924
+ name: '',
6925
+ middleName: '',
6926
+ sex: '',
6927
+ birthday: undefined,
6928
+ birthPlace: '',
6929
+ phone: '',
6930
+ email: '',
6931
+ dulSerie: undefined,
6932
+ dulNumber: undefined,
6933
+ dulIssueDateField: undefined,
6934
+ dulSubdivisionCode: '',
6935
+ dulIssuedBy: '',
6936
+ addressRegistration: {
6937
+ fullAddress: '',
6938
+ fiasCode: '',
6939
+ },
6940
+ participantDateRegistration: undefined,
6941
+ addressFact: {
6942
+ fullAddress: '',
6943
+ fiasCode: '',
6944
+ },
6945
+ housing: '',
6946
+ },
6947
+ 2: {
6948
+ amountWorkers: { key: '', text: '' },
6949
+ beginDate: undefined,
6950
+ employerActivities: { key: '', text: '' },
6951
+ employerOrganization: { key: '', text: '' },
6952
+ employment: { key: '', text: '' },
6953
+ experience5Years: '',
6954
+ inn: undefined,
6955
+ jobsNumber: '',
6956
+ lastJobExperience: '',
6957
+ legalForm: '',
6958
+ organization: { key: '', text: '' },
6959
+ organizationAddress: {
6960
+ fullAddress: '',
6961
+ fiasCode: '',
6962
+ },
6963
+ organizationName: '',
6964
+ organizationPhone: '',
6965
+ partInBusiness: undefined,
6966
+ positionOrganization: { key: '', text: '' },
6967
+ },
6968
+ 3: {
6969
+ familyStatus: { key: '', text: '' },
6970
+ dependents: undefined,
6971
+ familyMembers: undefined,
6972
+ confirmationIncome: { key: '', text: '' },
6973
+ mandatoryIncome: undefined,
6974
+ otherPayments: undefined,
6975
+ snils: '',
6976
+ armyIdFlg: false,
6977
+ },
6978
+ 4: {
6979
+ disablePeopleFlg: false,
6980
+ bankruptcyFlg: false,
6981
+ shareholderFlg: false,
6982
+ legalEntityName: '',
6983
+ creditInRshbCd: undefined,
6984
+ },
6985
+ 5: {
6986
+ regionRetail: '',
6987
+ addressRetail: '',
6988
+ bankEmployeeCode: '',
6989
+ },
6990
+ };
6991
+
6992
+ const getInitialFormState = (step, localStorageData) => {
6993
+ if (localStorageData) {
6994
+ // TODO: Fill in for other fields with type Date
6995
+ // TODO: Take it out to the helper
6996
+ localStorageData.birthday = localStorageData.birthday
6997
+ ? new Date(localStorageData.birthday)
6998
+ : undefined;
6999
+ localStorageData.dulIssueDateField = localStorageData.dulIssueDateField
7000
+ ? new Date(localStorageData.dulIssueDateField)
7001
+ : undefined;
7002
+ localStorageData.participantDateRegistration = localStorageData.participantDateRegistration
7003
+ ? new Date(localStorageData.participantDateRegistration)
7004
+ : undefined;
7005
+ localStorageData.beginDate = localStorageData?.beginDate
7006
+ ? new Date(localStorageData.beginDate)
7007
+ : undefined;
7008
+ }
7009
+ return {
7010
+ ...formStateMap[step],
7011
+ ...localStorageData,
7012
+ };
7013
+ };
7014
+
7015
+ const renderInfo$1 = (inputs = []) => {
7016
+ const infoInputs = inputs.filter((_) => _.fieldType === 'info');
7017
+ return infoInputs.length
7018
+ ? infoInputs.map(({ text, name }, i) => jsx(InfoCard, { __html: text }, `${name}_${i}`))
7019
+ : null;
7020
+ };
7021
+
7022
+ const renderInputs = ({ field, inputs }) => (inputs || [])?.map(getField(field, ''));
7023
+
7024
+ const renderStep = ({ sections, field }) => sections?.map(({ inputs, columns, title }, i) => (jsxs("div", { className: style(inputColumnStyles(columns), 'grid gap-x-m'), children: [renderInfo$1(inputs), renderTitle(title), renderInputs({ field, inputs })] }, `section-${i}`)));
7025
+
7026
+ const StepsNavigationButtons = JSX(({ step, onPrevStep }) => {
7027
+ const isFirstStep = step === 0;
7028
+ return (jsxs("div", { className: 'flex justify-between', children: [jsx(Button, { onClick: onPrevStep, className: style('w-full @xl:w-auto'), type: "button", version: "secondary", disabled: isFirstStep, children: "\u041D\u0430\u0437\u0430\u0434" }), jsx(Button, { className: style('w-full @xl:w-auto'), type: "submit", children: "\u0414\u0430\u043B\u0435\u0435" })] }));
7029
+ });
7030
+
7031
+ const getFirstStepData = (formData) => {
7032
+ const { name, surname, middleName, birthday = '', phone = '', email, sex, birthPlace, dulIssueDateField = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, } = formData;
7033
+ return {
7034
+ birthDate: formatDate(birthday, true),
7035
+ midname: middleName,
7036
+ name,
7037
+ surname,
7038
+ birthPlace,
7039
+ dulIssueDate: formatDate(dulIssueDateField, true),
7040
+ dulIssuedBy,
7041
+ dulNumber,
7042
+ dulSerie,
7043
+ dulSubdivisionCode,
7044
+ educationLevelCd: education,
7045
+ registrationDate: formatDate(participantDateRegistration, true),
7046
+ houseTypeCd: housing,
7047
+ participantContacts: getParticipantContacts({
7048
+ phone: formatPhone(phone),
7049
+ email,
7050
+ }),
7051
+ participantAddresses: getParticipantAddresses({ addressRegistration, addressFact }),
7052
+ genderCd: sex
7053
+ ? {
7054
+ key: sex === 'male' ? 'MAN' : 'WOMAN',
7055
+ }
7056
+ : undefined,
7057
+ };
7058
+ };
7059
+
7060
+ const getFourthStepData = (formData) => {
7061
+ const { bankruptcyFlg, shareholderFlg, legalEntityName, creditInRshbCd } = formData;
7062
+ return {
7063
+ bankruptcyFlg,
7064
+ shareholderFlg,
7065
+ nameLegalEntity: legalEntityName,
7066
+ creditInRshbCd,
7067
+ };
7068
+ };
7069
+
7070
+ const getSecondStepData = (formData) => {
7071
+ const { employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
7072
+ return {
7073
+ employmentTypeCd: employment,
7074
+ organizationName,
7075
+ organizationInn: inn,
7076
+ organizationActivityTypeCd: employerActivities,
7077
+ organizationTypeCd: organization,
7078
+ organizationKindCd: employerOrganization,
7079
+ employeesNumberCd: amountWorkers,
7080
+ opf: legalForm,
7081
+ seniority: generalSeniority,
7082
+ generalSeniority: experience5Years,
7083
+ jobsNumber,
7084
+ lastWorkDuration: lastJobExperience,
7085
+ positionCd: positionOrganization,
7086
+ participantContacts: getParticipantContacts({
7087
+ organizationPhone: organizationPhone && formatPhone(organizationPhone),
7088
+ }),
7089
+ participantAddresses: getParticipantAddresses({ organizationAddress }),
7090
+ };
7091
+ };
7092
+
7093
+ const getThirdStepData = (formData) => {
7094
+ const { familyStatus, dependents, familyMembers, confirmationIncome, mandatoryIncome, otherPayments, snils, armyIdFlg, } = formData;
7095
+ return {
7096
+ maritalStatusCd: familyStatus,
7097
+ totalDependents: familyMembers,
7098
+ incomeCertificateCd: confirmationIncome,
7099
+ otherDependents: dependents,
7100
+ participantIncomes: getParticipantIncomes({
7101
+ mandatoryIncome,
7102
+ otherPayments,
7103
+ }),
7104
+ snils: snils?.replaceAll(' ', ''),
7105
+ armyIdFlg,
7106
+ };
7107
+ };
7108
+
7109
+ const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => ({
7110
+ sendToBank: true,
7111
+ taskKind: 'UNITED',
7112
+ task: {
7113
+ taskSource: globalThis.location.origin,
7114
+ id: taskId,
7115
+ //TODO: Добавить id офиса
7116
+ authorizedAgentId: formData?.bankEmployeeCode,
7117
+ participants: [
7118
+ {
7119
+ id: participantId,
7120
+ profile: {
7121
+ id: profileId,
7122
+ },
7123
+ roleCd: {
7124
+ key: 'BORROWER',
7125
+ value: 'Заемщик',
7126
+ },
7127
+ ...getCurrentStepData(step, formData),
7128
+ },
7129
+ ],
7130
+ esiaAccountTypeCd: {
7131
+ key: formData?.esiaAccountTypeCd?.key,
7132
+ },
7133
+ },
7134
+ });
7135
+ const getCurrentStepData = (step, formData) => {
7136
+ switch (step) {
7137
+ case 1:
7138
+ return getFirstStepData(formData);
7139
+ case 2:
7140
+ return getSecondStepData(formData);
7141
+ case 3:
7142
+ return getThirdStepData(formData);
7143
+ case 4:
7144
+ return getFourthStepData(formData);
7145
+ default:
7146
+ return {};
6309
7147
  }
6310
7148
  };
6311
7149
 
@@ -6658,6 +7496,7 @@
6658
7496
  ];
6659
7497
  const CreditForm = JSX(({ className, ...rest }) => {
6660
7498
  const [step, setStep] = useState(0);
7499
+ useEffect(updateRefreshToken, []);
6661
7500
  const handleNextStep = useCallback(() => {
6662
7501
  setStep((_) => Math.min(_ + 1, WIZARD_STEPS));
6663
7502
  }, []);
@@ -8404,6 +9243,7 @@
8404
9243
  CarouselLinks,
8405
9244
  CarouselRecommendationCard,
8406
9245
  CarouselTariffsCard,
9246
+ CreditCardForm,
8407
9247
  CreditForm,
8408
9248
  DepositFiltration,
8409
9249
  Depository,
@@ -8573,7 +9413,7 @@
8573
9413
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
8574
9414
  });
8575
9415
 
8576
- const packageVersion = "0.14.650";
9416
+ const packageVersion = "0.14.652";
8577
9417
 
8578
9418
  exports.Blocks = Blocks;
8579
9419
  exports.ContentPage = ContentPage;