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

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 (394) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +113 -72
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  5. package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  6. package/bundle/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  7. package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  8. package/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  9. package/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  10. package/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  11. package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  12. package/bundle/components/ApplicationForm/renderRegion.d.ts +6 -6
  13. package/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  14. package/bundle/components/ApplicationForm/renderUserData.d.ts +1 -1
  15. package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  16. package/bundle/components/Header/HeaderContent.d.ts +3 -9
  17. package/bundle/components/ProductBlock/ProductBlock.d.ts +2 -2
  18. package/bundle/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  19. package/bundle/model/LogoType.d.ts +3 -0
  20. package/bundle/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  21. package/bundle/ui-kit/Unit/UnitProps.d.ts +3 -0
  22. package/bundle/utils/formatPhone.d.ts +1 -0
  23. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
  24. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  25. package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
  26. package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  27. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
  28. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  29. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  30. package/dist/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
  31. package/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  32. package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  33. package/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  34. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  35. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
  36. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  37. package/dist/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
  38. package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  39. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
  40. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  41. package/dist/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  42. package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +48 -0
  43. package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
  44. package/dist/components/ApplicationForm/ApplicationFormWed.js +2 -1
  45. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  46. package/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  47. package/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  48. package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  49. package/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  50. package/dist/components/ApplicationForm/acquiringTypes.js +8 -7
  51. package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
  52. package/dist/components/ApplicationForm/handleSubmit.js +4 -3
  53. package/dist/components/ApplicationForm/handleSubmit.js.map +1 -1
  54. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  55. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  56. package/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  57. package/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -1
  58. package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  59. package/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  60. package/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  61. package/dist/components/ApplicationForm/renderRegion.d.ts +6 -6
  62. package/dist/components/ApplicationForm/renderRegion.js +4 -1
  63. package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
  64. package/dist/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  65. package/dist/components/ApplicationForm/renderRegionDepartment.js +2 -1
  66. package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  67. package/dist/components/ApplicationForm/renderUserData.d.ts +1 -1
  68. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  69. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
  70. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  71. package/dist/components/ContentPage/renderContentPageHead.js +2 -2
  72. package/dist/components/ContentPage/renderContentPageHead.js.map +1 -1
  73. package/dist/components/Header/Header.js +2 -2
  74. package/dist/components/Header/Header.js.map +1 -1
  75. package/dist/components/Header/HeaderContent.d.ts +3 -9
  76. package/dist/components/ProductBlock/ProductBlock.d.ts +2 -2
  77. package/dist/components/ProductBlock/ProductBlock.js +1 -0
  78. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  79. package/dist/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  80. package/dist/model/LogoType.d.ts +3 -0
  81. package/dist/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  82. package/dist/ui-kit/BaseTile/BaseTile.js +0 -1
  83. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  84. package/dist/ui-kit/Logo/Logo.js +2 -2
  85. package/dist/ui-kit/Logo/renderImage.js +1 -1
  86. package/dist/ui-kit/Logo/renderImage.js.map +1 -1
  87. package/dist/ui-kit/Unit/UnitProps.d.ts +3 -0
  88. package/dist/utils/formatPhone.d.ts +1 -0
  89. package/dist/utils/formatPhone.js +5 -0
  90. package/dist/utils/formatPhone.js.map +1 -0
  91. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  92. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
  93. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  94. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
  95. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  96. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
  97. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  98. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  99. package/lib/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
  100. package/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  101. package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  102. package/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  103. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  104. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
  105. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  106. package/lib/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
  107. package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  108. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
  109. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  110. package/lib/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  111. package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +46 -0
  112. package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
  113. package/lib/components/ApplicationForm/ApplicationFormWed.js +2 -1
  114. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  115. package/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  116. package/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  117. package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  118. package/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  119. package/lib/components/ApplicationForm/acquiringTypes.js +8 -7
  120. package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
  121. package/lib/components/ApplicationForm/handleSubmit.js +4 -3
  122. package/lib/components/ApplicationForm/handleSubmit.js.map +1 -1
  123. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  124. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  125. package/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  126. package/lib/components/ApplicationForm/renderAcquiringRegion.js +2 -1
  127. package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  128. package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  129. package/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  130. package/lib/components/ApplicationForm/renderRegion.d.ts +6 -6
  131. package/lib/components/ApplicationForm/renderRegion.js +4 -1
  132. package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
  133. package/lib/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  134. package/lib/components/ApplicationForm/renderRegionDepartment.js +2 -1
  135. package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  136. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  137. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
  138. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  139. package/lib/components/ContentPage/renderContentPageHead.js +2 -2
  140. package/lib/components/ContentPage/renderContentPageHead.js.map +1 -1
  141. package/lib/components/Header/Header.fixture.d.ts +1 -0
  142. package/lib/components/Header/Header.js +2 -2
  143. package/lib/components/Header/Header.js.map +1 -1
  144. package/lib/components/Header/HeaderContent.d.ts +3 -9
  145. package/lib/components/ProductBlock/ProductBlock.d.ts +2 -2
  146. package/lib/components/ProductBlock/ProductBlock.js +1 -0
  147. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  148. package/lib/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  149. package/lib/model/LogoType.d.ts +3 -0
  150. package/lib/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  151. package/lib/ui-kit/BaseTile/BaseTile.js +0 -1
  152. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  153. package/lib/ui-kit/Logo/Logo.js +2 -2
  154. package/lib/ui-kit/Logo/renderImage.js +1 -1
  155. package/lib/ui-kit/Logo/renderImage.js.map +1 -1
  156. package/lib/ui-kit/Unit/UnitProps.d.ts +3 -0
  157. package/lib/utils/formatPhone.d.ts +1 -0
  158. package/lib/utils/formatPhone.js +2 -0
  159. package/lib/utils/formatPhone.js.map +1 -0
  160. package/mobile/bundle/bundle.umd.js +111 -70
  161. package/mobile/bundle/bundle.umd.min.js +1 -1
  162. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  163. package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  164. package/mobile/bundle/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  165. package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  166. package/mobile/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  167. package/mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  168. package/mobile/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  169. package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  170. package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +6 -6
  171. package/mobile/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  172. package/mobile/bundle/components/ApplicationForm/renderUserData.d.ts +1 -1
  173. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  174. package/mobile/bundle/components/Header/HeaderContent.d.ts +3 -9
  175. package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +2 -2
  176. package/mobile/bundle/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  177. package/mobile/bundle/model/LogoType.d.ts +3 -0
  178. package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  179. package/mobile/bundle/ui-kit/Unit/UnitProps.d.ts +3 -0
  180. package/mobile/bundle/utils/formatPhone.d.ts +1 -0
  181. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
  182. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  183. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
  184. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  185. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
  186. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  187. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  188. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
  189. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  190. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  191. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  192. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  193. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
  194. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  195. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
  196. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  197. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
  198. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  199. package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  200. package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +48 -0
  201. package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
  202. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +2 -1
  203. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  204. package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  205. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  206. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  207. package/mobile/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  208. package/mobile/dist/components/ApplicationForm/acquiringTypes.js +8 -7
  209. package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
  210. package/mobile/dist/components/ApplicationForm/handleSubmit.js +4 -3
  211. package/mobile/dist/components/ApplicationForm/handleSubmit.js.map +1 -1
  212. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  213. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  214. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  215. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -1
  216. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  217. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  218. package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  219. package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +6 -6
  220. package/mobile/dist/components/ApplicationForm/renderRegion.js +4 -1
  221. package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
  222. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  223. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +2 -1
  224. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  225. package/mobile/dist/components/ApplicationForm/renderUserData.d.ts +1 -1
  226. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  227. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
  228. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  229. package/mobile/dist/components/ContentPage/renderContentPageHead.js +2 -2
  230. package/mobile/dist/components/ContentPage/renderContentPageHead.js.map +1 -1
  231. package/mobile/dist/components/Header/HeaderContent.d.ts +3 -9
  232. package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +2 -2
  233. package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -0
  234. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  235. package/mobile/dist/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  236. package/mobile/dist/model/LogoType.d.ts +3 -0
  237. package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  238. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +0 -1
  239. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  240. package/mobile/dist/ui-kit/Logo/Logo.js +2 -2
  241. package/mobile/dist/ui-kit/Logo/renderImage.js +1 -1
  242. package/mobile/dist/ui-kit/Logo/renderImage.js.map +1 -1
  243. package/mobile/dist/ui-kit/Unit/UnitProps.d.ts +3 -0
  244. package/mobile/dist/utils/formatPhone.d.ts +1 -0
  245. package/mobile/dist/utils/formatPhone.js +5 -0
  246. package/mobile/dist/utils/formatPhone.js.map +1 -0
  247. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
  248. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  249. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
  250. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  251. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
  252. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  253. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  254. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
  255. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  256. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  257. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  258. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  259. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
  260. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  261. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
  262. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  263. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
  264. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  265. package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  266. package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +46 -0
  267. package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
  268. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +2 -1
  269. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  270. package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  271. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  272. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  273. package/mobile/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  274. package/mobile/lib/components/ApplicationForm/acquiringTypes.js +8 -7
  275. package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
  276. package/mobile/lib/components/ApplicationForm/handleSubmit.js +4 -3
  277. package/mobile/lib/components/ApplicationForm/handleSubmit.js.map +1 -1
  278. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  279. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  280. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  281. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +2 -1
  282. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  283. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  284. package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  285. package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +6 -6
  286. package/mobile/lib/components/ApplicationForm/renderRegion.js +4 -1
  287. package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
  288. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  289. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +2 -1
  290. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  291. package/mobile/lib/components/ApplicationForm/renderUserData.d.ts +1 -1
  292. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  293. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
  294. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  295. package/mobile/lib/components/ContentPage/renderContentPageHead.js +2 -2
  296. package/mobile/lib/components/ContentPage/renderContentPageHead.js.map +1 -1
  297. package/mobile/lib/components/Header/HeaderContent.d.ts +3 -9
  298. package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +2 -2
  299. package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -0
  300. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  301. package/mobile/lib/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  302. package/mobile/lib/model/LogoType.d.ts +3 -0
  303. package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  304. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +0 -1
  305. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  306. package/mobile/lib/ui-kit/Logo/Logo.js +2 -2
  307. package/mobile/lib/ui-kit/Logo/renderImage.js +1 -1
  308. package/mobile/lib/ui-kit/Logo/renderImage.js.map +1 -1
  309. package/mobile/lib/ui-kit/Unit/UnitProps.d.ts +3 -0
  310. package/mobile/lib/utils/formatPhone.d.ts +1 -0
  311. package/mobile/lib/utils/formatPhone.js +2 -0
  312. package/mobile/lib/utils/formatPhone.js.map +1 -0
  313. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +23 -15
  314. package/mobile/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +2 -3
  315. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +3 -3
  316. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +12 -2
  317. package/mobile/src/components/ApplicationForm/ApplicationFormCorruption.tsx +5 -10
  318. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +16 -3
  319. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -1
  320. package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +5 -10
  321. package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +2 -1
  322. package/mobile/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +81 -0
  323. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -1
  324. package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  325. package/mobile/src/components/ApplicationForm/acquiringTypes.ts +11 -9
  326. package/mobile/src/components/ApplicationForm/handleSubmit.tsx +4 -3
  327. package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
  328. package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +4 -12
  329. package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
  330. package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +1 -1
  331. package/mobile/src/components/ApplicationForm/renderRegion.tsx +29 -15
  332. package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -12
  333. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -9
  334. package/mobile/src/components/ContentPage/renderContentPageHead.tsx +2 -2
  335. package/mobile/src/components/Header/HeaderContent.ts +3 -10
  336. package/mobile/src/components/ProductBlock/ProductBlock.tsx +14 -10
  337. package/mobile/src/components/UnitBlock/UnitBlockContent.ts +1 -0
  338. package/mobile/src/model/LogoType.ts +3 -0
  339. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -4
  340. package/mobile/src/ui-kit/Logo/Logo.tsx +2 -2
  341. package/mobile/src/ui-kit/Logo/renderImage.tsx +1 -7
  342. package/mobile/src/ui-kit/Unit/UnitProps.ts +3 -0
  343. package/mobile/src/utils/formatPhone.ts +1 -0
  344. package/package.json +1 -1
  345. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +14 -0
  346. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +23 -15
  347. package/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +2 -3
  348. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +3 -3
  349. package/src/components/ApplicationForm/ApplicationFormContent.ts +12 -2
  350. package/src/components/ApplicationForm/ApplicationFormCorruption.tsx +5 -10
  351. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +16 -3
  352. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -1
  353. package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +5 -10
  354. package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +2 -1
  355. package/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +81 -0
  356. package/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -1
  357. package/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  358. package/src/components/ApplicationForm/acquiringTypes.ts +11 -9
  359. package/src/components/ApplicationForm/handleSubmit.tsx +4 -3
  360. package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
  361. package/src/components/ApplicationForm/renderAcquiringRegion.tsx +4 -12
  362. package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
  363. package/src/components/ApplicationForm/renderCreditParameters.tsx +1 -1
  364. package/src/components/ApplicationForm/renderRegion.tsx +29 -15
  365. package/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -12
  366. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -9
  367. package/src/components/ContentPage/renderContentPageHead.tsx +2 -2
  368. package/src/components/Header/Header.fixture.tsx +13 -0
  369. package/src/components/Header/Header.tsx +8 -2
  370. package/src/components/Header/HeaderContent.ts +3 -10
  371. package/src/components/ProductBlock/ProductBlock.tsx +14 -10
  372. package/src/components/UnitBlock/UnitBlockContent.ts +1 -0
  373. package/src/model/LogoType.ts +3 -0
  374. package/src/ui-kit/BaseTile/BaseTile.tsx +2 -4
  375. package/src/ui-kit/Logo/Logo.tsx +2 -2
  376. package/src/ui-kit/Logo/renderImage.tsx +1 -7
  377. package/src/ui-kit/Unit/UnitProps.ts +3 -0
  378. package/src/utils/formatPhone.ts +1 -0
  379. package/bundle/components/ApplicationForm/CreditFormState.d.ts +0 -13
  380. package/dist/components/ApplicationForm/CreditFormState.d.ts +0 -13
  381. package/dist/components/ApplicationForm/CreditFormState.js +0 -2
  382. package/dist/components/ApplicationForm/CreditFormState.js.map +0 -1
  383. package/lib/components/ApplicationForm/CreditFormState.d.ts +0 -13
  384. package/lib/components/ApplicationForm/CreditFormState.js +0 -2
  385. package/lib/components/ApplicationForm/CreditFormState.js.map +0 -1
  386. package/mobile/bundle/components/ApplicationForm/CreditFormState.d.ts +0 -13
  387. package/mobile/dist/components/ApplicationForm/CreditFormState.d.ts +0 -13
  388. package/mobile/dist/components/ApplicationForm/CreditFormState.js +0 -2
  389. package/mobile/dist/components/ApplicationForm/CreditFormState.js.map +0 -1
  390. package/mobile/lib/components/ApplicationForm/CreditFormState.d.ts +0 -13
  391. package/mobile/lib/components/ApplicationForm/CreditFormState.js +0 -2
  392. package/mobile/lib/components/ApplicationForm/CreditFormState.js.map +0 -1
  393. package/mobile/src/components/ApplicationForm/CreditFormState.ts +0 -14
  394. package/src/components/ApplicationForm/CreditFormState.ts +0 -14
