@redneckz/wildless-cms-uni-blocks 0.14.865 → 0.14.867

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 (443) hide show
  1. package/bundle/bundle.umd.js +586 -435
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  4. package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  5. package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  6. package/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  7. package/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  8. package/bundle/retail/api/createUserTaskDebit.d.ts +3 -1
  9. package/bundle/retail/api/updateUserTask.d.ts +3 -2
  10. package/bundle/retail/api/updateUserTaskDebit.d.ts +1 -1
  11. package/bundle/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  12. package/bundle/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  13. package/bundle/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +7 -2
  14. package/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -2
  15. package/bundle/retail/content.d.ts +2 -8
  16. package/bundle/retail/inputs.d.ts +1 -1
  17. package/bundle/retail/model/LeadFormState.d.ts +4 -2
  18. package/bundle/retail/model/NameFieldDef.d.ts +1 -1
  19. package/bundle/retail/model/ReferalData.d.ts +0 -1
  20. package/bundle/retail/utils/getMainFormStateMap.d.ts +2 -0
  21. package/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
  22. package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  23. package/dist/components/ApplicationLeadForm/consents.js +0 -4
  24. package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  25. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  26. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
  27. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  28. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
  29. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  30. package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  31. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
  32. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  33. package/dist/components/CreditCardForm/creditCardFormStepsData.js +245 -3
  34. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  35. package/dist/components/CreditCardForm/formStateMap.js +2 -2
  36. package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
  37. package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  38. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
  39. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  40. package/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
  41. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  42. package/dist/components/CreditForm/CreditForm.js +1 -2
  43. package/dist/components/CreditForm/CreditForm.js.map +1 -1
  44. package/dist/components/CreditForm/creditFormStepsData.js +192 -3
  45. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  46. package/dist/components/CreditForm/formStateMap.js +2 -2
  47. package/dist/components/CreditForm/formStateMap.js.map +1 -1
  48. package/dist/components/CreditForm/useCreditFormAPI.js +1 -3
  49. package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  50. package/dist/components/DebitForm/DebitFormStepsData.js +71 -3
  51. package/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
  52. package/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  53. package/dist/components/DebitForm/getDebitCardFormTaskData.js +16 -22
  54. package/dist/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
  55. package/dist/components/DebitForm/useDebitFormAPI.js +0 -2
  56. package/dist/components/DebitForm/useDebitFormAPI.js.map +1 -1
  57. package/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  58. package/dist/retail/adaptors/getCreditFormTaskData.js +24 -33
  59. package/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  60. package/dist/retail/adaptors/getEmploymentData.js +3 -3
  61. package/dist/retail/adaptors/getEmploymentData.js.map +1 -1
  62. package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
  63. package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  64. package/dist/retail/adaptors/getPersonalInfoData.js +4 -2
  65. package/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
  66. package/dist/retail/api/checkCode.js +1 -1
  67. package/dist/retail/api/checkCode.js.map +1 -1
  68. package/dist/retail/api/createUserTaskDebit.d.ts +3 -1
  69. package/dist/retail/api/createUserTaskDebit.js.map +1 -1
  70. package/dist/retail/api/updateUserTask.d.ts +3 -2
  71. package/dist/retail/api/updateUserTask.js.map +1 -1
  72. package/dist/retail/api/updateUserTaskDebit.d.ts +1 -1
  73. package/dist/retail/components/DraftDialog/DraftDialog.js +1 -2
  74. package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  75. package/dist/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  76. package/dist/retail/components/DraftDialog/parseDraftTask.js +2 -3
  77. package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  78. package/dist/retail/components/Fields/DaDataInnField.js +10 -3
  79. package/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
  80. package/dist/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  81. package/dist/retail/components/Fields/InitiateBankruptcyFlgField.js +7 -0
  82. package/dist/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
  83. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +7 -2
  84. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +19 -10
  85. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  86. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -2
  87. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +21 -10
  88. package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  89. package/dist/retail/content.d.ts +2 -8
  90. package/dist/retail/content.js +3 -361
  91. package/dist/retail/content.js.map +1 -1
  92. package/dist/retail/inputs.d.ts +1 -1
  93. package/dist/retail/inputs.js +2 -1
  94. package/dist/retail/inputs.js.map +1 -1
  95. package/dist/retail/model/LeadFormState.d.ts +4 -2
  96. package/dist/retail/model/NameFieldDef.d.ts +1 -1
  97. package/dist/retail/model/ReferalData.d.ts +0 -1
  98. package/dist/retail/utils/getMainFormStateMap.d.ts +2 -0
  99. package/dist/retail/utils/{mainFormStateMap.js → getMainFormStateMap.js} +6 -4
  100. package/dist/retail/utils/getMainFormStateMap.js.map +1 -0
  101. package/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
  102. package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  103. package/lib/components/ApplicationLeadForm/consents.js +0 -4
  104. package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  105. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  106. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
  107. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  108. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
  109. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  110. package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  111. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
  112. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  113. package/lib/components/CreditCardForm/creditCardFormStepsData.js +244 -2
  114. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  115. package/lib/components/CreditCardForm/formStateMap.js +2 -2
  116. package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
  117. package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  118. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
  119. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  120. package/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
  121. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  122. package/lib/components/CreditForm/CreditForm.js +1 -2
  123. package/lib/components/CreditForm/CreditForm.js.map +1 -1
  124. package/lib/components/CreditForm/creditFormStepsData.js +191 -2
  125. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  126. package/lib/components/CreditForm/formStateMap.js +2 -2
  127. package/lib/components/CreditForm/formStateMap.js.map +1 -1
  128. package/lib/components/CreditForm/useCreditFormAPI.js +1 -3
  129. package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  130. package/lib/components/DebitForm/DebitFormStepsData.js +70 -2
  131. package/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
  132. package/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  133. package/lib/components/DebitForm/getDebitCardFormTaskData.js +16 -22
  134. package/lib/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
  135. package/lib/components/DebitForm/useDebitFormAPI.js +0 -2
  136. package/lib/components/DebitForm/useDebitFormAPI.js.map +1 -1
  137. package/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  138. package/lib/retail/adaptors/getCreditFormTaskData.js +24 -33
  139. package/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  140. package/lib/retail/adaptors/getEmploymentData.js +3 -3
  141. package/lib/retail/adaptors/getEmploymentData.js.map +1 -1
  142. package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
  143. package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  144. package/lib/retail/adaptors/getPersonalInfoData.js +4 -2
  145. package/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
  146. package/lib/retail/api/checkCode.js +1 -1
  147. package/lib/retail/api/checkCode.js.map +1 -1
  148. package/lib/retail/api/createUserTaskDebit.d.ts +3 -1
  149. package/lib/retail/api/createUserTaskDebit.js.map +1 -1
  150. package/lib/retail/api/updateUserTask.d.ts +3 -2
  151. package/lib/retail/api/updateUserTask.js.map +1 -1
  152. package/lib/retail/api/updateUserTaskDebit.d.ts +1 -1
  153. package/lib/retail/components/DraftDialog/DraftDialog.js +1 -2
  154. package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  155. package/lib/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  156. package/lib/retail/components/DraftDialog/parseDraftTask.js +2 -3
  157. package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  158. package/lib/retail/components/Fields/DaDataInnField.js +10 -3
  159. package/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
  160. package/lib/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  161. package/lib/retail/components/Fields/InitiateBankruptcyFlgField.js +5 -0
  162. package/lib/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
  163. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +7 -2
  164. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +18 -9
  165. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  166. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -2
  167. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +21 -10
  168. package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  169. package/lib/retail/content.d.ts +2 -8
  170. package/lib/retail/content.js +2 -360
  171. package/lib/retail/content.js.map +1 -1
  172. package/lib/retail/inputs.d.ts +1 -1
  173. package/lib/retail/inputs.js +2 -1
  174. package/lib/retail/inputs.js.map +1 -1
  175. package/lib/retail/model/LeadFormState.d.ts +4 -2
  176. package/lib/retail/model/NameFieldDef.d.ts +1 -1
  177. package/lib/retail/model/ReferalData.d.ts +0 -1
  178. package/lib/retail/utils/getMainFormStateMap.d.ts +2 -0
  179. package/lib/retail/utils/{mainFormStateMap.js → getMainFormStateMap.js} +4 -3
  180. package/lib/retail/utils/getMainFormStateMap.js.map +1 -0
  181. package/mobile/bundle/bundle.umd.js +501 -333
  182. package/mobile/bundle/bundle.umd.min.js +1 -1
  183. package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  184. package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  185. package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  186. package/mobile/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  187. package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  188. package/mobile/bundle/retail/api/createUserTaskDebit.d.ts +3 -1
  189. package/mobile/bundle/retail/api/updateUserTask.d.ts +3 -2
  190. package/mobile/bundle/retail/api/updateUserTaskDebit.d.ts +1 -1
  191. package/mobile/bundle/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  192. package/mobile/bundle/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  193. package/mobile/bundle/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +7 -2
  194. package/mobile/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -2
  195. package/mobile/bundle/retail/content.d.ts +2 -8
  196. package/mobile/bundle/retail/inputs.d.ts +1 -1
  197. package/mobile/bundle/retail/model/LeadFormState.d.ts +4 -2
  198. package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
  199. package/mobile/bundle/retail/model/ReferalData.d.ts +0 -1
  200. package/mobile/bundle/retail/utils/getMainFormStateMap.d.ts +2 -0
  201. package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
  202. package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  203. package/mobile/dist/components/ApplicationLeadForm/consents.js +0 -4
  204. package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  205. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  206. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
  207. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  208. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
  209. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  210. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  211. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
  212. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  213. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +245 -3
  214. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  215. package/mobile/dist/components/CreditCardForm/formStateMap.js +2 -2
  216. package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
  217. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  218. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
  219. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  220. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
  221. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  222. package/mobile/dist/components/CreditForm/CreditForm.js +1 -2
  223. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
  224. package/mobile/dist/components/CreditForm/creditFormStepsData.js +192 -3
  225. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  226. package/mobile/dist/components/CreditForm/formStateMap.js +2 -2
  227. package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
  228. package/mobile/dist/components/CreditForm/useCreditFormAPI.js +1 -3
  229. package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  230. package/mobile/dist/components/DebitForm/DebitFormStepsData.js +71 -3
  231. package/mobile/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
  232. package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  233. package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.js +16 -22
  234. package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
  235. package/mobile/dist/components/DebitForm/useDebitFormAPI.js +0 -2
  236. package/mobile/dist/components/DebitForm/useDebitFormAPI.js.map +1 -1
  237. package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  238. package/mobile/dist/retail/adaptors/getCreditFormTaskData.js +24 -33
  239. package/mobile/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  240. package/mobile/dist/retail/adaptors/getEmploymentData.js +3 -3
  241. package/mobile/dist/retail/adaptors/getEmploymentData.js.map +1 -1
  242. package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
  243. package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  244. package/mobile/dist/retail/adaptors/getPersonalInfoData.js +4 -2
  245. package/mobile/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
  246. package/mobile/dist/retail/api/checkCode.js +1 -1
  247. package/mobile/dist/retail/api/checkCode.js.map +1 -1
  248. package/mobile/dist/retail/api/createUserTaskDebit.d.ts +3 -1
  249. package/mobile/dist/retail/api/createUserTaskDebit.js.map +1 -1
  250. package/mobile/dist/retail/api/updateUserTask.d.ts +3 -2
  251. package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
  252. package/mobile/dist/retail/api/updateUserTaskDebit.d.ts +1 -1
  253. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -2
  254. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  255. package/mobile/dist/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  256. package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +2 -3
  257. package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  258. package/mobile/dist/retail/components/Fields/DaDataInnField.js +10 -3
  259. package/mobile/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
  260. package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  261. package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.js +7 -0
  262. package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
  263. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +7 -2
  264. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +19 -10
  265. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  266. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -2
  267. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +21 -10
  268. package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  269. package/mobile/dist/retail/content.d.ts +2 -8
  270. package/mobile/dist/retail/content.js +3 -361
  271. package/mobile/dist/retail/content.js.map +1 -1
  272. package/mobile/dist/retail/inputs.d.ts +1 -1
  273. package/mobile/dist/retail/inputs.js +2 -1
  274. package/mobile/dist/retail/inputs.js.map +1 -1
  275. package/mobile/dist/retail/model/LeadFormState.d.ts +4 -2
  276. package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
  277. package/mobile/dist/retail/model/ReferalData.d.ts +0 -1
  278. package/mobile/dist/retail/utils/getMainFormStateMap.d.ts +2 -0
  279. package/mobile/{lib/retail/utils/mainFormStateMap.js → dist/retail/utils/getMainFormStateMap.js} +7 -3
  280. package/mobile/dist/retail/utils/getMainFormStateMap.js.map +1 -0
  281. package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
  282. package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  283. package/mobile/lib/components/ApplicationLeadForm/consents.js +0 -4
  284. package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  285. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  286. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
  287. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  288. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
  289. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  290. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  291. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
  292. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  293. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +244 -2
  294. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  295. package/mobile/lib/components/CreditCardForm/formStateMap.js +2 -2
  296. package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
  297. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  298. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
  299. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  300. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
  301. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  302. package/mobile/lib/components/CreditForm/CreditForm.js +1 -2
  303. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
  304. package/mobile/lib/components/CreditForm/creditFormStepsData.js +191 -2
  305. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  306. package/mobile/lib/components/CreditForm/formStateMap.js +2 -2
  307. package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
  308. package/mobile/lib/components/CreditForm/useCreditFormAPI.js +1 -3
  309. package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  310. package/mobile/lib/components/DebitForm/DebitFormStepsData.js +70 -2
  311. package/mobile/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
  312. package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  313. package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.js +16 -22
  314. package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
  315. package/mobile/lib/components/DebitForm/useDebitFormAPI.js +0 -2
  316. package/mobile/lib/components/DebitForm/useDebitFormAPI.js.map +1 -1
  317. package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  318. package/mobile/lib/retail/adaptors/getCreditFormTaskData.js +24 -33
  319. package/mobile/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  320. package/mobile/lib/retail/adaptors/getEmploymentData.js +3 -3
  321. package/mobile/lib/retail/adaptors/getEmploymentData.js.map +1 -1
  322. package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
  323. package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  324. package/mobile/lib/retail/adaptors/getPersonalInfoData.js +4 -2
  325. package/mobile/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
  326. package/mobile/lib/retail/api/checkCode.js +1 -1
  327. package/mobile/lib/retail/api/checkCode.js.map +1 -1
  328. package/mobile/lib/retail/api/createUserTaskDebit.d.ts +3 -1
  329. package/mobile/lib/retail/api/createUserTaskDebit.js.map +1 -1
  330. package/mobile/lib/retail/api/updateUserTask.d.ts +3 -2
  331. package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
  332. package/mobile/lib/retail/api/updateUserTaskDebit.d.ts +1 -1
  333. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -2
  334. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  335. package/mobile/lib/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  336. package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +2 -3
  337. package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  338. package/mobile/lib/retail/components/Fields/DaDataInnField.js +10 -3
  339. package/mobile/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
  340. package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  341. package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.js +5 -0
  342. package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
  343. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +7 -2
  344. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +18 -9
  345. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  346. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +1 -2
  347. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +21 -10
  348. package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
  349. package/mobile/lib/retail/content.d.ts +2 -8
  350. package/mobile/lib/retail/content.js +2 -360
  351. package/mobile/lib/retail/content.js.map +1 -1
  352. package/mobile/lib/retail/inputs.d.ts +1 -1
  353. package/mobile/lib/retail/inputs.js +2 -1
  354. package/mobile/lib/retail/inputs.js.map +1 -1
  355. package/mobile/lib/retail/model/LeadFormState.d.ts +4 -2
  356. package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
  357. package/mobile/lib/retail/model/ReferalData.d.ts +0 -1
  358. package/mobile/lib/retail/utils/getMainFormStateMap.d.ts +2 -0
  359. package/mobile/{dist/retail/utils/mainFormStateMap.js → lib/retail/utils/getMainFormStateMap.js} +4 -5
  360. package/mobile/lib/retail/utils/getMainFormStateMap.js.map +1 -0
  361. package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
  362. package/mobile/src/components/ApplicationLeadForm/consents.ts +0 -4
  363. package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +22 -20
  364. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +15 -11
  365. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +31 -12
  366. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +246 -6
  367. package/mobile/src/components/CreditCardForm/formStateMap.tsx +2 -2
  368. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +24 -34
  369. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +0 -2
  370. package/mobile/src/components/CreditForm/CreditForm.tsx +1 -2
  371. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +194 -6
  372. package/mobile/src/components/CreditForm/formStateMap.tsx +2 -2
  373. package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +1 -3
  374. package/mobile/src/components/DebitForm/DebitFormStepsData.tsx +71 -6
  375. package/mobile/src/components/DebitForm/getDebitCardFormTaskData.ts +16 -26
  376. package/mobile/src/components/DebitForm/useDebitFormAPI.tsx +0 -2
  377. package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +26 -39
  378. package/mobile/src/retail/adaptors/getEmploymentData.tsx +3 -3
  379. package/mobile/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +2 -0
  380. package/mobile/src/retail/adaptors/getPersonalInfoData.tsx +4 -2
  381. package/mobile/src/retail/api/checkCode.ts +1 -1
  382. package/mobile/src/retail/api/createUserTaskDebit.ts +3 -1
  383. package/mobile/src/retail/api/updateUserTask.ts +3 -2
  384. package/mobile/src/retail/api/updateUserTaskDebit.ts +1 -1
  385. package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +1 -2
  386. package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +2 -5
  387. package/mobile/src/retail/components/Fields/DaDataInnField.tsx +14 -6
  388. package/mobile/src/retail/components/Fields/InitiateBankruptcyFlgField.tsx +10 -0
  389. package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +31 -27
  390. package/mobile/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +22 -10
  391. package/mobile/src/retail/content.tsx +3 -362
  392. package/mobile/src/retail/inputs.tsx +2 -1
  393. package/mobile/src/retail/model/LeadFormState.ts +4 -2
  394. package/mobile/src/retail/model/NameFieldDef.ts +1 -0
  395. package/mobile/src/retail/model/ReferalData.ts +0 -1
  396. package/mobile/src/retail/utils/{mainFormStateMap.ts → getMainFormStateMap.ts} +3 -2
  397. package/package.json +1 -1
  398. package/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
  399. package/src/components/ApplicationLeadForm/consents.ts +0 -4
  400. package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +22 -20
  401. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +15 -11
  402. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +31 -12
  403. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +246 -6
  404. package/src/components/CreditCardForm/formStateMap.tsx +2 -2
  405. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +24 -34
  406. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +0 -2
  407. package/src/components/CreditForm/CreditForm.tsx +1 -2
  408. package/src/components/CreditForm/creditFormStepsData.tsx +194 -6
  409. package/src/components/CreditForm/formStateMap.tsx +2 -2
  410. package/src/components/CreditForm/useCreditFormAPI.tsx +1 -3
  411. package/src/components/DebitForm/DebitFormStepsData.tsx +71 -6
  412. package/src/components/DebitForm/getDebitCardFormTaskData.ts +16 -26
  413. package/src/components/DebitForm/useDebitFormAPI.tsx +0 -2
  414. package/src/retail/adaptors/getCreditFormTaskData.ts +26 -39
  415. package/src/retail/adaptors/getEmploymentData.tsx +3 -3
  416. package/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +2 -0
  417. package/src/retail/adaptors/getPersonalInfoData.tsx +4 -2
  418. package/src/retail/api/checkCode.ts +1 -1
  419. package/src/retail/api/createUserTaskDebit.ts +3 -1
  420. package/src/retail/api/updateUserTask.ts +3 -2
  421. package/src/retail/api/updateUserTaskDebit.ts +1 -1
  422. package/src/retail/components/DraftDialog/DraftDialog.tsx +1 -2
  423. package/src/retail/components/DraftDialog/parseDraftTask.ts +2 -5
  424. package/src/retail/components/Fields/DaDataInnField.tsx +14 -6
  425. package/src/retail/components/Fields/InitiateBankruptcyFlgField.tsx +10 -0
  426. package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +31 -27
  427. package/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +22 -10
  428. package/src/retail/content.tsx +3 -362
  429. package/src/retail/inputs.tsx +2 -1
  430. package/src/retail/model/LeadFormState.ts +4 -2
  431. package/src/retail/model/NameFieldDef.ts +1 -0
  432. package/src/retail/model/ReferalData.ts +0 -1
  433. package/src/retail/utils/{mainFormStateMap.ts → getMainFormStateMap.ts} +3 -2
  434. package/bundle/retail/utils/mainFormStateMap.d.ts +0 -2
  435. package/dist/retail/utils/mainFormStateMap.d.ts +0 -2
  436. package/dist/retail/utils/mainFormStateMap.js.map +0 -1
  437. package/lib/retail/utils/mainFormStateMap.d.ts +0 -2
  438. package/lib/retail/utils/mainFormStateMap.js.map +0 -1
  439. package/mobile/bundle/retail/utils/mainFormStateMap.d.ts +0 -2
  440. package/mobile/dist/retail/utils/mainFormStateMap.d.ts +0 -2
  441. package/mobile/dist/retail/utils/mainFormStateMap.js.map +0 -1
  442. package/mobile/lib/retail/utils/mainFormStateMap.d.ts +0 -2
  443. package/mobile/lib/retail/utils/mainFormStateMap.js.map +0 -1
