@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
@@ -3048,6 +3048,8 @@
3048
3048
  }
3049
3049
  return false;
3050
3050
  });
3051
+ const organizationNameValidator = (isDadataOrganization) => validator((_) => Boolean(_) && Boolean(isDadataOrganization))('Укажите наименование организации');
3052
+ const organizationInnValidator = (isDadataOrganization) => validator((_) => isValidInnLength(_) && Boolean(isDadataOrganization))('Укажите ИНН');
3051
3053
 
3052
3054
  const limitedBirthdayValidationData = {
3053
3055
  credit: {
@@ -4413,19 +4415,28 @@
4413
4415
  });
4414
4416
 
4415
4417
  const AmountWorkersField = JSX(({ field, input }) => {
4416
- const { data } = useLeadFormData('EMPLOYEES_NUMBER');
4417
4418
  const store = useRetailFormStore();
4418
- useEffect(() => {
4419
- if (data) {
4420
- store.amountWorkers = data;
4421
- }
4422
- }, [data]);
4423
4419
  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 }));
4424
4420
  });
4425
4421
 
4426
4422
  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 ?? '') })));
4427
4423
 
4428
- 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 })));
4424
+ 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)] })));
4425
+
4426
+ const BUTTON_TYPES = [
4427
+ { id: 'true', text: 'Да' },
4428
+ { id: 'false', text: 'Нет' },
4429
+ ];
4430
+ const BankEmployeeCodeField = JSX(({ field, input }) => {
4431
+ const [bankEmployeeFlg, setBankEmployeeFlg] = useState('');
4432
+ const handleBankEmployeeFlgChange = useCallback((value) => {
4433
+ setBankEmployeeFlg(value);
4434
+ if (value === 'false') {
4435
+ field('bankEmployeeCode')?.onChange?.(null);
4436
+ }
4437
+ }, []);
4438
+ 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] }));
4439
+ });
4429
4440
 
4430
4441
  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 ?? '') })));
4431
4442
 
@@ -4890,8 +4901,6 @@
4890
4901
  47: 'owner_debit_card_pens_plus',
4891
4902
  };
4892
4903
 
4893
- 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)] })));
4894
-
4895
4904
  const RUBLE = [{ id: '810', text: 'Рубли' }];
