@redneckz/wildless-cms-uni-blocks 0.14.866 → 0.14.868

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 (427) hide show
  1. package/bundle/bundle.umd.js +558 -420
  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/components/GalleryLayout/useSortProductBlocks.d.ts +1 -1
  8. package/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  9. package/bundle/retail/api/createUserTaskDebit.d.ts +3 -1
  10. package/bundle/retail/api/updateUserTask.d.ts +3 -2
  11. package/bundle/retail/api/updateUserTaskDebit.d.ts +1 -1
  12. package/bundle/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  13. package/bundle/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  14. package/bundle/retail/content.d.ts +2 -8
  15. package/bundle/retail/inputs.d.ts +1 -1
  16. package/bundle/retail/model/LeadFormState.d.ts +4 -2
  17. package/bundle/retail/model/NameFieldDef.d.ts +1 -1
  18. package/bundle/retail/model/ReferalData.d.ts +0 -1
  19. package/bundle/retail/utils/getMainFormStateMap.d.ts +2 -0
  20. package/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
  21. package/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  22. package/dist/components/ApplicationLeadForm/consents.js +0 -4
  23. package/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  24. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  25. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
  26. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  27. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
  28. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  29. package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  30. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
  31. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  32. package/dist/components/CreditCardForm/creditCardFormStepsData.js +245 -3
  33. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  34. package/dist/components/CreditCardForm/formStateMap.js +2 -2
  35. package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
  36. package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  37. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
  38. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  39. package/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
  40. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  41. package/dist/components/CreditForm/CreditForm.js +1 -2
  42. package/dist/components/CreditForm/CreditForm.js.map +1 -1
  43. package/dist/components/CreditForm/creditFormStepsData.js +192 -3
  44. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  45. package/dist/components/CreditForm/formStateMap.js +2 -2
  46. package/dist/components/CreditForm/formStateMap.js.map +1 -1
  47. package/dist/components/CreditForm/useCreditFormAPI.js +1 -3
  48. package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  49. package/dist/components/DebitForm/DebitFormStepsData.js +71 -3
  50. package/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
  51. package/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  52. package/dist/components/DebitForm/getDebitCardFormTaskData.js +16 -22
  53. package/dist/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
  54. package/dist/components/DebitForm/useDebitFormAPI.js +0 -2
  55. package/dist/components/DebitForm/useDebitFormAPI.js.map +1 -1
  56. package/dist/components/GalleryLayout/useSortProductBlocks.d.ts +1 -1
  57. package/dist/components/GalleryLayout/useSortProductBlocks.js +8 -4
  58. package/dist/components/GalleryLayout/useSortProductBlocks.js.map +1 -1
  59. package/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  60. package/dist/retail/adaptors/getCreditFormTaskData.js +24 -33
  61. package/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  62. package/dist/retail/adaptors/getEmploymentData.js +3 -3
  63. package/dist/retail/adaptors/getEmploymentData.js.map +1 -1
  64. package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
  65. package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  66. package/dist/retail/adaptors/getPersonalInfoData.js +4 -2
  67. package/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
  68. package/dist/retail/api/checkCode.js +1 -1
  69. package/dist/retail/api/checkCode.js.map +1 -1
  70. package/dist/retail/api/createUserTaskDebit.d.ts +3 -1
  71. package/dist/retail/api/createUserTaskDebit.js.map +1 -1
  72. package/dist/retail/api/updateUserTask.d.ts +3 -2
  73. package/dist/retail/api/updateUserTask.js.map +1 -1
  74. package/dist/retail/api/updateUserTaskDebit.d.ts +1 -1
  75. package/dist/retail/components/DraftDialog/DraftDialog.js +1 -2
  76. package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  77. package/dist/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  78. package/dist/retail/components/DraftDialog/parseDraftTask.js +2 -3
  79. package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  80. package/dist/retail/components/Fields/DaDataInnField.js +10 -3
  81. package/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
  82. package/dist/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  83. package/dist/retail/components/Fields/InitiateBankruptcyFlgField.js +7 -0
  84. package/dist/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
  85. package/dist/retail/content.d.ts +2 -8
  86. package/dist/retail/content.js +3 -361
  87. package/dist/retail/content.js.map +1 -1
  88. package/dist/retail/inputs.d.ts +1 -1
  89. package/dist/retail/inputs.js +2 -1
  90. package/dist/retail/inputs.js.map +1 -1
  91. package/dist/retail/model/LeadFormState.d.ts +4 -2
  92. package/dist/retail/model/NameFieldDef.d.ts +1 -1
  93. package/dist/retail/model/ReferalData.d.ts +0 -1
  94. package/dist/retail/utils/getMainFormStateMap.d.ts +2 -0
  95. package/dist/retail/utils/{mainFormStateMap.js → getMainFormStateMap.js} +6 -4
  96. package/dist/retail/utils/getMainFormStateMap.js.map +1 -0
  97. package/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
  98. package/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  99. package/lib/components/ApplicationLeadForm/consents.js +0 -4
  100. package/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  101. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  102. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
  103. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  104. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
  105. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  106. package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  107. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
  108. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  109. package/lib/components/CreditCardForm/creditCardFormStepsData.js +244 -2
  110. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  111. package/lib/components/CreditCardForm/formStateMap.js +2 -2
  112. package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
  113. package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  114. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
  115. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  116. package/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
  117. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  118. package/lib/components/CreditForm/CreditForm.js +1 -2
  119. package/lib/components/CreditForm/CreditForm.js.map +1 -1
  120. package/lib/components/CreditForm/creditFormStepsData.js +191 -2
  121. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  122. package/lib/components/CreditForm/formStateMap.js +2 -2
  123. package/lib/components/CreditForm/formStateMap.js.map +1 -1
  124. package/lib/components/CreditForm/useCreditFormAPI.js +1 -3
  125. package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  126. package/lib/components/DebitForm/DebitFormStepsData.js +70 -2
  127. package/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
  128. package/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  129. package/lib/components/DebitForm/getDebitCardFormTaskData.js +16 -22
  130. package/lib/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
  131. package/lib/components/DebitForm/useDebitFormAPI.js +0 -2
  132. package/lib/components/DebitForm/useDebitFormAPI.js.map +1 -1
  133. package/lib/components/GalleryLayout/useSortProductBlocks.d.ts +1 -1
  134. package/lib/components/GalleryLayout/useSortProductBlocks.js +8 -4
  135. package/lib/components/GalleryLayout/useSortProductBlocks.js.map +1 -1
  136. package/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  137. package/lib/retail/adaptors/getCreditFormTaskData.js +24 -33
  138. package/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  139. package/lib/retail/adaptors/getEmploymentData.js +3 -3
  140. package/lib/retail/adaptors/getEmploymentData.js.map +1 -1
  141. package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
  142. package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  143. package/lib/retail/adaptors/getPersonalInfoData.js +4 -2
  144. package/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
  145. package/lib/retail/api/checkCode.js +1 -1
  146. package/lib/retail/api/checkCode.js.map +1 -1
  147. package/lib/retail/api/createUserTaskDebit.d.ts +3 -1
  148. package/lib/retail/api/createUserTaskDebit.js.map +1 -1
  149. package/lib/retail/api/updateUserTask.d.ts +3 -2
  150. package/lib/retail/api/updateUserTask.js.map +1 -1
  151. package/lib/retail/api/updateUserTaskDebit.d.ts +1 -1
  152. package/lib/retail/components/DraftDialog/DraftDialog.js +1 -2
  153. package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  154. package/lib/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  155. package/lib/retail/components/DraftDialog/parseDraftTask.js +2 -3
  156. package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  157. package/lib/retail/components/Fields/DaDataInnField.js +10 -3
  158. package/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
  159. package/lib/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  160. package/lib/retail/components/Fields/InitiateBankruptcyFlgField.js +5 -0
  161. package/lib/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
  162. package/lib/retail/content.d.ts +2 -8
  163. package/lib/retail/content.js +2 -360
  164. package/lib/retail/content.js.map +1 -1
  165. package/lib/retail/inputs.d.ts +1 -1
  166. package/lib/retail/inputs.js +2 -1
  167. package/lib/retail/inputs.js.map +1 -1
  168. package/lib/retail/model/LeadFormState.d.ts +4 -2
  169. package/lib/retail/model/NameFieldDef.d.ts +1 -1
  170. package/lib/retail/model/ReferalData.d.ts +0 -1
  171. package/lib/retail/utils/getMainFormStateMap.d.ts +2 -0
  172. package/lib/retail/utils/{mainFormStateMap.js → getMainFormStateMap.js} +4 -3
  173. package/lib/retail/utils/getMainFormStateMap.js.map +1 -0
  174. package/mobile/bundle/bundle.umd.js +473 -318
  175. package/mobile/bundle/bundle.umd.min.js +1 -1
  176. package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  177. package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  178. package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  179. package/mobile/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  180. package/mobile/bundle/components/GalleryLayout/useSortProductBlocks.d.ts +1 -1
  181. package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  182. package/mobile/bundle/retail/api/createUserTaskDebit.d.ts +3 -1
  183. package/mobile/bundle/retail/api/updateUserTask.d.ts +3 -2
  184. package/mobile/bundle/retail/api/updateUserTaskDebit.d.ts +1 -1
  185. package/mobile/bundle/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  186. package/mobile/bundle/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  187. package/mobile/bundle/retail/content.d.ts +2 -8
  188. package/mobile/bundle/retail/inputs.d.ts +1 -1
  189. package/mobile/bundle/retail/model/LeadFormState.d.ts +4 -2
  190. package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
  191. package/mobile/bundle/retail/model/ReferalData.d.ts +0 -1
  192. package/mobile/bundle/retail/utils/getMainFormStateMap.d.ts +2 -0
  193. package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js +0 -1
  194. package/mobile/dist/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  195. package/mobile/dist/components/ApplicationLeadForm/consents.js +0 -4
  196. package/mobile/dist/components/ApplicationLeadForm/consents.js.map +1 -1
  197. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  198. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
  199. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  200. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
  201. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  202. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  203. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
  204. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  205. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +245 -3
  206. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  207. package/mobile/dist/components/CreditCardForm/formStateMap.js +2 -2
  208. package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
  209. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  210. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
  211. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  212. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
  213. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  214. package/mobile/dist/components/CreditForm/CreditForm.js +1 -2
  215. package/mobile/dist/components/CreditForm/CreditForm.js.map +1 -1
  216. package/mobile/dist/components/CreditForm/creditFormStepsData.js +192 -3
  217. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  218. package/mobile/dist/components/CreditForm/formStateMap.js +2 -2
  219. package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
  220. package/mobile/dist/components/CreditForm/useCreditFormAPI.js +1 -3
  221. package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  222. package/mobile/dist/components/DebitForm/DebitFormStepsData.js +71 -3
  223. package/mobile/dist/components/DebitForm/DebitFormStepsData.js.map +1 -1
  224. package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  225. package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.js +16 -22
  226. package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
  227. package/mobile/dist/components/DebitForm/useDebitFormAPI.js +0 -2
  228. package/mobile/dist/components/DebitForm/useDebitFormAPI.js.map +1 -1
  229. package/mobile/dist/components/GalleryLayout/useSortProductBlocks.d.ts +1 -1
  230. package/mobile/dist/components/GalleryLayout/useSortProductBlocks.js +8 -4
  231. package/mobile/dist/components/GalleryLayout/useSortProductBlocks.js.map +1 -1
  232. package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  233. package/mobile/dist/retail/adaptors/getCreditFormTaskData.js +24 -33
  234. package/mobile/dist/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  235. package/mobile/dist/retail/adaptors/getEmploymentData.js +3 -3
  236. package/mobile/dist/retail/adaptors/getEmploymentData.js.map +1 -1
  237. package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
  238. package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  239. package/mobile/dist/retail/adaptors/getPersonalInfoData.js +4 -2
  240. package/mobile/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
  241. package/mobile/dist/retail/api/checkCode.js +1 -1
  242. package/mobile/dist/retail/api/checkCode.js.map +1 -1
  243. package/mobile/dist/retail/api/createUserTaskDebit.d.ts +3 -1
  244. package/mobile/dist/retail/api/createUserTaskDebit.js.map +1 -1
  245. package/mobile/dist/retail/api/updateUserTask.d.ts +3 -2
  246. package/mobile/dist/retail/api/updateUserTask.js.map +1 -1
  247. package/mobile/dist/retail/api/updateUserTaskDebit.d.ts +1 -1
  248. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -2
  249. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  250. package/mobile/dist/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  251. package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +2 -3
  252. package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  253. package/mobile/dist/retail/components/Fields/DaDataInnField.js +10 -3
  254. package/mobile/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
  255. package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  256. package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.js +7 -0
  257. package/mobile/dist/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
  258. package/mobile/dist/retail/content.d.ts +2 -8
  259. package/mobile/dist/retail/content.js +3 -361
  260. package/mobile/dist/retail/content.js.map +1 -1
  261. package/mobile/dist/retail/inputs.d.ts +1 -1
  262. package/mobile/dist/retail/inputs.js +2 -1
  263. package/mobile/dist/retail/inputs.js.map +1 -1
  264. package/mobile/dist/retail/model/LeadFormState.d.ts +4 -2
  265. package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
  266. package/mobile/dist/retail/model/ReferalData.d.ts +0 -1
  267. package/mobile/dist/retail/utils/getMainFormStateMap.d.ts +2 -0
  268. package/mobile/{lib/retail/utils/mainFormStateMap.js → dist/retail/utils/getMainFormStateMap.js} +7 -3
  269. package/mobile/dist/retail/utils/getMainFormStateMap.js.map +1 -0
  270. package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js +0 -1
  271. package/mobile/lib/components/ApplicationLeadForm/applicationFormData.js.map +1 -1
  272. package/mobile/lib/components/ApplicationLeadForm/consents.js +0 -4
  273. package/mobile/lib/components/ApplicationLeadForm/consents.js.map +1 -1
  274. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +4 -5
  275. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js +20 -17
  276. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  277. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +12 -11
  278. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  279. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +6 -0
  280. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +20 -12
  281. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  282. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +244 -2
  283. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  284. package/mobile/lib/components/CreditCardForm/formStateMap.js +2 -2
  285. package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
  286. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -3
  287. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +24 -30
  288. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  289. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -2
  290. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  291. package/mobile/lib/components/CreditForm/CreditForm.js +1 -2
  292. package/mobile/lib/components/CreditForm/CreditForm.js.map +1 -1
  293. package/mobile/lib/components/CreditForm/creditFormStepsData.js +191 -2
  294. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  295. package/mobile/lib/components/CreditForm/formStateMap.js +2 -2
  296. package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
  297. package/mobile/lib/components/CreditForm/useCreditFormAPI.js +1 -3
  298. package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  299. package/mobile/lib/components/DebitForm/DebitFormStepsData.js +70 -2
  300. package/mobile/lib/components/DebitForm/DebitFormStepsData.js.map +1 -1
  301. package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -3
  302. package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.js +16 -22
  303. package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.js.map +1 -1
  304. package/mobile/lib/components/DebitForm/useDebitFormAPI.js +0 -2
  305. package/mobile/lib/components/DebitForm/useDebitFormAPI.js.map +1 -1
  306. package/mobile/lib/components/GalleryLayout/useSortProductBlocks.d.ts +1 -1
  307. package/mobile/lib/components/GalleryLayout/useSortProductBlocks.js +8 -4
  308. package/mobile/lib/components/GalleryLayout/useSortProductBlocks.js.map +1 -1
  309. package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -3
  310. package/mobile/lib/retail/adaptors/getCreditFormTaskData.js +24 -33
  311. package/mobile/lib/retail/adaptors/getCreditFormTaskData.js.map +1 -1
  312. package/mobile/lib/retail/adaptors/getEmploymentData.js +3 -3
  313. package/mobile/lib/retail/adaptors/getEmploymentData.js.map +1 -1
  314. package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +2 -1
  315. package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
  316. package/mobile/lib/retail/adaptors/getPersonalInfoData.js +4 -2
  317. package/mobile/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
  318. package/mobile/lib/retail/api/checkCode.js +1 -1
  319. package/mobile/lib/retail/api/checkCode.js.map +1 -1
  320. package/mobile/lib/retail/api/createUserTaskDebit.d.ts +3 -1
  321. package/mobile/lib/retail/api/createUserTaskDebit.js.map +1 -1
  322. package/mobile/lib/retail/api/updateUserTask.d.ts +3 -2
  323. package/mobile/lib/retail/api/updateUserTask.js.map +1 -1
  324. package/mobile/lib/retail/api/updateUserTaskDebit.d.ts +1 -1
  325. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -2
  326. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  327. package/mobile/lib/retail/components/DraftDialog/parseDraftTask.d.ts +1 -1
  328. package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +2 -3
  329. package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  330. package/mobile/lib/retail/components/Fields/DaDataInnField.js +10 -3
  331. package/mobile/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
  332. package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.d.ts +2 -0
  333. package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.js +5 -0
  334. package/mobile/lib/retail/components/Fields/InitiateBankruptcyFlgField.js.map +1 -0
  335. package/mobile/lib/retail/content.d.ts +2 -8
  336. package/mobile/lib/retail/content.js +2 -360
  337. package/mobile/lib/retail/content.js.map +1 -1
  338. package/mobile/lib/retail/inputs.d.ts +1 -1
  339. package/mobile/lib/retail/inputs.js +2 -1
  340. package/mobile/lib/retail/inputs.js.map +1 -1
  341. package/mobile/lib/retail/model/LeadFormState.d.ts +4 -2
  342. package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
  343. package/mobile/lib/retail/model/ReferalData.d.ts +0 -1
  344. package/mobile/lib/retail/utils/getMainFormStateMap.d.ts +2 -0
  345. package/mobile/{dist/retail/utils/mainFormStateMap.js → lib/retail/utils/getMainFormStateMap.js} +4 -5
  346. package/mobile/lib/retail/utils/getMainFormStateMap.js.map +1 -0
  347. package/mobile/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
  348. package/mobile/src/components/ApplicationLeadForm/consents.ts +0 -4
  349. package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +22 -20
  350. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +15 -11
  351. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +31 -12
  352. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +246 -6
  353. package/mobile/src/components/CreditCardForm/formStateMap.tsx +2 -2
  354. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +24 -34
  355. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +0 -2
  356. package/mobile/src/components/CreditForm/CreditForm.tsx +1 -2
  357. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +194 -6
  358. package/mobile/src/components/CreditForm/formStateMap.tsx +2 -2
  359. package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +1 -3
  360. package/mobile/src/components/DebitForm/DebitFormStepsData.tsx +71 -6
  361. package/mobile/src/components/DebitForm/getDebitCardFormTaskData.ts +16 -26
  362. package/mobile/src/components/DebitForm/useDebitFormAPI.tsx +0 -2
  363. package/mobile/src/components/GalleryLayout/useSortProductBlocks.ts +9 -4
  364. package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +26 -39
  365. package/mobile/src/retail/adaptors/getEmploymentData.tsx +3 -3
  366. package/mobile/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +2 -0
  367. package/mobile/src/retail/adaptors/getPersonalInfoData.tsx +4 -2
  368. package/mobile/src/retail/api/checkCode.ts +1 -1
  369. package/mobile/src/retail/api/createUserTaskDebit.ts +3 -1
  370. package/mobile/src/retail/api/updateUserTask.ts +3 -2
  371. package/mobile/src/retail/api/updateUserTaskDebit.ts +1 -1
  372. package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +1 -2
  373. package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +2 -5
  374. package/mobile/src/retail/components/Fields/DaDataInnField.tsx +14 -6
  375. package/mobile/src/retail/components/Fields/InitiateBankruptcyFlgField.tsx +10 -0
  376. package/mobile/src/retail/content.tsx +3 -362
  377. package/mobile/src/retail/inputs.tsx +2 -1
  378. package/mobile/src/retail/model/LeadFormState.ts +4 -2
  379. package/mobile/src/retail/model/NameFieldDef.ts +1 -0
  380. package/mobile/src/retail/model/ReferalData.ts +0 -1
  381. package/mobile/src/retail/utils/{mainFormStateMap.ts → getMainFormStateMap.ts} +3 -2
  382. package/package.json +1 -1
  383. package/src/components/ApplicationLeadForm/applicationFormData.tsx +0 -1
  384. package/src/components/ApplicationLeadForm/consents.ts +0 -4
  385. package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +22 -20
  386. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +15 -11
  387. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +31 -12
  388. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +246 -6
  389. package/src/components/CreditCardForm/formStateMap.tsx +2 -2
  390. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +24 -34
  391. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +0 -2
  392. package/src/components/CreditForm/CreditForm.tsx +1 -2
  393. package/src/components/CreditForm/creditFormStepsData.tsx +194 -6
  394. package/src/components/CreditForm/formStateMap.tsx +2 -2
  395. package/src/components/CreditForm/useCreditFormAPI.tsx +1 -3
  396. package/src/components/DebitForm/DebitFormStepsData.tsx +71 -6
  397. package/src/components/DebitForm/getDebitCardFormTaskData.ts +16 -26
  398. package/src/components/DebitForm/useDebitFormAPI.tsx +0 -2
  399. package/src/components/GalleryLayout/useSortProductBlocks.ts +9 -4
  400. package/src/retail/adaptors/getCreditFormTaskData.ts +26 -39
  401. package/src/retail/adaptors/getEmploymentData.tsx +3 -3
  402. package/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +2 -0
  403. package/src/retail/adaptors/getPersonalInfoData.tsx +4 -2
  404. package/src/retail/api/checkCode.ts +1 -1
  405. package/src/retail/api/createUserTaskDebit.ts +3 -1
  406. package/src/retail/api/updateUserTask.ts +3 -2
  407. package/src/retail/api/updateUserTaskDebit.ts +1 -1
  408. package/src/retail/components/DraftDialog/DraftDialog.tsx +1 -2
  409. package/src/retail/components/DraftDialog/parseDraftTask.ts +2 -5
  410. package/src/retail/components/Fields/DaDataInnField.tsx +14 -6
  411. package/src/retail/components/Fields/InitiateBankruptcyFlgField.tsx +10 -0
  412. package/src/retail/content.tsx +3 -362
  413. package/src/retail/inputs.tsx +2 -1
  414. package/src/retail/model/LeadFormState.ts +4 -2
  415. package/src/retail/model/NameFieldDef.ts +1 -0
  416. package/src/retail/model/ReferalData.ts +0 -1
  417. package/src/retail/utils/{mainFormStateMap.ts → getMainFormStateMap.ts} +3 -2
  418. package/bundle/retail/utils/mainFormStateMap.d.ts +0 -2
  419. package/dist/retail/utils/mainFormStateMap.d.ts +0 -2
  420. package/dist/retail/utils/mainFormStateMap.js.map +0 -1
  421. package/lib/retail/utils/mainFormStateMap.d.ts +0 -2
  422. package/lib/retail/utils/mainFormStateMap.js.map +0 -1
  423. package/mobile/bundle/retail/utils/mainFormStateMap.d.ts +0 -2
  424. package/mobile/dist/retail/utils/mainFormStateMap.d.ts +0 -2
  425. package/mobile/dist/retail/utils/mainFormStateMap.js.map +0 -1
  426. package/mobile/lib/retail/utils/mainFormStateMap.d.ts +0 -2
  427. package/mobile/lib/retail/utils/mainFormStateMap.js.map +0 -1