@@ -692,7 +692,6 @@
692
692
  imageAlign,
693
693
  }), renderButtons(buttons)] })] })] }));
694
694
  });
695
- BaseTile.childrenTypes = ['UnitBlock'];
696
695
  const getStyle = (padding = '', defaultPadding = '', className = '') => style('relative flex flex-col gap-3xl overflow-hidden', padding || defaultPadding, className);
697
696
  const rowSpanStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'row-span-2' : '@xl:row-span-2';
698
697
  const positionStyle = (isImageAlwaysOnRight) => isImageAlwaysOnRight ? 'col-start-2 self-center' : '';
@@ -819,6 +818,7 @@
819
818
  const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
820
819
 
821
820
  const ProductBlock = JSX(({ className, padding, ...rest }) => (jsx(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', className), padding: "p-0", ...rest, children: jsx(BaseProductTile, { defaultPadding: "p-6xl", padding: padding, className: "grow h-full", ...rest }) })));
821
+ ProductBlock.childrenTypes = ['UnitBlock'];
822
822
 
823
823
  const isFilled = (_) => _ !== null && _ !== undefined;
824
824
 
@@ -1001,6 +1001,8 @@
1001
1001
  ];
1002
1002
  };
1003
1003
 
1004
+ const formatPhone = (phone) => phone.replace(/[^+\d]/g, '');
1005
+
1004
1006
  const objectValidator = (validatorsMap) => (o) => (o &&
1005
1007
  Object.entries(validatorsMap).flatMap(([key, validator]) => validator(o[key]))) ||
1006
1008
  [];
@@ -1089,23 +1091,24 @@
1089
1091
  const phoneValidator = pattern(/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/)(ERROR_MESSAGE);
1090
1092
  const checkboxValidator = validator((_) => typeof _ === 'boolean' && _)(ERROR_MESSAGE);
1091
1093
 
1092
- 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) })] }) }));
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) })] }) }));
1093
1095
 
