@redneckz/wildless-cms-uni-blocks 0.14.145 → 0.14.147

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 (426) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +119 -74
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/AddressBranchField.d.ts +7 -0
  5. package/bundle/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -3
  6. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -1
  7. package/bundle/components/ApplicationForm/ApplicationFormUltraPremium.d.ts +14 -0
  8. package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  9. package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  10. package/bundle/components/ApplicationForm/RegionField.d.ts +6 -0
  11. package/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -3
  12. package/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +1 -5
  13. package/bundle/components/ApplicationForm/renderUserData.d.ts +1 -1
  14. package/bundle/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
  15. package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  16. package/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  17. package/bundle/hooks/usePremiumBranchesByRegions.d.ts +7 -0
  18. package/dist/components/ApplicationForm/AddressBranchField.d.ts +7 -0
  19. package/dist/components/ApplicationForm/AddressBranchField.js +16 -0
  20. package/dist/components/ApplicationForm/AddressBranchField.js.map +1 -0
  21. package/dist/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -3
  22. package/dist/components/ApplicationForm/ApplicationFieldsetLayout.js +1 -1
  23. package/dist/components/ApplicationForm/ApplicationFieldsetLayout.js.map +1 -1
  24. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -3
  25. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  26. package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +1 -1
  27. package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  28. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -4
  29. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  30. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -1
  31. package/dist/components/ApplicationForm/ApplicationFormCorruption.js +2 -4
  32. package/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  33. package/dist/components/ApplicationForm/ApplicationFormCredit.js +8 -4
  34. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  35. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  36. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  37. package/dist/components/ApplicationForm/ApplicationFormFeedback.js +3 -5
  38. package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  39. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +1 -1
  40. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  41. package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +2 -4
  42. package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
  43. package/dist/components/ApplicationForm/ApplicationFormUltraPremium.d.ts +14 -0
  44. package/dist/components/ApplicationForm/ApplicationFormUltraPremium.js +73 -0
  45. package/dist/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -0
  46. package/dist/components/ApplicationForm/ApplicationFormWed.js +2 -2
  47. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  48. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  49. package/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  50. package/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  51. package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  52. package/dist/components/ApplicationForm/RegionField.d.ts +6 -0
  53. package/dist/components/ApplicationForm/{renderRegion.js → RegionField.js} +7 -6
  54. package/dist/components/ApplicationForm/RegionField.js.map +1 -0
  55. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  56. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  57. package/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -3
  58. package/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -2
  59. package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  60. package/dist/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
  61. package/dist/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
  62. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  63. package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  64. package/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  65. package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  66. package/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
  67. package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  68. package/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  69. package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  70. package/dist/components/ApplicationForm/renderRegionDepartment.d.ts +1 -5
  71. package/dist/components/ApplicationForm/renderRegionDepartment.js +3 -8
  72. package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  73. package/dist/components/ApplicationForm/renderUserData.d.ts +1 -1
  74. package/dist/components/ApplicationForm/renderUserData.js +1 -1
  75. package/dist/components/ApplicationForm/renderUserData.js.map +1 -1
  76. package/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
  77. package/dist/components/SafeDepositRental/SafeDepositRental.js +2 -2
  78. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  79. package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  80. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  81. package/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  82. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  83. package/dist/components/StepsBlock/StepsBlock.js +1 -1
  84. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  85. package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
  86. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  87. package/dist/hooks/usePremiumBranchesByRegions.d.ts +7 -0
  88. package/dist/hooks/usePremiumBranchesByRegions.js +11 -0
  89. package/dist/hooks/usePremiumBranchesByRegions.js.map +1 -0
  90. package/dist/ui-kit/Select/Select.js +1 -1
  91. package/dist/ui-kit/Select/Select.js.map +1 -1
  92. package/lib/common.css +1 -1
  93. package/lib/components/ApplicationForm/AddressBranchField.d.ts +7 -0
  94. package/lib/components/ApplicationForm/AddressBranchField.js +14 -0
  95. package/lib/components/ApplicationForm/AddressBranchField.js.map +1 -0
  96. package/lib/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -3
  97. package/lib/components/ApplicationForm/ApplicationFieldsetLayout.js +1 -1
  98. package/lib/components/ApplicationForm/ApplicationFieldsetLayout.js.map +1 -1
  99. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  100. package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +4 -0
  101. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -3
  102. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  103. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +1 -1
  104. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  105. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -4
  106. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  107. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -1
  108. package/lib/components/ApplicationForm/ApplicationFormCorruption.js +2 -4
  109. package/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  110. package/lib/components/ApplicationForm/ApplicationFormCredit.js +8 -4
  111. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  112. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  113. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  114. package/lib/components/ApplicationForm/ApplicationFormFeedback.js +3 -5
  115. package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  116. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +1 -1
  117. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  118. package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +2 -4
  119. package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
  120. package/lib/components/ApplicationForm/ApplicationFormUltraPremium.d.ts +14 -0
  121. package/lib/components/ApplicationForm/ApplicationFormUltraPremium.js +71 -0
  122. package/lib/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -0
  123. package/lib/components/ApplicationForm/ApplicationFormWed.js +2 -2
  124. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  125. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  126. package/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  127. package/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  128. package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  129. package/lib/components/ApplicationForm/RegionField.d.ts +6 -0
  130. package/lib/components/ApplicationForm/{renderRegion.js → RegionField.js} +6 -4
  131. package/lib/components/ApplicationForm/RegionField.js.map +1 -0
  132. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  133. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  134. package/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -3
  135. package/lib/components/ApplicationForm/renderAcquiringRegion.js +3 -3
  136. package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  137. package/lib/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
  138. package/lib/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
  139. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  140. package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  141. package/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  142. package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  143. package/lib/components/ApplicationForm/renderCreditParameters.js +2 -2
  144. package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  145. package/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  146. package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  147. package/lib/components/ApplicationForm/renderRegionDepartment.d.ts +2 -5
  148. package/lib/components/ApplicationForm/renderRegionDepartment.js +4 -9
  149. package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  150. package/lib/components/ApplicationForm/renderUserData.js +1 -1
  151. package/lib/components/ApplicationForm/renderUserData.js.map +1 -1
  152. package/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
  153. package/lib/components/SafeDepositRental/SafeDepositRental.js +2 -2
  154. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  155. package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  156. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  157. package/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  158. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  159. package/lib/components/StepsBlock/StepsBlock.js +1 -1
  160. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  161. package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
  162. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  163. package/lib/hooks/usePremiumBranchesByRegions.d.ts +7 -0
  164. package/lib/hooks/usePremiumBranchesByRegions.js +8 -0
  165. package/lib/hooks/usePremiumBranchesByRegions.js.map +1 -0
  166. package/lib/ui-kit/Select/Select.js +1 -1
  167. package/lib/ui-kit/Select/Select.js.map +1 -1
  168. package/mobile/bundle/bundle.umd.js +120 -75
  169. package/mobile/bundle/bundle.umd.min.js +1 -1
  170. package/mobile/bundle/components/ApplicationForm/AddressBranchField.d.ts +7 -0
  171. package/mobile/bundle/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -3
  172. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -1
  173. package/mobile/bundle/components/ApplicationForm/ApplicationFormUltraPremium.d.ts +14 -0
  174. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  175. package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  176. package/mobile/bundle/components/ApplicationForm/RegionField.d.ts +6 -0
  177. package/mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -3
  178. package/mobile/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +1 -5
  179. package/mobile/bundle/components/ApplicationForm/renderUserData.d.ts +1 -1
  180. package/mobile/bundle/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
  181. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  182. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  183. package/mobile/bundle/hooks/usePremiumBranchesByRegions.d.ts +7 -0
  184. package/mobile/dist/components/ApplicationForm/AddressBranchField.d.ts +7 -0
  185. package/mobile/dist/components/ApplicationForm/AddressBranchField.js +16 -0
  186. package/mobile/dist/components/ApplicationForm/AddressBranchField.js.map +1 -0
  187. package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -3
  188. package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.js +1 -1
  189. package/mobile/dist/components/ApplicationForm/ApplicationFieldsetLayout.js.map +1 -1
  190. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -3
  191. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  192. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +1 -1
  193. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  194. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -4
  195. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  196. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -1
  197. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js +2 -4
  198. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  199. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +8 -4
  200. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  201. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  202. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  203. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +3 -5
  204. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  205. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +1 -1
  206. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  207. package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +2 -4
  208. package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
  209. package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.d.ts +14 -0
  210. package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.js +73 -0
  211. package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -0
  212. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +2 -2
  213. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  214. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  215. package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  216. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  217. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  218. package/mobile/dist/components/ApplicationForm/RegionField.d.ts +6 -0
  219. package/mobile/dist/components/ApplicationForm/{renderRegion.js → RegionField.js} +7 -6
  220. package/mobile/dist/components/ApplicationForm/RegionField.js.map +1 -0
  221. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  222. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  223. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -3
  224. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -2
  225. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  226. package/mobile/dist/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
  227. package/mobile/dist/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
  228. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  229. package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  230. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  231. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  232. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
  233. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  234. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  235. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  236. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +1 -5
  237. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +3 -8
  238. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  239. package/mobile/dist/components/ApplicationForm/renderUserData.d.ts +1 -1
  240. package/mobile/dist/components/ApplicationForm/renderUserData.js +1 -1
  241. package/mobile/dist/components/ApplicationForm/renderUserData.js.map +1 -1
  242. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
  243. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +2 -2
  244. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  245. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  246. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  247. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  248. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  249. package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
  250. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  251. package/mobile/dist/hooks/usePremiumBranchesByRegions.d.ts +7 -0
  252. package/mobile/dist/hooks/usePremiumBranchesByRegions.js +11 -0
  253. package/mobile/dist/hooks/usePremiumBranchesByRegions.js.map +1 -0
  254. package/mobile/dist/ui-kit/Select/Select.js +1 -1
  255. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  256. package/mobile/lib/common.css +1 -1
  257. package/mobile/lib/components/ApplicationForm/AddressBranchField.d.ts +7 -0
  258. package/mobile/lib/components/ApplicationForm/AddressBranchField.js +14 -0
  259. package/mobile/lib/components/ApplicationForm/AddressBranchField.js.map +1 -0
  260. package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.d.ts +0 -3
  261. package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.js +1 -1
  262. package/mobile/lib/components/ApplicationForm/ApplicationFieldsetLayout.js.map +1 -1
  263. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -3
  264. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  265. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +1 -1
  266. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  267. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +2 -4
  268. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  269. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -1
  270. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js +2 -4
  271. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  272. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +8 -4
  273. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  274. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
  275. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  276. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +3 -5
  277. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  278. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +1 -1
  279. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  280. package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +2 -4
  281. package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -1
  282. package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.d.ts +14 -0
  283. package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.js +71 -0
  284. package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -0
  285. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +2 -2
  286. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  287. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -1
  288. package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  289. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  290. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  291. package/mobile/lib/components/ApplicationForm/RegionField.d.ts +6 -0
  292. package/mobile/lib/components/ApplicationForm/{renderRegion.js → RegionField.js} +6 -4
  293. package/mobile/lib/components/ApplicationForm/RegionField.js.map +1 -0
  294. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  295. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  296. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -3
  297. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +3 -3
  298. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  299. package/mobile/lib/components/ApplicationForm/renderAgreementWithSubmit.js +1 -1
  300. package/mobile/lib/components/ApplicationForm/renderAgreementWithSubmit.js.map +1 -1
  301. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
  302. package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
  303. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
  304. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
  305. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +2 -2
  306. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  307. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  308. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  309. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +1 -5
  310. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +4 -9
  311. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  312. package/mobile/lib/components/ApplicationForm/renderUserData.d.ts +1 -1
  313. package/mobile/lib/components/ApplicationForm/renderUserData.js +1 -1
  314. package/mobile/lib/components/ApplicationForm/renderUserData.js.map +1 -1
  315. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
  316. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +2 -2
  317. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  318. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  319. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  320. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  321. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  322. package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
  323. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  324. package/mobile/lib/hooks/usePremiumBranchesByRegions.d.ts +7 -0
  325. package/mobile/lib/hooks/usePremiumBranchesByRegions.js +8 -0
  326. package/mobile/lib/hooks/usePremiumBranchesByRegions.js.map +1 -0
  327. package/mobile/lib/ui-kit/Select/Select.js +1 -1
  328. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  329. package/mobile/src/components/ApplicationForm/AddressBranchField.tsx +27 -0
  330. package/mobile/src/components/ApplicationForm/ApplicationFieldsetLayout.tsx +2 -6
  331. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -3
  332. package/mobile/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +16 -21
  333. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +2 -4
  334. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +19 -1
  335. package/mobile/src/components/ApplicationForm/ApplicationFormCorruption.tsx +21 -25
  336. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +20 -4
  337. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +8 -11
  338. package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +61 -67
  339. package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +19 -22
  340. package/mobile/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +13 -17
  341. package/mobile/src/components/ApplicationForm/ApplicationFormUltraPremium.tsx +151 -0
  342. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -2
  343. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -1
  344. package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  345. package/mobile/src/components/ApplicationForm/RegionField.tsx +25 -0
  346. package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +13 -18
  347. package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +15 -18
  348. package/mobile/src/components/ApplicationForm/renderAgreementWithSubmit.tsx +1 -1
  349. package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +10 -17
  350. package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +19 -26
  351. package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +20 -25
  352. package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +32 -34
  353. package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +11 -31
  354. package/mobile/src/components/ApplicationForm/renderUserData.tsx +1 -1
  355. package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +1 -1
  356. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
  357. package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +1 -1
  358. package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
  359. package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -7
  360. package/mobile/src/hooks/usePremiumBranchesByRegions.ts +17 -0
  361. package/mobile/src/ui-kit/Select/Select.tsx +1 -1
  362. package/package.json +1 -1
  363. package/src/components/ApplicationForm/AddressBranchField.tsx +27 -0
  364. package/src/components/ApplicationForm/ApplicationFieldsetLayout.tsx +2 -6
  365. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +56 -0
  366. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +15 -0
  367. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +1 -3
  368. package/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +16 -21
  369. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +2 -4
  370. package/src/components/ApplicationForm/ApplicationFormContent.ts +19 -1
  371. package/src/components/ApplicationForm/ApplicationFormCorruption.tsx +21 -25
  372. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +20 -4
  373. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +8 -11
  374. package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +61 -67
  375. package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +19 -22
  376. package/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +13 -17
  377. package/src/components/ApplicationForm/ApplicationFormUltraPremium.tsx +151 -0
  378. package/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -2
  379. package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -1
  380. package/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  381. package/src/components/ApplicationForm/RegionField.tsx +25 -0
  382. package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +13 -18
  383. package/src/components/ApplicationForm/renderAcquiringRegion.tsx +15 -18
  384. package/src/components/ApplicationForm/renderAgreementWithSubmit.tsx +1 -1
  385. package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +10 -17
  386. package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +19 -26
  387. package/src/components/ApplicationForm/renderCreditParameters.tsx +20 -25
  388. package/src/components/ApplicationForm/renderQuestionsInterested.tsx +32 -34
  389. package/src/components/ApplicationForm/renderRegionDepartment.tsx +11 -31
  390. package/src/components/ApplicationForm/renderUserData.tsx +1 -1
  391. package/src/components/SafeDepositRental/RegionsAndBranches.tsx +1 -1
  392. package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
  393. package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +1 -1
  394. package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
  395. package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -7
  396. package/src/components/StepsBlock/StepsBlock.tsx +1 -1
  397. package/src/hooks/usePremiumBranchesByRegions.ts +17 -0
  398. package/src/ui-kit/Select/Select.tsx +1 -1
  399. package/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +0 -4
  400. package/bundle/components/ApplicationForm/renderRegion.d.ts +0 -10
  401. package/dist/components/ApplicationForm/renderIndividualsFields.d.ts +0 -4
  402. package/dist/components/ApplicationForm/renderIndividualsFields.js +0 -12
  403. package/dist/components/ApplicationForm/renderIndividualsFields.js.map +0 -1
  404. package/dist/components/ApplicationForm/renderRegion.d.ts +0 -10
  405. package/dist/components/ApplicationForm/renderRegion.js.map +0 -1
  406. package/lib/components/ApplicationForm/renderIndividualsFields.d.ts +0 -4
  407. package/lib/components/ApplicationForm/renderIndividualsFields.js +0 -9
  408. package/lib/components/ApplicationForm/renderIndividualsFields.js.map +0 -1
  409. package/lib/components/ApplicationForm/renderRegion.d.ts +0 -9
  410. package/lib/components/ApplicationForm/renderRegion.js.map +0 -1
  411. package/mobile/bundle/components/ApplicationForm/renderIndividualsFields.d.ts +0 -4
  412. package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +0 -10
  413. package/mobile/dist/components/ApplicationForm/renderIndividualsFields.d.ts +0 -4
  414. package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js +0 -12
  415. package/mobile/dist/components/ApplicationForm/renderIndividualsFields.js.map +0 -1
  416. package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +0 -10
  417. package/mobile/dist/components/ApplicationForm/renderRegion.js.map +0 -1
  418. package/mobile/lib/components/ApplicationForm/renderIndividualsFields.d.ts +0 -4
  419. package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js +0 -9
  420. package/mobile/lib/components/ApplicationForm/renderIndividualsFields.js.map +0 -1
  421. package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +0 -10
  422. package/mobile/lib/components/ApplicationForm/renderRegion.js.map +0 -1
  423. package/mobile/src/components/ApplicationForm/renderIndividualsFields.tsx +0 -33
  424. package/mobile/src/components/ApplicationForm/renderRegion.tsx +0 -36
  425. package/src/components/ApplicationForm/renderIndividualsFields.tsx +0 -33
  426. package/src/components/ApplicationForm/renderRegion.tsx +0 -36