@@ -2636,10 +2636,6 @@
2636
2636
  text: 'Согласие на получение информационных материалов',
2637
2637
  docId: 18,
2638
2638
  },
2639
- consentPhotoFlg: {
2640
- text: 'Согласие на фотографирование',
2641
- docId: 17,
2642
- },
2643
2639
  };
2644
2640
  const DEBIT_CARD_CONSENTS = {
2645
2641
  processPersonalDataFlg: {
@@ -2678,7 +2674,6 @@
2678
2674
  { name: 'consentInformFlg' },
2679
2675
  { name: 'consentPfrFlg' },
2680
2676
  { name: 'consentInformMaterialsFlg' },
2681
- { name: 'consentPhotoFlg' },
2682
2677
  { name: 'consentFATCA', required: true },
2683
2678
  ];
2684
2679
  return [
@@ -4451,9 +4446,7 @@
4451
4446
  updateOrganizationFields(store, field, item);
4452
4447
  }, []);
4453
4448
  useEffect(() => {
4454
- if (!esiaAccountTypeCd ||
4455
- !inn ||
4456
- !(employerActivities && employerOrganization && organization && amountWorkers)) {
4449
+ if (!esiaAccountTypeCd || !inn || !isDictionariesAlreadyLoad(store)) {
4457
4450
  return;
4458
4451
  }
4459
4452
  (async () => {
@@ -4465,6 +4458,15 @@
4465
4458
  }, [employerActivities, employerOrganization, organization, amountWorkers]);
4466
4459
  return (jsx(DaDataInputControl, { label: "\u0418\u041D\u041D", isInteger: true, maxLength: 12, ...input, ...field(input?.name ?? ''), onDaDataChange: onDaDataChange, disabled: isEsiaAuthorize(field, input) }));
4467
4460
  });
4461
+ const isDictionariesAlreadyLoad = (store) => {
4462
+ const { employerActivities, employerOrganization, organization, amountWorkers, productType } = store;
4463
+ return [
4464
+ employerOrganization,
4465
+ organization,
4466
+ amountWorkers,
4467
+ productType === 'creditCard' ? employerActivities : true,
4468
+ ].every(Boolean);
4469
+ };
4468
4470
 
4469
4471
  const DeliveryDateFiels = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438", ...field(input?.name ?? ''), minDate: new Date() })));
4470
4472
 
@@ -4576,6 +4578,8 @@
4576
4578
 
4577
4579
  const InfoCardField = JSX(({ input }) => (jsx(InfoCard, { __html: input?.label })));
4578
4580
 
4581
+ const InitiateBankruptcyFlgField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u042F \u043F\u043B\u0430\u043D\u0438\u0440\u0443\u044E \u0432 \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043C\u044F \u0438\u043D\u0438\u0446\u0438\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0435\u043B\u043E \u043E \u0431\u0430\u043D\u043A\u0440\u043E\u0442\u0441\u0442\u0432\u0435 \u0432 \u043E\u0442\u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u0441\u0435\u0431\u044F", ...field(input?.name ?? '') })));
4582
+
4579
4583
  const JobsNumberField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043C\u0435\u0441\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u0437\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 5 \u043B\u0435\u0442", placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043C\u0435\u0441\u0442", isInteger: true, maxLength: 2, ...field(input?.name ?? ''), ...input, disabled: isEsiaAuthorize(field, input) })));