1094
1096
  const ACQUIRING_TYPES = [
1095
1097
  {
1096
- name: 'Торговый эквайринг',
1097
- },
1098
- {
1099
- name: 'Мобильный эквайринг',
1098
+ text: 'Торговый эквайринг',
1099
+ key: 'trade',
1100
1100
  },
1101
1101
  {
1102
- name: 'Интернет-эквайринг',
1102
+ text: 'СБП-эквайринг',
1103
+ key: 'sbp',
1103
1104
  },
1104
1105
  {
1105
- name: 'QR-эквайринг (СБП)',
1106
+ text: 'Интернет-эквайринг',
1107
+ key: 'internet',
1106
1108
  },
1107
1109
  {
1108
- name: 'Все виды эквайринга',
1110
+ text: 'Все виды эквайринга',
1111
+ key: 'all',
1109
1112
  },
1110
1113
  ];
1111
1114
 
@@ -1213,7 +1216,12 @@
1213
1216
 
1214
1217
  const SelectControl = JSX(({ className = '', error, ...rest }) => (jsxs("div", { className: className, children: [jsx(Select, { ...rest, valid: !error }), renderErrorText(error)] })));
1215
1218
 
1216
- const renderAcquiringRegion = ({ regions, field, title }) => (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.map(({ name: key = '' }) => ({ key, text: key })), ...withValidator(field('acquiringType'), defaultValidator) }) }), 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: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) }) }));
1219
+ // eslint-disable-next-line react-hooks/exhaustive-deps
1220
+ const renderRegion$1 = (regions, field) => {
1221
+ 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
+ };
1223
+
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) }) }));
1217
1225
 