4896
4905
  const CurrencyField = JSX(({ field, input }) => {
4897
4906
  const { data } = useLeadFormData('CURRENCY');
@@ -4901,6 +4910,15 @@
4901
4910
  return (jsx(RadioButtonGroupControl, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", orientation: "horizontal", items: currencies, ...field(input?.name ?? '') }));
4902
4911
  });
4903
4912
 
4913
+ const getDictionaries = (dictionaries, store) => {
4914
+ Promise.all(Object.entries(dictionaries).map((dictionary) => {
4915
+ const [fieldName, dictionaryName] = dictionary;
4916
+ fetchRetailJSON(`/dictionary?dictionaryType=${encodeURIComponent(dictionaryName)}`, 'POST').then((res) => {
4917
+ store[fieldName] = res;
4918
+ });
4919
+ }));
4920
+ };
4921
+
4904
4922
  const getOrganizationFromInn = async (inn) => {
4905
4923
  const res = await getDaDataHints({
4906
4924
  url: 'suggest/party',
@@ -5008,6 +5026,12 @@
5008
5026
  const getOptionOp = (options) => (key) => options
5009
5027
  .map((_) => ({ key: _.key, text: _.value }))
5010
5028
  .find((_) => _.key === key) ?? null;
5029
+ const organizationDictionaries = {
5030
+ amountWorkers: 'EMPLOYEES_NUMBER',
5031
+ employerOrganization: 'ORGANIZATION_KIND',
5032
+ employerActivities: 'ORGANIZATION_ACTIVITY_TYPE',
5033
+ organization: 'ORGANIZATION_TYPE',
5034
+ };
5011
5035
 
5012
5036
  const updateOrganizationFields = (store, field, item) => {
5013
5037
  const { okved, okopf, inn, organizationName } = getOrganizationRequisites(item);
@@ -5019,6 +5043,8 @@
5019
5043
  organization: getOrganizationType(store?.organization ?? [], okopf, inn),
5020
5044
  employerOrganization: getOrganizationKind(store?.employerOrganization ?? [], okopf),
5021
5045
  organizationName,
5046
+ inn,
5047
+ isDadataOrganization: true,
5022
5048
  };
5023
5049
  for (const fieldName in organizationData) {
5024
5050
  field?.(fieldName)?.onChange?.(organizationData[fieldName]);
@@ -5031,14 +5057,26 @@
5031
5057
  organizationName: item.data?.name?.short_with_opf ?? '',
5032
5058
  });
5033
5059
 
5060
+ const NO_DADATA_ERROR_TEXT$1 = 'Необходимо выбрать ИНН из выпадающего списка';
5034
5061
  const DaDataInnField = JSX(({ field, input }) => {
5035
5062
  const store = useRetailFormStore();
5063
+ const [errorText, setErrorText] = useState('');
5036
5064
  const { employerActivities, employerOrganization, organization, amountWorkers } = store;
5037
5065
  const esiaAccountTypeCd = field?.('esiaAccountTypeCd')?.value;
5038
5066
  const inn = field?.('inn')?.value;
5067
+ const fieldError = field?.('organizationName')?.error;
5068
+ const isDadataOrganization = field('isDadataOrganization')?.value;
5069
+ useEffect(() => {
5070
+ setErrorText(fieldError && !isDadataOrganization ? NO_DADATA_ERROR_TEXT$1 : '');
5071
+ }, [isDadataOrganization, fieldError]);
5039
5072
  const onDaDataChange = useCallback((item) => {
5040
5073
  updateOrganizationFields(store, field, item);
5041
5074
  }, []);
5075
+ useEffect(() => {
5076
+ (async () => {
5077
+ await getDictionaries(organizationDictionaries, store);
5078
+ })();
5079
+ }, []);
5042
5080
  useEffect(() => {
5043
5081
  if (!esiaAccountTypeCd || !inn || !isDictionariesAlreadyLoad(store)) {
5044
5082
  return;
@@ -5050,16 +5088,15 @@
5050
5088
  }
5051
5089
  })();
5052
5090
  }, [employerActivities, employerOrganization, organization, amountWorkers]);
5053
- return (jsx(DaDataInputControl, { label: "\u0418\u041D\u041D", isInteger: true, maxLength: 12, ...input, ...field(input?.name ?? ''), onDaDataChange: onDaDataChange, disabled: isEsiaAuthorize(field, input) }));
5091
+ const onChange = useCallback((value) => {
5092
+ field?.('inn')?.onChange?.(value);
5093
+ field?.('isDadataOrganization')?.onChange?.(false);
5094
+ }, []);
5095
+ 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 }));
5054
5096
  });
5055
5097
  const isDictionariesAlreadyLoad = (store) => {
5056
- const { employerActivities, employerOrganization, organization, amountWorkers, productType } = store;
5057
- return [
5058
- employerOrganization,
5059
- organization,
5060
- amountWorkers,
5061
- productType === 'creditCard' ? employerActivities : true,
5062
- ].every(Boolean);
5098
+ const { employerActivities, employerOrganization, organization, amountWorkers } = store;
5099
+ return [employerOrganization, organization, amountWorkers, employerActivities].every(Boolean);
5063
5100
  };
5064
5101
 
5065
5102
  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() })));
@@ -5127,24 +5164,12 @@
5127
5164
  });
5128
5165
 
5129
5166
  const EmployerActivitiesField = JSX(({ field, input }) => {
5130
- const { data } = useLeadFormData('ORGANIZATION_ACTIVITY_TYPE');
5131
5167
  const store = useRetailFormStore();
5132
- useEffect(() => {
5133
- if (data) {
5134
- store.employerActivities = data;
5135
- }
5136
- }, [data]);
5137
5168
  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 }));
5138
5169
  });
5139
5170
 
5140
5171
  const EmployerOrganizationField = JSX(({ field, input }) => {
5141
- const { data } = useLeadFormData('ORGANIZATION_KIND');
5142
5172
  const store = useRetailFormStore();
5143
- useEffect(() => {
5144
- if (data) {
5145
- store.employerOrganization = data;
5146
- }
5147
- }, [data]);
5148
5173
  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 }));
5149
5174
  });
5150
5175
 
@@ -5348,23 +5373,27 @@
5348
5373
  });
5349
5374
 
