@redneckz/wildless-cms-uni-blocks 0.14.1076 → 0.14.1078

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 (404) hide show
  1. package/bundle/bundle.umd.js +463 -250
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
  4. package/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
  5. package/bundle/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
  6. package/bundle/components/CreditForm/creditFormAspects.d.ts +2 -0
  7. package/bundle/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
  8. package/bundle/components/DebitForm/debitFormAspects.d.ts +2 -0
  9. package/bundle/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
  10. package/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
  11. package/bundle/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
  12. package/bundle/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
  13. package/bundle/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
  14. package/bundle/retail/utils/commonAspects.d.ts +2 -0
  15. package/bundle/retail/utils/formAspectsConfig.d.ts +6 -0
  16. package/bundle/retail/utils/yandexMetrika.d.ts +1 -0
  17. package/bundle/utils/getStepAspects.d.ts +11 -0
  18. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  19. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  20. package/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
  21. package/dist/components/ApplicationLeadForm/renderSubmitButton.js +7 -1
  22. package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  23. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +83 -40
  24. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  25. package/dist/components/CreditCardForm/CreditCardFormStep.js +5 -2
  26. package/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  27. package/dist/components/CreditCardForm/FailedStatusContent.js +15 -1
  28. package/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -1
  29. package/dist/components/CreditCardForm/PendingStatusContent.js +21 -1
  30. package/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -1
  31. package/dist/components/CreditCardForm/ReworkStatusContent.js +12 -0
  32. package/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
  33. package/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
  34. package/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -2
  35. package/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  36. package/dist/components/CreditCardForm/SuccessStatusCardContent.js +12 -0
  37. package/dist/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -1
  38. package/dist/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
  39. package/dist/components/CreditCardForm/creditCardFormAspects.js +10 -0
  40. package/dist/components/CreditCardForm/creditCardFormAspects.js.map +1 -0
  41. package/dist/components/CreditForm/FailedStatusContent.js +15 -1
  42. package/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
  43. package/dist/components/CreditForm/PendingStatusContent.js +21 -1
  44. package/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
  45. package/dist/components/CreditForm/ReworkStatusContent.js +12 -0
  46. package/dist/components/CreditForm/ReworkStatusContent.js.map +1 -1
  47. package/dist/components/CreditForm/StepsNavigationButtons.js +4 -92
  48. package/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  49. package/dist/components/CreditForm/SuccessStatusContent.js +12 -0
  50. package/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
  51. package/dist/components/CreditForm/creditFormAspects.d.ts +2 -0
  52. package/dist/components/CreditForm/creditFormAspects.js +35 -0
  53. package/dist/components/CreditForm/creditFormAspects.js.map +1 -0
  54. package/dist/components/DebitForm/DebitFormStep.js +5 -2
  55. package/dist/components/DebitForm/DebitFormStep.js.map +1 -1
  56. package/dist/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
  57. package/dist/components/DebitForm/StepsNavigationButtons.js +11 -2
  58. package/dist/components/DebitForm/StepsNavigationButtons.js.map +1 -1
  59. package/dist/components/DebitForm/debitFormAspects.d.ts +2 -0
  60. package/dist/components/DebitForm/debitFormAspects.js +8 -0
  61. package/dist/components/DebitForm/debitFormAspects.js.map +1 -0
  62. package/dist/components/Footer/Contacts.js +1 -1
  63. package/dist/components/Footer/Contacts.js.map +1 -1
  64. package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
  65. package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +13 -2
  66. package/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  67. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
  68. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +64 -47
  69. package/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  70. package/dist/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
  71. package/dist/retail/components/DraftDialog/DraftActionButton.js +2 -1
  72. package/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  73. package/dist/retail/components/DraftDialog/DraftDialog.js +14 -1
  74. package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  75. package/dist/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
  76. package/dist/retail/components/DraftDialog/DraftDialogContent.js +2 -2
  77. package/dist/retail/components/DraftDialog/DraftDialogContent.js.map +1 -1
  78. package/dist/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
  79. package/dist/retail/utils/commonAspects.d.ts +2 -0
  80. package/dist/retail/utils/commonAspects.js +64 -0
  81. package/dist/retail/utils/commonAspects.js.map +1 -0
  82. package/dist/retail/utils/formAspectsConfig.d.ts +6 -0
  83. package/dist/retail/utils/formAspectsConfig.js +2 -0
  84. package/dist/retail/utils/formAspectsConfig.js.map +1 -0
  85. package/dist/retail/utils/yandexMetrika.d.ts +1 -0
  86. package/dist/retail/utils/yandexMetrika.js +5 -0
  87. package/dist/retail/utils/yandexMetrika.js.map +1 -0
  88. package/dist/utils/getStepAspects.d.ts +11 -0
  89. package/dist/utils/getStepAspects.js +50 -0
  90. package/dist/utils/getStepAspects.js.map +1 -0
  91. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  92. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  93. package/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
  94. package/lib/components/ApplicationLeadForm/renderSubmitButton.js +7 -1
  95. package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  96. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +83 -40
  97. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  98. package/lib/components/CreditCardForm/CreditCardFormStep.js +5 -2
  99. package/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  100. package/lib/components/CreditCardForm/FailedStatusContent.js +15 -1
  101. package/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -1
  102. package/lib/components/CreditCardForm/PendingStatusContent.js +21 -1
  103. package/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -1
  104. package/lib/components/CreditCardForm/ReworkStatusContent.js +12 -0
  105. package/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
  106. package/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
  107. package/lib/components/CreditCardForm/StepsNavigationButtons.js +11 -2
  108. package/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  109. package/lib/components/CreditCardForm/SuccessStatusCardContent.js +12 -0
  110. package/lib/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -1
  111. package/lib/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
  112. package/lib/components/CreditCardForm/creditCardFormAspects.js +8 -0
  113. package/lib/components/CreditCardForm/creditCardFormAspects.js.map +1 -0
  114. package/lib/components/CreditForm/FailedStatusContent.js +15 -1
  115. package/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
  116. package/lib/components/CreditForm/PendingStatusContent.js +21 -1
  117. package/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
  118. package/lib/components/CreditForm/ReworkStatusContent.js +12 -0
  119. package/lib/components/CreditForm/ReworkStatusContent.js.map +1 -1
  120. package/lib/components/CreditForm/StepsNavigationButtons.js +4 -92
  121. package/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  122. package/lib/components/CreditForm/SuccessStatusContent.js +12 -0
  123. package/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
  124. package/lib/components/CreditForm/creditFormAspects.d.ts +2 -0
  125. package/lib/components/CreditForm/creditFormAspects.js +33 -0
  126. package/lib/components/CreditForm/creditFormAspects.js.map +1 -0
  127. package/lib/components/DebitForm/DebitFormStep.js +5 -2
  128. package/lib/components/DebitForm/DebitFormStep.js.map +1 -1
  129. package/lib/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
  130. package/lib/components/DebitForm/StepsNavigationButtons.js +11 -2
  131. package/lib/components/DebitForm/StepsNavigationButtons.js.map +1 -1
  132. package/lib/components/DebitForm/debitFormAspects.d.ts +2 -0
  133. package/lib/components/DebitForm/debitFormAspects.js +6 -0
  134. package/lib/components/DebitForm/debitFormAspects.js.map +1 -0
  135. package/lib/components/Footer/Contacts.js +1 -1
  136. package/lib/components/Footer/Contacts.js.map +1 -1
  137. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  138. package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
  139. package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +13 -2
  140. package/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  141. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
  142. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +64 -47
  143. package/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  144. package/lib/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
  145. package/lib/retail/components/DraftDialog/DraftActionButton.js +2 -1
  146. package/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  147. package/lib/retail/components/DraftDialog/DraftDialog.js +14 -1
  148. package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  149. package/lib/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
  150. package/lib/retail/components/DraftDialog/DraftDialogContent.js +2 -2
  151. package/lib/retail/components/DraftDialog/DraftDialogContent.js.map +1 -1
  152. package/lib/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
  153. package/lib/retail/utils/commonAspects.d.ts +2 -0
  154. package/lib/retail/utils/commonAspects.js +61 -0
  155. package/lib/retail/utils/commonAspects.js.map +1 -0
  156. package/lib/retail/utils/formAspectsConfig.d.ts +6 -0
  157. package/lib/retail/utils/formAspectsConfig.js +2 -0
  158. package/lib/retail/utils/formAspectsConfig.js.map +1 -0
  159. package/lib/retail/utils/yandexMetrika.d.ts +1 -0
  160. package/lib/retail/utils/yandexMetrika.js +3 -0
  161. package/lib/retail/utils/yandexMetrika.js.map +1 -0
  162. package/lib/utils/getStepAspects.d.ts +11 -0
  163. package/lib/utils/getStepAspects.js +47 -0
  164. package/lib/utils/getStepAspects.js.map +1 -0
  165. package/mobile/bundle/bundle.umd.js +463 -250
  166. package/mobile/bundle/bundle.umd.min.js +1 -1
  167. package/mobile/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
  168. package/mobile/bundle/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
  169. package/mobile/bundle/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
  170. package/mobile/bundle/components/CreditForm/creditFormAspects.d.ts +2 -0
  171. package/mobile/bundle/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
  172. package/mobile/bundle/components/DebitForm/debitFormAspects.d.ts +2 -0
  173. package/mobile/bundle/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
  174. package/mobile/bundle/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
  175. package/mobile/bundle/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
  176. package/mobile/bundle/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
  177. package/mobile/bundle/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
  178. package/mobile/bundle/retail/utils/commonAspects.d.ts +2 -0
  179. package/mobile/bundle/retail/utils/formAspectsConfig.d.ts +6 -0
  180. package/mobile/bundle/retail/utils/yandexMetrika.d.ts +1 -0
  181. package/mobile/bundle/utils/getStepAspects.d.ts +11 -0
  182. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  183. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  184. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
  185. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +7 -1
  186. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  187. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +83 -40
  188. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  189. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js +5 -2
  190. package/mobile/dist/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  191. package/mobile/dist/components/CreditCardForm/FailedStatusContent.js +15 -1
  192. package/mobile/dist/components/CreditCardForm/FailedStatusContent.js.map +1 -1
  193. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js +21 -1
  194. package/mobile/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -1
  195. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js +12 -0
  196. package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
  197. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
  198. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +11 -2
  199. package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  200. package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.js +12 -0
  201. package/mobile/dist/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -1
  202. package/mobile/dist/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
  203. package/mobile/dist/components/CreditCardForm/creditCardFormAspects.js +10 -0
  204. package/mobile/dist/components/CreditCardForm/creditCardFormAspects.js.map +1 -0
  205. package/mobile/dist/components/CreditForm/FailedStatusContent.js +15 -1
  206. package/mobile/dist/components/CreditForm/FailedStatusContent.js.map +1 -1
  207. package/mobile/dist/components/CreditForm/PendingStatusContent.js +21 -1
  208. package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
  209. package/mobile/dist/components/CreditForm/ReworkStatusContent.js +12 -0
  210. package/mobile/dist/components/CreditForm/ReworkStatusContent.js.map +1 -1
  211. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js +4 -92
  212. package/mobile/dist/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  213. package/mobile/dist/components/CreditForm/SuccessStatusContent.js +12 -0
  214. package/mobile/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
  215. package/mobile/dist/components/CreditForm/creditFormAspects.d.ts +2 -0
  216. package/mobile/dist/components/CreditForm/creditFormAspects.js +35 -0
  217. package/mobile/dist/components/CreditForm/creditFormAspects.js.map +1 -0
  218. package/mobile/dist/components/DebitForm/DebitFormStep.js +5 -2
  219. package/mobile/dist/components/DebitForm/DebitFormStep.js.map +1 -1
  220. package/mobile/dist/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
  221. package/mobile/dist/components/DebitForm/StepsNavigationButtons.js +11 -2
  222. package/mobile/dist/components/DebitForm/StepsNavigationButtons.js.map +1 -1
  223. package/mobile/dist/components/DebitForm/debitFormAspects.d.ts +2 -0
  224. package/mobile/dist/components/DebitForm/debitFormAspects.js +8 -0
  225. package/mobile/dist/components/DebitForm/debitFormAspects.js.map +1 -0
  226. package/mobile/dist/components/Footer/Contacts.js +1 -1
  227. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  228. package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
  229. package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +13 -2
  230. package/mobile/dist/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  231. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
  232. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +64 -47
  233. package/mobile/dist/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  234. package/mobile/dist/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
  235. package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js +2 -1
  236. package/mobile/dist/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  237. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +14 -1
  238. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  239. package/mobile/dist/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
  240. package/mobile/dist/retail/components/DraftDialog/DraftDialogContent.js +2 -2
  241. package/mobile/dist/retail/components/DraftDialog/DraftDialogContent.js.map +1 -1
  242. package/mobile/dist/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
  243. package/mobile/dist/retail/utils/commonAspects.d.ts +2 -0
  244. package/mobile/dist/retail/utils/commonAspects.js +64 -0
  245. package/mobile/dist/retail/utils/commonAspects.js.map +1 -0
  246. package/mobile/dist/retail/utils/formAspectsConfig.d.ts +6 -0
  247. package/mobile/dist/retail/utils/formAspectsConfig.js +2 -0
  248. package/mobile/dist/retail/utils/formAspectsConfig.js.map +1 -0
  249. package/mobile/dist/retail/utils/yandexMetrika.d.ts +1 -0
  250. package/mobile/dist/retail/utils/yandexMetrika.js +5 -0
  251. package/mobile/dist/retail/utils/yandexMetrika.js.map +1 -0
  252. package/mobile/dist/utils/getStepAspects.d.ts +11 -0
  253. package/mobile/dist/utils/getStepAspects.js +50 -0
  254. package/mobile/dist/utils/getStepAspects.js.map +1 -0
  255. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -1
  256. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  257. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +4 -1
  258. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +7 -1
  259. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -1
  260. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +83 -40
  261. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  262. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js +5 -2
  263. package/mobile/lib/components/CreditCardForm/CreditCardFormStep.js.map +1 -1
  264. package/mobile/lib/components/CreditCardForm/FailedStatusContent.js +15 -1
  265. package/mobile/lib/components/CreditCardForm/FailedStatusContent.js.map +1 -1
  266. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js +21 -1
  267. package/mobile/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -1
  268. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js +12 -0
  269. package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
  270. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.d.ts +3 -0
  271. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +11 -2
  272. package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js.map +1 -1
  273. package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.js +12 -0
  274. package/mobile/lib/components/CreditCardForm/SuccessStatusCardContent.js.map +1 -1
  275. package/mobile/lib/components/CreditCardForm/creditCardFormAspects.d.ts +2 -0
  276. package/mobile/lib/components/CreditCardForm/creditCardFormAspects.js +8 -0
  277. package/mobile/lib/components/CreditCardForm/creditCardFormAspects.js.map +1 -0
  278. package/mobile/lib/components/CreditForm/FailedStatusContent.js +15 -1
  279. package/mobile/lib/components/CreditForm/FailedStatusContent.js.map +1 -1
  280. package/mobile/lib/components/CreditForm/PendingStatusContent.js +21 -1
  281. package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
  282. package/mobile/lib/components/CreditForm/ReworkStatusContent.js +12 -0
  283. package/mobile/lib/components/CreditForm/ReworkStatusContent.js.map +1 -1
  284. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js +4 -92
  285. package/mobile/lib/components/CreditForm/StepsNavigationButtons.js.map +1 -1
  286. package/mobile/lib/components/CreditForm/SuccessStatusContent.js +12 -0
  287. package/mobile/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
  288. package/mobile/lib/components/CreditForm/creditFormAspects.d.ts +2 -0
  289. package/mobile/lib/components/CreditForm/creditFormAspects.js +33 -0
  290. package/mobile/lib/components/CreditForm/creditFormAspects.js.map +1 -0
  291. package/mobile/lib/components/DebitForm/DebitFormStep.js +5 -2
  292. package/mobile/lib/components/DebitForm/DebitFormStep.js.map +1 -1
  293. package/mobile/lib/components/DebitForm/StepsNavigationButtons.d.ts +3 -0
  294. package/mobile/lib/components/DebitForm/StepsNavigationButtons.js +11 -2
  295. package/mobile/lib/components/DebitForm/StepsNavigationButtons.js.map +1 -1
  296. package/mobile/lib/components/DebitForm/debitFormAspects.d.ts +2 -0
  297. package/mobile/lib/components/DebitForm/debitFormAspects.js +6 -0
  298. package/mobile/lib/components/DebitForm/debitFormAspects.js.map +1 -0
  299. package/mobile/lib/components/Footer/Contacts.js +1 -1
  300. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  301. package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.d.ts +1 -0
  302. package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js +13 -2
  303. package/mobile/lib/retail/components/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
  304. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.d.ts +2 -1
  305. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js +64 -47
  306. package/mobile/lib/retail/components/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  307. package/mobile/lib/retail/components/DraftDialog/DraftActionButton.d.ts +2 -0
  308. package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js +2 -1
  309. package/mobile/lib/retail/components/DraftDialog/DraftActionButton.js.map +1 -1
  310. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +14 -1
  311. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  312. package/mobile/lib/retail/components/DraftDialog/DraftDialogContent.d.ts +3 -0
  313. package/mobile/lib/retail/components/DraftDialog/DraftDialogContent.js +2 -2
  314. package/mobile/lib/retail/components/DraftDialog/DraftDialogContent.js.map +1 -1
  315. package/mobile/lib/retail/model/ApplicationLeadFormTypes.d.ts +13 -0
  316. package/mobile/lib/retail/utils/commonAspects.d.ts +2 -0
  317. package/mobile/lib/retail/utils/commonAspects.js +61 -0
  318. package/mobile/lib/retail/utils/commonAspects.js.map +1 -0
  319. package/mobile/lib/retail/utils/formAspectsConfig.d.ts +6 -0
  320. package/mobile/lib/retail/utils/formAspectsConfig.js +2 -0
  321. package/mobile/lib/retail/utils/formAspectsConfig.js.map +1 -0
  322. package/mobile/lib/retail/utils/yandexMetrika.d.ts +1 -0
  323. package/mobile/lib/retail/utils/yandexMetrika.js +3 -0
  324. package/mobile/lib/retail/utils/yandexMetrika.js.map +1 -0
  325. package/mobile/lib/utils/getStepAspects.d.ts +11 -0
  326. package/mobile/lib/utils/getStepAspects.js +47 -0
  327. package/mobile/lib/utils/getStepAspects.js.map +1 -0
  328. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
  329. package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +20 -5
  330. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +98 -38
  331. package/mobile/src/components/CreditCardForm/CreditCardFormStep.tsx +13 -2
  332. package/mobile/src/components/CreditCardForm/FailedStatusContent.tsx +24 -7
  333. package/mobile/src/components/CreditCardForm/PendingStatusContent.tsx +24 -1
  334. package/mobile/src/components/CreditCardForm/ReworkStatusContent.tsx +14 -0
  335. package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +15 -2
  336. package/mobile/src/components/CreditCardForm/SuccessStatusCardContent.tsx +14 -0
  337. package/mobile/src/components/CreditCardForm/creditCardFormAspects.ts +9 -0
  338. package/mobile/src/components/CreditForm/FailedStatusContent.tsx +24 -7
  339. package/mobile/src/components/CreditForm/PendingStatusContent.tsx +26 -1
  340. package/mobile/src/components/CreditForm/ReworkStatusContent.tsx +15 -0
  341. package/mobile/src/components/CreditForm/StepsNavigationButtons.tsx +5 -95
  342. package/mobile/src/components/CreditForm/SuccessStatusContent.tsx +15 -0
  343. package/mobile/src/components/CreditForm/creditFormAspects.ts +35 -0
  344. package/mobile/src/components/DebitForm/DebitFormStep.tsx +13 -2
  345. package/mobile/src/components/DebitForm/StepsNavigationButtons.tsx +15 -2
  346. package/mobile/src/components/DebitForm/debitFormAspects.ts +7 -0
  347. package/mobile/src/components/Footer/Contacts.tsx +1 -1
  348. package/mobile/src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx +16 -2
  349. package/mobile/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +93 -51
  350. package/mobile/src/retail/components/DraftDialog/DraftActionButton.tsx +6 -1
  351. package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +15 -0
  352. package/mobile/src/retail/components/DraftDialog/DraftDialogContent.tsx +7 -0
  353. package/mobile/src/retail/model/ApplicationLeadFormTypes.ts +12 -0
  354. package/mobile/src/retail/utils/commonAspects.ts +64 -0
  355. package/mobile/src/retail/utils/formAspectsConfig.ts +6 -0
  356. package/mobile/src/retail/utils/yandexMetrika.ts +3 -0
  357. package/mobile/src/utils/getStepAspects.ts +71 -0
  358. package/package.json +2 -2
  359. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -1
  360. package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +20 -5
  361. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +98 -38
  362. package/src/components/CreditCardForm/CreditCardFormStep.tsx +13 -2
  363. package/src/components/CreditCardForm/FailedStatusContent.tsx +24 -7
  364. package/src/components/CreditCardForm/PendingStatusContent.tsx +24 -1
  365. package/src/components/CreditCardForm/ReworkStatusContent.tsx +14 -0
  366. package/src/components/CreditCardForm/StepsNavigationButtons.tsx +15 -2
  367. package/src/components/CreditCardForm/SuccessStatusCardContent.tsx +14 -0
  368. package/src/components/CreditCardForm/creditCardFormAspects.ts +9 -0
  369. package/src/components/CreditForm/FailedStatusContent.tsx +24 -7
  370. package/src/components/CreditForm/PendingStatusContent.tsx +26 -1
  371. package/src/components/CreditForm/ReworkStatusContent.tsx +15 -0
  372. package/src/components/CreditForm/StepsNavigationButtons.tsx +5 -95
  373. package/src/components/CreditForm/SuccessStatusContent.tsx +15 -0
  374. package/src/components/CreditForm/creditFormAspects.ts +35 -0
  375. package/src/components/DebitForm/DebitFormStep.tsx +13 -2
  376. package/src/components/DebitForm/StepsNavigationButtons.tsx +15 -2
  377. package/src/components/DebitForm/debitFormAspects.ts +7 -0
  378. package/src/components/Footer/Contacts.tsx +1 -1
  379. package/src/retail/components/ConsentBkiDialog/ConsentBkiDialog.tsx +16 -2
  380. package/src/retail/components/ConsentBkiDialog/useConsentBkiDialog.tsx +93 -51
  381. package/src/retail/components/DraftDialog/DraftActionButton.tsx +6 -1
  382. package/src/retail/components/DraftDialog/DraftDialog.tsx +15 -0
  383. package/src/retail/components/DraftDialog/DraftDialogContent.tsx +7 -0
  384. package/src/retail/model/ApplicationLeadFormTypes.ts +12 -0
  385. package/src/retail/utils/commonAspects.ts +64 -0
  386. package/src/retail/utils/formAspectsConfig.ts +6 -0
  387. package/src/retail/utils/yandexMetrika.ts +3 -0
  388. package/src/utils/getStepAspects.ts +71 -0
  389. package/bundle/components/CreditForm/getYandexAspects.d.ts +0 -10
  390. package/dist/components/CreditForm/getYandexAspects.d.ts +0 -10
  391. package/dist/components/CreditForm/getYandexAspects.js +0 -38
  392. package/dist/components/CreditForm/getYandexAspects.js.map +0 -1
  393. package/lib/components/CreditForm/getYandexAspects.d.ts +0 -10
  394. package/lib/components/CreditForm/getYandexAspects.js +0 -35
  395. package/lib/components/CreditForm/getYandexAspects.js.map +0 -1
  396. package/mobile/bundle/components/CreditForm/getYandexAspects.d.ts +0 -10
  397. package/mobile/dist/components/CreditForm/getYandexAspects.d.ts +0 -10
  398. package/mobile/dist/components/CreditForm/getYandexAspects.js +0 -38
  399. package/mobile/dist/components/CreditForm/getYandexAspects.js.map +0 -1
  400. package/mobile/lib/components/CreditForm/getYandexAspects.d.ts +0 -10
  401. package/mobile/lib/components/CreditForm/getYandexAspects.js +0 -35
  402. package/mobile/lib/components/CreditForm/getYandexAspects.js.map +0 -1
  403. package/mobile/src/components/CreditForm/getYandexAspects.ts +0 -58
  404. package/src/components/CreditForm/getYandexAspects.ts +0 -58