@@ -2628,10 +2628,6 @@
2628
2628
  text: 'Согласие на получение информационных материалов',
2629
2629
  docId: 18,
2630
2630
  },
2631
- consentPhotoFlg: {
2632
- text: 'Согласие на фотографирование',
2633
- docId: 17,
2634
- },
2635
2631
  };
2636
2632
  const DEBIT_CARD_CONSENTS = {
2637
2633
  processPersonalDataFlg: {
@@ -2670,7 +2666,6 @@
2670
2666
  { name: 'consentInformFlg' },
2671
2667
  { name: 'consentPfrFlg' },
2672
2668
  { name: 'consentInformMaterialsFlg' },
2673
- { name: 'consentPhotoFlg' },
2674
2669
  { name: 'consentFATCA', required: true },
2675
2670
  ];
2676
2671
  return [
@@ -4443,9 +4438,7 @@
4443
4438
  updateOrganizationFields(store, field, item);
4444
4439
  }, []);
4445
4440
  useEffect(() => {
4446
- if (!esiaAccountTypeCd ||
4447
- !inn ||
4448
- !(employerActivities && employerOrganization && organization && amountWorkers)) {
4441
+ if (!esiaAccountTypeCd || !inn || !isDictionariesAlreadyLoad(store)) {
4449
4442
  return;
4450
4443
  }
4451
4444
  (async () => {
@@ -4457,6 +4450,15 @@
4457
4450
  }, [employerActivities, employerOrganization, organization, amountWorkers]);
4458
4451
  return (jsx(DaDataInputControl, { label: "\u0418\u041D\u041D", isInteger: true, maxLength: 12, ...input, ...field(input?.name ?? ''), onDaDataChange: onDaDataChange, disabled: isEsiaAuthorize(field, input) }));
4459
4452
  });
4453
+ const isDictionariesAlreadyLoad = (store) => {
4454
+ const { employerActivities, employerOrganization, organization, amountWorkers, productType } = store;
4455
+ return [
4456
+ employerOrganization,
4457
+ organization,
4458
+ amountWorkers,
4459
+ productType === 'creditCard' ? employerActivities : true,
4460
+ ].every(Boolean);
4461
+ };
4460
4462
 
4461
4463
  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() })));