4580
4584
 
4581
4585
  const LastJobExperienceField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u0421\u0442\u0430\u0436 \u043D\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u043C \u0440\u0430\u0431\u043E\u0447\u0435\u043C \u043C\u0435\u0441\u0442\u0435", placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043B\u0435\u0442", type: "number", maxLength: 2, ...field(input?.name ?? ''), ...input, disabled: isEsiaAuthorize(field, input) })));
@@ -4914,7 +4918,6 @@
4914
4918
  consentInformFlg: ConsentField,
4915
4919
  consentPfrFlg: ConsentField,
4916
4920
  consentInformMaterialsFlg: ConsentField,
4917
- consentPhotoFlg: ConsentField,
4918
4921
  consentFATCA: ConsentField,
4919
4922
  };
4920
4923
  const InputsRetailMap = {
@@ -4961,6 +4964,7 @@
4961
4964
  wages: WagesField,
4962
4965
  mandatoryPayments: MandatoryPaymentsField,
4963
4966
  bankruptcyFlg: BankruptcyFlgField,
4967
+ initiateBankruptcyFlg: InitiateBankruptcyFlgField,
4964
4968
  shareholderFlg: ShareholderFlgField,
4965
4969
  legalEntityName: LegalEntityNameField,
4966
4970
  creditInRshbCd: CreditInRshbCdField,
@@ -5014,6 +5018,12 @@
5014
5018
 
5015
5019
  const renderSubmitButton = (button, isSending = false) => (jsx(SubmitButton$1, { className: "w-full @xl:w-auto", isLoading: isSending, children: button?.text ? button.text : 'Отправить заявку' }));
5016
5020
 
5021
+ const sessionStore = new Store(); // sessionStorage cache
5022
+ replicate(sessionStore, new StorageAdapter(globalThis?.sessionStorage));
5023
+ function useSessionStore() {
5024
+ return useStore(sessionStore);
5025
+ }
5026
+
5017
5027
  const createDraftTask = async (body) => {
5018
5028
  const res = await fetchRetailJSON('/user-data/createDraftTask', 'POST', body);
5019
5029
  return res || {};
@@ -5193,32 +5203,36 @@
5193
5203
 
5194
5204
  const checkCode = async (body) => fetchRetailJSON('/sms/checkCode', 'POST', body).then(saveToken);
5195
5205
  const saveToken = (data) => {
5196
- if (data) {
5206
+ if (data?.access_token && data?.refresh_token) {
5197
5207
  globalThis.sessionStorage.setItem('accessToken', data.access_token);
5198
5208
  globalThis.sessionStorage.setItem('refreshToken', data.refresh_token);
5199
5209
  }
5200
5210
  };
5201
5211
 
5202
5212
  const useVerifyPhoneDialogSubmit = ({ values, onSuccess, }) => {
5213
+ const sessionStore = useSessionStore();
5214
+ const attempts = sessionStore.smsCode?.attempts || 0;
5215
+ const timer = Math.max(getTimer(sessionStore.smsCode?.sendTime || Date.now()), 0);
5203
5216
  const [errorText, setErrorText] = useState('');
5204
5217
  const [isLoading, { setTrue: startLoading, setFalse: endLoading }] = useBool(false);
5205
- const [timeNextReq, setTimeNextReq] = useState(0);
5206
- const [isTimerStarted, setIsTimerStarted] = useState(false);
5207
- const [attempts, setAttempts] = useState(0);
5218
+ const [timeNextReq, setTimeNextReq] = useState(timer);
5208
5219
  const resetError = useCallback(() => setErrorText(''), []);
5209
- const isTimeExpired = Boolean(timeNextReq === 0 && isTimerStarted);
5220
+ const isTimeExpired = Boolean(timeNextReq === 0 && sessionStore.smsCode?.sendTime);
5210
5221
  const isSubmitButtonDisabled = attempts > 2 || isTimeExpired || !values.every(Boolean);
5211
5222
  const handleSubmit = useCallback(async () => {
5212
5223
  try {
5213
- setIsTimerStarted(false);
5214
- setTimeNextReq(0);
5215
- setAttempts((_) => _ + 1);
5224
+ sessionStore.smsCode = {
5225
+ ...sessionStore.smsCode,
5226
+ attempts: attempts + 1,
5227
+ };
5216
5228
  startLoading();
5217
5229
  await checkCode({
5218
5230
  smsText: values.join(''),
5219
5231
  smsCodesSetName: { key: 'AUTHENTICATION' },
5220
5232
  });
5233
+ setTimeNextReq(0);
5221
5234
  resetError();
5235
+ sessionStore.smsCode = null;
5222
5236
  await onSuccess?.(values.join(''));
5223
5237
  }
5224
5238
  catch {
@@ -5229,7 +5243,12 @@
5229
5243
  }
5230
5244
  }, [values, attempts]);
5231
5245
  useEffect(() => {
5232
- setErrorText(isTimeExpired ? 'Код просрочен' : '');
5246
+ if (isTimeExpired) {
5247
+ setErrorText('Код просрочен');
5248
+ }
5249
+ else if (attempts > 2) {
5250
+ setErrorText('Исчерпан лимит ввода смс-кода');
5251
+ }
5233
5252
  }, [isTimeExpired]);
5234
5253
  return {
5235
5254
  handleSubmit,
@@ -5239,14 +5258,17 @@
5239
5258
  timeNextReq,
5240
5259
  isSubmitButtonDisabled,
5241
5260
  setTimeNextReq,
5242
- setIsTimerStarted,
5243
- setAttempts,
5261
+ setErrorText,
5244
5262
  };
5245
5263
  };
5264
+ const getTimer = (sendTime) => TIME_TO_RESEND - Math.floor((Date.now() - sendTime) / 1000);
5246
5265
 
5247
- const VerifyPhoneDialog = JSX(({ phone, code = true, withDescription = true, codeLength = 4, consents, onSuccess = noop, onClose = noop, }) => {
5248
- const [values, setValues] = useState(Array(codeLength).fill(''));
5249
- const { handleSubmit, hasError, errorText, isLoading, timeNextReq, isSubmitButtonDisabled, setTimeNextReq, setIsTimerStarted, setAttempts, } = useVerifyPhoneDialogSubmit({ values, onSuccess });
5266
+ const TIME_TO_RESEND = 180;
5267
+ const CODE_LENGTH = 4;
5268
+ const VerifyPhoneDialog = JSX(({ phone, withDescription = true, consents, onSuccess = noop, onClose = noop }) => {
5269
+ const [values, setValues] = useState(Array(CODE_LENGTH).fill(''));
5270
+ const sessionStore = useSessionStore();
5271
+ const { handleSubmit, hasError, errorText, isLoading, timeNextReq, isSubmitButtonDisabled, setTimeNextReq, setErrorText, } = useVerifyPhoneDialogSubmit({ values, onSuccess });
5250
5272
  const captchaDialog = useDialog(CaptchaDialog);
5251
5273
  const phoneNumber = formatPhone(phone);
5252
5274
  const restartTimer = useCountDownTimer({ seconds: timeNextReq, onTick: setTimeNextReq });
@@ -5256,19 +5278,24 @@
5256
5278
  smsCodesSetName: { key: 'AUTHENTICATION' },
5257
5279
  });
5258
5280
  if (isSuccessSendCode) {
5259
- setAttempts(0);
5260
- setTimeNextReq(180);
5261
- restartTimer(180);
5262
- setIsTimerStarted(true);
5281
+ setTimeNextReq(TIME_TO_RESEND);
5282
+ restartTimer(TIME_TO_RESEND);
5283
+ setErrorText('');
5284
+ sessionStore.smsCode = {
5285
+ sendTime: Date.now(),
5286
+ attempts: 0,
5287
+ };
5263
5288
  }
5264
5289
  else {
5265
5290
  captchaDialog.open({ phoneNumber, sendCode: handleSendCode });
5266
5291
  }
5267
5292
  }, [phoneNumber, restartTimer, onClose]);
5268
5293
  useEffect(() => {
5269
- handleSendCode();
5294
+ if (!sessionStore.smsCode?.sendTime) {
5295
+ handleSendCode();
5296
+ }
5270
5297
  }, []);
5271
- return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$2(timeNextReq, handleSendCode), withDescription ? (jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null, renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
5298
+ return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError }), renderText$2(timeNextReq, handleSendCode), withDescription ? (jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null, renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
5272
5299
  });
5273
5300
  const renderNextButton = (disabled, onClick) => (jsx(SubmitButton, { text: "\u0414\u0430\u043B\u0435\u0435", disabled: disabled, onClick: onClick }));
5274
5301
  const renderText$2 = (timeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "pl-2xs", seconds: timeNextReq })] })) : (jsx(Button, { embedded: true, onClick: handleSendCode, children: jsx(ButtonTitle, { children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }) }));