5350
5375
  const OrganizationField = JSX(({ field, input }) => {
5351
- const { data } = useLeadFormData('ORGANIZATION_TYPE');
5352
5376
  const store = useRetailFormStore();
5353
- useEffect(() => {
5354
- if (data) {
5355
- store.organization = data;
5356
- }
5357
- }, [data]);
5358
5377
  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 }));
5359
5378
  });
5360
5379
 
5380
+ const NO_DADATA_ERROR_TEXT = 'Необходимо выбрать организацию из выпадающего списка';
5361
5381
  const OrganizationNameField = JSX(({ field, input }) => {
5362
5382
  const store = useRetailFormStore();
5383
+ const [errorText, setErrorText] = useState('');
5384
+ const fieldError = field?.('organizationName')?.error;
5385
+ const isDadataOrganization = field('isDadataOrganization')?.value;
5386
+ useEffect(() => {
5387
+ setErrorText(fieldError && !isDadataOrganization ? NO_DADATA_ERROR_TEXT : '');
5388
+ }, [isDadataOrganization, fieldError]);
5363
5389
  const onDaDataChange = useCallback((item) => {
5364
- field?.('inn')?.onChange?.(item.data?.inn);
5365
5390
  updateOrganizationFields(store, field, item);
5366
5391
  }, []);
5367
- 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 }));
5392
+ const onChange = useCallback((value) => {
5393
+ field?.('organizationName')?.onChange?.(value);
5394
+ field?.('isDadataOrganization')?.onChange?.(false);
5395
+ }, []);
5396
+ 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 }));
5368
5397
  });
5369
5398
 
5370
5399
  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 })));
@@ -5569,7 +5598,7 @@
5569
5598
  shareholderFlg: ShareholderFlgField,
5570
5599
  legalEntityName: LegalEntityNameField,
5571
5600
  creditInRshbCd: CreditInRshbCdField,
5572
- bankEmployeeCode: BankEmpoleeCodeField,
5601
+ bankEmployeeCode: BankEmployeeCodeField,
5573
5602
  partInBusiness: PartInBusinessField,
5574
5603
  regionRetail: RegionRetailField,
5575
5604
  infoCard: InfoCardField,
@@ -6123,6 +6152,7 @@
6123
6152
  employment: getSelectValue(employment, EMPLOYMENT_TYPE),
6124
6153
  organizationName,
6125
6154
  inn,
6155
+ isDadataOrganization: Boolean(inn),
6126
6156
  employerActivities: getSelectValue(employerActivities),
6127
6157
  organization: getSelectValue(organization),
6128
6158
  employerOrganization: getSelectValue(employerOrganization),
@@ -6336,6 +6366,7 @@
6336
6366
  const [ok, setOK] = useState();
6337
6367
  const saveUserData = useSaveUserData();
6338
6368
  const sessionStore = useSessionStore();
6369
+ const leadFormStore = useLeadFormStore();
6339
6370
  const sendAspects = useSendLeadFormAspects({ data });
6340
6371
  const navigator = locationNavigator();