4462
4464
 
@@ -4568,6 +4570,8 @@
4568
4570
 
4569
4571
  const InfoCardField = JSX(({ input }) => (jsx(InfoCard, { __html: input?.label })));
4570
4572
 
4573
+ 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 ?? '') })));
4574
+
4571
4575
  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) })));
4572
4576
 
4573
4577
  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) })));
@@ -4906,7 +4910,6 @@
4906
4910
  consentInformFlg: ConsentField,
4907
4911
  consentPfrFlg: ConsentField,
4908
4912
  consentInformMaterialsFlg: ConsentField,
4909
- consentPhotoFlg: ConsentField,
4910
4913
  consentFATCA: ConsentField,
4911
4914
  };
4912
4915
  const InputsRetailMap = {
@@ -4953,6 +4956,7 @@
4953
4956
  wages: WagesField,
4954
4957
  mandatoryPayments: MandatoryPaymentsField,
4955
4958
  bankruptcyFlg: BankruptcyFlgField,
4959
+ initiateBankruptcyFlg: InitiateBankruptcyFlgField,
4956
4960
  shareholderFlg: ShareholderFlgField,
4957
4961
  legalEntityName: LegalEntityNameField,
4958
4962
  creditInRshbCd: CreditInRshbCdField,
@@ -5006,6 +5010,12 @@
5006
5010
 
5007
5011
  const renderSubmitButton = (button, isSending = false) => (jsx(SubmitButton$1, { className: "w-full @xl:w-auto", isLoading: isSending, children: button?.text ? button.text : 'Отправить заявку' }));
5008
5012
 
5013
+ const sessionStore = new Store(); // sessionStorage cache
5014
+ replicate(sessionStore, new StorageAdapter(globalThis?.sessionStorage));
5015
+ function useSessionStore() {
5016
+ return useStore(sessionStore);
5017
+ }
5018
+
5009
5019
  const createDraftTask = async (body) => {
5010
5020
  const res = await fetchRetailJSON('/user-data/createDraftTask', 'POST', body);
5011
5021
  return res || {};
@@ -5034,12 +5044,6 @@
5034
5044
 
5035
5045
  const updateUserTask = (body) => doRequest('/user-data/updateUserTask', 'PUT', body);
5036
5046
 
5037
- const sessionStore = new Store(); // sessionStorage cache
5038
- replicate(sessionStore, new StorageAdapter(globalThis?.sessionStorage));
5039
- function useSessionStore() {
5040
- return useStore(sessionStore);
5041
- }
5042
-
5043
5047
  const Timer = JSX(({ className, seconds }) => (jsx("span", { className: className, children: formatTimer(seconds) })));
5044
5048
  const formatTimer = (seconds) => {
5045
5049
  const minutes = Math.floor(seconds / 60);
@@ -5191,7 +5195,7 @@
5191
5195
 
5192
5196
  const checkCode = async (body) => fetchRetailJSON('/sms/checkCode', 'POST', body).then(saveToken);
5193
5197
  const saveToken = (data) => {
5194
- if (data) {
5198
+ if (data?.access_token && data?.refresh_token) {
5195
5199
  globalThis.sessionStorage.setItem('accessToken', data.access_token);
5196
5200
  globalThis.sessionStorage.setItem('refreshToken', data.refresh_token);
5197
5201
  }
@@ -5423,7 +5427,7 @@
5423
5427
  }, []);
5424
5428
 
5425
5429
  const getFamilyStatusAndIncomeData = (formData) => {
5426
- const { familyStatus, familyMembers, dependents, children, confirmationIncome, wages, mandatoryPayments, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, conscription, } = formData;
5430
+ const { familyStatus, familyMembers, dependents, children, confirmationIncome, wages, mandatoryPayments, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, conscription, initiateBankruptcyFlg, } = formData;
5427
5431
  return {
5428
5432
  maritalStatusCd: familyStatus,
5429
5433
  totalDependents: familyMembers,
@@ -5443,6 +5447,7 @@
5443
5447
  }),
5444
5448
  snils: snils?.replace(/[-\s]/g, ''),
5445
5449
  armyIdFlg,
5450
+ initiateBankruptcyFlg,
5446
5451
  };
5447
5452
  };
5448
5453
  const countIncomeAverage = (wages, retirementIncome) => (Number(wages ?? 0) + Number(retirementIncome ?? 0)).toString();
@@ -5538,10 +5543,10 @@
5538
5543
 
5539
5544
  const parseDraftTask = (task) => {
5540
5545
  const participant = task.participants[0];
5541
- const { classCard: cardCategory, codeWord, paymentSystemTypeCd: paymentSystem, currencyCode: currency, taskSource, } = task;
5546
+ const { classCard: cardCategory, codeWord, paymentSystemTypeCd: paymentSystem, currencyCode: currency, } = task;
5542
5547
  const { loanAmount: moneyValue, creditPeriod: monthsValue, paymentTypeCd } = task;
5543
5548
  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;
5544
- const taskFromDraft = {
5549
+ return {
5545
5550
  currency: currency?.key,
5546
5551
  paymentSystem: getSelectValue(paymentSystem),
5547
5552
  cardCategory: getSelectValue(cardCategory),
@@ -5598,7 +5603,6 @@
5598
5603
  ...getParticipantContacts(participantContacts),
5599
5604
  ...getParticipantGender(genderCd),
5600
5605
  };
5601
- return [taskFromDraft, taskSource === 'ReferalSF'];
5602
5606
  };
5603
5607
 
5604
5608
  const DraftDialog = JSX(function ({ task, isFromLead = false, isDebit = false, sendAspects = noop, onClose = noop, }) {
@@ -5618,13 +5622,12 @@
5618
5622
  };
5619
5623
  const { id: participantId, profile } = participants[0];
5620
5624
  const handleGoToDraft = useCallback(() => {
5621
- const [taskFromDraft, isTaskWithReferalCode] = parseDraftTask(task);
5625
+ const taskFromDraft = parseDraftTask(task);
5622
5626
  retailFormStore.participantId = participantId ?? null;
5623
5627
  retailFormStore.taskId = taskId;
5624
5628
  retailFormStore.profileId = profile?.id ?? null;
5625
5629
  retailFormStore.programId = programmId;
5626
5630
  retailFormStore.leadForm = taskFromDraft;
5627
- retailFormStore.referalData = { isTaskWithReferalCode };
5628
5631
  if (profile?.id) {
5629
5632
  sendAspects(profile.id, taskId);
5630
5633
  }
@@ -5677,10 +5680,9 @@
5677
5680
  };
5678
5681
 
5679
5682
  /* eslint-disable camelcase */
5680
- const getCreditLeadFormTaskData = ({ participantId, taskId, profileId, formData, isTaskWithReferalCode, }) => {
5683
+ const getCreditLeadFormTaskData = ({ participantId, taskId, profileId, formData, marketingInfo, }) => {
5681
5684
  const { name, surname, middleName, limitedBirthday, phone, email } = formData;
5682
- const navigator = locationNavigator();
5683
- const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
5685
+ const taskSource = getTaskSource(marketingInfo?.utm_source);
5684
5686
  return {
5685
5687
  sendToBank: true,
5686
5688
  taskKind: 'SHORT',
@@ -5707,14 +5709,13 @@
5707
5709
  },
5708
5710
  },
5709
5711
  ],
5710
- marketingInfo: getMarketingInfo(),
5712
+ marketingInfo,
5711
5713
  },
5712
5714
  };
5713
5715
  };
5714
- const getDebitLeadFormTaskData = (formData, programId, isTaskWithReferalCode) => {
5716
+ const getDebitLeadFormTaskData = (formData, programId, marketingInfo) => {
5715
5717
  const { name, surname, middleName, limitedBirthday, phone, email } = formData;
5716
- const navigator = locationNavigator();
5717
- const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
5718
+ const taskSource = getTaskSource(marketingInfo?.utm_source);
5718
5719
  return {
5719
5720
  task: {
5720
5721
  taskSource,
@@ -5733,18 +5734,24 @@
5733
5734
  }),
5734
5735
  },
5735
5736
  ],
5737
+ marketingInfo: {
5738
+ bannerId: marketingInfo?.bannerId,
5739
+ },
5736
5740
  },
