@redneckz/wildless-cms-uni-blocks 0.14.916 → 0.14.918

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 (303) hide show
  1. package/bundle/bundle.umd.js +160 -121
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -2
  4. package/bundle/retail/api/getDictionaries.d.ts +2 -0
  5. package/bundle/retail/components/Fields/BankEmployeeCodeField.d.ts +3 -1
  6. package/bundle/retail/hooks/useReferalProgramm.d.ts +1 -0
  7. package/bundle/retail/model/LeadFormState.d.ts +1 -1
  8. package/bundle/retail/model/NameFieldDef.d.ts +1 -1
  9. package/bundle/retail/utils/getOrganizationParams.d.ts +6 -0
  10. package/bundle/retail/validator/validators.d.ts +2 -0
  11. package/bundle/ui-kit/FormField/validators.d.ts +1 -0
  12. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +3 -1
  13. package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  14. package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -2
  15. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +5 -21
  16. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  17. package/dist/components/CreditCardForm/creditCardFormStepsData.js +21 -18
  18. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  19. package/dist/components/CreditCardForm/formStateMap.js +6 -0
  20. package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
  21. package/dist/components/CreditForm/creditFormStepsData.js +14 -17
  22. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  23. package/dist/retail/adaptors/getPersonalInfoData.js +1 -9
  24. package/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
  25. package/dist/retail/api/getDictionaries.d.ts +2 -0
  26. package/dist/retail/api/getDictionaries.js +13 -0
  27. package/dist/retail/api/getDictionaries.js.map +1 -0
  28. package/dist/retail/components/DraftDialog/parseDraftTask.js +1 -0
  29. package/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  30. package/dist/retail/components/Fields/AmountWorkersField.js +0 -8
  31. package/dist/retail/components/Fields/AmountWorkersField.js.map +1 -1
  32. package/dist/retail/components/Fields/BankEmployeeCodeField.d.ts +3 -1
  33. package/dist/retail/components/Fields/BankEmployeeCodeField.js +17 -2
  34. package/dist/retail/components/Fields/BankEmployeeCodeField.js.map +1 -1
  35. package/dist/retail/components/Fields/DaDataInnField.js +21 -8
  36. package/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
  37. package/dist/retail/components/Fields/EmployerActivitiesField.js +0 -8
  38. package/dist/retail/components/Fields/EmployerActivitiesField.js.map +1 -1
  39. package/dist/retail/components/Fields/EmployerOrganizationField.js +0 -8
  40. package/dist/retail/components/Fields/EmployerOrganizationField.js.map +1 -1
  41. package/dist/retail/components/Fields/OrganizationField.js +0 -8
  42. package/dist/retail/components/Fields/OrganizationField.js.map +1 -1
  43. package/dist/retail/components/Fields/OrganizationNameField.js +12 -2
  44. package/dist/retail/components/Fields/OrganizationNameField.js.map +1 -1
  45. package/dist/retail/content.js +4 -11
  46. package/dist/retail/content.js.map +1 -1
  47. package/dist/retail/hooks/useReferalProgramm.d.ts +1 -0
  48. package/dist/retail/hooks/useReferalProgramm.js +43 -0
  49. package/dist/retail/hooks/useReferalProgramm.js.map +1 -0
  50. package/dist/retail/inputs.js +1 -1
  51. package/dist/retail/inputs.js.map +1 -1
  52. package/dist/retail/model/LeadFormState.d.ts +1 -1
  53. package/dist/retail/model/NameFieldDef.d.ts +1 -1
  54. package/dist/retail/utils/getMainFormStateMap.js +1 -6
  55. package/dist/retail/utils/getMainFormStateMap.js.map +1 -1
  56. package/dist/retail/utils/getOrganizationParams.d.ts +6 -0
  57. package/dist/retail/utils/getOrganizationParams.js +7 -1
  58. package/dist/retail/utils/getOrganizationParams.js.map +1 -1
  59. package/dist/retail/utils/updateOrganizationFields.js +2 -0
  60. package/dist/retail/utils/updateOrganizationFields.js.map +1 -1
  61. package/dist/retail/validator/getRetailFormValidator.js +2 -0
  62. package/dist/retail/validator/getRetailFormValidator.js.map +1 -1
  63. package/dist/retail/validator/validators.d.ts +2 -0
  64. package/dist/retail/validator/validators.js +6 -1
  65. package/dist/retail/validator/validators.js.map +1 -1
  66. package/dist/ui-kit/FormField/validators.d.ts +1 -0
  67. package/dist/ui-kit/FormField/validators.js +4 -3
  68. package/dist/ui-kit/FormField/validators.js.map +1 -1
  69. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +3 -1
  70. package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  71. package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -2
  72. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +5 -21
  73. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  74. package/lib/components/CreditCardForm/creditCardFormStepsData.js +21 -18
  75. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  76. package/lib/components/CreditCardForm/formStateMap.js +6 -0
  77. package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
  78. package/lib/components/CreditForm/creditFormStepsData.js +14 -17
  79. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  80. package/lib/retail/adaptors/getPersonalInfoData.js +2 -10
  81. package/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
  82. package/lib/retail/api/getDictionaries.d.ts +2 -0
  83. package/lib/retail/api/getDictionaries.js +10 -0
  84. package/lib/retail/api/getDictionaries.js.map +1 -0
  85. package/lib/retail/components/DraftDialog/parseDraftTask.js +1 -0
  86. package/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  87. package/lib/retail/components/Fields/AmountWorkersField.js +0 -8
  88. package/lib/retail/components/Fields/AmountWorkersField.js.map +1 -1
  89. package/lib/retail/components/Fields/BankEmployeeCodeField.d.ts +3 -1
  90. package/lib/retail/components/Fields/BankEmployeeCodeField.js +17 -2
  91. package/lib/retail/components/Fields/BankEmployeeCodeField.js.map +1 -1
  92. package/lib/retail/components/Fields/DaDataInnField.js +22 -9
  93. package/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
  94. package/lib/retail/components/Fields/EmployerActivitiesField.js +0 -8
  95. package/lib/retail/components/Fields/EmployerActivitiesField.js.map +1 -1
  96. package/lib/retail/components/Fields/EmployerOrganizationField.js +0 -8
  97. package/lib/retail/components/Fields/EmployerOrganizationField.js.map +1 -1
  98. package/lib/retail/components/Fields/OrganizationField.js +0 -8
  99. package/lib/retail/components/Fields/OrganizationField.js.map +1 -1
  100. package/lib/retail/components/Fields/OrganizationNameField.js +13 -3
  101. package/lib/retail/components/Fields/OrganizationNameField.js.map +1 -1
  102. package/lib/retail/content.js +4 -11
  103. package/lib/retail/content.js.map +1 -1
  104. package/lib/retail/hooks/useReferalProgramm.d.ts +1 -0
  105. package/lib/retail/hooks/useReferalProgramm.js +40 -0
  106. package/lib/retail/hooks/useReferalProgramm.js.map +1 -0
  107. package/lib/retail/inputs.js +2 -2
  108. package/lib/retail/inputs.js.map +1 -1
  109. package/lib/retail/model/LeadFormState.d.ts +1 -1
  110. package/lib/retail/model/NameFieldDef.d.ts +1 -1
  111. package/lib/retail/utils/getMainFormStateMap.js +1 -6
  112. package/lib/retail/utils/getMainFormStateMap.js.map +1 -1
  113. package/lib/retail/utils/getOrganizationParams.d.ts +6 -0
  114. package/lib/retail/utils/getOrganizationParams.js +6 -0
  115. package/lib/retail/utils/getOrganizationParams.js.map +1 -1
  116. package/lib/retail/utils/updateOrganizationFields.js +2 -0
  117. package/lib/retail/utils/updateOrganizationFields.js.map +1 -1
  118. package/lib/retail/validator/getRetailFormValidator.js +3 -1
  119. package/lib/retail/validator/getRetailFormValidator.js.map +1 -1
  120. package/lib/retail/validator/validators.d.ts +2 -0
  121. package/lib/retail/validator/validators.js +3 -0
  122. package/lib/retail/validator/validators.js.map +1 -1
  123. package/lib/ui-kit/FormField/validators.d.ts +1 -0
  124. package/lib/ui-kit/FormField/validators.js +1 -1
  125. package/lib/ui-kit/FormField/validators.js.map +1 -1
  126. package/mobile/bundle/bundle.umd.js +160 -121
  127. package/mobile/bundle/bundle.umd.min.js +1 -1
  128. package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -2
  129. package/mobile/bundle/retail/api/getDictionaries.d.ts +2 -0
  130. package/mobile/bundle/retail/components/Fields/BankEmployeeCodeField.d.ts +3 -1
  131. package/mobile/bundle/retail/hooks/useReferalProgramm.d.ts +1 -0
  132. package/mobile/bundle/retail/model/LeadFormState.d.ts +1 -1
  133. package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
  134. package/mobile/bundle/retail/utils/getOrganizationParams.d.ts +6 -0
  135. package/mobile/bundle/retail/validator/validators.d.ts +2 -0
  136. package/mobile/bundle/ui-kit/FormField/validators.d.ts +1 -0
  137. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +3 -1
  138. package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  139. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -2
  140. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +5 -21
  141. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  142. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +21 -18
  143. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  144. package/mobile/dist/components/CreditCardForm/formStateMap.js +6 -0
  145. package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
  146. package/mobile/dist/components/CreditForm/creditFormStepsData.js +14 -17
  147. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  148. package/mobile/dist/retail/adaptors/getPersonalInfoData.js +1 -9
  149. package/mobile/dist/retail/adaptors/getPersonalInfoData.js.map +1 -1
  150. package/mobile/dist/retail/api/getDictionaries.d.ts +2 -0
  151. package/mobile/dist/retail/api/getDictionaries.js +13 -0
  152. package/mobile/dist/retail/api/getDictionaries.js.map +1 -0
  153. package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js +1 -0
  154. package/mobile/dist/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  155. package/mobile/dist/retail/components/Fields/AmountWorkersField.js +0 -8
  156. package/mobile/dist/retail/components/Fields/AmountWorkersField.js.map +1 -1
  157. package/mobile/dist/retail/components/Fields/BankEmployeeCodeField.d.ts +3 -1
  158. package/mobile/dist/retail/components/Fields/BankEmployeeCodeField.js +17 -2
  159. package/mobile/dist/retail/components/Fields/BankEmployeeCodeField.js.map +1 -1
  160. package/mobile/dist/retail/components/Fields/DaDataInnField.js +21 -8
  161. package/mobile/dist/retail/components/Fields/DaDataInnField.js.map +1 -1
  162. package/mobile/dist/retail/components/Fields/EmployerActivitiesField.js +0 -8
  163. package/mobile/dist/retail/components/Fields/EmployerActivitiesField.js.map +1 -1
  164. package/mobile/dist/retail/components/Fields/EmployerOrganizationField.js +0 -8
  165. package/mobile/dist/retail/components/Fields/EmployerOrganizationField.js.map +1 -1
  166. package/mobile/dist/retail/components/Fields/OrganizationField.js +0 -8
  167. package/mobile/dist/retail/components/Fields/OrganizationField.js.map +1 -1
  168. package/mobile/dist/retail/components/Fields/OrganizationNameField.js +12 -2
  169. package/mobile/dist/retail/components/Fields/OrganizationNameField.js.map +1 -1
  170. package/mobile/dist/retail/content.js +4 -11
  171. package/mobile/dist/retail/content.js.map +1 -1
  172. package/mobile/dist/retail/hooks/useReferalProgramm.d.ts +1 -0
  173. package/mobile/dist/retail/hooks/useReferalProgramm.js +43 -0
  174. package/mobile/dist/retail/hooks/useReferalProgramm.js.map +1 -0
  175. package/mobile/dist/retail/inputs.js +1 -1
  176. package/mobile/dist/retail/inputs.js.map +1 -1
  177. package/mobile/dist/retail/model/LeadFormState.d.ts +1 -1
  178. package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
  179. package/mobile/dist/retail/utils/getMainFormStateMap.js +1 -6
  180. package/mobile/dist/retail/utils/getMainFormStateMap.js.map +1 -1
  181. package/mobile/dist/retail/utils/getOrganizationParams.d.ts +6 -0
  182. package/mobile/dist/retail/utils/getOrganizationParams.js +7 -1
  183. package/mobile/dist/retail/utils/getOrganizationParams.js.map +1 -1
  184. package/mobile/dist/retail/utils/updateOrganizationFields.js +2 -0
  185. package/mobile/dist/retail/utils/updateOrganizationFields.js.map +1 -1
  186. package/mobile/dist/retail/validator/getRetailFormValidator.js +2 -0
  187. package/mobile/dist/retail/validator/getRetailFormValidator.js.map +1 -1
  188. package/mobile/dist/retail/validator/validators.d.ts +2 -0
  189. package/mobile/dist/retail/validator/validators.js +6 -1
  190. package/mobile/dist/retail/validator/validators.js.map +1 -1
  191. package/mobile/dist/ui-kit/FormField/validators.d.ts +1 -0
  192. package/mobile/dist/ui-kit/FormField/validators.js +4 -3
  193. package/mobile/dist/ui-kit/FormField/validators.js.map +1 -1
  194. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +3 -1
  195. package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
  196. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +0 -2
  197. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +5 -21
  198. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  199. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +21 -18
  200. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  201. package/mobile/lib/components/CreditCardForm/formStateMap.js +6 -0
  202. package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
  203. package/mobile/lib/components/CreditForm/creditFormStepsData.js +14 -17
  204. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  205. package/mobile/lib/retail/adaptors/getPersonalInfoData.js +2 -10
  206. package/mobile/lib/retail/adaptors/getPersonalInfoData.js.map +1 -1
  207. package/mobile/lib/retail/api/getDictionaries.d.ts +2 -0
  208. package/mobile/lib/retail/api/getDictionaries.js +10 -0
  209. package/mobile/lib/retail/api/getDictionaries.js.map +1 -0
  210. package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js +1 -0
  211. package/mobile/lib/retail/components/DraftDialog/parseDraftTask.js.map +1 -1
  212. package/mobile/lib/retail/components/Fields/AmountWorkersField.js +0 -8
  213. package/mobile/lib/retail/components/Fields/AmountWorkersField.js.map +1 -1
  214. package/mobile/lib/retail/components/Fields/BankEmployeeCodeField.d.ts +3 -1
  215. package/mobile/lib/retail/components/Fields/BankEmployeeCodeField.js +17 -2
  216. package/mobile/lib/retail/components/Fields/BankEmployeeCodeField.js.map +1 -1
  217. package/mobile/lib/retail/components/Fields/DaDataInnField.js +22 -9
  218. package/mobile/lib/retail/components/Fields/DaDataInnField.js.map +1 -1
  219. package/mobile/lib/retail/components/Fields/EmployerActivitiesField.js +0 -8
  220. package/mobile/lib/retail/components/Fields/EmployerActivitiesField.js.map +1 -1
  221. package/mobile/lib/retail/components/Fields/EmployerOrganizationField.js +0 -8
  222. package/mobile/lib/retail/components/Fields/EmployerOrganizationField.js.map +1 -1
  223. package/mobile/lib/retail/components/Fields/OrganizationField.js +0 -8
  224. package/mobile/lib/retail/components/Fields/OrganizationField.js.map +1 -1
  225. package/mobile/lib/retail/components/Fields/OrganizationNameField.js +13 -3
  226. package/mobile/lib/retail/components/Fields/OrganizationNameField.js.map +1 -1
  227. package/mobile/lib/retail/content.js +4 -11
  228. package/mobile/lib/retail/content.js.map +1 -1
  229. package/mobile/lib/retail/hooks/useReferalProgramm.d.ts +1 -0
  230. package/mobile/lib/retail/hooks/useReferalProgramm.js +40 -0
  231. package/mobile/lib/retail/hooks/useReferalProgramm.js.map +1 -0
  232. package/mobile/lib/retail/inputs.js +2 -2
  233. package/mobile/lib/retail/inputs.js.map +1 -1
  234. package/mobile/lib/retail/model/LeadFormState.d.ts +1 -1
  235. package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
  236. package/mobile/lib/retail/utils/getMainFormStateMap.js +1 -6
  237. package/mobile/lib/retail/utils/getMainFormStateMap.js.map +1 -1
  238. package/mobile/lib/retail/utils/getOrganizationParams.d.ts +6 -0
  239. package/mobile/lib/retail/utils/getOrganizationParams.js +6 -0
  240. package/mobile/lib/retail/utils/getOrganizationParams.js.map +1 -1
  241. package/mobile/lib/retail/utils/updateOrganizationFields.js +2 -0
  242. package/mobile/lib/retail/utils/updateOrganizationFields.js.map +1 -1
  243. package/mobile/lib/retail/validator/getRetailFormValidator.js +3 -1
  244. package/mobile/lib/retail/validator/getRetailFormValidator.js.map +1 -1
  245. package/mobile/lib/retail/validator/validators.d.ts +2 -0
  246. package/mobile/lib/retail/validator/validators.js +3 -0
  247. package/mobile/lib/retail/validator/validators.js.map +1 -1
  248. package/mobile/lib/ui-kit/FormField/validators.d.ts +1 -0
  249. package/mobile/lib/ui-kit/FormField/validators.js +1 -1
  250. package/mobile/lib/ui-kit/FormField/validators.js.map +1 -1
  251. package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +3 -1
  252. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +6 -32
  253. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +21 -18
  254. package/mobile/src/components/CreditCardForm/formStateMap.tsx +6 -0
  255. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +14 -17
  256. package/mobile/src/retail/adaptors/getPersonalInfoData.tsx +1 -14
  257. package/mobile/src/retail/api/getDictionaries.ts +21 -0
  258. package/mobile/src/retail/components/DraftDialog/parseDraftTask.ts +1 -0
  259. package/mobile/src/retail/components/Fields/AmountWorkersField.tsx +0 -10
  260. package/mobile/src/retail/components/Fields/BankEmployeeCodeField.tsx +41 -9
  261. package/mobile/src/retail/components/Fields/DaDataInnField.tsx +28 -10
  262. package/mobile/src/retail/components/Fields/EmployerActivitiesField.tsx +0 -10
  263. package/mobile/src/retail/components/Fields/EmployerOrganizationField.tsx +0 -10
  264. package/mobile/src/retail/components/Fields/OrganizationField.tsx +0 -10
  265. package/mobile/src/retail/components/Fields/OrganizationNameField.tsx +17 -2
  266. package/mobile/src/retail/content.tsx +4 -11
  267. package/mobile/src/retail/hooks/useReferalProgramm.ts +45 -0
  268. package/mobile/src/retail/inputs.tsx +2 -2
  269. package/mobile/src/retail/model/LeadFormState.ts +1 -1
  270. package/mobile/src/retail/model/NameFieldDef.ts +1 -0
  271. package/mobile/src/retail/utils/getMainFormStateMap.ts +1 -6
  272. package/mobile/src/retail/utils/getOrganizationParams.ts +7 -0
  273. package/mobile/src/retail/utils/updateOrganizationFields.ts +2 -0
  274. package/mobile/src/retail/validator/getRetailFormValidator.ts +4 -0
  275. package/mobile/src/retail/validator/validators.ts +9 -0
  276. package/mobile/src/ui-kit/FormField/validators.ts +1 -1
  277. package/package.json +1 -1
  278. package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +3 -1
  279. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +6 -32
  280. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +21 -18
  281. package/src/components/CreditCardForm/formStateMap.tsx +6 -0
  282. package/src/components/CreditForm/creditFormStepsData.tsx +14 -17
  283. package/src/retail/adaptors/getPersonalInfoData.tsx +1 -14
  284. package/src/retail/api/getDictionaries.ts +21 -0
  285. package/src/retail/components/DraftDialog/parseDraftTask.ts +1 -0
  286. package/src/retail/components/Fields/AmountWorkersField.tsx +0 -10
  287. package/src/retail/components/Fields/BankEmployeeCodeField.tsx +41 -9
  288. package/src/retail/components/Fields/DaDataInnField.tsx +28 -10
  289. package/src/retail/components/Fields/EmployerActivitiesField.tsx +0 -10
  290. package/src/retail/components/Fields/EmployerOrganizationField.tsx +0 -10
  291. package/src/retail/components/Fields/OrganizationField.tsx +0 -10
  292. package/src/retail/components/Fields/OrganizationNameField.tsx +17 -2
  293. package/src/retail/content.tsx +4 -11
  294. package/src/retail/hooks/useReferalProgramm.ts +45 -0
  295. package/src/retail/inputs.tsx +2 -2
  296. package/src/retail/model/LeadFormState.ts +1 -1
  297. package/src/retail/model/NameFieldDef.ts +1 -0
  298. package/src/retail/utils/getMainFormStateMap.ts +1 -6
  299. package/src/retail/utils/getOrganizationParams.ts +7 -0
  300. package/src/retail/utils/updateOrganizationFields.ts +2 -0
  301. package/src/retail/validator/getRetailFormValidator.ts +4 -0
  302. package/src/retail/validator/validators.ts +9 -0
  303. package/src/ui-kit/FormField/validators.ts +1 -1
