@redneckz/wildless-cms-uni-blocks 0.14.665 → 0.14.667

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 (374) hide show
  1. package/bundle/api/RetailAPI/regionOffices.d.ts +16 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +1428 -1367
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationForm/getInitialFormState.d.ts +1 -0
  6. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -2
  7. package/bundle/components/CreditForm/getFifthStepData.d.ts +3 -0
  8. package/bundle/components/CreditForm/utils.d.ts +7 -1
  9. package/bundle/components/OfficesAtmsMap/renderWorkSchedule.d.ts +1 -1
  10. package/{dist/ui-kit/FormField/Fields/RetailAddressField.d.ts → bundle/ui-kit/FormField/Fields/AddressRetailField.d.ts} +1 -1
  11. package/bundle/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  12. package/{lib/ui-kit/FormField/Fields/RetailRegionField.d.ts → bundle/ui-kit/FormField/Fields/RegionRetailField.d.ts} +1 -1
  13. package/bundle/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  14. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  15. package/bundle/ui-kit/FormField/SelectField.d.ts +2 -0
  16. package/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -0
  17. package/dist/api/RetailAPI/regionOffices.d.ts +16 -0
  18. package/dist/api/RetailAPI/regionOffices.js +19 -0
  19. package/dist/api/RetailAPI/regionOffices.js.map +1 -0
  20. package/dist/components/ApplicationForm/getInitialFormState.d.ts +1 -0
  21. package/dist/components/ApplicationForm/getInitialFormState.js +1 -0
  22. package/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
  23. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -2
  24. package/dist/components/ApplicationLeadForm/getInitialFormState.js +1 -0
  25. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  26. package/dist/components/ContentPage/useContentPageData.js +1 -1
  27. package/dist/components/ContentPage/useContentPageData.js.map +1 -1
  28. package/dist/components/CreditCardForm/CreditCardForm.js +2 -0
  29. package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
  30. package/dist/components/CreditCardForm/creditCardFormStepsData.js +2 -2
  31. package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  32. package/dist/components/CreditCardForm/formStateMap.js +4 -4
  33. package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
  34. package/dist/components/CreditCardForm/getFourthStepData.js +8 -2
  35. package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
  36. package/dist/components/CreditForm/creditFormStepsData.js +2 -2
  37. package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  38. package/dist/components/CreditForm/formStateMap.js +2 -2
  39. package/dist/components/CreditForm/formStateMap.js.map +1 -1
  40. package/dist/components/CreditForm/getCreditFormTaskData.js +3 -1
  41. package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  42. package/dist/components/CreditForm/getFifthStepData.d.ts +3 -0
  43. package/dist/components/CreditForm/getFifthStepData.js +10 -0
  44. package/dist/components/CreditForm/getFifthStepData.js.map +1 -0
  45. package/dist/components/CreditForm/getThirdStepData.js +8 -2
  46. package/dist/components/CreditForm/getThirdStepData.js.map +1 -1
  47. package/dist/components/CreditForm/utils.d.ts +7 -1
  48. package/dist/components/CreditForm/utils.js +9 -3
  49. package/dist/components/CreditForm/utils.js.map +1 -1
  50. package/dist/components/OfficesAtmsMap/renderWorkSchedule.d.ts +1 -1
  51. package/dist/components/OfficesAtmsMap/renderWorkSchedule.js +1 -1
  52. package/dist/components/OfficesAtmsMap/renderWorkSchedule.js.map +1 -1
  53. package/{lib/ui-kit/FormField/Fields/RetailAddressField.d.ts → dist/ui-kit/FormField/Fields/AddressRetailField.d.ts} +1 -1
  54. package/dist/ui-kit/FormField/Fields/{RetailAddressField.js → AddressRetailField.js} +20 -18
  55. package/dist/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -0
  56. package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  57. package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js +9 -0
  58. package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
  59. package/dist/ui-kit/FormField/Fields/{RetailRegionField.d.ts → RegionRetailField.d.ts} +1 -1
  60. package/dist/ui-kit/FormField/Fields/RegionRetailField.js +14 -0
  61. package/dist/ui-kit/FormField/Fields/RegionRetailField.js.map +1 -0
  62. package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
  63. package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
  64. package/dist/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  65. package/dist/ui-kit/FormField/Fields/WagesField.js +18 -0
  66. package/dist/ui-kit/FormField/Fields/WagesField.js.map +1 -0
  67. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  68. package/dist/ui-kit/FormField/SelectField.d.ts +2 -0
  69. package/dist/ui-kit/FormField/SelectField.js +2 -2
  70. package/dist/ui-kit/FormField/SelectField.js.map +1 -1
  71. package/dist/ui-kit/FormField/getField.js +8 -8
  72. package/dist/ui-kit/FormField/getField.js.map +1 -1
  73. package/dist/ui-kit/FormField/getObjectValidator.js +3 -3
  74. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  75. package/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -0
  76. package/dist/ui-kit/YandexMap/YandexMap.js +4 -4
  77. package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  78. package/lib/api/RetailAPI/regionOffices.d.ts +16 -0
  79. package/lib/api/RetailAPI/regionOffices.js +16 -0
  80. package/lib/api/RetailAPI/regionOffices.js.map +1 -0
  81. package/lib/components/ApplicationForm/getInitialFormState.d.ts +1 -0
  82. package/lib/components/ApplicationForm/getInitialFormState.js +1 -0
  83. package/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
  84. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -2
  85. package/lib/components/ApplicationLeadForm/getInitialFormState.js +1 -0
  86. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  87. package/lib/components/ContentPage/useContentPageData.js +1 -1
  88. package/lib/components/ContentPage/useContentPageData.js.map +1 -1
  89. package/lib/components/CreditCardForm/CreditCardForm.js +3 -1
  90. package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
  91. package/lib/components/CreditCardForm/creditCardFormStepsData.js +2 -2
  92. package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  93. package/lib/components/CreditCardForm/formStateMap.js +4 -4
  94. package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
  95. package/lib/components/CreditCardForm/getFourthStepData.js +8 -2
  96. package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
  97. package/lib/components/CreditForm/creditFormStepsData.js +2 -2
  98. package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  99. package/lib/components/CreditForm/formStateMap.js +2 -2
  100. package/lib/components/CreditForm/formStateMap.js.map +1 -1
  101. package/lib/components/CreditForm/getCreditFormTaskData.js +3 -1
  102. package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  103. package/lib/components/CreditForm/getFifthStepData.d.ts +3 -0
  104. package/lib/components/CreditForm/getFifthStepData.js +7 -0
  105. package/lib/components/CreditForm/getFifthStepData.js.map +1 -0
  106. package/lib/components/CreditForm/getThirdStepData.js +8 -2
  107. package/lib/components/CreditForm/getThirdStepData.js.map +1 -1
  108. package/lib/components/CreditForm/utils.d.ts +7 -1
  109. package/lib/components/CreditForm/utils.js +9 -3
  110. package/lib/components/CreditForm/utils.js.map +1 -1
  111. package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.d.ts +1 -1
  112. package/lib/components/OfficesAtmsMap/renderWorkSchedule.d.ts +1 -1
  113. package/lib/components/OfficesAtmsMap/renderWorkSchedule.js +1 -1
  114. package/lib/components/OfficesAtmsMap/renderWorkSchedule.js.map +1 -1
  115. package/{bundle/ui-kit/FormField/Fields/RetailAddressField.d.ts → lib/ui-kit/FormField/Fields/AddressRetailField.d.ts} +1 -1
  116. package/lib/ui-kit/FormField/Fields/{RetailAddressField.js → AddressRetailField.js} +20 -18
  117. package/lib/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -0
  118. package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  119. package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js +7 -0
  120. package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
  121. package/{mobile/bundle/ui-kit/FormField/Fields/RetailRegionField.d.ts → lib/ui-kit/FormField/Fields/RegionRetailField.d.ts} +1 -1
  122. package/lib/ui-kit/FormField/Fields/RegionRetailField.js +12 -0
  123. package/lib/ui-kit/FormField/Fields/RegionRetailField.js.map +1 -0
  124. package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
  125. package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
  126. package/lib/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  127. package/lib/ui-kit/FormField/Fields/WagesField.js +16 -0
  128. package/lib/ui-kit/FormField/Fields/WagesField.js.map +1 -0
  129. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  130. package/lib/ui-kit/FormField/SelectField.d.ts +2 -0
  131. package/lib/ui-kit/FormField/SelectField.js +2 -2
  132. package/lib/ui-kit/FormField/SelectField.js.map +1 -1
  133. package/lib/ui-kit/FormField/getField.js +8 -8
  134. package/lib/ui-kit/FormField/getField.js.map +1 -1
  135. package/lib/ui-kit/FormField/getObjectValidator.js +3 -3
  136. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  137. package/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -0
  138. package/lib/ui-kit/YandexMap/YandexMap.js +2 -2
  139. package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  140. package/mobile/bundle/api/RetailAPI/regionOffices.d.ts +16 -0
  141. package/mobile/bundle/bundle.umd.js +1428 -1367
  142. package/mobile/bundle/bundle.umd.min.js +1 -1
  143. package/mobile/bundle/components/ApplicationForm/getInitialFormState.d.ts +1 -0
  144. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -2
  145. package/mobile/bundle/components/CreditForm/getFifthStepData.d.ts +3 -0
  146. package/mobile/bundle/components/CreditForm/utils.d.ts +7 -1
  147. package/mobile/bundle/components/OfficesAtmsMap/renderWorkSchedule.d.ts +1 -1
  148. package/mobile/bundle/ui-kit/FormField/Fields/{RetailAddressField.d.ts → AddressRetailField.d.ts} +1 -1
  149. package/mobile/bundle/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  150. package/{bundle/ui-kit/FormField/Fields/RetailRegionField.d.ts → mobile/bundle/ui-kit/FormField/Fields/RegionRetailField.d.ts} +1 -1
  151. package/mobile/bundle/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  152. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  153. package/mobile/bundle/ui-kit/FormField/SelectField.d.ts +2 -0
  154. package/mobile/bundle/ui-kit/YandexMap/YandexMap.d.ts +1 -0
  155. package/mobile/dist/api/RetailAPI/regionOffices.d.ts +16 -0
  156. package/mobile/dist/api/RetailAPI/regionOffices.js +19 -0
  157. package/mobile/dist/api/RetailAPI/regionOffices.js.map +1 -0
  158. package/mobile/dist/components/ApplicationForm/getInitialFormState.d.ts +1 -0
  159. package/mobile/dist/components/ApplicationForm/getInitialFormState.js +1 -0
  160. package/mobile/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
  161. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -2
  162. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +1 -0
  163. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  164. package/mobile/dist/components/ContentPage/useContentPageData.js +1 -1
  165. package/mobile/dist/components/ContentPage/useContentPageData.js.map +1 -1
  166. package/mobile/dist/components/CreditCardForm/CreditCardForm.js +2 -0
  167. package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
  168. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +2 -2
  169. package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  170. package/mobile/dist/components/CreditCardForm/formStateMap.js +4 -4
  171. package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
  172. package/mobile/dist/components/CreditCardForm/getFourthStepData.js +8 -2
  173. package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
  174. package/mobile/dist/components/CreditForm/creditFormStepsData.js +2 -2
  175. package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
  176. package/mobile/dist/components/CreditForm/formStateMap.js +2 -2
  177. package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
  178. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +3 -1
  179. package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  180. package/mobile/dist/components/CreditForm/getFifthStepData.d.ts +3 -0
  181. package/mobile/dist/components/CreditForm/getFifthStepData.js +10 -0
  182. package/mobile/dist/components/CreditForm/getFifthStepData.js.map +1 -0
  183. package/mobile/dist/components/CreditForm/getThirdStepData.js +8 -2
  184. package/mobile/dist/components/CreditForm/getThirdStepData.js.map +1 -1
  185. package/mobile/dist/components/CreditForm/utils.d.ts +7 -1
  186. package/mobile/dist/components/CreditForm/utils.js +9 -3
  187. package/mobile/dist/components/CreditForm/utils.js.map +1 -1
  188. package/mobile/dist/components/OfficesAtmsMap/renderWorkSchedule.d.ts +1 -1
  189. package/mobile/dist/components/OfficesAtmsMap/renderWorkSchedule.js +1 -1
  190. package/mobile/dist/components/OfficesAtmsMap/renderWorkSchedule.js.map +1 -1
  191. package/mobile/dist/ui-kit/FormField/Fields/AddressRetailField.d.ts +2 -0
  192. package/mobile/dist/ui-kit/FormField/Fields/{RetailAddressField.js → AddressRetailField.js} +20 -18
  193. package/mobile/dist/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -0
  194. package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  195. package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js +9 -0
  196. package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
  197. package/mobile/dist/ui-kit/FormField/Fields/RegionRetailField.d.ts +2 -0
  198. package/mobile/dist/ui-kit/FormField/Fields/RegionRetailField.js +14 -0
  199. package/mobile/dist/ui-kit/FormField/Fields/RegionRetailField.js.map +1 -0
  200. package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
  201. package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
  202. package/mobile/dist/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  203. package/mobile/dist/ui-kit/FormField/Fields/WagesField.js +18 -0
  204. package/mobile/dist/ui-kit/FormField/Fields/WagesField.js.map +1 -0
  205. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  206. package/mobile/dist/ui-kit/FormField/SelectField.d.ts +2 -0
  207. package/mobile/dist/ui-kit/FormField/SelectField.js +2 -2
  208. package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
  209. package/mobile/dist/ui-kit/FormField/getField.js +8 -8
  210. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
  211. package/mobile/dist/ui-kit/FormField/getObjectValidator.js +3 -3
  212. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
  213. package/mobile/dist/ui-kit/YandexMap/YandexMap.d.ts +1 -0
  214. package/mobile/dist/ui-kit/YandexMap/YandexMap.js +4 -4
  215. package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  216. package/mobile/lib/api/RetailAPI/regionOffices.d.ts +16 -0
  217. package/mobile/lib/api/RetailAPI/regionOffices.js +16 -0
  218. package/mobile/lib/api/RetailAPI/regionOffices.js.map +1 -0
  219. package/mobile/lib/components/ApplicationForm/getInitialFormState.d.ts +1 -0
  220. package/mobile/lib/components/ApplicationForm/getInitialFormState.js +1 -0
  221. package/mobile/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
  222. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +7 -2
  223. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +1 -0
  224. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
  225. package/mobile/lib/components/ContentPage/useContentPageData.js +1 -1
  226. package/mobile/lib/components/ContentPage/useContentPageData.js.map +1 -1
  227. package/mobile/lib/components/CreditCardForm/CreditCardForm.js +3 -1
  228. package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
  229. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +2 -2
  230. package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
  231. package/mobile/lib/components/CreditCardForm/formStateMap.js +4 -4
  232. package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
  233. package/mobile/lib/components/CreditCardForm/getFourthStepData.js +8 -2
  234. package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
  235. package/mobile/lib/components/CreditForm/creditFormStepsData.js +2 -2
  236. package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
  237. package/mobile/lib/components/CreditForm/formStateMap.js +2 -2
  238. package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
  239. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +3 -1
  240. package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
  241. package/mobile/lib/components/CreditForm/getFifthStepData.d.ts +3 -0
  242. package/mobile/lib/components/CreditForm/getFifthStepData.js +7 -0
  243. package/mobile/lib/components/CreditForm/getFifthStepData.js.map +1 -0
  244. package/mobile/lib/components/CreditForm/getThirdStepData.js +8 -2
  245. package/mobile/lib/components/CreditForm/getThirdStepData.js.map +1 -1
  246. package/mobile/lib/components/CreditForm/utils.d.ts +7 -1
  247. package/mobile/lib/components/CreditForm/utils.js +9 -3
  248. package/mobile/lib/components/CreditForm/utils.js.map +1 -1
  249. package/mobile/lib/components/OfficesAtmsMap/renderWorkSchedule.d.ts +1 -1
  250. package/mobile/lib/components/OfficesAtmsMap/renderWorkSchedule.js +1 -1
  251. package/mobile/lib/components/OfficesAtmsMap/renderWorkSchedule.js.map +1 -1
  252. package/mobile/lib/ui-kit/FormField/Fields/AddressRetailField.d.ts +2 -0
  253. package/mobile/lib/ui-kit/FormField/Fields/{RetailAddressField.js → AddressRetailField.js} +20 -18
  254. package/mobile/lib/ui-kit/FormField/Fields/AddressRetailField.js.map +1 -0
  255. package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
  256. package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js +7 -0
  257. package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
  258. package/mobile/lib/ui-kit/FormField/Fields/RegionRetailField.d.ts +2 -0
  259. package/mobile/lib/ui-kit/FormField/Fields/RegionRetailField.js +12 -0
  260. package/mobile/lib/ui-kit/FormField/Fields/RegionRetailField.js.map +1 -0
  261. package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
  262. package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
  263. package/mobile/lib/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
  264. package/mobile/lib/ui-kit/FormField/Fields/WagesField.js +16 -0
  265. package/mobile/lib/ui-kit/FormField/Fields/WagesField.js.map +1 -0
  266. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  267. package/mobile/lib/ui-kit/FormField/SelectField.d.ts +2 -0
  268. package/mobile/lib/ui-kit/FormField/SelectField.js +2 -2
  269. package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
  270. package/mobile/lib/ui-kit/FormField/getField.js +8 -8
  271. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
  272. package/mobile/lib/ui-kit/FormField/getObjectValidator.js +3 -3
  273. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
  274. package/mobile/lib/ui-kit/YandexMap/YandexMap.d.ts +1 -0
  275. package/mobile/lib/ui-kit/YandexMap/YandexMap.js +2 -2
  276. package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  277. package/mobile/src/api/RetailAPI/regionOffices.ts +36 -0
  278. package/mobile/src/components/ApplicationForm/getInitialFormState.tsx +2 -0
  279. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -2
  280. package/mobile/src/components/ContentPage/useContentPageData.ts +1 -1
  281. package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +4 -1
  282. package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +2 -2
  283. package/mobile/src/components/CreditCardForm/formStateMap.tsx +4 -4
  284. package/mobile/src/components/CreditCardForm/getFourthStepData.ts +14 -2
  285. package/mobile/src/components/CreditForm/creditFormStepsData.tsx +2 -2
  286. package/mobile/src/components/CreditForm/formStateMap.tsx +2 -2
  287. package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +3 -1
  288. package/mobile/src/components/CreditForm/getFifthStepData.ts +10 -0
  289. package/mobile/src/components/CreditForm/getThirdStepData.ts +14 -2
  290. package/mobile/src/components/CreditForm/utils.ts +9 -3
  291. package/mobile/src/components/OfficesAtmsMap/renderWorkSchedule.tsx +1 -1
  292. package/mobile/src/ui-kit/FormField/Fields/{RetailAddressField.tsx → AddressRetailField.tsx} +20 -23
  293. package/{src/ui-kit/FormField/Fields/OtherPayments.tsx → mobile/src/ui-kit/FormField/Fields/MandatoryPaymentsField.tsx} +2 -2
  294. package/{src/ui-kit/FormField/Fields/RetailRegionField.tsx → mobile/src/ui-kit/FormField/Fields/RegionRetailField.tsx} +6 -8
  295. package/mobile/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +25 -9
  296. package/mobile/src/ui-kit/FormField/Fields/WagesField.tsx +31 -0
  297. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +5 -1
  298. package/mobile/src/ui-kit/FormField/SelectField.tsx +13 -2
  299. package/mobile/src/ui-kit/FormField/getField.tsx +8 -8
  300. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +3 -3
  301. package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +2 -2
  302. package/package.json +1 -1
  303. package/src/api/RetailAPI/regionOffices.ts +36 -0
  304. package/src/components/ApplicationForm/getInitialFormState.tsx +2 -0
  305. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +8 -2
  306. package/src/components/ContentPage/useContentPageData.ts +1 -1
  307. package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +11 -0
  308. package/src/components/CreditCardForm/CreditCardForm.tsx +4 -1
  309. package/src/components/CreditCardForm/creditCardFormStepsData.tsx +2 -2
  310. package/src/components/CreditCardForm/formStateMap.tsx +4 -4
  311. package/src/components/CreditCardForm/getFourthStepData.ts +14 -2
  312. package/src/components/CreditForm/creditFormStepsData.tsx +2 -2
  313. package/src/components/CreditForm/formStateMap.tsx +2 -2
  314. package/src/components/CreditForm/getCreditFormTaskData.ts +3 -1
  315. package/src/components/CreditForm/getFifthStepData.ts +10 -0
  316. package/src/components/CreditForm/getThirdStepData.ts +14 -2
  317. package/src/components/CreditForm/utils.ts +9 -3
  318. package/src/components/OfficesAtmsMap/renderWorkSchedule.tsx +1 -1
  319. package/src/ui-kit/FormField/Fields/{RetailAddressField.tsx → AddressRetailField.tsx} +20 -23
  320. package/{mobile/src/ui-kit/FormField/Fields/OtherPayments.tsx → src/ui-kit/FormField/Fields/MandatoryPaymentsField.tsx} +2 -2
  321. package/{mobile/src/ui-kit/FormField/Fields/RetailRegionField.tsx → src/ui-kit/FormField/Fields/RegionRetailField.tsx} +6 -8
  322. package/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +25 -9
  323. package/src/ui-kit/FormField/Fields/WagesField.tsx +31 -0
  324. package/src/ui-kit/FormField/NameFieldDef.ts +5 -1
  325. package/src/ui-kit/FormField/SelectField.tsx +13 -2
  326. package/src/ui-kit/FormField/getField.tsx +8 -8
  327. package/src/ui-kit/FormField/getObjectValidator.tsx +3 -3
  328. package/src/ui-kit/YandexMap/YandexMap.tsx +2 -2
  329. package/bundle/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
  330. package/bundle/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
  331. package/dist/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
  332. package/dist/ui-kit/FormField/Fields/MandatoryIncome.js +0 -9
  333. package/dist/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
  334. package/dist/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
  335. package/dist/ui-kit/FormField/Fields/OtherPayments.js +0 -9
  336. package/dist/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
  337. package/dist/ui-kit/FormField/Fields/RetailAddressField.js.map +0 -1
  338. package/dist/ui-kit/FormField/Fields/RetailRegionField.js +0 -14
  339. package/dist/ui-kit/FormField/Fields/RetailRegionField.js.map +0 -1
  340. package/lib/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
  341. package/lib/ui-kit/FormField/Fields/MandatoryIncome.js +0 -7
  342. package/lib/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
  343. package/lib/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
  344. package/lib/ui-kit/FormField/Fields/OtherPayments.js +0 -7
  345. package/lib/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
  346. package/lib/ui-kit/FormField/Fields/RetailAddressField.js.map +0 -1
  347. package/lib/ui-kit/FormField/Fields/RetailRegionField.js +0 -12
  348. package/lib/ui-kit/FormField/Fields/RetailRegionField.js.map +0 -1
  349. package/mobile/bundle/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
  350. package/mobile/bundle/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
  351. package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
  352. package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.js +0 -9
  353. package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
  354. package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
  355. package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.js +0 -9
  356. package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
  357. package/mobile/dist/ui-kit/FormField/Fields/RetailAddressField.d.ts +0 -2
  358. package/mobile/dist/ui-kit/FormField/Fields/RetailAddressField.js.map +0 -1
  359. package/mobile/dist/ui-kit/FormField/Fields/RetailRegionField.d.ts +0 -2
  360. package/mobile/dist/ui-kit/FormField/Fields/RetailRegionField.js +0 -14
  361. package/mobile/dist/ui-kit/FormField/Fields/RetailRegionField.js.map +0 -1
  362. package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
  363. package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.js +0 -7
  364. package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
  365. package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
  366. package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.js +0 -7
  367. package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
  368. package/mobile/lib/ui-kit/FormField/Fields/RetailAddressField.d.ts +0 -2
  369. package/mobile/lib/ui-kit/FormField/Fields/RetailAddressField.js.map +0 -1
  370. package/mobile/lib/ui-kit/FormField/Fields/RetailRegionField.d.ts +0 -2
  371. package/mobile/lib/ui-kit/FormField/Fields/RetailRegionField.js +0 -12
  372. package/mobile/lib/ui-kit/FormField/Fields/RetailRegionField.js.map +0 -1
  373. package/mobile/src/ui-kit/FormField/Fields/MandatoryIncome.tsx +0 -15
  374. package/src/ui-kit/FormField/Fields/MandatoryIncome.tsx +0 -15
