@redneckz/wildless-cms-uni-blocks 0.14.698 → 0.14.700

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 (834) hide show
  1. package/bundle/api/RetailAPI/getPaymentSystems.d.ts +2 -4
  2. package/bundle/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
  3. package/bundle/api/RetailAPI/model/LeadFormData.d.ts +7 -0
  4. package/bundle/api/RetailAPI/updateUserTask.d.ts +5 -1
  5. package/bundle/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
  6. package/bundle/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
  7. package/bundle/api/dadataHints/dadataHintsType.d.ts +3 -0
  8. package/bundle/bundle.umd.js +399 -275
  9. package/bundle/bundle.umd.min.js +1 -1
  10. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
  11. package/bundle/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
  12. package/bundle/components/ApplicationLeadForm/consents.d.ts +3 -3
  13. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
  14. package/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
  15. package/bundle/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
  16. package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
  17. package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
  18. package/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
  19. package/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
  20. package/bundle/components/CreditCardForm/calculateInputs.d.ts +2 -2
  21. package/bundle/components/CreditCardForm/formStateMap.d.ts +2 -2
  22. package/bundle/components/CreditCardForm/getCardData.d.ts +2 -2
  23. package/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
  24. package/bundle/components/CreditCardForm/getFifthStepData.d.ts +2 -2
  25. package/bundle/components/CreditCardForm/getFourthStepData.d.ts +2 -2
  26. package/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -2
  27. package/bundle/components/CreditCardForm/getSecondStepData.d.ts +2 -2
  28. package/bundle/components/CreditCardForm/getSixthStepData.d.ts +4 -4
  29. package/bundle/components/CreditCardForm/getThirdStepData.d.ts +2 -2
  30. package/bundle/components/CreditCardForm/renderInputs.d.ts +2 -2
  31. package/bundle/components/CreditCardForm/renderStep.d.ts +3 -3
  32. package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
  33. package/bundle/components/CreditForm/calculateInputs.d.ts +2 -2
  34. package/bundle/components/CreditForm/formStateMap.d.ts +2 -2
  35. package/bundle/components/CreditForm/getCalcData.d.ts +2 -2
  36. package/bundle/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
  37. package/bundle/components/CreditForm/getFifthStepData.d.ts +2 -2
  38. package/bundle/components/CreditForm/getFirstStepData.d.ts +2 -2
  39. package/bundle/components/CreditForm/getFourthStepData.d.ts +2 -2
  40. package/bundle/components/CreditForm/getInitialFormState.d.ts +2 -2
  41. package/bundle/components/CreditForm/getSecondStepData.d.ts +2 -2
  42. package/bundle/components/CreditForm/getThirdStepData.d.ts +2 -2
  43. package/bundle/components/CreditForm/getZeroStepData.d.ts +2 -2
  44. package/bundle/components/CreditForm/renderInputs.d.ts +2 -2
  45. package/bundle/components/CreditForm/renderStep.d.ts +3 -3
  46. package/bundle/components/CreditForm/useCreditFormAPI.d.ts +2 -2
  47. package/bundle/components/CreditForm/utils.d.ts +1 -1
  48. package/bundle/hooks/useCreditFormStore.d.ts +13 -0
  49. package/bundle/hooks/useLeadFormData.d.ts +1 -1
  50. package/bundle/hooks/useSetter.d.ts +2 -0
  51. package/bundle/ui-kit/DialogManager/useDialog.d.ts +4 -1
  52. package/bundle/ui-kit/FormField/SelectField.d.ts +1 -7
  53. package/bundle/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
  54. package/bundle/ui-kit/FormField/validators.d.ts +1 -1
  55. package/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
  56. package/dist/api/RetailAPI/getPaymentSystems.d.ts +2 -4
  57. package/dist/api/RetailAPI/getPaymentSystems.js +1 -4
  58. package/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
  59. package/dist/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
  60. package/dist/api/RetailAPI/model/EOrganizationActivityTypes.js +2 -0
  61. package/dist/api/RetailAPI/model/EOrganizationActivityTypes.js.map +1 -0
  62. package/dist/api/RetailAPI/model/LeadFormData.d.ts +7 -0
  63. package/dist/api/RetailAPI/model/LeadFormData.js +2 -0
  64. package/dist/api/RetailAPI/model/LeadFormData.js.map +1 -0
  65. package/dist/api/RetailAPI/updateUserTask.d.ts +5 -1
  66. package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  67. package/dist/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
  68. package/dist/api/RetailAPI/utils/getOrganizationParams.js +101 -0
  69. package/dist/api/RetailAPI/utils/getOrganizationParams.js.map +1 -0
  70. package/dist/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
  71. package/dist/api/RetailAPI/utils/getUpdateUserProfile.js +1 -0
  72. package/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
  73. package/dist/api/dadataHints/dadataHintsType.d.ts +3 -0
  74. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -7
  75. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  76. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
  77. package/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  78. package/dist/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
  79. package/dist/components/ApplicationLeadForm/LeadFormState.js +2 -0
  80. package/dist/components/ApplicationLeadForm/LeadFormState.js.map +1 -0
  81. package/dist/components/ApplicationLeadForm/consents.d.ts +3 -3
  82. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
  83. package/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -6
  84. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  85. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
  86. package/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  87. package/dist/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
  88. package/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
  89. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
  90. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +11 -19
  91. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  92. package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
  93. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +9 -7
  94. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  95. package/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
  96. package/dist/components/ApplicationLeadForm/useLeadFormStore.js +6 -0
  97. package/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
  98. package/dist/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
  99. package/dist/components/CreditCardForm/calculateInputs.d.ts +2 -2
  100. package/dist/components/CreditCardForm/formStateMap.d.ts +2 -2
  101. package/dist/components/CreditCardForm/formStateMap.js +1 -1
  102. package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
  103. package/dist/components/CreditCardForm/getCardData.d.ts +2 -2
  104. package/dist/components/CreditCardForm/getCardData.js.map +1 -1
  105. package/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
  106. package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  107. package/dist/components/CreditCardForm/getFifthStepData.d.ts +2 -2
  108. package/dist/components/CreditCardForm/getFifthStepData.js.map +1 -1
  109. package/dist/components/CreditCardForm/getFourthStepData.d.ts +2 -2
  110. package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
  111. package/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -2
  112. package/dist/components/CreditCardForm/getInitialFormState.js.map +1 -1
  113. package/dist/components/CreditCardForm/getSecondStepData.d.ts +2 -2
  114. package/dist/components/CreditCardForm/getSecondStepData.js.map +1 -1
  115. package/dist/components/CreditCardForm/getSixthStepData.d.ts +4 -4
  116. package/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
  117. package/dist/components/CreditCardForm/getThirdStepData.d.ts +2 -2
  118. package/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
  119. package/dist/components/CreditCardForm/renderInputs.d.ts +2 -2
  120. package/dist/components/CreditCardForm/renderStep.d.ts +3 -3
  121. package/dist/components/CreditCardForm/renderStep.js.map +1 -1
  122. package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
  123. package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  124. package/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
  125. package/dist/components/CreditForm/calculateInputs.d.ts +2 -2
  126. package/dist/components/CreditForm/formStateMap.d.ts +2 -2
  127. package/dist/components/CreditForm/formStateMap.js.map +1 -1
  128. package/dist/components/CreditForm/getCalcData.d.ts +2 -2
  129. package/dist/components/CreditForm/getCalcData.js.map +1 -1
  130. package/dist/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
  131. package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  132. package/dist/components/CreditForm/getFifthStepData.d.ts +2 -2
  133. package/dist/components/CreditForm/getFifthStepData.js.map +1 -1
  134. package/dist/components/CreditForm/getFirstStepData.d.ts +2 -2
  135. package/dist/components/CreditForm/getFirstStepData.js.map +1 -1
  136. package/dist/components/CreditForm/getFourthStepData.d.ts +2 -2
  137. package/dist/components/CreditForm/getFourthStepData.js.map +1 -1
  138. package/dist/components/CreditForm/getInitialFormState.d.ts +2 -2
  139. package/dist/components/CreditForm/getInitialFormState.js.map +1 -1
  140. package/dist/components/CreditForm/getSecondStepData.d.ts +2 -2
  141. package/dist/components/CreditForm/getSecondStepData.js.map +1 -1
  142. package/dist/components/CreditForm/getThirdStepData.d.ts +2 -2
  143. package/dist/components/CreditForm/getThirdStepData.js.map +1 -1
  144. package/dist/components/CreditForm/getZeroStepData.d.ts +2 -2
  145. package/dist/components/CreditForm/getZeroStepData.js.map +1 -1
  146. package/dist/components/CreditForm/renderInputs.d.ts +2 -2
  147. package/dist/components/CreditForm/renderStep.d.ts +3 -3
  148. package/dist/components/CreditForm/renderStep.js.map +1 -1
  149. package/dist/components/CreditForm/useCreditFormAPI.d.ts +2 -2
  150. package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  151. package/dist/components/CreditForm/utils.d.ts +1 -1
  152. package/dist/components/GrantSupport/GrantSupport.js +1 -1
  153. package/dist/components/GrantSupport/GrantSupport.js.map +1 -1
  154. package/dist/hooks/useCreditFormStore.d.ts +13 -0
  155. package/dist/hooks/useCreditFormStore.js +8 -0
  156. package/dist/hooks/useCreditFormStore.js.map +1 -0
  157. package/dist/hooks/useLeadFormData.d.ts +1 -1
  158. package/dist/hooks/useSetter.d.ts +2 -0
  159. package/dist/hooks/useSetter.js +14 -0
  160. package/dist/hooks/useSetter.js.map +1 -0
  161. package/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
  162. package/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
  163. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -10
  164. package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  165. package/dist/ui-kit/DialogManager/useDialog.d.ts +4 -1
  166. package/dist/ui-kit/DialogManager/useDialog.js.map +1 -1
  167. package/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  168. package/dist/ui-kit/FormField/Fields/AmountWorkersField.js +10 -2
  169. package/dist/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -1
  170. package/dist/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
  171. package/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
  172. package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js +10 -2
  173. package/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -1
  174. package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js +10 -2
  175. package/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -1
  176. package/dist/ui-kit/FormField/Fields/InnField.js +4 -3
  177. package/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
  178. package/dist/ui-kit/FormField/Fields/OrganizationField.js +10 -2
  179. package/dist/ui-kit/FormField/Fields/OrganizationField.js.map +1 -1
  180. package/dist/ui-kit/FormField/Fields/OrganizationNameField.js +4 -1
  181. package/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
  182. package/dist/ui-kit/FormField/Fields/PaymentSystemField.js +3 -1
  183. package/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  184. package/dist/ui-kit/FormField/SelectField.d.ts +1 -7
  185. package/dist/ui-kit/FormField/SelectField.js.map +1 -1
  186. package/dist/ui-kit/FormField/getObjectValidator.js +10 -10
  187. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  188. package/dist/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
  189. package/dist/ui-kit/FormField/updateOrganizationFields.js +17 -0
  190. package/dist/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
  191. package/dist/ui-kit/FormField/validators.d.ts +1 -1
  192. package/dist/ui-kit/RichText/RichText.js +3 -6
  193. package/dist/ui-kit/RichText/RichText.js.map +1 -1
  194. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
  195. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -3
  196. package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  197. package/lib/api/RetailAPI/getPaymentSystems.d.ts +2 -4
  198. package/lib/api/RetailAPI/getPaymentSystems.js +1 -4
  199. package/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
  200. package/lib/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
  201. package/lib/api/RetailAPI/model/EOrganizationActivityTypes.js +2 -0
  202. package/lib/api/RetailAPI/model/EOrganizationActivityTypes.js.map +1 -0
  203. package/lib/api/RetailAPI/model/LeadFormData.d.ts +7 -0
  204. package/lib/api/RetailAPI/model/LeadFormData.js +2 -0
  205. package/lib/api/RetailAPI/model/LeadFormData.js.map +1 -0
  206. package/lib/api/RetailAPI/updateUserTask.d.ts +5 -1
  207. package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  208. package/lib/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
  209. package/lib/api/RetailAPI/utils/getOrganizationParams.js +95 -0
  210. package/lib/api/RetailAPI/utils/getOrganizationParams.js.map +1 -0
  211. package/lib/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
  212. package/lib/api/RetailAPI/utils/getUpdateUserProfile.js +1 -0
  213. package/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
  214. package/lib/api/dadataHints/dadataHintsType.d.ts +3 -0
  215. package/lib/common.css +1 -1
  216. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -8
  217. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  218. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
  219. package/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  220. package/lib/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
  221. package/lib/components/ApplicationLeadForm/LeadFormState.js +2 -0
  222. package/lib/components/ApplicationLeadForm/LeadFormState.js.map +1 -0
  223. package/lib/components/ApplicationLeadForm/consents.d.ts +3 -3
  224. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
  225. package/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -6
  226. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  227. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
  228. package/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  229. package/lib/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
  230. package/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
  231. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
  232. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +11 -19
  233. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  234. package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
  235. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +10 -8
  236. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  237. package/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
  238. package/lib/components/ApplicationLeadForm/useLeadFormStore.js +3 -0
  239. package/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
  240. package/lib/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
  241. package/lib/components/CreditCardForm/calculateInputs.d.ts +2 -2
  242. package/lib/components/CreditCardForm/formStateMap.d.ts +2 -2
  243. package/lib/components/CreditCardForm/formStateMap.js +1 -1
  244. package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
  245. package/lib/components/CreditCardForm/getCardData.d.ts +2 -2
  246. package/lib/components/CreditCardForm/getCardData.js.map +1 -1
  247. package/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
  248. package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  249. package/lib/components/CreditCardForm/getFifthStepData.d.ts +2 -2
  250. package/lib/components/CreditCardForm/getFifthStepData.js.map +1 -1
  251. package/lib/components/CreditCardForm/getFourthStepData.d.ts +2 -2
  252. package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
  253. package/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -2
  254. package/lib/components/CreditCardForm/getInitialFormState.js.map +1 -1
  255. package/lib/components/CreditCardForm/getSecondStepData.d.ts +2 -2
  256. package/lib/components/CreditCardForm/getSecondStepData.js.map +1 -1
  257. package/lib/components/CreditCardForm/getSixthStepData.d.ts +4 -4
  258. package/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
  259. package/lib/components/CreditCardForm/getThirdStepData.d.ts +2 -2
  260. package/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
  261. package/lib/components/CreditCardForm/renderInputs.d.ts +2 -2
  262. package/lib/components/CreditCardForm/renderStep.d.ts +3 -3
  263. package/lib/components/CreditCardForm/renderStep.js.map +1 -1
  264. package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
  265. package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  266. package/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
  267. package/lib/components/CreditForm/calculateInputs.d.ts +2 -2
  268. package/lib/components/CreditForm/formStateMap.d.ts +2 -2
  269. package/lib/components/CreditForm/formStateMap.js.map +1 -1
  270. package/lib/components/CreditForm/getCalcData.d.ts +2 -2
  271. package/lib/components/CreditForm/getCalcData.js.map +1 -1
  272. package/lib/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
  273. package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  274. package/lib/components/CreditForm/getFifthStepData.d.ts +2 -2
  275. package/lib/components/CreditForm/getFifthStepData.js.map +1 -1
  276. package/lib/components/CreditForm/getFirstStepData.d.ts +2 -2
  277. package/lib/components/CreditForm/getFirstStepData.js.map +1 -1
  278. package/lib/components/CreditForm/getFourthStepData.d.ts +2 -2
  279. package/lib/components/CreditForm/getFourthStepData.js.map +1 -1
  280. package/lib/components/CreditForm/getInitialFormState.d.ts +2 -2
  281. package/lib/components/CreditForm/getInitialFormState.js.map +1 -1
  282. package/lib/components/CreditForm/getSecondStepData.d.ts +2 -2
  283. package/lib/components/CreditForm/getSecondStepData.js.map +1 -1
  284. package/lib/components/CreditForm/getThirdStepData.d.ts +2 -2
  285. package/lib/components/CreditForm/getThirdStepData.js.map +1 -1
  286. package/lib/components/CreditForm/getZeroStepData.d.ts +2 -2
  287. package/lib/components/CreditForm/getZeroStepData.js.map +1 -1
  288. package/lib/components/CreditForm/renderInputs.d.ts +2 -2
  289. package/lib/components/CreditForm/renderStep.d.ts +3 -3
  290. package/lib/components/CreditForm/renderStep.js.map +1 -1
  291. package/lib/components/CreditForm/useCreditFormAPI.d.ts +2 -2
  292. package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  293. package/lib/components/CreditForm/utils.d.ts +1 -1
  294. package/lib/components/GrantSupport/GrantSupport.js +1 -1
  295. package/lib/components/GrantSupport/GrantSupport.js.map +1 -1
  296. package/lib/hooks/useCreditFormStore.d.ts +13 -0
  297. package/lib/hooks/useCreditFormStore.js +5 -0
  298. package/lib/hooks/useCreditFormStore.js.map +1 -0
  299. package/lib/hooks/useLeadFormData.d.ts +1 -1
  300. package/lib/hooks/useSetter.d.ts +2 -0
  301. package/lib/hooks/useSetter.js +11 -0
  302. package/lib/hooks/useSetter.js.map +1 -0
  303. package/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
  304. package/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
  305. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -10
  306. package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  307. package/lib/ui-kit/DialogManager/useDialog.d.ts +4 -1
  308. package/lib/ui-kit/DialogManager/useDialog.js.map +1 -1
  309. package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  310. package/lib/ui-kit/FormField/Fields/AmountWorkersField.js +10 -2
  311. package/lib/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -1
  312. package/lib/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
  313. package/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
  314. package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js +10 -2
  315. package/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -1
  316. package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js +10 -2
  317. package/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -1
  318. package/lib/ui-kit/FormField/Fields/InnField.js +4 -3
  319. package/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
  320. package/lib/ui-kit/FormField/Fields/OrganizationField.js +10 -2
  321. package/lib/ui-kit/FormField/Fields/OrganizationField.js.map +1 -1
  322. package/lib/ui-kit/FormField/Fields/OrganizationNameField.js +4 -1
  323. package/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
  324. package/lib/ui-kit/FormField/Fields/PaymentSystemField.js +4 -2
  325. package/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  326. package/lib/ui-kit/FormField/SelectField.d.ts +1 -7
  327. package/lib/ui-kit/FormField/SelectField.js.map +1 -1
  328. package/lib/ui-kit/FormField/getObjectValidator.js +10 -10
  329. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  330. package/lib/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
  331. package/lib/ui-kit/FormField/updateOrganizationFields.js +14 -0
  332. package/lib/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
  333. package/lib/ui-kit/FormField/validators.d.ts +1 -1
  334. package/lib/ui-kit/RichText/RichText.js +3 -6
  335. package/lib/ui-kit/RichText/RichText.js.map +1 -1
  336. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
  337. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -3
  338. package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  339. package/mobile/bundle/api/RetailAPI/getPaymentSystems.d.ts +2 -4
  340. package/mobile/bundle/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
  341. package/mobile/bundle/api/RetailAPI/model/LeadFormData.d.ts +7 -0
  342. package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +5 -1
  343. package/mobile/bundle/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
  344. package/mobile/bundle/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
  345. package/mobile/bundle/api/dadataHints/dadataHintsType.d.ts +3 -0
  346. package/mobile/bundle/bundle.umd.js +399 -275
  347. package/mobile/bundle/bundle.umd.min.js +1 -1
  348. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
  349. package/mobile/bundle/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
  350. package/mobile/bundle/components/ApplicationLeadForm/consents.d.ts +3 -3
  351. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
  352. package/mobile/bundle/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
  353. package/mobile/bundle/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
  354. package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
  355. package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
  356. package/mobile/bundle/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
  357. package/mobile/bundle/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
  358. package/mobile/bundle/components/CreditCardForm/calculateInputs.d.ts +2 -2
  359. package/mobile/bundle/components/CreditCardForm/formStateMap.d.ts +2 -2
  360. package/mobile/bundle/components/CreditCardForm/getCardData.d.ts +2 -2
  361. package/mobile/bundle/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
  362. package/mobile/bundle/components/CreditCardForm/getFifthStepData.d.ts +2 -2
  363. package/mobile/bundle/components/CreditCardForm/getFourthStepData.d.ts +2 -2
  364. package/mobile/bundle/components/CreditCardForm/getInitialFormState.d.ts +2 -2
  365. package/mobile/bundle/components/CreditCardForm/getSecondStepData.d.ts +2 -2
  366. package/mobile/bundle/components/CreditCardForm/getSixthStepData.d.ts +4 -4
  367. package/mobile/bundle/components/CreditCardForm/getThirdStepData.d.ts +2 -2
  368. package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +2 -2
  369. package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +3 -3
  370. package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
  371. package/mobile/bundle/components/CreditForm/calculateInputs.d.ts +2 -2
  372. package/mobile/bundle/components/CreditForm/formStateMap.d.ts +2 -2
  373. package/mobile/bundle/components/CreditForm/getCalcData.d.ts +2 -2
  374. package/mobile/bundle/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
  375. package/mobile/bundle/components/CreditForm/getFifthStepData.d.ts +2 -2
  376. package/mobile/bundle/components/CreditForm/getFirstStepData.d.ts +2 -2
  377. package/mobile/bundle/components/CreditForm/getFourthStepData.d.ts +2 -2
  378. package/mobile/bundle/components/CreditForm/getInitialFormState.d.ts +2 -2
  379. package/mobile/bundle/components/CreditForm/getSecondStepData.d.ts +2 -2
  380. package/mobile/bundle/components/CreditForm/getThirdStepData.d.ts +2 -2
  381. package/mobile/bundle/components/CreditForm/getZeroStepData.d.ts +2 -2
  382. package/mobile/bundle/components/CreditForm/renderInputs.d.ts +2 -2
  383. package/mobile/bundle/components/CreditForm/renderStep.d.ts +3 -3
  384. package/mobile/bundle/components/CreditForm/useCreditFormAPI.d.ts +2 -2
  385. package/mobile/bundle/components/CreditForm/utils.d.ts +1 -1
  386. package/mobile/bundle/hooks/useCreditFormStore.d.ts +13 -0
  387. package/mobile/bundle/hooks/useLeadFormData.d.ts +1 -1
  388. package/mobile/bundle/hooks/useSetter.d.ts +2 -0
  389. package/mobile/bundle/ui-kit/DialogManager/useDialog.d.ts +4 -1
  390. package/mobile/bundle/ui-kit/FormField/SelectField.d.ts +1 -7
  391. package/mobile/bundle/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
  392. package/mobile/bundle/ui-kit/FormField/validators.d.ts +1 -1
  393. package/mobile/bundle/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
  394. package/mobile/dist/api/RetailAPI/getPaymentSystems.d.ts +2 -4
  395. package/mobile/dist/api/RetailAPI/getPaymentSystems.js +1 -4
  396. package/mobile/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
  397. package/mobile/dist/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
  398. package/mobile/dist/api/RetailAPI/model/EOrganizationActivityTypes.js +2 -0
  399. package/mobile/dist/api/RetailAPI/model/EOrganizationActivityTypes.js.map +1 -0
  400. package/mobile/dist/api/RetailAPI/model/LeadFormData.d.ts +7 -0
  401. package/mobile/dist/api/RetailAPI/model/LeadFormData.js +2 -0
  402. package/mobile/dist/api/RetailAPI/model/LeadFormData.js.map +1 -0
  403. package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +5 -1
  404. package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
  405. package/mobile/dist/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
  406. package/mobile/dist/api/RetailAPI/utils/getOrganizationParams.js +101 -0
  407. package/mobile/dist/api/RetailAPI/utils/getOrganizationParams.js.map +1 -0
  408. package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
  409. package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js +1 -0
  410. package/mobile/dist/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
  411. package/mobile/dist/api/dadataHints/dadataHintsType.d.ts +3 -0
  412. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -7
  413. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  414. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
  415. package/mobile/dist/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  416. package/mobile/dist/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
  417. package/mobile/dist/components/ApplicationLeadForm/LeadFormState.js +2 -0
  418. package/mobile/dist/components/ApplicationLeadForm/LeadFormState.js.map +1 -0
  419. package/mobile/dist/components/ApplicationLeadForm/consents.d.ts +3 -3
  420. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
  421. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +4 -6
  422. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  423. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
  424. package/mobile/dist/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  425. package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
  426. package/mobile/dist/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
  427. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
  428. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +11 -19
  429. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  430. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
  431. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +9 -7
  432. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  433. package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
  434. package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js +6 -0
  435. package/mobile/dist/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
  436. package/mobile/dist/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
  437. package/mobile/dist/components/CreditCardForm/calculateInputs.d.ts +2 -2
  438. package/mobile/dist/components/CreditCardForm/formStateMap.d.ts +2 -2
  439. package/mobile/dist/components/CreditCardForm/formStateMap.js +1 -1
  440. package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
  441. package/mobile/dist/components/CreditCardForm/getCardData.d.ts +2 -2
  442. package/mobile/dist/components/CreditCardForm/getCardData.js.map +1 -1
  443. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
  444. package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  445. package/mobile/dist/components/CreditCardForm/getFifthStepData.d.ts +2 -2
  446. package/mobile/dist/components/CreditCardForm/getFifthStepData.js.map +1 -1
  447. package/mobile/dist/components/CreditCardForm/getFourthStepData.d.ts +2 -2
  448. package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
  449. package/mobile/dist/components/CreditCardForm/getInitialFormState.d.ts +2 -2
  450. package/mobile/dist/components/CreditCardForm/getInitialFormState.js.map +1 -1
  451. package/mobile/dist/components/CreditCardForm/getSecondStepData.d.ts +2 -2
  452. package/mobile/dist/components/CreditCardForm/getSecondStepData.js.map +1 -1
  453. package/mobile/dist/components/CreditCardForm/getSixthStepData.d.ts +4 -4
  454. package/mobile/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
  455. package/mobile/dist/components/CreditCardForm/getThirdStepData.d.ts +2 -2
  456. package/mobile/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
  457. package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +2 -2
  458. package/mobile/dist/components/CreditCardForm/renderStep.d.ts +3 -3
  459. package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -1
  460. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
  461. package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  462. package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
  463. package/mobile/dist/components/CreditForm/calculateInputs.d.ts +2 -2
  464. package/mobile/dist/components/CreditForm/formStateMap.d.ts +2 -2
  465. package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
  466. package/mobile/dist/components/CreditForm/getCalcData.d.ts +2 -2
  467. package/mobile/dist/components/CreditForm/getCalcData.js.map +1 -1
  468. package/mobile/dist/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
  469. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  470. package/mobile/dist/components/CreditForm/getFifthStepData.d.ts +2 -2
  471. package/mobile/dist/components/CreditForm/getFifthStepData.js.map +1 -1
  472. package/mobile/dist/components/CreditForm/getFirstStepData.d.ts +2 -2
  473. package/mobile/dist/components/CreditForm/getFirstStepData.js.map +1 -1
  474. package/mobile/dist/components/CreditForm/getFourthStepData.d.ts +2 -2
  475. package/mobile/dist/components/CreditForm/getFourthStepData.js.map +1 -1
  476. package/mobile/dist/components/CreditForm/getInitialFormState.d.ts +2 -2
  477. package/mobile/dist/components/CreditForm/getInitialFormState.js.map +1 -1
  478. package/mobile/dist/components/CreditForm/getSecondStepData.d.ts +2 -2
  479. package/mobile/dist/components/CreditForm/getSecondStepData.js.map +1 -1
  480. package/mobile/dist/components/CreditForm/getThirdStepData.d.ts +2 -2
  481. package/mobile/dist/components/CreditForm/getThirdStepData.js.map +1 -1
  482. package/mobile/dist/components/CreditForm/getZeroStepData.d.ts +2 -2
  483. package/mobile/dist/components/CreditForm/getZeroStepData.js.map +1 -1
  484. package/mobile/dist/components/CreditForm/renderInputs.d.ts +2 -2
  485. package/mobile/dist/components/CreditForm/renderStep.d.ts +3 -3
  486. package/mobile/dist/components/CreditForm/renderStep.js.map +1 -1
  487. package/mobile/dist/components/CreditForm/useCreditFormAPI.d.ts +2 -2
  488. package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
  489. package/mobile/dist/components/CreditForm/utils.d.ts +1 -1
  490. package/mobile/dist/components/GrantSupport/GrantSupport.js +1 -1
  491. package/mobile/dist/components/GrantSupport/GrantSupport.js.map +1 -1
  492. package/mobile/dist/hooks/useCreditFormStore.d.ts +13 -0
  493. package/mobile/dist/hooks/useCreditFormStore.js +8 -0
  494. package/mobile/dist/hooks/useCreditFormStore.js.map +1 -0
  495. package/mobile/dist/hooks/useLeadFormData.d.ts +1 -1
  496. package/mobile/dist/hooks/useSetter.d.ts +2 -0
  497. package/mobile/dist/hooks/useSetter.js +14 -0
  498. package/mobile/dist/hooks/useSetter.js.map +1 -0
  499. package/mobile/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
  500. package/mobile/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
  501. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -10
  502. package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  503. package/mobile/dist/ui-kit/DialogManager/useDialog.d.ts +4 -1
  504. package/mobile/dist/ui-kit/DialogManager/useDialog.js.map +1 -1
  505. package/mobile/dist/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  506. package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.js +10 -2
  507. package/mobile/dist/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -1
  508. package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
  509. package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
  510. package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js +10 -2
  511. package/mobile/dist/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -1
  512. package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js +10 -2
  513. package/mobile/dist/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -1
  514. package/mobile/dist/ui-kit/FormField/Fields/InnField.js +4 -3
  515. package/mobile/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
  516. package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.js +10 -2
  517. package/mobile/dist/ui-kit/FormField/Fields/OrganizationField.js.map +1 -1
  518. package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js +4 -1
  519. package/mobile/dist/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
  520. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js +3 -1
  521. package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  522. package/mobile/dist/ui-kit/FormField/SelectField.d.ts +1 -7
  523. package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
  524. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +10 -10
  525. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  526. package/mobile/dist/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
  527. package/mobile/dist/ui-kit/FormField/updateOrganizationFields.js +17 -0
  528. package/mobile/dist/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
  529. package/mobile/dist/ui-kit/FormField/validators.d.ts +1 -1
  530. package/mobile/dist/ui-kit/RichText/RichText.js +3 -6
  531. package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
  532. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
  533. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -3
  534. package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  535. package/mobile/lib/api/RetailAPI/getPaymentSystems.d.ts +2 -4
  536. package/mobile/lib/api/RetailAPI/getPaymentSystems.js +1 -4
  537. package/mobile/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
  538. package/mobile/lib/api/RetailAPI/model/EOrganizationActivityTypes.d.ts +23 -0
  539. package/mobile/lib/api/RetailAPI/model/EOrganizationActivityTypes.js +2 -0
  540. package/mobile/lib/api/RetailAPI/model/EOrganizationActivityTypes.js.map +1 -0
  541. package/mobile/lib/api/RetailAPI/model/LeadFormData.d.ts +7 -0
  542. package/mobile/lib/api/RetailAPI/model/LeadFormData.js +2 -0
  543. package/mobile/lib/api/RetailAPI/model/LeadFormData.js.map +1 -0
  544. package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +5 -1
  545. package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
  546. package/mobile/lib/api/RetailAPI/utils/getOrganizationParams.d.ts +17 -0
  547. package/mobile/lib/api/RetailAPI/utils/getOrganizationParams.js +95 -0
  548. package/mobile/lib/api/RetailAPI/utils/getOrganizationParams.js.map +1 -0
  549. package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.d.ts +2 -2
  550. package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js +1 -0
  551. package/mobile/lib/api/RetailAPI/utils/getUpdateUserProfile.js.map +1 -1
  552. package/mobile/lib/api/dadataHints/dadataHintsType.d.ts +3 -0
  553. package/mobile/lib/common.css +1 -1
  554. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +3 -8
  555. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  556. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -2
  557. package/mobile/lib/components/ApplicationLeadForm/GroupedConsents.js.map +1 -1
  558. package/mobile/lib/components/ApplicationLeadForm/LeadFormState.d.ts +147 -0
  559. package/mobile/lib/components/ApplicationLeadForm/LeadFormState.js +2 -0
  560. package/mobile/lib/components/ApplicationLeadForm/LeadFormState.js.map +1 -0
  561. package/mobile/lib/components/ApplicationLeadForm/consents.d.ts +3 -3
  562. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +2 -148
  563. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +4 -6
  564. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  565. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.d.ts +2 -2
  566. package/mobile/lib/components/ApplicationLeadForm/getLeadFormTaskData.js.map +1 -1
  567. package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.d.ts +2 -2
  568. package/mobile/lib/components/ApplicationLeadForm/pasreEsiaProfile.js.map +1 -1
  569. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +5 -6
  570. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +11 -19
  571. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  572. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +4 -2
  573. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +10 -8
  574. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  575. package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.d.ts +15 -0
  576. package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js +3 -0
  577. package/mobile/lib/components/ApplicationLeadForm/useLeadFormStore.js.map +1 -0
  578. package/mobile/lib/components/CreditCardForm/CreditCardFormContent.d.ts +2 -2
  579. package/mobile/lib/components/CreditCardForm/calculateInputs.d.ts +2 -2
  580. package/mobile/lib/components/CreditCardForm/formStateMap.d.ts +2 -2
  581. package/mobile/lib/components/CreditCardForm/formStateMap.js +1 -1
  582. package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
  583. package/mobile/lib/components/CreditCardForm/getCardData.d.ts +2 -2
  584. package/mobile/lib/components/CreditCardForm/getCardData.js.map +1 -1
  585. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.d.ts +2 -2
  586. package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
  587. package/mobile/lib/components/CreditCardForm/getFifthStepData.d.ts +2 -2
  588. package/mobile/lib/components/CreditCardForm/getFifthStepData.js.map +1 -1
  589. package/mobile/lib/components/CreditCardForm/getFourthStepData.d.ts +2 -2
  590. package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
  591. package/mobile/lib/components/CreditCardForm/getInitialFormState.d.ts +2 -2
  592. package/mobile/lib/components/CreditCardForm/getInitialFormState.js.map +1 -1
  593. package/mobile/lib/components/CreditCardForm/getSecondStepData.d.ts +2 -2
  594. package/mobile/lib/components/CreditCardForm/getSecondStepData.js.map +1 -1
  595. package/mobile/lib/components/CreditCardForm/getSixthStepData.d.ts +4 -4
  596. package/mobile/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
  597. package/mobile/lib/components/CreditCardForm/getThirdStepData.d.ts +2 -2
  598. package/mobile/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
  599. package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +2 -2
  600. package/mobile/lib/components/CreditCardForm/renderStep.d.ts +3 -3
  601. package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -1
  602. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +2 -2
  603. package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
  604. package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
  605. package/mobile/lib/components/CreditForm/calculateInputs.d.ts +2 -2
  606. package/mobile/lib/components/CreditForm/formStateMap.d.ts +2 -2
  607. package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
  608. package/mobile/lib/components/CreditForm/getCalcData.d.ts +2 -2
  609. package/mobile/lib/components/CreditForm/getCalcData.js.map +1 -1
  610. package/mobile/lib/components/CreditForm/getCreditFormTaskData.d.ts +2 -2
  611. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  612. package/mobile/lib/components/CreditForm/getFifthStepData.d.ts +2 -2
  613. package/mobile/lib/components/CreditForm/getFifthStepData.js.map +1 -1
  614. package/mobile/lib/components/CreditForm/getFirstStepData.d.ts +2 -2
  615. package/mobile/lib/components/CreditForm/getFirstStepData.js.map +1 -1
  616. package/mobile/lib/components/CreditForm/getFourthStepData.d.ts +2 -2
  617. package/mobile/lib/components/CreditForm/getFourthStepData.js.map +1 -1
  618. package/mobile/lib/components/CreditForm/getInitialFormState.d.ts +2 -2
  619. package/mobile/lib/components/CreditForm/getInitialFormState.js.map +1 -1
  620. package/mobile/lib/components/CreditForm/getSecondStepData.d.ts +2 -2
  621. package/mobile/lib/components/CreditForm/getSecondStepData.js.map +1 -1
  622. package/mobile/lib/components/CreditForm/getThirdStepData.d.ts +2 -2
  623. package/mobile/lib/components/CreditForm/getThirdStepData.js.map +1 -1
  624. package/mobile/lib/components/CreditForm/getZeroStepData.d.ts +2 -2
  625. package/mobile/lib/components/CreditForm/getZeroStepData.js.map +1 -1
  626. package/mobile/lib/components/CreditForm/renderInputs.d.ts +2 -2
  627. package/mobile/lib/components/CreditForm/renderStep.d.ts +3 -3
  628. package/mobile/lib/components/CreditForm/renderStep.js.map +1 -1
  629. package/mobile/lib/components/CreditForm/useCreditFormAPI.d.ts +2 -2
  630. package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
  631. package/mobile/lib/components/CreditForm/utils.d.ts +1 -1
  632. package/mobile/lib/components/GrantSupport/GrantSupport.js +1 -1
  633. package/mobile/lib/components/GrantSupport/GrantSupport.js.map +1 -1
  634. package/mobile/lib/hooks/useCreditFormStore.d.ts +13 -0
  635. package/mobile/lib/hooks/useCreditFormStore.js +5 -0
  636. package/mobile/lib/hooks/useCreditFormStore.js.map +1 -0
  637. package/mobile/lib/hooks/useLeadFormData.d.ts +1 -1
  638. package/mobile/lib/hooks/useSetter.d.ts +2 -0
  639. package/mobile/lib/hooks/useSetter.js +11 -0
  640. package/mobile/lib/hooks/useSetter.js.map +1 -0
  641. package/mobile/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
  642. package/mobile/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
  643. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +2 -10
  644. package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
  645. package/mobile/lib/ui-kit/DialogManager/useDialog.d.ts +4 -1
  646. package/mobile/lib/ui-kit/DialogManager/useDialog.js.map +1 -1
  647. package/mobile/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
  648. package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.js +10 -2
  649. package/mobile/lib/ui-kit/FormField/Fields/AmountWorkersField.js.map +1 -1
  650. package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
  651. package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
  652. package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js +10 -2
  653. package/mobile/lib/ui-kit/FormField/Fields/EmployerActivitiesField.js.map +1 -1
  654. package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js +10 -2
  655. package/mobile/lib/ui-kit/FormField/Fields/EmployerOrganizationField.js.map +1 -1
  656. package/mobile/lib/ui-kit/FormField/Fields/InnField.js +4 -3
  657. package/mobile/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
  658. package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.js +10 -2
  659. package/mobile/lib/ui-kit/FormField/Fields/OrganizationField.js.map +1 -1
  660. package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js +4 -1
  661. package/mobile/lib/ui-kit/FormField/Fields/OrganizationNameField.js.map +1 -1
  662. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js +4 -2
  663. package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
  664. package/mobile/lib/ui-kit/FormField/SelectField.d.ts +1 -7
  665. package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
  666. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +10 -10
  667. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  668. package/mobile/lib/ui-kit/FormField/updateOrganizationFields.d.ts +4 -0
  669. package/mobile/lib/ui-kit/FormField/updateOrganizationFields.js +14 -0
  670. package/mobile/lib/ui-kit/FormField/updateOrganizationFields.js.map +1 -0
  671. package/mobile/lib/ui-kit/FormField/validators.d.ts +1 -1
  672. package/mobile/lib/ui-kit/RichText/RichText.js +3 -6
  673. package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
  674. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +2 -5
  675. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +5 -3
  676. package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  677. package/mobile/src/api/RetailAPI/getPaymentSystems.ts +3 -10
  678. package/mobile/src/api/RetailAPI/model/EOrganizationActivityTypes.ts +23 -0
  679. package/mobile/src/api/RetailAPI/model/LeadFormData.ts +7 -0
  680. package/mobile/src/api/RetailAPI/updateUserTask.ts +6 -1
  681. package/mobile/src/api/RetailAPI/utils/getOrganizationParams.ts +126 -0
  682. package/mobile/src/api/RetailAPI/utils/getUpdateUserProfile.ts +4 -2
  683. package/mobile/src/api/dadataHints/dadataHintsType.ts +3 -0
  684. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +6 -8
  685. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -2
  686. package/mobile/src/components/ApplicationLeadForm/GroupedConsents.tsx +5 -5
  687. package/mobile/src/components/ApplicationLeadForm/LeadFormState.ts +152 -0
  688. package/mobile/src/components/ApplicationLeadForm/consents.ts +3 -3
  689. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +6 -161
  690. package/mobile/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
  691. package/mobile/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +2 -2
  692. package/mobile/src/components/ApplicationLeadForm/{useApplicationLeadApi.ts → useApplicationLeadApi.tsx} +19 -34
  693. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +20 -9
  694. package/mobile/src/components/ApplicationLeadForm/useLeadFormStore.ts +12 -0
  695. package/mobile/src/components/CreditCardForm/CreditCardFormContent.ts +2 -2
  696. package/mobile/src/components/CreditCardForm/calculateInputs.ts +2 -2
  697. package/mobile/src/components/CreditCardForm/formStateMap.tsx +3 -3
  698. package/mobile/src/components/CreditCardForm/getCardData.tsx +2 -2
  699. package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -3
  700. package/mobile/src/components/CreditCardForm/getFifthStepData.ts +2 -2
  701. package/mobile/src/components/CreditCardForm/getFourthStepData.ts +2 -2
  702. package/mobile/src/components/CreditCardForm/getInitialFormState.tsx +2 -2
  703. package/mobile/src/components/CreditCardForm/getSecondStepData.tsx +2 -2
  704. package/mobile/src/components/CreditCardForm/getSixthStepData.ts +4 -4
  705. package/mobile/src/components/CreditCardForm/getThirdStepData.tsx +2 -2
  706. package/mobile/src/components/CreditCardForm/renderInputs.tsx +2 -2
  707. package/mobile/src/components/CreditCardForm/renderStep.tsx +4 -4
  708. package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +3 -3
  709. package/mobile/src/components/CreditForm/PendingStatusContent.tsx +2 -2
  710. package/mobile/src/components/CreditForm/calculateInputs.ts +2 -2
  711. package/mobile/src/components/CreditForm/formStateMap.tsx +2 -2
  712. package/mobile/src/components/CreditForm/getCalcData.ts +2 -2
  713. package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +3 -3
  714. package/mobile/src/components/CreditForm/getFifthStepData.ts +2 -2
  715. package/mobile/src/components/CreditForm/getFirstStepData.tsx +2 -2
  716. package/mobile/src/components/CreditForm/getFourthStepData.ts +2 -2
  717. package/mobile/src/components/CreditForm/getInitialFormState.tsx +2 -2
  718. package/mobile/src/components/CreditForm/getSecondStepData.tsx +2 -2
  719. package/mobile/src/components/CreditForm/getThirdStepData.ts +2 -2
  720. package/mobile/src/components/CreditForm/getZeroStepData.ts +2 -2
  721. package/mobile/src/components/CreditForm/renderInputs.tsx +2 -2
  722. package/mobile/src/components/CreditForm/renderStep.tsx +4 -4
  723. package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +3 -3
  724. package/mobile/src/components/CreditForm/utils.ts +1 -1
  725. package/mobile/src/components/GrantSupport/GrantSupport.tsx +1 -1
  726. package/mobile/src/hooks/useCreditFormStore.tsx +13 -0
  727. package/mobile/src/hooks/useLeadFormData.ts +1 -1
  728. package/mobile/src/hooks/useSetter.ts +16 -0
  729. package/mobile/src/ui-kit/ApplicationFormLayout/ApplicationFormLayout.tsx +1 -1
  730. package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +2 -11
  731. package/mobile/src/ui-kit/DialogManager/useDialog.tsx +2 -1
  732. package/mobile/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +2 -2
  733. package/mobile/src/ui-kit/FormField/Fields/AmountWorkersField.tsx +12 -2
  734. package/mobile/src/ui-kit/FormField/Fields/CardCategoryField.tsx +1 -1
  735. package/mobile/src/ui-kit/FormField/Fields/EmployerActivitiesField.tsx +12 -2
  736. package/mobile/src/ui-kit/FormField/Fields/EmployerOrganizationField.tsx +12 -2
  737. package/mobile/src/ui-kit/FormField/Fields/InnField.tsx +5 -5
  738. package/mobile/src/ui-kit/FormField/Fields/OrganizationField.tsx +12 -2
  739. package/mobile/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +5 -1
  740. package/mobile/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -6
  741. package/mobile/src/ui-kit/FormField/SelectField.tsx +1 -8
  742. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +10 -10
  743. package/mobile/src/ui-kit/FormField/updateOrganizationFields.ts +40 -0
  744. package/mobile/src/ui-kit/FormField/validators.ts +1 -1
  745. package/mobile/src/ui-kit/RichText/RichText.tsx +21 -21
  746. package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +20 -25
  747. package/package.json +1 -1
  748. package/src/api/RetailAPI/getPaymentSystems.ts +3 -10
  749. package/src/api/RetailAPI/model/EOrganizationActivityTypes.ts +23 -0
  750. package/src/api/RetailAPI/model/LeadFormData.ts +7 -0
  751. package/src/api/RetailAPI/updateUserTask.ts +6 -1
  752. package/src/api/RetailAPI/utils/getOrganizationParams.ts +126 -0
  753. package/src/api/RetailAPI/utils/getUpdateUserProfile.ts +4 -2
  754. package/src/api/dadataHints/dadataHintsType.ts +3 -0
  755. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +6 -8
  756. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -2
  757. package/src/components/ApplicationLeadForm/GroupedConsents.tsx +5 -5
  758. package/src/components/ApplicationLeadForm/LeadFormState.ts +152 -0
  759. package/src/components/ApplicationLeadForm/consents.ts +3 -3
  760. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +6 -161
  761. package/src/components/ApplicationLeadForm/getLeadFormTaskData.ts +2 -2
  762. package/src/components/ApplicationLeadForm/pasreEsiaProfile.ts +2 -2
  763. package/src/components/ApplicationLeadForm/{useApplicationLeadApi.ts → useApplicationLeadApi.tsx} +19 -34
  764. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +20 -9
  765. package/src/components/ApplicationLeadForm/useLeadFormStore.ts +12 -0
  766. package/src/components/CreditCardForm/CreditCardFormContent.ts +2 -2
  767. package/src/components/CreditCardForm/calculateInputs.ts +2 -2
  768. package/src/components/CreditCardForm/formStateMap.tsx +3 -3
  769. package/src/components/CreditCardForm/getCardData.tsx +2 -2
  770. package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -3
  771. package/src/components/CreditCardForm/getFifthStepData.ts +2 -2
  772. package/src/components/CreditCardForm/getFourthStepData.ts +2 -2
  773. package/src/components/CreditCardForm/getInitialFormState.tsx +2 -2
  774. package/src/components/CreditCardForm/getSecondStepData.tsx +2 -2
  775. package/src/components/CreditCardForm/getSixthStepData.ts +4 -4
  776. package/src/components/CreditCardForm/getThirdStepData.tsx +2 -2
  777. package/src/components/CreditCardForm/renderInputs.tsx +2 -2
  778. package/src/components/CreditCardForm/renderStep.tsx +4 -4
  779. package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +3 -3
  780. package/src/components/CreditForm/PendingStatusContent.tsx +2 -2
  781. package/src/components/CreditForm/calculateInputs.ts +2 -2
  782. package/src/components/CreditForm/formStateMap.tsx +2 -2
  783. package/src/components/CreditForm/getCalcData.ts +2 -2
  784. package/src/components/CreditForm/getCreditFormTaskData.ts +3 -3
  785. package/src/components/CreditForm/getFifthStepData.ts +2 -2
  786. package/src/components/CreditForm/getFirstStepData.tsx +2 -2
  787. package/src/components/CreditForm/getFourthStepData.ts +2 -2
  788. package/src/components/CreditForm/getInitialFormState.tsx +2 -2
  789. package/src/components/CreditForm/getSecondStepData.tsx +2 -2
  790. package/src/components/CreditForm/getThirdStepData.ts +2 -2
  791. package/src/components/CreditForm/getZeroStepData.ts +2 -2
  792. package/src/components/CreditForm/renderInputs.tsx +2 -2
  793. package/src/components/CreditForm/renderStep.tsx +4 -4
  794. package/src/components/CreditForm/useCreditFormAPI.tsx +3 -3
  795. package/src/components/CreditForm/utils.ts +1 -1
  796. package/src/components/GrantSupport/GrantSupport.tsx +1 -1
  797. package/src/hooks/useCreditFormStore.tsx +13 -0
  798. package/src/hooks/useLeadFormData.ts +1 -1
  799. package/src/hooks/useSetter.ts +16 -0
  800. package/src/ui-kit/ApplicationFormLayout/ApplicationFormLayout.tsx +1 -1
  801. package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +2 -11
  802. package/src/ui-kit/DialogManager/useDialog.tsx +2 -1
  803. package/src/ui-kit/EsiaLoginDialog/EsiaLoginDialog.tsx +2 -2
  804. package/src/ui-kit/FormField/Fields/AmountWorkersField.tsx +12 -2
  805. package/src/ui-kit/FormField/Fields/CardCategoryField.tsx +1 -1
  806. package/src/ui-kit/FormField/Fields/EmployerActivitiesField.tsx +12 -2
  807. package/src/ui-kit/FormField/Fields/EmployerOrganizationField.tsx +12 -2
  808. package/src/ui-kit/FormField/Fields/InnField.tsx +5 -5
  809. package/src/ui-kit/FormField/Fields/OrganizationField.tsx +12 -2
  810. package/src/ui-kit/FormField/Fields/OrganizationNameField.tsx +5 -1
  811. package/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -6
  812. package/src/ui-kit/FormField/SelectField.tsx +1 -8
  813. package/src/ui-kit/FormField/getObjectValidator.tsx +10 -10
  814. package/src/ui-kit/FormField/updateOrganizationFields.ts +40 -0
  815. package/src/ui-kit/FormField/validators.ts +1 -1
  816. package/src/ui-kit/RichText/RichText.tsx +21 -21
  817. package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.fixture.tsx +7 -10
  818. package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +20 -25
  819. package/bundle/ui-kit/RichText/getHtmlText.d.ts +0 -1
  820. package/dist/ui-kit/RichText/getHtmlText.d.ts +0 -1
  821. package/dist/ui-kit/RichText/getHtmlText.js +0 -5
  822. package/dist/ui-kit/RichText/getHtmlText.js.map +0 -1
  823. package/lib/ui-kit/RichText/getHtmlText.d.ts +0 -1
  824. package/lib/ui-kit/RichText/getHtmlText.js +0 -2
  825. package/lib/ui-kit/RichText/getHtmlText.js.map +0 -1
  826. package/mobile/bundle/ui-kit/RichText/getHtmlText.d.ts +0 -1
  827. package/mobile/dist/ui-kit/RichText/getHtmlText.d.ts +0 -1
  828. package/mobile/dist/ui-kit/RichText/getHtmlText.js +0 -5
  829. package/mobile/dist/ui-kit/RichText/getHtmlText.js.map +0 -1
  830. package/mobile/lib/ui-kit/RichText/getHtmlText.d.ts +0 -1
  831. package/mobile/lib/ui-kit/RichText/getHtmlText.js +0 -2
  832. package/mobile/lib/ui-kit/RichText/getHtmlText.js.map +0 -1
  833. package/mobile/src/ui-kit/RichText/getHtmlText.tsx +0 -1
  834. package/src/ui-kit/RichText/getHtmlText.tsx +0 -1