@@ -3040,6 +3040,8 @@
3040
3040
  }
3041
3041
  return false;
3042
3042
  });
3043
+ const organizationNameValidator = (isDadataOrganization) => validator((_) => Boolean(_) && Boolean(isDadataOrganization))('Укажите наименование организации');
3044
+ const organizationInnValidator = (isDadataOrganization) => validator((_) => isValidInnLength(_) && Boolean(isDadataOrganization))('Укажите ИНН');
3043
3045
 
3044
3046
  const limitedBirthdayValidationData = {
3045
3047
  credit: {
@@ -4405,19 +4407,28 @@
4405
4407
  });
4406
4408
 
4407
4409
  const AmountWorkersField = JSX(({ field, input }) => {
4408
- const { data } = useLeadFormData('EMPLOYEES_NUMBER');
4409
4410
  const store = useRetailFormStore();
4410
- useEffect(() => {
4411
- if (data) {
4412
- store.amountWorkers = data;
4413
- }
4414
- }, [data]);
4415
4411
  return (jsx(SelectField, { field: field, source: store.amountWorkers ?? [], label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0449\u0438\u0445 \u0432 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", fieldName: "amountWorkers", input: input }));
4416
4412
  });
4417
4413
 
4418
4414
  const ArmyIdFlgField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u041D\u0430\u043B\u0438\u0447\u0438\u0435 \u0432\u043E\u0435\u043D\u043D\u043E\u0433\u043E \u0431\u0438\u043B\u0435\u0442\u0430", ...field(input?.name ?? '') })));
4419
4415
 
4420
- const BankEmpoleeCodeField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u041A\u043E\u0434 \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044F \u0411\u0430\u043D\u043A\u0430", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434", isInteger: true, ...field(input?.name ?? ''), ...input })));
4416
+ const RadioButtonGroupControl = JSX(({ className, label, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(RadioButtonGroup, { label: getRequiredLabel({ label, errors: rest?.errors }), ...rest }), renderErrorText(error)] })));
4417
+
4418
+ const BUTTON_TYPES = [
4419
+ { id: 'true', text: 'Да' },
4420
+ { id: 'false', text: 'Нет' },
4421
+ ];
4422
+ const BankEmployeeCodeField = JSX(({ field, input }) => {
4423
+ const [bankEmployeeFlg, setBankEmployeeFlg] = useState('');
4424
+ const handleBankEmployeeFlgChange = useCallback((value) => {
4425
+ setBankEmployeeFlg(value);
4426
+ if (value === 'false') {
4427
+ field('bankEmployeeCode')?.onChange?.(null);
4428
+ }
4429
+ }, []);
4430
+ return (jsxs("div", { className: "flex flex-col md:flex-row", children: [jsx(RadioButtonGroupControl, { label: "\u041C\u043D\u0435 \u043F\u043E\u043C\u043E\u0433 \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A \u0411\u0430\u043D\u043A\u0430", orientation: "horizontal", items: BUTTON_TYPES, value: bankEmployeeFlg, onChange: handleBankEmployeeFlgChange }), bankEmployeeFlg === 'true' ? (jsx(DaDataInputControl, { label: "\u041A\u043E\u0434 \u043F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044F \u0411\u0430\u043D\u043A\u0430", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434", isInteger: true, maxLength: 8, ...field(input?.name ?? ''), ...input })) : null] }));
4431
+ });
4421
4432
 
4422
4433
  const BankruptcyFlgField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u0412 \u043E\u0442\u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u043C\u0435\u043D\u044F \u0432\u0435\u0434\u0451\u0442\u0441\u044F \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0441\u0442\u0432\u043E \u043F\u043E \u0434\u0435\u043B\u0443 \u043E \u0431\u0430\u043D\u043A\u0440\u043E\u0442\u0441\u0442\u0432\u0435", ...field(input?.name ?? '') })));
4423
4434
 
@@ -4882,8 +4893,6 @@
4882
4893
  47: 'owner_debit_card_pens_plus',
4883
4894
  };
4884
4895
 
4885
- const RadioButtonGroupControl = JSX(({ className, label, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(RadioButtonGroup, { label: getRequiredLabel({ label, errors: rest?.errors }), ...rest }), renderErrorText(error)] })));
4886
-
4887
4896
  const RUBLE = [{ id: '810', text: 'Рубли' }];
4888
4897
  const CurrencyField = JSX(({ field, input }) => {
4889
4898
  const { data } = useLeadFormData('CURRENCY');
@@ -4893,6 +4902,15 @@
4893
4902
  return (jsx(RadioButtonGroupControl, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", orientation: "horizontal", items: currencies, ...field(input?.name ?? '') }));
4894
4903
  });
4895
4904
 
4905
+ const getDictionaries = (dictionaries, store) => {
4906
+ Promise.all(Object.entries(dictionaries).map((dictionary) => {
4907
+ const [fieldName, dictionaryName] = dictionary;
4908
+ fetchRetailJSON(`/dictionary?dictionaryType=${encodeURIComponent(dictionaryName)}`, 'POST').then((res) => {
4909
+ store[fieldName] = res;
4910
+ });
4911
+ }));
4912
+ };
4913
+
4896
4914
  const getOrganizationFromInn = async (inn) => {
4897
4915
  const res = await getDaDataHints({
4898
4916
  url: 'suggest/party',
@@ -5000,6 +5018,12 @@
5000
5018
  const getOptionOp = (options) => (key) => options
5001
5019
  .map((_) => ({ key: _.key, text: _.value }))
5002
5020
  .find((_) => _.key === key) ?? null;
5021
+ const organizationDictionaries = {
5022
+ amountWorkers: 'EMPLOYEES_NUMBER',
5023
+ employerOrganization: 'ORGANIZATION_KIND',
5024
+ employerActivities: 'ORGANIZATION_ACTIVITY_TYPE',
5025
+ organization: 'ORGANIZATION_TYPE',
5026
+ };
5003
5027
 
5004
5028
  const updateOrganizationFields = (store, field, item) => {
5005
5029
  const { okved, okopf, inn, organizationName } = getOrganizationRequisites(item);
@@ -5011,6 +5035,8 @@
5011
5035
  organization: getOrganizationType(store?.organization ?? [], okopf, inn),
5012
5036
  employerOrganization: getOrganizationKind(store?.employerOrganization ?? [], okopf),
5013
5037
  organizationName,
5038
+ inn,
5039
+ isDadataOrganization: true,
5014
5040
  };
5015
5041
  for (const fieldName in organizationData) {
5016
5042
  field?.(fieldName)?.onChange?.(organizationData[fieldName]);
@@ -5023,14 +5049,26 @@
5023
5049
  organizationName: item.data?.name?.short_with_opf ?? '',
5024
5050
  });
5025
5051
 
5052
+ const NO_DADATA_ERROR_TEXT$1 = 'Необходимо выбрать ИНН из выпадающего списка';
5026
5053
  const DaDataInnField = JSX(({ field, input }) => {
5027
5054
  const store = useRetailFormStore();
5055
+ const [errorText, setErrorText] = useState('');
5028
5056
  const { employerActivities, employerOrganization, organization, amountWorkers } = store;
5029
5057
  const esiaAccountTypeCd = field?.('esiaAccountTypeCd')?.value;
5030
5058
  const inn = field?.('inn')?.value;
5059
+ const fieldError = field?.('organizationName')?.error;
5060
+ const isDadataOrganization = field('isDadataOrganization')?.value;
5061
+ useEffect(() => {
5062
+ setErrorText(fieldError && !isDadataOrganization ? NO_DADATA_ERROR_TEXT$1 : '');
5063
+ }, [isDadataOrganization, fieldError]);
5031
5064
  const onDaDataChange = useCallback((item) => {
5032
5065
  updateOrganizationFields(store, field, item);
5033
5066
  }, []);
5067
+ useEffect(() => {
5068
+ (async () => {
5069
+ await getDictionaries(organizationDictionaries, store);
5070
+ })();
5071
+ }, []);
5034
5072
  useEffect(() => {
5035
5073
  if (!esiaAccountTypeCd || !inn || !isDictionariesAlreadyLoad(store)) {
5036
5074
  return;
@@ -5042,16 +5080,15 @@
5042
5080
  }
5043
5081
  })();
5044
5082
  }, [employerActivities, employerOrganization, organization, amountWorkers]);
5045
- return (jsx(DaDataInputControl, { label: "\u0418\u041D\u041D", isInteger: true, maxLength: 12, ...input, ...field(input?.name ?? ''), onDaDataChange: onDaDataChange, disabled: isEsiaAuthorize(field, input) }));
5083
+ const onChange = useCallback((value) => {
5084
+ field?.('inn')?.onChange?.(value);
5085
+ field?.('isDadataOrganization')?.onChange?.(false);
5086
+ }, []);
5087
+ return (jsx(DaDataInputControl, { label: "\u0418\u041D\u041D", isInteger: true, maxLength: 12, ...input, ...field(input?.name ?? ''), onDaDataChange: onDaDataChange, disabled: isEsiaAuthorize(field, input), onChange: onChange, error: errorText || field('inn')?.error }));
5046
5088
  });
5047
5089
  const isDictionariesAlreadyLoad = (store) => {
5048
- const { employerActivities, employerOrganization, organization, amountWorkers, productType } = store;
5049
- return [
5050
- employerOrganization,
5051
- organization,
5052
- amountWorkers,
5053
- productType === 'creditCard' ? employerActivities : true,
5054
- ].every(Boolean);
5090
+ const { employerActivities, employerOrganization, organization, amountWorkers } = store;
5091
+ return [employerOrganization, organization, amountWorkers, employerActivities].every(Boolean);
5055
5092
  };
5056
5093
 
5057
5094
  const DeliveryDateFiels = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438", ...field(input?.name ?? ''), minDate: new Date() })));
@@ -5119,24 +5156,12 @@
5119
5156
  });
5120
5157
 
5121
5158
  const EmployerActivitiesField = JSX(({ field, input }) => {
5122
- const { data } = useLeadFormData('ORGANIZATION_ACTIVITY_TYPE');
5123
5159
  const store = useRetailFormStore();
5124
- useEffect(() => {
5125
- if (data) {
5126
- store.employerActivities = data;
5127
- }
5128
- }, [data]);
5129
5160
  return (jsx(SelectField, { field: field, source: store.employerActivities ?? [], label: "\u0412\u0438\u0434 \u0434\u0435\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438-\u0440\u0430\u0431\u043E\u0442\u043E\u0434\u0430\u0442\u0435\u043B\u044F", fieldName: "employerActivities", input: input }));
5130
5161
  });
5131
5162
 
5132
5163
  const EmployerOrganizationField = JSX(({ field, input }) => {
5133
- const { data } = useLeadFormData('ORGANIZATION_KIND');
5134
5164
  const store = useRetailFormStore();
5135
- useEffect(() => {
5136
- if (data) {
5137
- store.employerOrganization = data;
5138
- }
5139
- }, [data]);
5140
5165
  return (jsx(SelectField, { field: field, source: store.employerOrganization ?? [], label: "\u0412\u0438\u0434 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0431\u043E\u0442\u043E\u0434\u0430\u0442\u0435\u043B\u044F", fieldName: "employerOrganization", input: input }));
5141
5166
  });
5142
5167
 
@@ -5340,23 +5365,27 @@
5340
5365
  });
5341
5366
 
5342
5367
  const OrganizationField = JSX(({ field, input }) => {
5343
- const { data } = useLeadFormData('ORGANIZATION_TYPE');
5344
5368
  const store = useRetailFormStore();
5345
- useEffect(() => {
5346
- if (data) {
5347
- store.organization = data;
5348
- }
5349
- }, [data]);
5350
5369
  return (jsx(SelectField, { field: field, source: store.organization ?? [], label: "\u0422\u0438\u043F \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", fieldName: "organization", input: input }));
5351
5370
  });
5352
5371
 
5372
+ const NO_DADATA_ERROR_TEXT = 'Необходимо выбрать организацию из выпадающего списка';
5353
5373
  const OrganizationNameField = JSX(({ field, input }) => {
5354
5374
  const store = useRetailFormStore();
5375
+ const [errorText, setErrorText] = useState('');
5376
+ const fieldError = field?.('organizationName')?.error;
5377
+ const isDadataOrganization = field('isDadataOrganization')?.value;
5378
+ useEffect(() => {
5379
+ setErrorText(fieldError && !isDadataOrganization ? NO_DADATA_ERROR_TEXT : '');
5380
+ }, [isDadataOrganization, fieldError]);
5355
5381
  const onDaDataChange = useCallback((item) => {
5356
- field?.('inn')?.onChange?.(item.data?.inn);
5357
5382
  updateOrganizationFields(store, field, item);
5358
5383
  }, []);
5359
- return (jsx(DaDataInputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...input, ...field(input?.name ?? ''), disabled: isEsiaAuthorize(field, input), onDaDataChange: onDaDataChange }));
5384
+ const onChange = useCallback((value) => {
5385
+ field?.('organizationName')?.onChange?.(value);
5386
+ field?.('isDadataOrganization')?.onChange?.(false);
5387
+ }, []);
5388
+ return (jsx(DaDataInputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...input, ...field(input?.name ?? ''), disabled: isEsiaAuthorize(field, input), onDaDataChange: onDaDataChange, onChange: onChange, error: errorText || field('organizationName')?.error }));
5360
5389
  });
