@redneckz/wildless-cms-uni-blocks 0.14.1028 → 0.14.1030

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 (471) hide show
  1. package/bundle/api/getSubmitBody.d.ts +4225 -865
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +178 -46
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
  6. package/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
  7. package/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
  8. package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
  9. package/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
  10. package/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
  11. package/bundle/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
  12. package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
  13. package/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
  14. package/bundle/components/ReferalForm/ReferalForm.d.ts +10 -0
  15. package/bundle/components/ReferalForm/ReferalFormContent.d.ts +11 -0
  16. package/bundle/components/ReferalForm/ResultLink.d.ts +5 -0
  17. package/bundle/components/ReferalForm/referalFormData.d.ts +2 -0
  18. package/bundle/components/ReferalForm/renderLinkInput.d.ts +2 -0
  19. package/bundle/components/ReferalForm/renderSections.d.ts +3 -0
  20. package/bundle/model/FormTypeFieldDef.d.ts +1 -1
  21. package/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
  22. package/bundle/retail/api/createDraftTask.d.ts +1 -1
  23. package/bundle/retail/api/createParticipant.d.ts +5 -1
  24. package/bundle/retail/api/draftTasksKZO.d.ts +2 -1
  25. package/bundle/retail/api/getLastTaskStatus.d.ts +2 -1
  26. package/bundle/retail/api/getUserTasks.d.ts +2 -40
  27. package/bundle/retail/api/getUserTasksCard.d.ts +2 -0
  28. package/bundle/retail/api/getUserTasksCredit.d.ts +2 -0
  29. package/bundle/retail/api/getUserTasksDebit.d.ts +2 -0
  30. package/bundle/retail/api/getUserTasksTypes.d.ts +39 -0
  31. package/bundle/retail/api/updateUserTask.d.ts +1 -1
  32. package/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
  33. package/bundle/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
  34. package/bundle/retail/hooks/useRetailFormStore.d.ts +2 -1
  35. package/dist/api/getSubmitBody.d.ts +4225 -865
  36. package/dist/api/getSubmitBody.js +14 -0
  37. package/dist/api/getSubmitBody.js.map +1 -1
  38. package/dist/components/ApplicationForm/ApplicationForm.js +2 -1
  39. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  40. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
  41. package/dist/components/ApplicationForm/Footnote.d.ts +1 -0
  42. package/dist/components/ApplicationForm/Footnote.js +1 -1
  43. package/dist/components/ApplicationForm/Footnote.js.map +1 -1
  44. package/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
  45. package/dist/components/ApplicationForm/renderAgreementSubmit.js +1 -1
  46. package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  47. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
  48. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
  49. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  50. package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
  51. package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  52. package/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
  53. package/dist/components/ApplicationLeadForm/useSaveUserData.js +2 -1
  54. package/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  55. package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
  56. package/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
  57. package/dist/components/Blocks.js +2 -0
  58. package/dist/components/Blocks.js.map +1 -1
  59. package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
  60. package/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
  61. package/dist/components/ReferalForm/ReferalForm.d.ts +10 -0
  62. package/dist/components/ReferalForm/ReferalForm.js +33 -0
  63. package/dist/components/ReferalForm/ReferalForm.js.map +1 -0
  64. package/dist/components/ReferalForm/ReferalFormContent.d.ts +11 -0
  65. package/dist/components/ReferalForm/ReferalFormContent.js +2 -0
  66. package/dist/components/ReferalForm/ReferalFormContent.js.map +1 -0
  67. package/dist/components/ReferalForm/ResultLink.d.ts +5 -0
  68. package/dist/components/ReferalForm/ResultLink.js +12 -0
  69. package/dist/components/ReferalForm/ResultLink.js.map +1 -0
  70. package/dist/components/ReferalForm/referalFormData.d.ts +2 -0
  71. package/dist/components/ReferalForm/referalFormData.js +19 -0
  72. package/dist/components/ReferalForm/referalFormData.js.map +1 -0
  73. package/dist/components/ReferalForm/renderLinkInput.d.ts +2 -0
  74. package/dist/components/ReferalForm/renderLinkInput.js +25 -0
  75. package/dist/components/ReferalForm/renderLinkInput.js.map +1 -0
  76. package/dist/components/ReferalForm/renderSections.d.ts +3 -0
  77. package/dist/components/ReferalForm/renderSections.js +10 -0
  78. package/dist/components/ReferalForm/renderSections.js.map +1 -0
  79. package/dist/hooks/useDadataParty.js +1 -1
  80. package/dist/hooks/useDadataParty.js.map +1 -1
  81. package/dist/model/FormTypeFieldDef.d.ts +1 -1
  82. package/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
  83. package/dist/retail/api/createDraftTask.d.ts +1 -1
  84. package/dist/retail/api/createParticipant.d.ts +5 -1
  85. package/dist/retail/api/createParticipant.js +1 -1
  86. package/dist/retail/api/createParticipant.js.map +1 -1
  87. package/dist/retail/api/draftTasksKZO.d.ts +2 -1
  88. package/dist/retail/api/draftTasksKZO.js.map +1 -1
  89. package/dist/retail/api/getLastTaskStatus.d.ts +2 -1
  90. package/dist/retail/api/getLastTaskStatus.js.map +1 -1
  91. package/dist/retail/api/getUserTasks.d.ts +2 -40
  92. package/dist/retail/api/getUserTasks.js +2 -6
  93. package/dist/retail/api/getUserTasks.js.map +1 -1
  94. package/dist/retail/api/getUserTasksCard.d.ts +2 -0
  95. package/dist/retail/api/getUserTasksCard.js +8 -0
  96. package/dist/retail/api/getUserTasksCard.js.map +1 -0
  97. package/dist/retail/api/getUserTasksCredit.d.ts +2 -0
  98. package/dist/retail/api/getUserTasksCredit.js +9 -0
  99. package/dist/retail/api/getUserTasksCredit.js.map +1 -0
  100. package/dist/retail/api/getUserTasksDebit.d.ts +2 -0
  101. package/dist/retail/api/getUserTasksDebit.js +8 -0
  102. package/dist/retail/api/getUserTasksDebit.js.map +1 -0
  103. package/dist/retail/api/getUserTasksTypes.d.ts +39 -0
  104. package/dist/retail/api/getUserTasksTypes.js +9 -0
  105. package/dist/retail/api/getUserTasksTypes.js.map +1 -0
  106. package/dist/retail/api/updateUserTask.d.ts +1 -1
  107. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
  108. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
  109. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  110. package/dist/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
  111. package/dist/retail/components/DraftDialog/DraftDialog.js +4 -2
  112. package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  113. package/dist/retail/components/DraftDialog/parseDraftTask.js +4 -1
  114. package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  115. package/dist/retail/hooks/useRetailFormStore.d.ts +2 -1
  116. package/lib/api/getSubmitBody.d.ts +4225 -865
  117. package/lib/api/getSubmitBody.js +14 -0
  118. package/lib/api/getSubmitBody.js.map +1 -1
  119. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  120. package/lib/components/ApplicationForm/ApplicationForm.js +2 -1
  121. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  122. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
  123. package/lib/components/ApplicationForm/Footnote.d.ts +1 -0
  124. package/lib/components/ApplicationForm/Footnote.js +1 -1
  125. package/lib/components/ApplicationForm/Footnote.js.map +1 -1
  126. package/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
  127. package/lib/components/ApplicationForm/renderAgreementSubmit.js +1 -1
  128. package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  129. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
  130. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
  131. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  132. package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
  133. package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  134. package/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
  135. package/lib/components/ApplicationLeadForm/useSaveUserData.js +2 -1
  136. package/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  137. package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
  138. package/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
  139. package/lib/components/Blocks.js +2 -0
  140. package/lib/components/Blocks.js.map +1 -1
  141. package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
  142. package/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
  143. package/lib/components/ReferalForm/ReferalForm.d.ts +10 -0
  144. package/lib/components/ReferalForm/ReferalForm.fixture.d.ts +5 -0
  145. package/lib/components/ReferalForm/ReferalForm.fixture.mobile.d.ts +5 -0
  146. package/lib/components/ReferalForm/ReferalForm.js +31 -0
  147. package/lib/components/ReferalForm/ReferalForm.js.map +1 -0
  148. package/lib/components/ReferalForm/ReferalFormContent.d.ts +11 -0
  149. package/lib/components/ReferalForm/ReferalFormContent.js +2 -0
  150. package/lib/components/ReferalForm/ReferalFormContent.js.map +1 -0
  151. package/lib/components/ReferalForm/ResultLink.d.ts +5 -0
  152. package/lib/components/ReferalForm/ResultLink.js +10 -0
  153. package/lib/components/ReferalForm/ResultLink.js.map +1 -0
  154. package/lib/components/ReferalForm/referalFormData.d.ts +2 -0
  155. package/lib/components/ReferalForm/referalFormData.js +17 -0
  156. package/lib/components/ReferalForm/referalFormData.js.map +1 -0
  157. package/lib/components/ReferalForm/renderLinkInput.d.ts +2 -0
  158. package/lib/components/ReferalForm/renderLinkInput.js +23 -0
  159. package/lib/components/ReferalForm/renderLinkInput.js.map +1 -0
  160. package/lib/components/ReferalForm/renderSections.d.ts +3 -0
  161. package/lib/components/ReferalForm/renderSections.js +7 -0
  162. package/lib/components/ReferalForm/renderSections.js.map +1 -0
  163. package/lib/hooks/useDadataParty.js +1 -1
  164. package/lib/hooks/useDadataParty.js.map +1 -1
  165. package/lib/model/FormTypeFieldDef.d.ts +1 -1
  166. package/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
  167. package/lib/retail/api/createDraftTask.d.ts +1 -1
  168. package/lib/retail/api/createParticipant.d.ts +5 -1
  169. package/lib/retail/api/createParticipant.js +1 -1
  170. package/lib/retail/api/createParticipant.js.map +1 -1
  171. package/lib/retail/api/draftTasksKZO.d.ts +2 -1
  172. package/lib/retail/api/draftTasksKZO.js.map +1 -1
  173. package/lib/retail/api/getLastTaskStatus.d.ts +2 -1
  174. package/lib/retail/api/getLastTaskStatus.js.map +1 -1
  175. package/lib/retail/api/getUserTasks.d.ts +2 -40
  176. package/lib/retail/api/getUserTasks.js +1 -6
  177. package/lib/retail/api/getUserTasks.js.map +1 -1
  178. package/lib/retail/api/getUserTasksCard.d.ts +2 -0
  179. package/lib/retail/api/getUserTasksCard.js +5 -0
  180. package/lib/retail/api/getUserTasksCard.js.map +1 -0
  181. package/lib/retail/api/getUserTasksCredit.d.ts +2 -0
  182. package/lib/retail/api/getUserTasksCredit.js +6 -0
  183. package/lib/retail/api/getUserTasksCredit.js.map +1 -0
  184. package/lib/retail/api/getUserTasksDebit.d.ts +2 -0
  185. package/lib/retail/api/getUserTasksDebit.js +5 -0
  186. package/lib/retail/api/getUserTasksDebit.js.map +1 -0
  187. package/lib/retail/api/getUserTasksTypes.d.ts +39 -0
  188. package/lib/retail/api/getUserTasksTypes.js +7 -0
  189. package/lib/retail/api/getUserTasksTypes.js.map +1 -0
  190. package/lib/retail/api/updateUserTask.d.ts +1 -1
  191. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
  192. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
  193. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  194. package/lib/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
  195. package/lib/retail/components/DraftDialog/DraftDialog.js +4 -2
  196. package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  197. package/lib/retail/components/DraftDialog/parseDraftTask.js +4 -1
  198. package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  199. package/lib/retail/hooks/useRetailFormStore.d.ts +2 -1
  200. package/mobile/bundle/api/getSubmitBody.d.ts +4225 -865
  201. package/mobile/bundle/bundle.umd.js +113 -42
  202. package/mobile/bundle/bundle.umd.min.js +1 -1
  203. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
  204. package/mobile/bundle/components/ApplicationForm/Footnote.d.ts +1 -0
  205. package/mobile/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
  206. package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
  207. package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
  208. package/mobile/bundle/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
  209. package/mobile/bundle/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
  210. package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
  211. package/mobile/bundle/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
  212. package/mobile/bundle/components/ReferalForm/ReferalForm.d.ts +10 -0
  213. package/mobile/bundle/components/ReferalForm/ReferalFormContent.d.ts +11 -0
  214. package/mobile/bundle/components/ReferalForm/ResultLink.d.ts +5 -0
  215. package/mobile/bundle/components/ReferalForm/referalFormData.d.ts +2 -0
  216. package/mobile/bundle/components/ReferalForm/renderLinkInput.d.ts +2 -0
  217. package/mobile/bundle/components/ReferalForm/renderSections.d.ts +3 -0
  218. package/mobile/bundle/model/FormTypeFieldDef.d.ts +1 -1
  219. package/mobile/bundle/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
  220. package/mobile/bundle/retail/api/createDraftTask.d.ts +1 -1
  221. package/mobile/bundle/retail/api/createParticipant.d.ts +5 -1
  222. package/mobile/bundle/retail/api/draftTasksKZO.d.ts +2 -1
  223. package/mobile/bundle/retail/api/getLastTaskStatus.d.ts +2 -1
  224. package/mobile/bundle/retail/api/getUserTasks.d.ts +2 -40
  225. package/mobile/bundle/retail/api/getUserTasksCard.d.ts +2 -0
  226. package/mobile/bundle/retail/api/getUserTasksCredit.d.ts +2 -0
  227. package/mobile/bundle/retail/api/getUserTasksDebit.d.ts +2 -0
  228. package/mobile/bundle/retail/api/getUserTasksTypes.d.ts +39 -0
  229. package/mobile/bundle/retail/api/updateUserTask.d.ts +1 -1
  230. package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
  231. package/mobile/bundle/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
  232. package/mobile/bundle/retail/hooks/useRetailFormStore.d.ts +2 -1
  233. package/mobile/dist/api/getSubmitBody.d.ts +4225 -865
  234. package/mobile/dist/api/getSubmitBody.js +14 -0
  235. package/mobile/dist/api/getSubmitBody.js.map +1 -1
  236. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +2 -1
  237. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  238. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
  239. package/mobile/dist/components/ApplicationForm/Footnote.d.ts +1 -0
  240. package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
  241. package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
  242. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
  243. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +1 -1
  244. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  245. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
  246. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
  247. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  248. package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
  249. package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  250. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
  251. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js +2 -1
  252. package/mobile/dist/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  253. package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
  254. package/mobile/dist/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
  255. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
  256. package/mobile/dist/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
  257. package/mobile/dist/components/ReferalForm/ReferalForm.d.ts +10 -0
  258. package/mobile/dist/components/ReferalForm/ReferalForm.js +33 -0
  259. package/mobile/dist/components/ReferalForm/ReferalForm.js.map +1 -0
  260. package/mobile/dist/components/ReferalForm/ReferalFormContent.d.ts +11 -0
  261. package/mobile/dist/components/ReferalForm/ReferalFormContent.js +2 -0
  262. package/mobile/dist/components/ReferalForm/ReferalFormContent.js.map +1 -0
  263. package/mobile/dist/components/ReferalForm/ResultLink.d.ts +5 -0
  264. package/mobile/dist/components/ReferalForm/ResultLink.js +12 -0
  265. package/mobile/dist/components/ReferalForm/ResultLink.js.map +1 -0
  266. package/mobile/dist/components/ReferalForm/referalFormData.d.ts +2 -0
  267. package/mobile/dist/components/ReferalForm/referalFormData.js +19 -0
  268. package/mobile/dist/components/ReferalForm/referalFormData.js.map +1 -0
  269. package/mobile/dist/components/ReferalForm/renderLinkInput.d.ts +2 -0
  270. package/mobile/dist/components/ReferalForm/renderLinkInput.js +25 -0
  271. package/mobile/dist/components/ReferalForm/renderLinkInput.js.map +1 -0
  272. package/mobile/dist/components/ReferalForm/renderSections.d.ts +3 -0
  273. package/mobile/dist/components/ReferalForm/renderSections.js +10 -0
  274. package/mobile/dist/components/ReferalForm/renderSections.js.map +1 -0
  275. package/mobile/dist/hooks/useDadataParty.js +1 -1
  276. package/mobile/dist/hooks/useDadataParty.js.map +1 -1
  277. package/mobile/dist/model/FormTypeFieldDef.d.ts +1 -1
  278. package/mobile/dist/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
  279. package/mobile/dist/retail/api/createDraftTask.d.ts +1 -1
  280. package/mobile/dist/retail/api/createParticipant.d.ts +5 -1
  281. package/mobile/dist/retail/api/createParticipant.js +1 -1
  282. package/mobile/dist/retail/api/createParticipant.js.map +1 -1
  283. package/mobile/dist/retail/api/draftTasksKZO.d.ts +2 -1
  284. package/mobile/dist/retail/api/draftTasksKZO.js.map +1 -1
  285. package/mobile/dist/retail/api/getLastTaskStatus.d.ts +2 -1
  286. package/mobile/dist/retail/api/getLastTaskStatus.js.map +1 -1
  287. package/mobile/dist/retail/api/getUserTasks.d.ts +2 -40
  288. package/mobile/dist/retail/api/getUserTasks.js +2 -6
  289. package/mobile/dist/retail/api/getUserTasks.js.map +1 -1
  290. package/mobile/dist/retail/api/getUserTasksCard.d.ts +2 -0
  291. package/mobile/dist/retail/api/getUserTasksCard.js +8 -0
  292. package/mobile/dist/retail/api/getUserTasksCard.js.map +1 -0
  293. package/mobile/dist/retail/api/getUserTasksCredit.d.ts +2 -0
  294. package/mobile/dist/retail/api/getUserTasksCredit.js +9 -0
  295. package/mobile/dist/retail/api/getUserTasksCredit.js.map +1 -0
  296. package/mobile/dist/retail/api/getUserTasksDebit.d.ts +2 -0
  297. package/mobile/dist/retail/api/getUserTasksDebit.js +8 -0
  298. package/mobile/dist/retail/api/getUserTasksDebit.js.map +1 -0
  299. package/mobile/dist/retail/api/getUserTasksTypes.d.ts +39 -0
  300. package/mobile/dist/retail/api/getUserTasksTypes.js +9 -0
  301. package/mobile/dist/retail/api/getUserTasksTypes.js.map +1 -0
  302. package/mobile/dist/retail/api/updateUserTask.d.ts +1 -1
  303. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
  304. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
  305. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  306. package/mobile/dist/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
  307. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +4 -2
  308. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  309. package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +4 -1
  310. package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  311. package/mobile/dist/retail/hooks/useRetailFormStore.d.ts +2 -1
  312. package/mobile/lib/api/getSubmitBody.d.ts +4225 -865
  313. package/mobile/lib/api/getSubmitBody.js +14 -0
  314. package/mobile/lib/api/getSubmitBody.js.map +1 -1
  315. package/mobile/lib/common.css +1 -1
  316. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +2 -1
  317. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  318. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +10 -0
  319. package/mobile/lib/components/ApplicationForm/Footnote.d.ts +1 -0
  320. package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
  321. package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
  322. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +2 -1
  323. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +1 -1
  324. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  325. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
  326. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +80 -31
  327. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  328. package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +4 -2
  329. package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -1
  330. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.d.ts +3 -2
  331. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js +2 -1
  332. package/mobile/lib/components/ApplicationLeadForm/useSaveUserData.js.map +1 -1
  333. package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.d.ts +1 -1
  334. package/mobile/lib/components/ApplicationLeadForm/useSendLeadFormAspects.js.map +1 -1
  335. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +1 -1
  336. package/mobile/lib/components/DebitForm/getDebitCardFormTaskData.d.ts +1 -1
  337. package/mobile/lib/components/ReferalForm/ReferalForm.d.ts +10 -0
  338. package/mobile/lib/components/ReferalForm/ReferalForm.js +31 -0
  339. package/mobile/lib/components/ReferalForm/ReferalForm.js.map +1 -0
  340. package/mobile/lib/components/ReferalForm/ReferalFormContent.d.ts +11 -0
  341. package/mobile/lib/components/ReferalForm/ReferalFormContent.js +2 -0
  342. package/mobile/lib/components/ReferalForm/ReferalFormContent.js.map +1 -0
  343. package/mobile/lib/components/ReferalForm/ResultLink.d.ts +5 -0
  344. package/mobile/lib/components/ReferalForm/ResultLink.js +10 -0
  345. package/mobile/lib/components/ReferalForm/ResultLink.js.map +1 -0
  346. package/mobile/lib/components/ReferalForm/referalFormData.d.ts +2 -0
  347. package/mobile/lib/components/ReferalForm/referalFormData.js +17 -0
  348. package/mobile/lib/components/ReferalForm/referalFormData.js.map +1 -0
  349. package/mobile/lib/components/ReferalForm/renderLinkInput.d.ts +2 -0
  350. package/mobile/lib/components/ReferalForm/renderLinkInput.js +23 -0
  351. package/mobile/lib/components/ReferalForm/renderLinkInput.js.map +1 -0
  352. package/mobile/lib/components/ReferalForm/renderSections.d.ts +3 -0
  353. package/mobile/lib/components/ReferalForm/renderSections.js +7 -0
  354. package/mobile/lib/components/ReferalForm/renderSections.js.map +1 -0
  355. package/mobile/lib/hooks/useDadataParty.js +1 -1
  356. package/mobile/lib/hooks/useDadataParty.js.map +1 -1
  357. package/mobile/lib/model/FormTypeFieldDef.d.ts +1 -1
  358. package/mobile/lib/retail/adaptors/getCreditFormTaskData.d.ts +1 -1
  359. package/mobile/lib/retail/api/createDraftTask.d.ts +1 -1
  360. package/mobile/lib/retail/api/createParticipant.d.ts +5 -1
  361. package/mobile/lib/retail/api/createParticipant.js +1 -1
  362. package/mobile/lib/retail/api/createParticipant.js.map +1 -1
  363. package/mobile/lib/retail/api/draftTasksKZO.d.ts +2 -1
  364. package/mobile/lib/retail/api/draftTasksKZO.js.map +1 -1
  365. package/mobile/lib/retail/api/getLastTaskStatus.d.ts +2 -1
  366. package/mobile/lib/retail/api/getLastTaskStatus.js.map +1 -1
  367. package/mobile/lib/retail/api/getUserTasks.d.ts +2 -40
  368. package/mobile/lib/retail/api/getUserTasks.js +1 -6
  369. package/mobile/lib/retail/api/getUserTasks.js.map +1 -1
  370. package/mobile/lib/retail/api/getUserTasksCard.d.ts +2 -0
  371. package/mobile/lib/retail/api/getUserTasksCard.js +5 -0
  372. package/mobile/lib/retail/api/getUserTasksCard.js.map +1 -0
  373. package/mobile/lib/retail/api/getUserTasksCredit.d.ts +2 -0
  374. package/mobile/lib/retail/api/getUserTasksCredit.js +6 -0
  375. package/mobile/lib/retail/api/getUserTasksCredit.js.map +1 -0
  376. package/mobile/lib/retail/api/getUserTasksDebit.d.ts +2 -0
  377. package/mobile/lib/retail/api/getUserTasksDebit.js +5 -0
  378. package/mobile/lib/retail/api/getUserTasksDebit.js.map +1 -0
  379. package/mobile/lib/retail/api/getUserTasksTypes.d.ts +39 -0
  380. package/mobile/lib/retail/api/getUserTasksTypes.js +7 -0
  381. package/mobile/lib/retail/api/getUserTasksTypes.js.map +1 -0
  382. package/mobile/lib/retail/api/updateUserTask.d.ts +1 -1
  383. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +3 -2
  384. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +2 -1
  385. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  386. package/mobile/lib/retail/components/DraftDialog/DraftDialog.d.ts +1 -1
  387. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +4 -2
  388. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  389. package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +4 -1
  390. package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  391. package/mobile/lib/retail/hooks/useRetailFormStore.d.ts +2 -1
  392. package/mobile/src/api/getSubmitBody.ts +17 -0
  393. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +38 -0
  394. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +2 -0
  395. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +10 -0
  396. package/mobile/src/components/ApplicationForm/Footnote.tsx +10 -1
  397. package/mobile/src/components/ApplicationForm/renderAgreementSubmit.tsx +7 -1
  398. package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
  399. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +140 -32
  400. package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
  401. package/mobile/src/components/ApplicationLeadForm/useSaveUserData.ts +11 -2
  402. package/mobile/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -1
  403. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +1 -1
  404. package/mobile/src/components/DebitForm/getDebitCardFormTaskData.ts +1 -1
  405. package/mobile/src/components/ReferalForm/ReferalForm.example.json +8 -0
  406. package/mobile/src/components/ReferalForm/ReferalForm.tsx +78 -0
  407. package/mobile/src/components/ReferalForm/ReferalForm.ui.json +1 -0
  408. package/mobile/src/components/ReferalForm/ReferalFormContent.ts +12 -0
  409. package/mobile/src/components/ReferalForm/ResultLink.tsx +20 -0
  410. package/mobile/src/components/ReferalForm/referalFormData.ts +18 -0
  411. package/mobile/src/components/ReferalForm/renderLinkInput.tsx +37 -0
  412. package/mobile/src/components/ReferalForm/renderSections.tsx +18 -0
  413. package/mobile/src/hooks/useDadataParty.ts +1 -1
  414. package/mobile/src/model/FormTypeFieldDef.ts +2 -1
  415. package/mobile/src/retail/adaptors/getCreditFormTaskData.ts +1 -1
  416. package/mobile/src/retail/api/createDraftTask.ts +1 -1
  417. package/mobile/src/retail/api/createParticipant.ts +3 -2
  418. package/mobile/src/retail/api/draftTasksKZO.ts +2 -1
  419. package/mobile/src/retail/api/getLastTaskStatus.ts +2 -1
  420. package/mobile/src/retail/api/getUserTasks.ts +2 -42
  421. package/mobile/src/retail/api/getUserTasksCard.ts +6 -0
  422. package/mobile/src/retail/api/getUserTasksCredit.ts +8 -0
  423. package/mobile/src/retail/api/getUserTasksDebit.ts +6 -0
  424. package/mobile/src/retail/api/getUserTasksTypes.ts +42 -0
  425. package/mobile/src/retail/api/updateUserTask.ts +1 -1
  426. package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +6 -3
  427. package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +5 -3
  428. package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +5 -1
  429. package/package.json +1 -1
  430. package/src/api/getSubmitBody.ts +17 -0
  431. package/src/components/ApplicationForm/ApplicationForm.example.json +38 -0
  432. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +36 -0
  433. package/src/components/ApplicationForm/ApplicationForm.tsx +2 -0
  434. package/src/components/ApplicationForm/ApplicationFormContent.ts +10 -0
  435. package/src/components/ApplicationForm/Footnote.tsx +10 -1
  436. package/src/components/ApplicationForm/renderAgreementSubmit.tsx +7 -1
  437. package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
  438. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +140 -32
  439. package/src/components/ApplicationLeadForm/useLeadFormStore.ts +2 -1
  440. package/src/components/ApplicationLeadForm/useSaveUserData.ts +11 -2
  441. package/src/components/ApplicationLeadForm/useSendLeadFormAspects.tsx +1 -1
  442. package/src/components/Blocks.ts +2 -0
  443. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +1 -1
  444. package/src/components/DebitForm/getDebitCardFormTaskData.ts +1 -1
  445. package/src/components/ReferalForm/ReferalForm.example.json +8 -0
  446. package/src/components/ReferalForm/ReferalForm.fixture.mobile.tsx +16 -0
  447. package/src/components/ReferalForm/ReferalForm.fixture.tsx +16 -0
  448. package/src/components/ReferalForm/ReferalForm.tsx +78 -0
  449. package/src/components/ReferalForm/ReferalForm.ui.json +1 -0
  450. package/src/components/ReferalForm/ReferalFormContent.ts +12 -0
  451. package/src/components/ReferalForm/ResultLink.tsx +20 -0
  452. package/src/components/ReferalForm/referalFormData.ts +18 -0
  453. package/src/components/ReferalForm/renderLinkInput.tsx +37 -0
  454. package/src/components/ReferalForm/renderSections.tsx +18 -0
  455. package/src/hooks/useDadataParty.ts +1 -1
  456. package/src/icons/IconName.ts +4 -4
  457. package/src/model/FormTypeFieldDef.ts +2 -1
  458. package/src/retail/adaptors/getCreditFormTaskData.ts +1 -1
  459. package/src/retail/api/createDraftTask.ts +1 -1
  460. package/src/retail/api/createParticipant.ts +3 -2
  461. package/src/retail/api/draftTasksKZO.ts +2 -1
  462. package/src/retail/api/getLastTaskStatus.ts +2 -1
  463. package/src/retail/api/getUserTasks.ts +2 -42
  464. package/src/retail/api/getUserTasksCard.ts +6 -0
  465. package/src/retail/api/getUserTasksCredit.ts +8 -0
  466. package/src/retail/api/getUserTasksDebit.ts +6 -0
  467. package/src/retail/api/getUserTasksTypes.ts +42 -0
  468. package/src/retail/api/updateUserTask.ts +1 -1
  469. package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +6 -3
  470. package/src/retail/components/DraftDialog/DraftDialog.tsx +5 -3
  471. package/src/retail/components/DraftDialog/parseDraftTask.ts +5 -1