@@ -1,3 +1,4 @@
1
+ import { type AspectsDef } from '../../../model/AspectsProps';
1
2
  import { type OnCloseProps } from '../../../model/OnCloseProps';
2
3
  import { type getProductData } from './utils';
3
4
  export interface DraftDialogContentProps extends OnCloseProps {
@@ -6,5 +7,7 @@ export interface DraftDialogContentProps extends OnCloseProps {
6
7
  isFromLead: boolean;
7
8
  handleGoToDraft: () => void;
8
9
  handleGoToNewTask: () => void;
10
+ draftAspects?: AspectsDef[];
11
+ currentAspects?: AspectsDef[];
9
12
  }
10
13
  export declare const DraftDialogContent: import("@redneckz/uni-jsx").UNIComponent<DraftDialogContentProps, any, any>;
@@ -3,7 +3,7 @@ import { JSX } from '@redneckz/uni-jsx';
3
3
  import { Heading } from '../../../ui-kit/Heading/Heading.js';
4
4
  import { formatDate } from '../../../utils/formatDate.js';
5
5
  import { DraftActionButton } from './DraftActionButton.js';
6
- export const DraftDialogContent = JSX(function ({ createdDate, productData, isFromLead, handleGoToDraft, handleGoToNewTask, onClose, }) {
7
- return (_jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [_jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), _jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [_jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft, name: "go-to-draft-button" }), _jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: productData.description, onClick: isFromLead ? onClose : handleGoToNewTask, name: "go-to-current-task-button" })] })] }));
6
+ export const DraftDialogContent = JSX(function ({ createdDate, productData, isFromLead, handleGoToDraft, handleGoToNewTask, onClose, draftAspects, currentAspects, }) {
7
+ return (_jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [_jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), _jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [_jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft, name: "go-to-draft-button", data: draftAspects }), _jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: productData.description, onClick: isFromLead ? onClose : handleGoToNewTask, name: "go-to-current-task-button", data: isFromLead ? currentAspects : undefined })] })] }));
8
8
  });