@@ -5408,7 +5435,7 @@
5408
5435
  }, []);
5409
5436
 
5410
5437
  const getFamilyStatusAndIncomeData = (formData) => {
5411
- const { familyStatus, familyMembers, dependents, children, confirmationIncome, wages, mandatoryPayments, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, conscription, } = formData;
5438
+ const { familyStatus, familyMembers, dependents, children, confirmationIncome, wages, mandatoryPayments, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, conscription, initiateBankruptcyFlg, } = formData;
5412
5439
  return {
5413
5440
  maritalStatusCd: familyStatus,
5414
5441
  totalDependents: familyMembers,
@@ -5428,6 +5455,7 @@
5428
5455
  }),
5429
5456
  snils: snils?.replace(/[-\s]/g, ''),
5430
5457
  armyIdFlg,
5458
+ initiateBankruptcyFlg,
5431
5459
  };
5432
5460
  };
5433
5461
  const countIncomeAverage = (wages, retirementIncome) => (Number(wages ?? 0) + Number(retirementIncome ?? 0)).toString();
@@ -5523,10 +5551,10 @@
5523
5551
 
5524
5552
  const parseDraftTask = (task) => {
5525
5553
  const participant = task.participants[0];
5526
- const { classCard: cardCategory, codeWord, paymentSystemTypeCd: paymentSystem, currencyCode: currency, taskSource, } = task;
5554
+ const { classCard: cardCategory, codeWord, paymentSystemTypeCd: paymentSystem, currencyCode: currency, } = task;
5527
5555
  const { loanAmount: moneyValue, creditPeriod: monthsValue, paymentTypeCd } = task;
5528
5556
  const { birthDate: limitedBirthday, midname: middleName, name, surname, birthPlace, dulIssueDate: dulIssueDate, dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, educationLevelCd: education, registrationDate: participantDateRegistration, houseTypeCd: housing, genderCd, participantContacts = [], participantAddresses = [], employmentContractDate: beginDate, employmentTypeCd: employment, organizationName, organizationInn: inn, organizationActivityTypeCd: employerActivities, organizationTypeCd: organization, organizationKindCd: employerOrganization, employeesNumberCd: amountWorkers, opf: legalForm, seniority: generalSeniority, generalSeniority: experience5Years, jobsNumber, lastWorkDuration: lastJobExperience, positionCd: positionOrganization, maritalStatusCd: familyStatus, childrenDependents: children, totalDependents: familyMembers, otherDependents: dependents, militaryStatusCd: conscription, participantIncomes, snils, armyIdFlg, bankruptcyFlg, shareholderFlg, nameLegalEntity: legalEntityName, creditInRshbCd, payrollCardRshbFlg: isInsurance, consentInsuranceFlg: isSalaryClient, incomeCertificateCd, profile, } = participant;
5529
- const taskFromDraft = {
5557
+ return {
5530
5558
  currency: currency?.key,
5531
5559
  paymentSystem: getSelectValue(paymentSystem),
5532
5560
  cardCategory: getSelectValue(cardCategory),
@@ -5583,7 +5611,6 @@
5583
5611
  ...getParticipantContacts(participantContacts),
5584
5612
  ...getParticipantGender(genderCd),
5585
5613
  };
5586
- return [taskFromDraft, taskSource === 'ReferalSF'];
5587
5614
  };
5588
5615
 
5589
5616
  const DraftDialog = JSX(function ({ task, isFromLead = false, isDebit = false, sendAspects = noop, onClose = noop, }) {
@@ -5603,13 +5630,12 @@
5603
5630
  };
5604
5631
  const { id: participantId, profile } = participants[0];
5605
5632
  const handleGoToDraft = useCallback(() => {
5606
- const [taskFromDraft, isTaskWithReferalCode] = parseDraftTask(task);
5633
+ const taskFromDraft = parseDraftTask(task);
5607
5634
  retailFormStore.participantId = participantId ?? null;
5608
5635
  retailFormStore.taskId = taskId;
5609
5636
  retailFormStore.profileId = profile?.id ?? null;
5610
5637
  retailFormStore.programId = programmId;
5611
5638
  retailFormStore.leadForm = taskFromDraft;
5612
- retailFormStore.referalData = { isTaskWithReferalCode };
5613
5639
  if (profile?.id) {
5614
5640
  sendAspects(profile.id, taskId);
5615
5641
  }
@@ -5662,10 +5688,9 @@
5662
5688
  };
5663
5689
 
5664
5690
  /* eslint-disable camelcase */
5665
- const getCreditLeadFormTaskData = ({ participantId, taskId, profileId, formData, isTaskWithReferalCode, }) => {
5691
+ const getCreditLeadFormTaskData = ({ participantId, taskId, profileId, formData, marketingInfo, }) => {
5666
5692
  const { name, surname, middleName, limitedBirthday, phone, email } = formData;
5667
- const navigator = locationNavigator();
5668
- const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
5693
+ const taskSource = getTaskSource(marketingInfo?.utm_source);
5669
5694
  return {
5670
5695
  sendToBank: true,
5671
5696
  taskKind: 'SHORT',
@@ -5692,14 +5717,13 @@
5692
5717
  },
5693
5718
  },
5694
5719
  ],
5695
- marketingInfo: getMarketingInfo(),
5720
+ marketingInfo,
5696
5721
  },
5697
5722
  };
5698
5723
  };
