@redneckz/wildless-cms-uni-blocks 0.14.548 → 0.14.550

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 (381) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +147 -94
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +3 -3
  5. package/bundle/components/ApplicationForm/CustomFieldProps.d.ts +1 -0
  6. package/bundle/components/ApplicationForm/LocalitiesField.d.ts +2 -0
  7. package/bundle/components/ApplicationForm/PartnerCommentsField.d.ts +1 -1
  8. package/bundle/components/ApplicationForm/ProductField.d.ts +2 -0
  9. package/bundle/components/ApplicationForm/SecondaryPhoneField.d.ts +2 -0
  10. package/bundle/components/ApplicationForm/{contants.d.ts → constants.d.ts} +2 -0
  11. package/bundle/components/ApplicationForm/getField.d.ts +0 -4
  12. package/bundle/components/ApplicationForm/getRegionUrl.d.ts +1 -0
  13. package/bundle/components/ApplicationForm/isRenderField.d.ts +6 -0
  14. package/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +11 -2
  15. package/bundle/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +2 -1
  16. package/bundle/components/CalculatorDeposit/isRubles.d.ts +1 -0
  17. package/bundle/components/CalculatorDeposit/utils.d.ts +17 -0
  18. package/bundle/hooks/useForm.d.ts +2 -1
  19. package/bundle/hooks/useRegions.d.ts +2 -1
  20. package/bundle/ui-kit/Calculator/getDefaultParams.d.ts +1 -2
  21. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +3 -3
  22. package/dist/components/ApplicationForm/CustomFieldProps.d.ts +1 -0
  23. package/dist/components/ApplicationForm/FeedbackMethodField.js +2 -2
  24. package/dist/components/ApplicationForm/FeedbackMethodField.js.map +1 -1
  25. package/dist/components/ApplicationForm/FeedbackTypeField.js +3 -3
  26. package/dist/components/ApplicationForm/FeedbackTypeField.js.map +1 -1
  27. package/dist/components/ApplicationForm/LocalitiesField.d.ts +2 -0
  28. package/dist/components/ApplicationForm/LocalitiesField.js +24 -0
  29. package/dist/components/ApplicationForm/LocalitiesField.js.map +1 -0
  30. package/dist/components/ApplicationForm/PartnerCommentsField.d.ts +1 -1
  31. package/dist/components/ApplicationForm/PartnerCommentsField.js +6 -8
  32. package/dist/components/ApplicationForm/PartnerCommentsField.js.map +1 -1
  33. package/dist/components/ApplicationForm/ProductField.d.ts +2 -0
  34. package/dist/components/ApplicationForm/ProductField.js +10 -0
  35. package/dist/components/ApplicationForm/ProductField.js.map +1 -0
  36. package/dist/components/ApplicationForm/RegionField.js +2 -2
  37. package/dist/components/ApplicationForm/RegionField.js.map +1 -1
  38. package/dist/components/ApplicationForm/SecondaryPhoneField.d.ts +2 -0
  39. package/dist/components/ApplicationForm/SecondaryPhoneField.js +14 -0
  40. package/dist/components/ApplicationForm/SecondaryPhoneField.js.map +1 -0
  41. package/dist/components/ApplicationForm/ServiceDirectionField.js +2 -2
  42. package/dist/components/ApplicationForm/ServiceDirectionField.js.map +1 -1
  43. package/dist/components/ApplicationForm/UltraPremiumField.js +2 -2
  44. package/dist/components/ApplicationForm/UltraPremiumField.js.map +1 -1
  45. package/{lib/components/ApplicationForm/contants.d.ts → dist/components/ApplicationForm/constants.d.ts} +2 -0
  46. package/dist/components/ApplicationForm/constants.js +34 -0
  47. package/dist/components/ApplicationForm/constants.js.map +1 -0
  48. package/dist/components/ApplicationForm/getField.d.ts +0 -4
  49. package/dist/components/ApplicationForm/getField.js +13 -11
  50. package/dist/components/ApplicationForm/getField.js.map +1 -1
  51. package/dist/components/ApplicationForm/getInitialFormState.js +6 -6
  52. package/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
  53. package/dist/components/ApplicationForm/getObjectValidator.js +3 -0
  54. package/dist/components/ApplicationForm/getObjectValidator.js.map +1 -1
  55. package/dist/components/ApplicationForm/getRegionUrl.d.ts +1 -0
  56. package/dist/components/ApplicationForm/getRegionUrl.js +6 -0
  57. package/dist/components/ApplicationForm/getRegionUrl.js.map +1 -0
  58. package/dist/components/ApplicationForm/isRenderField.d.ts +6 -0
  59. package/dist/components/ApplicationForm/isRenderField.js +9 -0
  60. package/dist/components/ApplicationForm/isRenderField.js.map +1 -0
  61. package/dist/components/CalculatorDeposit/CalculatorDeposit.js +25 -47
  62. package/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
  63. package/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +11 -2
  64. package/dist/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +2 -1
  65. package/dist/components/CalculatorDeposit/getDepositCalculatorParams.js +15 -11
  66. package/dist/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
  67. package/dist/components/CalculatorDeposit/isRubles.d.ts +1 -0
  68. package/dist/components/CalculatorDeposit/isRubles.js +5 -0
  69. package/dist/components/CalculatorDeposit/isRubles.js.map +1 -0
  70. package/dist/components/CalculatorDeposit/renderDepositParamsForm.js +4 -3
  71. package/dist/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
  72. package/dist/components/CalculatorDeposit/utils.d.ts +17 -0
  73. package/dist/components/CalculatorDeposit/utils.js +32 -0
  74. package/dist/components/CalculatorDeposit/utils.js.map +1 -0
  75. package/dist/hooks/useForm.d.ts +2 -1
  76. package/dist/hooks/useForm.js +22 -12
  77. package/dist/hooks/useForm.js.map +1 -1
  78. package/dist/hooks/useRegions.d.ts +2 -1
  79. package/dist/hooks/useRegions.js +2 -2
  80. package/dist/hooks/useRegions.js.map +1 -1
  81. package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
  82. package/dist/ui-kit/Calculator/getDefaultParams.d.ts +1 -2
  83. package/dist/ui-kit/Calculator/getDefaultParams.js +1 -1
  84. package/dist/ui-kit/Calculator/getDefaultParams.js.map +1 -1
  85. package/lib/common.css +1 -1
  86. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  87. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +3 -3
  88. package/lib/components/ApplicationForm/CustomFieldProps.d.ts +1 -0
  89. package/lib/components/ApplicationForm/FeedbackMethodField.js +1 -1
  90. package/lib/components/ApplicationForm/FeedbackMethodField.js.map +1 -1
  91. package/lib/components/ApplicationForm/FeedbackTypeField.js +1 -1
  92. package/lib/components/ApplicationForm/FeedbackTypeField.js.map +1 -1
  93. package/lib/components/ApplicationForm/LocalitiesField.d.ts +2 -0
  94. package/lib/components/ApplicationForm/LocalitiesField.js +22 -0
  95. package/lib/components/ApplicationForm/LocalitiesField.js.map +1 -0
  96. package/lib/components/ApplicationForm/PartnerCommentsField.d.ts +1 -1
  97. package/lib/components/ApplicationForm/PartnerCommentsField.js +5 -7
  98. package/lib/components/ApplicationForm/PartnerCommentsField.js.map +1 -1
  99. package/lib/components/ApplicationForm/ProductField.d.ts +2 -0
  100. package/lib/components/ApplicationForm/ProductField.js +8 -0
  101. package/lib/components/ApplicationForm/ProductField.js.map +1 -0
  102. package/lib/components/ApplicationForm/RegionField.js +2 -2
  103. package/lib/components/ApplicationForm/RegionField.js.map +1 -1
  104. package/lib/components/ApplicationForm/SecondaryPhoneField.d.ts +2 -0
  105. package/lib/components/ApplicationForm/SecondaryPhoneField.js +12 -0
  106. package/lib/components/ApplicationForm/SecondaryPhoneField.js.map +1 -0
  107. package/lib/components/ApplicationForm/ServiceDirectionField.js +1 -1
  108. package/lib/components/ApplicationForm/ServiceDirectionField.js.map +1 -1
  109. package/lib/components/ApplicationForm/UltraPremiumField.js +1 -1
  110. package/lib/components/ApplicationForm/UltraPremiumField.js.map +1 -1
  111. package/{dist/components/ApplicationForm/contants.d.ts → lib/components/ApplicationForm/constants.d.ts} +2 -0
  112. package/lib/components/ApplicationForm/{contants.js → constants.js} +10 -1
  113. package/lib/components/ApplicationForm/constants.js.map +1 -0
  114. package/lib/components/ApplicationForm/getField.d.ts +0 -4
  115. package/lib/components/ApplicationForm/getField.js +11 -8
  116. package/lib/components/ApplicationForm/getField.js.map +1 -1
  117. package/lib/components/ApplicationForm/getInitialFormState.js +1 -1
  118. package/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
  119. package/lib/components/ApplicationForm/getObjectValidator.js +3 -0
  120. package/lib/components/ApplicationForm/getObjectValidator.js.map +1 -1
  121. package/lib/components/ApplicationForm/getRegionUrl.d.ts +1 -0
  122. package/lib/components/ApplicationForm/getRegionUrl.js +3 -0
  123. package/lib/components/ApplicationForm/getRegionUrl.js.map +1 -0
  124. package/lib/components/ApplicationForm/isRenderField.d.ts +6 -0
  125. package/lib/components/ApplicationForm/isRenderField.js +6 -0
  126. package/lib/components/ApplicationForm/isRenderField.js.map +1 -0
  127. package/lib/components/CalculatorDeposit/CalculatorDeposit.js +25 -47
  128. package/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
  129. package/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +11 -2
  130. package/lib/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +2 -1
  131. package/lib/components/CalculatorDeposit/getDepositCalculatorParams.js +15 -11
  132. package/lib/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
  133. package/lib/components/CalculatorDeposit/isRubles.d.ts +1 -0
  134. package/lib/components/CalculatorDeposit/isRubles.js +2 -0
  135. package/lib/components/CalculatorDeposit/isRubles.js.map +1 -0
  136. package/lib/components/CalculatorDeposit/renderDepositParamsForm.js +4 -3
  137. package/lib/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
  138. package/lib/components/CalculatorDeposit/utils.d.ts +17 -0
  139. package/lib/components/CalculatorDeposit/utils.js +25 -0
  140. package/lib/components/CalculatorDeposit/utils.js.map +1 -0
  141. package/lib/hooks/useForm.d.ts +2 -1
  142. package/lib/hooks/useForm.js +23 -13
  143. package/lib/hooks/useForm.js.map +1 -1
  144. package/lib/hooks/useRegions.d.ts +2 -1
  145. package/lib/hooks/useRegions.js +2 -2
  146. package/lib/hooks/useRegions.js.map +1 -1
  147. package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
  148. package/lib/ui-kit/Calculator/getDefaultParams.d.ts +1 -2
  149. package/lib/ui-kit/Calculator/getDefaultParams.js +1 -1
  150. package/lib/ui-kit/Calculator/getDefaultParams.js.map +1 -1
  151. package/mobile/bundle/bundle.umd.js +147 -94
  152. package/mobile/bundle/bundle.umd.min.js +1 -1
  153. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +3 -3
  154. package/mobile/bundle/components/ApplicationForm/CustomFieldProps.d.ts +1 -0
  155. package/mobile/bundle/components/ApplicationForm/LocalitiesField.d.ts +2 -0
  156. package/mobile/bundle/components/ApplicationForm/PartnerCommentsField.d.ts +1 -1
  157. package/mobile/bundle/components/ApplicationForm/ProductField.d.ts +2 -0
  158. package/mobile/bundle/components/ApplicationForm/SecondaryPhoneField.d.ts +2 -0
  159. package/mobile/bundle/components/ApplicationForm/{contants.d.ts → constants.d.ts} +2 -0
  160. package/mobile/bundle/components/ApplicationForm/getField.d.ts +0 -4
  161. package/mobile/bundle/components/ApplicationForm/getRegionUrl.d.ts +1 -0
  162. package/mobile/bundle/components/ApplicationForm/isRenderField.d.ts +6 -0
  163. package/mobile/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +11 -2
  164. package/mobile/bundle/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +2 -1
  165. package/mobile/bundle/components/CalculatorDeposit/isRubles.d.ts +1 -0
  166. package/mobile/bundle/components/CalculatorDeposit/utils.d.ts +17 -0
  167. package/mobile/bundle/hooks/useForm.d.ts +2 -1
  168. package/mobile/bundle/hooks/useRegions.d.ts +2 -1
  169. package/mobile/bundle/ui-kit/Calculator/getDefaultParams.d.ts +1 -2
  170. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +3 -3
  171. package/mobile/dist/components/ApplicationForm/CustomFieldProps.d.ts +1 -0
  172. package/mobile/dist/components/ApplicationForm/FeedbackMethodField.js +2 -2
  173. package/mobile/dist/components/ApplicationForm/FeedbackMethodField.js.map +1 -1
  174. package/mobile/dist/components/ApplicationForm/FeedbackTypeField.js +3 -3
  175. package/mobile/dist/components/ApplicationForm/FeedbackTypeField.js.map +1 -1
  176. package/mobile/dist/components/ApplicationForm/LocalitiesField.d.ts +2 -0
  177. package/mobile/dist/components/ApplicationForm/LocalitiesField.js +24 -0
  178. package/mobile/dist/components/ApplicationForm/LocalitiesField.js.map +1 -0
  179. package/mobile/dist/components/ApplicationForm/PartnerCommentsField.d.ts +1 -1
  180. package/mobile/dist/components/ApplicationForm/PartnerCommentsField.js +6 -8
  181. package/mobile/dist/components/ApplicationForm/PartnerCommentsField.js.map +1 -1
  182. package/mobile/dist/components/ApplicationForm/ProductField.d.ts +2 -0
  183. package/mobile/dist/components/ApplicationForm/ProductField.js +10 -0
  184. package/mobile/dist/components/ApplicationForm/ProductField.js.map +1 -0
  185. package/mobile/dist/components/ApplicationForm/RegionField.js +2 -2
  186. package/mobile/dist/components/ApplicationForm/RegionField.js.map +1 -1
  187. package/mobile/dist/components/ApplicationForm/SecondaryPhoneField.d.ts +2 -0
  188. package/mobile/dist/components/ApplicationForm/SecondaryPhoneField.js +14 -0
  189. package/mobile/dist/components/ApplicationForm/SecondaryPhoneField.js.map +1 -0
  190. package/mobile/dist/components/ApplicationForm/ServiceDirectionField.js +2 -2
  191. package/mobile/dist/components/ApplicationForm/ServiceDirectionField.js.map +1 -1
  192. package/mobile/dist/components/ApplicationForm/UltraPremiumField.js +2 -2
  193. package/mobile/dist/components/ApplicationForm/UltraPremiumField.js.map +1 -1
  194. package/mobile/dist/components/ApplicationForm/constants.d.ts +7 -0
  195. package/mobile/dist/components/ApplicationForm/constants.js +34 -0
  196. package/mobile/dist/components/ApplicationForm/constants.js.map +1 -0
  197. package/mobile/dist/components/ApplicationForm/getField.d.ts +0 -4
  198. package/mobile/dist/components/ApplicationForm/getField.js +13 -11
  199. package/mobile/dist/components/ApplicationForm/getField.js.map +1 -1
  200. package/mobile/dist/components/ApplicationForm/getInitialFormState.js +6 -6
  201. package/mobile/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
  202. package/mobile/dist/components/ApplicationForm/getObjectValidator.js +3 -0
  203. package/mobile/dist/components/ApplicationForm/getObjectValidator.js.map +1 -1
  204. package/mobile/dist/components/ApplicationForm/getRegionUrl.d.ts +1 -0
  205. package/mobile/dist/components/ApplicationForm/getRegionUrl.js +6 -0
  206. package/mobile/dist/components/ApplicationForm/getRegionUrl.js.map +1 -0
  207. package/mobile/dist/components/ApplicationForm/isRenderField.d.ts +6 -0
  208. package/mobile/dist/components/ApplicationForm/isRenderField.js +9 -0
  209. package/mobile/dist/components/ApplicationForm/isRenderField.js.map +1 -0
  210. package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js +25 -47
  211. package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
  212. package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +11 -2
  213. package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +2 -1
  214. package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.js +15 -11
  215. package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
  216. package/mobile/dist/components/CalculatorDeposit/isRubles.d.ts +1 -0
  217. package/mobile/dist/components/CalculatorDeposit/isRubles.js +5 -0
  218. package/mobile/dist/components/CalculatorDeposit/isRubles.js.map +1 -0
  219. package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.js +4 -3
  220. package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
  221. package/mobile/dist/components/CalculatorDeposit/utils.d.ts +17 -0
  222. package/mobile/dist/components/CalculatorDeposit/utils.js +32 -0
  223. package/mobile/dist/components/CalculatorDeposit/utils.js.map +1 -0
  224. package/mobile/dist/hooks/useForm.d.ts +2 -1
  225. package/mobile/dist/hooks/useForm.js +22 -12
  226. package/mobile/dist/hooks/useForm.js.map +1 -1
  227. package/mobile/dist/hooks/useRegions.d.ts +2 -1
  228. package/mobile/dist/hooks/useRegions.js +2 -2
  229. package/mobile/dist/hooks/useRegions.js.map +1 -1
  230. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
  231. package/mobile/dist/ui-kit/Calculator/getDefaultParams.d.ts +1 -2
  232. package/mobile/dist/ui-kit/Calculator/getDefaultParams.js +1 -1
  233. package/mobile/dist/ui-kit/Calculator/getDefaultParams.js.map +1 -1
  234. package/mobile/lib/common.css +1 -1
  235. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +3 -3
  236. package/mobile/lib/components/ApplicationForm/CustomFieldProps.d.ts +1 -0
  237. package/mobile/lib/components/ApplicationForm/FeedbackMethodField.js +1 -1
  238. package/mobile/lib/components/ApplicationForm/FeedbackMethodField.js.map +1 -1
  239. package/mobile/lib/components/ApplicationForm/FeedbackTypeField.js +1 -1
  240. package/mobile/lib/components/ApplicationForm/FeedbackTypeField.js.map +1 -1
  241. package/mobile/lib/components/ApplicationForm/LocalitiesField.d.ts +2 -0
  242. package/mobile/lib/components/ApplicationForm/LocalitiesField.js +22 -0
  243. package/mobile/lib/components/ApplicationForm/LocalitiesField.js.map +1 -0
  244. package/mobile/lib/components/ApplicationForm/PartnerCommentsField.d.ts +1 -1
  245. package/mobile/lib/components/ApplicationForm/PartnerCommentsField.js +5 -7
  246. package/mobile/lib/components/ApplicationForm/PartnerCommentsField.js.map +1 -1
  247. package/mobile/lib/components/ApplicationForm/ProductField.d.ts +2 -0
  248. package/mobile/lib/components/ApplicationForm/ProductField.js +8 -0
  249. package/mobile/lib/components/ApplicationForm/ProductField.js.map +1 -0
  250. package/mobile/lib/components/ApplicationForm/RegionField.js +2 -2
  251. package/mobile/lib/components/ApplicationForm/RegionField.js.map +1 -1
  252. package/mobile/lib/components/ApplicationForm/SecondaryPhoneField.d.ts +2 -0
  253. package/mobile/lib/components/ApplicationForm/SecondaryPhoneField.js +12 -0
  254. package/mobile/lib/components/ApplicationForm/SecondaryPhoneField.js.map +1 -0
  255. package/mobile/lib/components/ApplicationForm/ServiceDirectionField.js +1 -1
  256. package/mobile/lib/components/ApplicationForm/ServiceDirectionField.js.map +1 -1
  257. package/mobile/lib/components/ApplicationForm/UltraPremiumField.js +1 -1
  258. package/mobile/lib/components/ApplicationForm/UltraPremiumField.js.map +1 -1
  259. package/mobile/lib/components/ApplicationForm/constants.d.ts +7 -0
  260. package/mobile/lib/components/ApplicationForm/{contants.js → constants.js} +10 -1
  261. package/mobile/lib/components/ApplicationForm/constants.js.map +1 -0
  262. package/mobile/lib/components/ApplicationForm/getField.d.ts +0 -4
  263. package/mobile/lib/components/ApplicationForm/getField.js +11 -8
  264. package/mobile/lib/components/ApplicationForm/getField.js.map +1 -1
  265. package/mobile/lib/components/ApplicationForm/getInitialFormState.js +1 -1
  266. package/mobile/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
  267. package/mobile/lib/components/ApplicationForm/getObjectValidator.js +3 -0
  268. package/mobile/lib/components/ApplicationForm/getObjectValidator.js.map +1 -1
  269. package/mobile/lib/components/ApplicationForm/getRegionUrl.d.ts +1 -0
  270. package/mobile/lib/components/ApplicationForm/getRegionUrl.js +3 -0
  271. package/mobile/lib/components/ApplicationForm/getRegionUrl.js.map +1 -0
  272. package/mobile/lib/components/ApplicationForm/isRenderField.d.ts +6 -0
  273. package/mobile/lib/components/ApplicationForm/isRenderField.js +6 -0
  274. package/mobile/lib/components/ApplicationForm/isRenderField.js.map +1 -0
  275. package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js +25 -47
  276. package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
  277. package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +11 -2
  278. package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +2 -1
  279. package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.js +15 -11
  280. package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
  281. package/mobile/lib/components/CalculatorDeposit/isRubles.d.ts +1 -0
  282. package/mobile/lib/components/CalculatorDeposit/isRubles.js +2 -0
  283. package/mobile/lib/components/CalculatorDeposit/isRubles.js.map +1 -0
  284. package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.js +4 -3
  285. package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
  286. package/mobile/lib/components/CalculatorDeposit/utils.d.ts +17 -0
  287. package/mobile/lib/components/CalculatorDeposit/utils.js +25 -0
  288. package/mobile/lib/components/CalculatorDeposit/utils.js.map +1 -0
  289. package/mobile/lib/hooks/useForm.d.ts +2 -1
  290. package/mobile/lib/hooks/useForm.js +23 -13
  291. package/mobile/lib/hooks/useForm.js.map +1 -1
  292. package/mobile/lib/hooks/useRegions.d.ts +2 -1
  293. package/mobile/lib/hooks/useRegions.js +2 -2
  294. package/mobile/lib/hooks/useRegions.js.map +1 -1
  295. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
  296. package/mobile/lib/ui-kit/Calculator/getDefaultParams.d.ts +1 -2
  297. package/mobile/lib/ui-kit/Calculator/getDefaultParams.js +1 -1
  298. package/mobile/lib/ui-kit/Calculator/getDefaultParams.js.map +1 -1
  299. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +79 -0
  300. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +6 -2
  301. package/mobile/src/components/ApplicationForm/CustomFieldProps.ts +1 -0
  302. package/mobile/src/components/ApplicationForm/FeedbackMethodField.tsx +1 -1
  303. package/mobile/src/components/ApplicationForm/FeedbackTypeField.tsx +1 -1
  304. package/mobile/src/components/ApplicationForm/LocalitiesField.tsx +34 -0
  305. package/mobile/src/components/ApplicationForm/PartnerCommentsField.tsx +10 -9
  306. package/mobile/src/components/ApplicationForm/ProductField.tsx +15 -0
  307. package/mobile/src/components/ApplicationForm/RegionField.tsx +2 -2
  308. package/mobile/src/components/ApplicationForm/SecondaryPhoneField.tsx +18 -0
  309. package/mobile/src/components/ApplicationForm/ServiceDirectionField.tsx +1 -1
  310. package/mobile/src/components/ApplicationForm/UltraPremiumField.tsx +1 -1
  311. package/mobile/src/components/ApplicationForm/{contants.tsx → constants.tsx} +11 -0
  312. package/mobile/src/components/ApplicationForm/getField.tsx +16 -23
  313. package/mobile/src/components/ApplicationForm/getInitialFormState.tsx +1 -1
  314. package/mobile/src/components/ApplicationForm/getObjectValidator.tsx +3 -0
  315. package/mobile/src/components/ApplicationForm/getRegionUrl.tsx +4 -0
  316. package/mobile/src/components/ApplicationForm/isRenderField.tsx +15 -0
  317. package/mobile/src/components/CalculatorDeposit/CalculatorDeposit.tsx +47 -71
  318. package/mobile/src/components/CalculatorDeposit/CalculatorDepositContent.ts +10 -1
  319. package/mobile/src/components/CalculatorDeposit/getDepositCalculatorParams.ts +14 -9
  320. package/mobile/src/components/CalculatorDeposit/isRubles.tsx +1 -0
  321. package/mobile/src/components/CalculatorDeposit/renderDepositParamsForm.tsx +5 -2
  322. package/mobile/src/components/CalculatorDeposit/utils.tsx +37 -0
  323. package/mobile/src/hooks/useForm.ts +33 -16
  324. package/mobile/src/hooks/useRegions.ts +3 -2
  325. package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
  326. package/mobile/src/ui-kit/Calculator/getDefaultParams.tsx +3 -3
  327. package/package.json +1 -1
  328. package/src/components/ApplicationForm/ApplicationForm.example.json +79 -0
  329. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +34 -0
  330. package/src/components/ApplicationForm/ApplicationFormContent.ts +6 -2
  331. package/src/components/ApplicationForm/CustomFieldProps.ts +1 -0
  332. package/src/components/ApplicationForm/FeedbackMethodField.tsx +1 -1
  333. package/src/components/ApplicationForm/FeedbackTypeField.tsx +1 -1
  334. package/src/components/ApplicationForm/LocalitiesField.tsx +34 -0
  335. package/src/components/ApplicationForm/PartnerCommentsField.tsx +10 -9
  336. package/src/components/ApplicationForm/ProductField.tsx +15 -0
  337. package/src/components/ApplicationForm/RegionField.tsx +2 -2
  338. package/src/components/ApplicationForm/SecondaryPhoneField.tsx +18 -0
  339. package/src/components/ApplicationForm/ServiceDirectionField.tsx +1 -1
  340. package/src/components/ApplicationForm/UltraPremiumField.tsx +1 -1
  341. package/src/components/ApplicationForm/{contants.tsx → constants.tsx} +11 -0
  342. package/src/components/ApplicationForm/getField.tsx +16 -23
  343. package/src/components/ApplicationForm/getInitialFormState.tsx +1 -1
  344. package/src/components/ApplicationForm/getObjectValidator.tsx +3 -0
  345. package/src/components/ApplicationForm/getRegionUrl.tsx +4 -0
  346. package/src/components/ApplicationForm/isRenderField.tsx +15 -0
  347. package/src/components/CalculatorDeposit/CalculatorDeposit.fixture.tsx +2 -0
  348. package/src/components/CalculatorDeposit/CalculatorDeposit.tsx +47 -71
  349. package/src/components/CalculatorDeposit/CalculatorDepositContent.ts +10 -1
  350. package/src/components/CalculatorDeposit/getDepositCalculatorParams.ts +14 -9
  351. package/src/components/CalculatorDeposit/isRubles.tsx +1 -0
  352. package/src/components/CalculatorDeposit/renderDepositParamsForm.tsx +5 -2
  353. package/src/components/CalculatorDeposit/utils.tsx +37 -0
  354. package/src/hooks/useForm.ts +33 -16
  355. package/src/hooks/useRegions.ts +3 -2
  356. package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
  357. package/src/ui-kit/Calculator/getDefaultParams.tsx +3 -3
  358. package/bundle/components/CalculatorDeposit/isNotRubles.d.ts +0 -1
  359. package/dist/components/ApplicationForm/contants.js +0 -25
  360. package/dist/components/ApplicationForm/contants.js.map +0 -1
  361. package/dist/components/CalculatorDeposit/isNotRubles.d.ts +0 -1
  362. package/dist/components/CalculatorDeposit/isNotRubles.js +0 -5
  363. package/dist/components/CalculatorDeposit/isNotRubles.js.map +0 -1
  364. package/lib/components/ApplicationForm/contants.js.map +0 -1
  365. package/lib/components/CalculatorDeposit/isNotRubles.d.ts +0 -1
  366. package/lib/components/CalculatorDeposit/isNotRubles.js +0 -2
  367. package/lib/components/CalculatorDeposit/isNotRubles.js.map +0 -1
  368. package/mobile/bundle/components/CalculatorDeposit/isNotRubles.d.ts +0 -1
  369. package/mobile/dist/components/ApplicationForm/contants.d.ts +0 -5
  370. package/mobile/dist/components/ApplicationForm/contants.js +0 -25
  371. package/mobile/dist/components/ApplicationForm/contants.js.map +0 -1
  372. package/mobile/dist/components/CalculatorDeposit/isNotRubles.d.ts +0 -1
  373. package/mobile/dist/components/CalculatorDeposit/isNotRubles.js +0 -5
  374. package/mobile/dist/components/CalculatorDeposit/isNotRubles.js.map +0 -1
  375. package/mobile/lib/components/ApplicationForm/contants.d.ts +0 -5
  376. package/mobile/lib/components/ApplicationForm/contants.js.map +0 -1
  377. package/mobile/lib/components/CalculatorDeposit/isNotRubles.d.ts +0 -1
  378. package/mobile/lib/components/CalculatorDeposit/isNotRubles.js +0 -2
  379. package/mobile/lib/components/CalculatorDeposit/isNotRubles.js.map +0 -1
  380. package/mobile/src/components/CalculatorDeposit/isNotRubles.tsx +0 -1
  381. package/src/components/CalculatorDeposit/isNotRubles.tsx +0 -1