5737
5741
  };
5738
5742
  };
5739
- const getMarketingInfo = () => {
5740
- const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
5741
- return {
5742
- utm_campaign: params.get('utm_campaign'),
5743
- utm_medium: params.get('utm_medium'),
5744
- utm_source: params.get('utm_source'),
5745
- utm_content: params.get('utm_content'),
5746
- utm_term: params.get('utm_term'),
5747
- };
5743
+ const getTaskSource = (source) => {
5744
+ switch (source) {
5745
+ case 'referal_sf': {
5746
+ return 'ReferalSF';
5747
+ }
5748
+ case 'vse_svoe': {
5749
+ return 'vseSvoe';
5750
+ }
5751
+ default: {
5752
+ return globalThis.location.origin;
5753
+ }
5754
+ }
5748
5755
  };
5749
5756
 
5750
5757
  const useSaveUserData = () => {
@@ -5784,7 +5791,7 @@
5784
5791
  const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
5785
5792
  const [ok, setOK] = useState();
5786
5793
  const saveUserData = useSaveUserData();
5787
- const leadFormStore = useLeadFormStore();
5794
+ const sessionStore = useSessionStore();
5788
5795
  const sendAspects = useSendLeadFormAspects({ data });
5789
5796
  const navigator = locationNavigator();
5790
5797
  const goToNextStep = useCallback(() => {
@@ -5800,7 +5807,8 @@
5800
5807
  const profileId = await createUserProfile({
5801
5808
  profile: { phone: formatPhone(transformedFormData.phone) },
5802
5809
  });
5803
- const referalData = leadFormStore.referalData;
5810
+ const referalData = sessionStore.referalData;
5811
+ const marketingInfo = sessionStore.marketingInfo;
5804
5812
  if (!profileId) {
5805
5813
  throw new Error();
5806
5814
  }
@@ -5811,6 +5819,7 @@
5811
5819
  formData: transformedFormData,
5812
5820
  productType,
5813
5821
  referalData,
5822
+ marketingInfo,
5814
5823
  saveUserData,
5815
5824
  sendAspects,
5816
5825
  });
@@ -5866,15 +5875,14 @@
5866
5875
  .filter((_) => formData[_])
5867
5876
  .map((_) => consents[_]?.text);
5868
5877
  };
5869
- const updateUserData = async ({ programId, profileId, formData, productType, referalData, saveUserData, sendAspects, }) => {
5878
+ const updateUserData = async ({ programId, profileId, formData, productType, referalData, marketingInfo, saveUserData, sendAspects, }) => {
5870
5879
  let taskId;
5871
5880
  let participantId;
5872
5881
  const transformedConsents = transformConsentsFields(formData, productType);
5873
- const isTaskWithReferalCode = referalData?.isTaskWithReferalCode;
5874
5882
  await updateUserProfile(getUpdateUserProfileData(profileId, formData, transformedConsents));
5875
5883
  try {
5876
5884
  if (productType === 'debitCard') {
5877
- const debitData = await createUserTaskDebit(getDebitLeadFormTaskData(formData, programId, isTaskWithReferalCode));
5885
+ const debitData = await createUserTaskDebit(getDebitLeadFormTaskData(formData, programId, marketingInfo));
5878
5886
  taskId = debitData.taskId;
5879
5887
  participantId = debitData.participantId;
5880
5888
  }
@@ -5890,10 +5898,10 @@
5890
5898
  taskId,
5891
5899
  profileId,
5892
5900
  formData,
5893
- isTaskWithReferalCode,
5901
+ marketingInfo,
5894
5902
  }));
5895
5903
  }
