@redneckz/wildless-cms-uni-blocks 0.14.866 → 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 (411) hide show
  1. package/bundle/bundle.umd.js +550 -416
  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/content.d.ts +2 -8
  14. package/bundle/retail/inputs.d.ts +1 -1
  15. package/bundle/retail/model/LeadFormState.d.ts +4 -2
  16. package/bundle/retail/model/NameFieldDef.d.ts +1 -1
  17. package/bundle/retail/model/ReferalData.d.ts +0 -1
  18. package/bundle/retail/utils/getMainFormStateMap.d.ts +2 -0
  19. package/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
  20. package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  21. package/dist/components/ApplicationLeadForm/consents.js +0 -4
  22. package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  23. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  24. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
  25. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  26. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
  27. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  28. package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  29. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
  30. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  31. package/dist/components/CreditCardForm/creditCardFormStepsData.js +245 -3
  32. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  33. package/dist/components/CreditCardForm/formStateMap.js +2 -2
  34. package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
  35. package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  36. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
  37. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  38. package/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
  39. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  40. package/dist/components/CreditForm/CreditForm.js +1 -2
  41. package/dist/components/CreditForm/CreditForm.js.map +1 -1
  42. package/dist/components/CreditForm/creditFormStepsData.js +192 -3
  43. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  44. package/dist/components/CreditForm/formStateMap.js +2 -2
  45. package/dist/components/CreditForm/formStateMap.js.map +1 -1
  46. package/dist/components/CreditForm/useCreditFormAPI.js +1 -3
  47. package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  48. package/dist/components/DebitForm/DebitFormStepsData.js +71 -3
  49. package/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
  50. package/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  51. package/dist/components/DebitForm/getDebitCardFormTaskData.js +16 -22
  52. package/dist/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
  53. package/dist/components/DebitForm/useDebitFormAPI.js +0 -2
  54. package/dist/components/DebitForm/useDebitFormAPI.js.map +1 -1
  55. package/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  56. package/dist/retail/adaptors/getCreditFormTaskData.js +24 -33
  57. package/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  58. package/dist/retail/adaptors/getEmploymentData.js +3 -3
  59. package/dist/retail/adaptors/getEmploymentData.js.map +1 -1
  60. package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
  61. package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  62. package/dist/retail/adaptors/getPersonalInfoData.js +4 -2
  63. package/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
  64. package/dist/retail/api/checkCode.js +1 -1
  65. package/dist/retail/api/checkCode.js.map +1 -1
  66. package/dist/retail/api/createUserTaskDebit.d.ts +3 -1
  67. package/dist/retail/api/createUserTaskDebit.js.map +1 -1
  68. package/dist/retail/api/updateUserTask.d.ts +3 -2
  69. package/dist/retail/api/updateUserTask.js.map +1 -1
  70. package/dist/retail/api/updateUserTaskDebit.d.ts +1 -1
  71. package/dist/retail/components/DraftDialog/DraftDialog.js +1 -2
  72. package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  73. package/dist/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  74. package/dist/retail/components/DraftDialog/parseDraftTask.js +2 -3
  75. package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  76. package/dist/retail/components/Fields/DaDataInnField.js +10 -3
  77. package/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
  78. package/dist/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  79. package/dist/retail/components/Fields/InitiateBankruptcyFlgField.js +7 -0
  80. package/dist/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
  81. package/dist/retail/content.d.ts +2 -8
  82. package/dist/retail/content.js +3 -361
  83. package/dist/retail/content.js.map +1 -1
  84. package/dist/retail/inputs.d.ts +1 -1
  85. package/dist/retail/inputs.js +2 -1
  86. package/dist/retail/inputs.js.map +1 -1
  87. package/dist/retail/model/LeadFormState.d.ts +4 -2
  88. package/dist/retail/model/NameFieldDef.d.ts +1 -1
  89. package/dist/retail/model/ReferalData.d.ts +0 -1
  90. package/dist/retail/utils/getMainFormStateMap.d.ts +2 -0
  91. package/dist/retail/utils/{mainFormStateMap.js → getMainFormStateMap.js} +6 -4
  92. package/dist/retail/utils/getMainFormStateMap.js.map +1 -0
  93. package/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
  94. package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  95. package/lib/components/ApplicationLeadForm/consents.js +0 -4
  96. package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  97. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  98. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
  99. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  100. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
  101. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  102. package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  103. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
  104. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  105. package/lib/components/CreditCardForm/creditCardFormStepsData.js +244 -2
  106. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  107. package/lib/components/CreditCardForm/formStateMap.js +2 -2
  108. package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
  109. package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  110. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
  111. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  112. package/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
  113. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  114. package/lib/components/CreditForm/CreditForm.js +1 -2
  115. package/lib/components/CreditForm/CreditForm.js.map +1 -1
  116. package/lib/components/CreditForm/creditFormStepsData.js +191 -2
  117. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  118. package/lib/components/CreditForm/formStateMap.js +2 -2
  119. package/lib/components/CreditForm/formStateMap.js.map +1 -1
  120. package/lib/components/CreditForm/useCreditFormAPI.js +1 -3
  121. package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  122. package/lib/components/DebitForm/DebitFormStepsData.js +70 -2
  123. package/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
  124. package/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  125. package/lib/components/DebitForm/getDebitCardFormTaskData.js +16 -22
  126. package/lib/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
  127. package/lib/components/DebitForm/useDebitFormAPI.js +0 -2
  128. package/lib/components/DebitForm/useDebitFormAPI.js.map +1 -1
  129. package/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  130. package/lib/retail/adaptors/getCreditFormTaskData.js +24 -33
  131. package/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  132. package/lib/retail/adaptors/getEmploymentData.js +3 -3
  133. package/lib/retail/adaptors/getEmploymentData.js.map +1 -1
  134. package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
  135. package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  136. package/lib/retail/adaptors/getPersonalInfoData.js +4 -2
  137. package/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
  138. package/lib/retail/api/checkCode.js +1 -1
  139. package/lib/retail/api/checkCode.js.map +1 -1
  140. package/lib/retail/api/createUserTaskDebit.d.ts +3 -1
  141. package/lib/retail/api/createUserTaskDebit.js.map +1 -1
  142. package/lib/retail/api/updateUserTask.d.ts +3 -2
  143. package/lib/retail/api/updateUserTask.js.map +1 -1
  144. package/lib/retail/api/updateUserTaskDebit.d.ts +1 -1
  145. package/lib/retail/components/DraftDialog/DraftDialog.js +1 -2
  146. package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  147. package/lib/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  148. package/lib/retail/components/DraftDialog/parseDraftTask.js +2 -3
  149. package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  150. package/lib/retail/components/Fields/DaDataInnField.js +10 -3
  151. package/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
  152. package/lib/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  153. package/lib/retail/components/Fields/InitiateBankruptcyFlgField.js +5 -0
  154. package/lib/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
  155. package/lib/retail/content.d.ts +2 -8
  156. package/lib/retail/content.js +2 -360
  157. package/lib/retail/content.js.map +1 -1
  158. package/lib/retail/inputs.d.ts +1 -1
  159. package/lib/retail/inputs.js +2 -1
  160. package/lib/retail/inputs.js.map +1 -1
  161. package/lib/retail/model/LeadFormState.d.ts +4 -2
  162. package/lib/retail/model/NameFieldDef.d.ts +1 -1
  163. package/lib/retail/model/ReferalData.d.ts +0 -1
  164. package/lib/retail/utils/getMainFormStateMap.d.ts +2 -0
  165. package/lib/retail/utils/{mainFormStateMap.js → getMainFormStateMap.js} +4 -3
  166. package/lib/retail/utils/getMainFormStateMap.js.map +1 -0
  167. package/mobile/bundle/bundle.umd.js +465 -314
  168. package/mobile/bundle/bundle.umd.min.js +1 -1
  169. package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  170. package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  171. package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  172. package/mobile/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  173. package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  174. package/mobile/bundle/retail/api/createUserTaskDebit.d.ts +3 -1
  175. package/mobile/bundle/retail/api/updateUserTask.d.ts +3 -2
  176. package/mobile/bundle/retail/api/updateUserTaskDebit.d.ts +1 -1
  177. package/mobile/bundle/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  178. package/mobile/bundle/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  179. package/mobile/bundle/retail/content.d.ts +2 -8
  180. package/mobile/bundle/retail/inputs.d.ts +1 -1
  181. package/mobile/bundle/retail/model/LeadFormState.d.ts +4 -2
  182. package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
  183. package/mobile/bundle/retail/model/ReferalData.d.ts +0 -1
  184. package/mobile/bundle/retail/utils/getMainFormStateMap.d.ts +2 -0
  185. package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
  186. package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  187. package/mobile/dist/components/ApplicationLeadForm/consents.js +0 -4
  188. package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  189. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  190. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
  191. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  192. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
  193. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  194. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  195. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
  196. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  197. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +245 -3
  198. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  199. package/mobile/dist/components/CreditCardForm/formStateMap.js +2 -2
  200. package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
  201. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  202. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
  203. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  204. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
  205. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  206. package/mobile/dist/components/CreditForm/CreditForm.js +1 -2
  207. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
  208. package/mobile/dist/components/CreditForm/creditFormStepsData.js +192 -3
  209. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  210. package/mobile/dist/components/CreditForm/formStateMap.js +2 -2
  211. package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
  212. package/mobile/dist/components/CreditForm/useCreditFormAPI.js +1 -3
  213. package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  214. package/mobile/dist/components/DebitForm/DebitFormStepsData.js +71 -3
  215. package/mobile/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
  216. package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  217. package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.js +16 -22
  218. package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
  219. package/mobile/dist/components/DebitForm/useDebitFormAPI.js +0 -2
  220. package/mobile/dist/components/DebitForm/useDebitFormAPI.js.map +1 -1
  221. package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  222. package/mobile/dist/retail/adaptors/getCreditFormTaskData.js +24 -33
  223. package/mobile/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  224. package/mobile/dist/retail/adaptors/getEmploymentData.js +3 -3
  225. package/mobile/dist/retail/adaptors/getEmploymentData.js.map +1 -1
  226. package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
  227. package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  228. package/mobile/dist/retail/adaptors/getPersonalInfoData.js +4 -2
  229. package/mobile/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
  230. package/mobile/dist/retail/api/checkCode.js +1 -1
  231. package/mobile/dist/retail/api/checkCode.js.map +1 -1
  232. package/mobile/dist/retail/api/createUserTaskDebit.d.ts +3 -1
  233. package/mobile/dist/retail/api/createUserTaskDebit.js.map +1 -1
  234. package/mobile/dist/retail/api/updateUserTask.d.ts +3 -2
  235. package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
  236. package/mobile/dist/retail/api/updateUserTaskDebit.d.ts +1 -1
  237. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -2
  238. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  239. package/mobile/dist/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  240. package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +2 -3
  241. package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  242. package/mobile/dist/retail/components/Fields/DaDataInnField.js +10 -3
  243. package/mobile/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
  244. package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  245. package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.js +7 -0
  246. package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
  247. package/mobile/dist/retail/content.d.ts +2 -8
  248. package/mobile/dist/retail/content.js +3 -361
  249. package/mobile/dist/retail/content.js.map +1 -1
  250. package/mobile/dist/retail/inputs.d.ts +1 -1
  251. package/mobile/dist/retail/inputs.js +2 -1
  252. package/mobile/dist/retail/inputs.js.map +1 -1
  253. package/mobile/dist/retail/model/LeadFormState.d.ts +4 -2
  254. package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
  255. package/mobile/dist/retail/model/ReferalData.d.ts +0 -1
  256. package/mobile/dist/retail/utils/getMainFormStateMap.d.ts +2 -0
  257. package/mobile/{lib/retail/utils/mainFormStateMap.js → dist/retail/utils/getMainFormStateMap.js} +7 -3
  258. package/mobile/dist/retail/utils/getMainFormStateMap.js.map +1 -0
  259. package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
  260. package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  261. package/mobile/lib/components/ApplicationLeadForm/consents.js +0 -4
  262. package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  263. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  264. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
  265. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  266. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
  267. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  268. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  269. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
  270. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  271. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +244 -2
  272. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  273. package/mobile/lib/components/CreditCardForm/formStateMap.js +2 -2
  274. package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
  275. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  276. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
  277. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  278. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
  279. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  280. package/mobile/lib/components/CreditForm/CreditForm.js +1 -2
  281. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
  282. package/mobile/lib/components/CreditForm/creditFormStepsData.js +191 -2
  283. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  284. package/mobile/lib/components/CreditForm/formStateMap.js +2 -2
  285. package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
  286. package/mobile/lib/components/CreditForm/useCreditFormAPI.js +1 -3
  287. package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  288. package/mobile/lib/components/DebitForm/DebitFormStepsData.js +70 -2
  289. package/mobile/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
  290. package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  291. package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.js +16 -22
  292. package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
  293. package/mobile/lib/components/DebitForm/useDebitFormAPI.js +0 -2
  294. package/mobile/lib/components/DebitForm/useDebitFormAPI.js.map +1 -1
  295. package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  296. package/mobile/lib/retail/adaptors/getCreditFormTaskData.js +24 -33
  297. package/mobile/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  298. package/mobile/lib/retail/adaptors/getEmploymentData.js +3 -3
  299. package/mobile/lib/retail/adaptors/getEmploymentData.js.map +1 -1
  300. package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
  301. package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  302. package/mobile/lib/retail/adaptors/getPersonalInfoData.js +4 -2
  303. package/mobile/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
  304. package/mobile/lib/retail/api/checkCode.js +1 -1
  305. package/mobile/lib/retail/api/checkCode.js.map +1 -1
  306. package/mobile/lib/retail/api/createUserTaskDebit.d.ts +3 -1
  307. package/mobile/lib/retail/api/createUserTaskDebit.js.map +1 -1
  308. package/mobile/lib/retail/api/updateUserTask.d.ts +3 -2
  309. package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
  310. package/mobile/lib/retail/api/updateUserTaskDebit.d.ts +1 -1
  311. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -2
  312. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  313. package/mobile/lib/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  314. package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +2 -3
  315. package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  316. package/mobile/lib/retail/components/Fields/DaDataInnField.js +10 -3
  317. package/mobile/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
  318. package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  319. package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.js +5 -0
  320. package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
  321. package/mobile/lib/retail/content.d.ts +2 -8
  322. package/mobile/lib/retail/content.js +2 -360
  323. package/mobile/lib/retail/content.js.map +1 -1
  324. package/mobile/lib/retail/inputs.d.ts +1 -1
  325. package/mobile/lib/retail/inputs.js +2 -1
  326. package/mobile/lib/retail/inputs.js.map +1 -1
  327. package/mobile/lib/retail/model/LeadFormState.d.ts +4 -2
  328. package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
  329. package/mobile/lib/retail/model/ReferalData.d.ts +0 -1
  330. package/mobile/lib/retail/utils/getMainFormStateMap.d.ts +2 -0
  331. package/mobile/{dist/retail/utils/mainFormStateMap.js → lib/retail/utils/getMainFormStateMap.js} +4 -5
  332. package/mobile/lib/retail/utils/getMainFormStateMap.js.map +1 -0
  333. package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
  334. package/mobile/src/components/ApplicationLeadForm/consents.ts +0 -4
  335. package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +22 -20
  336. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +15 -11
  337. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +31 -12
  338. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +246 -6
  339. package/mobile/src/components/CreditCardForm/formStateMap.tsx +2 -2
  340. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +24 -34
  341. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +0 -2
  342. package/mobile/src/components/CreditForm/CreditForm.tsx +1 -2
  343. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +194 -6
  344. package/mobile/src/components/CreditForm/formStateMap.tsx +2 -2
  345. package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +1 -3
  346. package/mobile/src/components/DebitForm/DebitFormStepsData.tsx +71 -6
  347. package/mobile/src/components/DebitForm/getDebitCardFormTaskData.ts +16 -26
  348. package/mobile/src/components/DebitForm/useDebitFormAPI.tsx +0 -2
  349. package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +26 -39
  350. package/mobile/src/retail/adaptors/getEmploymentData.tsx +3 -3
  351. package/mobile/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +2 -0
  352. package/mobile/src/retail/adaptors/getPersonalInfoData.tsx +4 -2
  353. package/mobile/src/retail/api/checkCode.ts +1 -1
  354. package/mobile/src/retail/api/createUserTaskDebit.ts +3 -1
  355. package/mobile/src/retail/api/updateUserTask.ts +3 -2
  356. package/mobile/src/retail/api/updateUserTaskDebit.ts +1 -1
  357. package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +1 -2
  358. package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +2 -5
  359. package/mobile/src/retail/components/Fields/DaDataInnField.tsx +14 -6
  360. package/mobile/src/retail/components/Fields/InitiateBankruptcyFlgField.tsx +10 -0
  361. package/mobile/src/retail/content.tsx +3 -362
  362. package/mobile/src/retail/inputs.tsx +2 -1
  363. package/mobile/src/retail/model/LeadFormState.ts +4 -2
  364. package/mobile/src/retail/model/NameFieldDef.ts +1 -0
  365. package/mobile/src/retail/model/ReferalData.ts +0 -1
  366. package/mobile/src/retail/utils/{mainFormStateMap.ts → getMainFormStateMap.ts} +3 -2
  367. package/package.json +1 -1
  368. package/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
  369. package/src/components/ApplicationLeadForm/consents.ts +0 -4
  370. package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +22 -20
  371. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +15 -11
  372. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +31 -12
  373. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +246 -6
  374. package/src/components/CreditCardForm/formStateMap.tsx +2 -2
  375. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +24 -34
  376. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +0 -2
  377. package/src/components/CreditForm/CreditForm.tsx +1 -2
  378. package/src/components/CreditForm/creditFormStepsData.tsx +194 -6
  379. package/src/components/CreditForm/formStateMap.tsx +2 -2
  380. package/src/components/CreditForm/useCreditFormAPI.tsx +1 -3
  381. package/src/components/DebitForm/DebitFormStepsData.tsx +71 -6
  382. package/src/components/DebitForm/getDebitCardFormTaskData.ts +16 -26
  383. package/src/components/DebitForm/useDebitFormAPI.tsx +0 -2
  384. package/src/retail/adaptors/getCreditFormTaskData.ts +26 -39
  385. package/src/retail/adaptors/getEmploymentData.tsx +3 -3
  386. package/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +2 -0
  387. package/src/retail/adaptors/getPersonalInfoData.tsx +4 -2
  388. package/src/retail/api/checkCode.ts +1 -1
  389. package/src/retail/api/createUserTaskDebit.ts +3 -1
  390. package/src/retail/api/updateUserTask.ts +3 -2
  391. package/src/retail/api/updateUserTaskDebit.ts +1 -1
  392. package/src/retail/components/DraftDialog/DraftDialog.tsx +1 -2
  393. package/src/retail/components/DraftDialog/parseDraftTask.ts +2 -5
  394. package/src/retail/components/Fields/DaDataInnField.tsx +14 -6
  395. package/src/retail/components/Fields/InitiateBankruptcyFlgField.tsx +10 -0
  396. package/src/retail/content.tsx +3 -362
  397. package/src/retail/inputs.tsx +2 -1
  398. package/src/retail/model/LeadFormState.ts +4 -2
  399. package/src/retail/model/NameFieldDef.ts +1 -0
  400. package/src/retail/model/ReferalData.ts +0 -1
  401. package/src/retail/utils/{mainFormStateMap.ts → getMainFormStateMap.ts} +3 -2
  402. package/bundle/retail/utils/mainFormStateMap.d.ts +0 -2
  403. package/dist/retail/utils/mainFormStateMap.d.ts +0 -2
  404. package/dist/retail/utils/mainFormStateMap.js.map +0 -1
  405. package/lib/retail/utils/mainFormStateMap.d.ts +0 -2
  406. package/lib/retail/utils/mainFormStateMap.js.map +0 -1
  407. package/mobile/bundle/retail/utils/mainFormStateMap.d.ts +0 -2
  408. package/mobile/dist/retail/utils/mainFormStateMap.d.ts +0 -2
  409. package/mobile/dist/retail/utils/mainFormStateMap.js.map +0 -1
  410. package/mobile/lib/retail/utils/mainFormStateMap.d.ts +0 -2
  411. package/mobile/lib/retail/utils/mainFormStateMap.js.map +0 -1
