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

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 (605) hide show
  1. package/bundle/api/RetailAPI/getTaskStatus.d.ts +1 -1
  2. package/bundle/api/RetailAPI/updateUserTask.d.ts +4 -0
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +928 -119
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  7. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  8. package/bundle/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  9. package/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  10. package/bundle/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  11. package/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  12. package/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  13. package/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  14. package/bundle/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  15. package/bundle/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  16. package/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  17. package/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  18. package/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  19. package/bundle/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  20. package/bundle/components/CreditCardForm/formStateMap.d.ts +74 -0
  21. package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  22. package/bundle/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  23. package/bundle/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  24. package/bundle/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  25. package/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  26. package/bundle/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  27. package/bundle/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  28. package/bundle/components/CreditCardForm/renderInfo.d.ts +3 -0
  29. package/bundle/components/CreditCardForm/renderInputs.d.ts +3 -0
  30. package/bundle/components/CreditCardForm/renderStep.d.ts +13 -0
  31. package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  32. package/bundle/components/CreditForm/CreditFormStep.d.ts +1 -1
  33. package/bundle/components/CreditForm/creditFormStepsData.d.ts +1 -1
  34. package/bundle/model/InputSectionsType.d.ts +9 -1
  35. package/bundle/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  36. package/bundle/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  37. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  38. package/dist/api/RetailAPI/getTaskStatus.d.ts +1 -1
  39. package/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
  40. package/dist/api/RetailAPI/updateUserTask.d.ts +4 -0
  41. package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  42. package/dist/api/dadataHints/hintsListsOptions.js +1 -0
  43. package/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
  44. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  45. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  46. package/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  47. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  48. package/dist/components/Blocks.js +2 -0
  49. package/dist/components/Blocks.js.map +1 -1
  50. package/dist/components/Blocks.mobile.js +2 -0
  51. package/dist/components/Blocks.mobile.js.map +1 -1
  52. package/dist/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  53. package/dist/components/CreditCardForm/CreditCardForm.js +34 -0
  54. package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -0
  55. package/dist/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  56. package/dist/components/CreditCardForm/CreditCardFormContent.js +2 -0
  57. package/dist/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  58. package/dist/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  59. package/dist/components/CreditCardForm/CreditCardFormProgress.js +11 -0
  60. package/dist/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  61. package/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  62. package/dist/components/CreditCardForm/CreditCardFormStatus.js +25 -0
  63. package/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  64. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  65. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +43 -0
  66. package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  67. package/dist/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  68. package/dist/components/CreditCardForm/CreditCardFormStep.js +41 -0
  69. package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  70. package/dist/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  71. package/dist/components/CreditCardForm/FailedStatusContent.js +7 -0
  72. package/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  73. package/dist/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  74. package/dist/components/CreditCardForm/PendingStatusContent.js +32 -0
  75. package/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  76. package/dist/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  77. package/dist/components/CreditCardForm/ReworkStatusContent.js +25 -0
  78. package/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  79. package/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  80. package/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -0
  81. package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  82. package/dist/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  83. package/dist/components/CreditCardForm/SuccessStatusContent.js +32 -0
  84. package/dist/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  85. package/dist/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  86. package/dist/components/CreditCardForm/creditCardFormStepsData.js +310 -0
  87. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  88. package/dist/components/CreditCardForm/formStateMap.d.ts +74 -0
  89. package/dist/components/CreditCardForm/formStateMap.js +93 -0
  90. package/dist/components/CreditCardForm/formStateMap.js.map +1 -0
  91. package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  92. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +54 -0
  93. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  94. package/dist/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  95. package/dist/components/CreditCardForm/getFifthStepData.js +13 -0
  96. package/dist/components/CreditCardForm/getFifthStepData.js.map +1 -0
  97. package/dist/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  98. package/dist/components/CreditCardForm/getFirstStepData.js +13 -0
  99. package/dist/components/CreditCardForm/getFirstStepData.js.map +1 -0
  100. package/dist/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  101. package/dist/components/CreditCardForm/getFourthStepData.js +19 -0
  102. package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -0
  103. package/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  104. package/dist/components/CreditCardForm/getInitialFormState.js +27 -0
  105. package/dist/components/CreditCardForm/getInitialFormState.js.map +1 -0
  106. package/dist/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  107. package/dist/components/CreditCardForm/getSecondStepData.js +35 -0
  108. package/dist/components/CreditCardForm/getSecondStepData.js.map +1 -0
  109. package/dist/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  110. package/dist/components/CreditCardForm/getThirdStepData.js +28 -0
  111. package/dist/components/CreditCardForm/getThirdStepData.js.map +1 -0
  112. package/dist/components/CreditCardForm/renderInfo.d.ts +3 -0
  113. package/dist/components/CreditCardForm/renderInfo.js +12 -0
  114. package/dist/components/CreditCardForm/renderInfo.js.map +1 -0
  115. package/dist/components/CreditCardForm/renderInputs.d.ts +3 -0
  116. package/dist/components/CreditCardForm/renderInputs.js +6 -0
  117. package/dist/components/CreditCardForm/renderInputs.js.map +1 -0
  118. package/dist/components/CreditCardForm/renderStep.d.ts +13 -0
  119. package/dist/components/CreditCardForm/renderStep.js +19 -0
  120. package/dist/components/CreditCardForm/renderStep.js.map +1 -0
  121. package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  122. package/dist/components/CreditCardForm/useCreditCardFormAPI.js +46 -0
  123. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  124. package/dist/components/CreditForm/CreditForm.js.map +1 -1
  125. package/dist/components/CreditForm/CreditFormStatusTracker.js +1 -2
  126. package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  127. package/dist/components/CreditForm/CreditFormStep.d.ts +1 -1
  128. package/dist/components/CreditForm/FailedStatusContent.js +1 -1
  129. package/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
  130. package/dist/components/CreditForm/creditFormStepsData.d.ts +1 -1
  131. package/dist/components/CreditForm/getCreditFormTaskData.js +1 -1
  132. package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  133. package/dist/model/InputSectionsType.d.ts +9 -1
  134. package/dist/ui-kit/FormField/Fields/CurrencyField.js +6 -5
  135. package/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  136. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  137. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js +9 -0
  138. package/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  139. package/dist/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  140. package/dist/ui-kit/FormField/Fields/MethodObtainField.js +13 -0
  141. package/dist/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  142. package/dist/ui-kit/FormField/Fields/PaymentSystemField.js +6 -5
  143. package/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  144. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  145. package/dist/ui-kit/FormField/getField.js +5 -0
  146. package/dist/ui-kit/FormField/getField.js.map +1 -1
  147. package/dist/ui-kit/FormField/getObjectValidator.js +6 -1
  148. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  149. package/lib/api/RetailAPI/getTaskStatus.d.ts +1 -1
  150. package/lib/api/RetailAPI/getTaskStatus.js.map +1 -1
  151. package/lib/api/RetailAPI/updateUserTask.d.ts +4 -0
  152. package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  153. package/lib/api/dadataHints/hintsListsOptions.js +1 -0
  154. package/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
  155. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  156. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  157. package/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  158. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  159. package/lib/components/Blocks.js +2 -0
  160. package/lib/components/Blocks.js.map +1 -1
  161. package/lib/components/Blocks.mobile.js +2 -0
  162. package/lib/components/Blocks.mobile.js.map +1 -1
  163. package/lib/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  164. package/lib/components/CreditCardForm/CreditCardForm.fixture.d.ts +6 -0
  165. package/lib/components/CreditCardForm/CreditCardForm.js +32 -0
  166. package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -0
  167. package/lib/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  168. package/lib/components/CreditCardForm/CreditCardFormContent.js +2 -0
  169. package/lib/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  170. package/lib/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  171. package/lib/components/CreditCardForm/CreditCardFormProgress.js +9 -0
  172. package/lib/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  173. package/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  174. package/lib/components/CreditCardForm/CreditCardFormStatus.js +23 -0
  175. package/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  176. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  177. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +41 -0
  178. package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  179. package/lib/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  180. package/lib/components/CreditCardForm/CreditCardFormStep.js +39 -0
  181. package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  182. package/lib/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  183. package/lib/components/CreditCardForm/FailedStatusContent.js +5 -0
  184. package/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  185. package/lib/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  186. package/lib/components/CreditCardForm/PendingStatusContent.js +30 -0
  187. package/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  188. package/lib/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  189. package/lib/components/CreditCardForm/ReworkStatusContent.js +23 -0
  190. package/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  191. package/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  192. package/lib/components/CreditCardForm/StepsNavigationButtons.js +9 -0
  193. package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  194. package/lib/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  195. package/lib/components/CreditCardForm/SuccessStatusContent.js +30 -0
  196. package/lib/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  197. package/lib/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  198. package/lib/components/CreditCardForm/creditCardFormStepsData.js +308 -0
  199. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  200. package/lib/components/CreditCardForm/formStateMap.d.ts +74 -0
  201. package/lib/components/CreditCardForm/formStateMap.js +91 -0
  202. package/lib/components/CreditCardForm/formStateMap.js.map +1 -0
  203. package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  204. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +51 -0
  205. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  206. package/lib/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  207. package/lib/components/CreditCardForm/getFifthStepData.js +10 -0
  208. package/lib/components/CreditCardForm/getFifthStepData.js.map +1 -0
  209. package/lib/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  210. package/lib/components/CreditCardForm/getFirstStepData.js +10 -0
  211. package/lib/components/CreditCardForm/getFirstStepData.js.map +1 -0
  212. package/lib/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  213. package/lib/components/CreditCardForm/getFourthStepData.js +16 -0
  214. package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -0
  215. package/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  216. package/lib/components/CreditCardForm/getInitialFormState.js +24 -0
  217. package/lib/components/CreditCardForm/getInitialFormState.js.map +1 -0
  218. package/lib/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  219. package/lib/components/CreditCardForm/getSecondStepData.js +32 -0
  220. package/lib/components/CreditCardForm/getSecondStepData.js.map +1 -0
  221. package/lib/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  222. package/lib/components/CreditCardForm/getThirdStepData.js +25 -0
  223. package/lib/components/CreditCardForm/getThirdStepData.js.map +1 -0
  224. package/lib/components/CreditCardForm/renderInfo.d.ts +2 -0
  225. package/lib/components/CreditCardForm/renderInfo.js +9 -0
  226. package/lib/components/CreditCardForm/renderInfo.js.map +1 -0
  227. package/lib/components/CreditCardForm/renderInputs.d.ts +2 -0
  228. package/lib/components/CreditCardForm/renderInputs.js +3 -0
  229. package/lib/components/CreditCardForm/renderInputs.js.map +1 -0
  230. package/lib/components/CreditCardForm/renderStep.d.ts +12 -0
  231. package/lib/components/CreditCardForm/renderStep.js +16 -0
  232. package/lib/components/CreditCardForm/renderStep.js.map +1 -0
  233. package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  234. package/lib/components/CreditCardForm/useCreditCardFormAPI.js +43 -0
  235. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  236. package/lib/components/CreditForm/CreditForm.js.map +1 -1
  237. package/lib/components/CreditForm/CreditFormStatusTracker.js +1 -2
  238. package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  239. package/lib/components/CreditForm/CreditFormStep.d.ts +1 -1
  240. package/lib/components/CreditForm/FailedStatusContent.js +1 -1
  241. package/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
  242. package/lib/components/CreditForm/creditFormStepsData.d.ts +1 -1
  243. package/lib/components/CreditForm/getCreditFormTaskData.js +1 -1
  244. package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  245. package/lib/model/InputSectionsType.d.ts +9 -1
  246. package/lib/ui-kit/FormField/Fields/CurrencyField.js +7 -6
  247. package/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  248. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  249. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js +7 -0
  250. package/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  251. package/lib/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  252. package/lib/ui-kit/FormField/Fields/MethodObtainField.js +11 -0
  253. package/lib/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  254. package/lib/ui-kit/FormField/Fields/PaymentSystemField.js +7 -6
  255. package/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  256. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  257. package/lib/ui-kit/FormField/getField.js +5 -0
  258. package/lib/ui-kit/FormField/getField.js.map +1 -1
  259. package/lib/ui-kit/FormField/getObjectValidator.js +6 -1
  260. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  261. package/mobile/bundle/api/RetailAPI/getTaskStatus.d.ts +1 -1
  262. package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +4 -0
  263. package/mobile/bundle/bundle.umd.js +924 -115
  264. package/mobile/bundle/bundle.umd.min.js +1 -1
  265. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  266. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  267. package/mobile/bundle/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  268. package/mobile/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  269. package/mobile/bundle/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  270. package/mobile/bundle/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  271. package/mobile/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  272. package/mobile/bundle/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  273. package/mobile/bundle/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  274. package/mobile/bundle/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  275. package/mobile/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  276. package/mobile/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  277. package/mobile/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  278. package/mobile/bundle/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  279. package/mobile/bundle/components/CreditCardForm/formStateMap.d.ts +74 -0
  280. package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  281. package/mobile/bundle/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  282. package/mobile/bundle/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  283. package/mobile/bundle/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  284. package/mobile/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  285. package/mobile/bundle/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  286. package/mobile/bundle/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  287. package/mobile/bundle/components/CreditCardForm/renderInfo.d.ts +3 -0
  288. package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +3 -0
  289. package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +13 -0
  290. package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  291. package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +1 -1
  292. package/mobile/bundle/components/CreditForm/creditFormStepsData.d.ts +1 -1
  293. package/mobile/bundle/model/InputSectionsType.d.ts +9 -1
  294. package/mobile/bundle/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  295. package/mobile/bundle/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  296. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  297. package/mobile/dist/api/RetailAPI/getTaskStatus.d.ts +1 -1
  298. package/mobile/dist/api/RetailAPI/getTaskStatus.js.map +1 -1
  299. package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +4 -0
  300. package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  301. package/mobile/dist/api/dadataHints/hintsListsOptions.js +1 -0
  302. package/mobile/dist/api/dadataHints/hintsListsOptions.js.map +1 -1
  303. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  304. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  305. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  306. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  307. package/mobile/dist/components/Blocks.js +2 -0
  308. package/mobile/dist/components/Blocks.js.map +1 -1
  309. package/mobile/dist/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  310. package/mobile/dist/components/CreditCardForm/CreditCardForm.js +34 -0
  311. package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -0
  312. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  313. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.js +2 -0
  314. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  315. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  316. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.js +11 -0
  317. package/mobile/dist/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  318. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  319. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js +25 -0
  320. package/mobile/dist/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  321. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  322. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js +43 -0
  323. package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  324. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  325. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +41 -0
  326. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  327. package/mobile/dist/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  328. package/mobile/dist/components/CreditCardForm/FailedStatusContent.js +7 -0
  329. package/mobile/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  330. package/mobile/dist/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  331. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js +32 -0
  332. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  333. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  334. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js +25 -0
  335. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  336. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  337. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -0
  338. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  339. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  340. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js +32 -0
  341. package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  342. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  343. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +310 -0
  344. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  345. package/mobile/dist/components/CreditCardForm/formStateMap.d.ts +74 -0
  346. package/mobile/dist/components/CreditCardForm/formStateMap.js +93 -0
  347. package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -0
  348. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  349. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +54 -0
  350. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  351. package/mobile/dist/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  352. package/mobile/dist/components/CreditCardForm/getFifthStepData.js +13 -0
  353. package/mobile/dist/components/CreditCardForm/getFifthStepData.js.map +1 -0
  354. package/mobile/dist/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  355. package/mobile/dist/components/CreditCardForm/getFirstStepData.js +13 -0
  356. package/mobile/dist/components/CreditCardForm/getFirstStepData.js.map +1 -0
  357. package/mobile/dist/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  358. package/mobile/dist/components/CreditCardForm/getFourthStepData.js +19 -0
  359. package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -0
  360. package/mobile/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  361. package/mobile/dist/components/CreditCardForm/getInitialFormState.js +27 -0
  362. package/mobile/dist/components/CreditCardForm/getInitialFormState.js.map +1 -0
  363. package/mobile/dist/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  364. package/mobile/dist/components/CreditCardForm/getSecondStepData.js +35 -0
  365. package/mobile/dist/components/CreditCardForm/getSecondStepData.js.map +1 -0
  366. package/mobile/dist/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  367. package/mobile/dist/components/CreditCardForm/getThirdStepData.js +28 -0
  368. package/mobile/dist/components/CreditCardForm/getThirdStepData.js.map +1 -0
  369. package/mobile/dist/components/CreditCardForm/renderInfo.d.ts +3 -0
  370. package/mobile/dist/components/CreditCardForm/renderInfo.js +12 -0
  371. package/mobile/dist/components/CreditCardForm/renderInfo.js.map +1 -0
  372. package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +3 -0
  373. package/mobile/dist/components/CreditCardForm/renderInputs.js +6 -0
  374. package/mobile/dist/components/CreditCardForm/renderInputs.js.map +1 -0
  375. package/mobile/dist/components/CreditCardForm/renderStep.d.ts +13 -0
  376. package/mobile/dist/components/CreditCardForm/renderStep.js +19 -0
  377. package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -0
  378. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  379. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +46 -0
  380. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  381. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
  382. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js +1 -2
  383. package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  384. package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +1 -1
  385. package/mobile/dist/components/CreditForm/FailedStatusContent.js +1 -1
  386. package/mobile/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
  387. package/mobile/dist/components/CreditForm/creditFormStepsData.d.ts +1 -1
  388. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +1 -1
  389. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  390. package/mobile/dist/model/InputSectionsType.d.ts +9 -1
  391. package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js +6 -5
  392. package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  393. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  394. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js +9 -0
  395. package/mobile/dist/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  396. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  397. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.js +13 -0
  398. package/mobile/dist/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  399. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js +6 -5
  400. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  401. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  402. package/mobile/dist/ui-kit/FormField/getField.js +5 -0
  403. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  404. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +6 -1
  405. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  406. package/mobile/lib/api/RetailAPI/getTaskStatus.d.ts +1 -1
  407. package/mobile/lib/api/RetailAPI/getTaskStatus.js.map +1 -1
  408. package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +4 -0
  409. package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  410. package/mobile/lib/api/dadataHints/hintsListsOptions.js +1 -0
  411. package/mobile/lib/api/dadataHints/hintsListsOptions.js.map +1 -1
  412. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +0 -9
  413. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -0
  414. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -0
  415. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  416. package/mobile/lib/components/Blocks.js +2 -0
  417. package/mobile/lib/components/Blocks.js.map +1 -1
  418. package/mobile/lib/components/CreditCardForm/CreditCardForm.d.ts +6 -0
  419. package/mobile/lib/components/CreditCardForm/CreditCardForm.js +32 -0
  420. package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -0
  421. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.d.ts +22 -0
  422. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.js +2 -0
  423. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.js.map +1 -0
  424. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.d.ts +6 -0
  425. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.js +9 -0
  426. package/mobile/lib/components/CreditCardForm/CreditCardFormProgress.js.map +1 -0
  427. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.d.ts +16 -0
  428. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js +23 -0
  429. package/mobile/lib/components/CreditCardForm/CreditCardFormStatus.js.map +1 -0
  430. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +2 -0
  431. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js +41 -0
  432. package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -0
  433. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.d.ts +12 -0
  434. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +39 -0
  435. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -0
  436. package/mobile/lib/components/CreditCardForm/FailedStatusContent.d.ts +2 -0
  437. package/mobile/lib/components/CreditCardForm/FailedStatusContent.js +5 -0
  438. package/mobile/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -0
  439. package/mobile/lib/components/CreditCardForm/PendingStatusContent.d.ts +2 -0
  440. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js +30 -0
  441. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -0
  442. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.d.ts +2 -0
  443. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js +23 -0
  444. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -0
  445. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +5 -0
  446. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +9 -0
  447. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -0
  448. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.d.ts +2 -0
  449. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js +30 -0
  450. package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js.map +1 -0
  451. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.d.ts +2 -0
  452. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +308 -0
  453. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -0
  454. package/mobile/lib/components/CreditCardForm/formStateMap.d.ts +74 -0
  455. package/mobile/lib/components/CreditCardForm/formStateMap.js +91 -0
  456. package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -0
  457. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +11 -0
  458. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +51 -0
  459. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -0
  460. package/mobile/lib/components/CreditCardForm/getFifthStepData.d.ts +3 -0
  461. package/mobile/lib/components/CreditCardForm/getFifthStepData.js +10 -0
  462. package/mobile/lib/components/CreditCardForm/getFifthStepData.js.map +1 -0
  463. package/mobile/lib/components/CreditCardForm/getFirstStepData.d.ts +3 -0
  464. package/mobile/lib/components/CreditCardForm/getFirstStepData.js +10 -0
  465. package/mobile/lib/components/CreditCardForm/getFirstStepData.js.map +1 -0
  466. package/mobile/lib/components/CreditCardForm/getFourthStepData.d.ts +3 -0
  467. package/mobile/lib/components/CreditCardForm/getFourthStepData.js +16 -0
  468. package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -0
  469. package/mobile/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -0
  470. package/mobile/lib/components/CreditCardForm/getInitialFormState.js +24 -0
  471. package/mobile/lib/components/CreditCardForm/getInitialFormState.js.map +1 -0
  472. package/mobile/lib/components/CreditCardForm/getSecondStepData.d.ts +3 -0
  473. package/mobile/lib/components/CreditCardForm/getSecondStepData.js +32 -0
  474. package/mobile/lib/components/CreditCardForm/getSecondStepData.js.map +1 -0
  475. package/mobile/lib/components/CreditCardForm/getThirdStepData.d.ts +3 -0
  476. package/mobile/lib/components/CreditCardForm/getThirdStepData.js +25 -0
  477. package/mobile/lib/components/CreditCardForm/getThirdStepData.js.map +1 -0
  478. package/mobile/lib/components/CreditCardForm/renderInfo.d.ts +3 -0
  479. package/mobile/lib/components/CreditCardForm/renderInfo.js +9 -0
  480. package/mobile/lib/components/CreditCardForm/renderInfo.js.map +1 -0
  481. package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +3 -0
  482. package/mobile/lib/components/CreditCardForm/renderInputs.js +3 -0
  483. package/mobile/lib/components/CreditCardForm/renderInputs.js.map +1 -0
  484. package/mobile/lib/components/CreditCardForm/renderStep.d.ts +13 -0
  485. package/mobile/lib/components/CreditCardForm/renderStep.js +16 -0
  486. package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -0
  487. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +13 -0
  488. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +43 -0
  489. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -0
  490. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
  491. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js +1 -2
  492. package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
  493. package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +1 -1
  494. package/mobile/lib/components/CreditForm/FailedStatusContent.js +1 -1
  495. package/mobile/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
  496. package/mobile/lib/components/CreditForm/creditFormStepsData.d.ts +1 -1
  497. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +1 -1
  498. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  499. package/mobile/lib/model/InputSectionsType.d.ts +9 -1
  500. package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js +7 -6
  501. package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  502. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.d.ts +2 -0
  503. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js +7 -0
  504. package/mobile/lib/ui-kit/FormField/Fields/DeliveryDateFiels.js.map +1 -0
  505. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.d.ts +4 -0
  506. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.js +11 -0
  507. package/mobile/lib/ui-kit/FormField/Fields/MethodObtainField.js.map +1 -0
  508. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js +7 -6
  509. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  510. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  511. package/mobile/lib/ui-kit/FormField/getField.js +5 -0
  512. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  513. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +6 -1
  514. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  515. package/mobile/src/api/RetailAPI/getTaskStatus.ts +1 -1
  516. package/mobile/src/api/RetailAPI/updateUserTask.ts +4 -0
  517. package/mobile/src/api/dadataHints/hintsListsOptions.ts +1 -0
  518. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +0 -11
  519. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -0
  520. package/mobile/src/components/Blocks.ts +2 -0
  521. package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +69 -0
  522. package/mobile/src/components/CreditCardForm/CreditCardFormContent.ts +27 -0
  523. package/mobile/src/components/CreditCardForm/CreditCardFormProgress.tsx +27 -0
  524. package/mobile/src/components/CreditCardForm/CreditCardFormStatus.tsx +119 -0
  525. package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +48 -0
  526. package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +66 -0
  527. package/mobile/src/components/CreditCardForm/FailedStatusContent.tsx +10 -0
  528. package/mobile/src/components/CreditCardForm/PendingStatusContent.tsx +38 -0
  529. package/mobile/src/components/CreditCardForm/ReworkStatusContent.tsx +32 -0
  530. package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +29 -0
  531. package/mobile/src/components/CreditCardForm/SuccessStatusContent.tsx +37 -0
  532. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +310 -0
  533. package/mobile/src/components/CreditCardForm/formStateMap.tsx +165 -0
  534. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +68 -0
  535. package/mobile/src/components/CreditCardForm/getFifthStepData.ts +13 -0
  536. package/mobile/src/components/CreditCardForm/getFirstStepData.tsx +13 -0
  537. package/mobile/src/components/CreditCardForm/getFourthStepData.ts +27 -0
  538. package/mobile/src/components/CreditCardForm/getInitialFormState.tsx +28 -0
  539. package/mobile/src/components/CreditCardForm/getSecondStepData.tsx +54 -0
  540. package/mobile/src/components/CreditCardForm/getThirdStepData.tsx +44 -0
  541. package/mobile/src/components/CreditCardForm/renderInfo.tsx +10 -0
  542. package/mobile/src/components/CreditCardForm/renderInputs.tsx +5 -0
  543. package/mobile/src/components/CreditCardForm/renderStep.tsx +43 -0
  544. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +75 -0
  545. package/mobile/src/components/CreditForm/CreditForm.tsx +2 -4
  546. package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -2
  547. package/mobile/src/components/CreditForm/CreditFormStep.tsx +1 -1
  548. package/mobile/src/components/CreditForm/FailedStatusContent.tsx +1 -2
  549. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +1 -1
  550. package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +1 -1
  551. package/mobile/src/model/InputSectionsType.ts +13 -1
  552. package/mobile/src/ui-kit/FormField/Fields/CurrencyField.tsx +14 -15
  553. package/mobile/src/ui-kit/FormField/Fields/DeliveryDateFiels.tsx +12 -0
  554. package/mobile/src/ui-kit/FormField/Fields/MethodObtainField.tsx +19 -0
  555. package/mobile/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -16
  556. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +3 -0
  557. package/mobile/src/ui-kit/FormField/getField.tsx +6 -0
  558. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +6 -1
  559. package/package.json +2 -2
  560. package/src/api/RetailAPI/getTaskStatus.ts +1 -1
  561. package/src/api/RetailAPI/updateUserTask.ts +4 -0
  562. package/src/api/dadataHints/hintsListsOptions.ts +1 -0
  563. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +0 -11
  564. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -0
  565. package/src/components/Blocks.mobile.ts +2 -0
  566. package/src/components/Blocks.ts +2 -0
  567. package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +14 -0
  568. package/src/components/CreditCardForm/CreditCardForm.tsx +69 -0
  569. package/src/components/CreditCardForm/CreditCardFormContent.ts +27 -0
  570. package/src/components/CreditCardForm/CreditCardFormProgress.tsx +27 -0
  571. package/src/components/CreditCardForm/CreditCardFormStatus.tsx +119 -0
  572. package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +48 -0
  573. package/src/components/CreditCardForm/CreditCardFormStep.tsx +66 -0
  574. package/src/components/CreditCardForm/FailedStatusContent.tsx +10 -0
  575. package/src/components/CreditCardForm/PendingStatusContent.tsx +38 -0
  576. package/src/components/CreditCardForm/ReworkStatusContent.tsx +32 -0
  577. package/src/components/CreditCardForm/StepsNavigationButtons.tsx +29 -0
  578. package/src/components/CreditCardForm/SuccessStatusContent.tsx +37 -0
  579. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +310 -0
  580. package/src/components/CreditCardForm/formStateMap.tsx +165 -0
  581. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +68 -0
  582. package/src/components/CreditCardForm/getFifthStepData.ts +13 -0
  583. package/src/components/CreditCardForm/getFirstStepData.tsx +13 -0
  584. package/src/components/CreditCardForm/getFourthStepData.ts +27 -0
  585. package/src/components/CreditCardForm/getInitialFormState.tsx +28 -0
  586. package/src/components/CreditCardForm/getSecondStepData.tsx +54 -0
  587. package/src/components/CreditCardForm/getThirdStepData.tsx +44 -0
  588. package/src/components/CreditCardForm/renderInfo.tsx +10 -0
  589. package/src/components/CreditCardForm/renderInputs.tsx +5 -0
  590. package/src/components/CreditCardForm/renderStep.tsx +43 -0
  591. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +75 -0
  592. package/src/components/CreditForm/CreditForm.tsx +2 -4
  593. package/src/components/CreditForm/CreditFormStatusTracker.tsx +1 -2
  594. package/src/components/CreditForm/CreditFormStep.tsx +1 -1
  595. package/src/components/CreditForm/FailedStatusContent.tsx +1 -2
  596. package/src/components/CreditForm/creditFormStepsData.tsx +1 -1
  597. package/src/components/CreditForm/getCreditFormTaskData.ts +1 -1
  598. package/src/model/InputSectionsType.ts +13 -1
  599. package/src/ui-kit/FormField/Fields/CurrencyField.tsx +14 -15
  600. package/src/ui-kit/FormField/Fields/DeliveryDateFiels.tsx +12 -0
  601. package/src/ui-kit/FormField/Fields/MethodObtainField.tsx +19 -0
  602. package/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -16
  603. package/src/ui-kit/FormField/NameFieldDef.ts +3 -0
  604. package/src/ui-kit/FormField/getField.tsx +6 -0
  605. package/src/ui-kit/FormField/getObjectValidator.tsx +6 -1