9
9
  //# sourceMappingURL=DraftDialogContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DraftDialogContent.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/DraftDialogContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAWxD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAA0B,UAAU,EACvE,WAAW,EACX,WAAW,EACX,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,OAAO,GACR;IACC,OAAO,CACL,eAAK,SAAS,EAAC,gDAAgD,aAC7D,KAAC,OAAO,IACN,SAAS,EAAC,iCAAiC,EAC3C,KAAK,EAAC,qJAA6B,EACnC,WAAW,EAAC,IAAI,GAChB,EACF,eAAK,SAAS,EAAC,8BAA8B,aAC3C,KAAC,iBAAiB,IAChB,KAAK,EAAC,kLAAiC,EACvC,IAAI,EAAC,eAAe,EACpB,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,eAAe,UAAU,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAClF,OAAO,EAAE,eAAe,EACxB,IAAI,EAAC,oBAAoB,GACzB,EACF,KAAC,iBAAiB,IAChB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,sBAAsB,EACnF,IAAI,EAAC,aAAa,EAClB,WAAW,EAAE,WAAW,CAAC,WAAW,EACpC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,EACjD,IAAI,EAAC,2BAA2B,GAChC,IACE,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"DraftDialogContent.js","sourceRoot":"","sources":["../../../../src/retail/components/DraftDialog/DraftDialogContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAaxD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAA0B,UAAU,EACvE,WAAW,EACX,WAAW,EACX,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,cAAc,GACf;IACC,OAAO,CACL,eAAK,SAAS,EAAC,gDAAgD,aAC7D,KAAC,OAAO,IACN,SAAS,EAAC,iCAAiC,EAC3C,KAAK,EAAC,qJAA6B,EACnC,WAAW,EAAC,IAAI,GAChB,EACF,eAAK,SAAS,EAAC,8BAA8B,aAC3C,KAAC,iBAAiB,IAChB,KAAK,EAAC,kLAAiC,EACvC,IAAI,EAAC,eAAe,EACpB,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,eAAe,UAAU,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAClF,OAAO,EAAE,eAAe,EACxB,IAAI,EAAC,oBAAoB,EACzB,IAAI,EAAE,YAAY,GAClB,EACF,KAAC,iBAAiB,IAChB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,sBAAsB,EACnF,IAAI,EAAC,aAAa,EAClB,WAAW,EAAE,WAAW,CAAC,WAAW,EACpC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,EACjD,IAAI,EAAC,2BAA2B,EAChC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,GAC7C,IACE,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,7 +1,10 @@