@@ -1,12 +1,11 @@
1
1
  /* eslint-disable camelcase */
2
- import { locationNavigator } from '../../external/locationNavigator';
3
2
  import { getParticipantContacts } from '../../retail/adaptors/utils';
4
3
  import { type CreateUserTaskDebitBody } from '../../retail/api/createUserTaskDebit';
5
4
  import { type MarketingInfo, type UpdateUserTaskBody } from '../../retail/api/updateUserTask';
6
5
  import { type LeadFormState } from '../../retail/model/LeadFormState';
7
- import { type ReferalData } from '../../retail/model/ReferalData';
8
6
  import { formatDate } from '../../utils/formatDate';
9
7
  import { formatPhone } from '../../utils/formatPhone';
8
+ import { type Nullable } from '../../utils/Nullable';
10
9
  import { debitProgrammIdToCardCodesMap } from '../DebitForm/utils';
11
10
 
12
11
  type getLeadFormTaskDataProps = {
@@ -14,7 +13,7 @@ type getLeadFormTaskDataProps = {
14
13
  taskId: number;
15
14
  profileId: number;
16
15
  formData: LeadFormState;
17
- isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
16
+ marketingInfo: MarketingInfo | null;
18
17
  };
19
18
 
20
19
  export const getCreditLeadFormTaskData = ({
@@ -22,11 +21,10 @@ export const getCreditLeadFormTaskData = ({
22
21
  taskId,
23
22
  profileId,
24
23
  formData,
25
- isTaskWithReferalCode,
24
+ marketingInfo,
26
25
  }: getLeadFormTaskDataProps): UpdateUserTaskBody => {
27
26
  const { name, surname, middleName, limitedBirthday, phone, email } = formData;
28
- const navigator = locationNavigator();
29
- const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
27
+ const taskSource = getTaskSource(marketingInfo?.utm_source);
30
28
 
31
29
  return {
32
30
  sendToBank: true,
@@ -54,7 +52,7 @@ export const getCreditLeadFormTaskData = ({
54
52
  },
55
53
  },
56
54
  ],
57
- marketingInfo: getMarketingInfo(),
55
+ marketingInfo,
58
56
  },
59
57
  };
60
58
  };
@@ -62,11 +60,10 @@ export const getCreditLeadFormTaskData = ({
62
60
  export const getDebitLeadFormTaskData = (
63
61
  formData: LeadFormState,
64
62
  programId: string,
65
- isTaskWithReferalCode: ReferalData['isTaskWithReferalCode'],
63
+ marketingInfo: MarketingInfo | null,
66
64
  ): CreateUserTaskDebitBody => {
67
65
  const { name, surname, middleName, limitedBirthday, phone, email } = formData;
68
- const navigator = locationNavigator();
69
- const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
66
+ const taskSource = getTaskSource(marketingInfo?.utm_source);
70
67
 
71
68
  return {
72
69
  task: {
@@ -86,18 +83,23 @@ export const getDebitLeadFormTaskData = (
86
83
  }),
87
84
  },
88
85
  ],
86
+ marketingInfo: {
87
+ bannerId: marketingInfo?.bannerId,
88
+ },
89
89
  },
90
90
  };
91
91
  };