5896
- if (isTaskWithReferalCode) {
5904
+ if (referalData?.referalCode) {
5897
5905
  await saveReferalInfo({
5898
5906
  taskId,
5899
5907
  ...referalData,
@@ -5907,19 +5915,19 @@
5907
5915
  }
5908
5916
  };
5909
5917
  const transformConsentsFields = (formData, productType) => {
5910
- const { consentOthersFlg, consentPfrFlg, processPersonalDataFlg, consentInformFlg, consentProviderFlg, consentInformMaterialsFlg, consentPhotoFlg, consentFATCA, } = formData;
5918
+ const { consentOthersFlg, consentPfrFlg, processPersonalDataFlg, consentInformFlg, consentProviderFlg, consentInformMaterialsFlg, consentFATCA, } = formData;
5911
5919
  let consents;
5912
5920
  if (productType === 'credit') {
5913
5921
  consents = {
5914
- consentPhotoFlg: consentOthersFlg,
5915
5922
  consentPfrFlg: consentPfrFlg,
5916
5923
  consentInformMaterialsFlg: consentOthersFlg,
5924
+ consentPhotoFlg: false,
5917
5925
  };
5918
5926
  }
5919
5927
  else if (productType === 'creditCard') {
5920
5928
  consents = {
5921
5929
  consentInformMaterialsFlg,
5922
- consentPhotoFlg,
5930
+ consentPhotoFlg: false,
5923
5931
  };
5924
5932
  }
5925
5933
  else {
@@ -6161,10 +6169,11 @@
6161
6169
  return data.every(Boolean);
6162
6170
  };
6163
6171
 
6164
- /* eslint-disable max-lines-per-function */
6172
+ /* eslint-disable camelcase */
6165
6173
  const useInitApplicationLead = ({ inputs, productType, setEsiaStatus, esiaAuthSuccess, }) => {
6166
6174
  const leadFormStore = useLeadFormStore();
6167
6175
  const saveForm = useSetter(leadFormStore, 'leadForm');
6176
+ const sessionStore = useSessionStore();
6168
6177
  const queryFromStorage = globalThis.sessionStorage?.getItem(QUERY_STORAGE_KEY);
6169
6178
  const initialFormState = useMemo(() => getInitialFormState$1(inputs, leadFormStore.leadForm, esiaAuthSuccess), [inputs, leadFormStore.leadForm]);
6170
6179
  const requestEsiaProfile = useCallback(async (code, state) => {
@@ -6191,23 +6200,15 @@
6191
6200
  }, []);
6192
6201
  useEffect(() => {
6193
6202
  leadFormStore.productType = productType;
6194
- const { code, state, referalCode, refererCode, productId } = getLeadQueryParams(leadFormStore.referalData, queryFromStorage);
6203
+ const { code, state, referalCode, refererCode, productId, marketingInfo } = getLeadQueryParams(queryFromStorage, sessionStore);
6195
6204
  if (referalCode) {
6196
- leadFormStore.referalData = {
6205
+ sessionStore.referalData = {
6197
6206
  refererCode,
6198
6207
  referalCode,
6199
6208
  productId,
6200
- isTaskWithReferalCode: true,
6201
- };
6202
- }
6203
- else if (!code) {
6204
- leadFormStore.referalData = {
6205
- refererCode: null,
6206
- referalCode: null,
6207
- productId: null,
6208
- isTaskWithReferalCode: false,
6209
6209
  };
6210
6210
  }
6211
+ sessionStore.marketingInfo = marketingInfo;
6211
6212
  if (code && state) {
6212
6213
  requestEsiaProfile(code, state);
6213
6214
  }
@@ -6218,19 +6219,32 @@
6218
6219
  }, [queryFromStorage]);
6219
6220
  return initialFormState;
6220
6221
  };
6221
- const getLeadQueryParams = (referalData, queryFromStorage) => {
6222
+ const getLeadQueryParams = (queryFromStorage, sessionStore) => {
6223
+ const referalData = sessionStore.referalData;
6224
+ const marketingInfoFromStorage = sessionStore.marketingInfo;
6222
6225
  const queryStorage = new URLSearchParams(decodeURIComponent(queryFromStorage || ''));
6223
6226
  const code = queryStorage.get('code');
6224
6227
  const state = queryStorage.get('state');
6225
6228
  const referalCode = code ? referalData?.referalCode : queryStorage.get('referalCode');
6226
6229
  const refererCode = code ? referalData?.refererCode : queryStorage.get('refererCode');
6227
6230
  const productId = code ? referalData?.productId : queryStorage.get('productId');
6231
+ const marketingInfo = code
6232
+ ? marketingInfoFromStorage
6233
+ : {
6234
+ utm_campaign: queryStorage.get('utm_campaign'),
6235
+ utm_medium: queryStorage.get('utm_medium'),
6236
+ utm_source: queryStorage.get('utm_source'),
6237
+ utm_content: queryStorage.get('utm_content'),
6238
+ utm_term: queryStorage.get('utm_term'),
6239
+ bannerId: queryStorage.get('bannerId'),
6240
+ };
6228
6241
  return {
6229
6242
  code,
6230
6243
  state,
6231
6244
  referalCode,
6232
6245
  refererCode,
6233
6246
  productId,
6247
+ marketingInfo,
6234
6248
  };
6235
6249
  };
6236
6250
 
@@ -7913,7 +7927,7 @@
7913
7927
  }
7914
7928
  };
7915
7929
 
7916
- const mainFormStateMap = [
7930
+ const getMainFormStateMap = (isCredit = false) => [
7917
7931
  {
7918
7932
  surname: '',
7919
7933
  name: '',
@@ -7968,8 +7982,9 @@
7968
7982
  wages: undefined,
7969
7983
  mandatoryPayments: undefined,
7970
7984
  snils: '',
7971
- armyIdFlg: false,
7985
+ armyIdFlg: isCredit ? undefined : false,
7972
7986
  esiaAccountTypeCd: { key: '', text: '' },
7987
+ initiateBankruptcyFlg: isCredit ? false : undefined,
7973
7988
  },
7974
7989
  {
7975
7990
  bankruptcyFlg: false,
@@ -7985,7 +8000,7 @@
7985
8000
  currency: '810',
7986
8001
  codeWord: '',
7987
8002
  },
7988
- ...mainFormStateMap,
8003
+ ...getMainFormStateMap(),
7989
8004
  {
7990
8005
  regionRetail: { key: '', text: '' },
7991
8006
  addressRetail: { key: '', text: '' },
@@ -8026,7 +8041,7 @@
8026
8041
  employmentTypeCd: employment,
8027
8042
  organizationName,
8028
8043
  organizationInn: inn,
8029
- organizationActivityTypeCd: employerActivities,
8044
+ organizationActivityTypeCd: employerActivities?.key ? employerActivities : undefined,
8030
8045
  organizationTypeCd: organization,
8031
8046
  organizationKindCd: employerOrganization,
8032
8047
  employeesNumberCd: amountWorkers,
@@ -8035,17 +8050,17 @@
8035
8050
  generalSeniority: experience5Years,
8036
8051
  jobsNumber,
8037
8052
  lastWorkDuration: lastJobExperience,
8038
- positionCd: positionOrganization,
8053
+ positionCd: positionOrganization?.key ? positionOrganization : undefined,
8039
8054
  participantContacts: getParticipantContacts$1({
8040
8055
  organizationPhone: organizationPhone && formatPhone(organizationPhone),
8041
8056
  }),
8042
8057
  participantAddresses: getParticipantAddresses$1({ organizationAddress }),
8043
- ownershipShare: positionOrganization?.key === 'BUSINESS_OWNER' ? partInBusiness : '',
8058
+ ownershipShare: positionOrganization?.key === 'BUSINESS_OWNER' ? partInBusiness : undefined,
8044
8059
  };
8045
8060
  };
8046
8061
 
8047
8062
  const getPersonalInfoData = (formData) => {
8048
- const { name, surname, middleName, limitedBirthday = '', phone = '', email, sex, birthPlace, dulIssueDate = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration = '', housing, addressRegistration, addressFact, addressMatch, } = formData;
8063
+ const { name, surname, middleName, limitedBirthday = '', phone = '', email, sex, birthPlace, dulIssueDate = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration, housing, addressRegistration, addressFact, addressMatch, } = formData;
8049
8064
  return {
8050
8065
  birthDate: formatDate(limitedBirthday, true),
8051
8066
  midname: middleName,
@@ -8058,7 +8073,9 @@
8058
8073
  dulSerie,
8059
8074
  dulSubdivisionCode,
8060
8075
  educationLevelCd: education,
8061
- registrationDate: formatDate(participantDateRegistration, true),
8076
+ registrationDate: participantDateRegistration
8077
+ ? formatDate(participantDateRegistration, true)
8078
+ : undefined,
8062
8079
  homeMatchFlg: addressMatch,
8063
8080
  houseTypeCd: housing,
8064
8081
  participantContacts: getParticipantContacts$1({
@@ -8114,36 +8131,31 @@
8114
8131
  : {};
8115
8132
  };
8116
8133
 
8117
- const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, isTaskWithReferalCode, }) => {
8118
- const navigator = locationNavigator();
8119
- const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
8120
- return {
8121
- sendToBank: true,
8122
- taskKind: 'UNITED',
8123
- task: {
8124
- taskSource,
8125
- id: taskId,
8126
- ...getOfficeCode$1(formData),
8127
- authorizedAgentId: formData?.bankEmployeeCode,
8128
- participants: [
8129
- {
8130
- id: participantId,
8131
- profile: {
8132
- id: profileId,
8133
- },
8134
- roleCd: {
8135
- key: 'BORROWER',
8136
- value: 'Заемщик',
8137
- },
8138
- ...getCurrentStepData$2(step, formData),
8134
+ const getCreditCardFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => ({
8135
+ sendToBank: true,
8136
+ taskKind: 'UNITED',
8137
+ task: {
8138
+ id: taskId,
8139
+ ...getOfficeCode$1(formData),
8140
+ authorizedAgentId: formData?.bankEmployeeCode,
8141
+ participants: [
8142
+ {
8143
+ id: participantId,
8144
+ profile: {
8145
+ id: profileId,
8139
8146
  },
8140
- ],
8141
- ...getCardOptionsData(formData),
8142
- ...getDeliveryData$1(formData),
8143
- files: formData?.files,
8144
- },
8145
- };
8146
- };
8147
+ roleCd: {
8148
+ key: 'BORROWER',
8149
+ value: 'Заемщик',
8150
+ },
8151
+ ...getCurrentStepData$2(step, formData),
8152
+ },
8153
+ ],
8154
+ ...getCardOptionsData(formData),
8155
+ ...getDeliveryData$1(formData),
8156
+ files: formData?.files,
8157
+ },
8158
+ });
8147
8159
  const getCurrentStepData$2 = (step, formData) => {
8148
8160
  switch (step) {
8149
8161
  case 0:
@@ -8184,7 +8196,6 @@
8184
8196
  const handleSubmit = useCallback(async (formData) => {
8185
8197
  startSending();
8186
8198
  retailFormStore.leadForm = formData;
8187
- const referalData = retailFormStore.referalData;
8188
8199
  try {
8189
8200
  const { taskId, profileId, participantId } = retailFormStore;
8190
8201
  if (taskId && profileId && participantId) {
@@ -8194,7 +8205,6 @@
8194
8205
  profileId,
8195
8206
  step,
8196
8207
  formData: formData,
8197
- isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
8198
8208
  }));
8199
8209
  resetForm(response);
8200
8210
  }
@@ -8231,7 +8241,6 @@
8231
8241
  return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field, step }), jsx(StepsNavigationButtons$2, { isSending: isSending, step: step, onPrevStep: onPrevStep })] }));
8232
8242
  });
8233
8243
 
8234
- /* eslint-disable max-lines */
8235
8244
  const PERSONAL_DATA = [
8236
8245
  {
8237
8246
  title: 'Персональные данные',
@@ -8267,9 +8276,6 @@
8267
8276
  },
8268
8277
  ],
8269
8278
  },