@@ -8,8 +8,14 @@ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
8
8
  dependents,
9
9
  familyMembers,
10
10
  confirmationIncome,
11
- mandatoryIncome,
11
+ wages,
12
+ mandatoryPayments,
13
+ incomeAverage,
14
+ additionalIncome,
15
+ otherIncome,
12
16
  otherPayments,
17
+ rentalIncome,
18
+ retirementIncome,
13
19
  snils,
14
20
  armyIdFlg,
15
21
  } = formData;
@@ -20,8 +26,14 @@ export const getThirdStepData = (formData: FormState): Partial<Participant> => {
20
26
  incomeCertificateCd: confirmationIncome,
21
27
  otherDependents: dependents,
22
28
  participantIncomes: getParticipantIncomes({
23
- mandatoryIncome,
29
+ wages,
30
+ mandatoryPayments,
31
+ incomeAverage,
32
+ additionalIncome,
33
+ otherIncome,
24
34
  otherPayments,
35
+ rentalIncome,
36
+ retirementIncome,
25
37
  }),
26
38
  snils: snils?.replaceAll(' ', ''),
27
39
  armyIdFlg,
@@ -13,8 +13,14 @@ export const fieldsNamesToAddressKeysMap = {
13
13
  };
14
14
 
15
15
  export const fieldsNamesToIncomeKeysMap = {
16
- mandatoryIncome: 'INCOME_AVERAGE',
17
- otherPayments: 'MANDATORY_PAYMENTS',
16
+ incomeAverage: 'INCOME_AVERAGE',
17
+ mandatoryPayments: 'MANDATORY_PAYMENTS',
18
+ additionalIncome: 'ADDITIONAL_INCOME',
19
+ otherIncome: 'OTHER_INCOME',
20
+ otherPayments: 'OTHER_PAYMENTS',
21
+ rentalIncome: 'RENTAL_INCOME',
22
+ wages: 'WAGES',
23
+ retirementIncome: 'RETIREMENT_INCOME',
18
24
  };
19
25
 
20
26
  export const getParticipantContacts = (fields: Record<string, string | undefined>): any[] =>
@@ -66,7 +72,7 @@ export const getParticipantIncomes = (fields: Record<string, number | undefined>
66
72
  incomeTypeCd: {
67
73
  key: fieldsNamesToIncomeKeysMap[key],
68
74
  },
69
- value,
75
+ value: Number(value || 0),
70
76
  },
71
77
  ];
