@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
@@ -906,14 +906,14 @@
906
906
  return response.json();
907
907
  };
908
908
 
909
- const EMPTY_VALUE$5 = {};
909
+ const EMPTY_VALUE$4 = {};
910
910
  const DEFAULT_PATH_DIR = '/wcms-resources';
911
911
  function useSWRResource(filename, options = {}) {
912
- const { fallback = EMPTY_VALUE$5, pathDir = DEFAULT_PATH_DIR } = options;
912
+ const { fallback = EMPTY_VALUE$4, pathDir = DEFAULT_PATH_DIR } = options;
913
913
  const { data } = useAsyncData(filename ? `${pathDir}/${filename}.json` : null, fetchJSONUnsafe, {
914
914
  fallback,
915
915
  });
916
- return data || EMPTY_VALUE$5;
916
+ return data || EMPTY_VALUE$4;
917
917
  }
918
918
 
919
919
  const useAdTile = (sourceBook = 'reklamnaya-plitka') => {
@@ -1010,13 +1010,6 @@
1010
1010
  const isValidationSuccess = (info) => !info?.length;
1011
1011
  const validator = (predicate) => (message) => (_) => predicate(_) ? [] : [message];
1012
1012
 
1013
- const REGIONS_URL$1 = '/api/v1/regions';
1014
- const EMPTY_VALUE$4 = [];
1015
- function useGetRegions() {
1016
- const { data } = useAsyncData(REGIONS_URL$1, fetchJSONUnsafe);
1017
- return data || EMPTY_VALUE$4;
1018
- }
1019
-
1020
1013
  const Footnote = JSX(({ text, link }) => (jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text", children: [jsx(Text, { children: text || 'Нажимая кнопку, вы подтверждаете согласие с ' }), link ? (jsx(LinkButton, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target || '', className: "text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
1021
1014
 
1022
1015
  const formStyle$1 = 'container space-y-lg';
@@ -1032,7 +1025,7 @@
1032
1025
  };
1033
1026
  };
1034
1027
 
1035
- const ApplicationFieldsetLayout = JSX(({ title, firstChildren, secondChildren }) => (jsxs("fieldset", { className: "grid @xl:flex @xl:justify-between gap-lg border-b border-b-main-divider @xl:border-none", children: [title ? (jsx("legend", { className: "w-full", children: jsx(Heading, { title: title, headingType: "h6", className: "@xl:text-center" }) })) : null, firstChildren, secondChildren] })));
1028
+ const ApplicationFieldsetLayout = JSX(({ title, children }) => (jsxs("fieldset", { className: "grid @xl:flex @xl:justify-between gap-lg border-b border-b-main-divider @xl:border-none", children: [title ? (jsx("legend", { className: "w-full", children: jsx(Heading, { title: title, headingType: "h6", className: "@xl:text-center" }) })) : null, children] })));
1036
1029
  const formChildrenStyle = '@xl:w-1/2 space-y-s';
1037
1030
 
1038
1031
  const Input = JSX(({ key, className = '', id, name, type = 'text', label, placeholder, value = '', valid = true, children, onChange, onFocus, onBlur, pattern, autoFocus = false, isTextarea = false, }) => {
@@ -1091,7 +1084,7 @@
1091
1084
  const phoneValidator = pattern(/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/)(ERROR_MESSAGE);
1092
1085
  const checkboxValidator = validator((_) => typeof _ === 'boolean' && _)(ERROR_MESSAGE);
1093
1086
 
1094
- const renderAcquiringDataOrganization = (field, title) => (jsx(ApplicationFieldsetLayout, { title: title, firstChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438*", ...withValidator(field('fullName'), defaultValidator) }), jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E*", ...withValidator(field('name'), nameValidator) })] }), secondChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u041D\u041D*", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) })] }) }));
1087
+ const renderAcquiringDataOrganization = (field, title) => (jsxs(ApplicationFieldsetLayout, { title: title, children: [jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438*", ...withValidator(field('fullName'), defaultValidator) }), jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E*", ...withValidator(field('name'), nameValidator) })] }), jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u041D\u041D*", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) })] })] }));
1095
1088
 
1096
1089
  const ACQUIRING_TYPES = [
1097
1090
  {
@@ -1112,6 +1105,12 @@
1112
1105
  },
1113
1106
  ];
1114
1107
 
1108
+ const REGIONS_URL$1 = '/api/v1/regions';
1109
+ function useRegions() {
1110
+ const { data } = useAsyncData(REGIONS_URL$1, fetchJSONUnsafe);
1111
+ return data || [];
1112
+ }
1113
+
1115
1114
  function useBool(defaultValue = false) {
1116
1115
  const [value, setValue] = useState(defaultValue);
1117
1116
  const setTrue = useCallback(() => setValue(true), []);
@@ -1208,7 +1207,7 @@
1208
1207
  onClose: handleClose,
1209
1208
  iconVersion,
1210
1209
  });