@@ -1247,6 +1247,7 @@
1247
1247
  addressRegistration: ADDRESS_HINTS_LIST_OPTIONS,
1248
1248
  addressFact: ADDRESS_HINTS_LIST_OPTIONS,
1249
1249
  organizationAddress: ADDRESS_HINTS_LIST_OPTIONS,
1250
+ addressCourier: ADDRESS_HINTS_LIST_OPTIONS,
1250
1251
  };
1251
1252
 
1252
1253
  const debounce = (fn, delay = 600) => {
@@ -1525,6 +1526,8 @@
1525
1526
  sex: defaultValidator('Укажите свой пол'),
1526
1527
  addressRegistration: addressDaDataValidator(),
1527
1528
  organizationAddress: addressDaDataValidator(),
1529
+ deliveryDate: defaultValidator('Укажите дату доставки'),
1530
+ addressCourier: addressDaDataValidator(),
1528
1531
  participantDateRegistration: defaultValidator('Укажите дату регистрации'),
1529
1532
  retirementIncome: defaultValidator(),
1530
1533
  otherIncome: defaultValidator(),
@@ -1539,7 +1542,10 @@
1539
1542
  regionRetail: defaultSelectValidator('Выберите филиал банка'),
1540
1543
  addressRetail: defaultSelectValidator('Выберите адрес банка'),
1541
1544
  addressMatch: defaultValidator(),
1542
- codeWord: codeWordValidator('Необходимо ввести кодовое слово'),
1545
+ codeWord: codeWordValidator('Необходимо ввести кодовое слово латиницей'),
1546
+ currency: defaultValidator(),
1547
+ paymentSystem: defaultValidator(),
1548
+ cardCategory: defaultSelectValidator(),
1543
1549
  confirmationIncome: defaultValidator(),
1544
1550
  };