@@ -13,9 +13,9 @@ export declare type SubmitButtonProps = TextProps & {
13
13
  /**
14
14
  * @title Название поля ввода
15
15
  * @required
16
- * @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "Комментарий партнёров", "Согласие на обработку"]
16
+ * @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Регион выездной сервис", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "День встречи", "Продукт", "Комментарий партнёров", "Согласие на обработку"]
17
17
  */
18
- 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';
18
+ 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' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentDataProcessing';
19
19
  export declare type ConditionFieldProps = {
20
20
  /** @title Условия отображения полей формы */
21
21
  condition?: {
@@ -55,7 +55,7 @@ export declare type FieldVedDef = FieldDefaultDef & {
55
55
  */
56
56
  export declare type FieldDef = FieldCommonDef | FieldVedDef;
57
57
  /** @hidden */
58
- declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK';
58
+ declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'OUTSERVICE';
59
59
  /**
60
60
  * @title Количество колонок
61
61
  * @enumNames ["Одна", "Две"]
@@ -3,4 +3,5 @@ import { type FieldDef } from './ApplicationFormContent';
3
3
  export interface CustomFieldProps {
4
4
  field: FormFieldRegisterer<any>;
5
5
  input?: FieldDef;
6
+ url?: string;
6
7
  }
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from './CustomFieldProps';
2
+ export declare const LocalitiesField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,2 +1,2 @@
1
1
  import { type CustomFieldProps } from './CustomFieldProps';
2
- export declare const SecondaryPhoneField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
2
+ export declare const PartnerCommentsField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from './CustomFieldProps';
2
+ export declare const ProductField: 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>;
@@ -3,3 +3,5 @@ export declare const SERVICE_TYPES: Option[];
3
3
  export declare const SERVICE_DIRECTIONS: Option[];
4
4
  export declare const FEEDBACK_TYPES: Option[];
5
5
  export declare const FEEDBACK_METHOD: Option[];
6
+ export declare const PRODUCT_TYPE: Option[];
7
+ export declare const OUT_SERVICE_URL = "/api/v1/outservice/outserviceregions";
@@ -2,7 +2,3 @@
2
2
  import { type FormFieldRegisterer } from '../../hooks/useForm';
3
3
  import { type FieldDef } from './ApplicationFormContent';
4
4
  export declare const getField: (field: FormFieldRegisterer<any>, typeForm: string) => (input: FieldDef, i: number) => JSX.Element | null;
5
- export declare function isRenderField({ input, field, }: {
6
- input: FieldDef;
7
- field: FormFieldRegisterer<any>;
8
- }): string | true | undefined;
@@ -0,0 +1 @@
1
+ export declare const getRegionUrl: (typeForm?: string) => "/api/v1/outservice/outserviceregions" | undefined;
@@ -0,0 +1,6 @@
1
+ import type { FormFieldRegisterer } from '../../hooks/useForm';
2
+ import type { FieldDef } from './ApplicationFormContent';
3
+ export declare function isRenderField({ input, field, }: {
4
+ input: FieldDef;
5
+ field: FormFieldRegisterer<any>;
6
+ }): string | true | undefined;
@@ -1,4 +1,5 @@
1
- import { type CommonCalculatorProps, type CommonDefaultParams } from '../../ui-kit/Calculator/CalculatorProps';
1
+ import { type CalcValueProps, type CommonCalculatorProps, type CommonDefaultParams } from '../../ui-kit/Calculator/CalculatorProps';
2
+ import { type Option } from '../../ui-kit/Select/Option';
2
3
  import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
3
4
  export interface CalculatorDepositParamsViewSettings {
4
5
  /**
@@ -15,9 +16,11 @@ export interface CalculatorDepositParamsViewSettings {
15
16
  isShowReplenish?: boolean;
16
17
  /** @title Снятие */
17
18
  isShowWithdrawn?: boolean;
19
+ /** @title Новый клиент */
20
+ isShowNewClient?: boolean;
18
21
  }
19
22
  export interface CommonDepositParams {
20
- /** @title Возможность помолнять */
23
+ /** @title Возможность пополнять */
21
24
  isReplenish?: boolean;
22
25
  /** @title Возможно снимать */
23
26
  isWithdrawn?: boolean;
@@ -25,11 +28,17 @@ export interface CommonDepositParams {
25
28
  isMonthlyInterestPayment?: boolean;
26
29
  /** @title Дистанционное оформление */
27
30
  isRemoteRegistration?: boolean;
31
+ /** @title Новый клиент */
32
+ isNewClient?: boolean;
33
+ /** @title Валюта */
34
+ currency?: Option;
28
35
  /** @hidden */
29
36
  type?: string;
30
37
  }
31
38
  export interface DepositDefaultParams extends CommonDefaultParams, CommonDepositParams {
32
39
  }
40
+ export interface DepositParams extends DepositDefaultParams, CalcValueProps {
41
+ }
33
42
  /**
34
43
  * @title Калькулятор вкладов
35
44
  */
@@ -3,6 +3,7 @@ import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonConten
3
3
  import { type Option } from '../../ui-kit/Select/Option';
4
4
  import { type CalculatorDepositParamsViewSettings, type CommonDepositParams } from './CalculatorDepositContent';
5
5
  export interface DepositCalculatorSourceBookParams extends CommonDepositParams, CalcDefaultParamsProps {
6
+ currency?: Option;
6
7
  }
7
8
  export interface DepositCalculatorUserInputParams extends CommonDepositParams, CalcValueProps {
8
9
  }
@@ -18,7 +19,7 @@ export declare type TariffsButtonContent = LinkButtonContent & {
18
19
  };
19
20
  export declare type DepositCalculatorRowsData = {
20
21
  currency: Option;
21
- rates?: DepositCalculatorSourceBookParams[];
22
+ rates: DepositCalculatorSourceBookParams[];
22
23
  };
23
24
  export declare type DepositCalculatorData = {
24
25
  rows?: DepositCalculatorRowsData[];
@@ -0,0 +1 @@
1
+ export declare const isRubles: (currency?: string) => boolean;
@@ -0,0 +1,17 @@
1
+ import { type Option } from '../../ui-kit/Select/Option';
2
+ import { type DepositParams } from './CalculatorDepositContent';
3
+ import { type DepositCalculatorRowsData } from './getDepositCalculatorParams';
4
+ export declare const normalizeMonthValue: (_: DepositParams, rows?: DepositCalculatorRowsData[]) => {
5
+ monthsValue: number;
6
+ };
7
+ export declare const normalizeMoneyValue: (_: DepositParams, rows?: DepositCalculatorRowsData[]) => {
8
+ moneyValue: number;
9
+ };
10
+ export declare const normalizeCurrency: (_: DepositParams, rows?: DepositCalculatorRowsData[]) => {
11
+ currency: Option | undefined;
12
+ };
13
+ export declare const normalizeReplenishWithdrawn: (_: DepositParams) => {
14
+ isReplenish: boolean | undefined;
15
+ isWithdrawn: boolean | undefined;
16
+ };
17
+ export declare const getRows: (rows?: DepositCalculatorRowsData[], currencyValue?: Option) => import("./getDepositCalculatorParams").DepositCalculatorSourceBookParams[] | undefined;
@@ -15,8 +15,9 @@ export interface FormOperatorProps<FormState extends Record<string, any>> {
15
15
  reset: () => void;
16
16
  onSubmit?: (ev: PreventableEvent) => void;
17
17
  }
18
- export declare const useForm: <FormState extends Record<string, any>>(initialState: FormState, { resetOnSubmit, onSubmit, }?: {
18
+ export declare const useForm: <FormState extends Record<string, any>>(initialState: FormState, { resetOnSubmit, onSubmit, normalize, }?: {
19
19
  resetOnSubmit?: boolean | undefined;
20
20
  onSubmit?: ((_: FormState, ev: PreventableEventWithTarget) => void) | undefined;
21
+ normalize?: ((_: FormState) => FormState) | undefined;
21
22
  }) => [FormState, FormOperatorProps<FormState>];
22
23
  export {};
@@ -3,5 +3,6 @@ export interface Region {
3
3
  code?: string;
4
4
  name?: string;
5
5
  slug?: string;
6
+ localities?: string[];
6
7
  }
7
- export declare function useRegions(): Region[];
8
+ export declare function useRegions(url?: string): Region[];
@@ -1,5 +1,4 @@
1
- import { type CreditCalculatorSourceBookParams } from '../../components/CalculatorCredit/CalculatorCreditContent';
2
1
  import { type DepositCalculatorSourceBookParams } from '../../components/CalculatorDeposit/getDepositCalculatorParams';
3
2
  import { type CalcDefaultParamsProps } from './CalculatorProps';
4
3
  export declare const getDefaultParamsMin: (rateRows?: CalcDefaultParamsProps[]) => CalcDefaultParamsProps | undefined;
5
- export declare const getDefaultParamsMax: (rateRows?: CreditCalculatorSourceBookParams[] | DepositCalculatorSourceBookParams[]) => CalcDefaultParamsProps | undefined;
4
+ export declare const getDefaultParamsMax: (rateRows?: DepositCalculatorSourceBookParams[], isNewClient?: boolean) => CalcDefaultParamsProps | undefined;
@@ -13,9 +13,9 @@ export declare type SubmitButtonProps = TextProps & {
13
13
  /**
14
14
  * @title Название поля ввода
15
15
  * @required
16
- * @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "Комментарий партнёров", "Согласие на обработку"]
16
+ * @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Регион выездной сервис", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращени", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "День встречи", "Продукт", "Комментарий партнёров", "Согласие на обработку"]
17
17
  */
18
- 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';
18
+ 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' | 'desiredMeetingDate' | 'product' | 'localities' | 'partnerComments' | 'consentDataProcessing';
19
19
  export declare type ConditionFieldProps = {
20
20
  /** @title Условия отображения полей формы */
21
21
  condition?: {
@@ -55,7 +55,7 @@ export declare type FieldVedDef = FieldDefaultDef & {
55
55
  */
56
56
  export declare type FieldDef = FieldCommonDef | FieldVedDef;
57
57
  /** @hidden */
58
- declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK';
58
+ declare type TypeFormFieldDef = 'ACQR' | 'ANALITIC' | 'ANTIFRAUD' | 'BCRD' | 'BROK' | 'BROKACCOUNT' | 'COLLECTION' | 'CORRUPTION' | 'CRED' | 'DPST' | 'PRODUCT' | 'SELFCOLLECTION' | 'KVED' | 'ULTRASERVICE' | 'PREMIUMSERVICE' | 'FEEDBACK' | 'OUTSERVICE';
59
59
  /**
60
60
  * @title Количество колонок
61
61
  * @enumNames ["Одна", "Две"]
@@ -3,4 +3,5 @@ import { type FieldDef } from './ApplicationFormContent';
3
3
  export interface CustomFieldProps {
4
4
  field: FormFieldRegisterer<any>;
5
5
  input?: FieldDef;
6
+ url?: string;
6
7
  }
@@ -4,7 +4,7 @@ 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 contants_1 = require("./contants");
7
+ const constants_1 = require("./constants");
8
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) })));
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: constants_1.FEEDBACK_METHOD, ...(0, withValidator_1.withValidator)(field('feedbackMethod'), getObjectValidator_1.validatorObj.feedbackMethod) })));
10
10
  //# sourceMappingURL=FeedbackMethodField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeedbackMethodField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/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"}
1
+ {"version":3,"file":"FeedbackMethodField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/FeedbackMethodField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,kEAA+D;AAC/D,2CAA8C;AAE9C,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,2BAAe,KACpB,IAAA,6BAAa,EAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,iCAAY,CAAC,cAAc,CAAC,GACvE,CACH,CAAC,CAAC"}
@@ -5,15 +5,15 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
6
  const SelectControl_1 = require("../../ui-kit/Select/SelectControl");
7
7
  const withValidator_1 = require("../../validation/withValidator");
8
- const contants_1 = require("./contants");
8
+ const constants_1 = require("./constants");
9
9
  const getObjectValidator_1 = require("./getObjectValidator");
10
10
  exports.FeedbackTypeField = (0, uni_jsx_1.JSX)(({ field }) => {
11
11
  const feedbackType = field('feedbackType');
12
12
  (0, hooks_1.useEffect)(() => {
13
13
  if (feedbackType?.value?.key === 'FEEDBACK') {
14
- field('serviceDirection')?.onChange?.(contants_1.SERVICE_DIRECTIONS[0]);
14
+ field('serviceDirection')?.onChange?.(constants_1.SERVICE_DIRECTIONS[0]);
15
15
  }
16
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) }));
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: constants_1.FEEDBACK_TYPES, ...(0, withValidator_1.withValidator)(feedbackType, getObjectValidator_1.validatorObj.feedbackType) }));
18
18
  });
19
19
  //# sourceMappingURL=FeedbackTypeField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeedbackTypeField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/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"}
1
+ {"version":3,"file":"FeedbackTypeField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/FeedbackTypeField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,qEAAkE;AAClE,kEAA+D;AAC/D,2CAAiE;AAEjE,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,8BAAkB,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,0BAAc,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 LocalitiesField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,24 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.LocalitiesField = 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 useRegions_1 = require("../../hooks/useRegions");
7
+ const SelectControl_1 = require("../../ui-kit/Select/SelectControl");
8
+ const constants_1 = require("./constants");
9
+ const getObjectValidator_1 = require("./getObjectValidator");
10
+ const getValidation_1 = require("./getValidation");
11
+ exports.LocalitiesField = (0, uni_jsx_1.JSX)(({ field, input }) => {
12
+ const fieldRegion = field('region');
13
+ const regionKey = fieldRegion?.value?.key;
14
+ const localities = (0, useRegions_1.useRegions)(constants_1.OUT_SERVICE_URL)
15
+ ?.find((_) => _.code === regionKey)
16
+ ?.localities?.map((_) => ({ key: _, text: _ }));
17
+ (0, hooks_1.useEffect)(() => {
18
+ if (regionKey !== '') {
19
+ field?.('localities')?.onChange?.('');
20
+ }
21
+ }, [regionKey]);
22
+ return ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u041D\u0430\u0441\u0435\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u0443\u043D\u043A\u0442", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", options: localities, ...(0, getValidation_1.getValidation)(field('localities'), getObjectValidator_1.validatorObj.localities, input?.required), isSearch: true }));
23
+ });
24
+ //# sourceMappingURL=LocalitiesField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalitiesField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/LocalitiesField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,uDAAoD;AACpD,qEAAkE;AAClE,2CAA8C;AAE9C,6DAAoD;AACpD,mDAAgD;AAInC,QAAA,eAAe,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IACxE,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC;IACpC,MAAM,SAAS,GAAG,WAAW,EAAE,KAAK,EAAE,GAAG,CAAC;IAC1C,MAAM,UAAU,GAAG,IAAA,uBAAU,EAAC,2BAAe,CAAC;QAC5C,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC;QACnC,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAElD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,SAAS,KAAK,EAAE,EAAE;YACpB,KAAK,EAAE,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;SACvC;IACH,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAEhB,OAAO,CACL,uBAAC,6BAAa,IACZ,KAAK,EAAC,6FAAkB,EACxB,WAAW,EAAC,yGAAoB,EAChC,OAAO,EAAE,UAAU,KACf,IAAA,6BAAa,EAAC,KAAK,CAAC,YAAY,CAAC,EAAE,iCAAY,CAAC,UAAU,EAAE,KAAK,EAAE,QAAQ,CAAC,EAChF,QAAQ,EAAE,IAAI,GACd,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
1
  import { type CustomFieldProps } from './CustomFieldProps';
2
- export declare const SecondaryPhoneField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
2
+ export declare const PartnerCommentsField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,14 +1,12 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.SecondaryPhoneField = void 0;
2
+ exports.PartnerCommentsField = 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
- const InputPhoneControl_1 = require("../../ui-kit/Input/InputPhoneControl");
6
- const withValidator_1 = require("../../validation/withValidator");
5
+ const InputControl_1 = require("../../ui-kit/Input/InputControl");
7
6
  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)) }));
7
+ const getValidation_1 = require("./getValidation");
8
+ exports.PartnerCommentsField = (0, uni_jsx_1.JSX)(({ field, input }) => {
9
+ const { required, ...rest } = input;
10
+ return ((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 }));
13
11
  });
14
12
  //# sourceMappingURL=PartnerCommentsField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PartnerCommentsField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/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"}
1
+ {"version":3,"file":"PartnerCommentsField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/PartnerCommentsField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,kEAA+D;AAG/D,6DAAoD;AACpD,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IAC7E,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAiB,CAAC;IAEhD,OAAO,CACL,uBAAC,2BAAY,OACP,IAAA,6BAAa,EAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,iCAAY,CAAC,eAAe,EAAE,QAAQ,CAAC,EACnF,WAAW,EAAC,6KAAiC,EAC7C,UAAU,EAAE,IAAI,KACZ,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { type CustomFieldProps } from './CustomFieldProps';
2
+ export declare const ProductField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -0,0 +1,10 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.ProductField = 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 constants_1 = require("./constants");
8
+ const getObjectValidator_1 = require("./getObjectValidator");
9
+ exports.ProductField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0440\u043E\u0434\u0443\u043A\u0442", label: "\u041F\u0440\u043E\u0434\u0443\u043A\u0442", options: constants_1.PRODUCT_TYPE, ...(0, withValidator_1.withValidator)(field('product'), getObjectValidator_1.validatorObj.product) })));
10
+ //# sourceMappingURL=ProductField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ProductField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,kEAA+D;AAC/D,2CAA2C;AAE3C,6DAAoD;AAEvC,QAAA,YAAY,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC/D,uBAAC,6BAAa,IACZ,WAAW,EAAC,6FAAkB,EAC9B,KAAK,EAAC,4CAAS,EACf,OAAO,EAAE,wBAAY,KACjB,IAAA,6BAAa,EAAC,KAAK,CAAC,SAAS,CAAC,EAAE,iCAAY,CAAC,OAAO,CAAC,GACzD,CACH,CAAC,CAAC"}
@@ -7,8 +7,8 @@ const useRegions_1 = require("../../hooks/useRegions");
7
7
  const SelectControl_1 = require("../../ui-kit/Select/SelectControl");
8
8
  const getObjectValidator_1 = require("./getObjectValidator");
9
9
  const getValidation_1 = require("./getValidation");
10
- exports.RegionField = (0, uni_jsx_1.JSX)(({ field, input }) => {
11
- const regions = (0, useRegions_1.useRegions)();
10
+ exports.RegionField = (0, uni_jsx_1.JSX)(({ field, input, url }) => {
11
+ const regions = (0, useRegions_1.useRegions)(url);
12
12
  return ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: (0, hooks_1.useMemo)(() => regions?.map(({ code = '', name = '' }) => ({ key: code, text: name })), [regions]), ...(0, getValidation_1.getValidation)(field('region'), getObjectValidator_1.validatorObj.region, input?.required) }));
13
13
  });
14
14
  //# sourceMappingURL=RegionField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RegionField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/RegionField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAsD;AACtD,uDAAoD;AACpD,qEAAkE;AAElE,6DAAoD;AACpD,mDAAgD;AAEnC,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IACpE,MAAM,OAAO,GAAG,IAAA,uBAAU,GAAE,CAAC;IAE7B,OAAO,CACL,uBAAC,6BAAa,IACZ,KAAK,EAAC,sCAAQ,EACd,WAAW,EAAC,uFAAiB,EAC7B,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,IAAA,eAAO,EACd,GAAG,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAC7E,CAAC,OAAO,CAAC,CACV,KACG,IAAA,6BAAa,EAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,iCAAY,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,GACxE,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"RegionField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/RegionField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAsD;AACtD,uDAAoD;AACpD,qEAAkE;AAElE,6DAAoD;AACpD,mDAAgD;AAEnC,QAAA,WAAW,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE;IACzE,MAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,GAAG,CAAC,CAAC;IAEhC,OAAO,CACL,uBAAC,6BAAa,IACZ,KAAK,EAAC,sCAAQ,EACd,WAAW,EAAC,uFAAiB,EAC7B,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,IAAA,eAAO,EACd,GAAG,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAC7E,CAAC,OAAO,CAAC,CACV,KACG,IAAA,6BAAa,EAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,iCAAY,CAAC,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,GACxE,CACH,CAAC;AACJ,CAAC,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=SecondaryPhoneField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SecondaryPhoneField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/SecondaryPhoneField.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"}
@@ -4,7 +4,7 @@ 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 contants_1 = require("./contants");
7
+ const constants_1 = require("./constants");
8
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) })));
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: constants_1.SERVICE_DIRECTIONS, ...(0, withValidator_1.withValidator)(field('serviceDirection'), getObjectValidator_1.validatorObj.serviceDirection) })));
10
10
  //# sourceMappingURL=ServiceDirectionField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ServiceDirectionField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/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
+ {"version":3,"file":"ServiceDirectionField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/ServiceDirectionField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,kEAA+D;AAC/D,2CAAiD;AAEjD,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,8BAAkB,KACvB,IAAA,6BAAa,EAAC,KAAK,CAAC,kBAAkB,CAAC,EAAE,iCAAY,CAAC,gBAAgB,CAAC,GAC3E,CACH,CAAC,CAAC"}
@@ -4,7 +4,7 @@ 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 contants_1 = require("./contants");
7
+ const constants_1 = require("./constants");
8
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) })));
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: constants_1.SERVICE_TYPES, ...(0, withValidator_1.withValidator)(field('serviceType'), getObjectValidator_1.validatorObj.serviceType) })));
10
10
  //# sourceMappingURL=UltraPremiumField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UltraPremiumField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/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
+ {"version":3,"file":"UltraPremiumField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/UltraPremiumField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,qEAAkE;AAClE,kEAA+D;AAC/D,2CAA4C;AAE5C,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,yBAAa,KAClB,IAAA,6BAAa,EAAC,KAAK,CAAC,aAAa,CAAC,EAAE,iCAAY,CAAC,WAAW,CAAC,GACjE,CACH,CAAC,CAAC"}
@@ -3,3 +3,5 @@ export declare const SERVICE_TYPES: Option[];
3
3
  export declare const SERVICE_DIRECTIONS: Option[];
4
4
  export declare const FEEDBACK_TYPES: Option[];
5
5
  export declare const FEEDBACK_METHOD: Option[];
6
+ export declare const PRODUCT_TYPE: Option[];
7
+ export declare const OUT_SERVICE_URL = "/api/v1/outservice/outserviceregions";
@@ -0,0 +1,34 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.OUT_SERVICE_URL = exports.PRODUCT_TYPE = exports.FEEDBACK_METHOD = exports.FEEDBACK_TYPES = exports.SERVICE_DIRECTIONS = exports.SERVICE_TYPES = void 0;
3
+ exports.SERVICE_TYPES = [
4
+ { key: 'ULTRASERVICE', text: 'Ультра' },
5
+ { key: 'PREMIUMSERVICE', text: 'Премиум' },
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
+ ];
25
+ exports.PRODUCT_TYPE = [
26
+ { key: 'Карта дебетовая', text: 'Карта дебетовая' },
27
+ { key: 'Карта кредитная', text: 'Карта кредитная' },
28
+ { key: 'Потребительский кредит', text: 'Потребительский кредит' },
29
+ { key: 'Ипотечный кредит', text: 'Ипотечный кредит' },
30
+ { key: 'Вклад', text: 'Вклад' },
31
+ { key: 'Накопительный счет', text: 'Накопительный счет' },
32
+ ];
33
+ exports.OUT_SERVICE_URL = '/api/v1/outservice/outserviceregions';
34
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/constants.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;AAEW,QAAA,YAAY,GAAa;IACpC,EAAE,GAAG,EAAE,iBAAiB,EAAE,IAAI,EAAE,iBAAiB,EAAE;IACnD,EAAE,GAAG,EAAE,iBAAiB,EAAE,IAAI,EAAE,iBAAiB,EAAE;IACnD,EAAE,GAAG,EAAE,wBAAwB,EAAE,IAAI,EAAE,wBAAwB,EAAE;IACjE,EAAE,GAAG,EAAE,kBAAkB,EAAE,IAAI,EAAE,kBAAkB,EAAE;IACrD,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;IAC/B,EAAE,GAAG,EAAE,oBAAoB,EAAE,IAAI,EAAE,oBAAoB,EAAE;CAC1D,CAAC;AAEW,QAAA,eAAe,GAAG,sCAAsC,CAAC"}
@@ -2,7 +2,3 @@
2
2
  import { type FormFieldRegisterer } from '../../hooks/useForm';
3
3
  import { type FieldDef } from './ApplicationFormContent';
4
4
  export declare const getField: (field: FormFieldRegisterer<any>, typeForm: string) => (input: FieldDef, i: number) => JSX.Element | null;
5
- export declare function isRenderField({ input, field, }: {
6
- input: FieldDef;
7
- field: FormFieldRegisterer<any>;
8
- }): string | true | undefined;
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.isRenderField = exports.getField = void 0;
2
+ exports.getField = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const CheckboxWithError_1 = require("../../ui-kit/Checkbox/CheckboxWithError");
5
5
  const DatePickerControl_1 = require("../../ui-kit/DatePicker/DatePickerControl");
@@ -12,13 +12,18 @@ const CommentField_1 = require("./CommentField");
12
12
  const FeedbackMethodField_1 = require("./FeedbackMethodField");
13
13
  const FeedbackTypeField_1 = require("./FeedbackTypeField");
14
14
  const getObjectValidator_1 = require("./getObjectValidator");
15
+ const getRegionUrl_1 = require("./getRegionUrl");
15
16
  const getValidation_1 = require("./getValidation");
16
17
  const IsClientField_1 = require("./IsClientField");
18
+ const isRenderField_1 = require("./isRenderField");
19
+ const LocalitiesField_1 = require("./LocalitiesField");
17
20
  const OnlineCheckoutField_1 = require("./OnlineCheckoutField");
18
21
  const PartnerCommentsField_1 = require("./PartnerCommentsField");
19
22
  const PosTerminalField_1 = require("./PosTerminalField");
23
+ const ProductField_1 = require("./ProductField");
20
24
  const RegionField_1 = require("./RegionField");
21
25
  const RegionPremiumField_1 = require("./RegionPremiumField");
26
+ const SecondaryPhoneField_1 = require("./SecondaryPhoneField");
22
27
  const ServiceDirectionField_1 = require("./ServiceDirectionField");
23
28
  const TermField_1 = require("./TermField");
24
29
  const UltraPremiumField_1 = require("./UltraPremiumField");
@@ -37,12 +42,15 @@ const getField =
37
42
  fullName: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0424\u0418\u041E", ...(0, getValidation_1.getValidation)(field('fullName'), getObjectValidator_1.validatorObj.fullName, required), ...rest })),
38
43
  inn: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0418\u041D\u041D", type: "number", ...(0, getValidation_1.getValidation)(field('inn'), getObjectValidator_1.validatorObj.inn, required) })),
39
44
  comment: (0, jsx_runtime_1.jsx)(CommentField_1.CommentField, { field: field, input: input }),
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 })),
45
+ region: isPremium ? ((0, jsx_runtime_1.jsx)(RegionPremiumField_1.RegionPremiumField, { field: field })) : ((0, jsx_runtime_1.jsx)(RegionField_1.RegionField, { field: field, input: input, url: (0, getRegionUrl_1.getRegionUrl)(typeForm) })),
41
46
  addressBranch: (0, jsx_runtime_1.jsx)(AddressBranchField_1.AddressBranchField, { field: field, input: input, isPremium: isPremium }),
42
47
  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) })),
48
+ desiredMeetingDate: ((0, jsx_runtime_1.jsx)(DatePickerControl_1.DatePickerControl, { label: "\u0416\u0435\u043B\u0430\u0435\u043C\u0430\u044F \u0434\u0430\u0442\u0430 \u0432\u0441\u0442\u0440\u0435\u0447\u0438", ...(0, getValidation_1.getValidation)(field('desiredMeetingDate'), getObjectValidator_1.validatorObj.meetingDay, required) })),
49
+ product: (0, jsx_runtime_1.jsx)(ProductField_1.ProductField, { field: field }),
50
+ localities: (0, jsx_runtime_1.jsx)(LocalitiesField_1.LocalitiesField, { field: field, input: input }),
43
51
  isClient: (0, jsx_runtime_1.jsx)(IsClientField_1.IsClientField, { field: field }),
44
52
  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" })),
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 })),
53
+ partnerComments: (0, jsx_runtime_1.jsx)(PartnerCommentsField_1.PartnerCommentsField, { field: field, input: input }),
46
54
  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
55
  acquiringType: (0, jsx_runtime_1.jsx)(AcquiringField_1.AcquiringField, { field: field, input: input }),
48
56
  onlineCheckout: (0, jsx_runtime_1.jsx)(OnlineCheckoutField_1.OnlineCheckoutField, { field: field }),
@@ -57,15 +65,9 @@ const getField =
57
65
  serviceDirection: (0, jsx_runtime_1.jsx)(ServiceDirectionField_1.ServiceDirectionField, { field: field }),
58
66
  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
67
  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 }),
68
+ secondaryPhone: (0, jsx_runtime_1.jsx)(SecondaryPhoneField_1.SecondaryPhoneField, { field: field }),
61
69
  };
62
- return isRenderField({ input, field }) ? ((0, jsx_runtime_1.jsx)("div", { children: InputsMap[input?.name] }, String(i))) : null;
70
+ return (0, isRenderField_1.isRenderField)({ input, field }) ? ((0, jsx_runtime_1.jsx)("div", { children: InputsMap[input?.name] }, String(i))) : null;
63
71
  };
64
72
  exports.getField = getField;
65
- function isRenderField({ input, field, }) {
66
- const { condition } = input;
67
- const { value } = field(condition?.name || '');
68
- return !condition || condition?.values?.find((_) => _ === (value?.key ?? value));
69
- }
70
- exports.isRenderField = isRenderField;
71
73
  //# sourceMappingURL=getField.js.map