1211
- return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle$1(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-8 flex items-center overflow-hidden text-ellipsis whitespace-nowrap", children: formatOption(value) || placeholder }), renderIcon$1(isOpen, iconVersion)] }), isSearch && isOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
1210
+ return (jsxs("div", { className: className, children: [renderLabel(label), jsxs("div", { className: style('relative', isOpen ? 'z-20' : 'z-10'), ref: inputRef, children: [jsxs("div", { className: style('h-14 text-l flex justify-between items-center text-primary-text cursor-pointer relative z-10', getBorderStyle$1(isBorder, valid)), onClick: isOpen ? handleClose : open, children: [jsx("p", { className: "p-m pr-8 flex items-center overflow-hidden text-ellipsis", children: formatOption(value) || placeholder }), renderIcon$1(isOpen, iconVersion)] }), isSearch && isOpen ? (jsx("div", { className: style('absolute top-0 w-full z-20'), children: jsx(Input, { type: "text", autoFocus: true, value: query, onChange: setQuery }) })) : null] })] }));
1212
1211
  });
1213
1212
  const renderLabel = (label) => label ? (jsx("div", { className: "mb-xs", children: jsx(Text, { size: "text-m", color: "text-primary-text", font: "font-light", children: label }) })) : null;
1214
1213
  const renderIcon$1 = (isOpen, iconVersion) => (jsx(Icon, { className: style('absolute right-3', isOpen ? '' : 'rotate-180'), iconVersion: iconVersion, name: "ArrowUpIcon", width: "16", height: "16" }));
@@ -1216,12 +1215,12 @@
1216
1215
 
1217
1216
  const SelectControl = JSX(({ className = '', error, ...rest }) => (jsxs("div", { className: className, children: [jsx(Select, { ...rest, valid: !error }), renderErrorText(error)] })));
1218
1217
 
1219
- // eslint-disable-next-line react-hooks/exhaustive-deps
1220
- const renderRegion$1 = (regions, field) => {
1218
+ const RegionField = JSX(({ field }) => {
1219
+ const regions = useRegions();
1221
1220
  return (jsx(SelectControl, { className: "w-full", label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }));
1222
- };
1221
+ });
1223
1222
 
1224
- const renderAcquiringRegion = ({ field, title, regions }) => (jsx(ApplicationFieldsetLayout, { title: title, firstChildren: jsx("div", { className: formChildrenStyle, children: jsx(SelectControl, { label: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433", options: ACQUIRING_TYPES, ...withValidator(field('acquiringType'), defaultValidator) }) }), secondChildren: jsx("div", { className: formChildrenStyle, children: renderRegion$1(regions, field) }) }));
1223
+ const renderAcquiringRegion = ({ field, title }) => (jsxs(ApplicationFieldsetLayout, { title: title, children: [jsx("div", { className: formChildrenStyle, children: jsx(SelectControl, { label: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433", options: ACQUIRING_TYPES, ...withValidator(field('acquiringType'), defaultValidator) }) }), jsx("div", { className: formChildrenStyle, children: jsx(RegionField, { field: field }) })] }));
1225
1224
 
1226
1225
  const SlideCheckbox = JSX(({ value = false, text, type = 'checkbox', onChange }) => (jsxs("div", { role: type, "aria-checked": value, className: "flex justify-start items-center w-full cursor-pointer mb-s", onClick: () => onChange && onChange(!value), children: [jsx("div", { className: style('relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl', value ? 'bg-primary-main' : 'bg-main-divider'), children: jsx("div", { className: style('absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full', value ? 'left-1/2' : 'left-[5%]') }) }), text ? (jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text })) : null] })));
1227
1226
 
@@ -1259,7 +1258,7 @@
1259
1258
 
1260
1259
  const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
1261
1260
 
1262
- const initialFormState$9 = {
1261
+ const initialFormState$a = {
1263
1262
  acquiringType: { key: 'trade', text: 'Торговый эквайринг' },
1264
1263
  fullName: '',
1265
1264
  inn: '',
@@ -1295,10 +1294,9 @@
1295
1294
  };
1296
1295
  isValidationSuccess(acquiringValidator(formState)) && onSubmit(submitData, false);
1297
1296
  }, [onSubmit]);
1298
- const [, { field, ...formProps }] = useForm(initialFormState$9, handleSubmit);
1299
- const regions = useGetRegions();
1297
+ const [, { field, ...formProps }] = useForm(initialFormState$a, handleSubmit);
1300
1298
  const isSlideCheckboxes = getSlideCheckboxes(field('acquiringType').value?.key);
1301
- return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderAcquiringRegion({ regions, field, title: 'Вид эквайринга и регион' }), renderAcquiringDataOrganization(field, 'Данные организации'), isSlideCheckboxes ? renderSlideCheckboxes(field) : null, renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1299
+ return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderAcquiringRegion({ field, title: 'Вид эквайринга и регион' }), renderAcquiringDataOrganization(field, 'Данные организации'), isSlideCheckboxes ? renderSlideCheckboxes(field) : null, renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1302
1300
  });
1303
1301
  const getSlideCheckboxes = (type) => type === 'all' || type === 'trade';
1304
1302
 
@@ -1332,7 +1330,7 @@
1332
1330
 
1333
1331
  const CheckboxWithError = JSX(({ className, text, value, key, disabled, error, onChange }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(Checkbox, { text: text, value: value, disabled: disabled, onChange: onChange }, key), renderErrorText(error)] })));
1334
1332
 
1335
- const renderAgreementWithSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex flex-col lg:flex-row w-full justify-between items-baseline", children: [jsxs("div", { children: [jsxs("div", { className: "flex gap-3", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0435\u043D \u0441 ", link: link })] }), renderErrorText(withValidator(consentDataProcessing, checkboxValidator).error)] }), renderSubmitButton(button)] }));
1333
+ const renderAgreementWithSubmit = (consentDataProcessing, link, button) => (jsxs("div", { className: "flex gap-m flex-col lg:flex-row w-full justify-between items-baseline", children: [jsxs("div", { children: [jsxs("div", { className: "flex gap-3", children: [jsx(Checkbox, { ...consentDataProcessing }), jsx(Footnote, { text: "\u0421\u043E\u0433\u043B\u0430\u0441\u0435\u043D \u0441 ", link: link })] }), renderErrorText(withValidator(consentDataProcessing, checkboxValidator).error)] }), renderSubmitButton(button)] }));
1336
1334
 