1218
1226
  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] })));
1219
1227
 
@@ -1251,8 +1259,8 @@
1251
1259
 
1252
1260
  const renderSubmitButton = (button, className) => (jsx(Button, { className: style('w-full @xl:w-auto', className), type: "submit", children: button?.text ? button.text : 'Отправить заявку' }));
1253
1261
 
1254
- const initialFormState$8 = {
1255
- acquiringType: { key: 'Торговый эквайринг' },
1262
+ const initialFormState$9 = {
1263
+ acquiringType: { key: 'trade', text: 'Торговый эквайринг' },
1256
1264
  fullName: '',
1257
1265
  inn: '',
1258
1266
  name: '',
@@ -1272,21 +1280,27 @@
1272
1280
  const { button, link, onSubmit } = props;
1273
1281
  const handleSubmit = useCallback((formState) => {
1274
1282
  const { acquiringType, region, fullName, inn, name, phone, onlineCheckout, posTerminal } = formState;
1275
- isValidationSuccess(acquiringValidator(formState)) &&
1276
- onSubmit({
1277
- typeForm: 'acqr',
1278
- region: region?.text || '',
1279
- partnerComments: `Вид эквайринга=${acquiringType?.key || ''}/Онлайн касса=${onlineCheckout}/POS-терминал=${posTerminal}`,
1280
- fullName,
1281
- inn,
1282
- name,
1283
- phone: phone.replace(/[^+\d]/g, ''),
1284
- });
1283
+ const isTradeAcquiring = getSlideCheckboxes(acquiringType?.key);
1284
+ const partnerComments = `Вид эквайринга=${acquiringType?.text || ''}${isTradeAcquiring
1285
+ ? `/Онлайн касса=${onlineCheckout}/POS-терминал=${posTerminal}`
1286
+ : '/Онлайн касса=false/POS-терминал=false'}`;
1287
+ const submitData = {
1288
+ typeForm: 'acqr',
1289
+ region: region?.text || '',
1290
+ partnerComments,
1291
+ fullName,
1292
+ inn,
1293
+ name,
1294
+ phone: formatPhone(phone),
1295
+ };
1296
+ isValidationSuccess(acquiringValidator(formState)) && onSubmit(submitData, false);
1285
1297
  }, [onSubmit]);
1286
- const [, { field, ...formProps }] = useForm(initialFormState$8, handleSubmit);
1298
+ const [, { field, ...formProps }] = useForm(initialFormState$9, handleSubmit);
1287
1299
  const regions = useGetRegions();
1288
- return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderAcquiringRegion({ regions, field, title: 'Вид эквайринга и регион' }), renderAcquiringDataOrganization(field, 'Данные организации'), renderSlideCheckboxes(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1300
+ 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 })] }));
1289
1302
  });