@@ -3,16 +3,16 @@ import { inputColumnStyles } from '../../ui-kit/FormField/inputColumnStyle';
3
3
  import { renderTitle } from '../../ui-kit/FormField/renderTitle';
4
4
  import { style } from '../../utils/style';
5
5
  import { type SectionsProps } from '../ApplicationForm/ApplicationFormContent';
6
- import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
6
+ import { type LeadFormState } from '../ApplicationLeadForm/LeadFormState';
7
7
  import { calculateInputs, type GetValue } from './calculateInputs';
8
8
  import { renderInfo } from './renderInfo';
9
9
  import { renderInputs } from './renderInputs';
10
10
 
11
- export type CustomSubmit = FormOperatorProps<FormState>['onSubmit'];
11
+ export type CustomSubmit = FormOperatorProps<LeadFormState>['onSubmit'];
12
12
 
13
13
  export interface StepProps {
14
14
  sections?: SectionsProps[];
15
- field: FormFieldRegisterer<FormState>;
15
+ field: FormFieldRegisterer<LeadFormState>;
16
16
  step: number;
17
17
  params?: Record<string, any>;
18
18
  }
@@ -31,6 +31,6 @@ export const renderStep = ({ sections, field, step, params }: StepProps) =>
31
31
  });
32
32
 