1337
1335
  const formatDate = (date, toTimeStamp = false) => {
1338
1336
  if (typeof date === 'string') {
@@ -1494,9 +1492,9 @@
1494
1492
  name: '',
1495
1493
  middleName: '',
1496
1494
  };
1497
- const renderUserData = (field, isBirthday = true) => (jsxs("div", { children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F*", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { label: "\u0418\u043C\u044F*", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') }), isBirthday ? (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F*", ...withValidator(field('birthday'), defaultValidator) })) : null] }));
1495
+ const renderUserData = (field, isBirthday = true) => (jsxs("div", { className: "space-y-s", children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F*", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { label: "\u0418\u043C\u044F*", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') }), isBirthday ? (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F*", ...withValidator(field('birthday'), defaultValidator) })) : null] }));
1498
1496
 
1499
- const initialFormState$8 = {
1497
+ const initialFormState$9 = {
1500
1498
  ...initialUserFormState,
1501
1499
  typeForm: { key: 'ANTIFRAUD', text: 'Предупреждение о мошенничестве' },
1502
1500
  phone: '',
@@ -1525,13 +1523,13 @@
1525
1523
  };
1526
1524
  isValidationSuccess(feedbackValidator$2(formState)) && onSubmit(submitData, true);
1527
1525
  }, [onSubmit]);
1528
- const [, { field, ...formProps }] = useForm(initialFormState$8, handleSubmit);
1529
- return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [renderUserData(field, true), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), jsx(CheckboxWithError, { ...withValidator(field('isClient'), checkboxValidator), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' }), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
1526
+ const [, { field, ...formProps }] = useForm(initialFormState$9, handleSubmit);
1527
+ return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { children: jsxs("div", { className: oneColumnFormStyle, children: [renderUserData(field, true), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), jsx(CheckboxWithError, { ...withValidator(field('isClient'), checkboxValidator), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' }), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
1530
1528
  });
1531
1529
 
1532
- const renderBusinessCardDataOrganization = (field) => (jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), secondChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] }) }));
1530
+ const renderBusinessCardDataOrganization = (field) => (jsxs(ApplicationFieldsetLayout, { children: [jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), jsxs("div", { className: formChildrenStyle, children: [jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] })] }));
1533
1531
 
1534
- const initialFormState$7 = {
1532
+ const initialFormState$8 = {
1535
1533
  name: '',
1536
1534
  phone: '',
1537
1535
  inn: '',
@@ -1558,12 +1556,11 @@
1558
1556
  phone: formatPhone(phone),
1559
1557
  });
1560
1558
  }, [onSubmit]);
1561
- const [, { field, ...formProps }] = useForm(initialFormState$7, handleSubmit);
1562
- const regions = useGetRegions();
1563
- return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderRegion$1(regions, field), renderBusinessCardDataOrganization(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1559
+ const [, { field, ...formProps }] = useForm(initialFormState$8, handleSubmit);
1560
+ return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [jsx(RegionField, { field: field }), renderBusinessCardDataOrganization(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1564
1561
  });
1565
1562
 
1566
- const initialFormState$6 = {
1563
+ const initialFormState$7 = {
1567
1564
  ...initialUserFormState,
1568
1565
  typeForm: { key: 'CORRUPTION', text: 'Факты коррупции' },
1569
1566
  phone: '',
@@ -1592,9 +1589,8 @@
1592
1589
  };
1593
1590
  isValidationSuccess(feedbackValidator$1(formState)) && onSubmit(submitData, true);
1594
1591
  }, [onSubmit]);