1303
+ const getSlideCheckboxes = (type) => type === 'all' || type === 'trade';
1290
1304
 
1291
1305
  const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
1292
1306
  return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => {
@@ -1482,7 +1496,7 @@
1482
1496
  };
1483
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] }));
1484
1498
 
1485
- const initialFormState$7 = {
1499
+ const initialFormState$8 = {
1486
1500
  ...initialUserFormState,
1487
1501
  typeForm: { key: 'ANTIFRAUD', text: 'Предупреждение о мошенничестве' },
1488
1502
  phone: '',
@@ -1491,7 +1505,7 @@
1491
1505
  comment: '',
1492
1506
  consentDataProcessing: false,
1493
1507
  };
1494
- const feedbackValidator$1 = objectValidator({
1508
+ const feedbackValidator$2 = objectValidator({
1495
1509
  typeForm: defaultValidator,
1496
1510
  surname: defaultValidator,
1497
1511
  name: nameValidator,
@@ -1507,19 +1521,17 @@
1507
1521
  const submitData = {
1508
1522
  ...usedFields,
1509
1523
  typeForm: typeForm.key,
1510
- phone: phone.replace(/[^+\d]/g, ''),
1524
+ phone: formatPhone(phone),
1511
1525
  };
1512
- isValidationSuccess(feedbackValidator$1(formState)) && onSubmit(submitData, true);
1526
+ isValidationSuccess(feedbackValidator$2(formState)) && onSubmit(submitData, true);
1513
1527
  }, [onSubmit]);
1514
- const [, { field, ...formProps }] = useForm(initialFormState$7, handleSubmit);
1528
+ const [, { field, ...formProps }] = useForm(initialFormState$8, handleSubmit);
1515
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)] }) }) }));
1516
1530
  });
1517
1531
 
1518
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) })] }) }));
1519
1533
 
1520
- const renderRegion$1 = ({ regions, field }) => (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) }));
1521
-
1522
- const initialFormState$6 = {
1534
+ const initialFormState$7 = {
1523
1535
  name: '',
1524
1536
  phone: '',
1525
1537
  inn: '',
@@ -1543,15 +1555,15 @@
1543
1555
  name,
1544
1556
  inn,
1545
1557
  mail,
1546
- phone: phone.replace(/[^+\d]/g, ''),
1558
+ phone: formatPhone(phone),
1547
1559
  });
1548
1560
  }, [onSubmit]);
1549
- const [, { field, ...formProps }] = useForm(initialFormState$6, handleSubmit);
1561
+ const [, { field, ...formProps }] = useForm(initialFormState$7, handleSubmit);
1550
1562
  const regions = useGetRegions();
1551
- return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderRegion$1({ regions, field }), renderBusinessCardDataOrganization(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1563
+ return (jsxs("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: [renderRegion$1(regions, field), renderBusinessCardDataOrganization(field), renderSubmitButton(button), jsx(Footnote, { link: link })] }));
1552
1564
  });
1553
1565
 
1554
- const initialFormState$5 = {
1566
+ const initialFormState$6 = {
1555
1567
  ...initialUserFormState,
1556
1568
  typeForm: { key: 'CORRUPTION', text: 'Факты коррупции' },
1557
1569
  phone: '',
@@ -1559,7 +1571,7 @@
1559
1571
  comment: '',
1560
1572
  consentDataProcessing: false,
1561
1573
  };
1562
- const feedbackValidator = objectValidator({
1574
+ const feedbackValidator$1 = objectValidator({
1563
1575
  typeForm: defaultValidator,
1564
1576
  surname: defaultValidator,
1565
1577
  name: nameValidator,
@@ -1576,13 +1588,13 @@
1576
1588
  ...usedFields,
1577
1589
  typeForm: typeForm.key,
1578
1590
  regionBranch: region?.text,
1579
- phone: phone.replace(/[^+\d]/g, ''),
1591
+ phone: formatPhone(phone),
1580
1592
  };
1581
- isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
1593
+ isValidationSuccess(feedbackValidator$1(formState)) && onSubmit(submitData, true);
1582
1594
  }, [onSubmit]);
1583
- const [, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
1584
- const branch = useGetRegions();
1585
- return (jsx("form", { className: formStyle$1, onSubmit: formProps.onSubmit, children: jsx(ApplicationFieldsetLayout, { firstChildren: jsxs("div", { className: oneColumnFormStyle, children: [renderUserData(field, false), jsx(SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: branch.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }), 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)] }) }) }));
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)] }) }) }));
1586
1598
  });