5699
- const getDebitLeadFormTaskData = (formData, programId, isTaskWithReferalCode) => {
5724
+ const getDebitLeadFormTaskData = (formData, programId, marketingInfo) => {
5700
5725
  const { name, surname, middleName, limitedBirthday, phone, email } = formData;
5701
- const navigator = locationNavigator();
5702
- const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
5726
+ const taskSource = getTaskSource(marketingInfo?.utm_source);
5703
5727
  return {
5704
5728
  task: {
5705
5729
  taskSource,
@@ -5718,18 +5742,24 @@
5718
5742
  }),
5719
5743
  },
5720
5744
  ],
5745
+ marketingInfo: {
5746
+ bannerId: marketingInfo?.bannerId,
5747
+ },
5721
5748
  },
5722
5749
  };
5723
5750
  };
5724
- const getMarketingInfo = () => {
5725
- const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
5726
- return {
5727
- utm_campaign: params.get('utm_campaign'),
5728
- utm_medium: params.get('utm_medium'),
5729
- utm_source: params.get('utm_source'),
5730
- utm_content: params.get('utm_content'),
5731
- utm_term: params.get('utm_term'),
5732
- };
5751
+ const getTaskSource = (source) => {
5752
+ switch (source) {
5753
+ case 'referal_sf': {
5754
+ return 'ReferalSF';
5755
+ }
5756
+ case 'vse_svoe': {
5757
+ return 'vseSvoe';
5758
+ }
5759
+ default: {
5760
+ return globalThis.location.origin;
5761
+ }
5762
+ }
5733
5763
  };
5734
5764
 
5735
5765
  const useSaveUserData = () => {
@@ -5769,7 +5799,7 @@
5769
5799
  const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
5770
5800
  const [ok, setOK] = useState();
5771
5801
  const saveUserData = useSaveUserData();
5772
- const leadFormStore = useLeadFormStore();
5802
+ const sessionStore = useSessionStore();
5773
5803
  const sendAspects = useSendLeadFormAspects({ data });
5774
5804
  const navigator = locationNavigator();
5775
5805
  const goToNextStep = useCallback(() => {
@@ -5785,7 +5815,8 @@
5785
5815
  const profileId = await createUserProfile({
5786
5816
  profile: { phone: formatPhone(transformedFormData.phone) },
5787
5817
  });
5788
- const referalData = leadFormStore.referalData;
5818
+ const referalData = sessionStore.referalData;
5819
+ const marketingInfo = sessionStore.marketingInfo;
5789
5820
  if (!profileId) {
5790
5821
  throw new Error();
5791
5822
  }
@@ -5796,6 +5827,7 @@
5796
5827
  formData: transformedFormData,
5797
5828
  productType,
5798
5829
  referalData,
5830
+ marketingInfo,
5799
5831
  saveUserData,
5800
5832
  sendAspects,
5801
5833
  });
@@ -5851,15 +5883,14 @@
5851
5883
  .filter((_) => formData[_])
5852
5884
  .map((_) => consents[_]?.text);
5853
5885
  };
5854
- const updateUserData = async ({ programId, profileId, formData, productType, referalData, saveUserData, sendAspects, }) => {
5886
+ const updateUserData = async ({ programId, profileId, formData, productType, referalData, marketingInfo, saveUserData, sendAspects, }) => {
5855
5887
  let taskId;
5856
5888
  let participantId;
5857
5889
  const transformedConsents = transformConsentsFields(formData, productType);
5858
- const isTaskWithReferalCode = referalData?.isTaskWithReferalCode;
5859
5890
  await updateUserProfile(getUpdateUserProfileData(profileId, formData, transformedConsents));
5860
5891
  try {
5861
5892
  if (productType === 'debitCard') {
5862
- const debitData = await createUserTaskDebit(getDebitLeadFormTaskData(formData, programId, isTaskWithReferalCode));
5893
+ const debitData = await createUserTaskDebit(getDebitLeadFormTaskData(formData, programId, marketingInfo));
5863
5894
  taskId = debitData.taskId;
5864
5895
  participantId = debitData.participantId;
5865
5896
  }
@@ -5875,10 +5906,10 @@
5875
5906
  taskId,
5876
5907
  profileId,
5877
5908
  formData,
5878
- isTaskWithReferalCode,
5909
+ marketingInfo,
5879
5910
  }));
5880
5911
  }