1545
1551
  const getObjectValidator = (inputs) => {
@@ -2313,12 +2319,16 @@
2313
2319
  };
2314
2320
  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)))) })] })));
2315
2321
 
2322
+ 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)] })));
2323
+
2316
2324
  const CURRENCY_TYPES = [{ id: 'rub', text: 'Рубль' }];
2317
- const CurrencyField = JSX(({ field }) => {
2318
- const { value } = field('currency');
2319
- 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' }) })] }));
2325
+ const CurrencyField = JSX(({ field, input }) => {
2326
+ const { value, onChange } = field('currency');
2327
+ 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) }));
2320
2328
  });
2321
2329
 
2330
+ 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) })));
2331
+
2322
2332
  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 })));
2323
2333
 
2324
2334
  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) })));
@@ -2460,6 +2470,12 @@
2460
2470
 
2461
2471
  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 })));
2462
2472
 
2473
+ const METHODS_OF_OBTAIN = [
2474
+ { id: 'office', text: 'В отделении Банка' },
2475
+ { id: 'courier', text: 'Курьерская доставка' },
2476
+ ];
2477
+ const MethodObtainField = JSX(({ field, input }) => (jsx(RadioButtonGroupControl, { orientation: "horizontal", items: METHODS_OF_OBTAIN, ...getValidation(field('methodObtain'), validatorObj.methodObtain, input?.required) })));
2478
+
2463
2479
  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 })));