1
+ import { type Aspects } from '../../hooks/useAspects/useAspects';
1
2
  import { type DialogOptions } from '../../ui-kit/DialogManager/DialogAction';
2
3
  import { type VerifyPhoneDialogProps } from '../../ui-kit/VerifyPhoneDialogLayout/VerfiyPhoneDialogLayout';
3
4
  import { type Nullable } from '../../utils/Nullable';
4
5
  import { type MarketingInfo } from '../api/updateUserTask';
6
+ import { type useConsentBkiDialog } from '../components/ConsentBkiDialog/useConsentBkiDialog';
7
+ import { type useDraftDialog } from '../components/DraftDialog/useDraftDialog';
5
8
  import { type LeadFormState } from './LeadFormState';
6
9
  import { type ReferalData } from './ReferalData';
7
10
  export interface UserData {
@@ -14,6 +17,7 @@ export interface UserData {
14
17
  }
15
18
  export declare type ProductType = 'credit' | 'creditCard' | 'debitCard';
16
19
  export interface CommonLeadProps {
20
+ aspects: Aspects;
17
21
  programId: string;
18
22
  userId?: string | number;
19
23
  productType: ProductType;
@@ -47,3 +51,12 @@ export interface UpdateUserDataNewMicroserviceProps extends BaseUpdateUserDataPr
47
51
  participantId: string | number;
48
52
  userId?: string | number;
49
53
  }
54
+ export interface OldMicroserviceProps {
55
+ common: Omit<CommonLeadProps, 'userId'> & {
56
+ profileId: number;
57
+ };
58
+ taskData: TaskDataProps;
59
+ goToNextStep: () => void;
60
+ consentBkiDialog: ReturnType<typeof useConsentBkiDialog>;
61
+ draftDialog: ReturnType<typeof useDraftDialog>;
62
+ }
@@ -0,0 +1,2 @@
1
+ import { type AspectsDef } from '../../model/AspectsProps';
2
+ export declare const getAspects: (aspectType: string, productType?: string) => AspectsDef[];
@@ -0,0 +1,61 @@
1
+ import { YANDEX_ID } from './yandexMetrika.js';
2
+ const ASPECTS_MAP = {
3
+ leadForm: {
4
+ debitCard: 'debit_lead_form',
5
+ creditCard: 'card_lead_form',
6
+ default: 'lead_form',
7
+ },
8
+ draft: {
9
+ debitCard: 'debit_draft_app',
10
+ creditCard: 'card_draft_app',
11
+ default: 'draft_app',
12
+ },
13
+ smsAuth: {
14
+ debitCard: 'debit_sms_auth',
15
+ creditCard: 'card_sms_auth',
16
+ default: 'sms_auth',
17
+ },
18
+ consentBki: {
19
+ creditCard: 'card_consent_bki',
20
+ default: 'consent_bki',
21
+ },
22
+ smsBki: {
23
+ creditCard: 'card_sms_bki',
24
+ default: 'sms_bki',
25
+ },
26
+ current: {
27
+ debitCard: 'debit_current_app',
28
+ creditCard: 'card_current_app',
29
+ default: 'current_app',
30
+ },
31
+ timer: {
32
+ creditCard: 'card_timer',
33
+ default: 'timer',
34
+ },
35
+ timerEnd: {
36
+ creditCard: 'card_timer_end',
37
+ default: 'timer_end',
38
+ },
39
+ preDecision: {
40
+ creditCard: 'card_pre_decision',
41
+ default: 'pre_decision',
42
+ },
43
+ revision: {
44
+ creditCard: 'card_revision',
45
+ default: 'revision',
46
+ },
47
+ refuse: {
48
+ creditCard: 'card_refuse',
49
+ default: 'refuse',
50
+ },
51
+ };
52
+ export const getAspects = (aspectType, productType) => {
53
+ const aspectForType = ASPECTS_MAP[aspectType];
54
+ return [
55
+ {
56
+ aspectName: 'ymReachGoal',
57
+ params: { yandexId: YANDEX_ID, targetName: aspectForType[productType || 'default'] },
58
+ },
59
+ ];
60
+ };
61
+ //# sourceMappingURL=commonAspects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commonAspects.js","sourceRoot":"","sources":["../../../src/retail/utils/commonAspects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,GAA2C;IAC1D,QAAQ,EAAE;QACR,SAAS,EAAE,iBAAiB;QAC5B,UAAU,EAAE,gBAAgB;QAC5B,OAAO,EAAE,WAAW;KACrB;IACD,KAAK,EAAE;QACL,SAAS,EAAE,iBAAiB;QAC5B,UAAU,EAAE,gBAAgB;QAC5B,OAAO,EAAE,WAAW;KACrB;IACD,OAAO,EAAE;QACP,SAAS,EAAE,gBAAgB;QAC3B,UAAU,EAAE,eAAe;QAC3B,OAAO,EAAE,UAAU;KACpB;IACD,UAAU,EAAE;QACV,UAAU,EAAE,kBAAkB;QAC9B,OAAO,EAAE,aAAa;KACvB;IACD,MAAM,EAAE;QACN,UAAU,EAAE,cAAc;QAC1B,OAAO,EAAE,SAAS;KACnB;IACD,OAAO,EAAE;QACP,SAAS,EAAE,mBAAmB;QAC9B,UAAU,EAAE,kBAAkB;QAC9B,OAAO,EAAE,aAAa;KACvB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,YAAY;QACxB,OAAO,EAAE,OAAO;KACjB;IACD,QAAQ,EAAE;QACR,UAAU,EAAE,gBAAgB;QAC5B,OAAO,EAAE,WAAW;KACrB;IACD,WAAW,EAAE;QACX,UAAU,EAAE,mBAAmB;QAC/B,OAAO,EAAE,cAAc;KACxB;IACD,QAAQ,EAAE;QACR,UAAU,EAAE,eAAe;QAC3B,OAAO,EAAE,UAAU;KACpB;IACD,MAAM,EAAE;QACN,UAAU,EAAE,aAAa;QACzB,OAAO,EAAE,QAAQ;KAClB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,UAAkB,EAAE,WAAoB,EAAgB,EAAE;IACnF,MAAM,aAAa,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;IAE9C,OAAO;QACL;YACE,UAAU,EAAE,aAAa;YACzB,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,CAAC,WAAW,IAAI,SAAS,CAAC,EAAE;SACrF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export interface StepAspectsConfig {
2
+ ymTargetName: string;
3
+ snowplowEventAction?: string;
4
+ snowplowEventCategory?: string;
5
+ snowplowEventValueText?: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=formAspectsConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formAspectsConfig.js","sourceRoot":"","sources":["../../../src/retail/utils/formAspectsConfig.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare const YANDEX_ID: string;
@@ -0,0 +1,3 @@
1
+ import { projectSettings } from '../../ProjectSettings.js';
2
+ export const YANDEX_ID = projectSettings.YANDEX_METRIKA_ID || '92511315';
3
+ //# sourceMappingURL=yandexMetrika.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yandexMetrika.js","sourceRoot":"","sources":["../../../src/retail/utils/yandexMetrika.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC,iBAAiB,IAAI,UAAU,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type AspectsDef } from '../model/AspectsProps';
2
+ import { type StepAspectsConfig } from '../retail/utils/formAspectsConfig';
3
+ interface YandexAspectsParams {
4
+ step: number;
5
+ programId?: string | null;
6
+ productType?: string;
7
+ paymentSystem?: string;
8
+ stepsConfig: StepAspectsConfig[];
9
+ }
10
+ export declare const getStepAspects: ({ step, programId, productType, paymentSystem, stepsConfig, }: YandexAspectsParams) => AspectsDef[];
11
+ export {};
@@ -0,0 +1,47 @@
1
+ import { getCreditInfo } from '../components/CreditForm/getCreditInfo.js';
2
+ import { YANDEX_ID } from '../retail/utils/yandexMetrika.js';
3
+ const getVisitParams = (programId, productType, paymentSystem) => {
4
+ const creditInfo = getCreditInfo(programId ?? null);
5
+ const productName = creditInfo?.name || '';
6
+ const productTypeValue = productType ?? '';
7
+ if (paymentSystem && productType !== 'credit') {
8
+ return {
9
+ [productTypeValue]: {
10
+ [productName]: paymentSystem,
11
+ },
12
+ };
13
+ }
14
+ else {
15
+ return {
16
+ [productTypeValue]: productName,
17
+ };
18
+ }
19
+ };
20
+ export const getStepAspects = ({ step, programId, productType, paymentSystem, stepsConfig, }) => {
21
+ const config = stepsConfig[step];
22
+ if (!config) {
23
+ return [];
24
+ }
25
+ const visitParams = getVisitParams(programId, productType, paymentSystem);
26
+ const aspects = [];
27
+ aspects.push({
28
+ aspectName: 'ymReachGoal',
29
+ params: {
30
+ yandexId: YANDEX_ID,
31
+ targetName: config.ymTargetName,
32
+ ...visitParams,
33
+ },
34
+ });
35
+ if (config.snowplowEventAction) {
36
+ aspects.push({
37
+ aspectName: 'snowplowEvent',
38
+ params: {
39
+ eventAction: config.snowplowEventAction,
40
+ eventCategory: config.snowplowEventCategory || 'naturalCredits',
41
+ eventValueText: config.snowplowEventValueText || '',
42
+ },
43
+ });
44
+ }
45
+ return aspects;
46
+ };
47
+ //# sourceMappingURL=getStepAspects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStepAspects.js","sourceRoot":"","sources":["../../src/utils/getStepAspects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAGvE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAU1D,MAAM,cAAc,GAAG,CACrB,SAAyB,EACzB,WAAoB,EACpB,aAAsB,EACG,EAAE;IAC3B,MAAM,UAAU,GAAG,aAAa,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC;IACpD,MAAM,WAAW,GAAG,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC;IAC3C,MAAM,gBAAgB,GAAG,WAAW,IAAI,EAAE,CAAC;IAE3C,IAAI,aAAa,IAAI,WAAW,KAAK,QAAQ,EAAE;QAC7C,OAAO;YACL,CAAC,gBAAgB,CAAC,EAAE;gBAClB,CAAC,WAAW,CAAC,EAAE,aAAa;aAC7B;SACF,CAAC;KACH;SAAM;QACL,OAAO;YACL,CAAC,gBAAgB,CAAC,EAAE,WAAW;SAChC,CAAC;KACH;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,IAAI,EACJ,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,GACS,EAAgB,EAAE;IACtC,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IACjC,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,EAAE,CAAC;KACX;IACD,MAAM,WAAW,GAAG,cAAc,CAAC,SAAS,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAiB,EAAE,CAAC;IAEjC,OAAO,CAAC,IAAI,CAAC;QACX,UAAU,EAAE,aAAa;QACzB,MAAM,EAAE;YACN,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,MAAM,CAAC,YAAY;YAC/B,GAAG,WAAW;SACf;KACF,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,mBAAmB,EAAE;QAC9B,OAAO,CAAC,IAAI,CAAC;YACX,UAAU,EAAE,eAAe;YAC3B,MAAM,EAAE;gBACN,WAAW,EAAE,MAAM,CAAC,mBAAmB;gBACvC,aAAa,EAAE,MAAM,CAAC,qBAAqB,IAAI,gBAAgB;gBAC/D,cAAc,EAAE,MAAM,CAAC,sBAAsB,IAAI,EAAE;aACpD;SACF,CAAC,CAAC;KACJ;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
@@ -137,7 +137,7 @@ export const ApplicationLeadForm = JSX<ApplicationLeadFormProps>(
137
137
  {renderInputs({ field, inputs: _?.inputs }, productType)}
138
138
  </div>
139
139
  ))}