@@ -1647,6 +1647,7 @@
1647
1647
  }),
1648
1648
  ...getRkoTariffName(typeForm),
1649
1649
  ...staticBody,
1650
+ ...getReferalRkoData(body, typeForm),
1650
1651
  };
1651
1652
  };
1652
1653
  const getPhoneBody = (phone) => {
@@ -1682,6 +1683,19 @@
1682
1683
  partnerComments: globalThis?.sessionStorage.getItem('rkoTariffName') ?? 'Неизвестный тариф',
1683
1684
  }
1684
1685
  : {};
1686
+ const getReferalRkoData = (body, typeForm) => {
1687
+ const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
1688
+ const partnerComments = params.get('utm_mail');
1689
+ const partner = params.get('utm_source');
1690
+ return typeForm === 'REF'
1691
+ ? {
1692
+ name: body.fullName,
1693
+ fullName: undefined,
1694
+ partnerComments,
1695
+ partner,
1696
+ }
1697
+ : {};
1698
+ };
1685
1699
 
1686
1700
  // eslint-disable-next-line max-lines-per-function
1687
1701
  function LeadServiceAPI() {
@@ -2522,11 +2536,11 @@
2522
2536
  });
2523
2537
  const renderText$2 = (text, aboveText) => text || aboveText ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "font-light text-left text-xs", children: aboveText }) : null, jsx("div", { className: style('text-left', { 'text-s -mt-3xs': Boolean(aboveText) }), children: text })] })) : null;