1595
- const [, { field, ...formProps }] = useForm(initialFormState$6, handleSubmit);
1596
- const regions = useGetRegions();
1597
- return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [renderUserData(field, false), renderRegion$1(regions, field), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) }), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
1592
+ const [, { field, ...formProps }] = useForm(initialFormState$7, handleSubmit);
1593
+ return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { children: jsxs("div", { className: oneColumnFormStyle, children: [renderUserData(field, false), jsx(RegionField, { field: field }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) }), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
1598
1594
  });
1599
1595
 
1600
1596
  const BRANCHES_URL = '/api/v1/branches';
@@ -1615,7 +1611,7 @@
1615
1611
  const MAX_CREDIT_TERM = 180;
1616
1612
  const ITEMS_CREDIT_TERM = ['От 1 мес', 'До 15 лет'];
1617
1613
 
1618
- const renderCreditDataOrganization = (field, title) => (jsx(ApplicationFieldsetLayout, { title: title, firstChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...withValidator(field('fullName'), defaultValidator) }), jsx(InputControl, { label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), secondChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", ...withValidator(field('annualRevenue'), defaultValidator) }), jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] }) }));
1614
+ const renderCreditDataOrganization = (field, title) => (jsxs(ApplicationFieldsetLayout, { title: title, children: [jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...withValidator(field('fullName'), defaultValidator) }), jsx(InputControl, { label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", ...withValidator(field('annualRevenue'), defaultValidator) }), jsx(InputControl, { label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] })] }));
1619
1615
 
1620
1616
  const useNormalizedInput = (props, { normalize, format }) => {
1621
1617
  const { value, onFocus, onBlur, onChange } = props;
@@ -1675,14 +1671,9 @@
1675
1671
  const closestValue = (list) => (_) => list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
1676
1672
  const renderRangeCaption = (items) => (jsx("div", { className: "flex justify-between my-xs", children: items.map((item, i) => (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: item }, String(i)))) }));
1677
1673
 
1678
- const renderCreditParameters = (field, title) => (jsx(ApplicationFieldsetLayout, { title: title, firstChildren: jsx("div", { className: formChildrenStyle, children: jsx(InputRange, { title: "\u0421\u0443\u043C\u043C\u0430, \u20BD", items: ITEMS_CREDIT_AMOUNT, min: MIN_CREDIT_AMOUNT, max: MAX_CREDIT_AMOUNT, ...field('amount') }) }), secondChildren: jsx("div", { className: formChildrenStyle, children: jsx(InputRange, { title: "\u0421\u0440\u043E\u043A, \u043C\u0435\u0441\u044F\u0446\u0435\u0432", items: ITEMS_CREDIT_TERM, min: MIN_CREDIT_TERM, max: MAX_CREDIT_TERM, ...field('term') }) }) }));
1674
+ const renderCreditParameters = (field, title) => (jsxs(ApplicationFieldsetLayout, { title: title, children: [jsx("div", { className: formChildrenStyle, children: jsx(InputRange, { title: "\u0421\u0443\u043C\u043C\u0430, \u20BD", items: ITEMS_CREDIT_AMOUNT, min: MIN_CREDIT_AMOUNT, max: MAX_CREDIT_AMOUNT, ...field('amount') }) }), jsx("div", { className: formChildrenStyle, children: jsx(InputRange, { title: "\u0421\u0440\u043E\u043A, \u043C\u0435\u0441\u044F\u0446\u0435\u0432", items: ITEMS_CREDIT_TERM, min: MIN_CREDIT_TERM, max: MAX_CREDIT_TERM, ...field('term') }) })] }));
1679
1675
 
1680
- const renderRegionDepartment = ({ title, regions, branches, field, }) => (jsx(ApplicationFieldsetLayout, { title: title, firstChildren: jsx("div", { className: formChildrenStyle, children: renderRegion$1(regions, field) }), secondChildren: jsx("div", { className: formChildrenStyle, children: jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: branches.map(({ branchCode = '', address = '' }) => ({
1681
- key: branchCode,
1682
- text: address,
1683
- })), ...withValidator(field('department'), defaultValidator) }) }) }));
1684
-
1685
- const initialFormState$5 = {
1676
+ const initialFormState$6 = {
1686
1677
  amount: MIN_CREDIT_AMOUNT,
1687
1678
  term: 12,
1688
1679
  fullName: '',
@@ -1692,7 +1683,7 @@
1692
1683
  mail: '',
1693
1684
  annualRevenue: '',
1694
1685
  };
1695
- const creditValidator = objectValidator({
1686
+ const creditValidator$1 = objectValidator({
1696
1687
  fullName: defaultValidator,
1697
1688
  annualRevenue: defaultValidator,
1698
1689
  inn: innValidator,
@@ -1704,7 +1695,7 @@
1704
1695
  const ApplicationFormCredit = JSX(({ button, link, onSubmit }) => {
1705
1696
  const handleSubmit = useCallback((formState) => {
1706
1697
  const { amount, term, fullName, inn, name, phone, mail, region, department, annualRevenue } = formState;
1707
- isValidationSuccess(creditValidator(formState)) &&
1698
+ isValidationSuccess(creditValidator$1(formState)) &&
1708
1699
  onSubmit({
1709
1700
  typeForm: 'cred',
1710
1701
  fullName,
@@ -1717,13 +1708,15 @@
1717
1708
  partnerComments: `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`,
1718
1709
  });
1719
1710
  }, [onSubmit]);
1720
- const [formState, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
1721
- const regions = useGetRegions();
1711
+ const [formState, { field, ...formProps }] = useForm(initialFormState$6, handleSubmit);
1722
1712
  const branches = useBranches(formState.region?.key).filter((branch) => branch?.address);
1723
- return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderCreditParameters(field, 'Параметры'), renderCreditDataOrganization(field, 'Данные организации'), renderRegionDepartment({ regions, branches, field, title: 'Офис банка' }), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1713
+ return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderCreditParameters(field, 'Параметры'), renderCreditDataOrganization(field, 'Данные организации'), jsxs(ApplicationFieldsetLayout, { title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", children: [jsx("div", { className: formChildrenStyle, children: jsx(RegionField, { field: field }) }), jsx("div", { className: formChildrenStyle, children: jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: branches.map(({ branchCode = '', address = '' }) => ({
1714
+ key: branchCode,
1715
+ text: address,
1716
+ })), ...withValidator(field('department'), defaultValidator) }) })] }), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1724
1717
  });
1725
1718
 
1726
- const initialFormState$4 = {
1719
+ const initialFormState$5 = {
1727
1720
  name: '',
1728
1721
  phone: '',
1729
1722
  };
@@ -1741,8 +1734,8 @@
1741
1734
  phone: formatPhone(phone),
1742
1735
  });