8270
- ];
8271
- const PERSONAL_INFO_CONTENT = [
8272
- ...PERSONAL_DATA,
8273
8279
  {
8274
8280
  inputs: [
8275
8281
  {
@@ -8278,6 +8284,124 @@
8278
8284
  dadata: true,
8279
8285
  filledByEsia: true,
8280
8286
  },
8287
+ ],
8288
+ },
8289
+ ];
8290
+ const DELIVERY_CARD_CONTENT = [
8291
+ {
8292
+ title: 'Регион обслуживания карты',
8293
+ columns: 1,
8294
+ inputs: [],
8295
+ },
8296
+ {
8297
+ inputs: [
8298
+ {
8299
+ name: 'regionRetail',
8300
+ required: true,
8301
+ },
8302
+ ],
8303
+ },
8304
+ {
8305
+ title: 'Способ получения',
8306
+ columns: 1,
8307
+ inputs: [],
8308
+ condition: {
8309
+ name: 'regionHasDelivery',
8310
+ values: [true],
8311
+ },
8312
+ },
8313
+ {
8314
+ inputs: [
8315
+ {
8316
+ name: 'methodObtain',
8317
+ condition: {
8318
+ name: 'regionHasDelivery',
8319
+ values: [true],
8320
+ },
8321
+ },
8322
+ ],
8323
+ },
8324
+ {
8325
+ title: 'Выбор офиса',
8326
+ columns: 1,
8327
+ inputs: [],
8328
+ condition: {
8329
+ name: 'methodObtain',
8330
+ values: ['office'],
8331
+ },
8332
+ },
8333
+ {
8334
+ title: 'Адрес доставки',
8335
+ columns: 1,
8336
+ inputs: [],
8337
+ condition: {
8338
+ name: 'methodObtain',
8339
+ values: ['courier'],
8340
+ },
8341
+ },
8342
+ {
8343
+ inputs: [
8344
+ {
8345
+ name: 'addressCourier',
8346
+ dadata: true,
8347
+ condition: {
8348
+ name: 'methodObtain',
8349
+ values: ['courier'],
8350
+ },
8351
+ required: true,
8352
+ },
8353
+ ],
8354
+ },
8355
+ {
8356
+ columns: 2,
8357
+ inputs: [
8358
+ {
8359
+ name: 'deliveryDate',
8360
+ condition: {
8361
+ name: 'methodObtain',
8362
+ values: ['courier'],
8363
+ },
8364
+ required: true,
8365
+ },
8366
+ {
8367
+ name: 'deliveryTime',
8368
+ condition: {
8369
+ name: 'methodObtain',
8370
+ values: ['courier'],
8371
+ },
8372
+ },
8373
+ ],
8374
+ },
8375
+ {
8376
+ inputs: [
8377
+ {
8378
+ name: 'comment',
8379
+ condition: {
8380
+ name: 'methodObtain',
8381
+ values: ['courier'],
8382
+ },
8383
+ },
8384
+ ],
8385
+ },
8386
+ {
8387
+ inputs: [
8388
+ {
8389
+ name: 'addressRetail',
8390
+ required: true,
8391
+ condition: {
8392
+ name: 'methodObtain',
8393
+ values: ['office'],
8394
+ },
8395
+ },
8396
+ ],
8397
+ },
8398
+ ];
8399
+
8400
+ /* eslint-disable max-lines */
8401
+ const PERSONAL_INFO_CONTENT$1 = [
8402
+ ...PERSONAL_DATA,
8403
+ {
8404
+ inputs: [
8281
8405
  {
8282
8406
  name: 'education',
8283
8407
  required: true,
@@ -8316,7 +8440,7 @@
8316
8440
  inputs: [{ name: 'addressFact', required: true, dadata: true }],
8317
8441
  },
8318
8442
  ];
8319
- const EMPLOYMENT_CONTENT = [
8443
+ const EMPLOYMENT_CONTENT$1 = [
8320
8444
  {
8321
8445
  title: 'Данные о трудоустройстве',
8322
8446
  inputs: [],
@@ -8389,7 +8513,7 @@
8389
8513
  inputs: [{ name: 'organizationAddress', required: true, dadata: true }],
8390
8514
  },
8391
8515
  ];
8392
- const FAMILY_STATUS_AND_INCOME_CONTENT = [
8516
+ const FAMILY_STATUS_AND_INCOME_CONTENT$1 = [
8393
8517
  {
8394
8518
  title: 'Семейное положение',
8395
8519
  },
@@ -8476,41 +8600,6 @@
8476
8600
  inputs: [{ name: 'creditInRshbCd' }],
8477
8601
  },
8478
8602
  ];
8479
- const COMMON_RETAIL_CONTENT = [
8480
- PERSONAL_INFO_CONTENT,
8481
- EMPLOYMENT_CONTENT,
8482
- FAMILY_STATUS_AND_INCOME_CONTENT,
8483
- ADDITIONAL_CONTENT,
8484
- ];
8485
- const DELIVERY_CREDIT_CONTENT = [
8486
- {
8487
- title: 'Отделение Банка',
8488
- columns: 1,
8489
- inputs: [],
8490
- },
8491
- {
8492
- inputs: [{ name: 'regionRetail', required: true }],
8493
- },
8494
- {
8495
- inputs: [{ name: 'addressRetail', required: true }],
8496
- },
8497
- {
8498
- title: 'Код представителя Банка',
8499
- columns: 1,
8500
- inputs: [],
8501
- },
8502
- {
8503
- inputs: [
8504
- {
8505
- name: 'infoCard',
8506
- label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
8507
- },
8508
- ],
8509
- },
8510
- {
8511
- inputs: [{ name: 'bankEmployeeCode' }],
8512
- },
8513
- ];
8514
8603
  const CREDIT_CARD_CONTENT = [
8515
8604
  {
8516
8605
  title: 'Параметры карты',
@@ -8525,229 +8614,34 @@
8525
8614
  ],
8526
8615
  },
8527
8616
  ];
8528
- const CALCULATOR_CONTENT = [
8617
+ const DELIVERY_CREDIT_CARD_CONTENT = [
8618
+ ...DELIVERY_CARD_CONTENT,
8529
8619
  {
8530
- columns: 1,
8531
8620
  inputs: [
8532
8621
  {
8533
- name: 'calculator',
8622
+ name: 'infoCard',
8623
+ label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
8624
+ condition: {
8625
+ name: 'methodObtain',
8626
+ values: ['office'],
8627
+ },
8534
8628
  },
8535
- ],
8536
- },
8537
- ];
8538
- const DELIVERY_DEBIT_CARD_CONTENT = [
8539
- {
8540
- title: 'Регион обслуживания карты',
8541
- columns: 1,
8542
- inputs: [],
8543
- },
8544
- {
8545
- inputs: [
8546
8629
  {
8547
- name: 'regionRetail',
8548
- required: true,
8549
- },
8550
- ],
8551
- },
8552
- {
8553
- title: 'Способ получения',
8554
- columns: 1,
8555
- inputs: [],
8556
- condition: {
8557
- name: 'regionHasDelivery',
8558
- values: [true],
8559
- },
8560
- },
8561
- {
8562
- inputs: [
8563
- {
8564
- name: 'methodObtain',
8565
- condition: {
8566
- name: 'regionHasDelivery',
8567
- values: [true],
8568
- },
8569
- },
8570
- ],
8571
- },
8572
- {
8573
- title: 'Выбор офиса',
8574
- columns: 1,
8575
- inputs: [],
8576
- condition: {
8577
- name: 'methodObtain',
8578
- values: ['office'],
8579
- },
8580
- },
8581
- {
8582
- title: 'Адрес доставки',
8583
- columns: 1,
8584
- inputs: [],
8585
- condition: {
8586
- name: 'methodObtain',
8587
- values: ['courier'],
8588
- },
8589
- },
8590
- {
8591
- inputs: [
8592
- {
8593
- name: 'addressCourier',
8594
- dadata: true,
8595
- condition: {
8596
- name: 'methodObtain',
8597
- values: ['courier'],
8598
- },
8599
- required: true,
8600
- },
8601
- ],
8602
- },
8603
- {
8604
- columns: 2,
8605
- inputs: [
8606
- {
8607
- name: 'deliveryDate',
8608
- condition: {
8609
- name: 'methodObtain',
8610
- values: ['courier'],
8611
- },
8612
- required: true,
8613
- },
8614
- {
8615
- name: 'deliveryTime',
8616
- condition: {
8617
- name: 'methodObtain',
8618
- values: ['courier'],
8619
- },
8620
- },
8621
- ],
8622
- },
8623
- {
8624
- inputs: [
8625
- {
8626
- name: 'comment',
8627
- condition: {
8628
- name: 'methodObtain',
8629
- values: ['courier'],
8630
- },
8631
- },
8632
- ],
8633
- },
8634
- {
8635
- inputs: [
8636
- {
8637
- name: 'addressRetail',
8638
- required: true,
8639
- condition: {
8640
- name: 'methodObtain',
8641
- values: ['office'],
8642
- },
8630
+ name: 'bankEmployeeCode',
8631
+ condition: {
8632
+ name: 'methodObtain',
8633
+ values: ['office'],
8634
+ },
8643
8635
  },
8644
8636
  ],
8645
8637
  },
8646
8638
  ];
8647
- const DEBIT_PERSONAL_INFO_CONTENT = [
8648
- ...PERSONAL_DATA,
8649
- {
8650
- inputs: [
8651
- {
8652
- name: 'dulIssuedBy',
8653
- required: true,
8654
- dadata: true,
8655
- filledByEsia: true,
8656
- },
8657
- ],
8658
- },
8659
- {
8660
- title: 'Адрес регистрации по месту жительства',
8661
- columns: 1,
8662
- inputs: [],
8663
- },
8664
- {
8665
- inputs: [
8666
- {
8667
- name: 'addressRegistration',
8668
- required: true,
8669
- dadata: true,
8670
- filledByEsia: true,
8671
- },
8672
- { name: 'addressMatch' },
8673
- ],
8674
- },
8675
- {
8676
- title: 'Адрес фактического проживания (место пребывания РФ)',
8677
- inputs: [],
8678
- },
8679
- {
8680
- inputs: [{ name: 'addressFact', required: true, dadata: true }],
8681
- },
8682
- ];
8683
- const DEBIT_CARD_CONTENT = [
8684
- {
8685
- title: 'Параметры карты',
8686
- inputs: [],
8687
- },
8688
- {
8689
- inputs: [
8690
- { name: 'currency', required: true },
8691
- { name: 'paymentSystem', required: true },
8692
- { name: 'cardCategory', required: true },
8693
- ],
8694
- },
8695
- {
8696
- title: 'Отображение на карте',
8697
- inputs: [],
8698
- },
8699
- {
8700
- columns: 2,
8701
- inputs: [{ name: 'latinName' }, { name: 'latinSurname', required: true }],
8702
- },
8703
- {
8704
- inputs: [
8705
- {
8706
- name: 'infoCard',
8707
- label: 'Проверьте корректность заполненных полей, при необходимости внесите изменения.',
8708
- },
8709
- ],
8710
- },
8711
- {
8712
- inputs: [
8713
- {
8714
- name: 'infoCard',
8715
- label:
8716
- // eslint-disable-next-line max-len
8717
- 'Количество символов ограничивается 20. При этом, если фамилия и имя на карте содержит более 21 символа, то необходимо сократить имя и указывать на карте только первую букву имени и фамилию, если при таком сокращении фамилия и имя не умещается в количество символов – 20, то указывать только фамилию.',
8718
- },
8719
- ],
8720
- },
8721
- {
8722
- inputs: [{ name: 'codeWord', required: true }],
8723
- },
8724
- ];
8725
- const DELIVERY_CREDIT_CARD_CONTENT = [
8726
- ...DELIVERY_DEBIT_CARD_CONTENT,
8727
- {
8728
- inputs: [
8729
- {
8730
- name: 'infoCard',
8731
- label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
8732
- condition: {
8733
- name: 'methodObtain',
8734
- values: ['office'],
8735
- },
8736
- },
8737
- {
8738
- name: 'bankEmployeeCode',
8739
- condition: {
8740
- name: 'methodObtain',
8741
- values: ['office'],
8742
- },
8743
- },
8744
- ],
8745
- },
8746
- ];
8747
-
8748
8639
  const stepsSectionsMap$2 = [
8749
8640
  CREDIT_CARD_CONTENT,
8750
- ...COMMON_RETAIL_CONTENT,
8641
+ PERSONAL_INFO_CONTENT$1,
8642
+ EMPLOYMENT_CONTENT$1,
8643
+ FAMILY_STATUS_AND_INCOME_CONTENT$1,
8644
+ ADDITIONAL_CONTENT,
8751
8645
  DELIVERY_CREDIT_CARD_CONTENT,
8752
8646
  ];
8753
8647
 
@@ -8929,38 +8823,33 @@
8929
8823
  };
8930
8824
  };
8931
8825
 
8932
- const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, isTaskWithReferalCode, }) => {
8933
- const navigator = locationNavigator();
8934
- const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
8935
- return {
8936
- sendToBank: true,
8937
- taskKind: 'UNITED',
8938
- task: {
8939
- taskSource,
8940
- id: taskId,
8941
- authorizedAgentId: formData?.bankEmployeeCode,
8942
- participants: [
8943
- {
8944
- id: participantId,
8945
- profile: {
8946
- id: profileId,
8947
- },
8948
- roleCd: {
8949
- key: 'BORROWER',
8950
- value: 'Заемщик',
8951
- },
8952
- ...getCurrentStepData$1(step, formData),
8826
+ const getCreditFormTaskData = ({ participantId, taskId, profileId, formData, step = 0, }) => ({
8827
+ sendToBank: true,
8828
+ taskKind: 'UNITED',
8829
+ task: {
8830
+ id: taskId,
8831
+ authorizedAgentId: formData?.bankEmployeeCode,
8832
+ participants: [
8833
+ {
8834
+ id: participantId,
8835
+ profile: {
8836
+ id: profileId,
8953
8837
  },
8954
- ],
8955
- ...getCalcData(formData),
8956
- ...getDeliveryCreditData(formData),
8957
- esiaAccountTypeCd: {
8958
- key: formData?.esiaAccountTypeCd?.key,
8838
+ roleCd: {
8839
+ key: 'BORROWER',
8840
+ value: 'Заемщик',
8841
+ },
8842
+ ...getCurrentStepData$1(step, formData),
8959
8843
  },
8960
- files: formData?.files,
8844
+ ],
8845
+ ...getCalcData(formData),
8846
+ ...getDeliveryCreditData(formData),
8847
+ esiaAccountTypeCd: {
8848
+ key: formData?.esiaAccountTypeCd?.key,
8961
8849
  },
8962
- };
8963
- };
8850
+ files: formData?.files,
8851
+ },
8852
+ });
8964
8853
  const getCurrentStepData$1 = (step, formData) => {
8965
8854
  switch (step) {
8966
8855
  case 0:
@@ -8971,8 +8860,6 @@
8971
8860
  return getEmploymentData(formData);
8972
8861
  case 3:
8973
8862
  return getFamilyStatusAndIncomeData(formData);
8974
- case 4:
8975
- return getAdditionalInfoData(formData);
8976
8863
  default:
8977
8864
  return {};
8978
8865
  }
@@ -8992,7 +8879,7 @@
8992
8879
  isStateEmployee: false,
8993
8880
  },
8994
8881
  },
8995
- ...mainFormStateMap,
8882
+ ...getMainFormStateMap(true),
8996
8883
  {
8997
8884
  regionRetail: { key: '', text: '' },
8998
8885
  addressRetail: undefined,
@@ -9002,7 +8889,7 @@
9002
8889
 
9003
8890
  const useCreditFormAPI = ({ step, onNextStep, onFinish, }) => {
9004
8891
  const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
9005
- const isFinalStep = step === 5;
8892
+ const isFinalStep = step === 4;
9006
8893
  const retailFormStore = useRetailFormStore();
9007
8894
  const initialState = useMemo(() => getInitialFormState(step, retailFormStore.leadForm, formStateMap$1), [step, retailFormStore.leadForm]);
9008
8895
  const resetForm = useCallback((response) => {
@@ -9025,7 +8912,6 @@
9025
8912
  const handleSubmit = useCallback(async (formData) => {
9026
8913
  startSending();
9027
8914
  retailFormStore.leadForm = formData;
9028
- const referalData = retailFormStore.referalData;
9029
8915
  try {
9030
8916
  const { taskId, profileId, participantId } = retailFormStore;
9031
8917
  if (taskId && profileId && participantId) {
@@ -9035,7 +8921,6 @@
9035
8921
  profileId,
9036
8922
  step,
9037
8923
  formData: formData,
9038
- isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
9039
8924
  }));
9040
8925
  resetForm(response);
9041
8926
  }
@@ -9074,19 +8959,207 @@
9074
8959
  return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field, step, params: { calcData } }), jsx(StepsNavigationButtons$1, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
9075
8960
  });
9076
8961
 
8962
+ /* eslint-disable max-lines */
8963
+ const PERSONAL_INFO_CONTENT = [
8964
+ ...PERSONAL_DATA,
8965
+ {
8966
+ title: 'Адрес регистрации по месту жительства',
8967
+ columns: 1,
8968
+ inputs: [],
8969
+ },
8970
+ {
8971
+ inputs: [
8972
+ {
8973
+ name: 'addressRegistration',
8974
+ required: true,
8975
+ dadata: true,
8976
+ filledByEsia: true,
8977
+ },
8978
+ { name: 'addressMatch' },
8979
+ ],
8980
+ },
8981
+ {
8982
+ title: 'Адрес фактического проживания (место пребывания РФ)',
8983
+ inputs: [],
8984
+ },
8985
+ {
8986
+ inputs: [{ name: 'addressFact', required: true, dadata: true }],
8987
+ },
8988
+ ];
8989
+ const EMPLOYMENT_CONTENT = [
8990
+ {
8991
+ title: 'Данные о трудоустройстве',
8992
+ inputs: [],
8993
+ },
8994
+ {
8995
+ inputs: [
8996
+ {
8997
+ name: 'infoCard',
8998
+ label: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
8999
+ 'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
9000
+ },
9001
+ ],
9002
+ },
9003
+ {
9004
+ inputs: [
9005
+ { name: 'employment', required: true },
9006
+ { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
9007
+ ],
9008
+ },
9009
+ {
9010
+ columns: 2,
9011
+ inputs: [
9012
+ { name: 'inn', required: true, dadata: true, filledByEsia: true },
9013
+ { name: 'legalForm', required: true },
9014
+ ],
9015
+ },
9016
+ {
9017
+ inputs: [
9018
+ { name: 'organization', required: true },
9019
+ { name: 'amountWorkers', required: true },
9020
+ ],
9021
+ },
9022
+ {
9023
+ columns: 2,
9024
+ inputs: [
9025
+ { name: 'employerOrganization', required: true },
9026
+ { name: 'jobsNumber', required: true, filledByEsia: true },
9027
+ ],
9028
+ },
9029
+ {
9030
+ inputs: [
9031
+ {
9032
+ name: 'organizationPhone',
9033
+ label: 'Телефон работодателя',
9034
+ required: true,
9035
+ },
9036
+ { name: 'beginDate', required: true, filledByEsia: true },
9037
+ ],
9038
+ },
9039
+ {
9040
+ title: 'Адрес работодателя',
9041
+ inputs: [],
9042
+ },
9043
+ {
9044
+ inputs: [{ name: 'organizationAddress', required: true, dadata: true }],
9045
+ },
9046
+ ];
9047
+ const FAMILY_STATUS_AND_INCOME_CONTENT = [
9048
+ {
9049
+ title: 'Семейное положение',
9050
+ },
9051
+ {
9052
+ columns: 1,
9053
+ inputs: [{ name: 'familyStatus', required: true }],
9054
+ },
9055
+ {
9056
+ columns: 2,
9057
+ inputs: [
9058
+ { name: 'children', required: true },
9059
+ { name: 'dependents', required: true },
9060
+ ],
9061
+ },
9062
+ {
9063
+ title: 'Совокупный доход',
9064
+ },
9065
+ {
9066
+ columns: 1,
9067
+ inputs: [
9068
+ {
9069
+ name: 'confirmationIncome',
9070
+ required: true,
9071
+ filledByEsia: true,
9072
+ },
9073
+ ],
9074
+ },
9075
+ {
9076
+ inputs: [
9077
+ {
9078
+ name: 'infoCard',
9079
+ label: 'Сумма основного и дополнительных доходов после вычета налога',
9080
+ },
9081
+ ],
9082
+ },
9083
+ {
9084
+ columns: 1,
9085
+ inputs: [{ name: 'wages', required: true, filledByEsia: true }],
9086
+ },
9087
+ {
9088
+ columns: 1,
9089
+ inputs: [
9090
+ {
9091
+ name: 'retirementIncome',
9092
+ required: true,
9093
+ condition: { name: 'employment', values: ['RETIREE'] },
9094
+ },
9095
+ ],
9096
+ },
9097
+ {
9098
+ columns: 1,
9099
+ inputs: [{ name: 'mandatoryPayments', required: true }],
9100
+ },
9101
+ {
9102
+ columns: 1,
9103
+ inputs: [{ name: 'snils', required: true }],
9104
+ },
9105
+ {
9106
+ columns: 1,
9107
+ inputs: [{ name: 'initiateBankruptcyFlg' }],
9108
+ },
9109
+ ];
9110
+ const DELIVERY_CREDIT_CONTENT = [
9111
+ {
9112
+ title: 'Отделение Банка',
9113
+ columns: 1,
9114
+ inputs: [],
9115
+ },
9116
+ {
9117
+ inputs: [{ name: 'regionRetail', required: true }],
9118
+ },
9119
+ {
9120
+ inputs: [{ name: 'addressRetail', required: true }],
9121
+ },
9122
+ {
9123
+ title: 'Код представителя Банка',
9124
+ columns: 1,
9125
+ inputs: [],
9126
+ },
9127
+ {
9128
+ inputs: [
9129
+ {
9130
+ name: 'infoCard',
9131
+ label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
9132
+ },
9133
+ ],
9134
+ },
9135
+ {
9136
+ inputs: [{ name: 'bankEmployeeCode' }],
9137
+ },
9138
+ ];
9139
+ const CALCULATOR_CONTENT = [
9140
+ {
9141
+ columns: 1,
9142
+ inputs: [
9143
+ {
9144
+ name: 'calculator',
9145
+ },
9146
+ ],
9147
+ },
9148
+ ];
9077
9149
  const stepsSectionsMap$1 = [
9078
9150
  CALCULATOR_CONTENT,
9079
- ...COMMON_RETAIL_CONTENT,
9151
+ PERSONAL_INFO_CONTENT,
9152
+ EMPLOYMENT_CONTENT,
9153
+ FAMILY_STATUS_AND_INCOME_CONTENT,
9080
9154
  DELIVERY_CREDIT_CONTENT,
9081
9155
  ];
9082
9156
 
9083
- const STEPS$1 = 5;
9157
+ const STEPS$1 = 4;
9084
9158
  const STEP_TITLES$1 = [
9085
9159
  '',
9086
9160
  'Персональные данные',
9087
9161
  'Данные о трудоустройстве',
9088
9162
  'Семейное положение и доход',
9089
- 'Дополнительные сведения',
9090
9163
  'Отделение Банка',
9091
9164
  ];
9092
9165
  const CreditForm = UniBlock(({ className, programsSource, ...rest }) => {
@@ -9293,28 +9366,23 @@
9293
9366
  };
9294
9367
  };
9295
9368
 
9296
- const getDebitCardFormTaskData = ({ participantId, taskId, formData, programId, step = 0, isTaskWithReferalCode, }) => {
9297
- const navigator = locationNavigator();
9298
- const taskSource = isTaskWithReferalCode ? 'ReferalSF' : navigator.origin;
9299
- return {
9300
- task: {
9301
- taskSource,
9302
- id: taskId,
9303
- creditProgram: {
9304
- code: debitProgrammIdToCardCodesMap[programId],
9305
- },
9306
- ...getOfficeCode(formData),
9307
- participants: [
9308
- {
9309
- id: participantId,
9310
- ...getCurrentStepData(step, formData),
9311
- },
9312
- ],
9313
- ...getCardOptionsData(formData),
9314
- ...getDeliveryData(formData),
9369
+ const getDebitCardFormTaskData = ({ participantId, taskId, formData, programId, step = 0, }) => ({
9370
+ task: {
9371
+ id: taskId,
9372
+ creditProgram: {
9373
+ code: debitProgrammIdToCardCodesMap[programId],
9315
9374
  },
9316
- };
9317
- };
9375
+ ...getOfficeCode(formData),
9376
+ participants: [
9377
+ {
9378
+ id: participantId,
9379
+ ...getCurrentStepData(step, formData),
9380
+ },
9381
+ ],
9382
+ ...getCardOptionsData(formData),
9383
+ ...getDeliveryData(formData),
9384
+ },
9385
+ });
9318
9386
  const getCurrentStepData = (step, formData) => {
9319
9387
  switch (step) {
9320
9388
  case 0:
@@ -9343,7 +9411,6 @@
9343
9411
  const handleSubmit = useCallback(async (formData) => {
9344
9412
  startSending();
9345
9413
  retailFormStore.leadForm = formData;
9346
- const referalData = retailFormStore.referalData;
9347
9414
  try {
9348
9415
  const { taskId, participantId, programId } = retailFormStore;
9349
9416
  if (taskId && participantId && programId) {
@@ -9353,7 +9420,6 @@
9353
9420
  programId,
9354
9421
  step,
9355
9422
  formData: formData,
9356
- isTaskWithReferalCode: referalData?.isTaskWithReferalCode,
9357
9423
  }));
9358
9424
  }
9359
9425
  if (isFinalStep || formData.methodObtain === 'courier') {
@@ -9395,8 +9461,76 @@
9395
9461
  return (jsxs("form", { onSubmit: handleSubmit, className: "space-y-m", children: [renderStep$1({ sections, field, step }), jsx(StepsNavigationButtons, { step: step, isSending: isSending, onPrevStep: onPrevStep })] }));
9396
9462
  });
9397
9463
 
9464
+ const DEBIT_PERSONAL_INFO_CONTENT = [
9465
+ ...PERSONAL_DATA,
9466
+ {
9467
+ title: 'Адрес регистрации по месту жительства',
9468
+ columns: 1,
9469
+ inputs: [],
9470
+ },
9471
+ {
9472
+ inputs: [
9473
+ {
9474
+ name: 'addressRegistration',
9475
+ required: true,
9476
+ dadata: true,
9477
+ filledByEsia: true,
9478
+ },
9479
+ { name: 'addressMatch' },
9480
+ ],
9481
+ },
9482
+ {
9483
+ title: 'Адрес фактического проживания (место пребывания РФ)',
9484
+ inputs: [],
9485
+ },
9486
+ {
9487
+ inputs: [{ name: 'addressFact', required: true, dadata: true }],
9488
+ },
9489
+ ];
9490
+ const DEBIT_CARD_CONTENT = [
9491
+ {
9492
+ title: 'Параметры карты',
9493
+ inputs: [],
9494
+ },
9495
+ {
9496
+ inputs: [
9497
+ { name: 'currency', required: true },
9498
+ { name: 'paymentSystem', required: true },
9499
+ { name: 'cardCategory', required: true },
9500
+ ],
9501
+ },
9502
+ {
9503
+ title: 'Отображение на карте',
9504
+ inputs: [],
9505
+ },
9506
+ {
9507
+ columns: 2,
9508
+ inputs: [{ name: 'latinName' }, { name: 'latinSurname', required: true }],
9509
+ },
9510
+ {
9511
+ inputs: [
9512
+ {
9513
+ name: 'infoCard',
9514
+ label: 'Проверьте корректность заполненных полей, при необходимости внесите изменения.',
9515
+ },
9516
+ ],
9517
+ },
9518
+ {
9519
+ inputs: [
9520
+ {
9521
+ name: 'infoCard',
9522
+ label:
9523
+ // eslint-disable-next-line max-len
9524
+ 'Количество символов ограничивается 20. При этом, если фамилия и имя на карте содержит более 21 символа, то необходимо сократить имя и указывать на карте только первую букву имени и фамилию, если при таком сокращении фамилия и имя не умещается в количество символов – 20, то указывать только фамилию.',
9525
+ },
9526
+ ],
9527
+ },
9528
+ {
9529
+ inputs: [{ name: 'codeWord', required: true }],
9530
+ },
9531
+ ];
9398
9532
  const stepsSectionsMap = [
9399
- DELIVERY_DEBIT_CARD_CONTENT,
9533
+ DELIVERY_CARD_CONTENT,
9400
9534
  DEBIT_PERSONAL_INFO_CONTENT,
9401
9535
  DEBIT_CARD_CONTENT,
9402
9536
  ];
@@ -9764,7 +9898,7 @@
9764
9898
  '': '',
9765
9899
  };
9766
9900
 
9767
- const useSortProductBlocks = (parentBlock = {}) => {
9901
+ const useSortProductBlocks = (parentBlock) => {
9768
9902
  const [blocks, setBlocks] = useState(parentBlock.blocks ?? []);
9769
9903
  const sessionStore = useSessionStore();
9770
9904
  const offerIds = sessionStore?.offerIds || [];
@@ -9773,10 +9907,14 @@
9773
9907
  const blocksByOfferIds = offerIds
9774
9908
  .map((id) => blocksMap.get(id))
9775
9909
  .filter((block) => Boolean(block));
9776
- const tailBlocks = blocks.filter(({ __id = '' }) => !offerIds.includes(__id));
9910
+ const tailBlocks = parentBlock.blocks?.filter(({ __id = '' }) => !offerIds.includes(__id)) ?? [];
9777
9911
  return [...blocksByOfferIds, ...tailBlocks];
9778
- }, [blocks, offerIds]);
9779
- useEffect(() => setBlocks(sortedBlocks), []);
9912
+ }, [parentBlock, offerIds]);
9913
+ useEffect(() => {
9914
+ if (sortedBlocks.length) {
9915
+ setBlocks(sortedBlocks);
9916
+ }
9917
+ }, [parentBlock]);
9780
9918
  return blocks;
9781
9919
  };
9782
9920
 
@@ -11013,7 +11151,7 @@
11013
11151
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
11014
11152
  });
11015
11153
 
11016
- const packageVersion = "0.14.865";
11154
+ const packageVersion = "0.14.867";
11017
11155
 
11018
11156
  exports.Blocks = Blocks;
11019
11157
  exports.ContentPage = ContentPage;