2524
2538
 
2525
- const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-l", font: "font-light", color: "text-secondary-text", children: [text ? jsx(Text, { children: text }) : null, link ? (jsx(Link, { ...link, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", children: link.text })) : null] })));
2539
+ const Footnote = JSX(({ text, link, additionalLink }) => (jsxs(Paragraph, { size: "text-l", font: "font-light", color: "text-secondary-text", children: [text ? jsx(Text, { children: text }) : null, link ? (jsx(Link, { ...link, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", children: link.text })) : null, additionalLink ? (jsxs(Text, { children: [' и ', jsx(Link, { ...additionalLink, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0440\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0430\u043A\u0446\u0438\u0438", children: additionalLink.text })] })) : null] })));
2526
2540
 
2527
2541
  const agreementText = 'Нажимая кнопку, вы подтверждаете согласие с ';
2528
2542
  const agreementTextPF = 'Нажимая на кнопку, вы подтверждаете, что клиент дал согласие на ';
2529
- const renderAgreementSubmit = ({ consentDataProcessing, link, button, typeForm, }) => (jsxs("div", { className: "flex col-span-2 gap-xs flex-col w-full items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3 items-center", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: typeForm === 'PF' ? agreementTextPF : agreementText, link: link })), jsx(SubmitButton$1, { className: "w-full @xl:w-auto", children: button?.text ? button.text : 'Отправить заявку' })] }));
2543
+ const renderAgreementSubmit = ({ consentDataProcessing, link, additionalLink, button, typeForm, }) => (jsxs("div", { className: "flex col-span-2 gap-xs flex-col w-full items-baseline", children: [consentDataProcessing ? (jsxs("div", { children: [jsxs("div", { className: "flex gap-3 items-center", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { link: link })] }), renderErrorText(withValidator(consentDataProcessing, agreementValidator).error)] })) : (jsx(Footnote, { text: typeForm === 'PF' ? agreementTextPF : agreementText, link: link, additionalLink: additionalLink })), jsx(SubmitButton$1, { className: "w-full @xl:w-auto", children: button?.text ? button.text : 'Отправить заявку' })] }));
2530
2544
 