5881
- if (isTaskWithReferalCode) {
5912
+ if (referalData?.referalCode) {
5882
5913
  await saveReferalInfo({
5883
5914
  taskId,
5884
5915
  ...referalData,
@@ -5892,19 +5923,19 @@
5892
5923
  }
5893
5924
  };
5894
5925
  const transformConsentsFields = (formData, productType) => {
5895
- const { consentOthersFlg, consentPfrFlg, processPersonalDataFlg, consentInformFlg, consentProviderFlg, consentInformMaterialsFlg, consentPhotoFlg, consentFATCA, } = formData;
5926
+ const { consentOthersFlg, consentPfrFlg, processPersonalDataFlg, consentInformFlg, consentProviderFlg, consentInformMaterialsFlg, consentFATCA, } = formData;
5896
5927
  let consents;
5897
5928
  if (productType === 'credit') {
5898
5929
  consents = {
5899
- consentPhotoFlg: consentOthersFlg,
5900
5930
  consentPfrFlg: consentPfrFlg,
5901
5931
  consentInformMaterialsFlg: consentOthersFlg,
5932
+ consentPhotoFlg: false,
5902
5933
  };
5903
5934
  }
5904
5935
  else if (productType === 'creditCard') {
5905
5936
  consents = {
5906
5937
  consentInformMaterialsFlg,
5907
- consentPhotoFlg,
5938
+ consentPhotoFlg: false,
5908
5939
  };
5909
5940
  }
5910
5941
  else {
@@ -6146,10 +6177,11 @@
6146
6177
  return data.every(Boolean);
6147
6178
  };
6148
6179
 
6149
- /* eslint-disable max-lines-per-function */
6180
+ /* eslint-disable camelcase */
6150
6181
  const useInitApplicationLead = ({ inputs, productType, setEsiaStatus, esiaAuthSuccess, }) => {
6151
6182
  const leadFormStore = useLeadFormStore();
6152
6183
  const saveForm = useSetter(leadFormStore, 'leadForm');
6184
+ const sessionStore = useSessionStore();
6153
6185
  const queryFromStorage = globalThis.sessionStorage?.getItem(QUERY_STORAGE_KEY);
6154
6186
  const initialFormState = useMemo(() => getInitialFormState$1(inputs, leadFormStore.leadForm, esiaAuthSuccess), [inputs, leadFormStore.leadForm]);
6155
6187
  const requestEsiaProfile = useCallback(async (code, state) => {
@@ -6176,23 +6208,15 @@
6176
6208
  }, []);
6177
6209
  useEffect(() => {
6178
6210
  leadFormStore.productType = productType;
6179
- const { code, state, referalCode, refererCode, productId } = getLeadQueryParams(leadFormStore.referalData, queryFromStorage);
6211
+ const { code, state, referalCode, refererCode, productId, marketingInfo } = getLeadQueryParams(queryFromStorage, sessionStore);
6180
6212
  if (referalCode) {
6181
- leadFormStore.referalData = {
6213
+ sessionStore.referalData = {
6182
6214
  refererCode,
6183
6215
  referalCode,
6184
6216
  productId,
6185
- isTaskWithReferalCode: true,
6186
- };
6187
- }
6188
- else if (!code) {
6189
- leadFormStore.referalData = {
6190
- refererCode: null,
6191
- referalCode: null,
6192
- productId: null,
6193
- isTaskWithReferalCode: false,
6194
6217
  };
6195
6218
  }
6219
+ sessionStore.marketingInfo = marketingInfo;
6196
6220
  if (code && state) {
6197
6221
  requestEsiaProfile(code, state);
6198
6222
  }
@@ -6203,19 +6227,32 @@
6203
6227
  }, [queryFromStorage]);
6204
6228
  return initialFormState;
6205
6229
  };
6206
- const getLeadQueryParams = (referalData, queryFromStorage) => {
6230
+ const getLeadQueryParams = (queryFromStorage, sessionStore) => {
6231
+ const referalData = sessionStore.referalData;
6232
+ const marketingInfoFromStorage = sessionStore.marketingInfo;
6207
6233
  const queryStorage = new URLSearchParams(decodeURIComponent(queryFromStorage || ''));
6208
6234
  const code = queryStorage.get('code');
6209
6235
  const state = queryStorage.get('state');
6210
6236
  const referalCode = code ? referalData?.referalCode : queryStorage.get('referalCode');
6211
6237
  const refererCode = code ? referalData?.refererCode : queryStorage.get('refererCode');
6212
6238
  const productId = code ? referalData?.productId : queryStorage.get('productId');
6239
+ const marketingInfo = code
6240
+ ? marketingInfoFromStorage
6241
+ : {
6242
+ utm_campaign: queryStorage.get('utm_campaign'),
6243
+ utm_medium: queryStorage.get('utm_medium'),
6244
+ utm_source: queryStorage.get('utm_source'),
6245
+ utm_content: queryStorage.get('utm_content'),
6246
+ utm_term: queryStorage.get('utm_term'),
6247
+ bannerId: queryStorage.get('bannerId'),
6248
+ };
6213
6249
  return {
6214
6250
  code,
6215
6251
  state,
6216
6252
  referalCode,
6217
6253
  refererCode,
6218
6254
  productId,
6255
+ marketingInfo,
6219
6256
  };
6220
6257
  };
6221
6258
 
@@ -7343,12 +7380,6 @@
7343
7380
 
7344
7381
  const CurrencyInput = JSX((props) => (jsx(NumberInput, { ...props, fractionDigits: 2, children: jsx("div", { className: "absolute right-4 bottom-4", children: jsx(Text, { size: "text-xl", font: "font-light", children: "\u20BD" }) }) })));
7345
7382
 
7346
- const sessionStore = new Store(); // sessionStorage cache
7347
- replicate(sessionStore, new StorageAdapter(globalThis?.sessionStorage));
7348
- function useSessionStore() {
7349
- return useStore(sessionStore);
7350
- }
7351
-
7352
7383
  const paymentURLMap = {
7353
7384
  private: 'p2p/registerP2P',
7354
7385
  business: 'b2c/registerB2C',
@@ -7888,7 +7919,7 @@
7888
7919
  }
7889
7920
  };
7890
7921
 
7891
- const mainFormStateMap = [
7922
+ const getMainFormStateMap = (isCredit = false) => [
7892
7923
  {
7893
7924
  surname: '',
7894
7925
  name: '',
@@ -7943,8 +7974,9 @@
7943
7974
  wages: undefined,
7944
7975
  mandatoryPayments: undefined,
7945
7976
  snils: '',
7946
- armyIdFlg: false,
7977
+ armyIdFlg: isCredit ? undefined : false,
7947
7978
  esiaAccountTypeCd: { key: '', text: '' },
7979
+ initiateBankruptcyFlg: isCredit ? false : undefined,
7948
7980
  },
7949
7981
  {
7950
7982
  bankruptcyFlg: false,
@@ -7960,7 +7992,7 @@
7960
7992
  currency: '810',
7961
7993
  codeWord: '',
7962
7994
  },
7963
- ...mainFormStateMap,
7995
+ ...getMainFormStateMap(),
7964
7996
  {
7965
7997
  regionRetail: { key: '', text: '' },
7966
7998
  addressRetail: { key: '', text: '' },
@@ -8001,7 +8033,7 @@
8001
8033
  employmentTypeCd: employment,
8002
8034
  organizationName,
8003
8035
  organizationInn: inn,
8004
- organizationActivityTypeCd: employerActivities,
8036
+ organizationActivityTypeCd: employerActivities?.key ? employerActivities : undefined,
8005
8037
  organizationTypeCd: organization,
8006
8038
  organizationKindCd: employerOrganization,
8007
8039
  employeesNumberCd: amountWorkers,
@@ -8010,17 +8042,17 @@
8010
8042
  generalSeniority: experience5Years,
8011
8043
  jobsNumber,
8012
8044
  lastWorkDuration: lastJobExperience,
8013
- positionCd: positionOrganization,
8045
+ positionCd: positionOrganization?.key ? positionOrganization : undefined,
8014
8046
  participantContacts: getParticipantContacts$1({
8015
8047
  organizationPhone: organizationPhone && formatPhone(organizationPhone),
8016
8048
  }),
8017
8049
  participantAddresses: getParticipantAddresses$1({ organizationAddress }),
8018
- ownershipShare: positionOrganization?.key === 'BUSINESS_OWNER' ? partInBusiness : '',
8050
+ ownershipShare: positionOrganization?.key === 'BUSINESS_OWNER' ? partInBusiness : undefined,
8019
8051
  };
8020
8052
  };
8021
8053
 
8022
8054
  const getPersonalInfoData = (formData) => {
8023
- const { name, surname, middleName, limitedBirthday = '', phone = '', email, sex, birthPlace, dulIssueDate = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, addressMatch, } = formData;
8055
+ const { name, surname, middleName, limitedBirthday = '', phone = '', email, sex, birthPlace, dulIssueDate = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration, housing, addressRegistration, addressFact, addressMatch, } = formData;
8024
8056
  return {
8025
8057
  birthDate: formatDate(limitedBirthday, true),
8026
8058
  midname: middleName,
@@ -8033,7 +8065,9 @@
8033
8065
  dulSerie,
8034
8066
  dulSubdivisionCode,
8035
8067
  educationLevelCd: education,
8036
- registrationDate: formatDate(participantDateRegistration, true),
8068
+ registrationDate: participantDateRegistration
8069
+ ? formatDate(participantDateRegistration, true)
8070
+ : undefined,
8037
8071
  homeMatchFlg: addressMatch,
8038
8072
  houseTypeCd: housing,
8039
8073
  participantContacts: getParticipantContacts$1({
@@ -8089,36 +8123,31 @@
8089
8123
  : {};
8090
8124
  };
8091
8125
 
8092
- const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, isTaskWithReferalCode, }) => {
8093
- const navigator = locationNavigator();
8094
- const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
8095
- return {
8096
- sendToBank: true,
8097
- taskKind: 'UNITED',
8098
- task: {
8099
- taskSource,
8100
- id: taskId,
8101
- ...getOfficeCode(formData),
8102
- authorizedAgentId: formData?.bankEmployeeCode,
8103
- participants: [
8104
- {
8105
- id: participantId,
8106
- profile: {
8107
- id: profileId,
8108
- },
8109
- roleCd: {
8110
- key: 'BORROWER',
8111
- value: 'Заемщик',
8112
- },
8113
- ...getCurrentStepData$1(step, formData),
8126
+ const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => ({
8127
+ sendToBank: true,
8128
+ taskKind: 'UNITED',
8129
+ task: {
8130
+ id: taskId,
8131
+ ...getOfficeCode(formData),
8132
+ authorizedAgentId: formData?.bankEmployeeCode,
8133
+ participants: [
8134
+ {
8135
+ id: participantId,
8136
+ profile: {
8137
+ id: profileId,
8114
8138
  },
8115
- ],
8116
- ...getCardOptionsData(formData),
8117
- ...getDeliveryData(formData),
8118
- files: formData?.files,
8119
- },
8120
- };
8121
- };
8139
+ roleCd: {
8140
+ key: 'BORROWER',
8141
+ value: 'Заемщик',
8142
+ },
8143
+ ...getCurrentStepData$1(step, formData),
8144
+ },
8145
+ ],
8146
+ ...getCardOptionsData(formData),
8147
+ ...getDeliveryData(formData),
8148
+ files: formData?.files,
8149
+ },
8150
+ });
8122
8151
  const getCurrentStepData$1 = (step, formData) => {
8123
8152
  switch (step) {
8124
8153
  case 0:
@@ -8159,7 +8188,6 @@
8159
8188
  const handleSubmit = useCallback(async (formData) => {
8160
8189
  startSending();
8161
8190
  retailFormStore.leadForm = formData;
8162
- const referalData = retailFormStore.referalData;
8163
8191
  try {
8164
8192
  const { taskId, profileId, participantId } = retailFormStore;
8165
8193
  if (taskId && profileId && participantId) {
@@ -8169,7 +8197,6 @@
8169
8197
  profileId,
8170
8198
  step,
8171
8199
  formData: formData,
8172
- isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
8173
8200
  }));
8174
8201
  resetForm(response);
8175
8202
  }
@@ -8206,7 +8233,6 @@
8206
8233
  return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field, step }), jsx(StepsNavigationButtons$1, { isSending: isSending, step: step, onPrevStep: onPrevStep })] }));
8207
8234
  });
8208
8235
 
8209
- /* eslint-disable max-lines */
8210
8236
  const PERSONAL_DATA = [
8211
8237
  {
8212
8238
  title: 'Персональные данные',
@@ -8242,9 +8268,6 @@
8242
8268
  },
8243
8269
  ],
8244
8270
  },