2464
2480
 
2465
2481
  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 })));
@@ -2507,12 +2523,12 @@
2507
2523
  { id: 'mir', text: 'Карта МИР' },
2508
2524
  { id: 'union_pay', text: 'UnionPay' },
2509
2525
  { id: 'payment_system_j', text: 'Платежная система (Дж)' },
2510
- { id: 'payment_system_b', text: 'Платежная система (B)* ' },
2526
+ { id: 'payment_system_b', text: 'Платежная система (B) ' },
2511
2527
  { id: 'free_card', text: 'Бесплатная карта' },
2512
2528
  ];
2513
- const PaymentSystemField = JSX(({ field }) => {
2529
+ const PaymentSystemField = JSX(({ field, input }) => {
2514
2530
  const { value, onChange } = field('paymentSystem');
2515
- 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(_) }) })] }));
2531
+ 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) }));
2516
2532
  });
2517
2533
 
2518
2534
  const isPlaceholder = (_) => _ === '_';
@@ -3247,8 +3263,6 @@
3247
3263
 
3248
3264
  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) })));
3249
3265
 
3250
- 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)] })));
3251
-
3252
3266
  const SEX_TYPES = [
3253
3267
  { id: 'male', text: 'Мужской' },
3254
3268
  { id: 'female', text: 'Женский' },
@@ -3385,6 +3399,7 @@
3385
3399
  dulSubdivisionCode: jsx(DulSubdivisionCodeField, { field: field, input: input }),
3386
3400
  dulIssuedBy: jsx(DulIssuedByField, { field: field, input: input }),
3387
3401
  addressRegistration: jsx(AddressField, { field: field, input: input }),
3402
+ addressCourier: jsx(AddressField, { field: field, input: input }),
3388
3403
  participantDateRegistration: jsx(ParticipantDateRegistrationField, { field: field, input: input }),
3389
3404
  retirementIncome: jsx(RetirementIncomeField, { field: field, input: input }),
3390
3405
  otherIncome: jsx(OtherIncomeField, { field: field, input: input }),
@@ -3405,6 +3420,8 @@
3405
3420
  cardCategory: jsx(CardCategoryField, { field: field, input: input }),
3406
3421
  codeWord: jsx(CodeWordField, { field: field, input: input }),
3407
3422
  confirmationIncome: jsx(ConfirmationIncomeField, { field: field, input: input }),
3423
+ methodObtain: jsx(MethodObtainField, { field: field, input: input }),
3424
+ deliveryDate: jsx(DeliveryDateFiels, { field: field, input: input }),
3408
3425
  };
3409
3426
  return isRenderField({ input, field }) ? (jsx("div", { children: InputsMap[input?.name || ''] }, String(i))) : null;
3410
3427
  };
@@ -3498,7 +3515,7 @@
3498
3515
  consentToReceiveMaterials: false,
3499
3516
  consentDataProcessing: false,
3500
3517
  };
3501
- const getInitialFormState$2 = (inputs, typeForm = '') => {
3518
+ const getInitialFormState$3 = (inputs, typeForm = '') => {
3502
3519
  const formState = Object.fromEntries(inputs.map((_) => [
3503
3520
  _.name,
3504
3521
  (_.fieldType === 'ved' && _?.defaultValue) || initialFormState$1[_.name || ''],
@@ -3523,7 +3540,7 @@
3523
3540
  // eslint-disable-next-line max-lines-per-function
3524
3541
  ({ className, title, typeForm = '', sections = [], button, link, endpoint, additionalParams, isContacts, data, ...rest }) => {
3525
3542
  const inputs = (sections?.flatMap((_) => _?.inputs) || []);
3526
- const initialFormState = getInitialFormState$2(inputs, typeForm);
3543
+ const initialFormState = getInitialFormState$3(inputs, typeForm);
3527
3544
  const [responseType, setResponseType] = useState('');
3528
3545
  const responseTypeDialog = useResponseTypeDialog({ typeForm });
3529
3546
  const handleSubmit = useCallback(async (formData, ev) => {
@@ -3588,7 +3605,7 @@
3588
3605
  });
3589
3606
  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" }) })] }));
3590
3607
 
3591
- const renderInputs$1 = ({ field, typeForm = '', inputs, isRetailForm = false, }) => {
3608
+ const renderInputs$2 = ({ field, typeForm = '', inputs, isRetailForm = false, }) => {
3592
3609
  const { consentInputs, restInputs } = splitInputs(inputs || []);
3593
3610
  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)));
3594
3611
  };
@@ -3630,8 +3647,12 @@
3630
3647
  consentInformFlg: false,
3631
3648
  addressRegistration: '',
3632
3649
  participantDateRegistration: undefined,
3650
+ currency: '',
3651
+ paymentSystem: '',
3652
+ cardCategory: { key: '', text: '' },
3653
+ codeWord: '',
3633
3654
  };
3634
- const getInitialFormState$1 = (inputs, savedForm, typeForm = '') => {
3655
+ const getInitialFormState$2 = (inputs, savedForm, typeForm = '') => {
3635
3656
  if (savedForm) {
3636
3657
  const formStateCopy = { ...savedForm };
3637
3658
  formStateCopy.birthday = new Date(formStateCopy?.birthday || 0);
@@ -4287,7 +4308,7 @@
4287
4308
  const [responseType, setResponseType] = useState('');
4288
4309
  const { isLoading } = useInitApplicationLead(nextStepLink);
4289
4310
  const [leadForm, setLeadForm] = useLocalStorage('leadForm');
4290
- const initialFormState = getInitialFormState$1(inputs, leadForm);
4311
+ const initialFormState = getInitialFormState$2(inputs, leadForm);
4291
4312
  const { handleSubmit, responseStatus } = useApplicationLeadApi({
4292
4313
  inputs,
4293
4314
  programId,
@@ -4305,7 +4326,7 @@
4305
4326
  reset();
4306
4327
  }
4307
4328
  }, [responseType]);
4308
- 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)] }) }));
4329
+ 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)] }) }));
4309
4330
  });
4310
4331
 
4311
4332
  const InfoCard = JSX(({ __html, icon = 'InfoCircleIcon', iconVersion = 'black', link }) => (jsxs("div", { className: "flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m", children: [jsx("div", { className: "rounded-full bg-white p-xs", children: jsx(Icon, { name: icon, width: "24", height: "24", iconVersion: iconVersion }) }), jsxs("div", { className: "", children: [jsx(RichText, { __html: __html }), link?.text ? jsx(LinkButton, { className: "text-primary-main", children: link.text }) : null] })] })));
@@ -4318,17 +4339,17 @@
4318
4339
  } }), 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] })] }));
4319
4340
  });
4320
4341
 
4321
- const ApplicationStatus = 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: {
4342
+ const ApplicationStatus = 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$2, { title: sectionInfoTitle, items: sectionInfo }), jsx(SectionInfo$2, { title: sectionAdditionalTitle, items: sectionInfoAdditional, countColumns: true }), infoCard?.__html ? (jsx(InfoCard, { __html: infoCard?.__html, icon: infoCard?.icon, link: {
4322
4343
  text: infoCard?.link?.text,
4323
4344
  } })) : null, buttonText ? jsx(Button, { className: "w-full mt-lg", children: buttonText }) : null] })));
4324
- const SectionInfo$1 = ({ title, items, countColumns = false, }) => {
4345
+ const SectionInfo$2 = ({ title, items, countColumns = false, }) => {
4325
4346
  const isMobile = useMobileMode();
4326
4347
  if (!items) {
4327
4348
  return null;
4328
4349
  }
4329
- 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] })] }));
4350
+ 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$2(item) }, index))) })) : null] })] }));
4330
4351
  };
4331
- 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 })] }));
4352
+ const renderItem$2 = ({ 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 })] }));
4332
4353
 
4333
4354
  const NotFound = JSX(({ title, description }) => {
4334
4355
  const isMobileMode = useMobileMode();
@@ -5958,9 +5979,9 @@
5958
5979
 
5959
5980
  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] })] })));
5960
5981
 
5961
- const CreditFormProgress = JSX(({ step = 1, totalSteps = 5, stepsTitles = [] }) => {
5962
- const progress = useMemo(() => (step / totalSteps) * 100, [step, totalSteps]);
5963
- 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 })] }) }));
5982
+ const CreditCardFormProgress = JSX(({ step = 1, totalSteps = 6, stepsTitles = [] }) => {
5983
+ const progress = useMemo(() => ((step + 1) / totalSteps) * 100, [step, totalSteps]);
5984
+ 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 })] }) }));
5964
5985
  });
5965
5986
 
5966
5987
  var STATUS_TYPE;
@@ -5974,23 +5995,23 @@
5974
5995
 
5975
5996
  const sendSignalToProcess = (body) => doRequest('/user-data/sendSignalToProcess', 'POST', body);
5976
5997
 
5977
- 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: {
5998
+ 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: {
5978
5999
  text: infoCard?.link?.text,
5979
6000
  } })) : null, buttonText ? (jsx(LinkButton, { href: "/natural", text: buttonText, version: "primary", className: "w-full mt-lg" })) : null] })));
5980
- const SectionInfo = ({ title, items, countColumns = false, }) => {
6001
+ const SectionInfo$1 = ({ title, items, countColumns = false, }) => {
5981
6002
  const isMobile = useMobileMode();
5982
6003
  if (!items) {
5983
6004
  return null;
5984
6005
  }
5985
- 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] })] }));
6006
+ 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] })] }));
5986
6007
  };
5987
- 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 })] }));
6008
+ 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 })] }));
5988
6009
 
5989
- 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" })));
6010
+ 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" })));
5990
6011
 