1587
1599
 
1588
1600
  const BRANCHES_URL = '/api/v1/branches';
@@ -1665,12 +1677,12 @@
1665
1677
 
1666
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') }) }) }));
1667
1679
 
1668
- const renderRegionDepartment = ({ title, regions, branches, field, }) => (jsx(ApplicationFieldsetLayout, { title: title, firstChildren: jsx("div", { className: formChildrenStyle, children: jsx(SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) }), 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 = '' }) => ({
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 = '' }) => ({
1669
1681
  key: branchCode,
1670
1682
  text: address,
1671
1683
  })), ...withValidator(field('department'), defaultValidator) }) }) }));
1672
1684
 
1673
- const initialFormState$4 = {
1685
+ const initialFormState$5 = {
1674
1686
  amount: MIN_CREDIT_AMOUNT,
1675
1687
  term: 12,
1676
1688
  fullName: '',
@@ -1698,20 +1710,20 @@
1698
1710
  fullName,
1699
1711
  inn,
1700
1712
  name,
1701
- phone: phone.replace(/[^+\d]/g, ''),
1713
+ phone: formatPhone(phone),
1702
1714
  mail,
1703
1715
  region: region?.text || '',
1704
1716
  department: department?.text || '',
1705
1717
  partnerComments: `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`,
1706
1718
  });
1707
1719
  }, [onSubmit]);
1708
- const [formState, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
1720
+ const [formState, { field, ...formProps }] = useForm(initialFormState$5, handleSubmit);
1709
1721
  const regions = useGetRegions();
1710
1722
  const branches = useBranches(formState.region?.key).filter((branch) => branch?.address);
1711
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 })] }));
1712
1724
  });
1713
1725
 
1714
- const initialFormState$3 = {
1726
+ const initialFormState$4 = {
1715
1727
  name: '',
1716
1728
  phone: '',
1717
1729
  };
@@ -1726,10 +1738,10 @@
1726
1738
  onSubmit({
1727
1739
  typeForm: 'dpst',
1728
1740
  name,
1729
- phone: phone.replace(/[^+\d]/g, ''),
1741
+ phone: formatPhone(phone),
1730
1742
  });
1731
1743
  }, [onSubmit]);
1732
- const [, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
1744
+ const [, { field, ...formProps }] = useForm(initialFormState$4, handleSubmit);
1733
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 })] }) }) }));
1734
1746
  });
1735
1747
 
@@ -1776,7 +1788,7 @@
1776
1788
  name: formState.name,
1777
1789
  middleName: formState.middleName,
1778
1790
  feedbackMethod: formState.feedbackMethod.text,
1779
- phoneNumber: formState.phone.replace(/[^+\d]/g, ''),
1791
+ phoneNumber: formatPhone(formState.phone),
1780
1792
  secondaryPhoneNumber: formState.secondaryPhone?.replace(/[^+\d]/g, ''),
1781
1793
  email: formState.email,
1782
1794
  bankEmpolee: formState.bankEmpolee,
@@ -1802,7 +1814,7 @@
1802
1814
  inn: formState.inn,
1803
1815
  fullName: formState.fullName,
1804
1816
  feedbackMethod: formState.feedbackMethod.text,
1805
- phone: formState.phone.replace(/[^+\d]/g, ''),
1817
+ phone: formatPhone(formState.phone),
1806
1818
  secondaryPhoneNumber: formState?.secondaryPhone,
1807
1819
  mail: formState.email,
1808
1820
  bankEmpolee: formState.bankEmpolee,
@@ -1825,7 +1837,7 @@
1825
1837
  middleName: formState.middleName,
1826
1838
  birthday: formState.birthday,
1827
1839
  feedbackMethod: formState.feedbackMethod.text,
1828
- phoneNumber: formState.phone.replace(/[^+\d]/g, ''),
1840
+ phoneNumber: formatPhone(formState.phone),
1829
1841
  email: formState.email,
1830
1842
  comment: formState.comment,
1831
1843
  consentDataProcessing: formState.consentDataProcessing,
@@ -1833,7 +1845,7 @@
1833
1845
  isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
1834
1846
  };
1835
1847
 
1836
- const initialFormState$2 = {
1848
+ const initialFormState$3 = {
1837
1849
  ...initialUserFormState,
1838
1850
  typeForm: { key: 'FEEDBACK', text: 'Задать вопрос по продуктам и услугам' },
1839
1851
  serviceDirection: { key: 'Физическое лицо' },
@@ -1857,12 +1869,12 @@
1857
1869
  handleSubmitIndividual(feedbackFormState, onSubmit);
1858
1870
  }
1859
1871
  }, [onSubmit]);