140
- {renderSubmitButton(button, isSending)}
140
+ {renderSubmitButton(button, { isSending, productType })}
141
141
  {esiaStatus === EsiaStatuses.Error ? (
142
142
  <Text size="text-m" font="font-medium" color="text-error">
143
143
  Использовать Госуслуги для оформления заявки невозможно, необходимо заполнить поля
@@ -1,8 +1,23 @@
1
+ import { getAspects } from '../../retail/utils/commonAspects';
1
2
  import { SubmitButton } from '../../ui-kit/Button/SubmitButton';
2
3
  import { type SubmitButtonProps } from './ApplicationLeadFormContent';
3
4
 
4
- export const renderSubmitButton = (button?: SubmitButtonProps, isSending = false) => (
5
- <SubmitButton className="w-full @xl:w-auto" isLoading={isSending} testId="LeadSubmitButton">
6
- {button?.text ? button.text : 'Отправить заявку'}
7
- </SubmitButton>
8
- );
5
+ export const renderSubmitButton = (
6
+ button?: SubmitButtonProps,
7
+ options?: { isSending?: boolean; productType?: string },
8
+ ) => {
9
+ const isSending = options?.isSending;
10
+ const productType = options?.productType;
11
+ const defaultAspects = getAspects('leadForm', productType);
12
+
13
+ return (
14
+ <SubmitButton
15
+ className="w-full @xl:w-auto"
16
+ isLoading={isSending ?? false}
17
+ testId="LeadSubmitButton"
18
+ data={defaultAspects}
19
+ >
20
+ {button?.text ? button.text : 'Отправить заявку'}
21
+ </SubmitButton>
22
+ );
23
+ };
@@ -3,6 +3,8 @@ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useBool } from '@redneckz/uni-jsx/lib/hooks/useBool';
4
4
  import { useSessionStore } from '@redneckz/uni-jsx/lib/Store/useSessionStore';
5
5
  import { locationNavigator } from '../../external/locationNavigator';
6
+ import { handleAspects } from '../../hooks/useAspects/handleAspects';
7
+ import { useAspects } from '../../hooks/useAspects/useAspects';
6
8
  import { type AspectsProps } from '../../model/AspectsProps';
7
9
  import { createDraftTask } from '../../retail/api/createDraftTask';
8
10
  import { createParticipant } from '../../retail/api/createParticipant';
@@ -19,15 +21,18 @@ import { useDraftDialog } from '../../retail/components/DraftDialog/useDraftDial
19
21
  import { VerifyPhoneDialog } from '../../retail/components/VerifyPhoneDialog/VerifyPhoneDialog';
20
22
  import {
21
23
  type CommonLeadProps,
24
+ type OldMicroserviceProps,
22
25
  type ProductType,
23
26
  type TaskDataProps,
24
27
  type UpdateUserDataNewMicroserviceProps,
25
28
  type UpdateUserDataProps,
26
29
  } from '../../retail/model/ApplicationLeadFormTypes';
27
30
  import { type FormRetailConsents, type LeadFormState } from '../../retail/model/LeadFormState';
31
+ import { getAspects } from '../../retail/utils/commonAspects';
28
32
  import { getUpdateUserProfileData } from '../../retail/utils/getUpdateUserProfile';
29
33
  import { productTypeToTaskType } from '../../retail/utils/productTypeToTaskType';
30
34
  import { useDialog } from '../../ui-kit/DialogManager/useDialog';
35
+ import { type PreventableEventWithTarget } from '../../ui-kit/PreventableEvent';
31
36
  import { formatPhone } from '../../utils/formatPhone';
32
37
  import { productTypeToConsentsMap } from './consents';
33
38
  import { getCreditLeadFormTaskData, getDebitLeadFormTaskData } from './getLeadFormTaskData';
@@ -59,13 +64,14 @@ export const useApplicationLeadApi = ({
59
64
  const leadFormStore = useLeadFormStore();
60
65
 
61
66
  const sendAspects = useSendLeadFormAspects({ data });
67
+ const aspects = useAspects();
62
68
  const navigator = locationNavigator();
63
69
 
64
70
  const goToNextStep = useCallback(() => {
65
71
  navigator.assign(nextStepLink);
66
72
  }, []);
67
73
 
68
- const consentBkiDialog = useConsentBkiDialog(goToNextStep);
74
+ const consentBkiDialog = useConsentBkiDialog(goToNextStep, productType);
69
75
  const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
70
76
  const draftDialog = useDraftDialog();
71
77
 
@@ -89,50 +95,33 @@ export const useApplicationLeadApi = ({
89
95
  throw new Error();
90
96
  }
91
97
 
92
- const sendCurrentTask = async () => {
93
- await updateUserData({
98
+ const oldMicroserviceProps: OldMicroserviceProps = {
99
+ common: {
100
+ aspects,
94
101
  programId,
102
+ productType,
103
+ sendAspects,
104
+ verifyPhoneDialog,
105
+ handleFailSendForm,
95
106
  profileId,
107
+ },
108
+ taskData: {
96
109
  formData: transformedFormData,
97
- productType,
98
110
  referalData,
99
111
  marketingInfo,
100
112
  saveUserData,
101
- sendAspects,
102
- });
103
- verifyPhoneDialog.close();
104
- if (productType === 'debitCard') {
105
- goToNextStep();
106
- } else {
107
- consentBkiDialog.open({
108
- phone: transformedFormData.phone,
109
- profileId,
110
- onFail: handleFailSendForm,
111
- });
112
- }
113
- };
114
- const handleSuccessVerify = async () => {
115
- try {
116
- const lastTaskId = await getLastTaskStatus({ profileId, programId });
117
-
118
- if (lastTaskId) {
119
- const task = await getTaskById({ taskId: lastTaskId });
120
- verifyPhoneDialog.close();
121
- draftDialog.open({
122
- task,
123
- isFromLead: true,
124
- taskType: productTypeToTaskType(productType),
125
- sendAspects,
126
- onClose: sendCurrentTask,
127
- });
128
- } else {
129
- await sendCurrentTask();
130
- }
131
- } catch {
132
- handleFailSendForm();
133
- }
113
+ },
114
+ goToNextStep,
115
+ consentBkiDialog,
116
+ draftDialog,
134
117
  };
135
118
 
119
+ const sendCurrentTask = createSendCurrentTaskOld(oldMicroserviceProps);
120
+ const handleSuccessVerify = createHandleSuccessVerifyOld(
121
+ oldMicroserviceProps,
122
+ sendCurrentTask,
123
+ );
124
+
136
125
  const acceptedConsents = getAcceptedConsents(transformedFormData, productType);
137
126
 
138
127
  verifyPhoneDialog.open({
@@ -161,6 +150,7 @@ export const useApplicationLeadApi = ({
161
150
  sendAspects,
162
151
  verifyPhoneDialog,
163
152
  handleFailSendForm,
153
+ aspects,
164
154
  };
165
155
 
166
156
  const taskData: TaskDataProps = {
@@ -251,9 +241,16 @@ const createHandleSuccessVerifyNew =
251
241
  consentBkiDialog: ReturnType<typeof useConsentBkiDialog>;
252
242
  }) =>
253
243
  async () => {
254
- const { programId, productType, sendAspects, verifyPhoneDialog, handleFailSendForm } = common;
244
+ const { verifyPhoneDialog, sendAspects, handleFailSendForm, programId, productType, aspects } =
245
+ common;
255
246
  const { formData } = taskData;
256
247
 
248
+ handleAspects({
249
+ aspectsAttributes: getAspects('leadForm', productType),
250
+ aspects,
251
+ ev: {} as PreventableEventWithTarget,
252
+ });
253
+
257
254
  try {
258
255
  const participantData = await createParticipant({
259
256
  phone: formatPhone(formData.phone as string),
@@ -307,6 +304,69 @@ const createHandleSuccessVerifyNew =
307
304
  }
308
305
  };
309
306
 
307
+ const createSendCurrentTaskOld = (props: OldMicroserviceProps) => async () => {
308
+ const { common, taskData, goToNextStep, consentBkiDialog } = props;
309
+ const { programId, profileId, productType, verifyPhoneDialog, handleFailSendForm } = common;
310
+ const { formData } = taskData;
311
+
312
+ await updateUserData({
313
+ programId,
314
+ profileId,
315
+ formData,
316
+ productType,
317
+ referalData: taskData.referalData,
318
+ marketingInfo: taskData.marketingInfo,
319
+ saveUserData: taskData.saveUserData,
320
+ sendAspects: common.sendAspects,
321
+ });
322
+
323
+ verifyPhoneDialog.close();
324
+
325
+ if (productType === 'debitCard') {
326
+ goToNextStep();
327
+ } else {
328
+ consentBkiDialog.open({
329
+ phone: formData.phone,
330
+ profileId,
331
+ onFail: handleFailSendForm,
332
+ });
333
+ }
334
+ };
335
+
336
+ const createHandleSuccessVerifyOld =
337
+ (props: OldMicroserviceProps, sendCurrentTask: () => Promise<void>) => async () => {
338
+ const { common, draftDialog } = props;
339
+ const { aspects, programId, sendAspects, verifyPhoneDialog, handleFailSendForm, profileId } =
340
+ common;
341
+ const productType = common.productType as ProductType;
342
+
343
+ handleAspects({
344
+ aspectsAttributes: getAspects('leadForm', productType),
345
+ aspects,
346
+ ev: {} as PreventableEventWithTarget,
347
+ });
348
+
349
+ try {
350
+ const lastTaskId = await getLastTaskStatus({ profileId, programId });
351
+
352
+ if (lastTaskId) {
353
+ const task = await getTaskById({ taskId: lastTaskId });
354
+ verifyPhoneDialog.close();
355
+ draftDialog.open({
356
+ task,
357
+ isFromLead: true,
358
+ taskType: productTypeToTaskType(productType),
359
+ sendAspects,
360
+ onClose: sendCurrentTask,
361
+ });
362
+ } else {
363
+ await sendCurrentTask();
364
+ }
365
+ } catch {
366
+ handleFailSendForm();
367
+ }
368
+ };
369
+
310
370
  const getAcceptedConsents = (formData: LeadFormState, productType: ProductType): string[] => {
311
371
  const consents = productTypeToConsentsMap[productType];
312
372
 
@@ -2,6 +2,7 @@ import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback, useMemo } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useForm } from '../../hooks/useForm/useForm';
4
4
  import { useIFrameMode } from '../../retail/hooks/useIFrameMode';
5
+ import { useRetailFormStore } from '../../retail/hooks/useRetailFormStore';
5
6
  import { type SectionsRetailProps } from '../../retail/model/InputSectionsType';
6
7
  import { type LeadFormState } from '../../retail/model/LeadFormState';
7
8
  import { renderStep } from '../../retail/utils/renderStep';
@@ -21,6 +22,7 @@ const PRODUCT_TYPE = 'creditCard';
21
22
 
22
23
  export const CreditCardFormStep = JSX<CreditCardFormStepProps>(
23
24
  ({ step, sections, onPrevStep, onNextStep, onFinish }) => {
25
+ const { programId } = useRetailFormStore();
24
26
  useIFrameMode();
25
27
  const inputs = useMemo(
26
28
  () => sections?.flatMap((_: SectionsRetailProps) => _?.inputs || []),
@@ -43,15 +45,24 @@ export const CreditCardFormStep = JSX<CreditCardFormStepProps>(
43
45
  onFinish,
44
46
  });
45
47
 
46
- const [, { field, onSubmit: handleSubmit }] = useForm(initialState, {
48
+ const [formState, { field, onSubmit: handleSubmit }] = useForm(initialState, {
47
49
  formValidator,
48
50
  onSubmit,
49
51
  });
50
52
 
53
+ const PAYMENT_SYSTEM = formState.paymentSystem?.text;
54
+
51
55
  return (
52
56
  <form onSubmit={handleSubmit} className="space-y-m">
53
57
  {renderStep({ sections, field })}
54
- <StepsNavigationButtons isSending={isSending} step={step} onPrevStep={onPrevStep} />
58
+ <StepsNavigationButtons
59
+ isSending={isSending}
60
+ step={step}
61
+ onPrevStep={onPrevStep}
62
+ programId={programId}
63
+ productType={PRODUCT_TYPE}
64
+ paymentSystem={PAYMENT_SYSTEM}
65
+ />
55
66
  </form>
56
67
  );
57
68
  },
@@ -1,10 +1,27 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { handleAspects } from '../../hooks/useAspects/handleAspects';
4
+ import { useAspects } from '../../hooks/useAspects/useAspects';
2
5
  import { FormStatus } from '../../retail/components/FormStatus/FormStatus';
6
+ import { getAspects } from '../../retail/utils/commonAspects';
7
+ import { type PreventableEventWithTarget } from '../../ui-kit/PreventableEvent';
3
8
 
4
- export const FailedStatusContent = JSX(() => (
5
- <FormStatus
6
- title="Благодарим Вас за ожидание"
7
- description="В настоящий момент Банк не может одобрить Вашу заявку на кредитную карту. Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк»."
8
- buttonText="Вернуться на главную"
9
- />
10
- ));
9
+ export const FailedStatusContent = JSX(() => {
10
+ const aspects = useAspects();
11
+
12
+ useEffect(() => {
13
+ handleAspects({
14
+ aspectsAttributes: getAspects('refuse', 'creditCard'),
15
+ aspects,
16
+ ev: {} as PreventableEventWithTarget,
17
+ });
18
+ }, []);
19
+
20
+ return (
21
+ <FormStatus
22
+ title="Благодарим Вас за ожидание"
23
+ description="В настоящий момент Банк не может одобрить Вашу заявку на кредит. Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк»."
24
+ buttonText="Вернуться на главную"
25
+ />
26
+ );
27
+ });
@@ -1,9 +1,32 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { handleAspects } from '../../hooks/useAspects/handleAspects';
4
+ import { useAspects } from '../../hooks/useAspects/useAspects';
2
5
  import { FormStatus } from '../../retail/components/FormStatus/FormStatus';
3
6
  import { useRetailFormStore } from '../../retail/hooks/useRetailFormStore';
7
+ import { getAspects } from '../../retail/utils/commonAspects';
8
+ import { type PreventableEventWithTarget } from '../../ui-kit/PreventableEvent';
4
9
 
5
10
  export const PendingStatusContent = JSX(({ onExpire }: { onExpire: () => void }) => {
6
11
  const { statusInfo } = useRetailFormStore();
12
+ const aspects = useAspects();
13
+
14
+ useEffect(() => {
15
+ handleAspects({
16
+ aspectsAttributes: getAspects('timer', 'creditCard'),
17
+ aspects,
18
+ ev: {} as PreventableEventWithTarget,
19
+ });
20
+ }, []);
21
+
22
+ const handleExpireWithEvent = () => {
23
+ handleAspects({
24
+ aspectsAttributes: getAspects('timerEnd', 'creditCard'),
25
+ aspects,
26
+ ev: {} as PreventableEventWithTarget,
27
+ });
28
+ onExpire();
29
+ };
7
30
 
8
31
  return (
9
32
  <FormStatus
@@ -21,7 +44,7 @@ export const PendingStatusContent = JSX(({ onExpire }: { onExpire: () => void })
21
44
  description: statusInfo?.cardCategory,
22
45
  },
23
46
  ]}
24
- onExpire={onExpire}
47
+ onExpire={handleExpireWithEvent}
25
48
  />
26
49
  );
27
50
  });
@@ -1,9 +1,23 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { handleAspects } from '../../hooks/useAspects/handleAspects';
4
+ import { useAspects } from '../../hooks/useAspects/useAspects';
2
5
  import { FormStatus } from '../../retail/components/FormStatus/FormStatus';
3
6
  import { useRetailFormStore } from '../../retail/hooks/useRetailFormStore';
7
+ import { getAspects } from '../../retail/utils/commonAspects';
8
+ import { type PreventableEventWithTarget } from '../../ui-kit/PreventableEvent';
4
9
 
5
10
  export const ReworkStatusContent = JSX(() => {
6
11
  const { statusInfo } = useRetailFormStore();
12
+ const aspects = useAspects();
13
+
14
+ useEffect(() => {
15
+ handleAspects({
16
+ aspectsAttributes: getAspects('revision', 'creditCard'),
17
+ aspects,
18
+ ev: {} as PreventableEventWithTarget,
19
+ });
20
+ }, []);
7
21
 
8
22
  const isCourierDelivery = statusInfo?.methodObtain === 'courier';
9
23