@redneckz/wildless-cms-uni-blocks 0.14.264 → 0.14.266

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 (430) hide show
  1. package/bin/migration-scripts/0.14.265.js +100 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +264 -291
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +7 -9
  6. package/bundle/components/ApplicationFormCustom/FeedbackMethodField.d.ts +2 -0
  7. package/bundle/components/ApplicationFormCustom/FeedbackTypeField.d.ts +2 -0
  8. package/bundle/components/ApplicationFormCustom/IsClientField.d.ts +2 -0
  9. package/bundle/components/ApplicationFormCustom/PartnerCommentsField.d.ts +2 -0
  10. package/bundle/components/ApplicationFormCustom/ServiceDirectionField.d.ts +2 -0
  11. package/bundle/components/ApplicationFormCustom/UltraPremiumField.d.ts +0 -2
  12. package/bundle/components/ApplicationFormCustom/contants.d.ts +3 -0
  13. package/bundle/components/ApplicationFormCustom/getInitialFormState.d.ts +1 -0
  14. package/bundle/components/ApplicationFormCustom/renderAgreementSubmit.d.ts +1 -1
  15. package/bundle/components/ApplicationFormCustom/renderSubmitButton.d.ts +1 -1
  16. package/bundle/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +1 -1
  17. package/bundle/hooks/useNormalizedInput.d.ts +2 -1
  18. package/bundle/ui-kit/Input/InputProps.d.ts +3 -2
  19. package/bundle/ui-kit/PreventableEvent.d.ts +3 -0
  20. package/dist/api/LeadServiceAPI.js +18 -10
  21. package/dist/api/LeadServiceAPI.js.map +1 -1
  22. package/dist/components/ApplicationFormCustom/AddressBranchField.js +5 -4
  23. package/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  24. package/dist/components/ApplicationFormCustom/ApplicationFormCustom.js +12 -2
  25. package/dist/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
  26. package/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +7 -9
  27. package/dist/components/ApplicationFormCustom/FeedbackMethodField.d.ts +2 -0
  28. package/dist/components/ApplicationFormCustom/FeedbackMethodField.js +10 -0
  29. package/dist/components/ApplicationFormCustom/FeedbackMethodField.js.map +1 -0
  30. package/dist/components/ApplicationFormCustom/FeedbackTypeField.d.ts +2 -0
  31. package/dist/components/ApplicationFormCustom/FeedbackTypeField.js +19 -0
  32. package/dist/components/ApplicationFormCustom/FeedbackTypeField.js.map +1 -0
  33. package/dist/components/ApplicationFormCustom/IsClientField.d.ts +2 -0
  34. package/dist/components/ApplicationFormCustom/IsClientField.js +7 -0
  35. package/dist/components/ApplicationFormCustom/IsClientField.js.map +1 -0
  36. package/dist/components/ApplicationFormCustom/PartnerCommentsField.d.ts +2 -0
  37. package/dist/components/ApplicationFormCustom/PartnerCommentsField.js +14 -0
  38. package/dist/components/ApplicationFormCustom/PartnerCommentsField.js.map +1 -0
  39. package/dist/components/ApplicationFormCustom/ServiceDirectionField.d.ts +2 -0
  40. package/dist/components/ApplicationFormCustom/ServiceDirectionField.js +10 -0
  41. package/dist/components/ApplicationFormCustom/ServiceDirectionField.js.map +1 -0
  42. package/dist/components/ApplicationFormCustom/UltraPremiumField.d.ts +0 -2
  43. package/dist/components/ApplicationFormCustom/UltraPremiumField.js +4 -7
  44. package/dist/components/ApplicationFormCustom/UltraPremiumField.js.map +1 -1
  45. package/dist/components/ApplicationFormCustom/contants.d.ts +3 -0
  46. package/dist/components/ApplicationFormCustom/contants.js +19 -1
  47. package/dist/components/ApplicationFormCustom/contants.js.map +1 -1
  48. package/dist/components/ApplicationFormCustom/getField.js +13 -2
  49. package/dist/components/ApplicationFormCustom/getField.js.map +1 -1
  50. package/dist/components/ApplicationFormCustom/getFormatData.js +2 -1
  51. package/dist/components/ApplicationFormCustom/getFormatData.js.map +1 -1
  52. package/dist/components/ApplicationFormCustom/getInitialFormState.d.ts +1 -0
  53. package/dist/components/ApplicationFormCustom/getInitialFormState.js +7 -4
  54. package/dist/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
  55. package/dist/components/ApplicationFormCustom/getObjectValidator.js +4 -0
  56. package/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
  57. package/dist/components/ApplicationFormCustom/renderAgreementSubmit.d.ts +1 -1
  58. package/dist/components/ApplicationFormCustom/renderSubmitButton.d.ts +1 -1
  59. package/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +1 -1
  60. package/dist/components/Blocks.js +0 -2
  61. package/dist/components/Blocks.js.map +1 -1
  62. package/dist/components/Blocks.mobile.js +0 -2
  63. package/dist/components/Blocks.mobile.js.map +1 -1
  64. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +4 -1
  65. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  66. package/dist/components/StickyBottomMenu/useBottomMenuItemDialog.js +5 -1
  67. package/dist/components/StickyBottomMenu/useBottomMenuItemDialog.js.map +1 -1
  68. package/dist/hooks/useNormalizedInput.d.ts +2 -1
  69. package/dist/hooks/useNormalizedInput.js +2 -2
  70. package/dist/hooks/useNormalizedInput.js.map +1 -1
  71. package/dist/ui-kit/Input/InputProps.d.ts +3 -2
  72. package/dist/ui-kit/PhoneInput/PhoneInput.js +5 -2
  73. package/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  74. package/dist/ui-kit/PreventableEvent.d.ts +3 -0
  75. package/lib/api/LeadServiceAPI.js +18 -10
  76. package/lib/api/LeadServiceAPI.js.map +1 -1
  77. package/lib/common.css +1 -1
  78. package/lib/components/ApplicationFormCustom/AddressBranchField.js +5 -4
  79. package/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  80. package/lib/components/ApplicationFormCustom/ApplicationFormCustom.fixture.d.ts +1 -0
  81. package/lib/components/ApplicationFormCustom/ApplicationFormCustom.js +13 -3
  82. package/lib/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
  83. package/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +7 -9
  84. package/lib/components/ApplicationFormCustom/FeedbackMethodField.d.ts +2 -0
  85. package/lib/components/ApplicationFormCustom/FeedbackMethodField.js +8 -0
  86. package/lib/components/ApplicationFormCustom/FeedbackMethodField.js.map +1 -0
  87. package/lib/components/ApplicationFormCustom/FeedbackTypeField.d.ts +2 -0
  88. package/lib/components/ApplicationFormCustom/FeedbackTypeField.js +17 -0
  89. package/lib/components/ApplicationFormCustom/FeedbackTypeField.js.map +1 -0
  90. package/lib/components/ApplicationFormCustom/IsClientField.d.ts +2 -0
  91. package/lib/components/ApplicationFormCustom/IsClientField.js +5 -0
  92. package/lib/components/ApplicationFormCustom/IsClientField.js.map +1 -0
  93. package/lib/components/ApplicationFormCustom/PartnerCommentsField.d.ts +2 -0
  94. package/lib/components/ApplicationFormCustom/PartnerCommentsField.js +12 -0
  95. package/lib/components/ApplicationFormCustom/PartnerCommentsField.js.map +1 -0
  96. package/lib/components/ApplicationFormCustom/ServiceDirectionField.d.ts +2 -0
  97. package/lib/components/ApplicationFormCustom/ServiceDirectionField.js +8 -0
  98. package/lib/components/ApplicationFormCustom/ServiceDirectionField.js.map +1 -0
  99. package/lib/components/ApplicationFormCustom/UltraPremiumField.d.ts +0 -2
  100. package/lib/components/ApplicationFormCustom/UltraPremiumField.js +3 -6
  101. package/lib/components/ApplicationFormCustom/UltraPremiumField.js.map +1 -1
  102. package/lib/components/ApplicationFormCustom/contants.d.ts +3 -0
  103. package/lib/components/ApplicationFormCustom/contants.js +18 -0
  104. package/lib/components/ApplicationFormCustom/contants.js.map +1 -1
  105. package/lib/components/ApplicationFormCustom/getField.js +13 -2
  106. package/lib/components/ApplicationFormCustom/getField.js.map +1 -1
  107. package/lib/components/ApplicationFormCustom/getFormatData.js +2 -1
  108. package/lib/components/ApplicationFormCustom/getFormatData.js.map +1 -1
  109. package/lib/components/ApplicationFormCustom/getInitialFormState.d.ts +1 -0
  110. package/lib/components/ApplicationFormCustom/getInitialFormState.js +5 -2
  111. package/lib/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
  112. package/lib/components/ApplicationFormCustom/getObjectValidator.js +4 -0
  113. package/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
  114. package/lib/components/ApplicationFormCustom/renderAgreementSubmit.d.ts +1 -1
  115. package/lib/components/ApplicationFormCustom/renderSubmitButton.d.ts +1 -1
  116. package/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +1 -1
  117. package/lib/components/Blocks.js +0 -2
  118. package/lib/components/Blocks.js.map +1 -1
  119. package/lib/components/Blocks.mobile.js +0 -2
  120. package/lib/components/Blocks.mobile.js.map +1 -1
  121. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +4 -1
  122. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -1
  123. package/lib/components/StickyBottomMenu/useBottomMenuItemDialog.js +5 -1
  124. package/lib/components/StickyBottomMenu/useBottomMenuItemDialog.js.map +1 -1
  125. package/lib/hooks/useNormalizedInput.d.ts +2 -1
  126. package/lib/hooks/useNormalizedInput.js +2 -2
  127. package/lib/hooks/useNormalizedInput.js.map +1 -1
  128. package/lib/ui-kit/Input/InputProps.d.ts +3 -2
  129. package/lib/ui-kit/PhoneInput/PhoneInput.js +5 -2
  130. package/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  131. package/lib/ui-kit/PreventableEvent.d.ts +3 -0
  132. package/mobile/bundle/bundle.umd.js +273 -293
  133. package/mobile/bundle/bundle.umd.min.js +1 -1
  134. package/mobile/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +7 -9
  135. package/mobile/bundle/components/ApplicationFormCustom/FeedbackMethodField.d.ts +2 -0
  136. package/mobile/bundle/components/ApplicationFormCustom/FeedbackTypeField.d.ts +2 -0
  137. package/mobile/bundle/components/ApplicationFormCustom/IsClientField.d.ts +2 -0
  138. package/mobile/bundle/components/ApplicationFormCustom/PartnerCommentsField.d.ts +2 -0
  139. package/mobile/bundle/components/ApplicationFormCustom/ServiceDirectionField.d.ts +2 -0
  140. package/mobile/bundle/components/ApplicationFormCustom/UltraPremiumField.d.ts +0 -2
  141. package/mobile/bundle/components/ApplicationFormCustom/contants.d.ts +3 -0
  142. package/mobile/bundle/components/ApplicationFormCustom/getInitialFormState.d.ts +1 -0
  143. package/mobile/bundle/components/ApplicationFormCustom/renderAgreementSubmit.d.ts +1 -1
  144. package/mobile/bundle/components/ApplicationFormCustom/renderSubmitButton.d.ts +1 -1
  145. package/mobile/bundle/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +1 -1
  146. package/mobile/bundle/hooks/useNormalizedInput.d.ts +2 -1
  147. package/mobile/bundle/ui-kit/Input/InputProps.d.ts +3 -2
  148. package/mobile/bundle/ui-kit/PreventableEvent.d.ts +3 -0
  149. package/mobile/dist/api/LeadServiceAPI.js +18 -10
  150. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  151. package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js +5 -4
  152. package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  153. package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustom.js +12 -2
  154. package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
  155. package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +7 -9
  156. package/mobile/dist/components/ApplicationFormCustom/FeedbackMethodField.d.ts +2 -0
  157. package/mobile/dist/components/ApplicationFormCustom/FeedbackMethodField.js +10 -0
  158. package/mobile/dist/components/ApplicationFormCustom/FeedbackMethodField.js.map +1 -0
  159. package/mobile/dist/components/ApplicationFormCustom/FeedbackTypeField.d.ts +2 -0
  160. package/mobile/dist/components/ApplicationFormCustom/FeedbackTypeField.js +19 -0
  161. package/mobile/dist/components/ApplicationFormCustom/FeedbackTypeField.js.map +1 -0
  162. package/mobile/dist/components/ApplicationFormCustom/IsClientField.d.ts +2 -0
  163. package/mobile/dist/components/ApplicationFormCustom/IsClientField.js +7 -0
  164. package/mobile/dist/components/ApplicationFormCustom/IsClientField.js.map +1 -0
  165. package/mobile/dist/components/ApplicationFormCustom/PartnerCommentsField.d.ts +2 -0
  166. package/mobile/dist/components/ApplicationFormCustom/PartnerCommentsField.js +14 -0
  167. package/mobile/dist/components/ApplicationFormCustom/PartnerCommentsField.js.map +1 -0
  168. package/mobile/dist/components/ApplicationFormCustom/ServiceDirectionField.d.ts +2 -0
  169. package/mobile/dist/components/ApplicationFormCustom/ServiceDirectionField.js +10 -0
  170. package/mobile/dist/components/ApplicationFormCustom/ServiceDirectionField.js.map +1 -0
  171. package/mobile/dist/components/ApplicationFormCustom/UltraPremiumField.d.ts +0 -2
  172. package/mobile/dist/components/ApplicationFormCustom/UltraPremiumField.js +4 -7
  173. package/mobile/dist/components/ApplicationFormCustom/UltraPremiumField.js.map +1 -1
  174. package/mobile/dist/components/ApplicationFormCustom/contants.d.ts +3 -0
  175. package/mobile/dist/components/ApplicationFormCustom/contants.js +19 -1
  176. package/mobile/dist/components/ApplicationFormCustom/contants.js.map +1 -1
  177. package/mobile/dist/components/ApplicationFormCustom/getField.js +13 -2
  178. package/mobile/dist/components/ApplicationFormCustom/getField.js.map +1 -1
  179. package/mobile/dist/components/ApplicationFormCustom/getFormatData.js +2 -1
  180. package/mobile/dist/components/ApplicationFormCustom/getFormatData.js.map +1 -1
  181. package/mobile/dist/components/ApplicationFormCustom/getInitialFormState.d.ts +1 -0
  182. package/mobile/dist/components/ApplicationFormCustom/getInitialFormState.js +7 -4
  183. package/mobile/dist/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
  184. package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js +4 -0
  185. package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
  186. package/mobile/dist/components/ApplicationFormCustom/renderAgreementSubmit.d.ts +1 -1
  187. package/mobile/dist/components/ApplicationFormCustom/renderSubmitButton.d.ts +1 -1
  188. package/mobile/dist/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +1 -1
  189. package/mobile/dist/components/Blocks.js +0 -2
  190. package/mobile/dist/components/Blocks.js.map +1 -1
  191. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +4 -1
  192. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  193. package/mobile/dist/components/StickyBottomMenu/useBottomMenuItemDialog.js +5 -1
  194. package/mobile/dist/components/StickyBottomMenu/useBottomMenuItemDialog.js.map +1 -1
  195. package/mobile/dist/hooks/useNormalizedInput.d.ts +2 -1
  196. package/mobile/dist/hooks/useNormalizedInput.js +2 -2
  197. package/mobile/dist/hooks/useNormalizedInput.js.map +1 -1
  198. package/mobile/dist/ui-kit/Input/InputProps.d.ts +3 -2
  199. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js +5 -2
  200. package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  201. package/mobile/dist/ui-kit/PreventableEvent.d.ts +3 -0
  202. package/mobile/lib/api/LeadServiceAPI.js +18 -10
  203. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  204. package/mobile/lib/common.css +1 -1
  205. package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js +5 -4
  206. package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  207. package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustom.js +13 -3
  208. package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustom.js.map +1 -1
  209. package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +7 -9
  210. package/mobile/lib/components/ApplicationFormCustom/FeedbackMethodField.d.ts +2 -0
  211. package/mobile/lib/components/ApplicationFormCustom/FeedbackMethodField.js +8 -0
  212. package/mobile/lib/components/ApplicationFormCustom/FeedbackMethodField.js.map +1 -0
  213. package/mobile/lib/components/ApplicationFormCustom/FeedbackTypeField.d.ts +2 -0
  214. package/mobile/lib/components/ApplicationFormCustom/FeedbackTypeField.js +17 -0
  215. package/mobile/lib/components/ApplicationFormCustom/FeedbackTypeField.js.map +1 -0
  216. package/mobile/lib/components/ApplicationFormCustom/IsClientField.d.ts +2 -0
  217. package/mobile/lib/components/ApplicationFormCustom/IsClientField.js +5 -0
  218. package/mobile/lib/components/ApplicationFormCustom/IsClientField.js.map +1 -0
  219. package/mobile/lib/components/ApplicationFormCustom/PartnerCommentsField.d.ts +2 -0
  220. package/mobile/lib/components/ApplicationFormCustom/PartnerCommentsField.js +12 -0
  221. package/mobile/lib/components/ApplicationFormCustom/PartnerCommentsField.js.map +1 -0
  222. package/mobile/lib/components/ApplicationFormCustom/ServiceDirectionField.d.ts +2 -0
  223. package/mobile/lib/components/ApplicationFormCustom/ServiceDirectionField.js +8 -0
  224. package/mobile/lib/components/ApplicationFormCustom/ServiceDirectionField.js.map +1 -0
  225. package/mobile/lib/components/ApplicationFormCustom/UltraPremiumField.d.ts +0 -2
  226. package/mobile/lib/components/ApplicationFormCustom/UltraPremiumField.js +3 -6
  227. package/mobile/lib/components/ApplicationFormCustom/UltraPremiumField.js.map +1 -1
  228. package/mobile/lib/components/ApplicationFormCustom/contants.d.ts +3 -0
  229. package/mobile/lib/components/ApplicationFormCustom/contants.js +18 -0
  230. package/mobile/lib/components/ApplicationFormCustom/contants.js.map +1 -1
  231. package/mobile/lib/components/ApplicationFormCustom/getField.js +13 -2
  232. package/mobile/lib/components/ApplicationFormCustom/getField.js.map +1 -1
  233. package/mobile/lib/components/ApplicationFormCustom/getFormatData.js +2 -1
  234. package/mobile/lib/components/ApplicationFormCustom/getFormatData.js.map +1 -1
  235. package/mobile/lib/components/ApplicationFormCustom/getInitialFormState.d.ts +1 -0
  236. package/mobile/lib/components/ApplicationFormCustom/getInitialFormState.js +5 -2
  237. package/mobile/lib/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
  238. package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js +4 -0
  239. package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
  240. package/mobile/lib/components/ApplicationFormCustom/renderAgreementSubmit.d.ts +1 -1
  241. package/mobile/lib/components/ApplicationFormCustom/renderSubmitButton.d.ts +1 -1
  242. package/mobile/lib/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.d.ts +1 -1
  243. package/mobile/lib/components/Blocks.js +0 -2
  244. package/mobile/lib/components/Blocks.js.map +1 -1
  245. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +4 -1
  246. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -1
  247. package/mobile/lib/components/StickyBottomMenu/useBottomMenuItemDialog.js +5 -1
  248. package/mobile/lib/components/StickyBottomMenu/useBottomMenuItemDialog.js.map +1 -1
  249. package/mobile/lib/hooks/useNormalizedInput.d.ts +2 -1
  250. package/mobile/lib/hooks/useNormalizedInput.js +2 -2
  251. package/mobile/lib/hooks/useNormalizedInput.js.map +1 -1
  252. package/mobile/lib/ui-kit/Input/InputProps.d.ts +3 -2
  253. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js +5 -2
  254. package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -1
  255. package/mobile/lib/ui-kit/PreventableEvent.d.ts +3 -0
  256. package/mobile/src/api/LeadServiceAPI.ts +18 -9
  257. package/mobile/src/components/ApplicationFormCustom/AddressBranchField.tsx +5 -4
  258. package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +90 -0
  259. package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.tsx +18 -6
  260. package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +13 -8
  261. package/mobile/src/components/ApplicationFormCustom/FeedbackMethodField.tsx +14 -0
  262. package/mobile/src/components/ApplicationFormCustom/FeedbackTypeField.tsx +25 -0
  263. package/mobile/src/components/ApplicationFormCustom/IsClientField.tsx +7 -0
  264. package/mobile/src/components/ApplicationFormCustom/PartnerCommentsField.tsx +18 -0
  265. package/mobile/src/components/ApplicationFormCustom/ServiceDirectionField.tsx +15 -0
  266. package/mobile/src/components/ApplicationFormCustom/UltraPremiumField.tsx +3 -9
  267. package/mobile/src/components/ApplicationFormCustom/contants.tsx +21 -0
  268. package/mobile/src/components/ApplicationFormCustom/getField.tsx +20 -7
  269. package/mobile/src/components/ApplicationFormCustom/getFormatData.tsx +2 -0
  270. package/mobile/src/components/ApplicationFormCustom/getInitialFormState.tsx +6 -2
  271. package/mobile/src/components/ApplicationFormCustom/getObjectValidator.tsx +4 -0
  272. package/mobile/src/components/ApplicationFormCustom/renderAgreementSubmit.tsx +1 -1
  273. package/mobile/src/components/ApplicationFormCustom/renderSubmitButton.tsx +1 -1
  274. package/mobile/src/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.ts +1 -1
  275. package/mobile/src/components/Blocks.ts +0 -2
  276. package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +8 -1
  277. package/mobile/src/components/StickyBottomMenu/useBottomMenuItemDialog.tsx +8 -1
  278. package/mobile/src/hooks/useNormalizedInput.ts +3 -2
  279. package/mobile/src/ui-kit/Input/InputProps.ts +3 -2
  280. package/mobile/src/ui-kit/PhoneInput/PhoneInput.tsx +7 -3
  281. package/mobile/src/ui-kit/PreventableEvent.ts +2 -0
  282. package/package.json +1 -1
  283. package/src/api/LeadServiceAPI.ts +18 -9
  284. package/src/components/ApplicationFormCustom/AddressBranchField.tsx +5 -4
  285. package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +90 -0
  286. package/src/components/ApplicationFormCustom/ApplicationFormCustom.fixture.tsx +86 -0
  287. package/src/components/ApplicationFormCustom/ApplicationFormCustom.tsx +18 -6
  288. package/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +13 -8
  289. package/src/components/ApplicationFormCustom/FeedbackMethodField.tsx +14 -0
  290. package/src/components/ApplicationFormCustom/FeedbackTypeField.tsx +25 -0
  291. package/src/components/ApplicationFormCustom/IsClientField.tsx +7 -0
  292. package/src/components/ApplicationFormCustom/PartnerCommentsField.tsx +18 -0
  293. package/src/components/ApplicationFormCustom/ServiceDirectionField.tsx +15 -0
  294. package/src/components/ApplicationFormCustom/UltraPremiumField.tsx +3 -9
  295. package/src/components/ApplicationFormCustom/contants.tsx +21 -0
  296. package/src/components/ApplicationFormCustom/getField.tsx +20 -7
  297. package/src/components/ApplicationFormCustom/getFormatData.tsx +2 -0
  298. package/src/components/ApplicationFormCustom/getInitialFormState.tsx +6 -2
  299. package/src/components/ApplicationFormCustom/getObjectValidator.tsx +4 -0
  300. package/src/components/ApplicationFormCustom/renderAgreementSubmit.tsx +1 -1
  301. package/src/components/ApplicationFormCustom/renderSubmitButton.tsx +1 -1
  302. package/src/components/ApplicationFormGrantSupport/ApplicationFormGrantSupportContent.ts +1 -1
  303. package/src/components/Blocks.mobile.ts +0 -2
  304. package/src/components/Blocks.ts +0 -2
  305. package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +8 -1
  306. package/src/components/StickyBottomMenu/useBottomMenuItemDialog.tsx +8 -1
  307. package/src/hooks/useNormalizedInput.ts +3 -2
  308. package/src/ui-kit/Input/InputProps.ts +3 -2
  309. package/src/ui-kit/PhoneInput/PhoneInput.tsx +7 -3
  310. package/src/ui-kit/PreventableEvent.ts +2 -0
  311. package/bundle/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -5
  312. package/bundle/components/ApplicationForm/ApplicationForm.d.ts +0 -5
  313. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +0 -35
  314. package/bundle/components/ApplicationForm/ApplicationFormFeedback.d.ts +0 -37
  315. package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -7
  316. package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +0 -3
  317. package/bundle/components/ApplicationForm/feedbackTypes.d.ts +0 -4
  318. package/dist/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -5
  319. package/dist/components/ApplicationForm/ApplicationFieldsetLayout.js +0 -8
  320. package/dist/components/ApplicationForm/ApplicationFieldsetLayout.js.map +0 -1
  321. package/dist/components/ApplicationForm/ApplicationForm.d.ts +0 -5
  322. package/dist/components/ApplicationForm/ApplicationForm.js +0 -31
  323. package/dist/components/ApplicationForm/ApplicationForm.js.map +0 -1
  324. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +0 -35
  325. package/dist/components/ApplicationForm/ApplicationFormContent.js +0 -2
  326. package/dist/components/ApplicationForm/ApplicationFormContent.js.map +0 -1
  327. package/dist/components/ApplicationForm/ApplicationFormFeedback.d.ts +0 -37
  328. package/dist/components/ApplicationForm/ApplicationFormFeedback.js +0 -80
  329. package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +0 -1
  330. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -7
  331. package/dist/components/ApplicationForm/ApplicationFormsProps.js +0 -2
  332. package/dist/components/ApplicationForm/ApplicationFormsProps.js.map +0 -1
  333. package/dist/components/ApplicationForm/EmbeddableForms.d.ts +0 -3
  334. package/dist/components/ApplicationForm/EmbeddableForms.js +0 -7
  335. package/dist/components/ApplicationForm/EmbeddableForms.js.map +0 -1
  336. package/dist/components/ApplicationForm/feedbackTypes.d.ts +0 -4
  337. package/dist/components/ApplicationForm/feedbackTypes.js +0 -21
  338. package/dist/components/ApplicationForm/feedbackTypes.js.map +0 -1
  339. package/lib/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -5
  340. package/lib/components/ApplicationForm/ApplicationFieldsetLayout.js +0 -6
  341. package/lib/components/ApplicationForm/ApplicationFieldsetLayout.js.map +0 -1
  342. package/lib/components/ApplicationForm/ApplicationForm.d.ts +0 -5
  343. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +0 -6
  344. package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +0 -6
  345. package/lib/components/ApplicationForm/ApplicationForm.js +0 -29
  346. package/lib/components/ApplicationForm/ApplicationForm.js.map +0 -1
  347. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +0 -35
  348. package/lib/components/ApplicationForm/ApplicationFormContent.js +0 -2
  349. package/lib/components/ApplicationForm/ApplicationFormContent.js.map +0 -1
  350. package/lib/components/ApplicationForm/ApplicationFormFeedback.d.ts +0 -37
  351. package/lib/components/ApplicationForm/ApplicationFormFeedback.js +0 -76
  352. package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +0 -1
  353. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -7
  354. package/lib/components/ApplicationForm/ApplicationFormsProps.js +0 -2
  355. package/lib/components/ApplicationForm/ApplicationFormsProps.js.map +0 -1
  356. package/lib/components/ApplicationForm/EmbeddableForms.d.ts +0 -3
  357. package/lib/components/ApplicationForm/EmbeddableForms.js +0 -5
  358. package/lib/components/ApplicationForm/EmbeddableForms.js.map +0 -1
  359. package/lib/components/ApplicationForm/feedbackTypes.d.ts +0 -4
  360. package/lib/components/ApplicationForm/feedbackTypes.js +0 -19
  361. package/lib/components/ApplicationForm/feedbackTypes.js.map +0 -1
  362. package/mobile/bundle/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -5
  363. package/mobile/bundle/components/ApplicationForm/ApplicationForm.d.ts +0 -5
  364. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +0 -35
  365. package/mobile/bundle/components/ApplicationForm/ApplicationFormFeedback.d.ts +0 -37
  366. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -7
  367. package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +0 -3
  368. package/mobile/bundle/components/ApplicationForm/feedbackTypes.d.ts +0 -4
  369. package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -5
  370. package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.js +0 -8
  371. package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.js.map +0 -1
  372. package/mobile/dist/components/ApplicationForm/ApplicationForm.d.ts +0 -5
  373. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +0 -31
  374. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +0 -1
  375. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +0 -35
  376. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js +0 -2
  377. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js.map +0 -1
  378. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.d.ts +0 -37
  379. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +0 -80
  380. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +0 -1
  381. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -7
  382. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js +0 -2
  383. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js.map +0 -1
  384. package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +0 -3
  385. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +0 -7
  386. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +0 -1
  387. package/mobile/dist/components/ApplicationForm/feedbackTypes.d.ts +0 -4
  388. package/mobile/dist/components/ApplicationForm/feedbackTypes.js +0 -21
  389. package/mobile/dist/components/ApplicationForm/feedbackTypes.js.map +0 -1
  390. package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -5
  391. package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.js +0 -6
  392. package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.js.map +0 -1
  393. package/mobile/lib/components/ApplicationForm/ApplicationForm.d.ts +0 -5
  394. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +0 -29
  395. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +0 -1
  396. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +0 -35
  397. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js +0 -2
  398. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js.map +0 -1
  399. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.d.ts +0 -37
  400. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +0 -76
  401. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +0 -1
  402. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +0 -7
  403. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js +0 -2
  404. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js.map +0 -1
  405. package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +0 -3
  406. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +0 -5
  407. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +0 -1
  408. package/mobile/lib/components/ApplicationForm/feedbackTypes.d.ts +0 -4
  409. package/mobile/lib/components/ApplicationForm/feedbackTypes.js +0 -19
  410. package/mobile/lib/components/ApplicationForm/feedbackTypes.js.map +0 -1
  411. package/mobile/src/components/ApplicationForm/ApplicationFieldsetLayout.tsx +0 -21
  412. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +0 -13
  413. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +0 -66
  414. package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +0 -9
  415. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +0 -41
  416. package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +0 -205
  417. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +0 -8
  418. package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +0 -5
  419. package/mobile/src/components/ApplicationForm/feedbackTypes.ts +0 -22
  420. package/src/components/ApplicationForm/ApplicationFieldsetLayout.tsx +0 -21
  421. package/src/components/ApplicationForm/ApplicationForm.example.json +0 -13
  422. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +0 -29
  423. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +0 -29
  424. package/src/components/ApplicationForm/ApplicationForm.tsx +0 -66
  425. package/src/components/ApplicationForm/ApplicationForm.ui.json +0 -9
  426. package/src/components/ApplicationForm/ApplicationFormContent.ts +0 -41
  427. package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +0 -205
  428. package/src/components/ApplicationForm/ApplicationFormsProps.ts +0 -8
  429. package/src/components/ApplicationForm/EmbeddableForms.tsx +0 -5
  430. package/src/components/ApplicationForm/feedbackTypes.ts +0 -22