1743
1736
  }, [onSubmit]);
1744
- const [, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
1745
- return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C", firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [jsx(InputControl, { label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), renderSubmitButton(button), jsx(Footnote, { link: link })] }) }) }));
1737
+ const [, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
1738
+ return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C", children: jsxs("div", { className: oneColumnFormStyle, children: [jsx(InputControl, { label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), renderSubmitButton(button), jsx(Footnote, { link: link })] }) }) }));
1746
1739
  });
1747
1740
 
1748
1741
  const FEEDBACK_TYPES = [
@@ -1845,7 +1838,7 @@
1845
1838
  isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
1846
1839
  };
1847
1840
 
1848
- const initialFormState$3 = {
1841
+ const initialFormState$4 = {
1849
1842
  ...initialUserFormState,
1850
1843
  typeForm: { key: 'FEEDBACK', text: 'Задать вопрос по продуктам и услугам' },
1851
1844
  serviceDirection: { key: 'Физическое лицо' },
@@ -1869,12 +1862,11 @@
1869
1862
  handleSubmitIndividual(feedbackFormState, onSubmit);
1870
1863
  }
1871
1864
  }, [onSubmit]);
1872
- const [formState, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
1873
- const regions = useGetRegions();
1874
- const addressByBranch = useBranches(formState?.region?.key).filter((branch) => branch?.address);
1865
+ const [formState, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
1875
1866
  const isQualityService = field('typeForm').value?.key === 'FEEDBACK_QS';
1876
1867
  const isLegalEntity = getLegalEntity(field('typeForm').value?.key, field('serviceDirection').value?.key);
1877
- return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [jsx(SelectControl, { label: "\u0422\u0435\u043C\u0430*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0435\u043C\u0443", options: FEEDBACK_TYPES, ...withValidator(field('typeForm'), defaultValidator) }), isQualityService ? (jsx(SelectControl, { label: "\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435", options: SERVICE_DIRECTIONS, ...withValidator(field('serviceDirection'), defaultValidator) })) : null, renderRegion$1(regions, field), isQualityService ? (jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: addressByBranch.map(({ branchCode = '', address = '' }) => ({
1868
+ const addressByBranch = useBranches(formState?.region?.key).filter((branch) => branch?.address);
1869
+ return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { children: jsxs("div", { className: oneColumnFormStyle, children: [jsx(SelectControl, { label: "\u0422\u0435\u043C\u0430*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0435\u043C\u0443", options: FEEDBACK_TYPES, ...withValidator(field('typeForm'), defaultValidator) }), isQualityService ? (jsx(SelectControl, { label: "\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435", options: SERVICE_DIRECTIONS, ...withValidator(field('serviceDirection'), defaultValidator) })) : null, jsx(RegionField, { field: field }), isQualityService ? (jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: addressByBranch.map(({ branchCode = '', address = '' }) => ({
1878
1870
  key: branchCode,
1879
1871
  text: address,
1880
1872
  })), ...withValidator(field('addressBranch'), defaultValidator) })) : null, renderUserData(field, true), isLegalEntity ? (jsxs("div", { children: [jsx(InputControl, { label: "\u0418\u041D\u041D*", ...withValidator(field('inn'), innValidator) }), jsx(InputControl, { label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", ...field('fullName') })] })) : null, jsx(SelectControl, { label: "\u0421\u043F\u043E\u0441\u043E\u0431 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043E\u0442\u0432\u0435\u0442\u0430*", options: FEEDBACK_METHOD, ...withValidator(field('feedbackMethod'), defaultValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), isQualityService ? (jsxs("div", { children: [jsx(PhoneInputControl, { label: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0442\u0435\u043B\u0435\u0444\u043E\u043D", ...field('secondaryPhone') }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) }), jsx(InputControl, { label: "\u0424\u0418\u041E \u0438\u043B\u0438 \u0434\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u0432\u0448\u0435\u0433\u043E \u0412\u0430\u0441 \u0441\u043E\u0442\u0440\u0443\u0434\u043D\u0438\u043A\u0430 \u0411\u0430\u043D\u043A\u0430", ...field('bankEmpolee') }), jsx(InputControl, { label: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u044F \u0432 \u0411\u0430\u043D\u043A", ...field('applicationDate') })] })) : (jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) })), jsx(InputControl, { ...withValidator(field('comment'), defaultValidator), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435*", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }) }) }));
@@ -1893,7 +1885,7 @@
1893
1885
  return (jsxs("div", { className: "container space-y-s", children: [regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ name = '' }) => ({ key: name, text: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(LinkButton, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), children: button?.text ? button.text : 'Перейти' }) })) : null] }));
1894
1886
  });