5361
5390
 
5362
5391
  const OtherIncomeField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u0418\u043D\u044B\u0435 \u0434\u043E\u0445\u043E\u0434\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", isInteger: true, ...field(input?.name ?? ''), ...input })));
@@ -5561,7 +5590,7 @@
5561
5590
  shareholderFlg: ShareholderFlgField,
5562
5591
  legalEntityName: LegalEntityNameField,
5563
5592
  creditInRshbCd: CreditInRshbCdField,
5564
- bankEmployeeCode: BankEmpoleeCodeField,
5593
+ bankEmployeeCode: BankEmployeeCodeField,
5565
5594
  partInBusiness: PartInBusinessField,
5566
5595
  regionRetail: RegionRetailField,
5567
5596
  infoCard: InfoCardField,
@@ -6115,6 +6144,7 @@
6115
6144
  employment: getSelectValue(employment, EMPLOYMENT_TYPE),
6116
6145
  organizationName,
6117
6146
  inn,
6147
+ isDadataOrganization: Boolean(inn),
6118
6148
  employerActivities: getSelectValue(employerActivities),
6119
6149
  organization: getSelectValue(organization),
6120
6150
  employerOrganization: getSelectValue(employerOrganization),
@@ -6328,6 +6358,7 @@
6328
6358
  const [ok, setOK] = useState();
