@redneckz/wildless-cms-uni-blocks 0.14.142 → 0.14.144

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 (377) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +112 -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/ProductBlock/ProductBlock.d.ts +2 -2
  17. package/bundle/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  18. package/bundle/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  19. package/bundle/ui-kit/Unit/UnitProps.d.ts +3 -0
  20. package/bundle/utils/formatPhone.d.ts +1 -0
  21. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
  22. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  23. package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
  24. package/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  25. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
  26. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  27. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  28. package/dist/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
  29. package/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  30. package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  31. package/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  32. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  33. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
  34. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  35. package/dist/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
  36. package/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  37. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
  38. package/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  39. package/dist/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  40. package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +48 -0
  41. package/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
  42. package/dist/components/ApplicationForm/ApplicationFormWed.js +2 -1
  43. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  44. package/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  45. package/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  46. package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  47. package/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  48. package/dist/components/ApplicationForm/acquiringTypes.js +8 -7
  49. package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
  50. package/dist/components/ApplicationForm/handleSubmit.js +4 -3
  51. package/dist/components/ApplicationForm/handleSubmit.js.map +1 -1
  52. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  53. package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  54. package/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  55. package/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -1
  56. package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  57. package/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  58. package/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  59. package/dist/components/ApplicationForm/renderRegion.d.ts +6 -6
  60. package/dist/components/ApplicationForm/renderRegion.js +4 -1
  61. package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
  62. package/dist/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  63. package/dist/components/ApplicationForm/renderRegionDepartment.js +2 -1
  64. package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  65. package/dist/components/ApplicationForm/renderUserData.d.ts +1 -1
  66. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  67. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
  68. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  69. package/dist/components/ContentPage/renderContentPageHead.js +2 -2
  70. package/dist/components/ContentPage/renderContentPageHead.js.map +1 -1
  71. package/dist/components/ProductBlock/ProductBlock.d.ts +2 -2
  72. package/dist/components/ProductBlock/ProductBlock.js +1 -0
  73. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  74. package/dist/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  75. package/dist/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  76. package/dist/ui-kit/BaseTile/BaseTile.js +0 -1
  77. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  78. package/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
  79. package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  80. package/dist/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
  81. package/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  82. package/dist/ui-kit/Unit/UnitProps.d.ts +3 -0
  83. package/dist/utils/formatPhone.d.ts +1 -0
  84. package/dist/utils/formatPhone.js +5 -0
  85. package/dist/utils/formatPhone.js.map +1 -0
  86. package/lib/common.css +1 -1
  87. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  88. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
  89. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  90. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
  91. package/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  92. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
  93. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  94. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  95. package/lib/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
  96. package/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  97. package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  98. package/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  99. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  100. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
  101. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  102. package/lib/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
  103. package/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  104. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
  105. package/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  106. package/lib/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  107. package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +46 -0
  108. package/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
  109. package/lib/components/ApplicationForm/ApplicationFormWed.js +2 -1
  110. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  111. package/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  112. package/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  113. package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  114. package/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  115. package/lib/components/ApplicationForm/acquiringTypes.js +8 -7
  116. package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
  117. package/lib/components/ApplicationForm/handleSubmit.js +4 -3
  118. package/lib/components/ApplicationForm/handleSubmit.js.map +1 -1
  119. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  120. package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  121. package/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  122. package/lib/components/ApplicationForm/renderAcquiringRegion.js +2 -1
  123. package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  124. package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  125. package/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  126. package/lib/components/ApplicationForm/renderRegion.d.ts +6 -6
  127. package/lib/components/ApplicationForm/renderRegion.js +4 -1
  128. package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
  129. package/lib/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  130. package/lib/components/ApplicationForm/renderRegionDepartment.js +2 -1
  131. package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  132. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  133. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
  134. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  135. package/lib/components/ContentPage/renderContentPageHead.js +2 -2
  136. package/lib/components/ContentPage/renderContentPageHead.js.map +1 -1
  137. package/lib/components/ProductBlock/ProductBlock.d.ts +2 -2
  138. package/lib/components/ProductBlock/ProductBlock.js +1 -0
  139. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  140. package/lib/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  141. package/lib/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  142. package/lib/ui-kit/BaseTile/BaseTile.js +0 -1
  143. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  144. package/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
  145. package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  146. package/lib/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
  147. package/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  148. package/lib/ui-kit/Unit/UnitProps.d.ts +3 -0
  149. package/lib/utils/formatPhone.d.ts +1 -0
  150. package/lib/utils/formatPhone.js +2 -0
  151. package/lib/utils/formatPhone.js.map +1 -0
  152. package/mobile/bundle/bundle.umd.js +112 -72
  153. package/mobile/bundle/bundle.umd.min.js +1 -1
  154. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  155. package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  156. package/mobile/bundle/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  157. package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  158. package/mobile/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  159. package/mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  160. package/mobile/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  161. package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  162. package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +6 -6
  163. package/mobile/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  164. package/mobile/bundle/components/ApplicationForm/renderUserData.d.ts +1 -1
  165. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  166. package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +2 -2
  167. package/mobile/bundle/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  168. package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  169. package/mobile/bundle/ui-kit/Unit/UnitProps.d.ts +3 -0
  170. package/mobile/bundle/utils/formatPhone.d.ts +1 -0
  171. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
  172. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  173. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
  174. package/mobile/dist/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  175. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
  176. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  177. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  178. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
  179. package/mobile/dist/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  180. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  181. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  182. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  183. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
  184. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  185. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
  186. package/mobile/dist/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  187. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
  188. package/mobile/dist/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  189. package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  190. package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js +48 -0
  191. package/mobile/dist/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
  192. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +2 -1
  193. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  194. package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  195. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +2 -0
  196. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  197. package/mobile/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  198. package/mobile/dist/components/ApplicationForm/acquiringTypes.js +8 -7
  199. package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
  200. package/mobile/dist/components/ApplicationForm/handleSubmit.js +4 -3
  201. package/mobile/dist/components/ApplicationForm/handleSubmit.js.map +1 -1
  202. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  203. package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  204. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  205. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +2 -1
  206. package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  207. package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  208. package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  209. package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +6 -6
  210. package/mobile/dist/components/ApplicationForm/renderRegion.js +4 -1
  211. package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
  212. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  213. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +2 -1
  214. package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  215. package/mobile/dist/components/ApplicationForm/renderUserData.d.ts +1 -1
  216. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  217. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
  218. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  219. package/mobile/dist/components/ContentPage/renderContentPageHead.js +2 -2
  220. package/mobile/dist/components/ContentPage/renderContentPageHead.js.map +1 -1
  221. package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +2 -2
  222. package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -0
  223. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  224. package/mobile/dist/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  225. package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  226. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +0 -1
  227. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  228. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
  229. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  230. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
  231. package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  232. package/mobile/dist/ui-kit/Unit/UnitProps.d.ts +3 -0
  233. package/mobile/dist/utils/formatPhone.d.ts +1 -0
  234. package/mobile/dist/utils/formatPhone.js +5 -0
  235. package/mobile/dist/utils/formatPhone.js.map +1 -0
  236. package/mobile/lib/common.css +1 -1
  237. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +19 -12
  238. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  239. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js +2 -2
  240. package/mobile/lib/components/ApplicationForm/ApplicationFormAntiFraud.js.map +1 -1
  241. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +3 -2
  242. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  243. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +9 -2
  244. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js +5 -4
  245. package/mobile/lib/components/ApplicationForm/ApplicationFormCorruption.js.map +1 -1
  246. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +13 -0
  247. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +2 -1
  248. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  249. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +2 -1
  250. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  251. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js +4 -3
  252. package/mobile/lib/components/ApplicationForm/ApplicationFormFeedback.js.map +1 -1
  253. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js +2 -1
  254. package/mobile/lib/components/ApplicationForm/ApplicationFormIndividuals.js.map +1 -1
  255. package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.d.ts +10 -0
  256. package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js +46 -0
  257. package/mobile/lib/components/ApplicationForm/ApplicationFormSelfCollection.js.map +1 -0
  258. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +2 -1
  259. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  260. package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +1 -0
  261. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +2 -0
  262. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -1
  263. package/mobile/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -2
  264. package/mobile/lib/components/ApplicationForm/acquiringTypes.js +8 -7
  265. package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
  266. package/mobile/lib/components/ApplicationForm/handleSubmit.js +4 -3
  267. package/mobile/lib/components/ApplicationForm/handleSubmit.js.map +1 -1
  268. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
  269. package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
  270. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +1 -1
  271. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +2 -1
  272. package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
  273. package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +1 -1
  274. package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  275. package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +6 -6
  276. package/mobile/lib/components/ApplicationForm/renderRegion.js +4 -1
  277. package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
  278. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +1 -1
  279. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +2 -1
  280. package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
  281. package/mobile/lib/components/ApplicationForm/renderUserData.d.ts +1 -1
  282. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -0
  283. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +5 -5
  284. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  285. package/mobile/lib/components/ContentPage/renderContentPageHead.js +2 -2
  286. package/mobile/lib/components/ContentPage/renderContentPageHead.js.map +1 -1
  287. package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +2 -2
  288. package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -0
  289. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  290. package/mobile/lib/components/UnitBlock/UnitBlockContent.d.ts +1 -0
  291. package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +2 -2
  292. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +0 -1
  293. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  294. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
  295. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  296. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js +4 -5
  297. package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.js.map +1 -1
  298. package/mobile/lib/ui-kit/Unit/UnitProps.d.ts +3 -0
  299. package/mobile/lib/utils/formatPhone.d.ts +1 -0
  300. package/mobile/lib/utils/formatPhone.js +2 -0
  301. package/mobile/lib/utils/formatPhone.js.map +1 -0
  302. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +23 -15
  303. package/mobile/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +2 -3
  304. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +3 -3
  305. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +12 -2
  306. package/mobile/src/components/ApplicationForm/ApplicationFormCorruption.tsx +5 -10
  307. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +16 -3
  308. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -1
  309. package/mobile/src/components/ApplicationForm/ApplicationFormFeedback.tsx +5 -10
  310. package/mobile/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +2 -1
  311. package/mobile/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +81 -0
  312. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -1
  313. package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  314. package/mobile/src/components/ApplicationForm/acquiringTypes.ts +11 -9
  315. package/mobile/src/components/ApplicationForm/handleSubmit.tsx +4 -3
  316. package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
  317. package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +4 -12
  318. package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
  319. package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +1 -1
  320. package/mobile/src/components/ApplicationForm/renderRegion.tsx +29 -15
  321. package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -12
  322. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -9
  323. package/mobile/src/components/ContentPage/renderContentPageHead.tsx +2 -2
  324. package/mobile/src/components/ProductBlock/ProductBlock.tsx +14 -10
  325. package/mobile/src/components/UnitBlock/UnitBlockContent.ts +1 -0
  326. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +2 -4
  327. package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -3
  328. package/mobile/src/ui-kit/InnerTable/renderInnerTableRow.tsx +5 -14
  329. package/mobile/src/ui-kit/Unit/UnitProps.ts +3 -0
  330. package/mobile/src/utils/formatPhone.ts +1 -0
  331. package/package.json +1 -1
  332. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +14 -0
  333. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +23 -15
  334. package/src/components/ApplicationForm/ApplicationFormAntiFraud.tsx +2 -3
  335. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +3 -3
  336. package/src/components/ApplicationForm/ApplicationFormContent.ts +12 -2
  337. package/src/components/ApplicationForm/ApplicationFormCorruption.tsx +5 -10
  338. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +16 -3
  339. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +2 -1
  340. package/src/components/ApplicationForm/ApplicationFormFeedback.tsx +5 -10
  341. package/src/components/ApplicationForm/ApplicationFormIndividuals.tsx +2 -1
  342. package/src/components/ApplicationForm/ApplicationFormSelfCollection.tsx +81 -0
  343. package/src/components/ApplicationForm/ApplicationFormWed.tsx +2 -1
  344. package/src/components/ApplicationForm/EmbeddableForms.tsx +2 -0
  345. package/src/components/ApplicationForm/acquiringTypes.ts +11 -9
  346. package/src/components/ApplicationForm/handleSubmit.tsx +4 -3
  347. package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +4 -4
  348. package/src/components/ApplicationForm/renderAcquiringRegion.tsx +4 -12
  349. package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +1 -1
  350. package/src/components/ApplicationForm/renderCreditParameters.tsx +1 -1
  351. package/src/components/ApplicationForm/renderRegion.tsx +29 -15
  352. package/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -12
  353. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +23 -9
  354. package/src/components/ContentPage/renderContentPageHead.tsx +2 -2
  355. package/src/components/ProductBlock/ProductBlock.tsx +14 -10
  356. package/src/components/UnitBlock/UnitBlockContent.ts +1 -0
  357. package/src/ui-kit/BaseTile/BaseTile.tsx +2 -4
  358. package/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -3
  359. package/src/ui-kit/InnerTable/renderInnerTableRow.tsx +5 -14
  360. package/src/ui-kit/Unit/UnitProps.ts +3 -0
  361. package/src/utils/formatPhone.ts +1 -0
  362. package/bundle/components/ApplicationForm/CreditFormState.d.ts +0 -13
  363. package/dist/components/ApplicationForm/CreditFormState.d.ts +0 -13
  364. package/dist/components/ApplicationForm/CreditFormState.js +0 -2
  365. package/dist/components/ApplicationForm/CreditFormState.js.map +0 -1
  366. package/lib/components/ApplicationForm/CreditFormState.d.ts +0 -13
  367. package/lib/components/ApplicationForm/CreditFormState.js +0 -2
  368. package/lib/components/ApplicationForm/CreditFormState.js.map +0 -1
  369. package/mobile/bundle/components/ApplicationForm/CreditFormState.d.ts +0 -13
  370. package/mobile/dist/components/ApplicationForm/CreditFormState.d.ts +0 -13
  371. package/mobile/dist/components/ApplicationForm/CreditFormState.js +0 -2
  372. package/mobile/dist/components/ApplicationForm/CreditFormState.js.map +0 -1
  373. package/mobile/lib/components/ApplicationForm/CreditFormState.d.ts +0 -13
  374. package/mobile/lib/components/ApplicationForm/CreditFormState.js +0 -2
  375. package/mobile/lib/components/ApplicationForm/CreditFormState.js.map +0 -1
  376. package/mobile/src/components/ApplicationForm/CreditFormState.ts +0 -14
  377. 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
 