1895
1887
 
1896
- const initialFormState$2 = {
1888
+ const initialFormState$3 = {
1897
1889
  ...initialUserFormState,
1898
1890
  phone: '',
1899
1891
  email: '',
@@ -1924,11 +1916,11 @@
1924
1916
  product: product || '',
1925
1917
  }, true);
1926
1918
  }, [onSubmit]);
1927
- const [, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
1928
- return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E", ...withValidator(field('middleName'), nameValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), secondChildren: jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F*", ...withValidator(field('birthday'), defaultValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('email'), defaultValidator) })] }) }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }));
1919
+ const [, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
1920
+ return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [jsxs(ApplicationFieldsetLayout, { children: [jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F*", ...withValidator(field('birthday'), defaultValidator) }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('email'), defaultValidator) })] })] }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }));
1929
1921
  });
1930
1922
 
1931
- const initialFormState$1 = {
1923
+ const initialFormState$2 = {
1932
1924
  ...initialUserFormState,
1933
1925
  typeForm: { key: 'SELFCOLLECTION', text: 'Самоинкассация' },
1934
1926
  fullName: '',
@@ -1951,10 +1943,68 @@
1951
1943
  };
1952
1944
  isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
1953
1945
  }, [onSubmit]);
1954
- const [, { field, ...formProps }] = useForm(initialFormState$1, handleSubmit);
1955
- const regions = useGetRegions();
1956
- return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [jsx(InputControl, { label: "\u0424\u0418\u041E*", ...withValidator(field('fullName'), defaultValidator) }), renderRegion$1(regions, field), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), renderSubmitButton(button), jsx(Footnote, { link: link })] }) }) }));
1946
+ const [, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
1947
+ return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { children: jsxs("div", { className: oneColumnFormStyle, children: [jsx(InputControl, { label: "\u0424\u0418\u041E*", ...withValidator(field('fullName'), defaultValidator) }), jsx(RegionField, { field: field }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), renderSubmitButton(button), jsx(Footnote, { link: link })] }) }) }));
1948
+ });
1949
+
1950
+ const REGIONS_URL = '/api/v1/premiumBranchesByRegions';
1951
+ function usePremiumBranchesByRegions() {
1952
+ const { data } = useAsyncData(REGIONS_URL, fetchJSONUnsafe);
1953
+ return data || [];
1954
+ }
1955
+
1956
+ const SERVICE_TYPES = [
1957
+ { key: 'ULTRASERVICE', text: 'Ультра' },
1958
+ { key: 'PREMIUMSERVICE', text: 'Премиум' },
1959
+ ];
1960
+ const initialFormState$1 = {
1961
+ typeForm: SERVICE_TYPES[0],
1962
+ ...initialUserFormState,
1963
+ email: '',
1964
+ phone: '',
1965
+ comment: '',
1966
+ consentDataProcessing: false,
1967
+ };
1968
+ const creditValidator = objectValidator({
1969
+ typeForm: defaultValidator,
1970
+ surname: defaultValidator,
1971
+ name: nameValidator,
1972
+ phone: phoneValidator,
1973
+ email: defaultValidator,
1974
+ addressBranch: defaultValidator,
1975
+ consentDataProcessing: checkboxValidator,
1976
+ });
1977
+ const ApplicationFormUltraPremium = JSX(({ button, link, onSubmit, defaultType = 'PREMIUMSERVICE' }) => {
1978
+ const handleSubmit = useCallback((formState) => {
1979
+ const { surname, name, middleName, email, comment, consentDataProcessing } = formState;
1980
+ const submitData = {
1981
+ typeForm: formState.typeForm.key,
1982
+ surname,
1983
+ name,
1984
+ middleName,
1985
+ phoneNumber: formatPhone(formState.phone),
1986
+ email,
1987
+ addressBranch: formState.addressBranch?.key,
1988
+ comment,
1989
+ consentDataProcessing,
1990
+ };
1991
+ console.log(submitData);
1992
+ isValidationSuccess(creditValidator(formState)) && onSubmit(submitData, true);
1993
+ }, [onSubmit]);
1994
+ const [formState, { field, ...formProps }] = useForm({ ...initialFormState$1, typeForm: getDefaultFormType(defaultType) }, handleSubmit);
1995
+ const branchByRegions = usePremiumBranchesByRegions();
1996
+ const regions = branchByRegions.map(({ region }) => ({
1997
+ key: region,
1998
+ text: region,
1999
+ }));
2000
+ const regionKey = formState?.region?.key;
2001
+ const addressBranches = branchByRegions.find((_) => _?.region === regionKey)?.branches;
2002
+ return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [jsxs(ApplicationFieldsetLayout, { title: "\u0412\u0430\u0448\u0438 \u0434\u0430\u043D\u043D\u044B\u0435", children: [jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F*", ...withValidator(field('surname'), nameValidator) }), jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') }), jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430*", ...withValidator(field('email'), defaultValidator) })] }), jsxs("div", { className: formChildrenStyle, children: [jsx(InputControl, { label: "\u0418\u043C\u044F*", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D*", ...withValidator(field('phone'), phoneValidator) }), jsx(SelectControl, { label: "\u0422\u0438\u043F \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F*", options: SERVICE_TYPES, ...withValidator(field('typeForm'), defaultValidator) })] })] }), jsxs(ApplicationFieldsetLayout, { title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", children: [jsx("div", { className: formChildrenStyle, children: jsx(SelectControl, { label: "\u0420\u0435\u0433\u0438\u043E\u043D*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", options: regions, ...withValidator(field('region'), defaultValidator) }) }), jsx("div", { className: formChildrenStyle, children: jsx(SelectControl, { className: "w-full", label: "\u0410\u0434\u0440\u0435\u0441*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", options: (addressBranches || []).map(({ address = '' }) => ({
2003
+ key: address,
2004
+ text: address,
2005
+ })), ...withValidator(field('addressBranch'), defaultValidator) }) })] }), jsx(InputControl, { ...field('comment'), placeholder: "\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439, \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0438 \u043F\u0440\u043E\u0447\u0435\u0435", isTextarea: true }), renderAgreementWithSubmit(field('consentDataProcessing'), link, button)] }));
1957
2006
  });