6329
6359
  const saveUserData = useSaveUserData();
6330
6360
  const sessionStore = useSessionStore();
6361
+ const leadFormStore = useLeadFormStore();
6331
6362
  const sendAspects = useSendLeadFormAspects({ data });
6332
6363
  const navigator = locationNavigator();
6333
6364
  const goToNextStep = useCallback(() => {
@@ -6343,7 +6374,7 @@
6343
6374
  const profileId = await createUserProfile({
6344
6375
  profile: { phone: formatPhone(transformedFormData.phone) },
6345
6376
  });
6346
- const referalData = sessionStore.referalData;
6377
+ const referalData = leadFormStore.referalData;
6347
6378
  const marketingInfo = sessionStore.marketingInfo;
6348
6379
  if (!profileId) {
6349
6380
  throw new Error();
@@ -6540,6 +6571,42 @@
6540
6571
  return res;
6541
6572
  });
6542
6573
 
6574
+ const useReferalProgramm = () => {
6575
+ const leadFormStore = useLeadFormStore();
6576
+ const aspects = useAspects();
6577
+ useEffect(() => {
6578
+ const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
6579
+ const referalCode = params.get('referalCode');
6580
+ const refererCode = params.get('refererCode');
6581
+ const productId = params.get('productId');
6582
+ if (referalCode) {
6583
+ leadFormStore.referalData = {
6584
+ refererCode,
6585
+ referalCode,
6586
+ productId,
6587
+ };
6588
+ const eventJSON = JSON.stringify({
6589
+ refererCode,
6590
+ referalCode,
6591
+ productId,
6592
+ });
6593
+ handleAspects({
6594
+ aspectsAttributes: [
6595
+ {
6596
+ aspectName: 'snowplowEvent',
6597
+ params: {
6598
+ eventName: 'ownfin_referal_link_attributes',
6599
+ eventJSON,
6600
+ },
6601
+ },
6602
+ ],
6603
+ aspects,
6604
+ ev: {},
6605
+ });
6606
+ }
6607
+ }, []);
6608
+ };
6609
+
6543
6610
  const initialFormState = {
6544
6611
  surname: '',
6545
6612
  name: '',
@@ -6748,6 +6815,7 @@
6748
6815
  const saveForm = useSetter(leadFormStore, 'leadForm');
6749
6816
  const sessionStore = useSessionStore();
6750
6817
  const queryFromStorage = globalThis.sessionStorage?.getItem(QUERY_STORAGE_KEY);
6818
+ useReferalProgramm();
6751
6819
  const initialFormState = useMemo(() => getInitialFormState$1(inputs, leadFormStore.leadForm, esiaAuthSuccess), [inputs, leadFormStore.leadForm]);
6752
6820
  const requestEsiaProfile = useCallback(async (code, state) => {
6753
6821
  setEsiaStatus(EsiaStatuses.Pending);
@@ -6773,15 +6841,7 @@
6773
6841
  }, []);
6774
6842
  useEffect(() => {
6775
6843
  leadFormStore.productType = productType;
6776
- const { referalCode, refererCode, productId, marketingInfo } = getLeadQueryParams(queryFromStorage, sessionStore);
6777
- if (referalCode) {
6778
- sessionStore.referalData = {
6779
- refererCode,
6780
- referalCode,
6781
- productId,
6782
- };
6783
- }
6784
- sessionStore.marketingInfo = marketingInfo;
6844
+ sessionStore.marketingInfo = getMarketingInfo(queryFromStorage, sessionStore);
6785
6845
  }, [queryFromStorage]);
6786
6846
  useEffect(() => {
6787
6847
  const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
@@ -6797,15 +6857,11 @@
6797
6857
  }, []);
6798
6858
  return initialFormState;
6799
6859
  };
6800
- const getLeadQueryParams = (queryFromStorage, sessionStore) => {
6801
- const referalData = sessionStore.referalData;
6860
+ const getMarketingInfo = (queryFromStorage, sessionStore) => {
6802
6861
  const marketingInfoFromStorage = sessionStore.marketingInfo;
6803
6862
  const queryStorage = new URLSearchParams(decodeURIComponent(queryFromStorage || ''));
6804
6863
  const code = queryStorage.get('code');
6805
- const referalCode = code ? referalData?.referalCode : queryStorage.get('referalCode');
6806
- const refererCode = code ? referalData?.refererCode : queryStorage.get('refererCode');
6807
- const productId = code ? referalData?.productId : queryStorage.get('productId');
6808
- const marketingInfo = code
6864
+ return code
6809
6865
  ? marketingInfoFromStorage
6810
6866
  : {
6811
6867
  utm_campaign: queryStorage.get('utm_campaign'),
@@ -6816,12 +6872,6 @@
6816
6872
  bannerId: queryStorage.get('bannerId'),
6817
6873
  userId: queryStorage.get('userId'),
6818
6874
  };
6819
- return {
6820
- referalCode,
6821
- refererCode,
6822
- productId,
6823
- marketingInfo,
6824
- };
6825
6875
  };
6826
6876
 
6827
6877
  const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, ...rest }) => {
@@ -8458,6 +8508,8 @@
8458
8508
  generalSeniority: generalSeniorityValidator(formState.lastJobExperience),
8459
8509
  beginDate: workBeginDateValidator(formState.limitedBirthday),
8460
8510
  participantDateRegistration: dateRegistrationValidator(formState.limitedBirthday),
8511
+ organizationName: organizationNameValidator(formState.isDadataOrganization),
8512
+ inn: organizationInnValidator(formState.isDadataOrganization),
8461
8513
  })(formState);