@@ -6,7 +6,6 @@ import { useBranches } from '../../hooks/useBranches';
6
6
  import { useForm } from '../../hooks/useForm';
7
7
  import { type Option } from '../../ui-kit/Select/Option';
8
8
  import { withValidator } from '../../validation/withValidator';
9
- import { useGetRegions } from '../SafeDepositRental/useGetRegions';
10
9
  import { ApplicationFieldsetLayout } from './ApplicationFieldsetLayout';
11
10
  import { type ApplicationFormsProps } from './ApplicationFormsProps';
12
11
  import { FEEDBACK_METHOD, FEEDBACK_TYPES, SERVICE_DIRECTIONS } from './feedbackTypes';
@@ -14,8 +13,8 @@ import { formStyle, oneColumnFormStyle } from './formStyle';
14
13
  import { handleSubmitIndividual, handleSubmitLegal, handleSubmitQuestion } from './handleSubmit';
15
14
  import { InputControl } from './InputControl';
16
15
  import { PhoneInputControl } from './PhoneInputControl';
16
+ import { RegionField } from './RegionField';
17
17
  import { renderAgreementWithSubmit } from './renderAgreementWithSubmit';
18
- import { renderRegion } from './renderRegion';
19
18
  import { initialUserFormState, renderUserData, type UserDataState } from './renderUserData';