33
33
  const getValue =
34
- (field: FormFieldRegisterer<FormState>): GetValue =>
34
+ (field: FormFieldRegisterer<LeadFormState>): GetValue =>
35
35
  (name) =>
36
36
  field(name)?.value;
@@ -5,7 +5,7 @@ import { getObjectValidator } from '../../ui-kit/FormField/getObjectValidator';
5
5
  import { objectValidator } from '../../validation/objectValidator';
6
6
  import { isValidationSuccess } from '../../validation/validator';
7
7
  import { type FieldDef } from '../ApplicationLeadForm/ApplicationLeadFormContent';
8
- import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
8
+ import { type LeadFormState } from '../ApplicationLeadForm/LeadFormState';
9
9
  import { calculateInputs, type GetValue } from './calculateInputs';
10
10
  import { getCreditFormTaskData } from './getCreditFormTaskData';
11
11
 
@@ -29,7 +29,7 @@ export const useCreditFormAPI = ({
29
29
  const [profileId] = useLocalStorage<number>('profileId');
30
30
  const [participantId] = useLocalStorage<number>('participantId');
31
31
 
32
- const handleSubmit = useCallback(async (formData: FormState) => {
32
+ const handleSubmit = useCallback(async (formData: LeadFormState) => {
33
33
  const feedbackValidator = objectValidator(
34
34
  getObjectValidator(calculateInputs(getValue(formData))(inputs, step)),
35
35
  );
@@ -78,6 +78,6 @@ const resetForm = (isFinalStep: boolean, response: Response) => {
78
78
  };
79
79
 
80
80
  const getValue =
81
- (formData: FormState): GetValue =>
81
+ (formData: LeadFormState): GetValue =>
82
82
  (name) =>
83
83
  formData[name];
@@ -1,4 +1,4 @@
1
- import { type Address } from '../ApplicationLeadForm/getInitialFormState';
1
+ import { type Address } from '../ApplicationLeadForm/LeadFormState';
2
2
 
3
3
  export const fieldsNamesToContactKeysMap = {
4
4
  email: 'EMAIL',
@@ -26,7 +26,7 @@ export const GrantSupport = UniBlock<GrantSupportProps>(
26
26
 
27
27
  return (
28
28
  <BlockWrapper className={className} defaultPadding="p-6xl" {...rest}>
29
- <div className="container max-w-[978px] space-y-m">
29
+ <div className="container space-y-m">
30
30
  {title ? <Heading headingType="h3" title={title} className="@xl:text-center" /> : null}
31
31
  {regions ? (
32
32
  <SelectControl
@@ -0,0 +1,13 @@
1
+ import { useLocalStore } from '@redneckz/uni-jsx/lib/Store/useLocalStore';
2
+ import { type LeadProps } from '../api/RetailAPI/model/LeadFormData';
3
+
4
+ export interface CreditFormStore {
5
+ amountWorkers: LeadProps[] | null;
6
+ organization: LeadProps[] | null;
7
+ employerActivities: LeadProps[] | null;
8
+ employerOrganization: LeadProps[] | null;
9
+ }
10
+
11
+ export const useCreditFormStore = () => {
12
+ return useLocalStore<CreditFormStore>();
13
+ };
@@ -1,5 +1,5 @@
1
1
  import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
2
- import { type LeadProps } from '../ui-kit/FormField/SelectField';
2
+ import { type LeadProps } from '../api/RetailAPI/model/LeadFormData';
3
3
  import { fetchJSON } from '../utils/fetchJSON';
4
4
 
5
5
  type ErrorProps = {
@@ -0,0 +1,16 @@
1
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
2
+ import type { Nullable } from '@redneckz/uni-jsx/lib/utils/ts/Nullable';
3
+
4
+ export const useSetter = <T, K extends keyof T>(target: T, key: K) =>
5
+ useCallback(
6
+ (value: Nullable<T[K]> | ((oldValue: Nullable<T[K]>) => Nullable<T[K]>)) => {
7
+ const newValue = value instanceof Function ? value(target[key]) : value;
8
+
9
+ if (newValue !== null && newValue !== undefined) {
10
+ target[key] = newValue;
11
+ } else {
12
+ delete target[key];
13
+ }
14
+ },
15
+ [target, key],
16
+ );
@@ -11,7 +11,7 @@ export const ApplicationFormLayout = JSX<ApplicationFormProps>((props) => {
11
11
 
12
12
  return (
13
13
  <BlockWrapper className={className} defaultPadding="p-6xl" {...rest}>
14
- <div className="container max-w-[978px] space-y-lg">
14
+ <div className="container space-y-lg">
15
15
  {title ? <Heading headingType="h3" title={title} className="@xl:text-center" /> : null}
16
16
  {children}
17
17
  </div>
@@ -1,5 +1,4 @@
1
1
  import { updateUserProfile } from '../../api/RetailAPI/updateUserProfile';
2
- import { formatPhone } from '../../utils/formatPhone';
3
2
  import { useDialog } from '../DialogManager/useDialog';
4
3
  import { VerifyPhoneDialog } from '../VerifyPhoneDialog/VerifyPhoneDialog';
5
4
  import { ConsentBkiDialog } from './ConsentBkiDialog';
@@ -30,7 +29,8 @@ export const useConsentBkiDialog = (onClose: () => void) => {
30
29
  (phone?: string, profileId?: number) => async (confirmStatus: string) => {
31
30
  if (confirmStatus === 'SIGNED' && phone) {
32
31
  verifyPhoneDialog.open({
33
- ...verifyPhoneContent(phone),
32
+ phone,
33
+ consents: ['согласие на запрос информации в БКИ'],
34
34
  onSuccess: handleSuccessVerify(profileId),
35
35
  });
36
36
  } else {
@@ -43,12 +43,3 @@ export const useConsentBkiDialog = (onClose: () => void) => {
43
43
  open({ onSubmit: handleSubmitBkiConstent(phone, profileId), onClose }),
44
44
  };
45
45
  };
46
-
47
- const verifyPhoneContent = (phone: string) => ({
48
- title: 'Подтвердите номер телефона',
49
- description: `Мы отправили код на ${phone}`,
50
- phoneNumber: formatPhone(phone),
51
- textButton: 'Далее',
52
- __html: `<span>Вводя код, я подтверждаю, что ознакомлен и подписываю:</span>
53
- <ul><li>согласие на запрос информации в БКИ</li></ul>`,
54
- });
@@ -1,5 +1,6 @@
1
1
  import type { UNIComponent } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
+ import type { VNode } from '../../model/VNode';
3
4
  import type { DialogOptions } from './DialogAction';
4
5
  import { useDialogManager } from './useDialogManager';
5
6
 
@@ -10,7 +11,7 @@ export function useDialog<Props extends { onClose?: () => void }>(
10
11
  const { open, close, ...rest } = useDialogManager();
11
12
 
12
13
  const openDialog = useCallback(
13
- (props: Props, options: Partial<DialogOptions> = {}) =>
14
+ (props: Props & { children?: VNode }, options: Partial<DialogOptions> = {}) =>
14
15
  open({
15
16
  dialog: (
16
17
  <Dialog
@@ -1,7 +1,7 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { getLink } from '../../api/RetailAPI/getLink';
4
- import { type FormState } from '../../components/ApplicationLeadForm/getInitialFormState';
4
+ import { type LeadFormState } from '../../components/ApplicationLeadForm/LeadFormState';
5
5
  import { locationNavigator } from '../../external/locationNavigator';
6
6
  import { useLocalStorage } from '../../hooks/useLocalStorage';
7
7
  import { Button } from '../Button/Button';
@@ -14,7 +14,7 @@ export interface EsiaLoginDialogProps {
14
14
 
15
15
  export const EsiaLoginDialog = JSX<EsiaLoginDialogProps>(({ onClose }) => {
16
16
  const navigator = locationNavigator();
17
- const [leadForm, setLeadForm] = useLocalStorage<FormState>('leadForm');
17
+ const [leadForm, setLeadForm] = useLocalStorage<LeadFormState>('leadForm');
18
18
  const handleAuth = useCallback(async () => {
19
19
  const resp = await getLink({
20
20
  redirectUri: navigator.href,
@@ -1,15 +1,25 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useCreditFormStore } from '../../../hooks/useCreditFormStore';
2
4
  import { useLeadFormData } from '../../../hooks/useLeadFormData';
3
5
  import { type CustomFieldProps } from '../CustomFieldProps';
4
6
  import { SelectField } from '../SelectField';
5
7
 
6
8
  export const AmountWorkersField = JSX<CustomFieldProps>(({ field, input }) => {
7
- const { data: amountWorkers } = useLeadFormData('EMPLOYEES_NUMBER');
9
+ const { data } = useLeadFormData('EMPLOYEES_NUMBER');
10
+
11
+ const store = useCreditFormStore();
12
+
13
+ useEffect(() => {
14
+ if (data) {
15
+ store.amountWorkers = data;
16
+ }
17
+ }, [data]);
8
18
 
9
19
  return (
10
20
  <SelectField
11
21
  field={field}
12
- source={amountWorkers}
22
+ source={store.amountWorkers ?? []}
13
23
  label="Количество работающих в организации"
14
24
  fieldName="amountWorkers"
15
25
  input={input}
@@ -10,7 +10,7 @@ export const CardCategoryField = JSX<CustomFieldProps>(({ field, input }) => {
10
10
  const [cardTypes, setCardTypes] = useState<CardTypeData[]>([]);
11
11
  const [programId] = useLocalStorage<string>('programId');
12
12
  const { value: selectedCardCategory, onChange: cardCategoryChange } = field('cardCategory');
13
- const selectedPaymentSystem = field('paymentSystem').value;
13
+ const selectedPaymentSystem = field('paymentSystem')?.value?.type;
14
14
 
15
15
  useEffect(() => {
16
16
  if (selectedPaymentSystem && programId) {
@@ -1,15 +1,25 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useCreditFormStore } from '../../../hooks/useCreditFormStore';
2
4
  import { useLeadFormData } from '../../../hooks/useLeadFormData';
3
5
  import { type CustomFieldProps } from '../CustomFieldProps';
4
6
  import { SelectField } from '../SelectField';
5
7
 
6
8
  export const EmployerActivitiesField = JSX<CustomFieldProps>(({ field, input }) => {
7
- const { data: employerActivities } = useLeadFormData('ORGANIZATION_ACTIVITY_TYPE');
9
+ const { data } = useLeadFormData('ORGANIZATION_ACTIVITY_TYPE');
10
+
11
+ const store = useCreditFormStore();
12
+
13
+ useEffect(() => {
14
+ if (data) {
15
+ store.employerActivities = data;
16
+ }
17
+ }, [data]);
8
18
 
9
19
  return (
10
20
  <SelectField
11
21
  field={field}
12
- source={employerActivities}
22
+ source={store.employerActivities ?? []}
13
23
  label="Вид деятельности организации-работодателя"
14
24
  fieldName="employerActivities"
15
25
  input={input}
@@ -1,15 +1,25 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useCreditFormStore } from '../../../hooks/useCreditFormStore';
2
4
  import { useLeadFormData } from '../../../hooks/useLeadFormData';
3
5
  import { type CustomFieldProps } from '../CustomFieldProps';
4
6
  import { SelectField } from '../SelectField';
5
7
 
6
8
  export const EmployerOrganizationField = JSX<CustomFieldProps>(({ field, input }) => {
7
- const { data: employerOrganization } = useLeadFormData('ORGANIZATION_KIND');
9
+ const { data } = useLeadFormData('ORGANIZATION_KIND');
10
+
11
+ const store = useCreditFormStore();
12
+
13
+ useEffect(() => {
14
+ if (data) {
15
+ store.employerOrganization = data;
16
+ }
17
+ }, [data]);
8
18
 
9
19
  return (
10
20
  <SelectField
11
21
  field={field}
12
- source={employerOrganization}
22
+ source={store.employerOrganization ?? []}
13
23
  label="Вид организации работодателя"
14
24
  fieldName="employerOrganization"
15
25
  input={input}
@@ -1,19 +1,19 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { type DaDataSuggestion } from '../../../api/dadataHints/dadataHintsType';
4
+ import { useCreditFormStore } from '../../../hooks/useCreditFormStore';
4
5
  import { InputControl } from '../../Input/InputControl';
5
6
  import { type CustomFieldProps } from '../CustomFieldProps';
6
7
  import { validatorObj } from '../getObjectValidator';
7
8
  import { getValidation } from '../getValidation';
8
- import { getAddressFromDaDataItem } from './AddressField';
9
+ import { updateOrganizationFields } from '../updateOrganizationFields';
9
10
 
10
11
  export const InnField = JSX<CustomFieldProps>(({ field, input }) => {
12
+ const store = useCreditFormStore();
13
+
11
14
  const onDaDataChange = useCallback((item: DaDataSuggestion) => {
12
- field?.('organizationAddress')?.onChange?.(
13
- getAddressFromDaDataItem(item.data?.address as DaDataSuggestion),
14
- );
15
15
  field?.('organizationName')?.onChange?.(item.data?.name?.short_with_opf);
16
- field?.('legalForm')?.onChange?.(item.data?.opf?.short);
16
+ updateOrganizationFields(store, field, item);
17
17
  }, []);
18
18
 
19
19
  return (
@@ -1,15 +1,25 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useCreditFormStore } from '../../../hooks/useCreditFormStore';
2
4
  import { useLeadFormData } from '../../../hooks/useLeadFormData';
3
5
  import { type CustomFieldProps } from '../CustomFieldProps';
4
6
  import { SelectField } from '../SelectField';
5
7
 
6
8
  export const OrganizationField = JSX<CustomFieldProps>(({ field, input }) => {
7
- const { data: organization } = useLeadFormData('ORGANIZATION_TYPE');
9
+ const { data } = useLeadFormData('ORGANIZATION_TYPE');
10
+
11
+ const store = useCreditFormStore();
12
+
13
+ useEffect(() => {
14
+ if (data) {
15
+ store.organization = data;
16
+ }
17
+ }, [data]);
8
18
 
9
19
  return (
10
20
  <SelectField
11
21
  field={field}
12
- source={organization}
22
+ source={store.organization ?? []}
13
23
  label="Тип организации"
14
24
  fieldName="organization"
15
25
  input={input}
@@ -1,15 +1,19 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { type DaDataSuggestion } from '../../../api/dadataHints/dadataHintsType';
4
+ import { useCreditFormStore } from '../../../hooks/useCreditFormStore';
4
5
  import { InputControl } from '../../Input/InputControl';
5
6
  import { type CustomFieldProps } from '../CustomFieldProps';
6
7
  import { validatorObj } from '../getObjectValidator';
7
8
  import { getValidation } from '../getValidation';
9
+ import { updateOrganizationFields } from '../updateOrganizationFields';
8
10
 
9
11
  export const OrganizationNameField = JSX<CustomFieldProps>(({ field, input }) => {
12
+ const store = useCreditFormStore();
13
+
10
14
  const onDaDataChange = useCallback((item: DaDataSuggestion) => {
11
15
  field?.('inn')?.onChange?.(item.data?.inn);
12
- field?.('legalForm')?.onChange?.(item.data?.opf?.short);
16
+ updateOrganizationFields(store, field, item);
13
17
  }, []);
14
18
 
15
19
  return (
@@ -1,8 +1,8 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { getPaymentSystems } from '../../../api/RetailAPI/getPaymentSystems';
4
+ import { type PaymentSystem } from '../../../api/RetailAPI/updateUserTask';
4
5
  import { useLocalStorage } from '../../../hooks/useLocalStorage';
5
- import { type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
6
6
  import { RadioButtonGroupControl } from '../../RadioButtonGroup/RadioButtonGroupControl';
7
7
  import { type CustomFieldProps } from '../CustomFieldProps';
8
8
  import { validatorObj } from '../getObjectValidator';
@@ -12,7 +12,7 @@ export const PaymentSystemField = JSX<CustomFieldProps>(({ field, input }) => {
12
12
  const { value, onChange } = field('paymentSystem');
13
13
  const [programId] = useLocalStorage<string>('programId');
14
14
 
15
- const [paymentSystemOptions, setPaymentSystemOptions] = useState<RadioButtonItem[]>([]);
15
+ const [paymentSystemOptions, setPaymentSystemOptions] = useState<PaymentSystem[]>([]);
16
16
 
17
17
  useEffect(() => {
18
18
  if (programId) {
@@ -23,14 +23,22 @@ export const PaymentSystemField = JSX<CustomFieldProps>(({ field, input }) => {
23
23
  }
24
24
  }, []);
25
25
 
26
+ const handleChange = useCallback(
27
+ (type: string) => onChange?.(paymentSystemOptions?.find((_) => _.type === type)),
28
+ [paymentSystemOptions, onChange],
29
+ );
30
+
26
31
  return (
27
32
  <RadioButtonGroupControl
28
33
  label="Платежная система"
29
34
  orientation="horizontal"
30
- items={paymentSystemOptions}
31
- value={value}
32
- onChange={(_) => onChange?.(_)}
35
+ items={formatPaymentSystems(paymentSystemOptions)}
33
36
  {...getValidation(field('paymentSystem'), validatorObj.paymentSystem, input?.required)}
37
+ value={value?.type}
38
+ onChange={handleChange}
34
39
  />
35
40
  );
36
41
  });
42
+
43
+ const formatPaymentSystems = (paymentSystems: PaymentSystem[]) =>
44
+ paymentSystems?.map((_) => ({ id: _.type, text: _.name })) ?? [];
@@ -1,3 +1,4 @@
1
+ import { type LeadProps } from '../../api/RetailAPI/model/LeadFormData';
1
2
  import { UniBlock } from '../../UniBlock/UniBlock';
2
3
  import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
3
4
  import { type Option } from '../Select/Option';
@@ -6,14 +7,6 @@ import { type CustomFieldProps } from './CustomFieldProps';
6
7
  import { validatorObj } from './getObjectValidator';
7
8
  import { getValidation } from './getValidation';
8
9
 
9
- export interface LeadProps {
10
- type?: string;
11
- key?: string;
12
- value?: string;
13
- displayOrder?: number;
14
- description?: string;
15
- }
16
-
17
10
  export interface SelectFieldProps extends CustomFieldProps, UniBlockProps {
18
11
  source?: LeadProps[];
19
12
  label: string;
@@ -33,14 +33,14 @@ export const validatorObj: Record<string, Validator> = {
33
33
  birthday: defaultValidator('Укажите дату рождения'),
34
34
  limitedBirthday: limitedBirthdayValidator(),
35
35
  birthPlace: defaultValidator('Укажите место рождения'),
36
- education: defaultValidator('Выберите ваше образование'),
37
- housing: defaultValidator('Выберите тип жилья'),
38
- employment: defaultValidator('Выберите информацию о трудоустройстве'),
39
- organization: defaultValidator('Выберите тип организации'),
40
- amountWorkers: defaultValidator('Выберите информацию о количестве сотрудников'),
41
- employerActivities: defaultValidator('Выберите вид деятельности организации'),
42
- employerOrganization: defaultValidator('Выберите вид организации'),
43
- positionOrganization: defaultValidator('Выберите вашу должность'),
36
+ education: defaultSelectValidator('Выберите ваше образование'),
37
+ housing: defaultSelectValidator('Выберите тип жилья'),
38
+ employment: defaultSelectValidator('Выберите информацию о трудоустройстве'),
39
+ organization: defaultSelectValidator('Выберите тип организации'),
40
+ amountWorkers: defaultSelectValidator('Выберите информацию о количестве сотрудников'),
41
+ employerActivities: defaultSelectValidator('Выберите вид деятельности организации'),
42
+ employerOrganization: defaultSelectValidator('Выберите вид организации'),
43
+ positionOrganization: defaultSelectValidator('Выберите вашу должность'),
44
44
  dulSerie: serieValidator('Укажите серию паспорта'),
45
45
  dulNumber: numberValidator('Укажите номер паспорта'),
46
46
  dulIssueDateField: defaultValidator('Укажите дату выдачи паспорта'),
@@ -76,7 +76,7 @@ export const validatorObj: Record<string, Validator> = {
76
76
  consentPfrFlg: agreementValidator,
77
77
  consentOthersFlg: agreementValidator,
78
78
  consentInformFlg: agreementValidator,
79
- familyStatus: defaultValidator('Выберите семейное положение'),
79
+ familyStatus: defaultSelectValidator('Выберите семейное положение'),
80
80
  children: lengthStringValidator(2, 'Укажите количество детей'),
81
81
  familyMembers: lengthStringValidator(2, 'Укажите количество членов семьи'),
82
82
  dependents: lengthStringValidator(2, 'Укажите количество иждивенцев'),
@@ -102,7 +102,7 @@ export const validatorObj: Record<string, Validator> = {
102
102
  addressRetail: defaultSelectValidator('Выберите адрес банка'),
103
103
  addressMatch: defaultValidator(),
104
104
  codeWord: codeWordValidator('Необходимо ввести кодовое слово'),
105
- confirmationIncome: defaultValidator(),
105
+ confirmationIncome: defaultSelectValidator(),
106
106
  deliveryDate: defaultValidator('Укажите дату доставки'),
107
107
  addressCourier: addressDaDataValidator(),
108
108
  cardCategory: defaultValidator('Укажите категорию карты'),
@@ -0,0 +1,40 @@
1
+ import { type DaDataSuggestion } from '../../api/dadataHints/dadataHintsType';
2
+ import {
3
+ getEmployeesNumberOption,
4
+ getOrganizationActivityType,
5
+ getOrganizationKind,
6
+ getOrganizationType,
7
+ } from '../../api/RetailAPI/utils/getOrganizationParams';
8
+ import { type CreditFormStore } from '../../hooks/useCreditFormStore';
9
+ import { type FormFieldRegisterer } from '../../hooks/useForm';
10
+ import { getAddressFromDaDataItem } from './Fields/AddressField';
11
+
12
+ export const updateOrganizationFields = (
13
+ store: CreditFormStore,
14
+ field: FormFieldRegisterer<any>,
15
+ item: DaDataSuggestion,
16
+ ) => {
17
+ const inn = item.data?.inn ?? '';
18
+ const okopf = Number(item.data?.opf?.code);
19
+ const okved = item.data?.okved ?? '';
20
+
21
+ field?.('legalForm')?.onChange?.(item.data?.opf?.short);
22
+
23
+ field?.('organizationAddress')?.onChange?.(
24
+ getAddressFromDaDataItem(item.data?.address as DaDataSuggestion),
25
+ );
26
+
27
+ field?.('amountWorkers')?.onChange?.(
28
+ getEmployeesNumberOption(store?.amountWorkers, item.data?.employee_count),
29
+ );
30
+
31
+ field?.('employerActivities')?.onChange?.(
32
+ getOrganizationActivityType(store?.employerActivities ?? [], okved),
33
+ );
34
+
35
+ field?.('organization')?.onChange?.(getOrganizationType(store?.organization ?? [], okopf, inn));
36
+
37
+ field?.('employerOrganization')?.onChange?.(
38
+ getOrganizationKind(store?.employerOrganization ?? [], okopf),
39
+ );
40
+ };
@@ -1,4 +1,4 @@
1
- import { type Address } from '../../components/ApplicationLeadForm/getInitialFormState';
1
+ import { type Address } from '../../components/ApplicationLeadForm/LeadFormState';
2
2
  import { pattern } from '../../validation/pattern';
3
3
  import { required } from '../../validation/required';
4
4
  import { validator } from '../../validation/validator';
@@ -1,26 +1,26 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { style } from '../../utils/style';
3
- import { getHtmlText } from './getHtmlText';
4
3
  import { type RichTextProps } from './RichTextProps';
5
4
 
6
- const EMPTY_HTML = '<p><br></p>';
5
+ export const RichText = JSX<RichTextProps>(
6
+ ({ __html = '', richVersion = '', itemSize = 'list-m', isDotted = true, children }) => {
7
+ const dotStyle = isDotted ? '' : 'without-dots';
7
8
 
8
- export const RichText = JSX<RichTextProps>((props) => {
9
- const { __html = '', richVersion = '', itemSize = 'list-m', isDotted = true } = props;
10
- const dotStyle = isDotted ? '' : 'without-dots';
11
-
12
- return __html && getHtmlText(__html) !== EMPTY_HTML ? (
13
- /* Attribute [data-component] need for correct render in wcms editor. Do not remove. */
14
- <div data-component="rich-text-container">
15
- <div
16
- className={style(
17
- richVersion,
18
- itemSize,
19
- 'md-container group-data-secondary:text-white group-data-gray:text-secondary-text',
20
- dotStyle,
21
- )}
22
- dangerouslySetInnerHTML={{ __html }}
23
- />
24
- </div>
25
- ) : null;
26
- });
9
+ return __html || children ? (
10
+ /* Attribute [data-component] need for correct render in wcms editor. Do not remove. */
11
+ <div data-component="rich-text-container">
12
+ <div
13
+ className={style(
14
+ richVersion,
15
+ itemSize,
16
+ 'md-container group-data-secondary:text-white group-data-gray:text-secondary-text',
17
+ dotStyle,
18
+ )}
19
+ dangerouslySetInnerHTML={__html ? { __html } : undefined}
20
+ >
21
+ {children}
22
+ </div>
23
+ </div>
24
+ ) : null;
25
+ },
26
+ );
@@ -3,20 +3,17 @@ import '../../setup-fixture';
3
3
  import { DialogManager } from '../../ui-kit/DialogManager/DialogManager';
4
4
  import { VerifyPhoneDialog } from './VerifyPhoneDialog';
5
5
 
6
- const title = 'Подтвердите номер телефона';
7
-
8
- const description = 'Мы отправили код на';
9
-
10
- const __html = `Вводя код, я подтверждаю, что ознакомлен и подписываю:
11
- <ul><li>соглашение о порядке использования простой электронной подписи,
12
- </li><li>согласие на обработку персональных данных,
13
- </li><li>предоставление и подписание прочих согласий Банка,
14
- </li><li>согласие на запрос в ПФР</li></ul>`;
6
+ const consents = [
7
+ 'соглашение о порядке использования простой электронной подписи,',
8
+ 'согласие на обработку персональных данных,',
9
+ 'предоставление и подписание прочих согласий Банка,',
10
+ 'согласие на запрос в ПФР',
11
+ ];
15
12
 
16
13
  export default {
17
14
  default: (
18
15
  <div>
19
- <VerifyPhoneDialog title={title} description={description} __html={__html} />
16
+ <VerifyPhoneDialog phone="+71234567890" consents={consents} />
20
17
  <DialogManager />
21
18
  </div>
22
19
  ),