8462
8514
 
8463
8515
  const StepsNavigationButtons$2 = JSX(({ step, isSending, onPrevStep }) => {
@@ -8527,6 +8579,7 @@
8527
8579
  fiasCode: '',
8528
8580
  },
8529
8581
  organizationName: '',
8582
+ isDadataOrganization: false,
8530
8583
  organizationPhone: '',
8531
8584
  partInBusiness: undefined,
8532
8585
  positionOrganization: { key: '', text: '' },
@@ -8543,12 +8596,6 @@
8543
8596
  esiaAccountTypeCd: { key: '', text: '' },
8544
8597
  initiateBankruptcyFlg: isCredit ? false : undefined,
8545
8598
  },
8546
- {
8547
- bankruptcyFlg: false,
8548
- shareholderFlg: false,
8549
- legalEntityName: '',
8550
- creditInRshbCd: undefined,
8551
- },
8552
8599
  ];
8553
8600
 
8554
8601
  const formStateMap$2 = [
@@ -8558,6 +8605,12 @@
8558
8605
  codeWord: '',
8559
8606
  },
8560
8607
  ...getMainFormStateMap(),
8608
+ {
8609
+ bankruptcyFlg: false,
8610
+ shareholderFlg: false,
8611
+ legalEntityName: '',
8612
+ creditInRshbCd: undefined,
8613
+ },
8561
8614
  {
8562
8615
  regionRetail: { key: '', text: '' },
8563
8616
  addressRetail: { key: '', text: '' },
@@ -8617,12 +8670,9 @@
8617
8670
  };