6341
6372
  const goToNextStep = useCallback(() => {
@@ -6351,7 +6382,7 @@
6351
6382
  const profileId = await createUserProfile({
6352
6383
  profile: { phone: formatPhone(transformedFormData.phone) },
6353
6384
  });
6354
- const referalData = sessionStore.referalData;
6385
+ const referalData = leadFormStore.referalData;
6355
6386
  const marketingInfo = sessionStore.marketingInfo;
6356
6387
  if (!profileId) {
6357
6388
  throw new Error();
@@ -6548,6 +6579,42 @@
6548
6579
  return res;
6549
6580
  });
6550
6581
 
6582
+ const useReferalProgramm = () => {
6583
+ const leadFormStore = useLeadFormStore();
6584
+ const aspects = useAspects();
6585
+ useEffect(() => {
6586
+ const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
6587
+ const referalCode = params.get('referalCode');
6588
+ const refererCode = params.get('refererCode');
6589
+ const productId = params.get('productId');
6590
+ if (referalCode) {
6591
+ leadFormStore.referalData = {
6592
+ refererCode,
6593
+ referalCode,
6594
+ productId,
6595
+ };
6596
+ const eventJSON = JSON.stringify({
6597
+ refererCode,
6598
+ referalCode,
6599
+ productId,
6600
+ });
6601
+ handleAspects({
6602
+ aspectsAttributes: [
6603
+ {
6604
+ aspectName: 'snowplowEvent',
6605
+ params: {
6606
+ eventName: 'ownfin_referal_link_attributes',
6607
+ eventJSON,
6608
+ },
6609
+ },
6610
+ ],
6611
+ aspects,
6612
+ ev: {},
6613
+ });
6614
+ }
6615
+ }, []);
6616
+ };
6617
+
6551
6618
  const initialFormState = {
6552
6619
  surname: '',
6553
6620
  name: '',
@@ -6756,6 +6823,7 @@
6756
6823
  const saveForm = useSetter(leadFormStore, 'leadForm');
6757
6824
  const sessionStore = useSessionStore();
6758
6825
  const queryFromStorage = globalThis.sessionStorage?.getItem(QUERY_STORAGE_KEY);
6826
+ useReferalProgramm();
6759
6827
  const initialFormState = useMemo(() => getInitialFormState$1(inputs, leadFormStore.leadForm, esiaAuthSuccess), [inputs, leadFormStore.leadForm]);
6760
6828
  const requestEsiaProfile = useCallback(async (code, state) => {
6761
6829
  setEsiaStatus(EsiaStatuses.Pending);
@@ -6781,15 +6849,7 @@
6781
6849
  }, []);
6782
6850
  useEffect(() => {
6783
6851
  leadFormStore.productType = productType;
6784
- const { referalCode, refererCode, productId, marketingInfo } = getLeadQueryParams(queryFromStorage, sessionStore);
6785
- if (referalCode) {
6786
- sessionStore.referalData = {
6787
- refererCode,
6788
- referalCode,
6789
- productId,
6790
- };
6791
- }
6792
- sessionStore.marketingInfo = marketingInfo;
6852
+ sessionStore.marketingInfo = getMarketingInfo(queryFromStorage, sessionStore);
6793
6853
  }, [queryFromStorage]);
6794
6854
  useEffect(() => {
6795
6855
  const params = new URLSearchParams(decodeURIComponent(globalThis.location?.search));
@@ -6805,15 +6865,11 @@
6805
6865
  }, []);
6806
6866
  return initialFormState;
6807
6867
  };
6808
- const getLeadQueryParams = (queryFromStorage, sessionStore) => {
6809
- const referalData = sessionStore.referalData;
6868
+ const getMarketingInfo = (queryFromStorage, sessionStore) => {
6810
6869
  const marketingInfoFromStorage = sessionStore.marketingInfo;
6811
6870
  const queryStorage = new URLSearchParams(decodeURIComponent(queryFromStorage || ''));
6812
6871
  const code = queryStorage.get('code');
6813
- const referalCode = code ? referalData?.referalCode : queryStorage.get('referalCode');
6814
- const refererCode = code ? referalData?.refererCode : queryStorage.get('refererCode');
6815
- const productId = code ? referalData?.productId : queryStorage.get('productId');
6816
- const marketingInfo = code
6872
+ return code
6817
6873
  ? marketingInfoFromStorage
6818
6874
  : {
6819
6875
  utm_campaign: queryStorage.get('utm_campaign'),
@@ -6824,12 +6880,6 @@
6824
6880
  bannerId: queryStorage.get('bannerId'),
6825
6881
  userId: queryStorage.get('userId'),
6826
6882
  };
6827
- return {
6828
- referalCode,
6829
- refererCode,
6830
- productId,
6831
- marketingInfo,
6832
- };
6833
6883
  };
6834
6884
 
6835
6885
  const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, ...rest }) => {
@@ -8450,6 +8500,8 @@
8450
8500
  generalSeniority: generalSeniorityValidator(formState.lastJobExperience),
8451
8501
  beginDate: workBeginDateValidator(formState.limitedBirthday),
8452
8502
  participantDateRegistration: dateRegistrationValidator(formState.limitedBirthday),
8503
+ organizationName: organizationNameValidator(formState.isDadataOrganization),
8504
+ inn: organizationInnValidator(formState.isDadataOrganization),
8453
8505
  })(formState);
8454
8506
 
8455
8507
  const StepsNavigationButtons$2 = JSX(({ step, isSending, onPrevStep }) => {
@@ -8519,6 +8571,7 @@
8519
8571
  fiasCode: '',
8520
8572
  },
8521
8573
  organizationName: '',
8574
+ isDadataOrganization: false,
8522
8575
  organizationPhone: '',
8523
8576
  partInBusiness: undefined,
8524
8577
  positionOrganization: { key: '', text: '' },
@@ -8535,12 +8588,6 @@
8535
8588
  esiaAccountTypeCd: { key: '', text: '' },
8536
8589
  initiateBankruptcyFlg: isCredit ? false : undefined,
8537
8590
  },