@@ -1,4 +1,4 @@
1
- import { type LabelProps, type TitleProps } from '../../model/HeadlineType';
1
+ import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
2
2
  import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
3
3
  import { type LinkProps } from '../../model/LinkProps';
4
4
  import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
@@ -9,17 +9,15 @@ interface Required {
9
9
  /**
10
10
  * @title Кнопка
11
11
  */
12
- export interface SubmitButtonProps {
13
- /** @title Текст кнопки */
14
- text?: string;
12
+ export declare type SubmitButtonProps = TextProps & {
15
13
  version?: LinkButtonVersion;
16
- }
14
+ };
17
15
  /**
18
16
  * @title Название поля ввода
19
17
  * @required
20
- * @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Ультра/Премиум", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "Комментарий партнёров", "Согласие на обработку"]
18
+ * @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "Комментарий партнёров", "Согласие на обработку"]
21
19
  */
22
- export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'birthday' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceType' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'partnerComments' | 'consentDataProcessing';
20
+ export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'birthday' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'partnerComments' | 'consentDataProcessing';
23
21
  export declare type ConditionFieldProps = {
24
22
  condition?: {
25
23
  name: NameFieldDef;
@@ -32,9 +30,9 @@ export declare type FieldDef = Required & LabelProps & ConditionFieldProps & {
32
30
  /**
33
31
  * @title Тип формы
34
32
  * @required
35
- * @enumNames ["Эквайринг ЮЛ", "Аналитика ФЛ", "Мошенничество ФЛ", "Бизнес-карта ЮЛ", "Брокерское обслуживание ЮЛ", "Брокерский счет ФЛ", "Инкассация ЮЛ", "Факты коррупции ФЛ", "Кредит ЮЛ", "Депозит ЮЛ", "Консультация по продукту ФЛ", "Самоинкассация ЮЛ", "ВЭД ЮЛ", "Ультра ФЛ", "Премиум ФЛ"]
33
+ * @enumNames ["Эквайринг ЮЛ", "Аналитика ФЛ", "Мошенничество ФЛ", "Бизнес-карта ЮЛ", "Брокерское обслуживание ЮЛ", "Брокерский счет ФЛ", "Инкассация ЮЛ", "Факты коррупции ФЛ", "Кредит ЮЛ", "Депозит ЮЛ", "Консультация по продукту ФЛ", "Самоинкассация ЮЛ", "ВЭД ЮЛ", "Ультра ФЛ", "Премиум ФЛ", "Обратная связь"]
36
34
  */
37
- declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE';
35
+ declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK';
38
36
  /**
39
37
  * @title Количество колнок
40
38
  * @enumNames ["Одна", "Две"]
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from './CustomFieldProps';
2
+ export declare const FeedbackMethodField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from './CustomFieldProps';
2
+ export declare const FeedbackTypeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from './CustomFieldProps';
2
+ export declare const IsClientField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from './CustomFieldProps';
2
+ export declare const SecondaryPhoneField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from './CustomFieldProps';
2
+ export declare const ServiceDirectionField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,4 +1,2 @@
1
- import { type Option } from '../../ui-kit/Select/Option';
2
1
  import { type CustomFieldProps } from './CustomFieldProps';
3
- export declare const SERVICE_TYPES: Option[];
4
2
  export declare const UltraPremiumField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,2 +1,5 @@
1
1
  import { type Option } from '../../ui-kit/Select/Option';
2
2
  export declare const SERVICE_TYPES: Option[];
3
+ export declare const SERVICE_DIRECTIONS: Option[];
4
+ export declare const FEEDBACK_TYPES: Option[];
5
+ export declare const FEEDBACK_METHOD: Option[];
@@ -7,6 +7,7 @@ export interface FormState {
7
7
  middleName?: string;
8
8
  birthday?: Date;
9
9
  phone?: string;
10
+ secondaryPhone?: string;
10
11
  email?: string;
11
12
  acquiringType?: Option;
12
13
  onlineCheckout?: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { type FieldProps } from '../../hooks/useForm';
3
3
  import { type LinkProps } from '../../model/LinkProps';
4
- import { type SubmitButtonProps } from '../ApplicationForm/ApplicationFormContent';
4
+ import { type SubmitButtonProps } from './ApplicationFormCustomContent';
5
5
  export declare const renderAgreementSubmit: (consentDataProcessing?: FieldProps<boolean>, link?: LinkProps, button?: SubmitButtonProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { type SubmitButtonProps } from '../ApplicationForm/ApplicationFormContent';
2
+ import { type SubmitButtonProps } from './ApplicationFormCustomContent';
3
3
  export declare const renderSubmitButton: (button?: SubmitButtonProps, className?: string) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { type JSONRefObject } from '../../data/JSONRefObject';
2
- import { type SubmitButtonProps } from '../ApplicationForm/ApplicationFormContent';
2
+ import { type SubmitButtonProps } from '../ApplicationFormCustom/ApplicationFormCustomContent';
3
3
  declare type RegionGrand = {
4
4
  name: string;
5
5
  href: string;
@@ -1,11 +1,12 @@
1
1
  import { type InputProps } from '../ui-kit/Input/InputProps';
2
+ import { type PreventableEventWithTarget } from '../ui-kit/PreventableEvent';
2
3
  interface UseNormalizedInputOptions<V, R> {
3
4
  normalize: (v: V | undefined) => V;
4
5
  format?: (v: V | undefined) => R;
5
6
  }
6
7
  export declare const useNormalizedInput: <V, P extends InputProps<V>, R = V>(props: P, { normalize, format }: UseNormalizedInputOptions<V, R>) => {
7
8
  value: R;
8
- onFocus: (e: any) => void;
9
+ onFocus: (ev: PreventableEventWithTarget) => void;
9
10
  onBlur: () => void;
10
11
  };
11
12
  export {};
@@ -1,6 +1,7 @@
1
1
  import { type LabelProps } from '../../model/HeadlineType';
2
2
  import { type InputTypes } from '../../model/InputTypes';
3
3
  import { type ControlProps } from '../ControlProps';
4
+ import { type PreventableEventWithTarget } from '../PreventableEvent';
4
5
  export interface InputProps<V = string> extends ControlProps<V>, LabelProps {
5
6
  className?: string;
6
7
  id?: string;
@@ -8,8 +9,8 @@ export interface InputProps<V = string> extends ControlProps<V>, LabelProps {
8
9
  type?: InputTypes;
9
10
  placeholder?: string;
10
11
  pattern?: string;
11
- onFocus?: (event: any) => void;
12
- onBlur?: () => void;
12
+ onFocus?: (ev: PreventableEventWithTarget) => void;
13
+ onBlur?: (ev?: PreventableEventWithTarget) => void;
13
14
  valid?: boolean;
14
15
  disabled?: boolean;
15
16
  autoFocus?: boolean;
@@ -2,3 +2,6 @@ export interface PreventableEvent {
2
2
  preventDefault: () => void;
3
3
  stopPropagation: () => void;
4
4
  }
5
+ export declare type PreventableEventWithTarget = PreventableEvent & {
6
+ target?: EventTarget | null;
7
+ };
@@ -2,16 +2,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.LeadServiceAPI = void 0;
3
3
  const formatPhone_1 = require("../utils/formatPhone");
4
4
  function LeadServiceAPI() {
5
- // eslint-disable-next-line complexity
6
5
  async function send(body, isIndividualType = false) {
7
- const url = isIndividualType ? '/api/v1/lead' : '/api/v1/sendcorporatelead';
8
- const { typeForm, region, phone = '', email, birthday, inn, fullName, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, ...staticBody } = body;
6
+ const { typeForm, region, phone = '', email, birthday, inn, fullName, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, serviceDirection, ...staticBody } = body;
7
+ const isNaturalPerson = isIndividualType && serviceDirection !== 'Юридическое лицо / ИП';
8
+ const url = isNaturalPerson ? '/api/v1/lead' : '/api/v1/sendcorporatelead';
9
9
  const submitBody = {
10
10
  typeForm,
11
- [isIndividualType ? 'regionBranch' : 'region']: region,
12
- [isIndividualType ? 'email' : 'mail']: email,
11
+ ...getRegion(region, isNaturalPerson),
12
+ ...getEmail(email, isNaturalPerson),
13
13
  ...getPhone(phone),
14
- ...(isIndividualType ? { birthday: birthday?.toLocaleString() } : { inn, fullName }),
14
+ ...(isNaturalPerson ? { birthday: birthday?.toLocaleString() } : { inn, fullName }),
15
15
  ...(typeForm === 'FEEDBACK'
16
16
  ? {}
17
17
  : {
@@ -44,8 +44,16 @@ function LeadServiceAPI() {
44
44
  };
45
45
  }
46
46
  exports.LeadServiceAPI = LeadServiceAPI;
47
- const getPhone = (phone, isIndividual) => phone ? { [isIndividual ? 'phoneNumber' : 'phone']: (0, formatPhone_1.formatPhone)(phone) } : {};
48
- const getSecondaryPhone = (secondaryPhone) => !secondaryPhone || secondaryPhone === '+7 ('
49
- ? {}
50
- : { secondaryPhoneNumber: (0, formatPhone_1.formatPhone)(secondaryPhone) };
47
+ const getPhone = (phone) => (phone ? { phone: (0, formatPhone_1.formatPhone)(phone) } : {});
48
+ const getRegion = (region, isNaturalPerson = true) => ({
49
+ [isNaturalPerson ? 'regionBranch' : 'region']: region,
50
+ });
51
+ const getEmail = (email, isNaturalPerson = true) => ({
52
+ [isNaturalPerson ? 'email' : 'mail']: email,
53
+ });
54
+ const getSecondaryPhone = (secondaryPhone = '') => {
55
+ return !secondaryPhone || secondaryPhone === '+7 ('
56
+ ? {}
57
+ : { secondaryPhoneNumber: (0, formatPhone_1.formatPhone)(secondaryPhone) };
58
+ };
51
59
  //# sourceMappingURL=Lead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AAM,QAAQ,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAA,yBAAW,EAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAElF,MAAM,SAAS,GAAG,CAAC,MAAsC,EAAE,eAAe,GAAG,IAAI,EAAE,EAAE,CAAC,CAAC;IACrF,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,MAAM;CACtD,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAE,eAAe,GAAG,IAAI,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK;CAC5C,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,CAAC,cAAc,GAAG,EAAE,EAAE,EAAE;IAChD,OAAO,CAAC,cAAc,IAAI,cAAc,KAAK,MAAM;QACjD,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,EAAE,oBAAoB,EAAE,IAAA,yBAAW,EAAC,cAAc,CAAC,EAAE,CAAC;AAC5D,CAAC,CAAC"}
@@ -9,16 +9,17 @@ const SelectControl_1 = require("../../ui-kit/Select/SelectControl");
9
9
  const getObjectValidator_1 = require("./getObjectValidator");
10
10
  const getValidation_1 = require("./getValidation");
11
11
  exports.AddressBranchField = (0, uni_jsx_1.JSX)(({ field, input, isPremium = false }) => {
12
- const regionKey = field('region')?.value?.key;
13
- const regionText = field('region')?.value?.text;
12
+ const fieldRegion = field('region');
13
+ const regionKey = fieldRegion?.value?.key;
14
+ const regionText = fieldRegion?.value?.text;
14
15
  const addressBranch = isPremium
15
16
  ? (0, useBranchesByRegions_1.useBranchesByRegions)()?.find((_) => _?.region === regionText)?.branches
16
17
  : (0, useBranches_1.useBranches)(regionKey)?.filter((branch) => branch?.address);
17
18
  (0, hooks_1.useEffect)(() => {
18
- if (field('region')?.value?.key !== '') {
19
+ if (fieldRegion?.value?.key !== '') {
19
20
  field?.('addressBranch')?.onChange?.('');
20
21
  }
21
- }, [field('region')?.value]);
22
+ }, [fieldRegion?.value]);
22
23
  return ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: (addressBranch || []).map(({ address = '' }) => ({
23
24
  key: address,
24
25
  text: address,
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBranchField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/AddressBranchField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,yDAAsD;AACtD,2EAAwE;AACxE,qEAAkE;AAElE,6DAAoD;AACpD,mDAAgD;AAMnC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,GAAG,KAAK,EAAE,EAAE,EAAE;IAC9F,MAAM,SAAS,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,GAAa,CAAC;IACxD,MAAM,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,IAAc,CAAC;IAC1D,MAAM,aAAa,GAAG,SAAS;QAC7B,CAAC,CAAC,IAAA,2CAAoB,GAAE,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,UAAU,CAAC,EAAE,QAAQ;QACzE,CAAC,CAAC,IAAA,yBAAW,EAAC,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,KAAK,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE;YACtC,KAAK,EAAE,CAAC,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;SAC1C;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;IAE7B,OAAO,CACL,uBAAC,6BAAa,IACZ,KAAK,EAAC,gCAAO,EACb,WAAW,EAAC,iFAAgB,EAC5B,OAAO,EAAE,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;YACxD,GAAG,EAAE,OAAO;YACZ,IAAI,EAAE,OAAO;SACd,CAAC,CAAC,KACC,IAAA,6BAAa,EAAC,KAAK,CAAC,eAAe,CAAC,EAAE,iCAAY,CAAC,aAAa,EAAE,KAAK,EAAE,QAAQ,CAAC,GACtF,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"AddressBranchField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/AddressBranchField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,yDAAsD;AACtD,2EAAwE;AACxE,qEAAkE;AAElE,6DAAoD;AACpD,mDAAgD;AAMnC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,GAAG,KAAK,EAAE,EAAE,EAAE;IAC9F,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;IACpC,MAAM,SAAS,GAAG,WAAW,EAAE,KAAK,EAAE,GAAa,CAAC;IACpD,MAAM,UAAU,GAAG,WAAW,EAAE,KAAK,EAAE,IAAc,CAAC;IACtD,MAAM,aAAa,GAAG,SAAS;QAC7B,CAAC,CAAC,IAAA,2CAAoB,GAAE,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,UAAU,CAAC,EAAE,QAAQ;QACzE,CAAC,CAAC,IAAA,yBAAW,EAAC,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,WAAW,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE;YAClC,KAAK,EAAE,CAAC,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;SAC1C;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;IAEzB,OAAO,CACL,uBAAC,6BAAa,IACZ,KAAK,EAAC,gCAAO,EACb,WAAW,EAAC,iFAAgB,EAC5B,OAAO,EAAE,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;YACxD,GAAG,EAAE,OAAO;YACZ,IAAI,EAAE,OAAO;SACd,CAAC,CAAC,KACC,IAAA,6BAAa,EAAC,KAAK,CAAC,eAAe,CAAC,EAAE,iCAAY,CAAC,aAAa,EAAE,KAAK,EAAE,QAAQ,CAAC,GACtF,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -31,8 +31,13 @@ exports.ApplicationFormCustom = (0, uni_jsx_1.JSX)(({ className, title, typeForm
31
31
  setResponseType(status);
32
32
  return status;
33
33
  }, []);
34
- const [, { field, onSubmit }] = (0, useForm_1.useForm)(initialFormState, { onSubmit: handleSubmit });
34
+ const [, { field, onSubmit, reset }] = (0, useForm_1.useForm)(initialFormState, { onSubmit: handleSubmit });
35
35
  const fieldName = getConsentDataProcessing(inputs)?.name;
36
+ (0, hooks_1.useEffect)(() => {
37
+ if (responseType === 'OK') {
38
+ reset();
39
+ }
40
+ }, [responseType]);
36
41
  return ((0, jsx_runtime_1.jsxs)(ApplicationFormLayout_1.ApplicationFormLayout, { className: (0, style_1.style)('container space-y-m', className), title: title, responseType: responseType, ...rest, children: [(0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, children: [sections.map((_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)(inputColumnStyles(_.columns), 'grid gap-x-m'), children: [_?.title ? (0, jsx_runtime_1.jsx)("div", { className: "@xl:text-center @xl:col-span-2", children: _.title }) : null, (_?.inputs || [])?.map((0, getField_1.getField)(field, typeForm))] }, `section-${i}`))), (0, renderAgreementSubmit_1.renderAgreementSubmit)(fieldName ? field('consentDataProcessing') : undefined, link, button)] }), isContacts ? (0, renderContacts_1.renderContacts)() : null] }));
37
42
  });
38
43
  const inputColumnStyles = (column) => column === 2 ? '@xl:grid-cols-2' : '';
@@ -40,5 +45,10 @@ const getConsentDataProcessing = (inputs) => inputs?.find((_) => _?.name === 'co
40
45
  const getFilteredInputs = (inputs, data) => inputs
41
46
  .filter((_) => _)
42
47
  .filter((input) => !input?.condition ||
43
- input?.condition.values.find((_) => _ === data?.[input?.condition?.name]));
48
+ input?.condition.values.find((_) => {
49
+ const dataValue = data?.[input?.condition?.name ?? ''];
50
+ return input.name === 'secondaryPhone'
51
+ ? Boolean(data.secondaryPhone)
52
+ : _ === (dataValue?.key ?? dataValue);
53
+ }));
44
54
  //# sourceMappingURL=ApplicationFormCustom.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationFormCustom.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/ApplicationFormCustom.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,6DAA0D;AAC1D,iDAA8C;AAC9C,oGAAiG;AAEjG,6CAA0C;AAC1C,sEAAmE;AACnE,0DAAiE;AAMjE,yCAAsC;AACtC,mDAAgD;AAChD,+DAA4D;AAC5D,6DAA0D;AAC1D,mEAAgE;AAChE,qDAAkD;AAGlD,MAAM,GAAG,GAAG,IAAA,+BAAc,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C,MAAM,wBAAwB,GAAG,CAAC,MAAkB,EAAE,EAAE,CACtD,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,uBAAuB,CAAC,CAAC;AAE3D,MAAM,iBAAiB,GAAG,CAAC,MAAkB,EAAE,IAAyB,EAAE,EAAE,CAC1E,MAAM;KACH,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;KAChB,MAAM,CACL,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,KAAK,EAAE,SAAS;IACjB,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,IAAc,CAAC,CAAC,CACtF,CAAC"}
1
+ {"version":3,"file":"ApplicationFormCustom.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/ApplicationFormCustom.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAA+E;AAC/E,6DAA0D;AAC1D,iDAA8C;AAC9C,oGAAiG;AAEjG,6CAA0C;AAC1C,sEAAmE;AACnE,0DAAiE;AAMjE,yCAAsC;AACtC,mDAAgD;AAChD,+DAA4E;AAC5E,6DAA0D;AAC1D,mEAAgE;AAChE,qDAAkD;AAGlD,MAAM,GAAG,GAAG,IAAA,+BAAc,GAAE,CAAC;AAEhB,QAAA,qBAAqB,GAAG,IAAA,aAAG,EACtC,CAAC,EACC,SAAS,EACT,KAAK,EACL,QAAQ,GAAG,EAAE,EACb,QAAQ,GAAG,EAAE,EACb,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,GAAG,IAAI,EACR,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,EAA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C,MAAkB,EAAE,IAAe,EAAE,EAAE,CAChE,MAAM;KACH,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;KAChB,MAAM,CACL,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,KAAK,EAAE,SAAS;IACjB,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QACjC,MAAM,SAAS,GAAG,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;QAEvD,OAAO,KAAK,CAAC,IAAI,KAAK,gBAAgB;YACpC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC;YAC9B,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,EAAE,GAAG,IAAI,SAAS,CAAC,CAAC;IAC1C,CAAC,CAAC,CACL,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type LabelProps, type TitleProps } from '../../model/HeadlineType';
1
+ import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
2
2
  import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
3
3
  import { type LinkProps } from '../../model/LinkProps';
4
4
  import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
@@ -9,17 +9,15 @@ interface Required {
9
9
  /**
10
10
  * @title Кнопка
11
11
  */
12
- export interface SubmitButtonProps {
13
- /** @title Текст кнопки */
14
- text?: string;
12
+ export declare type SubmitButtonProps = TextProps & {
15
13
  version?: LinkButtonVersion;
16
- }
14
+ };
17
15
  /**
18
16
  * @title Название поля ввода
19
17
  * @required
20
- * @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Ультра/Премиум", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "Комментарий партнёров", "Согласие на обработку"]
18
+ * @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "Комментарий партнёров", "Согласие на обработку"]
21
19
  */
22
- export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'birthday' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceType' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'partnerComments' | 'consentDataProcessing';
20
+ export declare type NameFieldDef = 'surname' | 'name' | 'middleName' | 'email' | 'phone' | 'fullName' | 'inn' | 'comment' | 'region' | 'addressBranch' | 'typeForm' | 'birthday' | 'isClient' | 'consentToReceiveMaterials' | 'acquiringType' | 'onlineCheckout' | 'posTerminal' | 'serviceDirection' | 'serviceType' | 'feedbackType' | 'feedbackMethod' | 'bankEmpolee' | 'applicationDate' | 'secondaryPhone' | 'vedTypes' | 'term' | 'amount' | 'annualRevenue' | 'collectionCount' | 'partnerComments' | 'consentDataProcessing';
23
21
  export declare type ConditionFieldProps = {
24
22
  condition?: {
25
23
  name: NameFieldDef;
@@ -32,9 +30,9 @@ export declare type FieldDef = Required & LabelProps & ConditionFieldProps & {
32
30
  /**
33
31
  * @title Тип формы
34
32
  * @required
35
- * @enumNames ["Эквайринг ЮЛ", "Аналитика ФЛ", "Мошенничество ФЛ", "Бизнес-карта ЮЛ", "Брокерское обслуживание ЮЛ", "Брокерский счет ФЛ", "Инкассация ЮЛ", "Факты коррупции ФЛ", "Кредит ЮЛ", "Депозит ЮЛ", "Консультация по продукту ФЛ", "Самоинкассация ЮЛ", "ВЭД ЮЛ", "Ультра ФЛ", "Премиум ФЛ"]
33
+ * @enumNames ["Эквайринг ЮЛ", "Аналитика ФЛ", "Мошенничество ФЛ", "Бизнес-карта ЮЛ", "Брокерское обслуживание ЮЛ", "Брокерский счет ФЛ", "Инкассация ЮЛ", "Факты коррупции ФЛ", "Кредит ЮЛ", "Депозит ЮЛ", "Консультация по продукту ФЛ", "Самоинкассация ЮЛ", "ВЭД ЮЛ", "Ультра ФЛ", "Премиум ФЛ", "Обратная связь"]
36
34
  */
37
- declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE';
35
+ declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK';
38
36
  /**
39
37
  * @title Количество колнок
40
38
  * @enumNames ["Одна", "Две"]
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from './CustomFieldProps';
2
+ export declare const FeedbackMethodField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,10 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.FeedbackMethodField = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const SelectControl_1 = require("../../ui-kit/Select/SelectControl");
6
+ const withValidator_1 = require("../../validation/withValidator");
7
+ const contants_1 = require("./contants");
8
+ const getObjectValidator_1 = require("./getObjectValidator");
9
+ exports.FeedbackMethodField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043E\u0442\u0432\u0435\u0442\u0430", options: contants_1.FEEDBACK_METHOD, ...(0, withValidator_1.withValidator)(field('feedbackMethod'), getObjectValidator_1.validatorObj.feedbackMethod) })));
10
+ //# sourceMappingURL=FeedbackMethodField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeedbackMethodField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/FeedbackMethodField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,kEAA+D;AAC/D,yCAA6C;AAE7C,6DAAoD;AAEvC,QAAA,mBAAmB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACtE,uBAAC,6BAAa,IACZ,KAAK,EAAC,kIAAyB,EAC/B,OAAO,EAAE,0BAAe,KACpB,IAAA,6BAAa,EAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,iCAAY,CAAC,cAAc,CAAC,GACvE,CACH,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from './CustomFieldProps';
2
+ export declare const FeedbackTypeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,19 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.FeedbackTypeField = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
+ const SelectControl_1 = require("../../ui-kit/Select/SelectControl");
7
+ const withValidator_1 = require("../../validation/withValidator");
8
+ const contants_1 = require("./contants");
9
+ const getObjectValidator_1 = require("./getObjectValidator");
10
+ exports.FeedbackTypeField = (0, uni_jsx_1.JSX)(({ field }) => {
11
+ const feedbackType = field('feedbackType');
12
+ (0, hooks_1.useEffect)(() => {
13
+ if (feedbackType?.value?.key === 'FEEDBACK') {
14
+ field('serviceDirection')?.onChange?.(contants_1.SERVICE_DIRECTIONS[0]);
15
+ }
16
+ }, [feedbackType?.value]);
17
+ return ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u0422\u0435\u043C\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0435\u043C\u0443", options: contants_1.FEEDBACK_TYPES, ...(0, withValidator_1.withValidator)(feedbackType, getObjectValidator_1.validatorObj.feedbackType) }));
18
+ });
19
+ //# sourceMappingURL=FeedbackTypeField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeedbackTypeField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/FeedbackTypeField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,qEAAkE;AAClE,kEAA+D;AAC/D,yCAAgE;AAEhE,6DAAoD;AAEvC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACnE,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;IAC3C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,YAAY,EAAE,KAAK,EAAE,GAAG,KAAK,UAAU,EAAE;YAC3C,KAAK,CAAC,kBAAkB,CAAC,EAAE,QAAQ,EAAE,CAAC,6BAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;SAC9D;IACH,CAAC,EAAE,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,CAAC;IAE1B,OAAO,CACL,uBAAC,6BAAa,IACZ,KAAK,EAAC,0BAAM,EACZ,WAAW,EAAC,2EAAe,EAC3B,OAAO,EAAE,yBAAc,KACnB,IAAA,6BAAa,EAAC,YAAY,EAAE,iCAAY,CAAC,YAAY,CAAC,GAC1D,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from './CustomFieldProps';
2
+ export declare const IsClientField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,7 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.IsClientField = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const CheckboxWithError_1 = require("../../ui-kit/Checkbox/CheckboxWithError");
6
+ exports.IsClientField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(CheckboxWithError_1.CheckboxWithError, { ...field('isClient'), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' })));
7
+ //# sourceMappingURL=IsClientField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IsClientField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/IsClientField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,+EAA4E;AAG/D,QAAA,aAAa,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAChE,uBAAC,qCAAiB,OAAK,KAAK,CAAC,UAAU,CAAC,EAAE,IAAI,EAAC,gOAA4C,GAAG,CAC/F,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from './CustomFieldProps';
2
+ export declare const SecondaryPhoneField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,14 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.SecondaryPhoneField = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const InputPhoneControl_1 = require("../../ui-kit/Input/InputPhoneControl");
6
+ const withValidator_1 = require("../../validation/withValidator");
7
+ const getObjectValidator_1 = require("./getObjectValidator");
8
+ exports.SecondaryPhoneField = (0, uni_jsx_1.JSX)(({ field }) => {
9
+ const fieldPhone = field('secondaryPhone');
10
+ return ((0, jsx_runtime_1.jsx)(InputPhoneControl_1.InputPhoneControl, { label: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0442\u0435\u043B\u0435\u0444\u043E\u043D", ...(!fieldPhone.value || fieldPhone.value === '+7 ('
11
+ ? fieldPhone
12
+ : (0, withValidator_1.withValidator)(fieldPhone, getObjectValidator_1.validatorObj.secondaryPhone)) }));
13
+ });
14
+ //# sourceMappingURL=PartnerCommentsField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PartnerCommentsField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/PartnerCommentsField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4EAAyE;AACzE,kEAA+D;AAE/D,6DAAoD;AAEvC,QAAA,mBAAmB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACrE,MAAM,UAAU,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAE3C,OAAO,CACL,uBAAC,qCAAiB,IAChB,KAAK,EAAC,iIAAwB,KAC1B,CAAC,CAAC,UAAU,CAAC,KAAK,IAAI,UAAU,CAAC,KAAK,KAAK,MAAM;YACnD,CAAC,CAAC,UAAU;YACZ,CAAC,CAAC,IAAA,6BAAa,EAAC,UAAU,EAAE,iCAAY,CAAC,cAAc,CAAC,CAAC,GAC3D,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from './CustomFieldProps';
2
+ export declare const ServiceDirectionField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,10 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.ServiceDirectionField = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const SelectControl_1 = require("../../ui-kit/Select/SelectControl");
6
+ const withValidator_1 = require("../../validation/withValidator");
7
+ const contants_1 = require("./contants");
8
+ const getObjectValidator_1 = require("./getObjectValidator");
9
+ exports.ServiceDirectionField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435", options: contants_1.SERVICE_DIRECTIONS, ...(0, withValidator_1.withValidator)(field('serviceDirection'), getObjectValidator_1.validatorObj.serviceDirection) })));
10
+ //# sourceMappingURL=ServiceDirectionField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceDirectionField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/ServiceDirectionField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,kEAA+D;AAC/D,yCAAgD;AAEhD,6DAAoD;AAEvC,QAAA,qBAAqB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACxE,uBAAC,6BAAa,IACZ,KAAK,EAAC,6IAA0B,EAChC,WAAW,EAAC,qHAAsB,EAClC,OAAO,EAAE,6BAAkB,KACvB,IAAA,6BAAa,EAAC,KAAK,CAAC,kBAAkB,CAAC,EAAE,iCAAY,CAAC,gBAAgB,CAAC,GAC3E,CACH,CAAC,CAAC"}
@@ -1,4 +1,2 @@
1
- import { type Option } from '../../ui-kit/Select/Option';
2
1
  import { type CustomFieldProps } from './CustomFieldProps';
3
- export declare const SERVICE_TYPES: Option[];
4
2
  export declare const UltraPremiumField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,13 +1,10 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.UltraPremiumField = exports.SERVICE_TYPES = void 0;
2
+ exports.UltraPremiumField = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const SelectControl_1 = require("../../ui-kit/Select/SelectControl");
6
6
  const withValidator_1 = require("../../validation/withValidator");
7
- const validators_1 = require("./validators");
8
- exports.SERVICE_TYPES = [
9
- { key: 'ULTRASERVICE', text: 'Ультра' },
10
- { key: 'PREMIUMSERVICE', text: 'Премиум' },
11
- ];
12
- exports.UltraPremiumField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u0422\u0438\u043F \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", options: exports.SERVICE_TYPES, ...(0, withValidator_1.withValidator)(field('serviceType'), validators_1.defaultValidator) })));
7
+ const contants_1 = require("./contants");
8
+ const getObjectValidator_1 = require("./getObjectValidator");
9
+ exports.UltraPremiumField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u0422\u0438\u043F \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", options: contants_1.SERVICE_TYPES, ...(0, withValidator_1.withValidator)(field('serviceType'), getObjectValidator_1.validatorObj.serviceType) })));
13
10
  //# sourceMappingURL=UltraPremiumField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UltraPremiumField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/UltraPremiumField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qEAAkE;AAClE,kEAA+D;AAE/D,6CAAgD;AAEnC,QAAA,aAAa,GAAa;IACrC,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE;IACvC,EAAE,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE;CAC3C,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACpE,uBAAC,6BAAa,IACZ,KAAK,EAAC,6FAAkB,EACxB,OAAO,EAAE,qBAAa,KAClB,IAAA,6BAAa,EAAC,KAAK,CAAC,aAAa,CAAC,EAAE,6BAAgB,CAAC,GACzD,CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"UltraPremiumField.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/UltraPremiumField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,kEAA+D;AAC/D,yCAA2C;AAE3C,6DAAoD;AACvC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACpE,uBAAC,6BAAa,IACZ,KAAK,EAAC,6FAAkB,EACxB,OAAO,EAAE,wBAAa,KAClB,IAAA,6BAAa,EAAC,KAAK,CAAC,aAAa,CAAC,EAAE,iCAAY,CAAC,WAAW,CAAC,GACjE,CACH,CAAC,CAAC"}
@@ -1,2 +1,5 @@
1
1
  import { type Option } from '../../ui-kit/Select/Option';
2
2
  export declare const SERVICE_TYPES: Option[];
3
+ export declare const SERVICE_DIRECTIONS: Option[];
4
+ export declare const FEEDBACK_TYPES: Option[];
5
+ export declare const FEEDBACK_METHOD: Option[];
@@ -1,7 +1,25 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.SERVICE_TYPES = void 0;
2
+ exports.FEEDBACK_METHOD = exports.FEEDBACK_TYPES = exports.SERVICE_DIRECTIONS = exports.SERVICE_TYPES = void 0;
3
3
  exports.SERVICE_TYPES = [
4
4
  { key: 'ULTRASERVICE', text: 'Ультра' },
5
5
  { key: 'PREMIUMSERVICE', text: 'Премиум' },
6
6
  ];
7
+ exports.SERVICE_DIRECTIONS = [
8
+ { key: 'Физическое лицо' },
9
+ { key: 'Юридическое лицо / ИП' },
10
+ ];
11
+ exports.FEEDBACK_TYPES = [
12
+ {
13
+ text: 'Задать вопрос по продуктам и услугам',
14
+ key: 'FEEDBACK',
15
+ },
16
+ {
17
+ text: 'Качество обслуживания',
18
+ key: 'FEEDBACK_QS',
19
+ },
20
+ ];
21
+ exports.FEEDBACK_METHOD = [
22
+ { key: 'phone', text: 'Телефонный звонок' },
23
+ { key: 'email', text: 'Электронное сообщение' },
24
+ ];
7
25
  //# sourceMappingURL=contants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contants.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/contants.tsx"],"names":[],"mappings":";;AAEa,QAAA,aAAa,GAAa;IACrC,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE;IACvC,EAAE,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE;CAC3C,CAAC"}
1
+ {"version":3,"file":"contants.js","sourceRoot":"","sources":["../../../src/components/ApplicationFormCustom/contants.tsx"],"names":[],"mappings":";;AAEa,QAAA,aAAa,GAAa;IACrC,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE;IACvC,EAAE,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,SAAS,EAAE;CAC3C,CAAC;AAEW,QAAA,kBAAkB,GAAa;IAC1C,EAAE,GAAG,EAAE,iBAAiB,EAAE;IAC1B,EAAE,GAAG,EAAE,uBAAuB,EAAE;CACjC,CAAC;AAEW,QAAA,cAAc,GAAa;IACtC;QACE,IAAI,EAAE,sCAAsC;QAC5C,GAAG,EAAE,UAAU;KAChB;IACD;QACE,IAAI,EAAE,uBAAuB;QAC7B,GAAG,EAAE,aAAa;KACnB;CACF,CAAC;AAEW,QAAA,eAAe,GAAa;IACvC,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE;IAC3C,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,uBAAuB,EAAE;CAChD,CAAC"}
@@ -9,12 +9,17 @@ const AcquiringField_1 = require("./AcquiringField");
9
9
  const AddressBranchField_1 = require("./AddressBranchField");
10
10
  const AmountField_1 = require("./AmountField");
11
11
  const CommentField_1 = require("./CommentField");
12
+ const FeedbackMethodField_1 = require("./FeedbackMethodField");
13
+ const FeedbackTypeField_1 = require("./FeedbackTypeField");
12
14
  const getObjectValidator_1 = require("./getObjectValidator");
13
15
  const getValidation_1 = require("./getValidation");
16
+ const IsClientField_1 = require("./IsClientField");
14
17
  const OnlineCheckoutField_1 = require("./OnlineCheckoutField");
18
+ const PartnerCommentsField_1 = require("./PartnerCommentsField");
15
19
  const PosTerminalField_1 = require("./PosTerminalField");
16
20
  const RegionField_1 = require("./RegionField");
17
21
  const RegionPremiumField_1 = require("./RegionPremiumField");
22
+ const ServiceDirectionField_1 = require("./ServiceDirectionField");
18
23
  const TermField_1 = require("./TermField");
19
24
  const UltraPremiumField_1 = require("./UltraPremiumField");
20
25
  const VedField_1 = require("./VedField");
@@ -35,7 +40,7 @@ const getField =
35
40
  region: isPremium ? ((0, jsx_runtime_1.jsx)(RegionPremiumField_1.RegionPremiumField, { field: field })) : ((0, jsx_runtime_1.jsx)(RegionField_1.RegionField, { field: field, input: input })),
36
41
  addressBranch: (0, jsx_runtime_1.jsx)(AddressBranchField_1.AddressBranchField, { field: field, input: input, isPremium: isPremium }),
37
42
  birthday: ((0, jsx_runtime_1.jsx)(DatePickerControl_1.DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...(0, getValidation_1.getValidation)(field('birthday'), getObjectValidator_1.validatorObj.birthday, required) })),
38
- isClient: ((0, jsx_runtime_1.jsx)(CheckboxWithError_1.CheckboxWithError, { ...field('isClient'), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' })),
43
+ isClient: (0, jsx_runtime_1.jsx)(IsClientField_1.IsClientField, { field: field }),
39
44
  consentToReceiveMaterials: ((0, jsx_runtime_1.jsx)(CheckboxWithError_1.CheckboxWithError, { ...field('consentToReceiveMaterials'), text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0435\u043D \u043D\u0430 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0445 \u0438 \u0430\u043D\u0430\u043B\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432 \u043F\u043E \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u0435" })),
40
45
  partnerComments: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { ...(0, getValidation_1.getValidation)(field('partnerComments'), getObjectValidator_1.validatorObj.partnerComments, required), placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441", isTextarea: true, ...rest })),
41
46
  collectionCount: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \u0438\u043D\u043A\u0430\u0441\u0441\u0430\u0446\u0438\u0438", type: "number", ...(0, getValidation_1.getValidation)(field('collectionCount'), getObjectValidator_1.validatorObj.collectionCount, required) })),
@@ -47,6 +52,12 @@ const getField =
47
52
  amount: (0, jsx_runtime_1.jsx)(AmountField_1.AmountField, { field: field }),
48
53
  annualRevenue: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", ...(0, getValidation_1.getValidation)(field('annualRevenue'), getObjectValidator_1.validatorObj.annualRevenue, required) })),
49
54
  vedTypes: (0, jsx_runtime_1.jsx)(VedField_1.VedField, { field: field }),
55
+ feedbackType: (0, jsx_runtime_1.jsx)(FeedbackTypeField_1.FeedbackTypeField, { field: field }),
56
+ feedbackMethod: (0, jsx_runtime_1.jsx)(FeedbackMethodField_1.FeedbackMethodField, { field: field }),
57
+ serviceDirection: (0, jsx_runtime_1.jsx)(ServiceDirectionField_1.ServiceDirectionField, { field: field }),
58
+ bankEmpolee: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0424\u0418\u041E \u0438\u043B\u0438 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u0432\u0448\u0435\u0433\u043E \u0412\u0430\u0441 \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A\u0430 \u0411\u0430\u043D\u043A\u0430", ...field('bankEmpolee') })),
59
+ applicationDate: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u044F \u0432 \u0411\u0430\u043D\u043A", ...field('applicationDate') })),
60
+ secondaryPhone: (0, jsx_runtime_1.jsx)(PartnerCommentsField_1.SecondaryPhoneField, { field: field }),
50
61
  };
51
62
  return isRenderField({ input, field }) ? ((0, jsx_runtime_1.jsx)("div", { children: InputsMap[input?.name] }, String(index))) : null;
52
63
  };
@@ -54,7 +65,7 @@ exports.getField = getField;
54
65
  function isRenderField({ input, field, }) {
55
66
  const { condition } = input;
56
67
  const { value } = field(condition?.name || '');
57
- return !condition || condition?.values?.find((_) => _ === value);
68
+ return !condition || condition?.values?.find((_) => _ === (value?.key ?? value));
58
69
  }
59
70
  exports.isRenderField = isRenderField;
60
71
  //# sourceMappingURL=getField.js.map