8618
8671
 
8619
8672
  const getPersonalInfoData = (formData) => {
8620
- const { name, surname, middleName, limitedBirthday = '', phone = '', email, sex, birthPlace, dulIssueDate = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration, housing, addressRegistration, addressFact, addressMatch, } = formData;
8673
+ const { limitedBirthday = '', sex, birthPlace, dulIssueDate = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration, housing, addressRegistration, addressFact, addressMatch, } = formData;
8621
8674
  return {
8622
8675
  birthDate: formatDate(limitedBirthday, true),
8623
- midname: middleName,
8624
- name,
8625
- surname,
8626
8676
  birthPlace,
8627
8677
  dulIssueDate: formatDate(dulIssueDate, true),
8628
8678
  dulIssuedBy,
@@ -8635,10 +8685,6 @@
8635
8685
  : undefined,
8636
8686
  homeMatchFlg: addressMatch,
8637
8687
  houseTypeCd: housing,
8638
- participantContacts: getParticipantContacts$1({
8639
- phone: formatPhone(phone),
8640
- email,
8641
- }),
8642
8688
  participantAddresses: getParticipantAddresses$1({
8643
8689
  addressRegistration,
8644
8690
  addressFact: addressMatch ? addressRegistration : addressFact,
@@ -8806,21 +8852,14 @@
8806
8852
  title: 'Персональные данные',
8807
8853
  columns: 2,
8808
8854
  inputs: [
8809
- {
8810
- name: 'surname',
8811
- required: true,
8812
- dadata: true,
8813
- filledByEsia: true,
8814
- },
8815
- { name: 'name', required: true, dadata: true, filledByEsia: true },
8816
- { name: 'middleName', dadata: true, filledByEsia: true },
8817
- { name: 'sex', required: true },
8818
8855
  { name: 'limitedBirthday', required: true, filledByEsia: true },
8819
8856
  { name: 'birthPlace', required: true, filledByEsia: true },
8820
- { name: 'phone', disabled: true, required: true },
8821
- { name: 'email', required: true, dadata: true },
8822
8857
  ],
8823
8858
  },
8859
+ {
8860
+ columns: 2,
8861
+ inputs: [{ name: 'sex', required: true }],
8862
+ },
8824
8863
  {
8825
8864
  title: 'Паспортные данные',
8826
8865
  columns: 2,
@@ -9015,29 +9054,32 @@
9015
9054
  ],
9016
9055
  },
9017
9056
  {
9018
- inputs: [
9019
- { name: 'employment', required: true },
9020
- { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
9021
- ],
9057
+ inputs: [{ name: 'employment', required: true }],
9022
9058
  },
9023
9059
  {
9024
9060
  columns: 2,
9025
9061
  inputs: [
9062
+ { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
9026
9063
  { name: 'inn', required: true, dadata: true, filledByEsia: true },
9027
- { name: 'legalForm', required: true },
9028
9064
  ],
9029
9065
  },
9030
9066
  {
9067
+ inputs: [{ name: 'amountWorkers', required: true }],
9068
+ },
9069
+ {
9070
+ columns: 2,
9031
9071
  inputs: [
9032
- { name: 'organization', required: true },
9033
- { name: 'amountWorkers', required: true },
9072
+ { name: 'employerActivities', required: true },
9073
+ {
9074
+ name: 'organizationPhone',
9075
+ label: 'Телефон работодателя',
9076
+ required: true,
9077
+ },
9034
9078
  ],
9035
9079
  },
9036
9080
  {
9037
9081
  columns: 2,
9038
9082
  inputs: [
9039
- { name: 'employerActivities', required: true },
9040
- { name: 'employerOrganization', required: true },
9041
9083
  { name: 'generalSeniority', required: true, filledByEsia: true },
9042
9084
  { name: 'lastJobExperience', required: true, filledByEsia: true },
9043
9085
  { name: 'experience5Years', required: true, filledByEsia: true },
@@ -9045,14 +9087,7 @@
9045
9087
  ],
9046
9088
  },
9047
9089
  {
9048
- inputs: [
9049
- {
9050
- name: 'organizationPhone',
9051
- label: 'Телефон работодателя',
9052
- required: true,
9053
- },
9054
- { name: 'beginDate', required: true, filledByEsia: true },
9055
- ],
9090
+ inputs: [{ name: 'beginDate', required: true, filledByEsia: true }],
9056
9091
  },
9057
9092
  {
9058
9093
  columns: 2,
@@ -9186,13 +9221,20 @@
9186
9221
  values: ['office'],
9187
9222
  },
9188
9223
  },
9224
+ ],
9225
+ },
9226
+ {
9227
+ columns: 2,
9228
+ inputs: [
9189
9229
  {
9190
- name: 'bankEmployeeCode',
9191
9230
  condition: {
9192
9231
  name: 'methodObtain',
9193
9232
  values: ['office'],
9194
9233
  },
9195
9234
  },
9235
+ {
9236
+ name: 'bankEmployeeCode',
9237
+ },
9196
9238
  ],
9197
9239
  },
9198
9240
  ];