1860
- const [formState, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
1861
- const branch = useGetRegions();
1862
- const regions = useBranches(formState?.region?.key).filter((region) => region?.address);
1872
+ const [formState, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
1873
+ const regions = useGetRegions();
1874
+ const addressByBranch = useBranches(formState?.region?.key).filter((branch) => branch?.address);
1863
1875
  const isQualityService = field('typeForm').value?.key === 'FEEDBACK_QS';
1864
1876
  const isLegalEntity = getLegalEntity(field('typeForm').value?.key, field('serviceDirection').value?.key);
1865
- 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, jsx(SelectControl, { label: "\u0424\u0438\u043B\u0438\u0430\u043B \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B", isSearch: true, options: branch.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }), isQualityService ? (jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441*", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: regions.map(({ branchCode = '', address = '' }) => ({
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 = '' }) => ({
1866
1878
  key: branchCode,
1867
1879
  text: address,
1868
1880
  })), ...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)] }) }) }));
@@ -1881,7 +1893,7 @@
1881
1893
  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] }));
1882
1894
  });
1883
1895
 
1884
- const initialFormState$1 = {
1896
+ const initialFormState$2 = {
1885
1897
  ...initialUserFormState,
1886
1898
  phone: '',
1887
1899
  email: '',
@@ -1907,15 +1919,43 @@
1907
1919
  middleName,
1908
1920
  email,
1909
1921
  consentDataProcessing,
1910
- phoneNumber: phone.replace(/[^+\d]/g, ''),
1922
+ phoneNumber: formatPhone(phone),
1911
1923
  birthday: birthday?.toISOString().slice(0, 10) || '',
1912
1924
  product: product || '',
1913
1925
  }, true);
1914
1926
  }, [onSubmit]);
1915
- const [, { field, ...formProps }] = useForm(initialFormState$1, handleSubmit);
1927
+ const [, { field, ...formProps }] = useForm(initialFormState$2, handleSubmit);
1916
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)] }));
1917
1929
  });
1918
1930
 
1931
+ const initialFormState$1 = {
1932
+ ...initialUserFormState,
1933
+ typeForm: { key: 'SELFCOLLECTION', text: 'Самоинкассация' },
1934
+ fullName: '',
1935
+ phone: '',
1936
+ };
1937
+ const feedbackValidator = objectValidator({
1938
+ typeForm: defaultValidator,
1939
+ region: defaultValidator,
1940
+ fullName: defaultValidator,
1941
+ phone: phoneValidator,
1942
+ });
1943
+ const ApplicationFormSelfCollection = JSX(({ button, link, onSubmit }) => {
1944
+ const handleSubmit = useCallback((formState) => {
1945
+ const { typeForm, region, fullName, phone } = formState;
1946
+ const submitData = {
1947
+ typeForm: typeForm.key,
1948
+ region: region?.text,
1949
+ name: fullName,
1950
+ phone: formatPhone(phone),
1951
+ };
1952
+ isValidationSuccess(feedbackValidator(formState)) && onSubmit(submitData, true);
1953
+ }, [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 })] }) }) }));
1957
+ });
1958
+
1919
1959
  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" })] })] }));
1920
1960
 
1921
1961
  const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "font-sans flex gap-s items-center relative cursor-pointer", children: [jsx("input", { className: "appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer", type: "radio", value: value, name: name, checked: checked, onChange: (_) => onChange(_.target.value) }), text ? jsx(Text, { color: "text-primary-text", children: text }) : null] }) })));
@@ -1971,7 +2011,7 @@
1971
2011
  typeForm: 'KVED',
1972
2012
  fullName,
1973
2013
  name,
1974
- phone: phone.replace(/[^+\d]/g, ''),
2014
+ phone: formatPhone(phone),
1975
2015
  text,
1976
2016
  vedTypes: getVedTypes(vedTypes),
1977
2017
  PartnerComments: text,
@@ -2000,6 +2040,7 @@
2000
2040
  ApplicationFormFeedback,
2001
2041
  ApplicationFormAntiFraud,
2002
2042
  ApplicationFormCorruption,
2043
+ ApplicationFormSelfCollection,
2003
2044
  };
2004
2045
 
2005
2046
  const ResponseNotification = JSX(({ responseType }) => {
@@ -3374,12 +3415,12 @@
3374
3415
  return (jsxs("div", { className: "py-lg border-b border-main-divider", children: [title ? (jsx("div", { className: "opacity-80", children: jsx(Text, { size: "text-m", color: "text-secondary-text", children: title }) })) : null, description ? (jsx("div", { className: "mt-2xs", children: jsx(Text, { size: "text-xl", color: "text-primary-text", children: description }) })) : null, buttons?.length ? (jsx("div", { className: "text-primary-main", children: renderButtonsSection(buttons) })) : null] }, String(i)));
3375
3416
  };
3376
3417
 
3377
- const VISIBLE_CELLS_COUNT = 1;
3378
- const CarouselTariffsCard = JSX(({ className = '', title, align = 'text-center', icon, button, cardCells = [], ...rest }) => {
3418
+ const CarouselTariffsCard = JSX(({ className = '', title, align = 'text-center', icon, button, visibleCellsCount = 1, cardCells = [], ...rest }) => {
3379
3419
  const cellsNode = cardCells.map(renderCardInfo);
3380
- const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
3381
- const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
3382
- return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [isIcon(icon) ? (jsx("div", { className: "self-center", children: jsx(Img, { image: icon }) })) : null, title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button ? jsx(LinkButton, { className: "w-full mt-m mb-lg", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$2 : null })) : null] }));
3420
+ const [visibleCells, hiddenCells] = visibleCellsCount > 0
3421
+ ? [cellsNode.slice(0, visibleCellsCount), cellsNode.slice(visibleCellsCount)]
3422
+ : [cellsNode, []];
3423
+ return (jsxs(BlockWrapper, { className: style('flex flex-col', className), defaultPadding: "p-2xl", ...rest, children: [isIcon(icon) ? (jsx("div", { className: "self-center", children: jsx(Img, { image: icon }) })) : null, title ? (jsx(Heading, { className: style('pt-xs', align), headingType: "h5", title: title })) : null, button?.text ? jsx(LinkButton, { className: "w-full mt-m mb-lg", ...button }) : null, hiddenCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$2 : null })) : (jsx("div", { children: visibleCells }))] }));
3383
3424
  });