72
78
  }
@@ -8,7 +8,7 @@ export const renderWorkSchedule = (workSchedule?: WorkSchedule) => {
8
8
  const businessTimeOfWork = workSchedule ? workSchedule.businessScheduleDescription : '';
9
9
 
10
10
  if (!workSchedule) {
11
- return null;
11
+ return '';
12
12
  }
13
13
 
14
14
  if (!workSchedule.businessScheduleVisibleTag) {
@@ -1,9 +1,9 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
2
+ import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { regionOffices, type OfficeType } from '../../../api/RetailAPI/regionOffices';
3
4
  import { getOfficePoint } from '../../../components/OfficesAtmsMap/renderOfficeCard';
4
5
  import { useOfficesAtmsMapData } from '../../../components/OfficesAtmsMap/useOfficesAtmsMapData';
5
- import { type Branch } from '../../../hooks/useBranches';
6
- import { useBranchesByRegions } from '../../../hooks/useBranchesByRegions';
6
+ import { useLeadFormData } from '../../../hooks/useLeadFormData';
7
7
  import { ClientOnly } from '../../ClientOnly';
8
8
  import { SelectControl } from '../../Select/SelectControl';
9
9
  import { YandexMap } from '../../YandexMap/YandexMap';
@@ -11,43 +11,40 @@ import { type CustomFieldProps } from '../CustomFieldProps';
11
11
  import { validatorObj } from '../getObjectValidator';
12
12
  import { getValidation } from '../getValidation';
13
13
 
14
- type RegionFieldProps = CustomFieldProps;
14
+ export const AddressRetailField = JSX<CustomFieldProps>(({ field, input }) => {
15
+ const [offices, setOffices] = useState<OfficeType[]>([]);
16
+ const { data } = useLeadFormData('REGION_RF');
15
17
 
16
- export const RetailAddressField = JSX<RegionFieldProps>(({ field, input }) => {
17
- const fieldRegion = field('regionRetail');
18
+ const regionValue = field('regionRetail')?.value || {};
18
19
  const fieldBranch = field('addressRetail');
19
- const regions = useBranchesByRegions();
20
- const regionKey = fieldRegion?.value?.key as string;
21
- const selectedRegion = regions.find(({ region }) => region === regionKey);
22
-
23
- const isLoad = !regions;
24
-
25
- const regionText = fieldRegion?.value?.text as string;
26
- const addressBranchRetail = useBranchesByRegions()?.find(
27
- (_) => _?.region === regionText,
28
- )?.branches;
29
20
 
30
21
  useEffect(() => {
31
- if (fieldRegion?.value?.key !== '') {
22
+ (async () => {
23
+ const officesList = await regionOffices((regionValue?.key as string) ?? '');
24
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
25
+ setOffices(officesList || []);
26
+ })();
27
+
28
+ if (regionValue?.key) {
32
29
  field?.('addressRetail')?.onChange?.('');
33
30
  }
34
- }, [fieldRegion?.value]);
31
+ }, [regionValue.key]);
35
32
 
36
33
  const { points } = useOfficesAtmsMapData({
37
- data: (selectedRegion?.branches as Branch[]) || [],
34
+ data: offices,
38
35
  filtrationState: {},
39
36
  getBalloon: getOfficePoint,
40
37
  });
41
38
 
42
- const isRegionSelected = Boolean(fieldRegion?.value?.key);
39
+ const isRegionSelected = Boolean(regionValue?.key);
43
40
 
44
41
  return (
45
42
  <div>
46
43
  <SelectControl
47
44
  label="Адрес отделения"
48
45
  placeholder="Выберите отделение"
49
- options={(addressBranchRetail || []).map(({ address = '' }) => ({
50
- key: address,
46
+ options={offices.map(({ id, address = '' }) => ({
47
+ key: id?.toString() || '',
51
48
  text: address,
52
49
  }))}
53
50
  {...getValidation(
@@ -61,7 +58,7 @@ export const RetailAddressField = JSX<RegionFieldProps>(({ field, input }) => {
61
58
  <ClientOnly>
62
59
  <YandexMap
63
60
  points={points}
64
- isLoad={isLoad}
61
+ isLoad={!data}
65
62
  className="h-full"
66
63
  selectedAddress={fieldBranch?.value?.text}
67
64
  />
@@ -4,12 +4,12 @@ import type { CustomFieldProps } from '../CustomFieldProps';
4
4
  import { validatorObj } from '../getObjectValidator';
5
5
  import { getValidation } from '../getValidation';
6
6
 
7
- export const OtherPaymentsField = JSX<CustomFieldProps>(({ field, input }) => (
7
+ export const MandatoryPaymentsField = JSX<CustomFieldProps>(({ field, input }) => (
8
8
  <InputControl
9
9
  label="Обязательные выплаты"
10
10
  placeholder="Введите значение"
11
11
  type="number"
12
- {...getValidation(field('otherPayments'), validatorObj.otherPayments, input?.required)}
12
+ {...getValidation(field('mandatoryPayments'), validatorObj.mandatoryPayments, input?.required)}
13
13
  {...input}
14
14
  />
15
15
  ));
@@ -1,23 +1,21 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
- import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
3
- import { useBranchesByRegions } from '../../../hooks/useBranchesByRegions';
2
+ import { useLeadFormData } from '../../../hooks/useLeadFormData';
3
+ import { type Option } from '../../Select/Option';
4
4
  import { SelectControl } from '../../Select/SelectControl';
5
5
  import { type CustomFieldProps } from '../CustomFieldProps';
6
6
  import { validatorObj } from '../getObjectValidator';
7
7
  import { getValidation } from '../getValidation';
8
8
 
9
- export const RetailRegionField = JSX<CustomFieldProps>(({ field, input }) => {
10
- const regions = useBranchesByRegions();
9
+ export const RegionRetailField = JSX<CustomFieldProps>(({ field, input }) => {
10
+ const { data: regions } = useLeadFormData('REGION_RF');
11
+ const formatRegions = regions?.map(({ key, value }) => ({ key, text: value }));
11
12
 
12
13
  return (
13
14
  <SelectControl
14
15
  label="Регион"
15
16
  placeholder="Выберите регион"
16
17
  isSearch={true}
17
- options={useMemo(
18
- () => regions?.map(({ region = '' }) => ({ key: region, text: region })),
19
- [regions],
20
- )}
18
+ options={formatRegions as Option[]}
21
19
  {...getValidation(field('regionRetail'), validatorObj.regionRetail, input?.required)}
22
20
  />
23
21
  );
@@ -1,15 +1,31 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
2
3
  import { InputControl } from '../../Input/InputControl';
3
4
  import type { CustomFieldProps } from '../CustomFieldProps';
4
5
  import { validatorObj } from '../getObjectValidator';
5
6
  import { getValidation } from '../getValidation';
6
7
 
7
- export const RetirementIncomeField = JSX<CustomFieldProps>(({ field, input }) => (
8
- <InputControl
9
- label="Пенсионные доходы"
10
- placeholder="Введите значение"
11
- type="number"
12
- {...getValidation(field('retirementIncome'), validatorObj.retirementIncome, input?.required)}
13
- {...input}
14
- />
15
- ));
8
+ export const RetirementIncomeField = JSX<CustomFieldProps>(({ field, input }) => {
9
+ const currentWages = field('wages')?.value;
10
+
11
+ const onChange = useCallback(
12
+ (_: string) => {
13
+ const incomesSum = Number(_) + Number(currentWages || 0);
14
+
15
+ field('retirementIncome')?.onChange?.(_);
16
+ field('incomeAverage')?.onChange?.(String(incomesSum));
17
+ },
18
+ [currentWages],
19
+ );
20
+
21
+ return (
22
+ <InputControl
23
+ label="Пенсионные доходы"
24
+ placeholder="Введите значение"
25
+ type="number"
26
+ {...getValidation(field('retirementIncome'), validatorObj.retirementIncome, input?.required)}
27
+ {...input}
28
+ onChange={onChange}
29
+ />
30
+ );
31
+ });
@@ -0,0 +1,31 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { InputControl } from '../../Input/InputControl';
4
+ import type { CustomFieldProps } from '../CustomFieldProps';
5
+ import { validatorObj } from '../getObjectValidator';
6
+ import { getValidation } from '../getValidation';
7
+
8
+ export const WagesField = JSX<CustomFieldProps>(({ field, input }) => {
9
+ const currentRetirementIncome = field('retirementIncome')?.value;
10
+
11
+ const onChange = useCallback(
12
+ (_: string) => {
13
+ const incomesSum = Number(_) + Number(currentRetirementIncome || 0);
14
+
15
+ field('wages')?.onChange?.(_);
16
+ field('incomeAverage')?.onChange?.(String(incomesSum));
17
+ },
18
+ [currentRetirementIncome],
19
+ );
20
+
21
+ return (
22
+ <InputControl
23
+ label="Совокупный доход в месяц после вычета налогов (зарплата, премии)"
24
+ placeholder="Введите значение"
25
+ type="number"
26
+ {...getValidation(field('wages'), validatorObj.wages, input?.required)}
27
+ {...input}
28
+ onChange={onChange}
29
+ />
30
+ );
31
+ });
@@ -76,8 +76,12 @@ export type NameFieldDef =
76
76
  | 'participantDateRegistration'
77
77
  | 'retirementIncome'
78
78
  | 'otherIncome'
79
- | 'mandatoryIncome'
79
+ | 'incomeAverage'
80
+ | 'mandatoryPayments'
81
+ | 'additionalIncome'
80
82
  | 'otherPayments'
83
+ | 'rentalIncome'
84
+ | 'wages'
81
85
  | 'creditInRshbCd'
82
86
  | 'disablePeopleFlg'
83
87
  | 'bankruptcyFlg'
@@ -18,10 +18,20 @@ export interface SelectFieldProps extends CustomFieldProps, UniBlockProps {
18
18
  source?: LeadProps[];
19
19
  label: string;
20
20
  fieldName: string;
21
+ placeholder?: string;
22
+ isSearch?: boolean;
21
23
  }
22
24
 
23
25
  export const SelectField = UniBlock<SelectFieldProps>(
24
- ({ field, source, label, fieldName, input }) => {
26
+ ({
27
+ field,
28
+ source,
29
+ label,
30
+ fieldName,
31
+ input,
32
+ placeholder = 'Выберите из списка',
33
+ isSearch = false,
34
+ }) => {
25
35
  const leadOptions: Option[] =
26
36
  (source &&
27
37
  source?.map((_: LeadProps) => ({
@@ -32,9 +42,10 @@ export const SelectField = UniBlock<SelectFieldProps>(
32
42
 
33
43
  return (
34
44
  <SelectControl
35
- placeholder="Выберите из списка"
45
+ placeholder={placeholder}
36
46
  label={label}
37
47
  options={leadOptions}
48
+ isSearch={isSearch}
38
49
  {...getValidation(field(fieldName), validatorObj[fieldName], input?.required)}
39
50
  />
40
51
  );
@@ -10,6 +10,7 @@ import { AddressBranchField } from './Fields/AddressBranchField';
10
10
  import { AddressFactField } from './Fields/AddressFactField';
11
11
  import { AddressField } from './Fields/AddressField';
12
12
  import { AddressMatchField } from './Fields/AddressMatchField';
13
+ import { AddressRetailField } from './Fields/AddressRetailField';
13
14
  import { AmountField } from './Fields/AmountField';
14
15
  import { AmountWorkersField } from './Fields/AmountWorkersField';
15
16
  import { AnnualRevenueField } from './Fields/AnnualRevenueField';
@@ -59,7 +60,7 @@ import { LastJobExperienceField } from './Fields/LastJobExperienceField';
59
60
  import { LegalEntityNameField } from './Fields/LegalEntityNameField';
60
61
  import { LegalFormField } from './Fields/LegalFormField';
61
62
  import { LocalitiesField } from './Fields/LocalitiesField';
62
- import { MandatoryIncomeField } from './Fields/MandatoryIncome';
63
+ import { MandatoryPaymentsField } from './Fields/MandatoryPaymentsField';
63
64
  import { MethodObtainField } from './Fields/MethodObtainField';
64
65
  import { MiddleNameField } from './Fields/MiddleNameField';
65
66
  import { NameField } from './Fields/NameField';
@@ -67,7 +68,6 @@ import { OnlineCheckoutField } from './Fields/OnlineCheckoutField';
67
68
  import { OrganizationField } from './Fields/OrganizationField';
68
69
  import { OrganizationNameField } from './Fields/OrganizationNameField';
69
70
  import { OtherIncomeField } from './Fields/OtherIncomeField';
70
- import { OtherPaymentsField } from './Fields/OtherPayments';
71
71
  import { ParticipantDateRegistrationField } from './Fields/ParticipantDateRegistrationField';
72
72
  import { PartInBusinessField } from './Fields/PartInBusinessField';
73
73
  import { PartnerCommentsField } from './Fields/PartnerCommentsField';
@@ -78,8 +78,7 @@ import { PosTerminalField } from './Fields/PosTerminalField';
78
78
  import { ProductField } from './Fields/ProductField';
79
79
  import { RegionField } from './Fields/RegionField';
80
80
  import { RegionPremiumField } from './Fields/RegionPremiumField';
81
- import { RetailAddressField } from './Fields/RetailAddressField';
82
- import { RetailRegionField } from './Fields/RetailRegionField';
81
+ import { RegionRetailField } from './Fields/RegionRetailField';
83
82
  import { RetirementIncomeField } from './Fields/RetirementIncomeField';
84
83
  import { SecondaryPhoneField } from './Fields/SecondaryPhoneField';
85
84
  import { ServiceDirectionField } from './Fields/ServiceDirectionField';
@@ -91,6 +90,7 @@ import { TermField } from './Fields/TermField';
91
90
  import { TotalIncomeField } from './Fields/TotalIncomeField';
92
91
  import { UltraPremiumField } from './Fields/UltraPremiumField';
93
92
  import { VedField } from './Fields/VedField';
93
+ import { WagesField } from './Fields/WagesField';
94
94
  import { isRenderField } from './isRenderField';
95
95
 
96
96
  const PRODUCT_REF = {
@@ -184,8 +184,8 @@ export const getField =
184
184
  participantDateRegistration: <ParticipantDateRegistrationField field={field} input={input} />,
185
185
  retirementIncome: <RetirementIncomeField field={field} input={input} />,
186
186
  otherIncome: <OtherIncomeField field={field} input={input} />,
187
- mandatoryIncome: <MandatoryIncomeField field={field} input={input} />,
188
- otherPayments: <OtherPaymentsField field={field} input={input} />,
187
+ wages: <WagesField field={field} input={input} />,
188
+ mandatoryPayments: <MandatoryPaymentsField field={field} input={input} />,
189
189
  disablePeopleFlg: <DisablePeopleFlgField field={field} input={input} />,
190
190
  bankruptcyFlg: <BankruptcyFlgField field={field} input={input} />,
191
191
  shareholderFlg: <ShareholderFlgField field={field} input={input} />,
@@ -193,8 +193,8 @@ export const getField =
193
193
  creditInRshbCd: <CreditInRshbCdField field={field} input={input} />,
194
194
  bankEmployeeCode: <BankEmpoleeCodeField field={field} input={input} />,
195
195
  partInBusiness: <PartInBusinessField field={field} input={input} />,
196
- regionRetail: <RetailRegionField field={field} input={input} />,
197
- addressRetail: <RetailAddressField field={field} input={input} />,
196
+ regionRetail: <RegionRetailField field={field} input={input} />,
197
+ addressRetail: <AddressRetailField field={field} input={input} />,
198
198
  addressMatch: <AddressMatchField field={field} input={input} />,
199
199
  paymentSystem: <PaymentSystemField field={field} input={input} />,
200
200
  currency: <CurrencyField field={field} input={input} />,
@@ -62,6 +62,7 @@ export const validatorObj: Record<string, Validator> = {
62
62
  feedbackMethod: defaultSelectValidator(),
63
63
  serviceType: defaultSelectValidator(),
64
64
  serviceDirection: defaultSelectValidator(),
65
+ regionRetail: defaultSelectValidator('Выберите регион'),
65
66
  meetingDay: defaultValidator(),
66
67
  product: defaultValidator(),
67
68
  localities: defaultValidator(),
@@ -88,15 +89,14 @@ export const validatorObj: Record<string, Validator> = {
88
89
  participantDateRegistration: defaultValidator('Укажите дату регистрации'),
89
90
  retirementIncome: defaultValidator(),
90
91
  otherIncome: defaultValidator(),
91
- mandatoryIncome: defaultValidator(),
92
- otherPayments: defaultValidator(),
92
+ wages: defaultValidator(),
93
+ mandatoryPayments: defaultValidator(),
93
94
  disablePeopleFlg: defaultValidator(),
94
95
  bankruptcyFlg: defaultValidator(),
95
96
  shareholderFlg: defaultValidator(),
96
97
  legalEntityName: defaultValidator(),
97
98
  bankEmployeeCode: defaultValidator(),
98
99
  partInBusiness: defaultValidator(),
99
- regionRetail: defaultSelectValidator('Выберите филиал банка'),
100
100
  addressRetail: defaultSelectValidator('Выберите адрес банка'),
101
101
  addressMatch: defaultValidator(),
102
102
  codeWord: codeWordValidator('Необходимо ввести кодовое слово'),
@@ -19,7 +19,7 @@ interface YandexMapProps {
19
19
  selectedAddress?: string;
20
20
  }
21
21
 
22
- const DEFAULT_CENTER_COORDS = [55.753995, 37.614069];
22
+ export const DEFAULT_CENTER_COORDS = [55.753995, 37.614069];
23
23
 
24
24
  // TODO: Поле для поиска: невыяснено среди каких данных делать поиск (искать в имени офиса, в адресе, метро и т.д.).
25
25
  // Сейчас реализован поиск среди тестовых данных
@@ -33,7 +33,7 @@ export const YandexMap = JSX<YandexMapProps>(
33
33
 
34
34
  useEffect(() => {
35
35
  if (map.current) {
36
- renderClusterer({ yandexMaps, map: map.current, points, isLoad });
36
+ renderClusterer({ yandexMaps, map: map.current, points, isLoad, selectedAddress });
37
37
  } else {
38
38
  yandexMaps?.ready(() => {
39
39
  // Ready function may be called few times, but must be called once
@@ -1,2 +0,0 @@
1
- import type { CustomFieldProps } from '../CustomFieldProps';
2
- export declare const MandatoryIncomeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,2 +0,0 @@
1
- import type { CustomFieldProps } from '../CustomFieldProps';
2
- export declare const OtherPaymentsField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,2 +0,0 @@
1
- import type { CustomFieldProps } from '../CustomFieldProps';
2
- export declare const MandatoryIncomeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,9 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.MandatoryIncomeField = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const InputControl_1 = require("../../Input/InputControl");
6
- const getObjectValidator_1 = require("../getObjectValidator");
7
- const getValidation_1 = require("../getValidation");
8
- exports.MandatoryIncomeField = (0, uni_jsx_1.JSX)(({ field, input }) => ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0421\u043E\u0432\u043E\u043A\u0443\u043F\u043D\u044B\u0439 \u0434\u043E\u0445\u043E\u0434 \u0432 \u043C\u0435\u0441\u044F\u0446 \u043F\u043E\u0441\u043B\u0435 \u0432\u044B\u0447\u0435\u0442\u0430 \u043D\u0430\u043B\u043E\u0433\u043E\u0432 (\u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0430, \u043F\u0440\u0435\u043C\u0438\u0438)", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...(0, getValidation_1.getValidation)(field('mandatoryIncome'), getObjectValidator_1.validatorObj.mandatoryIncome, input?.required), ...input })));
9
- //# sourceMappingURL=MandatoryIncome.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MandatoryIncome.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/MandatoryIncome.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AAExD,8DAAqD;AACrD,oDAAiD;AAEpC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC9E,uBAAC,2BAAY,IACX,KAAK,EAAC,2UAAkE,EACxE,WAAW,EAAC,6FAAkB,EAC9B,IAAI,EAAC,QAAQ,KACT,IAAA,6BAAa,EAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,iCAAY,CAAC,eAAe,EAAE,KAAK,EAAE,QAAQ,CAAC,KACtF,KAAK,GACT,CACH,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { CustomFieldProps } from '../CustomFieldProps';
2
- export declare const OtherPaymentsField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,9 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.OtherPaymentsField = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const InputControl_1 = require("../../Input/InputControl");
6
- const getObjectValidator_1 = require("../getObjectValidator");
7
- const getValidation_1 = require("../getValidation");
8
- exports.OtherPaymentsField = (0, uni_jsx_1.JSX)(({ field, input }) => ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0432\u044B\u043F\u043B\u0430\u0442\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...(0, getValidation_1.getValidation)(field('otherPayments'), getObjectValidator_1.validatorObj.otherPayments, input?.required), ...input })));
9
- //# sourceMappingURL=OtherPayments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OtherPayments.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/OtherPayments.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AAExD,8DAAqD;AACrD,oDAAiD;AAEpC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC5E,uBAAC,2BAAY,IACX,KAAK,EAAC,qHAAsB,EAC5B,WAAW,EAAC,6FAAkB,EAC9B,IAAI,EAAC,QAAQ,KACT,IAAA,6BAAa,EAAC,KAAK,CAAC,eAAe,CAAC,EAAE,iCAAY,CAAC,aAAa,EAAE,KAAK,EAAE,QAAQ,CAAC,KAClF,KAAK,GACT,CACH,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"RetailAddressField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/RetailAddressField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAwD;AACxD,0FAAqF;AACrF,oGAAiG;AAEjG,8EAA2E;AAC3E,iDAA8C;AAC9C,8DAA2D;AAC3D,yDAAsD;AAEtD,8DAAqD;AACrD,oDAAiD;AAIpC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IAC3E,MAAM,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;IAC1C,MAAM,WAAW,GAAG,KAAK,CAAC,eAAe,CAAC,CAAC;IAC3C,MAAM,OAAO,GAAG,IAAA,2CAAoB,GAAE,CAAC;IACvC,MAAM,SAAS,GAAG,WAAW,EAAE,KAAK,EAAE,GAAa,CAAC;IACpD,MAAM,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC;IAE1E,MAAM,MAAM,GAAG,CAAC,OAAO,CAAC;IAExB,MAAM,UAAU,GAAG,WAAW,EAAE,KAAK,EAAE,IAAc,CAAC;IACtD,MAAM,mBAAmB,GAAG,IAAA,2CAAoB,GAAE,EAAE,IAAI,CACtD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,UAAU,CAChC,EAAE,QAAQ,CAAC;IAEZ,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,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,6CAAqB,EAAC;QACvC,IAAI,EAAG,cAAc,EAAE,QAAqB,IAAI,EAAE;QAClD,eAAe,EAAE,EAAE;QACnB,UAAU,EAAE,iCAAc;KAC3B,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,OAAO,CAAC,WAAW,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAE1D,OAAO,CACL,4CACE,uBAAC,6BAAa,IACZ,KAAK,EAAC,uFAAiB,EACvB,WAAW,EAAC,yGAAoB,EAChC,OAAO,EAAE,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;oBAC9D,GAAG,EAAE,OAAO;oBACZ,IAAI,EAAE,OAAO;iBACd,CAAC,CAAC,KACC,IAAA,6BAAa,EACf,KAAK,CAAC,eAAe,CAAC,EACtB,iCAAY,CAAC,aAAa,EAC1B,KAAK,EAAE,QAAQ,IAAI,gBAAgB,CACpC,EACD,QAAQ,EAAE,IAAI,GACd,EACF,gCAAK,SAAS,EAAC,WAAW,YACxB,uBAAC,uBAAU,cACT,uBAAC,qBAAS,IACR,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,SAAS,EAAC,QAAQ,EAClB,eAAe,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,GACzC,GACS,GACT,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,14 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.RetailRegionField = 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 useBranchesByRegions_1 = require("../../../hooks/useBranchesByRegions");
7
- const SelectControl_1 = require("../../Select/SelectControl");
8
- const getObjectValidator_1 = require("../getObjectValidator");
9
- const getValidation_1 = require("../getValidation");
10
- exports.RetailRegionField = (0, uni_jsx_1.JSX)(({ field, input }) => {
11
- const regions = (0, useBranchesByRegions_1.useBranchesByRegions)();
12
- return ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: (0, hooks_1.useMemo)(() => regions?.map(({ region = '' }) => ({ key: region, text: region })), [regions]), ...(0, getValidation_1.getValidation)(field('regionRetail'), getObjectValidator_1.validatorObj.regionRetail, input?.required) }));
13
- });
14
- //# sourceMappingURL=RetailRegionField.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RetailRegionField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/RetailRegionField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAsD;AACtD,8EAA2E;AAC3E,8DAA2D;AAE3D,8DAAqD;AACrD,oDAAiD;AAEpC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IAC1E,MAAM,OAAO,GAAG,IAAA,2CAAoB,GAAE,CAAC;IAEvC,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,MAAM,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,EACxE,CAAC,OAAO,CAAC,CACV,KACG,IAAA,6BAAa,EAAC,KAAK,CAAC,cAAc,CAAC,EAAE,iCAAY,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,CAAC,GACpF,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { CustomFieldProps } from '../CustomFieldProps';
2
- export declare const MandatoryIncomeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { InputControl } from '../../Input/InputControl.js';
4
- import { validatorObj } from '../getObjectValidator.js';
5
- import { getValidation } from '../getValidation.js';
6
- export const MandatoryIncomeField = JSX(({ field, input }) => (_jsx(InputControl, { label: "\u0421\u043E\u0432\u043E\u043A\u0443\u043F\u043D\u044B\u0439 \u0434\u043E\u0445\u043E\u0434 \u0432 \u043C\u0435\u0441\u044F\u0446 \u043F\u043E\u0441\u043B\u0435 \u0432\u044B\u0447\u0435\u0442\u0430 \u043D\u0430\u043B\u043E\u0433\u043E\u0432 (\u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0430, \u043F\u0440\u0435\u043C\u0438\u0438)", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('mandatoryIncome'), validatorObj.mandatoryIncome, input?.required), ...input })));
7
- //# sourceMappingURL=MandatoryIncome.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MandatoryIncome.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/MandatoryIncome.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC9E,KAAC,YAAY,IACX,KAAK,EAAC,2UAAkE,EACxE,WAAW,EAAC,6FAAkB,EAC9B,IAAI,EAAC,QAAQ,KACT,aAAa,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC,eAAe,EAAE,KAAK,EAAE,QAAQ,CAAC,KACtF,KAAK,GACT,CACH,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { CustomFieldProps } from '../CustomFieldProps';
2
- export declare const OtherPaymentsField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { InputControl } from '../../Input/InputControl.js';
4
- import { validatorObj } from '../getObjectValidator.js';
5
- import { getValidation } from '../getValidation.js';
6
- export const OtherPaymentsField = JSX(({ field, input }) => (_jsx(InputControl, { label: "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0432\u044B\u043F\u043B\u0430\u0442\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('otherPayments'), validatorObj.otherPayments, input?.required), ...input })));
7
- //# sourceMappingURL=OtherPayments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OtherPayments.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/OtherPayments.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC5E,KAAC,YAAY,IACX,KAAK,EAAC,qHAAsB,EAC5B,WAAW,EAAC,6FAAkB,EAC9B,IAAI,EAAC,QAAQ,KACT,aAAa,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,YAAY,CAAC,aAAa,EAAE,KAAK,EAAE,QAAQ,CAAC,KAClF,KAAK,GACT,CACH,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"RetailAddressField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/RetailAddressField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAEjG,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAIjD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IAC3E,MAAM,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;IAC1C,MAAM,WAAW,GAAG,KAAK,CAAC,eAAe,CAAC,CAAC;IAC3C,MAAM,OAAO,GAAG,oBAAoB,EAAE,CAAC;IACvC,MAAM,SAAS,GAAG,WAAW,EAAE,KAAK,EAAE,GAAa,CAAC;IACpD,MAAM,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC;IAE1E,MAAM,MAAM,GAAG,CAAC,OAAO,CAAC;IAExB,MAAM,UAAU,GAAG,WAAW,EAAE,KAAK,EAAE,IAAc,CAAC;IACtD,MAAM,mBAAmB,GAAG,oBAAoB,EAAE,EAAE,IAAI,CACtD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,UAAU,CAChC,EAAE,QAAQ,CAAC;IAEZ,SAAS,CAAC,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,MAAM,EAAE,MAAM,EAAE,GAAG,qBAAqB,CAAC;QACvC,IAAI,EAAG,cAAc,EAAE,QAAqB,IAAI,EAAE;QAClD,eAAe,EAAE,EAAE;QACnB,UAAU,EAAE,cAAc;KAC3B,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,OAAO,CAAC,WAAW,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAE1D,OAAO,CACL,0BACE,KAAC,aAAa,IACZ,KAAK,EAAC,uFAAiB,EACvB,WAAW,EAAC,yGAAoB,EAChC,OAAO,EAAE,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;oBAC9D,GAAG,EAAE,OAAO;oBACZ,IAAI,EAAE,OAAO;iBACd,CAAC,CAAC,KACC,aAAa,CACf,KAAK,CAAC,eAAe,CAAC,EACtB,YAAY,CAAC,aAAa,EAC1B,KAAK,EAAE,QAAQ,IAAI,gBAAgB,CACpC,EACD,QAAQ,EAAE,IAAI,GACd,EACF,cAAK,SAAS,EAAC,WAAW,YACxB,KAAC,UAAU,cACT,KAAC,SAAS,IACR,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,SAAS,EAAC,QAAQ,EAClB,eAAe,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,GACzC,GACS,GACT,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
- import { JSX } from '@redneckz/uni-jsx';
3
- import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
4
- import { useBranchesByRegions } from '../../../hooks/useBranchesByRegions.js';
5
- import { SelectControl } from '../../Select/SelectControl.js';
6
- import { validatorObj } from '../getObjectValidator.js';
7
- import { getValidation } from '../getValidation.js';
8
- export const RetailRegionField = JSX(({ field, input }) => {
9
- const regions = useBranchesByRegions();
10
- return (_jsx(SelectControl, { label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: useMemo(() => regions?.map(({ region = '' }) => ({ key: region, text: region })), [regions]), ...getValidation(field('regionRetail'), validatorObj.regionRetail, input?.required) }));
11
- });
12
- //# sourceMappingURL=RetailRegionField.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RetailRegionField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/RetailRegionField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IAC1E,MAAM,OAAO,GAAG,oBAAoB,EAAE,CAAC;IAEvC,OAAO,CACL,KAAC,aAAa,IACZ,KAAK,EAAC,sCAAQ,EACd,WAAW,EAAC,uFAAiB,EAC7B,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,OAAO,CACd,GAAG,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,EACxE,CAAC,OAAO,CAAC,CACV,KACG,aAAa,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,YAAY,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,CAAC,GACpF,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { CustomFieldProps } from '../CustomFieldProps';
2
- export declare const MandatoryIncomeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,2 +0,0 @@
1
- import type { CustomFieldProps } from '../CustomFieldProps';
2
- export declare const OtherPaymentsField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,2 +0,0 @@
1
- import type { CustomFieldProps } from '../CustomFieldProps';
2
- export declare const MandatoryIncomeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,9 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.MandatoryIncomeField = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const InputControl_1 = require("../../Input/InputControl");
6
- const getObjectValidator_1 = require("../getObjectValidator");
7
- const getValidation_1 = require("../getValidation");
8
- exports.MandatoryIncomeField = (0, uni_jsx_1.JSX)(({ field, input }) => ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0421\u043E\u0432\u043E\u043A\u0443\u043F\u043D\u044B\u0439 \u0434\u043E\u0445\u043E\u0434 \u0432 \u043C\u0435\u0441\u044F\u0446 \u043F\u043E\u0441\u043B\u0435 \u0432\u044B\u0447\u0435\u0442\u0430 \u043D\u0430\u043B\u043E\u0433\u043E\u0432 (\u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0430, \u043F\u0440\u0435\u043C\u0438\u0438)", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...(0, getValidation_1.getValidation)(field('mandatoryIncome'), getObjectValidator_1.validatorObj.mandatoryIncome, input?.required), ...input })));
9
- //# sourceMappingURL=MandatoryIncome.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MandatoryIncome.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/MandatoryIncome.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AAExD,8DAAqD;AACrD,oDAAiD;AAEpC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC9E,uBAAC,2BAAY,IACX,KAAK,EAAC,2UAAkE,EACxE,WAAW,EAAC,6FAAkB,EAC9B,IAAI,EAAC,QAAQ,KACT,IAAA,6BAAa,EAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,iCAAY,CAAC,eAAe,EAAE,KAAK,EAAE,QAAQ,CAAC,KACtF,KAAK,GACT,CACH,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import type { CustomFieldProps } from '../CustomFieldProps';
2
- export declare const OtherPaymentsField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
@@ -1,9 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.OtherPaymentsField = void 0;
3
- const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
- const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const InputControl_1 = require("../../Input/InputControl");
6
- const getObjectValidator_1 = require("../getObjectValidator");
7
- const getValidation_1 = require("../getValidation");
8
- exports.OtherPaymentsField = (0, uni_jsx_1.JSX)(({ field, input }) => ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0432\u044B\u043F\u043B\u0430\u0442\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...(0, getValidation_1.getValidation)(field('otherPayments'), getObjectValidator_1.validatorObj.otherPayments, input?.required), ...input })));
9
- //# sourceMappingURL=OtherPayments.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OtherPayments.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/OtherPayments.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAAwD;AAExD,8DAAqD;AACrD,oDAAiD;AAEpC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC5E,uBAAC,2BAAY,IACX,KAAK,EAAC,qHAAsB,EAC5B,WAAW,EAAC,6FAAkB,EAC9B,IAAI,EAAC,QAAQ,KACT,IAAA,6BAAa,EAAC,KAAK,CAAC,eAAe,CAAC,EAAE,iCAAY,CAAC,aAAa,EAAE,KAAK,EAAE,QAAQ,CAAC,KAClF,KAAK,GACT,CACH,CAAC,CAAC"}