@@ -9561,38 +9603,30 @@
9561
9603
  ],
9562
9604
  },
9563
9605
  {
9564
- inputs: [
9565
- { name: 'employment', required: true },
9566
- { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
9567
- ],
9606
+ inputs: [{ name: 'employment', required: true }],
9568
9607
  },
9569
9608
  {
9570
9609
  columns: 2,
9571
9610
  inputs: [
9611
+ { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
9572
9612
  { name: 'inn', required: true, dadata: true, filledByEsia: true },
9573
- { name: 'legalForm', required: true },
9574
9613
  ],
9575
9614
  },
9576
9615
  {
9616
+ columns: 2,
9577
9617
  inputs: [
9578
- { name: 'organization', required: true },
9579
9618
  { name: 'amountWorkers', required: true },
9619
+ {
9620
+ name: 'organizationPhone',
9621
+ label: 'Телефон работодателя',
9622
+ required: true,
9623
+ },
9580
9624
  ],
9581
9625
  },
9582
9626
  {
9583
9627
  columns: 2,
9584
9628
  inputs: [
9585
- { name: 'employerOrganization', required: true },
9586
9629
  { name: 'jobsNumber', required: true, filledByEsia: true },
9587
- ],
9588
- },
9589
- {
9590
- inputs: [
9591
- {
9592
- name: 'organizationPhone',
9593
- label: 'Телефон работодателя',
9594
- required: true,
9595
- },
9596
9630
  { name: 'beginDate', required: true, filledByEsia: true },
9597
9631
  ],
9598
9632
  },
@@ -9693,7 +9727,12 @@
9693
9727
  ],
9694
9728
  },
9695
9729
  {
9696
- inputs: [{ name: 'bankEmployeeCode' }],
9730
+ columns: 2,
9731
+ inputs: [
9732
+ {
9733
+ name: 'bankEmployeeCode',
9734
+ },
9735
+ ],
9697
9736
  },
9698
9737
  ];
9699
9738
  const CALCULATOR_CONTENT = [
@@ -12104,7 +12143,7 @@
12104
12143
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
12105
12144
  });
12106
12145
 
12107
- const packageVersion = "0.14.915";
12146
+ const packageVersion = "0.14.917";
12108
12147
 
12109
12148
  exports.Blocks = Blocks;
12110
12149
  exports.ContentPage = ContentPage;