8245
- ];
8246
- const PERSONAL_INFO_CONTENT = [
8247
- ...PERSONAL_DATA,
8248
8271
  {
8249
8272
  inputs: [
8250
8273
  {
@@ -8253,6 +8276,124 @@
8253
8276
  dadata: true,
8254
8277
  filledByEsia: true,
8255
8278
  },
8279
+ ],
8280
+ },
8281
+ ];
8282
+ const DELIVERY_CARD_CONTENT = [
8283
+ {
8284
+ title: 'Регион обслуживания карты',
8285
+ columns: 1,
8286
+ inputs: [],
8287
+ },
8288
+ {
8289
+ inputs: [
8290
+ {
8291
+ name: 'regionRetail',
8292
+ required: true,
8293
+ },
8294
+ ],
8295
+ },
8296
+ {
8297
+ title: 'Способ получения',
8298
+ columns: 1,
8299
+ inputs: [],
8300
+ condition: {
8301
+ name: 'regionHasDelivery',
8302
+ values: [true],
8303
+ },
8304
+ },
8305
+ {
8306
+ inputs: [
8307
+ {
8308
+ name: 'methodObtain',
8309
+ condition: {
8310
+ name: 'regionHasDelivery',
8311
+ values: [true],
8312
+ },
8313
+ },
8314
+ ],
8315
+ },
8316
+ {
8317
+ title: 'Выбор офиса',
8318
+ columns: 1,
8319
+ inputs: [],
8320
+ condition: {
8321
+ name: 'methodObtain',
8322
+ values: ['office'],
8323
+ },
8324
+ },
8325
+ {
8326
+ title: 'Адрес доставки',
8327
+ columns: 1,
8328
+ inputs: [],
8329
+ condition: {
8330
+ name: 'methodObtain',
8331
+ values: ['courier'],
8332
+ },
8333
+ },
8334
+ {
8335
+ inputs: [
8336
+ {
8337
+ name: 'addressCourier',
8338
+ dadata: true,
8339
+ condition: {
8340
+ name: 'methodObtain',
8341
+ values: ['courier'],
8342
+ },
8343
+ required: true,
8344
+ },
8345
+ ],
8346
+ },
8347
+ {
8348
+ columns: 2,
8349
+ inputs: [
8350
+ {
8351
+ name: 'deliveryDate',
8352
+ condition: {
8353
+ name: 'methodObtain',
8354
+ values: ['courier'],
8355
+ },
8356
+ required: true,
8357
+ },
8358
+ {
8359
+ name: 'deliveryTime',
8360
+ condition: {
8361
+ name: 'methodObtain',
8362
+ values: ['courier'],
8363
+ },
8364
+ },
8365
+ ],
8366
+ },
8367
+ {
8368
+ inputs: [
8369
+ {
8370
+ name: 'comment',
8371
+ condition: {
8372
+ name: 'methodObtain',
8373
+ values: ['courier'],
8374
+ },
8375
+ },
8376
+ ],
8377
+ },
8378
+ {
8379
+ inputs: [
8380
+ {
8381
+ name: 'addressRetail',
8382
+ required: true,
8383
+ condition: {
8384
+ name: 'methodObtain',
8385
+ values: ['office'],
8386
+ },
8387
+ },
8388
+ ],
8389
+ },
8390
+ ];
8391
+
8392
+ /* eslint-disable max-lines */
8393
+ const PERSONAL_INFO_CONTENT$1 = [
8394
+ ...PERSONAL_DATA,
8395
+ {
8396
+ inputs: [
8256
8397
  {
8257
8398
  name: 'education',
8258
8399
  required: true,
@@ -8291,7 +8432,7 @@
8291
8432
  inputs: [{ name: 'addressFact', required: true, dadata: true }],
8292
8433
  },
8293
8434
  ];
8294
- const EMPLOYMENT_CONTENT = [
8435
+ const EMPLOYMENT_CONTENT$1 = [
8295
8436
  {
8296
8437
  title: 'Данные о трудоустройстве',
8297
8438
  inputs: [],
@@ -8364,7 +8505,7 @@
8364
8505
  inputs: [{ name: 'organizationAddress', required: true, dadata: true }],
8365
8506
  },
8366
8507
  ];
8367
- const FAMILY_STATUS_AND_INCOME_CONTENT = [
8508
+ const FAMILY_STATUS_AND_INCOME_CONTENT$1 = [
8368
8509
  {
8369
8510
  title: 'Семейное положение',
8370
8511
  },
@@ -8451,41 +8592,6 @@
8451
8592
  inputs: [{ name: 'creditInRshbCd' }],
8452
8593
  },
8453
8594
  ];
8454
- const COMMON_RETAIL_CONTENT = [
8455
- PERSONAL_INFO_CONTENT,
8456
- EMPLOYMENT_CONTENT,
8457
- FAMILY_STATUS_AND_INCOME_CONTENT,
8458
- ADDITIONAL_CONTENT,
8459
- ];
8460
- const DELIVERY_CREDIT_CONTENT = [
8461
- {
8462
- title: 'Отделение Банка',
8463
- columns: 1,
8464
- inputs: [],
8465
- },
8466
- {
8467
- inputs: [{ name: 'regionRetail', required: true }],
8468
- },
8469
- {
8470
- inputs: [{ name: 'addressRetail', required: true }],
8471
- },
8472
- {
8473
- title: 'Код представителя Банка',
8474
- columns: 1,
8475
- inputs: [],
8476
- },
8477
- {
8478
- inputs: [
8479
- {
8480
- name: 'infoCard',
8481
- label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
8482
- },
8483
- ],
8484
- },
8485
- {
8486
- inputs: [{ name: 'bankEmployeeCode' }],
8487
- },
8488
- ];
8489
8595
  const CREDIT_CARD_CONTENT = [
8490
8596
  {
8491
8597
  title: 'Параметры карты',
@@ -8500,151 +8606,34 @@
8500
8606
  ],
8501
8607
  },
8502
8608
  ];
8503
- const CALCULATOR_CONTENT = [
8609
+ const DELIVERY_CREDIT_CARD_CONTENT = [
8610
+ ...DELIVERY_CARD_CONTENT,
8504
8611
  {
8505
- columns: 1,
8506
8612
  inputs: [
8507
8613
  {
8508
- name: 'calculator',
8614
+ name: 'infoCard',
8615
+ label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
8616
+ condition: {
8617
+ name: 'methodObtain',
8618
+ values: ['office'],
8619
+ },
8509
8620
  },
8510
- ],
8511
- },
8512
- ];
8513
- const DELIVERY_DEBIT_CARD_CONTENT = [
8514
- {
8515
- title: 'Регион обслуживания карты',
8516
- columns: 1,
8517
- inputs: [],
8518
- },
8519
- {
8520
- inputs: [
8521
8621
  {
8522
- name: 'regionRetail',
8523
- required: true,
8524
- },
8525
- ],
8526
- },
8527
- {
8528
- title: 'Способ получения',
8529
- columns: 1,
8530
- inputs: [],
8531
- condition: {
8532
- name: 'regionHasDelivery',
8533
- values: [true],
8534
- },
8535
- },
8536
- {
8537
- inputs: [
8538
- {
8539
- name: 'methodObtain',
8540
- condition: {
8541
- name: 'regionHasDelivery',
8542
- values: [true],
8543
- },
8544
- },
8545
- ],
8546
- },
8547
- {
8548
- title: 'Выбор офиса',
8549
- columns: 1,
8550
- inputs: [],
8551
- condition: {
8552
- name: 'methodObtain',
8553
- values: ['office'],
8554
- },
8555
- },
8556
- {
8557
- title: 'Адрес доставки',
8558
- columns: 1,
8559
- inputs: [],
8560
- condition: {
8561
- name: 'methodObtain',
8562
- values: ['courier'],
8563
- },
8564
- },
8565
- {
8566
- inputs: [
8567
- {
8568
- name: 'addressCourier',
8569
- dadata: true,
8570
- condition: {
8571
- name: 'methodObtain',
8572
- values: ['courier'],
8573
- },
8574
- required: true,
8575
- },
8576
- ],
8577
- },
8578
- {
8579
- columns: 2,
8580
- inputs: [
8581
- {
8582
- name: 'deliveryDate',
8583
- condition: {
8584
- name: 'methodObtain',
8585
- values: ['courier'],
8586
- },
8587
- required: true,
8588
- },
8589
- {
8590
- name: 'deliveryTime',
8591
- condition: {
8592
- name: 'methodObtain',
8593
- values: ['courier'],
8594
- },
8595
- },
8596
- ],
8597
- },
8598
- {
8599
- inputs: [
8600
- {
8601
- name: 'comment',
8602
- condition: {
8603
- name: 'methodObtain',
8604
- values: ['courier'],
8605
- },
8606
- },
8607
- ],
8608
- },
8609
- {
8610
- inputs: [
8611
- {
8612
- name: 'addressRetail',
8613
- required: true,
8614
- condition: {
8615
- name: 'methodObtain',
8616
- values: ['office'],
8617
- },
8618
- },
8619
- ],
8620
- },
8621
- ];
8622
- const DELIVERY_CREDIT_CARD_CONTENT = [
8623
- ...DELIVERY_DEBIT_CARD_CONTENT,
8624
- {
8625
- inputs: [
8626
- {
8627
- name: 'infoCard',
8628
- label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
8629
- condition: {
8630
- name: 'methodObtain',
8631
- values: ['office'],
8632
- },
8633
- },
8634
- {
8635
- name: 'bankEmployeeCode',
8636
- condition: {
8637
- name: 'methodObtain',
8638
- values: ['office'],
8639
- },
8622
+ name: 'bankEmployeeCode',
8623
+ condition: {
8624
+ name: 'methodObtain',
8625
+ values: ['office'],
8626
+ },
8640
8627
  },
8641
8628
  ],
8642
8629
  },
8643
8630
  ];
8644
-
8645
8631
  const stepsSectionsMap$1 = [
8646
8632
  CREDIT_CARD_CONTENT,
8647
- ...COMMON_RETAIL_CONTENT,
8633
+ PERSONAL_INFO_CONTENT$1,
8634
+ EMPLOYMENT_CONTENT$1,
8635
+ FAMILY_STATUS_AND_INCOME_CONTENT$1,
8636
+ ADDITIONAL_CONTENT,
8648
8637
  DELIVERY_CREDIT_CARD_CONTENT,
8649
8638
  ];
8650
8639
 
@@ -8826,38 +8815,33 @@
8826
8815
  };
8827
8816
  };
8828
8817
 
8829
- const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, isTaskWithReferalCode, }) => {
8830
- const navigator = locationNavigator();
8831
- const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
8832
- return {
8833
- sendToBank: true,
8834
- taskKind: 'UNITED',
8835
- task: {
8836
- taskSource,
8837
- id: taskId,
8838
- authorizedAgentId: formData?.bankEmployeeCode,
8839
- participants: [
8840
- {
8841
- id: participantId,
8842
- profile: {
8843
- id: profileId,
8844
- },
8845
- roleCd: {
8846
- key: 'BORROWER',
8847
- value: 'Заемщик',
8848
- },
8849
- ...getCurrentStepData(step, formData),
8818
+ const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => ({
8819
+ sendToBank: true,
8820
+ taskKind: 'UNITED',
8821
+ task: {
8822
+ id: taskId,
8823
+ authorizedAgentId: formData?.bankEmployeeCode,
8824
+ participants: [
8825
+ {
8826
+ id: participantId,
8827
+ profile: {
8828
+ id: profileId,
8850
8829
  },
8851
- ],
8852
- ...getCalcData(formData),
8853
- ...getDeliveryCreditData(formData),
8854
- esiaAccountTypeCd: {
8855
- key: formData?.esiaAccountTypeCd?.key,
8830
+ roleCd: {
8831
+ key: 'BORROWER',
8832
+ value: 'Заемщик',
8833
+ },
8834
+ ...getCurrentStepData(step, formData),
8856
8835
  },
8857
- files: formData?.files,
8836
+ ],
8837
+ ...getCalcData(formData),
8838
+ ...getDeliveryCreditData(formData),
8839
+ esiaAccountTypeCd: {
8840
+ key: formData?.esiaAccountTypeCd?.key,
8858
8841
  },
8859
- };
8860
- };
8842
+ files: formData?.files,
8843
+ },
8844
+ });
8861
8845
  const getCurrentStepData = (step, formData) => {
8862
8846
  switch (step) {
8863
8847
  case 0:
@@ -8868,8 +8852,6 @@
8868
8852
  return getEmploymentData(formData);
8869
8853
  case 3:
8870
8854
  return getFamilyStatusAndIncomeData(formData);
8871
- case 4:
8872
- return getAdditionalInfoData(formData);
8873
8855
  default:
8874
8856
  return {};
8875
8857
  }
@@ -8889,7 +8871,7 @@
8889
8871
  isStateEmployee: false,
8890
8872
  },
8891
8873
  },
8892
- ...mainFormStateMap,
8874
+ ...getMainFormStateMap(true),
8893
8875
  {
8894
8876
  regionRetail: { key: '', text: '' },
8895
8877
  addressRetail: undefined,
@@ -8899,7 +8881,7 @@
8899
8881
 
8900
8882
  const useCreditFormAPI = ({ step, onNextStep, onFinish, }) => {
8901
8883
  const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
8902
- const isFinalStep = step === 5;
8884
+ const isFinalStep = step === 4;
8903
8885
  const retailFormStore = useRetailFormStore();
8904
8886
  const initialState = useMemo(() => getInitialFormState(step, retailFormStore.leadForm, formStateMap), [step, retailFormStore.leadForm]);
8905
8887
  const resetForm = useCallback((response) => {
@@ -8922,7 +8904,6 @@
8922
8904
  const handleSubmit = useCallback(async (formData) => {
8923
8905
  startSending();
8924
8906
  retailFormStore.leadForm = formData;
8925
- const referalData = retailFormStore.referalData;
8926
8907
  try {
8927
8908
  const { taskId, profileId, participantId } = retailFormStore;
8928
8909
  if (taskId && profileId && participantId) {
@@ -8932,7 +8913,6 @@
8932
8913
  profileId,
8933
8914
  step,
8934
8915
  formData: formData,
8935
- isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
8936
8916
  }));
8937
8917
  resetForm(response);
8938
8918
  }
@@ -8971,19 +8951,207 @@
8971
8951
  return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep({ sections, field, step, params: { calcData } }), jsx(StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
8972
8952
  });
8973
8953
 
8954
+ /* eslint-disable max-lines */
8955
+ const PERSONAL_INFO_CONTENT = [
8956
+ ...PERSONAL_DATA,
8957
+ {
8958
+ title: 'Адрес регистрации по месту жительства',
8959
+ columns: 1,
8960
+ inputs: [],
8961
+ },
8962
+ {
8963
+ inputs: [
8964
+ {
8965
+ name: 'addressRegistration',
8966
+ required: true,
8967
+ dadata: true,
8968
+ filledByEsia: true,
8969
+ },
8970
+ { name: 'addressMatch' },
8971
+ ],
8972
+ },
8973
+ {
8974
+ title: 'Адрес фактического проживания (место пребывания РФ)',
8975
+ inputs: [],
8976
+ },
8977
+ {
8978
+ inputs: [{ name: 'addressFact', required: true, dadata: true }],
8979
+ },
8980
+ ];
8981
+ const EMPLOYMENT_CONTENT = [
8982
+ {
8983
+ title: 'Данные о трудоустройстве',
8984
+ inputs: [],
8985
+ },
8986
+ {
8987
+ inputs: [
8988
+ {
8989
+ name: 'infoCard',
8990
+ label: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
8991
+ 'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
8992
+ },
8993
+ ],
8994
+ },
8995
+ {
8996
+ inputs: [
8997
+ { name: 'employment', required: true },
8998
+ { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
8999
+ ],
9000
+ },
9001
+ {
9002
+ columns: 2,
9003
+ inputs: [
9004
+ { name: 'inn', required: true, dadata: true, filledByEsia: true },
9005
+ { name: 'legalForm', required: true },
9006
+ ],
9007
+ },
9008
+ {
9009
+ inputs: [
9010
+ { name: 'organization', required: true },
9011
+ { name: 'amountWorkers', required: true },
9012
+ ],
9013
+ },
9014
+ {
9015
+ columns: 2,
9016
+ inputs: [
9017
+ { name: 'employerOrganization', required: true },
9018
+ { name: 'jobsNumber', required: true, filledByEsia: true },
9019
+ ],
9020
+ },
9021
+ {
9022
+ inputs: [
9023
+ {
9024
+ name: 'organizationPhone',
9025
+ label: 'Телефон работодателя',
9026
+ required: true,
9027
+ },
9028
+ { name: 'beginDate', required: true, filledByEsia: true },
9029
+ ],
9030
+ },
9031
+ {
9032
+ title: 'Адрес работодателя',
9033
+ inputs: [],
9034
+ },
9035
+ {
9036
+ inputs: [{ name: 'organizationAddress', required: true, dadata: true }],
9037
+ },
9038
+ ];
9039
+ const FAMILY_STATUS_AND_INCOME_CONTENT = [
9040
+ {
9041
+ title: 'Семейное положение',
9042
+ },
9043
+ {
9044
+ columns: 1,
9045
+ inputs: [{ name: 'familyStatus', required: true }],
9046
+ },
9047
+ {
9048
+ columns: 2,
9049
+ inputs: [
9050
+ { name: 'children', required: true },
9051
+ { name: 'dependents', required: true },
9052
+ ],
9053
+ },
9054
+ {
9055
+ title: 'Совокупный доход',
9056
+ },
9057
+ {
9058
+ columns: 1,
9059
+ inputs: [
9060
+ {
9061
+ name: 'confirmationIncome',
9062
+ required: true,
9063
+ filledByEsia: true,
9064
+ },
9065
+ ],
9066
+ },
9067
+ {
9068
+ inputs: [
9069
+ {
9070
+ name: 'infoCard',
9071
+ label: 'Сумма основного и дополнительных доходов после вычета налога',
9072
+ },
9073
+ ],
9074
+ },
9075
+ {
9076
+ columns: 1,
9077
+ inputs: [{ name: 'wages', required: true, filledByEsia: true }],
9078
+ },
9079
+ {
9080
+ columns: 1,
9081
+ inputs: [
9082
+ {
9083
+ name: 'retirementIncome',
9084
+ required: true,
9085
+ condition: { name: 'employment', values: ['RETIREE'] },
9086
+ },
9087
+ ],
9088
+ },
9089
+ {
9090
+ columns: 1,
9091
+ inputs: [{ name: 'mandatoryPayments', required: true }],
9092
+ },
9093
+ {
9094
+ columns: 1,
9095
+ inputs: [{ name: 'snils', required: true }],
9096
+ },
9097
+ {
9098
+ columns: 1,
9099
+ inputs: [{ name: 'initiateBankruptcyFlg' }],
9100
+ },
9101
+ ];
9102
+ const DELIVERY_CREDIT_CONTENT = [
9103
+ {
9104
+ title: 'Отделение Банка',
9105
+ columns: 1,
9106
+ inputs: [],
9107
+ },
9108
+ {
9109
+ inputs: [{ name: 'regionRetail', required: true }],
9110
+ },
9111
+ {
9112
+ inputs: [{ name: 'addressRetail', required: true }],
9113
+ },
9114
+ {
9115
+ title: 'Код представителя Банка',
9116
+ columns: 1,
9117
+ inputs: [],
9118
+ },
9119
+ {
9120
+ inputs: [
9121
+ {
9122
+ name: 'infoCard',
9123
+ label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
9124
+ },
9125
+ ],
9126
+ },
9127
+ {
9128
+ inputs: [{ name: 'bankEmployeeCode' }],
9129
+ },
9130
+ ];
9131
+ const CALCULATOR_CONTENT = [
9132
+ {
9133
+ columns: 1,
9134
+ inputs: [
9135
+ {
9136
+ name: 'calculator',
9137
+ },
9138
+ ],
9139
+ },
9140
+ ];
8974
9141
  const stepsSectionsMap = [
8975
9142
  CALCULATOR_CONTENT,
8976
- ...COMMON_RETAIL_CONTENT,
9143
+ PERSONAL_INFO_CONTENT,
9144
+ EMPLOYMENT_CONTENT,
9145
+ FAMILY_STATUS_AND_INCOME_CONTENT,
8977
9146
  DELIVERY_CREDIT_CONTENT,
8978
9147
  ];
8979
9148
 
8980
- const STEPS = 5;
9149
+ const STEPS = 4;
8981
9150
  const STEP_TITLES = [
8982
9151
  '',
8983
9152
  'Персональные данные',
8984
9153
  'Данные о трудоустройстве',
8985
9154
  'Семейное положение и доход',
8986
- 'Дополнительные сведения',
8987
9155
  'Отделение Банка',
8988
9156
  ];
8989
9157
  const CreditForm = UniBlock(({ className, programsSource, ...rest }) => {
@@ -10379,7 +10547,7 @@
10379
10547
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
10380
10548
  });
10381
10549
 
10382
- const packageVersion = "0.14.864";
10550
+ const packageVersion = "0.14.866";
10383
10551
 
10384
10552
  exports.Blocks = Blocks;
10385
10553
  exports.ContentPage = ContentPage;