@@ -5674,12 +5715,11 @@
5674
5715
  }
5675
5716
  const [headerColumn, ...columns] = rowData;
5676
5717
  const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
5677
- return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "w-56 min-w-56 py-lg", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
5718
+ return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
5678
5719
  transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
5679
- }, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? (jsx(Text, { size: "text-xl", font: "font-light", children: _.data })) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
5720
+ }, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx(Text, { size: "text-xl", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
5680
5721
  };
5681
- const ColsColor = (isEqual = false) => `${isEqual ? 'text-secondary-text' : ''}`;
5682
- const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: "flex", children: cols.map((data, i) => (jsx("div", { className: "w-20 mx-lg", children: jsx(Text, { size: "text-h6", color: ColsColor(rowIndex === 0), children: data }) }, String(i)))) })) : null;
5722
+ const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: style('flex', rowIndex === 0 ? 'text-secondary-text' : ''), children: cols.map((data, i) => (jsx("div", { className: "w-20 mx-lg", children: jsx(Text, { size: "text-h6", font: "font-light", children: data }) }, String(i)))) })) : null;
5683
5723
 
5684
5724
  const InnerTableBodyItem = JSX(({ rows }) => {
5685
5725
  const rowsLength = rows?.[0]?.length ?? 0;
@@ -5698,7 +5738,7 @@
5698
5738
  const InnerTableBody = JSX(({ activeTabIndex, items }) => {
5699
5739
  return (jsx("div", { children: items.map((_, tableIdx) => {
5700
5740
  const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
5701
- return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex p-m bg-white @4xl:bg-gray text-center justify-center relative", children: jsx(Text, { size: "text-xl", font: "font-light", children: _.title }) }), jsx("div", { className: "w-full pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
5741
+ return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex py-m sm:px-m bg-white @4xl:bg-gray relative", children: jsx(Text, { size: "text-xl", align: "text-left", children: _.title }) }), jsx("div", { className: "w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
5702
5742
  }) }));
5703
5743
  });
5704
5744
 
@@ -6034,7 +6074,7 @@
6034
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" }) }));
6035
6075
  }
6036
6076
 
6037
- const packageVersion = "0.14.141";
6077
+ const packageVersion = "0.14.143";
6038
6078
 
6039
6079
  exports.Blocks = Blocks;
6040
6080
  exports.ContentPage = ContentPage;