2531
2545
  const renderContacts = () => (jsxs("div", { className: "space-y-m", children: [jsx(Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "@xl:text-center" }), jsxs("div", { className: "flex sm:justify-center gap-xl", children: [jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", href: `tel:8 (800) 200-78-70`, "aria-label": "\u0442\u0435\u043B\u0435\u0444\u043E\u043D 8 (800) 200-78-70", children: [jsx(Img, { image: { icon: 'PhoneIcon' }, width: "24", height: "24" }), jsx("span", { children: "8 (800) 200-78-70" })] }), jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", "aria-label": "\u043F\u043E\u0447\u0442\u0430 ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(Img, { image: { icon: 'MailIcon' }, width: "24", height: "24" }), jsx("span", { children: "ved@rshb.ru" })] })] })] }));
2532
2546
 
@@ -3069,7 +3083,7 @@
3069
3083
  };
3070
3084
 
3071
3085
  const INN_DADATA_URL = 'suggest/party';
3072
- const useDadataParty = async (searchQuery) => (await getDaDataHints({ url: INN_DADATA_URL, query: searchQuery })).map((_) => ({
3086
+ const useDadataParty = async (searchQuery) => (await getDaDataHints({ url: INN_DADATA_URL, query: searchQuery }))?.map((_) => ({
3073
3087
  fullName: _?.value,
3074
3088
  address: _?.data?.address?.value,
3075
3089
  inn: _?.data?.inn,
@@ -3817,7 +3831,7 @@
3817
3831
 
3818
3832
  const renderTitle = (title) => title ? (jsx("div", { className: "@xl:text-center @xl:col-span-2 mb-m", children: jsx(Text, { size: "text-h6", children: title }) })) : null;
3819
3833
 
3820
- const renderSections = (sections, field, { typeForm, additionalParams }) => sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid'), children: [renderTitle(_.title), (_?.inputs || [])?.map(getField(field, { typeForm, ...additionalParams }))] }, `section-${i}`)));
3834
+ const renderSections$1 = (sections, field, { typeForm, additionalParams }) => sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid'), children: [renderTitle(_.title), (_?.inputs || [])?.map(getField(field, { typeForm, ...additionalParams }))] }, `section-${i}`)));
3821
3835
 
3822
3836
  const useInterval = (handler, period) => {
3823
3837
  const timer = useRef(null);
@@ -3991,7 +4005,7 @@
3991
4005
  };
3992
4006
  const ApplicationForm = UniBlock(
3993
4007
  // eslint-disable-next-line max-lines-per-function
3994
- ({ className, title, typeForm = '', sections = [], button, link, endpoint, additionalParams, withSnowplow, isContacts, data, onSuccess, ...rest }) => {
4008
+ ({ className, title, typeForm = '', sections = [], button, link, additionalLink, endpoint, additionalParams, withSnowplow, isContacts, data, onSuccess, ...rest }) => {
3995
4009
  const inputs = useMemo(() => (sections?.flatMap((_) => _?.inputs) || []), [sections]);
3996
4010
  const initialFormState = useMemo(() => getInitialFormState$2(inputs, typeForm), [inputs, typeForm]);
3997
4011
  const router = useRouter();
@@ -4023,9 +4037,10 @@
4023
4037
  });
4024
4038
  const fieldName = getConsentDataProcessing(inputs)?.name;
4025
4039
  const consentDataProcessing = fieldName ? field('consentDataProcessing') : undefined;
4026
- return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [jsxs("form", { onSubmit: onSubmit, children: [renderSections(sections, field, { typeForm, additionalParams }), renderAgreementSubmit({
4040
+ return (jsxs(ApplicationFormLayout, { className: style('container space-y-m', className), title: title, ...rest, children: [jsxs("form", { onSubmit: onSubmit, children: [renderSections$1(sections, field, { typeForm, additionalParams }), renderAgreementSubmit({
4027
4041
  consentDataProcessing,
4028
4042
  link,
4043
+ additionalLink,
4029
4044
  button,
4030
4045
  typeForm,
4031
4046
  })] }), isContacts ? renderContacts() : null] }));
@@ -6845,7 +6860,7 @@
6845
6860
  return res || {};
6846
6861
  };
6847
6862
 
6848
- const createParticipant = (body) => fetchRetailJSON('/public-data/createParticipant', 'POST', body).then((res) => res?.participantId || null);
6863
+ const createParticipant = (body) => fetchRetailJSON('/public-data/createParticipant', 'POST', body).then((res) => res || null);
6849
6864
 
6850
6865
  const createUserProfile = (body) => fetchRetailJSON('/public-data/createUserProfile', 'POST', body).then((res) => res?.profile?.id || null);
6851
6866
 
@@ -7153,10 +7168,11 @@
7153
7168
  }
7154
7169
  };
7155
7170
  return {
7156
- open: ({ phone, profileId, onFail, taskId, participantId }) => open({
7171
+ open: ({ phone, profileId, userId, onFail, taskId, participantId }) => open({
7157
7172
  onSubmit: handleSubmitBkiConsent({
7158
7173
  phone,
7159
7174
  profileId,
7175
+ userId,
7160
7176
  onFail,
7161
7177
  taskId,
7162
7178
  participantId,
@@ -7380,7 +7396,10 @@
7380
7396
  };
7381
7397
 
7382
7398
  const parseDraftTask = (task) => {
7383
- const participant = task.participants[0];
7399
+ const participant = task.participant || task.participants?.[0];
7400
+ if (!participant) {
7401
+ throw new Error('Task does not contain participant data');
7402
+ }
7384
7403
  const { classCard: cardCategory, codeWord, paymentSystemTypeCd: paymentSystem, currencyCode: currency, } = task;
7385
7404
  const { loanAmount: moneyValue, creditPeriod: monthsValue, paymentTypeCd } = task;
7386
7405
  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, } = participant;
@@ -7445,16 +7464,18 @@
7445
7464
  const DraftDialog = JSX(function ({ task, isFromLead = false, isDebit = false, sendAspects = noop, onClose = noop, }) {
7446
7465
  const retailFormStore = useRetailFormStore();
7447
7466
  const navigator = locationNavigator();
7448
- const { participants, creditProgram, createdDate = '', id: taskId } = task;
7467
+ const { participants, participant, creditProgram, createdDate = '', id: taskId } = task;
7449
7468
  const programmId = creditProgramCodeToProductIdMap[creditProgram.code];
7450
7469
  const isCredit = Boolean(creditCodesToProgrammIdMap[creditProgram.code]);
7451
7470
  const productData = getProductData(isDebit, isCredit);
7452
- const { id: participantId, profile } = participants[0];
7471
+ const currentParticipant = participant || participants?.[0];
7472
+ const { id: participantId, profile } = currentParticipant || {};
7453
7473
  const handleGoToDraft = useCallback(() => {
7454
7474
  const taskFromDraft = parseDraftTask(task);
7455
7475
  retailFormStore.participantId = participantId ?? null;
7456
7476
  retailFormStore.taskId = taskId;
7457
7477
  retailFormStore.profileId = profile?.id ?? null;
7478
+ retailFormStore.userId = profile?.id ?? null;
7458
7479
  retailFormStore.programId = programmId;
7459
7480
  retailFormStore.leadForm = taskFromDraft;
7460
7481
  if (profile?.id) {
@@ -7600,10 +7621,11 @@
7600
7621
 
7601
7622
  const useSaveUserData = () => {
7602
7623
  const leadFormStore = useLeadFormStore();
7603
- return useCallback(({ participantId, taskId, profileId, programId: programNumber, formData }) => {
7624
+ return useCallback(({ participantId, taskId, userId, profileId, programId: programNumber, formData, }) => {
7604
7625
  leadFormStore.participantId = participantId;
7605
7626
  leadFormStore.taskId = taskId;
7606
7627
  leadFormStore.profileId = profileId;
7628
+ leadFormStore.userId = userId;
7607
7629
  leadFormStore.programId = programNumber;
7608
7630
  leadFormStore.leadForm = formData;
7609
7631
  }, []);
@@ -7719,42 +7741,43 @@
7719
7741
  try {
7720
7742
  startSending();
7721
7743
  const transformedFormData = transformFormData(formData);
7722
- const participantId = await createParticipant({
7744
+ const participantData = await createParticipant({
7723
7745
  phone: formatPhone(transformedFormData.phone),
7724
7746
  email: transformedFormData.email,
7725
7747
  });
7726
7748
  const referalData = leadFormStore.referalData;
7727
7749
  const marketingInfo = sessionStore.marketingInfo;
7750
+ if (!participantData) {
7751
+ throw new Error();
7752
+ }
7753
+ const { participantId, userId } = participantData;
7728
7754
  if (!participantId) {
7729
7755
  throw new Error();
7730
7756
  }
7731
- const sendCurrentTask = async () => {
7732
- const taskId = await updateUserDataNewMicroservice({
7733
- programId,
7734
- participantId,
7735
- formData: transformedFormData,
7736
- referalData,
7737
- productType,
7738
- marketingInfo,
7739
- saveUserData,
7740
- sendAspects,
7741
- });
7742
- verifyPhoneDialog.close();
7743
- consentBkiDialog.open({
7744
- phone: transformedFormData.phone,
7745
- taskId,
7746
- participantId,
7747
- onFail: handleFailSendForm,
7748
- });
7749
- };
7750
- const handleSuccessVerify = async () => {
7751
- try {
7752
- await sendCurrentTask();
7753
- }
7754
- catch {
7755
- handleFailSendForm();
7756
- }
7757
- };
7757
+ const sendCurrentTask = createSendCurrentTaskNew({
7758
+ programId,
7759
+ participantId,
7760
+ userId,
7761
+ formData: transformedFormData,
7762
+ referalData,
7763
+ productType,
7764
+ marketingInfo,
7765
+ saveUserData,
7766
+ sendAspects,
7767
+ verifyPhoneDialog,
7768
+ consentBkiDialog,
7769
+ handleFailSendForm,
7770
+ });
7771
+ const handleSuccessVerify = createHandleSuccessVerifyNew({
7772
+ userId,
7773
+ programId,
7774
+ productType,
7775
+ verifyPhoneDialog,
7776
+ draftDialog,
7777
+ sendAspects,
7778
+ sendCurrentTask,
7779
+ handleFailSendForm,
7780
+ });
7758
7781
  const acceptedConsents = getAcceptedConsents(transformedFormData, productType);
7759
7782
  verifyPhoneDialog.open({
7760
7783
  phone: transformedFormData.phone,
@@ -7775,6 +7798,54 @@
7775
7798
  handleSubmit: isNewMicroservice ? handleSubmitNewMicroservice : handleSubmitOldMicroservice,
7776
7799
  };
7777
7800
  };
7801
+ const createSendCurrentTaskNew = ({ programId, participantId, userId, formData, referalData, productType, marketingInfo, saveUserData, sendAspects, verifyPhoneDialog, consentBkiDialog, handleFailSendForm, }) => async () => {
7802
+ const taskId = await updateUserDataNewMicroservice({
7803
+ programId,
7804
+ participantId,
7805
+ userId,
7806
+ formData,
7807
+ referalData,
7808
+ productType,
7809
+ marketingInfo,
7810
+ saveUserData,
7811
+ sendAspects,
7812
+ });
7813
+ verifyPhoneDialog.close();
7814
+ consentBkiDialog.open({
7815
+ phone: formData.phone,
7816
+ taskId,
7817
+ userId,
7818
+ participantId,
7819
+ onFail: handleFailSendForm,
7820
+ });
7821
+ };
7822
+ const createHandleSuccessVerifyNew = ({ userId, programId, productType, verifyPhoneDialog, draftDialog, sendAspects, sendCurrentTask, handleFailSendForm, }) => async () => {
7823
+ try {
7824
+ const lastTaskId = await getLastTaskStatus({
7825
+ userId,
7826
+ profileId: userId,
7827
+ programId,
7828
+ });
7829
+ if (lastTaskId) {
7830
+ const task = await getTaskById({ taskId: lastTaskId });
7831
+ if (task) {
7832
+ verifyPhoneDialog.close();
7833
+ draftDialog.open({
7834
+ task,
7835
+ isFromLead: true,
7836
+ isDebit: productType === 'debitCard',
7837
+ sendAspects,
7838
+ onClose: sendCurrentTask,
7839
+ });
7840
+ return;
7841
+ }
7842
+ }
7843
+ await sendCurrentTask();
7844
+ }
7845
+ catch {
7846
+ handleFailSendForm();
7847
+ }
7848
+ };
7778
7849
  const getAcceptedConsents = (formData, productType) => {
7779
7850
  const consents = productTypeToConsentsMap[productType];
7780
7851
  return Object.keys(consents)
@@ -7826,7 +7897,7 @@
7826
7897
  console.log(ex);
7827
7898
  }
7828
7899
  };
7829
- const updateUserDataNewMicroservice = async ({ programId, participantId, formData, referalData, productType, marketingInfo, saveUserData, sendAspects, }) => {
7900
+ const updateUserDataNewMicroservice = async ({ programId, userId, participantId, formData, referalData, productType, marketingInfo, saveUserData, sendAspects, }) => {
7830
7901
  let taskId;
7831
7902
  const transformedConsents = transformConsentsFields(formData, productType);
7832
7903
  try {
@@ -7848,8 +7919,8 @@
7848
7919
  ...referalData,
7849
7920
  });
7850
7921
  }
7851
- sendAspects(participantId, taskId);
7852
- saveUserData({ participantId, taskId, programId, formData });
7922
+ sendAspects(userId || participantId, taskId);
7923
+ saveUserData({ participantId, taskId, userId, programId, formData });
7853
7924
  return taskId;
7854
7925
  }
7855
7926
  catch (ex) {
@@ -12540,8 +12611,8 @@
12540
12611
  return (jsxs("tr", { className: "pb-2xs text-h6", children: [jsx("td", { className: "pt-m m-auto flex text-left", children: jsxs("div", { className: "flex items-center gap-xs", children: [currency ? (jsx(Img, { image: { icon: CURRENCY_ICONS_MAP[currency] }, width: "24", height: "24" })) : null, jsx(Text, { size: "text-h6", children: currency })] }) }), jsx("td", { className: "pt-m pl-5xl text-center", children: jsx(Text, { size: "text-h6", children: formatCurrency(exchangeCurrencyItem?.saleExchangeRate) }) }), jsx("td", { className: "pt-m pl-5xl text-right", children: jsx(Text, { size: "text-h6", children: formatCurrency(exchangeCurrencyItem?.buyExchangeRate) }) })] }, currency));
12541
12612
  };
12542
12613
 
12543
- const icon = { icon: 'GpsIcon' };
12544
- const CurrentLocation = JSX(({ className = '', address }) => (jsxs("div", { className: style('flex gap-s w-full justify-between @sm:justify-center', className), children: [jsx(RoundedIcon, { ...icon, iconBgVersion: "primary", className: "shrink-0" }), jsxs("div", { className: "space-y-2xs whitespace-pre-wrap", children: [address ? (jsx(Paragraph, { size: "text-l", color: "text-primary-main", children: address })) : null, jsx(Paragraph, { size: "text-m", color: "text-secondary-text", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
12614
+ const icon$1 = { icon: 'GpsIcon' };
12615
+ const CurrentLocation = JSX(({ className = '', address }) => (jsxs("div", { className: style('flex gap-s w-full justify-between @sm:justify-center', className), children: [jsx(RoundedIcon, { ...icon$1, iconBgVersion: "primary", className: "shrink-0" }), jsxs("div", { className: "space-y-2xs whitespace-pre-wrap", children: [address ? (jsx(Paragraph, { size: "text-l", color: "text-primary-main", children: address })) : null, jsx(Paragraph, { size: "text-m", color: "text-secondary-text", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
12545
12616
 
12546
12617
  const roundTo = (value, precision = 2) => {
12547
12618
  const factor = 10 ** precision;
@@ -13950,6 +14021,66 @@
13950
14021
  return (jsxs(BlockWrapper, { className: style('p-6xl space-y-xl', className), defaultPadding: "p-0", ...rest, children: [jsx(Heading, { className: "mb-xl", children: title }), isArchive ? renderDataPickForm() : null, ratesList.map((list, i) => (jsx(RatesTableItem, { list: list, isRatesValid: isRatesValid, isArchive: isArchive, infoMessage: infoMessage }, String(i)))), href ? renderLink(href) : null] }));
13951
14022
  });
13952
14023
 
14024
+ const sections = [
14025
+ { title: 'Заполните ваши данные и получите персональную ссылку', inputs: [] },
14026
+ {
14027
+ columns: 2,
14028
+ inputs: [
14029
+ {
14030
+ name: 'dadataPartyInnSelect',
14031
+ required: true,
14032
+ },
14033
+ {
14034
+ name: 'email',
14035
+ required: true,
14036
+ },
14037
+ ],
14038
+ },
14039
+ ];
14040
+
14041
+ const renderSections = (sections, field) => sections.map((_, i) => (jsxs("div", { className: style(inputColumnStyles(_.columns), 'grid'), children: [renderTitle(_.title), (_?.inputs || [])?.map(getField(field))] }, `section-${i}`)));
14042
+
14043
+ const icon = {
14044
+ src: 'CopyIcon.svg',
14045
+ iconVersion: 'normal',
14046
+ size: { width: 20 },
14047
+ };
14048
+ const renderLinkInput = JSX(({ className, value = '' }) => {
14049
+ const onClick = useCallback(async () => {
14050
+ try {
14051
+ await globalThis.navigator.clipboard.writeText(value);
14052
+ }
14053
+ catch {
14054
+ console.log('Ошибка копирования');
14055
+ }
14056
+ }, []);
14057
+ return (jsxs("div", { className: style('relative flex items-center max-w-lg m-auto', className), children: [jsx("input", { className: style('h-14 border-gray text-ellipsis pr-5xl', defaultStyle$1), type: "text", value: value, disabled: true }), jsx("div", { role: "button", className: "absolute right-3", onClick: onClick, children: jsx(Img, { image: icon }) })] }));
14058
+ });
14059
+
14060
+ const ResultLink = JSX(({ link }) => {
14061
+ return (jsxs("div", { children: [jsx("div", { className: "@xl:text-center @xl:col-span-2 mb-m", children: jsx(Text, { size: "text-h6", children: "\u0421\u043A\u043E\u043F\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u0441\u044B\u043B\u043A\u0443 \u0438 \u043E\u0442\u043F\u0440\u0430\u0432\u044C\u0442\u0435 \u0434\u0440\u0443\u0433\u0443" }) }), renderLinkInput({
14062
+ value: link,
14063
+ })] }));
14064
+ });
14065
+
14066
+ const ReferalForm = UniBlock(({ link = '', button, ...rest }) => {
14067
+ const [isShowResultLink, setIsShowResultLink] = useState(false);
14068
+ const [referalLink, setReferalLink] = useState('');
14069
+ const inputs = useMemo(() => (sections?.flatMap((_) => _?.inputs) || []), [sections]);
14070
+ const formValidator = useMemo(() => getFormValidator(inputs), [inputs]);
14071
+ const handleSubmit = useCallback(async (formData) => {
14072
+ setReferalLink(`${link}?utm_source=${formData.dadataPartyInnSelect?.text}&utm_mail=${formData.email}`);
14073
+ setIsShowResultLink(true);
14074
+ }, []);
14075
+ const [, { field, onSubmit }] = useForm({}, {
14076
+ resetOnSubmit: true,
14077
+ formValidator,
14078
+ onSubmit: handleSubmit,
14079
+ });
14080
+ return (jsx(ApplicationFormLayout, { className: "container space-y-m col-span-12", title: getTitle(isShowResultLink), ...rest, children: isShowResultLink ? (jsx(ResultLink, { link: referalLink })) : (jsxs("form", { onSubmit: onSubmit, children: [renderSections(sections, field), jsxs(Paragraph, { size: "text-l", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: "\u041D\u0430\u0436\u0438\u043C\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0443, \u0432\u044B \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u0441 " }), jsx(Link, { href: "/privacy-policy", target: "_blank", ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", children: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F\u043C\u0438 \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(SubmitButton$1, { className: "w-full @xl:w-auto", children: button?.text ?? 'Получить ссылку' })] })) }));
14081
+ });
14082
+ const getTitle = (isShowResultLink = false) => isShowResultLink ? 'Ваша личная ссылка' : 'Как получить бесплатное обслуживание счёта';
14083
+
13953
14084
  const RichTextBlock = UniBlock((props) => {
13954
14085
  const { __html, dynamicQueryParamText = {}, dynamicTextSource, richVersion = '', ...rest } = props;
13955
14086
  const formatText = getFormatDynamicText(dynamicQueryParamText, dynamicTextSource?.list, __html);
@@ -14345,6 +14476,7 @@
14345
14476
  CalculatorRko,
14346
14477
  RkoTariffCardsTable,
14347
14478
  RatesTable,
14479
+ ReferalForm,
14348
14480
  };
14349
14481
 
14350
14482
  const applyAspects = (aspects) => (ev) => {
@@ -14489,7 +14621,7 @@
14489
14621
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
14490
14622
  });
14491
14623
 
14492
- const packageVersion = "0.14.1027";
14624
+ const packageVersion = "0.14.1029";
14493
14625
 
14494
14626
  exports.Blocks = Blocks;
14495
14627
  exports.ContentPage = ContentPage;