3384
3425
  const renderFoldButton$2 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center", onClick: onToggle, children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
3385
3426
 
@@ -3951,7 +3992,7 @@
3951
3992
  transparent: 'text-white',
3952
3993
  };
3953
3994
  const renderImage = (bgColor, image, size) => {
3954
- return image?.src ? (jsx(Img, { image: image, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, pathPrefix: "/wcms-resources/" })) : (jsx(Img, { image: {
3995
+ return image?.src ? (jsx(Img, { image: image, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height })) : (jsx(Img, { image: {
3955
3996
  icon: image?.icon || 'LogoIcon',
3956
3997
  iconVersion: ICON_VERSION_MAP[bgColor],
3957
3998
  }, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height }));
@@ -3961,8 +4002,8 @@
3961
4002
  'bg-white': 'text-primary-text',
3962
4003
  transparent: 'text-white',
3963
4004
  };
3964
- const Logo = JSX(({ className, href = '/', logo, children, targetBlank, bgColor = 'bg-white', showTitle = true, }) => (jsxs("a", { className: style('inline-flex items-center font-sans no-underline', className), href: href, target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage(bgColor, logo?.image, ICON_SIZE), showTitle
3965
- ? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title || 'Россельхозбанк' }) }))
4005
+ const Logo = JSX(({ className, href = '/', logo, children, targetBlank, bgColor = 'bg-white', showTitle = true, }) => (jsxs("a", { className: style('inline-flex items-center font-sans no-underline', className), href: href, target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title ?? 'Россельхозбанк', children: [renderImage(bgColor, logo?.image, ICON_SIZE), showTitle
4006
+ ? children ?? (jsx("div", { className: "ml-s", children: jsx(Text, { font: "font-medium", color: TEXT_COLOR[bgColor], size: logoTitleSizeStyle, children: logo?.title ?? 'Россельхозбанк' }) }))
3966
4007
  : null] })));
3967
4008
 
3968
4009
  const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: jsx(Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
@@ -4493,14 +4534,14 @@
4493
4534
  'bg-white': 'primary',
4494
4535
  transparent: 'transparent',
4495
4536
  };
4496
- const Header = JSX(({ className, bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
4537
+ const Header = JSX(({ className, bgColor = 'bg-white', logo: customLogo, version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
4497
4538
  const { topItems, logo, officesLink, defaultLocation } = useSitemap(rest.options?.page?.fallback);
4498
4539
  const [, activeTopItem] = useActiveRoute(topItems);
4499
4540
  const { internetBankUrl } = useSWRResource(projectSettings.PORTAL_DATA || 'portal-data', {
4500
4541
  fallback: rest.options?.page?.fallback,
4501
4542
  pathDir: joinPath(projectSettings.BASE_PATH, 'portal-resources'),
4502
4543
  });
4503
- return (jsx(BlockWrapper, { tag: "header", className: style('pt-3xl px-20', activeTopItem?.items?.length ? 'pb-m' : 'pb-lg', className), defaultPadding: "", version: version, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-3xl", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", officesLink: officesLink, defaultLocation: defaultLocation })] }), jsx("div", { className: style('mt-xl h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, version: version, internetBankUrl: internetBankUrl })) : null] }) }));
4544
+ return (jsx(BlockWrapper, { tag: "header", className: style('pt-3xl px-20', activeTopItem?.items?.length ? 'pb-m' : 'pb-lg', className), defaultPadding: "", version: version, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-3xl", bgColor: bgColor, logo: customLogo ?? logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", officesLink: officesLink, defaultLocation: defaultLocation })] }), jsx("div", { className: style('mt-xl h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, version: version, internetBankUrl: internetBankUrl })) : null] }) }));
4504
4545
  });
4505
4546
 
4506
4547
  const gapStyles = {
@@ -6033,7 +6074,7 @@
6033
6074
  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" }) }));
6034
6075
  }
6035
6076
 
6036
- const packageVersion = "0.14.142";
6077
+ const packageVersion = "0.14.144";
6037
6078
 
6038
6079
  exports.Blocks = Blocks;
6039
6080
  exports.ContentPage = ContentPage;