92
92
 
93
- const getMarketingInfo = (): MarketingInfo => {
94
- const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
95
-
96
- return {
97
- utm_campaign: params.get('utm_campaign'),
98
- utm_medium: params.get('utm_medium'),
99
- utm_source: params.get('utm_source'),
100
- utm_content: params.get('utm_content'),
101
- utm_term: params.get('utm_term'),
102
- };
93
+ const getTaskSource = (source: Nullable<string>) => {
94
+ switch (source) {
95
+ case 'referal_sf': {
96
+ return 'ReferalSF';
97
+ }
98
+ case 'vse_svoe': {
99
+ return 'vseSvoe';
100
+ }
101
+ default: {
102
+ return globalThis.location.origin;
103
+ }
104
+ }
103
105
  };
@@ -1,6 +1,7 @@
1
1
  /* eslint-disable max-lines */
2
2
  import { useCallback, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
4
+ import { useSessionStore } from '@redneckz/uni-jsx/lib/Store/useSessionStore';
4
5
  import { locationNavigator } from '../../external/locationNavigator';
5
6
  import { type AspectsProps } from '../../model/AspectsProps';
6
7
  import { createDraftTask } from '../../retail/api/createDraftTask';
@@ -10,7 +11,7 @@ import { getLastTaskStatus } from '../../retail/api/getLastTaskStatus';
10
11
  import { getTaskById } from '../../retail/api/getTaskById';
11
12
  import { saveReferalInfo } from '../../retail/api/saveReferalInfo';
12
13
  import { updateUserProfile } from '../../retail/api/updateUserProfile';
13
- import { updateUserTask } from '../../retail/api/updateUserTask';
14
+ import { updateUserTask, type MarketingInfo } from '../../retail/api/updateUserTask';
14
15
  import { useConsentBkiDialog } from '../../retail/components/ConsentBkiDialog/useConsentBkiDialog';
15
16
  import { useDraftDialog } from '../../retail/components/DraftDialog/useDraftDialog';
16
17
  import { VerifyPhoneDialog } from '../../retail/components/VerifyPhoneDialog/VerifyPhoneDialog';
@@ -22,7 +23,7 @@ import { formatPhone } from '../../utils/formatPhone';
22
23
  import { type ProductType } from './ApplicationLeadFormContent';
23
24
  import { productTypeToConsentsMap } from './consents';
24
25
  import { getCreditLeadFormTaskData, getDebitLeadFormTaskData } from './getLeadFormTaskData';
25
- import { useLeadFormStore } from './useLeadFormStore';
26
+ import { type ApplicationLeadStore } from './useInitApplicationLead';
26
27
  import { useSaveUserData, type UserData } from './useSaveUserData';
27
28
  import { useSendLeadFormAspects } from './useSendLeadFormAspects';
28
29
 
@@ -42,7 +43,7 @@ export const useApplicationLeadApi = ({
42
43
  const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
43
44
  const [ok, setOK] = useState<boolean | undefined>();
44
45
  const saveUserData = useSaveUserData();
45
- const leadFormStore = useLeadFormStore();
46
+ const sessionStore = useSessionStore<ApplicationLeadStore>();
46
47
 
47
48
  const sendAspects = useSendLeadFormAspects({ data });
48
49
  const navigator = locationNavigator();
@@ -62,7 +63,9 @@ export const useApplicationLeadApi = ({
62
63
  const profileId = await createUserProfile({
63
64
  profile: { phone: formatPhone(transformedFormData.phone as string) },
64
65
  });
65
- const referalData = leadFormStore.referalData;
66
+
67
+ const referalData = sessionStore.referalData;
68
+ const marketingInfo = sessionStore.marketingInfo;
66
69
 
67
70
  if (!profileId) {
68
71
  throw new Error();
@@ -75,6 +78,7 @@ export const useApplicationLeadApi = ({
75
78
  formData: transformedFormData,
76
79
  productType,
77
80
  referalData,
81
+ marketingInfo,
78
82
  saveUserData,
79
83
  sendAspects,
80
84
  });
@@ -138,6 +142,7 @@ const updateUserData = async ({
138
142
  formData,
139
143
  productType,
140
144
  referalData,
145
+ marketingInfo,
141
146
  saveUserData,
142
147
  sendAspects,
143
148
  }: {
@@ -146,20 +151,20 @@ const updateUserData = async ({
146
151
  formData: LeadFormState;
147
152
  productType: ProductType;
148
153
  referalData: ReferalData | null;
154
+ marketingInfo: MarketingInfo | null;
149
155
  saveUserData: (userData: UserData) => void;
150
156
  sendAspects: (profileId: number, taskId: number) => void;
151
157
  }) => {
152
158
  let taskId: number;
153
159
  let participantId: number;
154
160
  const transformedConsents = transformConsentsFields(formData, productType);
155
- const isTaskWithReferalCode = referalData?.isTaskWithReferalCode;
156
161
 
157
162
  await updateUserProfile(getUpdateUserProfileData(profileId, formData, transformedConsents));
158
163
 
159
164
  try {
160
165
  if (productType === 'debitCard') {
161
166
  const debitData = await createUserTaskDebit(
162
- getDebitLeadFormTaskData(formData, programId, isTaskWithReferalCode),
167
+ getDebitLeadFormTaskData(formData, programId, marketingInfo),
163
168
  );
164
169
 
165
170
  taskId = debitData.taskId;
@@ -178,11 +183,11 @@ const updateUserData = async ({
178
183
  taskId,
179
184
  profileId,
180
185
  formData,
181
- isTaskWithReferalCode,
186
+ marketingInfo,
182
187
  }),
183
188
  );
184
189
  }
185
- if (isTaskWithReferalCode) {
190
+ if (referalData?.referalCode) {
186
191
  await saveReferalInfo({
187
192
  taskId,
188
193
  ...referalData,
@@ -207,7 +212,6 @@ const transformConsentsFields = (
207
212
  consentInformFlg,
208
213
  consentProviderFlg,
209
214
  consentInformMaterialsFlg,
210
- consentPhotoFlg,
211
215
  consentFATCA,
212
216
  } = formData;
213
217
 
@@ -215,14 +219,14 @@ const transformConsentsFields = (
215
219
 
216
220
  if (productType === 'credit') {
217
221
  consents = {
218
- consentPhotoFlg: consentOthersFlg,
219
222
  consentPfrFlg: consentPfrFlg,
220
223
  consentInformMaterialsFlg: consentOthersFlg,
224
+ consentPhotoFlg: false,
221
225
  };
222
226
  } else if (productType === 'creditCard') {
223
227
  consents = {
224
228
  consentInformMaterialsFlg,
225
- consentPhotoFlg,
229
+ consentPhotoFlg: false,
226
230
  };
227
231
  } else {
228
232
  consents = {
@@ -1,7 +1,10 @@
1
+ /* eslint-disable camelcase */
1
2
  /* eslint-disable max-lines-per-function */
2
3
  import { useCallback, useEffect, useMemo } from '@redneckz/uni-jsx/lib/hooks';
4
+ import { useSessionStore } from '@redneckz/uni-jsx/lib/Store/useSessionStore';
3
5
  import { useSetter } from '../../hooks/useSetter';
4
6
  import { esiaRequestProfile } from '../../retail/api/esiaRequestProfile';
7
+ import { type MarketingInfo } from '../../retail/api/updateUserTask';
5
8
  import { type LeadFormState } from '../../retail/model/LeadFormState';
6
9
  import { type ReferalData } from '../../retail/model/ReferalData';
7
10
  import { type FieldRetailDef } from '../../retail/model/RetailFormContent';
@@ -19,6 +22,11 @@ type InitApplicationLeadProps = {
19
22
  esiaAuthSuccess: boolean;
20
23
  };
21
24
 
25
+ export interface ApplicationLeadStore {
26
+ marketingInfo: MarketingInfo | null;
27
+ referalData: ReferalData | null;
28
+ }
29
+
22
30
  export const useInitApplicationLead = ({
23
31
  inputs,
24
32
  productType,
@@ -27,6 +35,7 @@ export const useInitApplicationLead = ({
27
35
  }: InitApplicationLeadProps): LeadFormState => {
28
36
  const leadFormStore = useLeadFormStore();
29
37
  const saveForm = useSetter(leadFormStore, 'leadForm');
38
+ const sessionStore = useSessionStore<ApplicationLeadStore>();
30
39
  const queryFromStorage = globalThis.sessionStorage?.getItem(QUERY_STORAGE_KEY);
31
40
 
32
41
  const initialFormState = useMemo(
@@ -61,27 +70,21 @@ export const useInitApplicationLead = ({
61
70
  useEffect(() => {
62
71
  leadFormStore.productType = productType;
63
72
 
64
- const { code, state, referalCode, refererCode, productId } = getLeadQueryParams(
65
- leadFormStore.referalData,
73
+ const { code, state, referalCode, refererCode, productId, marketingInfo } = getLeadQueryParams(
66
74
  queryFromStorage,
75
+ sessionStore,
67
76
  );
68
77
 
69
78
  if (referalCode) {
70
- leadFormStore.referalData = {
79
+ sessionStore.referalData = {
71
80
  refererCode,
72
81
  referalCode,
73
82
  productId,
74
- isTaskWithReferalCode: true,
75
- };
76
- } else if (!code) {
77
- leadFormStore.referalData = {
78
- refererCode: null,
79
- referalCode: null,
80
- productId: null,
81
- isTaskWithReferalCode: false,
82
83
  };
83
84
  }
84
85
 
86
+ sessionStore.marketingInfo = marketingInfo;
87
+
85
88
  if (code && state) {
86
89
  requestEsiaProfile(code, state);
87
90
  } else {
@@ -93,7 +96,12 @@ export const useInitApplicationLead = ({
93
96
  return initialFormState;
94
97
  };
95
98
 
96
- const getLeadQueryParams = (referalData: ReferalData | null, queryFromStorage: string | null) => {
99
+ const getLeadQueryParams = (
100
+ queryFromStorage: string | null,
101
+ sessionStore: ApplicationLeadStore,
102
+ ) => {
103
+ const referalData = sessionStore.referalData;
104
+ const marketingInfoFromStorage = sessionStore.marketingInfo;
97
105
  const queryStorage = new URLSearchParams(decodeURIComponent(queryFromStorage || ''));
98
106
 
99
107
  const code = queryStorage.get('code');
@@ -101,6 +109,16 @@ const getLeadQueryParams = (referalData: ReferalData | null, queryFromStorage: s
101
109
  const referalCode = code ? referalData?.referalCode : queryStorage.get('referalCode');
102
110
  const refererCode = code ? referalData?.refererCode : queryStorage.get('refererCode');
103
111
  const productId = code ? referalData?.productId : queryStorage.get('productId');
112
+ const marketingInfo = code
113
+ ? marketingInfoFromStorage
114
+ : {
115
+ utm_campaign: queryStorage.get('utm_campaign'),
116
+ utm_medium: queryStorage.get('utm_medium'),
117
+ utm_source: queryStorage.get('utm_source'),
118
+ utm_content: queryStorage.get('utm_content'),
119
+ utm_term: queryStorage.get('utm_term'),
120
+ bannerId: queryStorage.get('bannerId'),
121
+ };
104
122
 
105
123
  return {
106
124
  code,
@@ -108,5 +126,6 @@ const getLeadQueryParams = (referalData: ReferalData | null, queryFromStorage: s
108
126
  referalCode,
109
127
  refererCode,
110
128
  productId,
129
+ marketingInfo,
111
130
  };
112
131
  };
@@ -1,12 +1,252 @@
1
- import {
2
- COMMON_RETAIL_CONTENT,
3
- CREDIT_CARD_CONTENT,
4
- DELIVERY_CREDIT_CARD_CONTENT,
5
- } from '../../retail/content';
1
+ /* eslint-disable max-lines */
2
+ import { DELIVERY_CARD_CONTENT, PERSONAL_DATA } from '../../retail/content';
6
3
  import { type CreditCardSectionsProps } from './CreditCardFormContent';
7
4
 
5
+ const PERSONAL_INFO_CONTENT: CreditCardSectionsProps[] = [
6
+ ...PERSONAL_DATA,
7
+ {
8
+ inputs: [
9
+ {
10
+ name: 'education',
11
+ required: true,
12
+ },
13
+ ],
14
+ },
15
+ {
16
+ title: 'Адрес регистрации по месту жительства',
17
+ columns: 1,
18
+ inputs: [],
19
+ },
20
+ {
21
+ inputs: [
22
+ {
23
+ name: 'addressRegistration',
24
+ required: true,
25
+ dadata: true,
26
+ filledByEsia: true,
27
+ },
28
+ { name: 'addressMatch' },
29
+ ],
30
+ },
31
+ {
32
+ columns: 2,
33
+ inputs: [{ name: 'participantDateRegistration', required: true }],
34
+ },
35
+ {
36
+ title: 'Адрес фактического проживания (место пребывания РФ)',
37
+ inputs: [],
38
+ },
39
+ {
40
+ columns: 2,
41
+ inputs: [{ name: 'housing', required: true }],
42
+ },
43
+ {
44
+ inputs: [{ name: 'addressFact', required: true, dadata: true }],
45
+ },
46
+ ];
47
+ const EMPLOYMENT_CONTENT: CreditCardSectionsProps[] = [
48
+ {
49
+ title: 'Данные о трудоустройстве',
50
+ inputs: [],
51
+ },
52
+ {
53
+ inputs: [
54
+ {
55
+ name: 'infoCard',
56
+ label:
57
+ 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
58
+ 'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
59
+ },
60
+ ],
61
+ },
62
+ {
63
+ inputs: [
64
+ { name: 'employment', required: true },
65
+ { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
66
+ ],
67
+ },
68
+ {
69
+ columns: 2,
70
+ inputs: [
71
+ { name: 'inn', required: true, dadata: true, filledByEsia: true },
72
+ { name: 'legalForm', required: true },
73
+ ],
74
+ },
75
+ {
76
+ inputs: [
77
+ { name: 'organization', required: true },
78
+ { name: 'amountWorkers', required: true },
79
+ ],
80
+ },
81
+ {
82
+ columns: 2,
83
+ inputs: [
84
+ { name: 'employerActivities', required: true },
85
+ { name: 'employerOrganization', required: true },
86
+ { name: 'generalSeniority', required: true, filledByEsia: true },
87
+ { name: 'lastJobExperience', required: true, filledByEsia: true },
88
+ { name: 'experience5Years', required: true, filledByEsia: true },
89
+ { name: 'jobsNumber', required: true, filledByEsia: true },
90
+ ],
91
+ },
92
+ {
93
+ inputs: [
94
+ {
95
+ name: 'organizationPhone',
96
+ label: 'Телефон работодателя',
97
+ required: true,
98
+ },
99
+ { name: 'beginDate', required: true, filledByEsia: true },
100
+ ],
101
+ },
102
+ {
103
+ columns: 2,
104
+ inputs: [
105
+ { name: 'positionOrganization', required: true },
106
+ {
107
+ name: 'partInBusiness',
108
+ required: true,
109
+ condition: { name: 'positionOrganization', values: ['BUSINESS_OWNER'] },
110
+ },
111
+ ],
112
+ },
113
+ {
114
+ title: 'Адрес работодателя',
115
+ inputs: [],
116
+ },
117
+ {
118
+ inputs: [{ name: 'organizationAddress', required: true, dadata: true }],
119
+ },
120
+ ];
121
+ const FAMILY_STATUS_AND_INCOME_CONTENT: CreditCardSectionsProps[] = [
122
+ {
123
+ title: 'Семейное положение',
124
+ },
125
+ {
126
+ columns: 1,
127
+ inputs: [{ name: 'familyStatus', required: true }],
128
+ },
129
+ {
130
+ columns: 1,
131
+ inputs: [{ name: 'children', required: true }],
132
+ },
133
+ {
134
+ columns: 2,
135
+ inputs: [{ name: 'dependents', required: true }, { name: 'familyMembers' }],
136
+ },
137
+ {
138
+ title: 'Совокупный доход',
139
+ },
140
+ {
141
+ columns: 1,
142
+ inputs: [
143
+ {
144
+ name: 'confirmationIncome',
145
+ required: true,
146
+ filledByEsia: true,
147
+ },
148
+ ],
149
+ },
150
+ {
151
+ inputs: [
152
+ {
153
+ name: 'infoCard',
154
+ label: 'Сумма основного и дополнительных доходов после вычета налога',
155
+ },
156
+ ],
157
+ },
158
+ {
159
+ columns: 1,
160
+ inputs: [{ name: 'wages', required: true, filledByEsia: true }],
161
+ },
162
+ {
163
+ columns: 1,
164
+ inputs: [
165
+ {
166
+ name: 'retirementIncome',
167
+ required: true,
168
+ condition: { name: 'employment', values: ['RETIREE'] },
169
+ },
170
+ ],
171
+ },
172
+ {
173
+ columns: 1,
174
+ inputs: [{ name: 'mandatoryPayments', required: true }],
175
+ },
176
+ {
177
+ columns: 1,
178
+ inputs: [{ name: 'snils', required: true }],
179
+ },
180
+ {
181
+ columns: 1,
182
+ inputs: [{ name: 'conscription', required: true }],
183
+ },
184
+ {
185
+ columns: 2,
186
+ inputs: [{ name: 'armyIdFlg' }],
187
+ },
188
+ ];
189
+ const ADDITIONAL_CONTENT: CreditCardSectionsProps[] = [
190
+ {
191
+ title: 'Дополнительные сведения',
192
+ columns: 1,
193
+ inputs: [],
194
+ },
195
+ {
196
+ inputs: [{ name: 'bankruptcyFlg' }],
197
+ },
198
+ {
199
+ inputs: [{ name: 'shareholderFlg' }],
200
+ },
201
+ {
202
+ inputs: [{ name: 'legalEntityName' }],
203
+ },
204
+ {
205
+ inputs: [{ name: 'creditInRshbCd' }],
206
+ },
207
+ ];
208
+ const CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
209
+ {
210
+ title: 'Параметры карты',
211
+ inputs: [],
212
+ },
213
+ {
214
+ inputs: [
215
+ { name: 'currency', required: true },
216
+ { name: 'paymentSystem', required: true },
217
+ { name: 'cardCategory', required: true },
218
+ { name: 'codeWord', required: true },
219
+ ],
220
+ },
221
+ ];
222
+ const DELIVERY_CREDIT_CARD_CONTENT: CreditCardSectionsProps[] = [
223
+ ...DELIVERY_CARD_CONTENT,
224
+ {
225
+ inputs: [
226
+ {
227
+ name: 'infoCard',
228
+ label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
229
+ condition: {
230
+ name: 'methodObtain',
231
+ values: ['office'],
232
+ },
233
+ },
234
+ {
235
+ name: 'bankEmployeeCode',
236
+ condition: {
237
+ name: 'methodObtain',
238
+ values: ['office'],
239
+ },
240
+ },
241
+ ],
242
+ },
243
+ ];
244
+
8
245
  export const stepsSectionsMap: CreditCardSectionsProps[][] = [
9
246
  CREDIT_CARD_CONTENT,
10
- ...COMMON_RETAIL_CONTENT,
247
+ PERSONAL_INFO_CONTENT,
248
+ EMPLOYMENT_CONTENT,
249
+ FAMILY_STATUS_AND_INCOME_CONTENT,
250
+ ADDITIONAL_CONTENT,
11
251
  DELIVERY_CREDIT_CARD_CONTENT,
12
252
  ];
@@ -1,5 +1,5 @@
1
1
  import { type LeadFormState } from '../../retail/model/LeadFormState';
2
- import { mainFormStateMap } from '../../retail/utils/mainFormStateMap';
2
+ import { getMainFormStateMap } from '../../retail/utils/getMainFormStateMap';
3
3
 
4
4
  export const formStateMap: Partial<LeadFormState>[] = [
5
5
  {
@@ -7,7 +7,7 @@ export const formStateMap: Partial<LeadFormState>[] = [
7
7
  currency: '810',
8
8
  codeWord: '',
9
9
  },
10
- ...mainFormStateMap,
10
+ ...getMainFormStateMap(),
11
11
  {
12
12
  regionRetail: { key: '', text: '' },
13
13
  addressRetail: { key: '', text: '' },
@@ -1,4 +1,3 @@
1
- import { locationNavigator } from '../../external/locationNavigator';
2
1
  import { getAdditionalInfoData } from '../../retail/adaptors/getAdditionalInfoData';
3
2
  import { getCardOptionsData } from '../../retail/adaptors/getCardOptionsData';
4
3
  import { getEmploymentData } from '../../retail/adaptors/getEmploymentData';
@@ -6,7 +5,6 @@ import { getFamilyStatusAndIncomeData } from '../../retail/adaptors/getFamilySta
6
5
  import { getPersonalInfoData } from '../../retail/adaptors/getPersonalInfoData';
7
6
  import { type Participant, type UpdateUserTaskBody } from '../../retail/api/updateUserTask';
8
7
  import { type LeadFormState } from '../../retail/model/LeadFormState';
9
- import { type ReferalData } from '../../retail/model/ReferalData';
10
8
  import {
11
9
  getDeliveryCreditCardData,
12
10
  getDeliveryData,
@@ -19,7 +17,6 @@ type getCreditCardFormTaskDataProps = {
19
17
  profileId: number;
20
18
  formData: LeadFormState;
21
19
  step?: number;
22
- isTaskWithReferalCode?: ReferalData['isTaskWithReferalCode'];
23
20
  };
24
21
 
25
22
  export const getCreditCardFormTaskData = ({
@@ -28,38 +25,31 @@ export const getCreditCardFormTaskData = ({
28
25
  profileId,
29
26
  formData,
30
27
  step = 0,
31
- isTaskWithReferalCode,
32
- }: getCreditCardFormTaskDataProps): UpdateUserTaskBody => {
33
- const navigator = locationNavigator();
34
- const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
35
-
36
- return {
37
- sendToBank: true,
38
- taskKind: 'UNITED',
39
- task: {
40
- taskSource,
41
- id: taskId,
42
- ...getOfficeCode(formData),
43
- authorizedAgentId: formData?.bankEmployeeCode,
44
- participants: [
45
- {
46
- id: participantId,
47
- profile: {
48
- id: profileId,
49
- },
50
- roleCd: {
51
- key: 'BORROWER',
52
- value: 'Заемщик',
53
- },
54
- ...getCurrentStepData(step, formData),
28
+ }: getCreditCardFormTaskDataProps): UpdateUserTaskBody => ({
29
+ sendToBank: true,
30
+ taskKind: 'UNITED',
31
+ task: {
32
+ id: taskId,
33
+ ...getOfficeCode(formData),
34
+ authorizedAgentId: formData?.bankEmployeeCode,
35
+ participants: [
36
+ {
37
+ id: participantId,
38
+ profile: {
39
+ id: profileId,
55
40
  },
56
- ],
57
- ...getCardOptionsData(formData),
58
- ...getDeliveryData(formData),
59
- files: formData?.files,
60
- },
61
- };
62
- };
41
+ roleCd: {
42
+ key: 'BORROWER',
43
+ value: 'Заемщик',
44
+ },
45
+ ...getCurrentStepData(step, formData),
46
+ },
47
+ ],
48
+ ...getCardOptionsData(formData),
49
+ ...getDeliveryData(formData),
50
+ files: formData?.files,
51
+ },
52
+ });
63
53
 
64
54
  const getCurrentStepData = (step: number, formData: LeadFormState): Partial<Participant> => {
65
55
  switch (step) {
@@ -48,7 +48,6 @@ export const useCreditCardFormAPI = ({
48
48
  async (formData: LeadFormState) => {
49
49
  startSending();
50
50
  retailFormStore.leadForm = formData;
51
- const referalData = retailFormStore.referalData;
52
51
 
53
52
  try {
54
53
  const { taskId, profileId, participantId } = retailFormStore;
@@ -60,7 +59,6 @@ export const useCreditCardFormAPI = ({
60
59
  profileId,
61
60
  step,
62
61
  formData: formData as any,
63
- isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
64
62
  }),
65
63
  );
66
64
  resetForm(response);