20
19
  import { SelectControl } from './SelectControl';
21
20
  import { defaultValidator, innValidator, phoneValidator } from './validators';
@@ -69,89 +68,84 @@ export const ApplicationFormFeedback = JSX<ApplicationFormsProps>(({ button, lin
69
68
  );
70
69
 
71
70
  const [formState, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
72
- const regions = useGetRegions();
73
- const addressByBranch = useBranches(formState?.region?.key).filter((branch) => branch?.address);
71
+
74
72
  const isQualityService = field('typeForm').value?.key === 'FEEDBACK_QS';
75
73
  const isLegalEntity = getLegalEntity(
76
74
  field('typeForm').value?.key,
77
75
  field('serviceDirection').value?.key,
78
76
  );
77
+ const addressByBranch = useBranches(formState?.region?.key).filter((branch) => branch?.address);
79
78
 
80
79
  return (
81
80
  <form className={formStyle} onSubmit={formProps.onSubmit}>
82
- <ApplicationFieldsetLayout
83
- firstChildren={
84
- <div className={oneColumnFormStyle}>
81
+ <ApplicationFieldsetLayout>
82
+ <div className={oneColumnFormStyle}>
83
+ <SelectControl
84
+ label="Тема*"
85
+ placeholder="Выберите тему"
86
+ options={FEEDBACK_TYPES}
87
+ {...withValidator(field('typeForm'), defaultValidator)}
88
+ />
89
+ {isQualityService ? (
85
90
  <SelectControl
86
- label="Тема*"
87
- placeholder="Выберите тему"
88
- options={FEEDBACK_TYPES}
89
- {...withValidator(field('typeForm'), defaultValidator)}
91
+ label="Направление обслуживания*"
92
+ placeholder="Выберите направление"
93
+ options={SERVICE_DIRECTIONS}
94
+ {...withValidator(field('serviceDirection'), defaultValidator)}
90
95
  />
91
- {isQualityService ? (
92
- <SelectControl
93
- label="Направление обслуживания*"
94
- placeholder="Выберите направление"
95
- options={SERVICE_DIRECTIONS}
96
- {...withValidator(field('serviceDirection'), defaultValidator)}
97
- />
98
- ) : null}
99
- {renderRegion(regions, field)}
100
- {isQualityService ? (
101
- <SelectControl
102
- label="Адрес*"
103
- placeholder="Выберите адрес"
104
- options={addressByBranch.map(({ branchCode = '', address = '' }) => ({
105
- key: branchCode,
106
- text: address,
107
- }))}
108
- {...withValidator(field('addressBranch'), defaultValidator)}
109
- />
110
- ) : null}
111
- {renderUserData<FeedbackFormState>(field, true)}
112
- {isLegalEntity ? (
113
- <div>
114
- <InputControl label="ИНН*" {...withValidator(field('inn'), innValidator)} />
115
- <InputControl label="Наименование организации" {...field('fullName')} />
116
- </div>
117
- ) : null}
96
+ ) : null}
97
+ <RegionField field={field} />
98
+ {isQualityService ? (
118
99
  <SelectControl
119
- label="Способ получения ответа*"
120
- options={FEEDBACK_METHOD}
121
- {...withValidator(field('feedbackMethod'), defaultValidator)}
122
- />
123
- <PhoneInputControl
124
- label="Телефон*"
125
- {...withValidator(field('phone'), phoneValidator)}
100
+ label="Адрес*"
101
+ placeholder="Выберите адрес"
102
+ options={addressByBranch.map(({ branchCode = '', address = '' }) => ({
103
+ key: branchCode,
104
+ text: address,
105
+ }))}
106
+ {...withValidator(field('addressBranch'), defaultValidator)}
126
107
  />
127
- {isQualityService ? (
128
- <div>
129
- <PhoneInputControl label="Дополнительный телефон" {...field('secondaryPhone')} />
130
- <InputControl
131
- label="Электронная почта*"
132
- {...withValidator(field('email'), defaultValidator)}
133
- />
134
- <InputControl
135
- label="ФИО или должность обслуживавшего Вас сотрудника Банка"
136
- {...field('bankEmpolee')}
137
- />
138
- <InputControl label="Дата и время обращения в Банк" {...field('applicationDate')} />
139
- </div>
140
- ) : (
108
+ ) : null}
109
+ {renderUserData<FeedbackFormState>(field, true)}
110
+ {isLegalEntity ? (
111
+ <div>
112
+ <InputControl label="ИНН*" {...withValidator(field('inn'), innValidator)} />
113
+ <InputControl label="Наименование организации" {...field('fullName')} />
114
+ </div>
115
+ ) : null}
116
+ <SelectControl
117
+ label="Способ получения ответа*"
118
+ options={FEEDBACK_METHOD}
119
+ {...withValidator(field('feedbackMethod'), defaultValidator)}
120
+ />
121
+ <PhoneInputControl label="Телефон*" {...withValidator(field('phone'), phoneValidator)} />
122
+ {isQualityService ? (
123
+ <div>
124
+ <PhoneInputControl label="Дополнительный телефон" {...field('secondaryPhone')} />
141
125
  <InputControl
142
126
  label="Электронная почта*"
143
127
  {...withValidator(field('email'), defaultValidator)}
144
128
  />
145
- )}
129
+ <InputControl
130
+ label="ФИО или должность обслуживавшего Вас сотрудника Банка"
131
+ {...field('bankEmpolee')}
132
+ />
133
+ <InputControl label="Дата и время обращения в Банк" {...field('applicationDate')} />
134
+ </div>
135
+ ) : (
146
136
  <InputControl
147
- {...withValidator(field('comment'), defaultValidator)}
148
- placeholder="Ваше сообщение*"
149
- isTextarea={true}
137
+ label="Электронная почта*"
138
+ {...withValidator(field('email'), defaultValidator)}
150
139
  />
151
- {renderAgreementWithSubmit(field('consentDataProcessing'), link, button)}
152
- </div>
153
- }
154
- />
140
+ )}
141
+ <InputControl
142
+ {...withValidator(field('comment'), defaultValidator)}
143
+ placeholder="Ваше сообщение*"
144
+ isTextarea={true}
145
+ />
146
+ {renderAgreementWithSubmit(field('consentDataProcessing'), link, button)}
147
+ </div>
148
+ </ApplicationFieldsetLayout>
155
149
  </form>
156
150
  );
157
151
  });
@@ -68,28 +68,25 @@ export const ApplicationFormIndividuals = JSX<ApplicationFormsProps>((props) =>
68
68
 
69
69
  return (
70
70
  <form className={formStyle} onSubmit={formProps.onSubmit}>
71
- <ApplicationFieldsetLayout
72
- firstChildren={
73
- <div className={formChildrenStyle}>
74
- <InputControl label="Фамилия" {...withValidator(field('surname'), nameValidator)} />
75
- <InputControl label="Отчество" {...withValidator(field('middleName'), nameValidator)} />
76
- <PhoneInputControl label="Телефон" {...withValidator(field('phone'), phoneValidator)} />
77
- </div>
78
- }
79
- secondChildren={
80
- <div className={formChildrenStyle}>
81
- <InputControl label="Имя" {...withValidator(field('name'), nameValidator)} />
82
- <DatePickerControl
83
- label="Дата рождения*"
84
- {...withValidator(field('birthday'), defaultValidator)}
85
- />
86
- <InputControl
87
- label="Электронная почта"
88
- {...withValidator(field('email'), defaultValidator)}
89
- />
90
- </div>
91
- }
92
- />
71
+ <ApplicationFieldsetLayout>
72
+ <div className={formChildrenStyle}>
73
+ <InputControl label="Фамилия" {...withValidator(field('surname'), nameValidator)} />
74
+ <InputControl label="Отчество (Обязательно, при наличии)" {...field('middleName')} />
75
+ <PhoneInputControl label="Телефон" {...withValidator(field('phone'), phoneValidator)} />
76
+ </div>
77
+
78
+ <div className={formChildrenStyle}>
79
+ <InputControl label="Имя" {...withValidator(field('name'), nameValidator)} />
80
+ <DatePickerControl
81
+ label="Дата рождения*"
82
+ {...withValidator(field('birthday'), defaultValidator)}
83
+ />
84
+ <InputControl
85
+ label="Электронная почта"
86
+ {...withValidator(field('email'), defaultValidator)}
87
+ />
88
+ </div>
89
+ </ApplicationFieldsetLayout>
93
90
  {renderAgreementWithSubmit(field('consentDataProcessing'), link, button)}
94
91
  </form>
95
92
  );
@@ -6,14 +6,13 @@ import { formatPhone } from '../../utils/formatPhone';
6
6
  import { objectValidator } from '../../validation/objectValidator';
7
7
  import { isValidationSuccess } from '../../validation/validator';
8
8
  import { withValidator } from '../../validation/withValidator';
9
- import { useGetRegions } from '../SafeDepositRental/useGetRegions';
10
9
  import { ApplicationFieldsetLayout } from './ApplicationFieldsetLayout';
11
10
  import { type ApplicationFormsProps } from './ApplicationFormsProps';
12
11
  import { Footnote } from './Footnote';
13
12
  import { formStyle, oneColumnFormStyle } from './formStyle';
14
13
  import { InputControl } from './InputControl';
15
14
  import { PhoneInputControl } from './PhoneInputControl';
16
- import { renderRegion } from './renderRegion';
15
+ import { RegionField } from './RegionField';
17
16
  import { renderSubmitButton } from './renderSubmitButton';
18
17
  import { initialUserFormState, type UserDataState } from './renderUserData';
19
18
  import { defaultValidator, phoneValidator } from './validators';
@@ -57,24 +56,21 @@ export const ApplicationFormSelfCollection = JSX<ApplicationFormsProps>(
57
56
  );
58
57
 
59
58
  const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
60
- const regions = useGetRegions();
61
59
 
62
60
  return (
63
61
  <form className={formStyle} onSubmit={formProps.onSubmit}>
64
- <ApplicationFieldsetLayout
65
- firstChildren={
66
- <div className={oneColumnFormStyle}>
67
- <InputControl label="ФИО*" {...withValidator(field('fullName'), defaultValidator)} />
68
- {renderRegion(regions, field)}
69
- <PhoneInputControl
70
- label="Телефон*"
71
- {...withValidator(field('phone'), phoneValidator)}
72
- />
73
- {renderSubmitButton(button)}
74
- <Footnote link={link} />
75
- </div>
76
- }
77
- />
62
+ <ApplicationFieldsetLayout>
63
+ <div className={oneColumnFormStyle}>
64
+ <InputControl label="ФИО*" {...withValidator(field('fullName'), defaultValidator)} />
65
+ <RegionField field={field} />
66
+ <PhoneInputControl
67
+ label="Телефон*"
68
+ {...withValidator(field('phone'), phoneValidator)}
69
+ />
70
+ {renderSubmitButton(button)}
71
+ <Footnote link={link} />
72
+ </div>
73
+ </ApplicationFieldsetLayout>
78
74
  </form>
79
75
  );
80
76
  },
@@ -0,0 +1,151 @@
1
+ /* eslint-disable max-lines-per-function,max-lines */
2
+
3
+ import { JSX } from '@redneckz/uni-jsx';
4
+ import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
5
+ import { useForm } from '../../hooks/useForm';
6
+ import { usePremiumBranchesByRegions } from '../../hooks/usePremiumBranchesByRegions';
7
+ import { type Option } from '../../ui-kit/Select/Option';
8
+ import { formatPhone } from '../../utils/formatPhone';
9
+ import { objectValidator } from '../../validation/objectValidator';
10
+ import { isValidationSuccess } from '../../validation/validator';
11
+ import { withValidator } from '../../validation/withValidator';
12
+ import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout';
13
+ import { type ApplicationFormsProps } from './ApplicationFormsProps';
14
+ import { formStyle } from './formStyle';
15
+ import { InputControl } from './InputControl';
16
+ import { PhoneInputControl } from './PhoneInputControl';
17
+ import { renderAgreementWithSubmit } from './renderAgreementWithSubmit';
18
+ import { initialUserFormState, type UserDataState } from './renderUserData';
19
+ import { SelectControl } from './SelectControl';
20
+ import { checkboxValidator, defaultValidator, nameValidator, phoneValidator } from './validators';
21
+
22
+ export const SERVICE_TYPES: Option[] = [
23
+ { key: 'ULTRASERVICE', text: 'Ультра' },
24
+ { key: 'PREMIUMSERVICE', text: 'Премиум' },
25
+ ];
26
+
27
+ export type UltraPremiumFormState = UserDataState & {
28
+ typeForm: Option;
29
+ phone: string;
30
+ email: string;
31
+ addressBranch?: Option;
32
+ region?: Option;
33
+ comment: string;
34
+ consentDataProcessing: boolean;
35
+ };
36
+
37
+ const initialFormState: UltraPremiumFormState = {
38
+ typeForm: SERVICE_TYPES[0],
39
+ ...initialUserFormState,
40
+ email: '',
41
+ phone: '',
42
+ comment: '',
43
+ consentDataProcessing: false,
44
+ };
45
+
46
+ const creditValidator = objectValidator({
47
+ typeForm: defaultValidator,
48
+ surname: defaultValidator,
49
+ name: nameValidator,
50
+ phone: phoneValidator,
51
+ email: defaultValidator,
52
+ addressBranch: defaultValidator,
53
+ consentDataProcessing: checkboxValidator,
54
+ });
55
+
56
+ export const ApplicationFormUltraPremium = JSX<ApplicationFormsProps>(
57
+ ({ button, link, onSubmit, defaultType = 'PREMIUMSERVICE' }) => {
58
+ const handleSubmit = useCallback(
59
+ (formState: UltraPremiumFormState) => {
60
+ const { surname, name, middleName, email, comment, consentDataProcessing } = formState;
61
+
62
+ const submitData = {
63
+ typeForm: formState.typeForm.key,
64
+ surname,
65
+ name,
66
+ middleName,
67
+ phoneNumber: formatPhone(formState.phone),
68
+ email,
69
+ addressBranch: formState.addressBranch?.key,
70
+ comment,
71
+ consentDataProcessing,
72
+ };
73
+ console.log(submitData);
74
+
75
+ isValidationSuccess(creditValidator(formState)) && onSubmit(submitData, true);
76
+ },
77
+ [onSubmit],
78
+ );
79
+
80
+ const [formState, { field, ...formProps }] = useForm(
81
+ { ...initialFormState, typeForm: getDefaultFormType(defaultType) as Option },
82
+ handleSubmit,
83
+ );
84
+ const branchByRegions = usePremiumBranchesByRegions();
85
+ const regions = branchByRegions.map(({ region }) => ({
86
+ key: region,
87
+ text: region,
88
+ }));
89
+ const regionKey = formState?.region?.key;
90
+ const addressBranches = branchByRegions.find((_) => _?.region === regionKey)?.branches;
91
+
92
+ return (
93
+ <form className={formStyle} onSubmit={formProps.onSubmit}>
94
+ <ApplicationFieldsetLayout title="Ваши данные">
95
+ <div className={formChildrenStyle}>
96
+ <InputControl label="Фамилия*" {...withValidator(field('surname'), nameValidator)} />
97
+ <InputControl label="Отчество (Обязательно, при наличии)" {...field('middleName')} />
98
+ <InputControl
99
+ label="Электронная почта*"
100
+ {...withValidator(field('email'), defaultValidator)}
101
+ />
102
+ </div>
103
+
104
+ <div className={formChildrenStyle}>
105
+ <InputControl label="Имя*" {...withValidator(field('name'), nameValidator)} />
106
+ <PhoneInputControl
107
+ label="Телефон*"
108
+ {...withValidator(field('phone'), phoneValidator)}
109
+ />
110
+ <SelectControl
111
+ label="Тип обслуживания*"
112
+ options={SERVICE_TYPES}
113
+ {...withValidator(field('typeForm'), defaultValidator)}
114
+ />
115
+ </div>
116
+ </ApplicationFieldsetLayout>
117
+ <ApplicationFieldsetLayout title="Офис банка">
118
+ <div className={formChildrenStyle}>
119
+ <SelectControl
120
+ label="Регион*"
121
+ placeholder="Выберите регион"
122
+ options={regions as Option[]}
123
+ {...withValidator(field('region'), defaultValidator)}
124
+ />
125
+ </div>
126
+ <div className={formChildrenStyle}>
127
+ <SelectControl
128
+ className="w-full"
129
+ label="Адрес*"
130
+ placeholder="Выберите отделение"
131
+ options={(addressBranches || []).map(({ address = '' }) => ({
132
+ key: address,
133
+ text: address,
134
+ }))}
135
+ {...withValidator(field('addressBranch'), defaultValidator)}
136
+ />
137
+ </div>
138
+ </ApplicationFieldsetLayout>
139
+ <InputControl
140
+ {...field('comment')}
141
+ placeholder="Комментарий, удобное время и прочее"
142
+ isTextarea={true}
143
+ />
144
+ {renderAgreementWithSubmit(field('consentDataProcessing'), link, button)}
145
+ </form>
146
+ );
147
+ },
148
+ );
149
+
150
+ const getDefaultFormType = (defaultType: string) =>
151
+ SERVICE_TYPES.find((_) => _.key === defaultType);
@@ -1,12 +1,12 @@
1
1
  import { JSX } from '@redneckz/uni-jsx';
2
2
  import { useCallback } from '@redneckz/uni-jsx/lib/hooks';
3
3
  import { useForm } from '../../hooks/useForm';
4
+ import { useRegions } from '../../hooks/useRegions';
4
5
  import { Heading } from '../../ui-kit/Heading/Heading';
5
6
  import { type Option } from '../../ui-kit/Select/Option';
6
7
  import { formatPhone } from '../../utils/formatPhone';
7
8
  import { objectValidator } from '../../validation/objectValidator';
8
9
  import { isValidationSuccess } from '../../validation/validator';
9
- import { useGetRegions } from '../SafeDepositRental/useGetRegions';
10
10
  import { type ApplicationFormsProps } from './ApplicationFormsProps';
11
11
  import { Footnote } from './Footnote';
12
12
  import { renderContacts } from './renderContacts';
@@ -89,7 +89,7 @@ export const ApplicationFormWed = JSX<ApplicationFormsProps>((props) => {
89
89
  );
90
90
 
91
91
  const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
92
- const regions = useGetRegions();
92
+ const regions = useRegions();
93
93
  const textField = field('text');
94
94
 
95
95
  return (
@@ -1,5 +1,5 @@
1
1
  import { type LinkProps } from '../../model/LinkProps';
2
- import { type SubmitButtonProps } from './ApplicationFormContent';
2
+ import { type SubmitButtonProps, type UltraPremiumTypeProps } from './ApplicationFormContent';
3
3
 
4
4
  export interface ApplicationFormsProps<S extends Record<string, any> = Record<string, any>> {
5
5
  button?: SubmitButtonProps;
@@ -7,4 +7,5 @@ export interface ApplicationFormsProps<S extends Record<string, any> = Record<st
7
7
  sourceBookDir?: string;
8
8
  product?: string;
9
9
  onSubmit: (data: S, isIndividualType?: boolean) => void;
10
+ defaultType?: UltraPremiumTypeProps;
10
11
  }
@@ -8,6 +8,7 @@ import { ApplicationFormFeedback } from './ApplicationFormFeedback';
8
8
  import { ApplicationFormGrantSupport } from './ApplicationFormGrantSupport';
9
9
  import { ApplicationFormIndividuals } from './ApplicationFormIndividuals';
10
10
  import { ApplicationFormSelfCollection } from './ApplicationFormSelfCollection';
11
+ import { ApplicationFormUltraPremium } from './ApplicationFormUltraPremium';
11
12
  import { ApplicationFormWed } from './ApplicationFormWed';
12
13
 
13
14
  export const EmbeddableForms = {
@@ -22,4 +23,5 @@ export const EmbeddableForms = {
22
23
  ApplicationFormAntiFraud,
23
24
  ApplicationFormCorruption,
24
25
  ApplicationFormSelfCollection,
26
+ ApplicationFormUltraPremium,
25
27
  };
@@ -0,0 +1,25 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { type FormFieldRegisterer } from '../../hooks/useForm';
3
+ import { useRegions } from '../../hooks/useRegions';
4
+ import { withValidator } from '../../validation/withValidator';
5
+ import { SelectControl } from './SelectControl';
6
+ import { defaultValidator } from './validators';
7
+
8
+ interface RegionFieldProps {
9
+ field: FormFieldRegisterer<any>;
10
+ }
11
+
12
+ export const RegionField = JSX<RegionFieldProps>(({ field }) => {
13
+ const regions = useRegions();
14
+
15
+ return (
16
+ <SelectControl
17
+ className="w-full"
18
+ label="Филиал"
19
+ placeholder="Выберите филиал"
20
+ isSearch={true}
21
+ options={regions.map(({ code = '', name = '' }) => ({ key: code, text: name }))}
22
+ {...withValidator(field('region'), defaultValidator)}
23
+ />
24
+ );
25
+ });
@@ -10,22 +10,17 @@ export const renderAcquiringDataOrganization = (
10
10
  field: FormFieldRegisterer<AcquiringFormState>,
11
11
  title?: string,
12
12
  ) => (
13
- <ApplicationFieldsetLayout
14
- title={title}
15
- firstChildren={
16
- <div className={formChildrenStyle}>
17
- <InputControl
18
- label="Наименование организации*"
19
- {...withValidator(field('fullName'), defaultValidator)}
20
- />
21
- <InputControl label="Контактное лицо*" {...withValidator(field('name'), nameValidator)} />
22
- </div>
23
- }
24
- secondChildren={
25
- <div className={formChildrenStyle}>
26
- <InputControl label="ИНН*" {...withValidator(field('inn'), innValidator)} />
27
- <PhoneInputControl label="Телефон*" {...withValidator(field('phone'), phoneValidator)} />
28
- </div>
29
- }
30
- />
13
+ <ApplicationFieldsetLayout title={title}>
14
+ <div className={formChildrenStyle}>
15
+ <InputControl
16
+ label="Наименование организации*"
17
+ {...withValidator(field('fullName'), defaultValidator)}
18
+ />
19
+ <InputControl label="Контактное лицо*" {...withValidator(field('name'), nameValidator)} />
20
+ </div>
21
+ <div className={formChildrenStyle}>
22
+ <InputControl label="ИНН*" {...withValidator(field('inn'), innValidator)} />
23
+ <PhoneInputControl label="Телефон*" {...withValidator(field('phone'), phoneValidator)} />
24
+ </div>
25
+ </ApplicationFieldsetLayout>
31
26
  );
@@ -3,30 +3,27 @@ import { withValidator } from '../../validation/withValidator';
3
3
  import { ACQUIRING_TYPES } from './acquiringTypes';
4
4
  import { ApplicationFieldsetLayout, formChildrenStyle } from './ApplicationFieldsetLayout';
5
5
  import { type AcquiringFormState } from './ApplicationFormAcquiring';
6
- import { type Select } from './models';
7
- import { renderRegion } from './renderRegion';
6
+ import { RegionField } from './RegionField';
8
7
  import { SelectControl } from './SelectControl';
9
8
  import { defaultValidator } from './validators';
10
9
 
11
10
  interface AcquiringRegionProps {
12
- regions: Select[];
13
11
  field: FormFieldRegisterer<AcquiringFormState>;
14
12
  title?: string;
15
13
  }
16
14
 
17
- export const renderAcquiringRegion = ({ field, title, regions }: AcquiringRegionProps) => (
18
- <ApplicationFieldsetLayout
19
- title={title}
20
- firstChildren={
21
- <div className={formChildrenStyle}>
22
- <SelectControl
23
- label="Вид эквайринга"
24
- placeholder="Выберите эквайринг"
25
- options={ACQUIRING_TYPES}
26
- {...withValidator(field('acquiringType'), defaultValidator)}
27
- />
28
- </div>
29
- }
30
- secondChildren={<div className={formChildrenStyle}>{renderRegion(regions, field)}</div>}
31
- />
15
+ export const renderAcquiringRegion = ({ field, title }: AcquiringRegionProps) => (
16
+ <ApplicationFieldsetLayout title={title}>
17
+ <div className={formChildrenStyle}>
18
+ <SelectControl
19
+ label="Вид эквайринга"
20
+ placeholder="Выберите эквайринг"
21
+ options={ACQUIRING_TYPES}
22
+ {...withValidator(field('acquiringType'), defaultValidator)}
23
+ />
24
+ </div>
25
+ <div className={formChildrenStyle}>
26
+ <RegionField field={field} />
27
+ </div>
28
+ </ApplicationFieldsetLayout>
32
29
  );
@@ -13,7 +13,7 @@ export const renderAgreementWithSubmit = (
13
13
  link?: LinkProps,
14
14
  button?: SubmitButtonProps,
15
15
  ) => (
16
- <div className="flex flex-col lg:flex-row w-full justify-between items-baseline">
16
+ <div className="flex gap-m flex-col lg:flex-row w-full justify-between items-baseline">
17
17
  <div>
18
18
  <div className="flex gap-3">
19
19
  <Checkbox {...consentDataProcessing} />
@@ -9,21 +9,14 @@ import { defaultValidator, innValidator, nameValidator, phoneValidator } from '.
9
9
  export const renderBusinessCardDataOrganization = (
10
10
  field: FormFieldRegisterer<BusinessCardFormState>,
11
11
  ) => (
12
- <ApplicationFieldsetLayout
13
- firstChildren={
14
- <div className={formChildrenStyle}>
15
- <InputControl label="Контактное лицо" {...withValidator(field('name'), nameValidator)} />
16
- <InputControl label="ИНН" {...withValidator(field('inn'), innValidator)} />
17
- </div>
18
- }
19
- secondChildren={
20
- <div className={formChildrenStyle}>
21
- <PhoneInputControl label="Телефон" {...withValidator(field('phone'), phoneValidator)} />
22
- <InputControl
23
- label="Электронная почта"
24
- {...withValidator(field('mail'), defaultValidator)}
25
- />
26
- </div>
27
- }
28
- />
12
+ <ApplicationFieldsetLayout>
13
+ <div className={formChildrenStyle}>
14
+ <InputControl label="Контактное лицо" {...withValidator(field('name'), nameValidator)} />
15
+ <InputControl label="ИНН" {...withValidator(field('inn'), innValidator)} />
16
+ </div>
17
+ <div className={formChildrenStyle}>
18
+ <PhoneInputControl label="Телефон" {...withValidator(field('phone'), phoneValidator)} />
19
+ <InputControl label="Электронная почта" {...withValidator(field('mail'), defaultValidator)} />
20
+ </div>
21
+ </ApplicationFieldsetLayout>
29
22
  );