2007
+ const getDefaultFormType = (defaultType) => SERVICE_TYPES.find((_) => _.key === defaultType);
1958
2008
 
1959
2009
  const renderContacts = () => (jsxs("div", { className: "flex gap-xl", children: [jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", href: `tel:8 (800) 200-78-70`, "aria-label": "8 (800) 200-78-70", children: [jsx(Img, { image: { icon: 'PhoneIcon' }, width: "24", height: "24" }), jsx("span", { children: "8 (800) 200-78-70" })] }), jsxs("a", { className: "flex gap-s items-center text-primary-text no-underline", "aria-label": "ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(Img, { image: { icon: 'MailIcon' }, width: "24", height: "24" }), jsx("span", { children: "ved@rshb.ru" })] })] }));
1960
2010
 
@@ -1962,7 +2012,7 @@
1962
2012
 
1963
2013
  const renderQuestionsInterested = (field) => {
1964
2014
  const { value, onChange } = field('vedTypes');
1965
- return (jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: "gap-xl grid @xl:flex @xl:items-center", children: [jsx(Radio, { name: "vedTypes", text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", value: "currencyControl", checked: value === 'currencyControl', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { name: "vedTypes", text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "documentOperations", checked: value === 'documentOperations', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { name: "vedTypes", text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "conversionTransactions", checked: value === 'conversionTransactions', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { name: "vedTypes", text: "\u0418\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0412\u042D\u0414", value: "otherIssues", checked: value === 'otherIssues', onChange: (_) => onChange && onChange(_) })] }) }));
2015
+ return (jsx(ApplicationFieldsetLayout, { children: jsxs("div", { className: "gap-xl grid @xl:flex @xl:items-center", children: [jsx(Radio, { name: "vedTypes", text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", value: "currencyControl", checked: value === 'currencyControl', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { name: "vedTypes", text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "documentOperations", checked: value === 'documentOperations', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { name: "vedTypes", text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "conversionTransactions", checked: value === 'conversionTransactions', onChange: (_) => onChange && onChange(_) }), jsx(Radio, { name: "vedTypes", text: "\u0418\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0412\u042D\u0414", value: "otherIssues", checked: value === 'otherIssues', onChange: (_) => onChange && onChange(_) })] }) }));
1966
2016
  };
1967
2017
 
1968
2018
  const activeTextareaStyles = 'hover:border-primary-hover active:focus:border-primary-text focus:border-primary-text';
@@ -2020,7 +2070,7 @@
2020
2070
  isValidationSuccess(getValidator(vedTypes)(formState)) && onSubmit(data);
2021
2071
  }, [onSubmit]);
2022
2072
  const [, { field, ...formProps }] = useForm(initialFormState, handleSubmit);
2023
- const regions = useGetRegions();
2073
+ const regions = useRegions();
2024
2074
  const textField = field('text');
2025
2075
  return (jsxs("form", { className: "container space-y-lg", onSubmit: formProps.onSubmit, children: [renderQuestionsInterested(field), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "@xl:text-center" }), renderWedDataOrganization({ field, regions }), renderTextarea({
2026
2076
  textField,
@@ -2041,6 +2091,7 @@
2041
2091
  ApplicationFormAntiFraud,
2042
2092
  ApplicationFormCorruption,
2043
2093
  ApplicationFormSelfCollection,
2094
+ ApplicationFormUltraPremium,
2044
2095
  };
2045
2096
 
2046
2097
  const ResponseNotification = JSX(({ responseType }) => {
@@ -4325,12 +4376,6 @@
4325
4376
  ? 'text-primary-main'
4326
4377
  : style(flat ? 'text-primary-text' : 'text-secondary-text', 'hover:text-primary-main'), 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
4327
4378
 
4328
- const REGIONS_URL = '/api/v1/regions';
4329
- function useRegions() {
4330
- const { data } = useAsyncData(REGIONS_URL, fetchJSONUnsafe);
4331
- return data || [];
4332
- }
4333
-
4334
4379
  const groupBy = (list, keyGetter) => {
4335
4380
  const result = new Map();
4336
4381
  for (const item of list) {
@@ -5477,7 +5522,7 @@
5477
5522
  selectedBoxSize: '',
5478
5523
  days: DEFAULT_DAYS,
5479
5524
  });
5480
- const regions = useGetRegions();
5525
+ const regions = useRegions();
5481
5526
  const selectedRegion = normalizeSelectedRegion(safeDepositState.selectedRegion, regions);
5482
5527
  const branches = useSafeBoxes(selectedRegion);
5483
5528
  const handleChangeSafeDepositState = useCallback((state) => setStateDepositState((oldState) => ({ ...oldState, ...state })), [setStateDepositState]);
@@ -5525,7 +5570,7 @@
5525
5570
  const lineOpacity = getLineOpacity(showLines);
5526
5571
  const paddingX = getPaddingX(steps.length);
5527
5572
  const isMainButton = Boolean(buttons?.every((b) => b?.text));
5528
- return (jsxs(BlockWrapper, { className: style('box-border flex flex-col items-center overflow-hidden gap-y-3xl', className), defaultPadding: "p-6xl", version: version, ...rest, children: [jsx(Headline, { headlineVersion: "S", title: title, description: description, isEmbedded: true, className: "w-full", align: AlignStyles }), steps?.length ? (jsxs("div", { className: "box-border space-y-lg", children: [jsx("div", { className: style('flex items-center', paddingX), children: joinList(jsx("div", { className: style('h-0.5 w-full bg-secondary-light flex-1', lineOpacity) }))(steps.map(renderStepIcon(styleMap, size, stepVersion))) }), jsx("div", { className: style('flex justify-between', shortGaps ? 'gap-x-s' : 'gap-x-20'), children: steps.map(renderStep({ styleMap, isMainButton, version })) })] })) : null, renderButtonsSection(buttons)] }));
5573
+ return (jsxs(BlockWrapper, { className: style('box-border flex flex-col items-center overflow-hidden gap-y-3xl', className), defaultPadding: "p-6xl", version: version, ...rest, children: [jsx(Headline, { headlineVersion: "S", title: title, description: description, isEmbedded: true, className: "w-full", align: AlignStyles }), steps?.length ? (jsxs("div", { className: "box-border space-y-lg flex flex-col justify-center", children: [jsx("div", { className: style('flex items-center', paddingX), children: joinList(jsx("div", { className: style('h-0.5 w-full bg-secondary-light flex-1', lineOpacity) }))(steps.map(renderStepIcon(styleMap, size, stepVersion))) }), jsx("div", { className: style('flex justify-between', shortGaps ? 'gap-x-s' : 'gap-x-20'), children: steps.map(renderStep({ styleMap, isMainButton, version })) })] })) : null, renderButtonsSection(buttons)] }));
5529
5574
  });
5530
5575
  const renderStepIcon = (styleMap, size, stepVersion) => ({ icon }, i) => {
5531
5576
  const iconVersion = stepVersion === 'secondary' ? 'white' : 'color';
@@ -6074,7 +6119,7 @@
6074
6119
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
6075
6120
  }
6076
6121
 
6077
- const packageVersion = "0.14.144";
6122
+ const packageVersion = "0.14.146";
6078
6123
 
6079
6124
  exports.Blocks = Blocks;
6080
6125
  exports.ContentPage = ContentPage;