8538
- {
8539
- bankruptcyFlg: false,
8540
- shareholderFlg: false,
8541
- legalEntityName: '',
8542
- creditInRshbCd: undefined,
8543
- },
8544
8591
  ];
8545
8592
 
8546
8593
  const formStateMap$2 = [
@@ -8550,6 +8597,12 @@
8550
8597
  codeWord: '',
8551
8598
  },
8552
8599
  ...getMainFormStateMap(),
8600
+ {
8601
+ bankruptcyFlg: false,
8602
+ shareholderFlg: false,
8603
+ legalEntityName: '',
8604
+ creditInRshbCd: undefined,
8605
+ },
8553
8606
  {
8554
8607
  regionRetail: { key: '', text: '' },
8555
8608
  addressRetail: { key: '', text: '' },
@@ -8609,12 +8662,9 @@
8609
8662
  };
8610
8663
 
8611
8664
  const getPersonalInfoData = (formData) => {
8612
- const { name, surname, middleName, limitedBirthday = '', phone = '', email, sex, birthPlace, dulIssueDate = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration, housing, addressRegistration, addressFact, addressMatch, } = formData;
8665
+ const { limitedBirthday = '', sex, birthPlace, dulIssueDate = '', dulIssuedBy, dulNumber, dulSerie, dulSubdivisionCode, education, participantDateRegistration, housing, addressRegistration, addressFact, addressMatch, } = formData;
8613
8666
  return {
8614
8667
  birthDate: formatDate(limitedBirthday, true),
8615
- midname: middleName,
8616
- name,
8617
- surname,
8618
8668
  birthPlace,
8619
8669
  dulIssueDate: formatDate(dulIssueDate, true),
8620
8670
  dulIssuedBy,
@@ -8627,10 +8677,6 @@
8627
8677
  : undefined,
8628
8678
  homeMatchFlg: addressMatch,
8629
8679
  houseTypeCd: housing,
8630
- participantContacts: getParticipantContacts$1({
8631
- phone: formatPhone(phone),
8632
- email,
8633
- }),
8634
8680
  participantAddresses: getParticipantAddresses$1({
8635
8681
  addressRegistration,
8636
8682
  addressFact: addressMatch ? addressRegistration : addressFact,
@@ -8798,21 +8844,14 @@
8798
8844
  title: 'Персональные данные',
8799
8845
  columns: 2,
8800
8846
  inputs: [
8801
- {
8802
- name: 'surname',
8803
- required: true,
8804
- dadata: true,
8805
- filledByEsia: true,
8806
- },
8807
- { name: 'name', required: true, dadata: true, filledByEsia: true },
8808
- { name: 'middleName', dadata: true, filledByEsia: true },
8809
- { name: 'sex', required: true },
8810
8847
  { name: 'limitedBirthday', required: true, filledByEsia: true },
8811
8848
  { name: 'birthPlace', required: true, filledByEsia: true },
8812
- { name: 'phone', disabled: true, required: true },
8813
- { name: 'email', required: true, dadata: true },
8814
8849
  ],
8815
8850
  },
8851
+ {
8852
+ columns: 2,
8853
+ inputs: [{ name: 'sex', required: true }],
8854
+ },
8816
8855
  {
8817
8856
  title: 'Паспортные данные',
8818
8857
  columns: 2,
@@ -9007,29 +9046,32 @@
9007
9046
  ],
9008
9047
  },
9009
9048
  {
9010
- inputs: [
9011
- { name: 'employment', required: true },
9012
- { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
9013
- ],
9049
+ inputs: [{ name: 'employment', required: true }],
9014
9050
  },
9015
9051
  {
9016
9052
  columns: 2,
9017
9053
  inputs: [
9054
+ { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
9018
9055
  { name: 'inn', required: true, dadata: true, filledByEsia: true },
9019
- { name: 'legalForm', required: true },
9020
9056
  ],
9021
9057
  },
9022
9058
  {
9059
+ inputs: [{ name: 'amountWorkers', required: true }],
9060
+ },
9061
+ {
9062
+ columns: 2,
9023
9063
  inputs: [
9024
- { name: 'organization', required: true },
9025
- { name: 'amountWorkers', required: true },
9064
+ { name: 'employerActivities', required: true },
9065
+ {
9066
+ name: 'organizationPhone',
9067
+ label: 'Телефон работодателя',
9068
+ required: true,
9069
+ },
9026
9070
  ],
9027
9071
  },
9028
9072
  {
9029
9073
  columns: 2,
9030
9074
  inputs: [
9031
- { name: 'employerActivities', required: true },
9032
- { name: 'employerOrganization', required: true },
9033
9075
  { name: 'generalSeniority', required: true, filledByEsia: true },
9034
9076
  { name: 'lastJobExperience', required: true, filledByEsia: true },
9035
9077
  { name: 'experience5Years', required: true, filledByEsia: true },
@@ -9037,14 +9079,7 @@
9037
9079
  ],
9038
9080
  },
9039
9081
  {
9040
- inputs: [
9041
- {
9042
- name: 'organizationPhone',
9043
- label: 'Телефон работодателя',
9044
- required: true,
9045
- },
9046
- { name: 'beginDate', required: true, filledByEsia: true },
9047
- ],
9082
+ inputs: [{ name: 'beginDate', required: true, filledByEsia: true }],
9048
9083
  },
9049
9084
  {
9050
9085
  columns: 2,
@@ -9178,13 +9213,20 @@
9178
9213
  values: ['office'],
9179
9214
  },
9180
9215
  },
9216
+ ],
9217
+ },
9218
+ {
9219
+ columns: 2,
9220
+ inputs: [
9181
9221
  {
9182
- name: 'bankEmployeeCode',
9183
9222
  condition: {
9184
9223
  name: 'methodObtain',
9185
9224
  values: ['office'],
9186
9225
  },
9187
9226
  },
9227
+ {
9228
+ name: 'bankEmployeeCode',
9229
+ },
9188
9230
  ],
9189
9231
  },
9190
9232
  ];