5991
- const PendingStatusContent = JSX(() => {
6012
+ const PendingStatusContent$1 = JSX(() => {
5992
6013
  const [leadForm] = useLocalStorage('leadForm');
5993
- 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: [
6014
+ 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: [
5994
6015
  {
5995
6016
  label: 'Название продукта',
5996
6017
  description: 'Кредит на любые цели',
@@ -6014,9 +6035,9 @@
6014
6035
  ] }));
6015
6036
  });
6016
6037
 
6017
- const ReworkStatusContent = JSX(() => {
6038
+ const ReworkStatusContent$1 = JSX(() => {
6018
6039
  const [leadForm] = useLocalStorage('leadForm');
6019
- 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: [
6040
+ 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: [
6020
6041
  {
6021
6042
  label: 'Регион',
6022
6043
  description: leadForm?.regionRetail?.text,
@@ -6033,9 +6054,9 @@
6033
6054
  ], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
6034
6055
  });
6035
6056
 
6036
- const SuccessStatusContent = JSX(() => {
6057
+ const SuccessStatusContent$1 = JSX(() => {
6037
6058
  const [leadForm] = useLocalStorage('leadForm');
6038
- 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: [
6059
+ 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: [
6039
6060
  {
6040
6061
  label: 'Название продукта',
6041
6062
  description: 'Кредит на любые цели',
@@ -6059,19 +6080,18 @@
6059
6080
  ], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
6060
6081
  });
6061
6082
 
6062
- const TASK_ID = 2816419;
6063
- const SIGNAL_TYPES = [
6083
+ const SIGNAL_TYPES$1 = [
6064
6084
  'CREATE_APPLICATION_SHORT_SIGNAL',
6065
6085
  'CREATE_APPLICATION_LOAN_V3_SIGNAL',
6066
6086
  ];
6067
- const CreditFormStatusTracker = JSX(() => {
6087
+ const CreditCardFormStatusTracker = JSX(() => {
6068
6088
  const [status, setStatus] = useState(STATUS_TYPE.process);
6069
6089
  const [taskId] = useLocalStorage('taskId');
6070
6090
  useEffect(() => {
6071
- for (const signalType of SIGNAL_TYPES) {
6091
+ for (const signalType of SIGNAL_TYPES$1) {
6072
6092
  sendSignalToProcess({ signalType, taskId });
6073
6093
  }
6074
- const trackStatus = () => getTaskStatus({ taskId: TASK_ID }).then((res) => {
6094
+ const trackStatus = () => getTaskStatus({ taskId }).then((res) => {
6075
6095
  if (res.statusCd && res.statusCd !== STATUS_TYPE.process) {
6076
6096
  clearInterval(pullingInterval);
6077
6097
  setStatus(res.statusCd);
@@ -6079,27 +6099,24 @@
6079
6099
  });
6080
6100
  const pullingInterval = setInterval(trackStatus, 30000);
6081
6101
  }, []);
6082
- return renderStatus(status);
6102
+ return renderStatus$1(status);
6083
6103
  });
6084
- const renderStatus = (status) => {
6104
+ const renderStatus$1 = (status) => {
6085
6105
  const statusesMap = {
6086
- IN_PROCESS: jsx(PendingStatusContent, {}),
6087
- FAILED: jsx(FailedStatusContent, {}),
6088
- OK: jsx(SuccessStatusContent, {}),
6089
- REWORK: jsx(ReworkStatusContent, {}),
6106
+ IN_PROCESS: jsx(PendingStatusContent$1, {}),
6107
+ FAILED: jsx(FailedStatusContent$1, {}),
6108
+ OK: jsx(SuccessStatusContent$1, {}),
6109
+ REWORK: jsx(ReworkStatusContent$1, {}),
6090
6110
  };
6091
6111
  return statusesMap[status] || null;
6092
6112
  };
6093
6113
 
6094
- const formStateMap = {
6114
+ /* eslint-disable max-lines */
6115
+ const formStateMap$1 = {
6095
6116
  0: {
6096
- moneyValue: 0,
6097
- monthsValue: 0,
6098
- isAnnuity: false,
6099
- isInsurance: false,
6100
- isSalaryClient: false,
6101
- isPensionClient: false,
6102
- isStateEmployee: false,
6117
+ paymentSystem: PAYMENT_SYSTEM_TYPES[0].id,
6118
+ currency: 'rub',
6119
+ codeWord: '',
6103
6120
  },
6104
6121
  1: {
6105
6122
  surname: '',
@@ -6125,6 +6142,11 @@
6125
6142
  fiasCode: '',
6126
6143
  },
6127
6144
  housing: '',
6145
+ methodObtain: 'office',
6146
+ addressCourier: {
6147
+ fullAddress: '',
6148
+ fiasCode: '',
6149
+ },
6128
6150
  },
6129
6151
  2: {
6130
6152
  amountWorkers: { key: '', text: '' },
@@ -6151,7 +6173,6 @@
6151
6173
  familyStatus: { key: '', text: '' },
6152
6174
  dependents: undefined,
6153
6175
  familyMembers: undefined,
6154
- confirmationIncome: { key: '', text: '' },
6155
6176
  mandatoryIncome: undefined,
6156
6177
  otherPayments: undefined,
6157
6178
  snils: '',
@@ -6166,12 +6187,21 @@
6166
6187
  },
6167
6188
  5: {
6168
6189
  regionRetail: '',
6169
- addressRetail: '',
6190
+ addressRetail: {
6191
+ fullAddress: '',
6192
+ fiasCode: '',
6193
+ },
6170
6194
  bankEmployeeCode: '',
6195
+ addressCoutier: {
6196
+ fullAddress: '',
6197
+ fiasCode: '',
6198
+ },
6199
+ methodObtain: 'office',
6200
+ deliveryDate: undefined,
6171
6201
  },
6172
6202
  };
6173
6203
 
6174
- const getInitialFormState = (step, localStorageData) => {
6204
+ const getInitialFormState$1 = (step, localStorageData) => {
6175
6205
  if (localStorageData) {
6176
6206
  // TODO: Fill in for other fields with type Date
6177
6207
  // TODO: Take it out to the helper
@@ -6189,28 +6219,71 @@
6189
6219
  : undefined;
6190
6220
  }
6191
6221
  return {
6192
- ...formStateMap[step],
6222
+ ...formStateMap$1[step],
6193
6223
  ...localStorageData,
6194
6224
  };
6195
6225
  };
6196
6226
 
6197
- const renderInfo$1 = (inputs = []) => {
6227
+ const renderInfo$2 = (inputs = []) => {
6198
6228
  const infoInputs = inputs.filter((_) => _.fieldType === 'info');
6199
6229
  return infoInputs.length
6200
6230
  ? infoInputs.map(({ text, name }, i) => jsx(InfoCard, { __html: text }, `${name}_${i}`))
6201
6231
  : null;
6202
6232
  };
6203
6233
 
6204
- const renderInputs = ({ field, inputs }) => (inputs || [])?.map(getField(field, ''));
6234
+ const renderInputs$1 = ({ field, inputs }) => (inputs || [])?.map(getField(field, ''));
6205
6235
 
6206
- const renderStep$1 = ({ 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}`)));
6236
+ const renderLastStep = ({ sections, field, methodObtain }) => sections
6237
+ ?.filter(({ type }) => type === methodObtain || !type)
6238
+ .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}`)));
6239
+ const renderStep$2 = ({ sections, field, isLastStep, methodObtain }) => {
6240
+ if (isLastStep) {
6241
+ return renderLastStep({ sections, field, methodObtain });
6242
+ }
6243
+ 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}`)));
6244
+ };
6207
6245
 
6208
- const StepsNavigationButtons = JSX(({ step, onPrevStep }) => {
6246
+ const StepsNavigationButtons$1 = JSX(({ step, onPrevStep }) => {
6209
6247
  const isFirstStep = step === 0;
6210
- 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" })] }));
6248
+ 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" })] }));
6211
6249
  });
6212
6250
 
6213
- const getFirstStepData = (formData) => {
6251
+ const getFifthStepData = (formData) => {
6252
+ const { bankruptcyFlg, shareholderFlg, legalEntityName, creditInRshbCd } = formData;
6253
+ return {
6254
+ bankruptcyFlg,
6255
+ shareholderFlg,
6256
+ nameLegalEntity: legalEntityName,
6257
+ creditInRshbCd,
6258
+ };
6259
+ };
6260
+
6261
+ const getFirstStepData$1 = (formData) => {
6262
+ const { currency, paymentSystem, cardCategory, codeWord } = formData;
6263
+ return {
6264
+ currencyCode: currency,
6265
+ paymentSystemTypeCd: paymentSystem,
6266
+ classCard: cardCategory,
6267
+ codeWord: codeWord,
6268
+ };
6269
+ };
6270
+
6271
+ const getFourthStepData$1 = (formData) => {
6272
+ const { familyStatus, dependents, familyMembers, mandatoryIncome, otherPayments, snils, armyIdFlg, } = formData;
6273
+ return {
6274
+ maritalStatusCd: familyStatus,
6275
+ totalDependents: familyMembers,
6276
+ otherDependents: dependents,
6277
+ participantIncomes: getParticipantIncomes({
6278
+ mandatoryIncome,
6279
+ otherPayments,
6280
+ }),
6281
+ snils: snils?.replaceAll(' ', ''),
6282
+ armyIdFlg,
6283
+ };
6284
+ };
6285
+
6286
+ const getSecondStepData$1 = (formData) => {
6214
6287
  const { name, surname, middleName, birthday = '', phone = '', email, sex, birthPlace, dulIssueDateField = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, } = formData;
6215
6288
  return {
6216
6289
  birthDate: formatDate(birthday, true),
@@ -6239,17 +6312,7 @@
6239
6312
  };
6240
6313
  };
6241
6314
 
6242
- const getFourthStepData = (formData) => {
6243
- const { bankruptcyFlg, shareholderFlg, legalEntityName, creditInRshbCd } = formData;
6244
- return {
6245
- bankruptcyFlg,
6246
- shareholderFlg,
6247
- nameLegalEntity: legalEntityName,
6248
- creditInRshbCd,
6249
- };
6250
- };
6251
-
6252
- const getSecondStepData = (formData) => {
6315
+ const getThirdStepData$1 = (formData) => {
6253
6316
  const { employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
6254
6317
  return {
6255
6318
  employmentTypeCd: employment,
@@ -6272,60 +6335,805 @@
6272
6335
  };
6273
6336
  };
6274
6337
 
6275
- const getThirdStepData = (formData) => {
6276
- const { familyStatus, dependents, familyMembers, confirmationIncome, mandatoryIncome, otherPayments, snils, armyIdFlg, } = formData;
6338
+ const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => {
6277
6339
  return {
6278
- maritalStatusCd: familyStatus,
6279
- totalDependents: familyMembers,
6280
- incomeCertificateCd: confirmationIncome,
6281
- otherDependents: dependents,
6282
- participantIncomes: getParticipantIncomes({
6283
- mandatoryIncome,
6284
- otherPayments,
6285
- }),
6286
- snils: snils?.replaceAll(' ', ''),
6287
- armyIdFlg,
6288
- };
6289
- };
6290
-
6291
- const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => ({
6292
- sendToBank: true,
6293
- taskKind: 'UNITED',
6294
- task: {
6295
- taskSource: globalThis.location.origin,
6296
- id: taskId,
6297
- //TODO: Добавить id офиса
6298
- authorizedAgentId: formData?.bankEmployeeCode,
6299
- participants: [
6300
- {
6301
- id: participantId,
6302
- profile: {
6303
- id: profileId,
6304
- },
6305
- roleCd: {
6306
- key: 'BORROWER',
6307
- value: 'Заемщик',
6340
+ sendToBank: true,
6341
+ taskKind: 'UNITED',
6342
+ task: {
6343
+ taskSource: globalThis.location.origin,
6344
+ id: taskId,
6345
+ //TODO: Добавить id офиса
6346
+ authorizedAgentId: formData?.bankEmployeeCode,
6347
+ participants: [
6348
+ {
6349
+ id: participantId,
6350
+ profile: {
6351
+ id: profileId,
6352
+ },
6353
+ roleCd: {
6354
+ key: 'BORROWER',
6355
+ value: 'Заемщик',
6356
+ },
6357
+ ...getCurrentStepData$1(step, formData),
6308
6358
  },
6309
- ...getCurrentStepData(step, formData),
6310
- },
6311
- ],
6312
- esiaAccountTypeCd: {
6313
- key: formData?.esiaAccountTypeCd?.key,
6359
+ ],
6314
6360
  },
6315
- },
6316
- });
6317
- const getCurrentStepData = (step, formData) => {
6361
+ };
6362
+ };
6363
+ const getCurrentStepData$1 = (step, formData) => {
6318
6364
  switch (step) {
6365
+ case 0:
6366
+ return getFirstStepData$1(formData);
6319
6367
  case 1:
6320
- return getFirstStepData(formData);
6368
+ return getSecondStepData$1(formData);
6321
6369
  case 2:
6322
- return getSecondStepData(formData);
6370
+ return getThirdStepData$1(formData);
6323
6371
  case 3:
6324
- return getThirdStepData(formData);
6372
+ return getFourthStepData$1(formData);
6325
6373
  case 4:
6326
- return getFourthStepData(formData);
6374
+ return getFifthStepData(formData);
6375
+ case 5:
6376
+ return {
6377
+ //TODO: Сделать адаптер данных способа получения карты
6378
+ };
6327
6379
  default:
6328
- return getFirstStepData(formData);
6380
+ return {};
6381
+ }
6382
+ };
6383
+
6384
+ const useCreditCardFormAPI = ({ step, inputs, onNextStep, saveStep, finishForm, }) => {
6385
+ const [taskId] = useLocalStorage('taskId');
6386
+ const [profileId] = useLocalStorage('profileId');
6387
+ const [participantId] = useLocalStorage('participantId');
6388
+ const handleSubmit = useCallback(async (formData) => {
6389
+ const feedbackValidator = objectValidator(getObjectValidator(calculateInputs$1(formData, inputs, step)));
6390
+ if (!isValidationSuccess(feedbackValidator(formData))) {
6391
+ return console.warn('validation fail');
6392
+ }
6393
+ saveStep(formData);
6394
+ try {
6395
+ if (taskId && profileId && participantId) {
6396
+ await updateUserTask(getCreditCardFormTaskData({
6397
+ participantId,
6398
+ taskId,
6399
+ profileId,
6400
+ step,
6401
+ formData: formData,
6402
+ }));
6403
+ }
6404
+ }
6405
+ catch (ex) {
6406
+ return 'Fail';
6407
+ }
6408
+ onNextStep();
6409
+ if (step === 5) {
6410
+ finishForm?.(true);
6411
+ }
6412
+ return 'OK';
6413
+ }, []);
6414
+ return {
6415
+ handleSubmit,
6416
+ };
6417
+ };
6418
+ const calculateInputs$1 = (formData, inputs, step) => step === 2 && 'employment' in formData && formData?.employment?.key === 'RETIREE' ? [] : inputs;
6419
+
6420
+ const CreditCardFormStep = JSX(({ step, sections, onPrevStep, onNextStep, inputs, isFormFinished, finishForm }) => {
6421
+ const [localStorageData, saveStep] = useLocalStorage('leadForm');
6422
+ const initialState = getInitialFormState$1(step, localStorageData);
6423
+ const customSubmit = useRef(undefined);
6424
+ const registerSubmit = useCallback((submit) => {
6425
+ customSubmit.current = submit;
6426
+ }, []);
6427
+ const { handleSubmit } = useCreditCardFormAPI({
6428
+ step,
6429
+ inputs,
6430
+ onNextStep,
6431
+ saveStep,
6432
+ finishForm,
6433
+ });
6434
+ const [state, { field, onSubmit }] = useForm(initialState, {
6435
+ onSubmit: (formData, ev) => {
6436
+ handleSubmit({ ...formData, ...customSubmit.current?.(ev) });
6437
+ },
6438
+ });
6439
+ const methodObtain = 'methodObtain' in state ? state.methodObtain : undefined;
6440
+ return isFormFinished ? (jsx(CreditCardFormStatusTracker, {})) : (jsxs("form", { onSubmit: onSubmit, className: "space-y-m", children: [renderStep$2({
6441
+ sections,
6442
+ field,
6443
+ registerSubmit,
6444
+ methodObtain,
6445
+ isLastStep: step === 5,
6446
+ }), jsx(StepsNavigationButtons$1, { step: step, onPrevStep: onPrevStep })] }));
6447
+ });
6448
+
6449
+ /* eslint-disable max-lines */
6450
+ /* eslint-disable max-len */
6451
+ const stepsSectionsMap$1 = [
6452
+ [
6453
+ {
6454
+ title: 'Параметры карты',
6455
+ inputs: [],
6456
+ },
6457
+ {
6458
+ inputs: [
6459
+ { fieldType: 'common', name: 'currency', required: true },
6460
+ { fieldType: 'common', name: 'paymentSystem', required: true },
6461
+ { fieldType: 'common', name: 'cardCategory', required: true },
6462
+ { fieldType: 'common', name: 'codeWord', required: true },
6463
+ ],
6464
+ },
6465
+ ],
6466
+ [
6467
+ {
6468
+ title: 'Персональные данные',
6469
+ columns: 2,
6470
+ inputs: [
6471
+ {
6472
+ fieldType: 'common',
6473
+ name: 'surname',
6474
+ required: true,
6475
+ dadata: true,
6476
+ filledByEsia: true,
6477
+ },
6478
+ { fieldType: 'common', name: 'name', required: true, dadata: true, filledByEsia: true },
6479
+ { fieldType: 'common', name: 'middleName', dadata: true, filledByEsia: true },
6480
+ { fieldType: 'common', name: 'sex', required: true },
6481
+ { fieldType: 'common', name: 'birthday', required: true, filledByEsia: true },
6482
+ { fieldType: 'common', name: 'birthPlace', required: true },
6483
+ { fieldType: 'common', name: 'phone', required: true },
6484
+ { fieldType: 'common', name: 'email', required: true, dadata: true },
6485
+ ],
6486
+ },
6487
+ {
6488
+ title: 'Паспортные данные',
6489
+ columns: 2,
6490
+ inputs: [
6491
+ { fieldType: 'common', name: 'dulSerie', required: true, filledByEsia: true },
6492
+ { fieldType: 'common', name: 'dulNumber', required: true, filledByEsia: true },
6493
+ { fieldType: 'common', name: 'dulIssueDateField', required: true, filledByEsia: true },
6494
+ {
6495
+ fieldType: 'common',
6496
+ name: 'dulSubdivisionCode',
6497
+ required: true,
6498
+ dadata: true,
6499
+ filledByEsia: true,
6500
+ },
6501
+ ],
6502
+ },
6503
+ {
6504
+ inputs: [
6505
+ {
6506
+ fieldType: 'common',
6507
+ name: 'dulIssuedBy',
6508
+ required: true,
6509
+ dadata: true,
6510
+ filledByEsia: true,
6511
+ },
6512
+ {
6513
+ fieldType: 'common',
6514
+ name: 'education',
6515
+ required: true,
6516
+ },
6517
+ ],
6518
+ },
6519
+ {
6520
+ title: 'Адрес регистрации по месту жительства',
6521
+ columns: 1,
6522
+ inputs: [],
6523
+ },
6524
+ {
6525
+ inputs: [
6526
+ {
6527
+ fieldType: 'common',
6528
+ name: 'addressRegistration',
6529
+ required: true,
6530
+ dadata: true,
6531
+ filledByEsia: true,
6532
+ },
6533
+ { fieldType: 'common', name: 'addressMatch' },
6534
+ ],
6535
+ },
6536
+ {
6537
+ columns: 2,
6538
+ inputs: [{ fieldType: 'common', name: 'participantDateRegistration', required: true }],
6539
+ },
6540
+ {
6541
+ title: 'Адрес фактического проживания (место пребывания РФ)',
6542
+ inputs: [],
6543
+ },
6544
+ {
6545
+ columns: 2,
6546
+ inputs: [{ fieldType: 'common', name: 'housing', required: true }],
6547
+ },
6548
+ {
6549
+ inputs: [{ fieldType: 'common', name: 'addressFact', required: true, dadata: true }],
6550
+ },
6551
+ ],
6552
+ [
6553
+ {
6554
+ title: 'Данные о трудоустройстве',
6555
+ inputs: [],
6556
+ },
6557
+ {
6558
+ inputs: [
6559
+ {
6560
+ fieldType: 'info',
6561
+ text: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
6562
+ },
6563
+ ],
6564
+ },
6565
+ {
6566
+ inputs: [
6567
+ { fieldType: 'common', name: 'employment' },
6568
+ { fieldType: 'common', name: 'organizationName', required: true, dadata: true },
6569
+ ],
6570
+ },
6571
+ {
6572
+ columns: 2,
6573
+ inputs: [
6574
+ { fieldType: 'common', name: 'inn', required: true, dadata: true },
6575
+ { fieldType: 'common', name: 'legalForm', required: true },
6576
+ ],
6577
+ },
6578
+ {
6579
+ inputs: [
6580
+ { fieldType: 'common', name: 'organization', required: false },
6581
+ { fieldType: 'common', name: 'amountWorkers', required: false },
6582
+ ],
6583
+ },
6584
+ {
6585
+ columns: 2,
6586
+ inputs: [
6587
+ { fieldType: 'common', name: 'employerActivities', required: false },
6588
+ { fieldType: 'common', name: 'employerOrganization', required: false },
6589
+ { fieldType: 'common', name: 'generalSeniority', required: true },
6590
+ { fieldType: 'common', name: 'lastJobExperience', required: true },
6591
+ { fieldType: 'common', name: 'experience5Years', required: true },
6592
+ { fieldType: 'common', name: 'jobsNumber', required: true },
6593
+ ],
6594
+ },
6595
+ {
6596
+ inputs: [
6597
+ {
6598
+ fieldType: 'common',
6599
+ name: 'organizationPhone',
6600
+ label: 'Телефон работодателя',
6601
+ required: true,
6602
+ },
6603
+ { fieldType: 'common', name: 'beginDate', required: true },
6604
+ ],
6605
+ },
6606
+ {
6607
+ columns: 2,
6608
+ inputs: [
6609
+ { fieldType: 'common', name: 'positionOrganization', required: false },
6610
+ { fieldType: 'common', name: 'partInBusiness', required: true },
6611
+ ],
6612
+ },
6613
+ {
6614
+ title: 'Адрес работодателя',
6615
+ inputs: [],
6616
+ },
6617
+ {
6618
+ inputs: [{ fieldType: 'common', name: 'organizationAddress', required: true, dadata: true }],
6619
+ },
6620
+ ],
6621
+ [
6622
+ {
6623
+ title: 'Семейное положение',
6624
+ },
6625
+ {
6626
+ columns: 1,
6627
+ inputs: [{ fieldType: 'common', name: 'familyStatus', required: true }],
6628
+ },
6629
+ {
6630
+ columns: 1,
6631
+ inputs: [{ fieldType: 'common', name: 'dependents', required: true }],
6632
+ },
6633
+ {
6634
+ columns: 2,
6635
+ inputs: [
6636
+ { fieldType: 'common', name: 'familyMembers' },
6637
+ { fieldType: 'common', name: 'children', required: true },
6638
+ ],
6639
+ },
6640
+ {
6641
+ title: 'Совокупный доход',
6642
+ },
6643
+ {
6644
+ inputs: [
6645
+ {
6646
+ fieldType: 'info',
6647
+ text: 'Сумма основного и дополнительных доходов после вычета налога',
6648
+ },
6649
+ ],
6650
+ },
6651
+ {
6652
+ columns: 1,
6653
+ inputs: [{ fieldType: 'common', name: 'mandatoryIncome', required: true }],
6654
+ },
6655
+ {
6656
+ columns: 1,
6657
+ inputs: [{ fieldType: 'common', name: 'otherPayments', required: true }],
6658
+ },
6659
+ {
6660
+ columns: 1,
6661
+ inputs: [{ fieldType: 'common', name: 'snils', required: true }],
6662
+ },
6663
+ {
6664
+ columns: 1,
6665
+ inputs: [{ fieldType: 'common', name: 'conscription', required: true }],
6666
+ },
6667
+ {
6668
+ columns: 2,
6669
+ inputs: [{ fieldType: 'common', name: 'armyIdFlg' }],
6670
+ },
6671
+ ],
6672
+ [
6673
+ {
6674
+ title: 'Дополнительные сведения',
6675
+ columns: 1,
6676
+ inputs: [],
6677
+ },
6678
+ {
6679
+ inputs: [{ fieldType: 'common', name: 'disablePeopleFlg' }],
6680
+ },
6681
+ {
6682
+ inputs: [{ fieldType: 'common', name: 'bankruptcyFlg' }],
6683
+ },
6684
+ {
6685
+ inputs: [{ fieldType: 'common', name: 'shareholderFlg' }],
6686
+ },
6687
+ {
6688
+ inputs: [{ fieldType: 'common', name: 'legalEntityName' }],
6689
+ },
6690
+ {
6691
+ inputs: [{ fieldType: 'common', name: 'creditInRshbCd' }],
6692
+ },
6693
+ ],
6694
+ [
6695
+ {
6696
+ title: 'Способ получения',
6697
+ columns: 1,
6698
+ inputs: [],
6699
+ },
6700
+ {
6701
+ inputs: [{ fieldType: 'common', name: 'methodObtain' }],
6702
+ },
6703
+ {
6704
+ type: 'courier',
6705
+ title: 'Адрес',
6706
+ columns: 1,
6707
+ inputs: [],
6708
+ },
6709
+ {
6710
+ type: 'courier',
6711
+ inputs: [{ fieldType: 'common', name: 'addressCourier', dadata: true }],
6712
+ },
6713
+ {
6714
+ type: 'courier',
6715
+ inputs: [{ fieldType: 'common', name: 'deliveryDate' }],
6716
+ },
6717
+ {
6718
+ type: 'courier',
6719
+ inputs: [{ fieldType: 'common', name: 'comment' }],
6720
+ },
6721
+ {
6722
+ type: 'office',
6723
+ title: 'Отделение Банка',
6724
+ columns: 1,
6725
+ inputs: [],
6726
+ },
6727
+ {
6728
+ type: 'office',
6729
+ inputs: [{ fieldType: 'common', name: 'regionRetail', required: true }],
6730
+ },
6731
+ {
6732
+ type: 'office',
6733
+ inputs: [{ fieldType: 'common', name: 'addressRetail', required: true }],
6734
+ },
6735
+ {
6736
+ type: 'office',
6737
+ title: 'Код представителя Банка',
6738
+ columns: 1,
6739
+ inputs: [],
6740
+ },
6741
+ {
6742
+ type: 'office',
6743
+ inputs: [
6744
+ {
6745
+ fieldType: 'info',
6746
+ text: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
6747
+ },
6748
+ ],
6749
+ },
6750
+ {
6751
+ type: 'office',
6752
+ inputs: [{ fieldType: 'common', name: 'bankEmployeeCode' }],
6753
+ },
6754
+ ],
6755
+ ];
6756
+
6757
+ const WIZARD_STEPS$1 = 6;
6758
+ const WIZARD_TITLES$1 = [
6759
+ 'Параметры карты',
6760
+ 'Персональные данные',
6761
+ 'Данные о трудоустройстве',
6762
+ 'Данные о доходах и расходах',
6763
+ 'Дополнительные сведения',
6764
+ 'Выбор способа получения',
6765
+ ];
6766
+ const CreditCardForm = JSX(({ className, ...rest }) => {
6767
+ const [step, setStep] = useState(0);
6768
+ const handleNextStep = useCallback(() => {
6769
+ setStep((_) => Math.min(_ + 1, WIZARD_STEPS$1));
6770
+ }, []);
6771
+ const handlePrevStep = useCallback(() => {
6772
+ //TODO search hook - 1,
6773
+ setStep((_) => Math.max(_ - 1, 0));
6774
+ }, []);
6775
+ const sections = useMemo(() => stepsSectionsMap$1[step], [step]);
6776
+ const inputs = (sections?.flatMap((_) => _?.inputs) || []);
6777
+ const [isFormFinished, setIsFormFinished] = useState(false);
6778
+ 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)) })] }) }));
6779
+ });
6780
+
6781
+ const CreditFormProgress = JSX(({ step = 1, totalSteps = 5, stepsTitles = [] }) => {
6782
+ const progress = useMemo(() => (step / totalSteps) * 100, [step, totalSteps]);
6783
+ 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 })] }) }));
6784
+ });
6785
+
6786
+ 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: {
6787
+ text: infoCard?.link?.text,
6788
+ } })) : null, buttonText ? (jsx(LinkButton, { href: "/natural", text: buttonText, version: "primary", className: "w-full mt-lg" })) : null] })));
6789
+ const SectionInfo = ({ title, items, countColumns = false, }) => {
6790
+ const isMobile = useMobileMode();
6791
+ if (!items) {
6792
+ return null;
6793
+ }
6794
+ 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] })] }));
6795
+ };
6796
+ 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 })] }));
6797
+
6798
+ 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" })));
6799
+
6800
+ const PendingStatusContent = JSX(() => {
6801
+ const [leadForm] = useLocalStorage('leadForm');
6802
+ 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: [
6803
+ {
6804
+ label: 'Название продукта',
6805
+ description: 'Кредит на любые цели',
6806
+ },
6807
+ {
6808
+ label: 'Цель кредита',
6809
+ description: 'На любые цели',
6810
+ },
6811
+ {
6812
+ label: 'Сумма',
6813
+ description: leadForm?.moneyValue?.toLocaleString() + ' ₽',
6814
+ },
6815
+ {
6816
+ label: 'Срок кредита',
6817
+ description: leadForm?.monthsValue + ' мес',
6818
+ },
6819
+ {
6820
+ label: 'Тип платежа',
6821
+ description: leadForm?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
6822
+ },
6823
+ ] }));
6824
+ });
6825
+
6826
+ const ReworkStatusContent = JSX(() => {
6827
+ const [leadForm] = useLocalStorage('leadForm');
6828
+ 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: [
6829
+ {
6830
+ label: 'Регион',
6831
+ description: leadForm?.regionRetail?.text,
6832
+ },
6833
+ {
6834
+ label: 'Адрес',
6835
+ description: leadForm?.addressRetail?.text,
6836
+ },
6837
+ ], sectionInfo: [
6838
+ {
6839
+ label: 'Основные документы:',
6840
+ description: '- Паспорт РФ',
6841
+ },
6842
+ ], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
6843
+ });
6844
+
6845
+ const SuccessStatusContent = JSX(() => {
6846
+ const [leadForm] = useLocalStorage('leadForm');
6847
+ 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: [
6848
+ {
6849
+ label: 'Название продукта',
6850
+ description: 'Кредит на любые цели',
6851
+ },
6852
+ {
6853
+ label: 'Ставка',
6854
+ description: '14,5%',
6855
+ },
6856
+ {
6857
+ label: 'Ежемесячный платеж',
6858
+ description: '86 052 ₽',
6859
+ },
6860
+ {
6861
+ label: 'Срок кредита',
6862
+ description: leadForm?.monthsValue + ' мес',
6863
+ },
6864
+ {
6865
+ label: 'Тип платежа',
6866
+ description: leadForm?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
6867
+ },
6868
+ ], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
6869
+ });
6870
+
6871
+ const SIGNAL_TYPES = [
6872
+ 'CREATE_APPLICATION_SHORT_SIGNAL',
6873
+ 'CREATE_APPLICATION_LOAN_V3_SIGNAL',
6874
+ ];
6875
+ const CreditFormStatusTracker = JSX(() => {
6876
+ const [status, setStatus] = useState(STATUS_TYPE.process);
6877
+ const [taskId] = useLocalStorage('taskId');
6878
+ useEffect(() => {
6879
+ for (const signalType of SIGNAL_TYPES) {
6880
+ sendSignalToProcess({ signalType, taskId });
6881
+ }
6882
+ const trackStatus = () => getTaskStatus({ taskId }).then((res) => {
6883
+ if (res.statusCd && res.statusCd !== STATUS_TYPE.process) {
6884
+ clearInterval(pullingInterval);
6885
+ setStatus(res.statusCd);
6886
+ }
6887
+ });
6888
+ const pullingInterval = setInterval(trackStatus, 30000);
6889
+ }, []);
6890
+ return renderStatus(status);
6891
+ });
6892
+ const renderStatus = (status) => {
6893
+ const statusesMap = {
6894
+ IN_PROCESS: jsx(PendingStatusContent, {}),
6895
+ FAILED: jsx(FailedStatusContent, {}),
6896
+ OK: jsx(SuccessStatusContent, {}),
6897
+ REWORK: jsx(ReworkStatusContent, {}),
6898
+ };
6899
+ return statusesMap[status] || null;
6900
+ };
6901
+
6902
+ const formStateMap = {
6903
+ 0: {
6904
+ moneyValue: 0,
6905
+ monthsValue: 0,
6906
+ isAnnuity: false,
6907
+ isInsurance: false,
6908
+ isSalaryClient: false,
6909
+ isPensionClient: false,
6910
+ isStateEmployee: false,
6911
+ },
6912
+ 1: {
6913
+ surname: '',
6914
+ name: '',
6915
+ middleName: '',
6916
+ sex: '',
6917
+ birthday: undefined,
6918
+ birthPlace: '',
6919
+ phone: '',
6920
+ email: '',
6921
+ dulSerie: undefined,
6922
+ dulNumber: undefined,
6923
+ dulIssueDateField: undefined,
6924
+ dulSubdivisionCode: '',
6925
+ dulIssuedBy: '',
6926
+ addressRegistration: {
6927
+ fullAddress: '',
6928
+ fiasCode: '',
6929
+ },
6930
+ participantDateRegistration: undefined,
6931
+ addressFact: {
6932
+ fullAddress: '',
6933
+ fiasCode: '',
6934
+ },
6935
+ housing: '',
6936
+ },
6937
+ 2: {
6938
+ amountWorkers: { key: '', text: '' },
6939
+ beginDate: undefined,
6940
+ employerActivities: { key: '', text: '' },
6941
+ employerOrganization: { key: '', text: '' },
6942
+ employment: { key: '', text: '' },
6943
+ experience5Years: '',
6944
+ inn: undefined,
6945
+ jobsNumber: '',
6946
+ lastJobExperience: '',
6947
+ legalForm: '',
6948
+ organization: { key: '', text: '' },
6949
+ organizationAddress: {
6950
+ fullAddress: '',
6951
+ fiasCode: '',
6952
+ },
6953
+ organizationName: '',
6954
+ organizationPhone: '',
6955
+ partInBusiness: undefined,
6956
+ positionOrganization: { key: '', text: '' },
6957
+ },
6958
+ 3: {
6959
+ familyStatus: { key: '', text: '' },
6960
+ dependents: undefined,
6961
+ familyMembers: undefined,
6962
+ confirmationIncome: { key: '', text: '' },
6963
+ mandatoryIncome: undefined,
6964
+ otherPayments: undefined,
6965
+ snils: '',
6966
+ armyIdFlg: false,
6967
+ },
6968
+ 4: {
6969
+ disablePeopleFlg: false,
6970
+ bankruptcyFlg: false,
6971
+ shareholderFlg: false,
6972
+ legalEntityName: '',
6973
+ creditInRshbCd: undefined,
6974
+ },
6975
+ 5: {
6976
+ regionRetail: '',
6977
+ addressRetail: '',
6978
+ bankEmployeeCode: '',
6979
+ },
6980
+ };
6981
+
6982
+ const getInitialFormState = (step, localStorageData) => {
6983
+ if (localStorageData) {
6984
+ // TODO: Fill in for other fields with type Date
6985
+ // TODO: Take it out to the helper
6986
+ localStorageData.birthday = localStorageData.birthday
6987
+ ? new Date(localStorageData.birthday)
6988
+ : undefined;
6989
+ localStorageData.dulIssueDateField = localStorageData.dulIssueDateField
6990
+ ? new Date(localStorageData.dulIssueDateField)
6991
+ : undefined;
6992
+ localStorageData.participantDateRegistration = localStorageData.participantDateRegistration
6993
+ ? new Date(localStorageData.participantDateRegistration)
6994
+ : undefined;
6995
+ localStorageData.beginDate = localStorageData?.beginDate
6996
+ ? new Date(localStorageData.beginDate)
6997
+ : undefined;
6998
+ }
6999
+ return {
7000
+ ...formStateMap[step],
7001
+ ...localStorageData,
7002
+ };
7003
+ };
7004
+
7005
+ const renderInfo$1 = (inputs = []) => {
7006
+ const infoInputs = inputs.filter((_) => _.fieldType === 'info');
7007
+ return infoInputs.length
7008
+ ? infoInputs.map(({ text, name }, i) => jsx(InfoCard, { __html: text }, `${name}_${i}`))
7009
+ : null;
7010
+ };
7011
+
7012
+ const renderInputs = ({ field, inputs }) => (inputs || [])?.map(getField(field, ''));
7013
+
7014
+ const renderStep$1 = ({ 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}`)));
7015
+
7016
+ const StepsNavigationButtons = JSX(({ step, onPrevStep }) => {
7017
+ const isFirstStep = step === 0;
7018
+ 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" })] }));
7019
+ });
7020
+
7021
+ const getFirstStepData = (formData) => {
7022
+ const { name, surname, middleName, birthday = '', phone = '', email, sex, birthPlace, dulIssueDateField = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, } = formData;
7023
+ return {
7024
+ birthDate: formatDate(birthday, true),
7025
+ midname: middleName,
7026
+ name,
7027
+ surname,
7028
+ birthPlace,
7029
+ dulIssueDate: formatDate(dulIssueDateField, true),
7030
+ dulIssuedBy,
7031
+ dulNumber,
7032
+ dulSerie,
7033
+ dulSubdivisionCode,
7034
+ educationLevelCd: education,
7035
+ registrationDate: formatDate(participantDateRegistration, true),
7036
+ houseTypeCd: housing,
7037
+ participantContacts: getParticipantContacts({
7038
+ phone: formatPhone(phone),
7039
+ email,
7040
+ }),
7041
+ participantAddresses: getParticipantAddresses({ addressRegistration, addressFact }),
7042
+ genderCd: sex
7043
+ ? {
7044
+ key: sex === 'male' ? 'MAN' : 'WOMAN',
7045
+ }
7046
+ : undefined,
7047
+ };
7048
+ };
7049
+
7050
+ const getFourthStepData = (formData) => {
7051
+ const { bankruptcyFlg, shareholderFlg, legalEntityName, creditInRshbCd } = formData;
7052
+ return {
7053
+ bankruptcyFlg,
7054
+ shareholderFlg,
7055
+ nameLegalEntity: legalEntityName,
7056
+ creditInRshbCd,
7057
+ };
7058
+ };
7059
+
7060
+ const getSecondStepData = (formData) => {
7061
+ const { employment, organizationName, inn, legalForm, organization, amountWorkers, employerActivities, employerOrganization, generalSeniority, lastJobExperience, experience5Years, jobsNumber, organizationPhone, organizationAddress, positionOrganization, } = formData;
7062
+ return {
7063
+ employmentTypeCd: employment,
7064
+ organizationName,
7065
+ organizationInn: inn,
7066
+ organizationActivityTypeCd: employerActivities,
7067
+ organizationTypeCd: organization,
7068
+ organizationKindCd: employerOrganization,
7069
+ employeesNumberCd: amountWorkers,
7070
+ opf: legalForm,
7071
+ seniority: generalSeniority,
7072
+ generalSeniority: experience5Years,
7073
+ jobsNumber,
7074
+ lastWorkDuration: lastJobExperience,
7075
+ positionCd: positionOrganization,
7076
+ participantContacts: getParticipantContacts({
7077
+ organizationPhone: organizationPhone && formatPhone(organizationPhone),
7078
+ }),
7079
+ participantAddresses: getParticipantAddresses({ organizationAddress }),
7080
+ };
7081
+ };
7082
+
7083
+ const getThirdStepData = (formData) => {
7084
+ const { familyStatus, dependents, familyMembers, confirmationIncome, mandatoryIncome, otherPayments, snils, armyIdFlg, } = formData;
7085
+ return {
7086
+ maritalStatusCd: familyStatus,
7087
+ totalDependents: familyMembers,
7088
+ incomeCertificateCd: confirmationIncome,
7089
+ otherDependents: dependents,
7090
+ participantIncomes: getParticipantIncomes({
7091
+ mandatoryIncome,
7092
+ otherPayments,
7093
+ }),
7094
+ snils: snils?.replaceAll(' ', ''),
7095
+ armyIdFlg,
7096
+ };
7097
+ };
7098
+
7099
+ const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => ({
7100
+ sendToBank: true,
7101
+ taskKind: 'UNITED',
7102
+ task: {
7103
+ taskSource: globalThis.location.origin,
7104
+ id: taskId,
7105
+ //TODO: Добавить id офиса
7106
+ authorizedAgentId: formData?.bankEmployeeCode,
7107
+ participants: [
7108
+ {
7109
+ id: participantId,
7110
+ profile: {
7111
+ id: profileId,
7112
+ },
7113
+ roleCd: {
7114
+ key: 'BORROWER',
7115
+ value: 'Заемщик',
7116
+ },
7117
+ ...getCurrentStepData(step, formData),
7118
+ },
7119
+ ],
7120
+ esiaAccountTypeCd: {
7121
+ key: formData?.esiaAccountTypeCd?.key,
7122
+ },
7123
+ },
7124
+ });
7125
+ const getCurrentStepData = (step, formData) => {
7126
+ switch (step) {
7127
+ case 1:
7128
+ return getFirstStepData(formData);
7129
+ case 2:
7130
+ return getSecondStepData(formData);
7131
+ case 3:
7132
+ return getThirdStepData(formData);
7133
+ case 4:
7134
+ return getFourthStepData(formData);
7135
+ default:
7136
+ return {};
6329
7137
  }
6330
7138
  };
6331
7139
 
@@ -8752,6 +9560,7 @@
8752
9560
  CarouselRecommendationCard,
8753
9561
  CarouselTariffsCard,
8754
9562
  ContactsBlock,
9563
+ CreditCardForm,
8755
9564
  CreditForm,
8756
9565
  DepositFiltration,
8757
9566
  Depository,
@@ -8959,7 +9768,7 @@
8959
9768
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
8960
9769
  });
8961
9770
 
8962
- const packageVersion = "0.14.650";
9771
+ const packageVersion = "0.14.651";
8963
9772
 
8964
9773
  exports.Blocks = Blocks;
8965
9774
  exports.ContentPage = ContentPage;