@@ -9553,38 +9595,30 @@
9553
9595
  ],
9554
9596
  },
9555
9597
  {
9556
- inputs: [
9557
- { name: 'employment', required: true },
9558
- { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
9559
- ],
9598
+ inputs: [{ name: 'employment', required: true }],
9560
9599
  },
9561
9600
  {
9562
9601
  columns: 2,
9563
9602
  inputs: [
9603
+ { name: 'organizationName', required: true, dadata: true, filledByEsia: true },
9564
9604
  { name: 'inn', required: true, dadata: true, filledByEsia: true },
9565
- { name: 'legalForm', required: true },
9566
9605
  ],
9567
9606
  },
9568
9607
  {
9608
+ columns: 2,
9569
9609
  inputs: [
9570
- { name: 'organization', required: true },
9571
9610
  { name: 'amountWorkers', required: true },
9611
+ {
9612
+ name: 'organizationPhone',
9613
+ label: 'Телефон работодателя',
9614
+ required: true,
9615
+ },
9572
9616
  ],
9573
9617
  },
9574
9618
  {
9575
9619
  columns: 2,
9576
9620
  inputs: [
9577
- { name: 'employerOrganization', required: true },
9578
9621
  { name: 'jobsNumber', required: true, filledByEsia: true },
9579
- ],
9580
- },
9581
- {
9582
- inputs: [
9583
- {
9584
- name: 'organizationPhone',
9585
- label: 'Телефон работодателя',
9586
- required: true,
9587
- },
9588
9622
  { name: 'beginDate', required: true, filledByEsia: true },
9589
9623
  ],
9590
9624
  },
@@ -9685,7 +9719,12 @@
9685
9719
  ],
9686
9720
  },
9687
9721
  {
9688
- inputs: [{ name: 'bankEmployeeCode' }],
9722
+ columns: 2,
9723
+ inputs: [
9724
+ {
9725
+ name: 'bankEmployeeCode',
9726
+ },
9727
+ ],
9689
9728
  },
9690
9729
  ];
9691
9730
  const CALCULATOR_CONTENT = [
@@ -11835,7 +11874,7 @@
11835
11874
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
11836
11875
  });
11837
11876
 
11838
- const packageVersion = "0.14.915";
11877
+ const packageVersion = "0.14.917";
11839
11878
 
11840
11879
  exports.Blocks = Blocks;
11841
11880
  exports.ContentPage = ContentPage;