@redneckz/wildless-cms-uni-blocks 0.7.8 → 0.8.0

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 (736) hide show
  1. package/bundle/ProjectSettings.d.ts +4 -4
  2. package/bundle/api/CorporateLeadAPI.d.ts +15 -0
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +565 -324
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  7. package/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  8. package/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  9. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  10. package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  11. package/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  12. package/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  13. package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  14. package/bundle/components/ApplicationForm/Footnote.d.ts +6 -0
  15. package/bundle/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  16. package/bundle/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  17. package/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  18. package/bundle/components/ApplicationForm/models.d.ts +6 -0
  19. package/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  20. package/bundle/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  21. package/bundle/components/ApplicationForm/renderContacts.d.ts +2 -0
  22. package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  23. package/bundle/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  24. package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  25. package/bundle/components/ApplicationForm/renderSelects.d.ts +11 -0
  26. package/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  27. package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  28. package/bundle/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  29. package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  30. package/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  31. package/bundle/icons/IconName.d.ts +10 -2
  32. package/bundle/services/sitemap/isHrefActive.d.ts +1 -2
  33. package/bundle/services/sitemap/isSubItemActive.d.ts +3 -2
  34. package/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
  35. package/bundle/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
  36. package/bundle/ui-kit/TopItem/TopItem.d.ts +0 -1
  37. package/bundle/utils/adjustHref.d.ts +1 -4
  38. package/bundle/utils/url.d.ts +4 -2
  39. package/cosmos-static/icons/MailIcon.svg +1 -0
  40. package/cosmos-static/icons/PhoneIcon.svg +1 -0
  41. package/cosmos-static/icons/ResponceFailIcon.svg +1 -0
  42. package/cosmos-static/icons/ResponceOKIcon.svg +1 -0
  43. package/dist/ProjectSettings.d.ts +4 -4
  44. package/dist/ProjectSettings.js +3 -5
  45. package/dist/ProjectSettings.js.map +1 -1
  46. package/dist/api/CorporateLeadAPI.d.ts +15 -0
  47. package/dist/api/CorporateLeadAPI.js +24 -0
  48. package/dist/api/CorporateLeadAPI.js.map +1 -0
  49. package/dist/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  50. package/dist/components/ApplicationForm/ApplicationForm.js +30 -0
  51. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -0
  52. package/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  53. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +55 -0
  54. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
  55. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  56. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +39 -0
  57. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
  58. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  59. package/dist/components/ApplicationForm/ApplicationFormContent.js +2 -0
  60. package/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
  61. package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  62. package/dist/components/ApplicationForm/ApplicationFormCredit.js +59 -0
  63. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
  64. package/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  65. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +26 -0
  66. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
  67. package/dist/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  68. package/dist/components/ApplicationForm/ApplicationFormWed.js +41 -0
  69. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
  70. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  71. package/dist/components/ApplicationForm/ApplicationFormsProps.js +2 -0
  72. package/dist/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
  73. package/dist/components/ApplicationForm/Footnote.d.ts +6 -0
  74. package/dist/components/ApplicationForm/Footnote.js +9 -0
  75. package/dist/components/ApplicationForm/Footnote.js.map +1 -0
  76. package/dist/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  77. package/dist/components/ApplicationForm/ResponseNotification.js +13 -0
  78. package/dist/components/ApplicationForm/ResponseNotification.js.map +1 -0
  79. package/dist/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  80. package/dist/components/ApplicationForm/WrapperSelect.js +13 -0
  81. package/dist/components/ApplicationForm/WrapperSelect.js.map +1 -0
  82. package/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  83. package/dist/components/ApplicationForm/acquiringTypes.js +25 -0
  84. package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -0
  85. package/dist/components/ApplicationForm/models.d.ts +6 -0
  86. package/dist/components/ApplicationForm/models.js +2 -0
  87. package/dist/components/ApplicationForm/models.js.map +1 -0
  88. package/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  89. package/dist/components/ApplicationForm/normalizeSelectedRegion.js +5 -0
  90. package/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
  91. package/dist/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  92. package/dist/components/ApplicationForm/renderBankOffices.js +7 -0
  93. package/dist/components/ApplicationForm/renderBankOffices.js.map +1 -0
  94. package/dist/components/ApplicationForm/renderContacts.d.ts +2 -0
  95. package/dist/components/ApplicationForm/renderContacts.js +7 -0
  96. package/dist/components/ApplicationForm/renderContacts.js.map +1 -0
  97. package/dist/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  98. package/dist/components/ApplicationForm/renderCreditParameters.js +24 -0
  99. package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -0
  100. package/dist/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  101. package/dist/components/ApplicationForm/renderDataOrganization.js +7 -0
  102. package/dist/components/ApplicationForm/renderDataOrganization.js.map +1 -0
  103. package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  104. package/dist/components/ApplicationForm/renderQuestionsInterested.js +7 -0
  105. package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
  106. package/dist/components/ApplicationForm/renderSelects.d.ts +11 -0
  107. package/dist/components/ApplicationForm/renderSelects.js +8 -0
  108. package/dist/components/ApplicationForm/renderSelects.js.map +1 -0
  109. package/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  110. package/dist/components/ApplicationForm/renderSlideCheckboxes.js +7 -0
  111. package/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
  112. package/dist/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  113. package/dist/components/ApplicationForm/renderSubmitButton.js +13 -0
  114. package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -0
  115. package/dist/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  116. package/dist/components/ApplicationForm/useFormHandlers.js +16 -0
  117. package/dist/components/ApplicationForm/useFormHandlers.js.map +1 -0
  118. package/dist/components/Blocks.js +2 -0
  119. package/dist/components/Blocks.js.map +1 -1
  120. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  121. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  122. package/dist/components/ErrorBlock/ErrorBlock.js +3 -1
  123. package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  124. package/dist/components/Header/DropdownMenu.js +4 -1
  125. package/dist/components/Header/DropdownMenu.js.map +1 -1
  126. package/dist/components/Header/Header.js +1 -2
  127. package/dist/components/Header/Header.js.map +1 -1
  128. package/dist/components/Header/HeaderSecondaryMenu.js +1 -2
  129. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  130. package/dist/components/Header/HeaderSubMenu.js +2 -1
  131. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  132. package/dist/components/Header/HeaderSubMenuItem.js +2 -2
  133. package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  134. package/dist/components/OtherProductsItem/OtherProductsItem.js +3 -1
  135. package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  136. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  137. package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  138. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  139. package/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  140. package/dist/hooks/useLink.js +16 -12
  141. package/dist/hooks/useLink.js.map +1 -1
  142. package/dist/icons/IconName.d.ts +10 -2
  143. package/dist/icons/IconName.js +9 -1
  144. package/dist/icons/IconName.js.map +1 -1
  145. package/dist/services/sitemap/isHrefActive.d.ts +1 -2
  146. package/dist/services/sitemap/isHrefActive.js +2 -2
  147. package/dist/services/sitemap/isHrefActive.js.map +1 -1
  148. package/dist/services/sitemap/isSubItemActive.d.ts +3 -2
  149. package/dist/services/sitemap/isSubItemActive.js.map +1 -1
  150. package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
  151. package/dist/services/sitemap/isTopItemActive.js +1 -6
  152. package/dist/services/sitemap/isTopItemActive.js.map +1 -1
  153. package/dist/setup-fixture.js +13 -6
  154. package/dist/setup-fixture.js.map +1 -1
  155. package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -2
  156. package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  157. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -2
  158. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  159. package/dist/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
  160. package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +7 -0
  161. package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
  162. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  163. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  164. package/dist/ui-kit/TopItem/TopItem.d.ts +0 -1
  165. package/dist/ui-kit/TopItem/TopItem.js +2 -2
  166. package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  167. package/dist/utils/adjustHref.d.ts +1 -4
  168. package/dist/utils/adjustHref.js +4 -8
  169. package/dist/utils/adjustHref.js.map +1 -1
  170. package/dist/utils/url.d.ts +4 -2
  171. package/dist/utils/url.js +15 -28
  172. package/dist/utils/url.js.map +1 -1
  173. package/lib/ProjectSettings.d.ts +4 -4
  174. package/lib/ProjectSettings.js +3 -5
  175. package/lib/ProjectSettings.js.map +1 -1
  176. package/lib/api/CorporateLeadAPI.d.ts +15 -0
  177. package/lib/api/CorporateLeadAPI.js +21 -0
  178. package/lib/api/CorporateLeadAPI.js.map +1 -0
  179. package/lib/common.css +1 -1
  180. package/lib/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  181. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +12 -0
  182. package/lib/components/ApplicationForm/ApplicationForm.js +28 -0
  183. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -0
  184. package/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  185. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +53 -0
  186. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
  187. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  188. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +37 -0
  189. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
  190. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  191. package/lib/components/ApplicationForm/ApplicationFormContent.js +2 -0
  192. package/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
  193. package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  194. package/lib/components/ApplicationForm/ApplicationFormCredit.js +57 -0
  195. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
  196. package/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  197. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -0
  198. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
  199. package/lib/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  200. package/lib/components/ApplicationForm/ApplicationFormWed.js +39 -0
  201. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
  202. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  203. package/lib/components/ApplicationForm/ApplicationFormsProps.js +2 -0
  204. package/lib/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
  205. package/lib/components/ApplicationForm/Footnote.d.ts +6 -0
  206. package/lib/components/ApplicationForm/Footnote.js +7 -0
  207. package/lib/components/ApplicationForm/Footnote.js.map +1 -0
  208. package/lib/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  209. package/lib/components/ApplicationForm/ResponseNotification.js +11 -0
  210. package/lib/components/ApplicationForm/ResponseNotification.js.map +1 -0
  211. package/lib/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  212. package/lib/components/ApplicationForm/WrapperSelect.js +11 -0
  213. package/lib/components/ApplicationForm/WrapperSelect.js.map +1 -0
  214. package/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  215. package/lib/components/ApplicationForm/acquiringTypes.js +23 -0
  216. package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -0
  217. package/lib/components/ApplicationForm/models.d.ts +6 -0
  218. package/lib/components/ApplicationForm/models.js +2 -0
  219. package/lib/components/ApplicationForm/models.js.map +1 -0
  220. package/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  221. package/lib/components/ApplicationForm/normalizeSelectedRegion.js +2 -0
  222. package/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
  223. package/lib/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  224. package/lib/components/ApplicationForm/renderBankOffices.js +4 -0
  225. package/lib/components/ApplicationForm/renderBankOffices.js.map +1 -0
  226. package/lib/components/ApplicationForm/renderContacts.d.ts +2 -0
  227. package/lib/components/ApplicationForm/renderContacts.js +4 -0
  228. package/lib/components/ApplicationForm/renderContacts.js.map +1 -0
  229. package/lib/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  230. package/lib/components/ApplicationForm/renderCreditParameters.js +21 -0
  231. package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -0
  232. package/lib/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  233. package/lib/components/ApplicationForm/renderDataOrganization.js +4 -0
  234. package/lib/components/ApplicationForm/renderDataOrganization.js.map +1 -0
  235. package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  236. package/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -0
  237. package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
  238. package/lib/components/ApplicationForm/renderSelects.d.ts +11 -0
  239. package/lib/components/ApplicationForm/renderSelects.js +5 -0
  240. package/lib/components/ApplicationForm/renderSelects.js.map +1 -0
  241. package/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  242. package/lib/components/ApplicationForm/renderSlideCheckboxes.js +4 -0
  243. package/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
  244. package/lib/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  245. package/lib/components/ApplicationForm/renderSubmitButton.js +10 -0
  246. package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -0
  247. package/lib/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  248. package/lib/components/ApplicationForm/useFormHandlers.js +13 -0
  249. package/lib/components/ApplicationForm/useFormHandlers.js.map +1 -0
  250. package/lib/components/Blocks.js +2 -0
  251. package/lib/components/Blocks.js.map +1 -1
  252. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  253. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  254. package/lib/components/ErrorBlock/ErrorBlock.js +3 -1
  255. package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  256. package/lib/components/Header/DropdownMenu.js +4 -1
  257. package/lib/components/Header/DropdownMenu.js.map +1 -1
  258. package/lib/components/Header/Header.js +1 -2
  259. package/lib/components/Header/Header.js.map +1 -1
  260. package/lib/components/Header/HeaderSecondaryMenu.js +1 -2
  261. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  262. package/lib/components/Header/HeaderSubMenu.js +2 -1
  263. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  264. package/lib/components/Header/HeaderSubMenuItem.js +2 -2
  265. package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  266. package/lib/components/OtherProductsItem/OtherProductsItem.js +3 -1
  267. package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  268. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  269. package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  270. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  271. package/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  272. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.d.ts +1 -0
  273. package/lib/hooks/useLink.js +17 -13
  274. package/lib/hooks/useLink.js.map +1 -1
  275. package/lib/icons/IconName.d.ts +10 -2
  276. package/lib/icons/IconName.js +9 -1
  277. package/lib/icons/IconName.js.map +1 -1
  278. package/lib/services/sitemap/isHrefActive.d.ts +1 -2
  279. package/lib/services/sitemap/isHrefActive.js +2 -2
  280. package/lib/services/sitemap/isHrefActive.js.map +1 -1
  281. package/lib/services/sitemap/isSubItemActive.d.ts +3 -2
  282. package/lib/services/sitemap/isSubItemActive.js.map +1 -1
  283. package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
  284. package/lib/services/sitemap/isTopItemActive.js +1 -6
  285. package/lib/services/sitemap/isTopItemActive.js.map +1 -1
  286. package/lib/setup-fixture.js +14 -7
  287. package/lib/setup-fixture.js.map +1 -1
  288. package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -2
  289. package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  290. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -2
  291. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  292. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
  293. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.fixture.d.ts +5 -0
  294. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +5 -0
  295. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
  296. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  297. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  298. package/lib/ui-kit/TopItem/TopItem.d.ts +0 -1
  299. package/lib/ui-kit/TopItem/TopItem.js +2 -2
  300. package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  301. package/lib/utils/adjustHref.d.ts +1 -4
  302. package/lib/utils/adjustHref.js +5 -9
  303. package/lib/utils/adjustHref.js.map +1 -1
  304. package/lib/utils/url.d.ts +4 -2
  305. package/lib/utils/url.js +12 -26
  306. package/lib/utils/url.js.map +1 -1
  307. package/mobile/bundle/ProjectSettings.d.ts +4 -4
  308. package/mobile/bundle/api/CorporateLeadAPI.d.ts +15 -0
  309. package/mobile/bundle/bundle.umd.js +41 -71
  310. package/mobile/bundle/bundle.umd.min.js +1 -1
  311. package/mobile/bundle/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  312. package/mobile/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  313. package/mobile/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  314. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  315. package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  316. package/mobile/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  317. package/mobile/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  318. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  319. package/mobile/bundle/components/ApplicationForm/Footnote.d.ts +6 -0
  320. package/mobile/bundle/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  321. package/mobile/bundle/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  322. package/mobile/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  323. package/mobile/bundle/components/ApplicationForm/models.d.ts +6 -0
  324. package/mobile/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  325. package/mobile/bundle/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  326. package/mobile/bundle/components/ApplicationForm/renderContacts.d.ts +2 -0
  327. package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  328. package/mobile/bundle/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  329. package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  330. package/mobile/bundle/components/ApplicationForm/renderSelects.d.ts +11 -0
  331. package/mobile/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  332. package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  333. package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  334. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  335. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  336. package/mobile/bundle/icons/IconName.d.ts +10 -2
  337. package/mobile/bundle/services/sitemap/isHrefActive.d.ts +1 -2
  338. package/mobile/bundle/services/sitemap/isSubItemActive.d.ts +3 -2
  339. package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
  340. package/mobile/bundle/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
  341. package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +0 -1
  342. package/mobile/bundle/utils/adjustHref.d.ts +1 -4
  343. package/mobile/bundle/utils/url.d.ts +4 -2
  344. package/mobile/dist/ProjectSettings.d.ts +4 -4
  345. package/mobile/dist/ProjectSettings.js +3 -5
  346. package/mobile/dist/ProjectSettings.js.map +1 -1
  347. package/mobile/dist/api/CorporateLeadAPI.d.ts +15 -0
  348. package/mobile/dist/api/CorporateLeadAPI.js +24 -0
  349. package/mobile/dist/api/CorporateLeadAPI.js.map +1 -0
  350. package/mobile/dist/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  351. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +30 -0
  352. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -0
  353. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  354. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +55 -0
  355. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
  356. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  357. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +39 -0
  358. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
  359. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  360. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js +2 -0
  361. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
  362. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  363. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +59 -0
  364. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
  365. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  366. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +26 -0
  367. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
  368. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  369. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +41 -0
  370. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
  371. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  372. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js +2 -0
  373. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
  374. package/mobile/dist/components/ApplicationForm/Footnote.d.ts +6 -0
  375. package/mobile/dist/components/ApplicationForm/Footnote.js +9 -0
  376. package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -0
  377. package/mobile/dist/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  378. package/mobile/dist/components/ApplicationForm/ResponseNotification.js +13 -0
  379. package/mobile/dist/components/ApplicationForm/ResponseNotification.js.map +1 -0
  380. package/mobile/dist/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  381. package/mobile/dist/components/ApplicationForm/WrapperSelect.js +13 -0
  382. package/mobile/dist/components/ApplicationForm/WrapperSelect.js.map +1 -0
  383. package/mobile/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  384. package/mobile/dist/components/ApplicationForm/acquiringTypes.js +25 -0
  385. package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -0
  386. package/mobile/dist/components/ApplicationForm/models.d.ts +6 -0
  387. package/mobile/dist/components/ApplicationForm/models.js +2 -0
  388. package/mobile/dist/components/ApplicationForm/models.js.map +1 -0
  389. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  390. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js +5 -0
  391. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
  392. package/mobile/dist/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  393. package/mobile/dist/components/ApplicationForm/renderBankOffices.js +7 -0
  394. package/mobile/dist/components/ApplicationForm/renderBankOffices.js.map +1 -0
  395. package/mobile/dist/components/ApplicationForm/renderContacts.d.ts +2 -0
  396. package/mobile/dist/components/ApplicationForm/renderContacts.js +7 -0
  397. package/mobile/dist/components/ApplicationForm/renderContacts.js.map +1 -0
  398. package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  399. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +24 -0
  400. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -0
  401. package/mobile/dist/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  402. package/mobile/dist/components/ApplicationForm/renderDataOrganization.js +7 -0
  403. package/mobile/dist/components/ApplicationForm/renderDataOrganization.js.map +1 -0
  404. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  405. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +7 -0
  406. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
  407. package/mobile/dist/components/ApplicationForm/renderSelects.d.ts +11 -0
  408. package/mobile/dist/components/ApplicationForm/renderSelects.js +8 -0
  409. package/mobile/dist/components/ApplicationForm/renderSelects.js.map +1 -0
  410. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  411. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js +7 -0
  412. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
  413. package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  414. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +13 -0
  415. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -0
  416. package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  417. package/mobile/dist/components/ApplicationForm/useFormHandlers.js +16 -0
  418. package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +1 -0
  419. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  420. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  421. package/mobile/dist/components/ErrorBlock/ErrorBlock.js +3 -1
  422. package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  423. package/mobile/dist/components/Header/DropdownMenu.js +4 -1
  424. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
  425. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -2
  426. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  427. package/mobile/dist/components/Header/HeaderSubMenu.js +2 -1
  428. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  429. package/mobile/dist/components/Header/HeaderSubMenuItem.js +2 -2
  430. package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  431. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +3 -1
  432. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  433. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  434. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  435. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  436. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  437. package/mobile/dist/hooks/useLink.js +16 -12
  438. package/mobile/dist/hooks/useLink.js.map +1 -1
  439. package/mobile/dist/icons/IconName.d.ts +10 -2
  440. package/mobile/dist/icons/IconName.js +9 -1
  441. package/mobile/dist/icons/IconName.js.map +1 -1
  442. package/mobile/dist/services/sitemap/isHrefActive.d.ts +1 -2
  443. package/mobile/dist/services/sitemap/isHrefActive.js +2 -2
  444. package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -1
  445. package/mobile/dist/services/sitemap/isSubItemActive.d.ts +3 -2
  446. package/mobile/dist/services/sitemap/isSubItemActive.js.map +1 -1
  447. package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
  448. package/mobile/dist/services/sitemap/isTopItemActive.js +1 -6
  449. package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
  450. package/mobile/dist/setup-fixture.js +13 -6
  451. package/mobile/dist/setup-fixture.js.map +1 -1
  452. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +1 -2
  453. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  454. package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
  455. package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +7 -0
  456. package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
  457. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  458. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  459. package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +0 -1
  460. package/mobile/dist/ui-kit/TopItem/TopItem.js +2 -2
  461. package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  462. package/mobile/dist/utils/adjustHref.d.ts +1 -4
  463. package/mobile/dist/utils/adjustHref.js +4 -8
  464. package/mobile/dist/utils/adjustHref.js.map +1 -1
  465. package/mobile/dist/utils/url.d.ts +4 -2
  466. package/mobile/dist/utils/url.js +15 -28
  467. package/mobile/dist/utils/url.js.map +1 -1
  468. package/mobile/lib/ProjectSettings.d.ts +4 -4
  469. package/mobile/lib/ProjectSettings.js +3 -5
  470. package/mobile/lib/ProjectSettings.js.map +1 -1
  471. package/mobile/lib/api/CorporateLeadAPI.d.ts +15 -0
  472. package/mobile/lib/api/CorporateLeadAPI.js +21 -0
  473. package/mobile/lib/api/CorporateLeadAPI.js.map +1 -0
  474. package/mobile/lib/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  475. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +28 -0
  476. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -0
  477. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  478. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +53 -0
  479. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
  480. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  481. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +37 -0
  482. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
  483. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  484. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js +2 -0
  485. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
  486. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  487. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +57 -0
  488. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
  489. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  490. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -0
  491. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
  492. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  493. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +39 -0
  494. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
  495. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  496. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js +2 -0
  497. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
  498. package/mobile/lib/components/ApplicationForm/Footnote.d.ts +6 -0
  499. package/mobile/lib/components/ApplicationForm/Footnote.js +7 -0
  500. package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -0
  501. package/mobile/lib/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  502. package/mobile/lib/components/ApplicationForm/ResponseNotification.js +11 -0
  503. package/mobile/lib/components/ApplicationForm/ResponseNotification.js.map +1 -0
  504. package/mobile/lib/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  505. package/mobile/lib/components/ApplicationForm/WrapperSelect.js +11 -0
  506. package/mobile/lib/components/ApplicationForm/WrapperSelect.js.map +1 -0
  507. package/mobile/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  508. package/mobile/lib/components/ApplicationForm/acquiringTypes.js +23 -0
  509. package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -0
  510. package/mobile/lib/components/ApplicationForm/models.d.ts +6 -0
  511. package/mobile/lib/components/ApplicationForm/models.js +2 -0
  512. package/mobile/lib/components/ApplicationForm/models.js.map +1 -0
  513. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  514. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js +2 -0
  515. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
  516. package/mobile/lib/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  517. package/mobile/lib/components/ApplicationForm/renderBankOffices.js +4 -0
  518. package/mobile/lib/components/ApplicationForm/renderBankOffices.js.map +1 -0
  519. package/mobile/lib/components/ApplicationForm/renderContacts.d.ts +2 -0
  520. package/mobile/lib/components/ApplicationForm/renderContacts.js +4 -0
  521. package/mobile/lib/components/ApplicationForm/renderContacts.js.map +1 -0
  522. package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  523. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +21 -0
  524. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -0
  525. package/mobile/lib/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  526. package/mobile/lib/components/ApplicationForm/renderDataOrganization.js +4 -0
  527. package/mobile/lib/components/ApplicationForm/renderDataOrganization.js.map +1 -0
  528. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  529. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -0
  530. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
  531. package/mobile/lib/components/ApplicationForm/renderSelects.d.ts +11 -0
  532. package/mobile/lib/components/ApplicationForm/renderSelects.js +5 -0
  533. package/mobile/lib/components/ApplicationForm/renderSelects.js.map +1 -0
  534. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  535. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js +4 -0
  536. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
  537. package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  538. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +10 -0
  539. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -0
  540. package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  541. package/mobile/lib/components/ApplicationForm/useFormHandlers.js +13 -0
  542. package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +1 -0
  543. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  544. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  545. package/mobile/lib/components/ErrorBlock/ErrorBlock.js +3 -1
  546. package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  547. package/mobile/lib/components/Header/DropdownMenu.js +4 -1
  548. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
  549. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -2
  550. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  551. package/mobile/lib/components/Header/HeaderSubMenu.js +2 -1
  552. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  553. package/mobile/lib/components/Header/HeaderSubMenuItem.js +2 -2
  554. package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  555. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +3 -1
  556. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  557. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  558. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  559. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  560. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  561. package/mobile/lib/hooks/useLink.js +17 -13
  562. package/mobile/lib/hooks/useLink.js.map +1 -1
  563. package/mobile/lib/icons/IconName.d.ts +10 -2
  564. package/mobile/lib/icons/IconName.js +9 -1
  565. package/mobile/lib/icons/IconName.js.map +1 -1
  566. package/mobile/lib/services/sitemap/isHrefActive.d.ts +1 -2
  567. package/mobile/lib/services/sitemap/isHrefActive.js +2 -2
  568. package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -1
  569. package/mobile/lib/services/sitemap/isSubItemActive.d.ts +3 -2
  570. package/mobile/lib/services/sitemap/isSubItemActive.js.map +1 -1
  571. package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
  572. package/mobile/lib/services/sitemap/isTopItemActive.js +1 -6
  573. package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
  574. package/mobile/lib/setup-fixture.js +14 -7
  575. package/mobile/lib/setup-fixture.js.map +1 -1
  576. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +1 -2
  577. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  578. package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
  579. package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +5 -0
  580. package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
  581. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  582. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  583. package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +0 -1
  584. package/mobile/lib/ui-kit/TopItem/TopItem.js +2 -2
  585. package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  586. package/mobile/lib/utils/adjustHref.d.ts +1 -4
  587. package/mobile/lib/utils/adjustHref.js +5 -9
  588. package/mobile/lib/utils/adjustHref.js.map +1 -1
  589. package/mobile/lib/utils/url.d.ts +4 -2
  590. package/mobile/lib/utils/url.js +12 -26
  591. package/mobile/lib/utils/url.js.map +1 -1
  592. package/mobile/src/ProjectSettings.ts +6 -7
  593. package/mobile/src/api/CorporateLeadAPI.ts +36 -0
  594. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +45 -0
  595. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +138 -0
  596. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +134 -0
  597. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +19 -0
  598. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +91 -0
  599. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +74 -0
  600. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +143 -0
  601. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +8 -0
  602. package/mobile/src/components/ApplicationForm/Footnote.tsx +25 -0
  603. package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +33 -0
  604. package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +32 -0
  605. package/mobile/src/components/ApplicationForm/acquiringTypes.ts +24 -0
  606. package/mobile/src/components/ApplicationForm/models.ts +7 -0
  607. package/mobile/src/components/ApplicationForm/normalizeSelectedRegion.ts +4 -0
  608. package/mobile/src/components/ApplicationForm/renderBankOffices.tsx +45 -0
  609. package/mobile/src/components/ApplicationForm/renderContacts.tsx +22 -0
  610. package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +61 -0
  611. package/mobile/src/components/ApplicationForm/renderDataOrganization.tsx +78 -0
  612. package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +45 -0
  613. package/mobile/src/components/ApplicationForm/renderSelects.tsx +38 -0
  614. package/mobile/src/components/ApplicationForm/renderSlideCheckboxes.tsx +28 -0
  615. package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +15 -0
  616. package/mobile/src/components/ApplicationForm/useFormHandlers.ts +32 -0
  617. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +5 -1
  618. package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +10 -1
  619. package/mobile/src/components/Header/DropdownMenu.tsx +16 -12
  620. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -21
  621. package/mobile/src/components/Header/HeaderSubMenu.tsx +2 -1
  622. package/mobile/src/components/Header/HeaderSubMenuItem.tsx +2 -4
  623. package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +3 -1
  624. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
  625. package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -4
  626. package/mobile/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +1 -1
  627. package/mobile/src/components/SwipeListControlBlock/SwipeListControlBlock.example.json +1 -1
  628. package/mobile/src/hooks/useLink.ts +19 -15
  629. package/mobile/src/icons/IconName.ts +5 -5
  630. package/mobile/src/icons/MailIcon.svg +1 -0
  631. package/mobile/src/icons/PhoneIcon.svg +1 -0
  632. package/mobile/src/icons/ResponceFailIcon.svg +1 -0
  633. package/mobile/src/icons/ResponceOKIcon.svg +1 -0
  634. package/mobile/src/services/sitemap/isHrefActive.ts +4 -10
  635. package/mobile/src/services/sitemap/isSubItemActive.ts +1 -2
  636. package/mobile/src/services/sitemap/isTopItemActive.ts +2 -8
  637. package/mobile/src/setup-fixture.ts +19 -7
  638. package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +7 -8
  639. package/mobile/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +33 -0
  640. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  641. package/mobile/src/ui-kit/TopItem/TopItem.tsx +16 -19
  642. package/mobile/src/utils/adjustHref.ts +6 -14
  643. package/mobile/src/utils/url.ts +18 -33
  644. package/package.json +2 -2
  645. package/src/ProjectSettings.ts +6 -7
  646. package/src/api/CorporateLeadAPI.ts +36 -0
  647. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +43 -0
  648. package/src/components/ApplicationForm/ApplicationForm.tsx +45 -0
  649. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +138 -0
  650. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +134 -0
  651. package/src/components/ApplicationForm/ApplicationFormContent.ts +19 -0
  652. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +91 -0
  653. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +74 -0
  654. package/src/components/ApplicationForm/ApplicationFormWed.tsx +143 -0
  655. package/src/components/ApplicationForm/ApplicationFormsProps.ts +8 -0
  656. package/src/components/ApplicationForm/Footnote.tsx +25 -0
  657. package/src/components/ApplicationForm/ResponseNotification.tsx +33 -0
  658. package/src/components/ApplicationForm/WrapperSelect.tsx +32 -0
  659. package/src/components/ApplicationForm/acquiringTypes.ts +24 -0
  660. package/src/components/ApplicationForm/models.ts +7 -0
  661. package/src/components/ApplicationForm/normalizeSelectedRegion.ts +4 -0
  662. package/src/components/ApplicationForm/renderBankOffices.tsx +45 -0
  663. package/src/components/ApplicationForm/renderContacts.tsx +22 -0
  664. package/src/components/ApplicationForm/renderCreditParameters.tsx +61 -0
  665. package/src/components/ApplicationForm/renderDataOrganization.tsx +78 -0
  666. package/src/components/ApplicationForm/renderQuestionsInterested.tsx +45 -0
  667. package/src/components/ApplicationForm/renderSelects.tsx +38 -0
  668. package/src/components/ApplicationForm/renderSlideCheckboxes.tsx +28 -0
  669. package/src/components/ApplicationForm/renderSubmitButton.tsx +15 -0
  670. package/src/components/ApplicationForm/useFormHandlers.ts +32 -0
  671. package/src/components/Blocks.ts +2 -0
  672. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +1 -0
  673. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +5 -1
  674. package/src/components/ErrorBlock/ErrorBlock.tsx +10 -1
  675. package/src/components/Header/DropdownMenu.tsx +16 -12
  676. package/src/components/Header/Header.tsx +3 -5
  677. package/src/components/Header/HeaderSecondaryMenu.tsx +1 -21
  678. package/src/components/Header/HeaderSubMenu.tsx +2 -1
  679. package/src/components/Header/HeaderSubMenuItem.tsx +2 -4
  680. package/src/components/OtherProductsItem/OtherProductsItem.tsx +3 -1
  681. package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
  682. package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -4
  683. package/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +1 -1
  684. package/src/components/SwipeListControlBlock/SwipeListControlBlock.example.json +1 -1
  685. package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +17 -0
  686. package/src/hooks/useLink.ts +19 -15
  687. package/src/icons/IconName.ts +5 -5
  688. package/src/icons/MailIcon.svg +1 -0
  689. package/src/icons/PhoneIcon.svg +1 -0
  690. package/src/icons/ResponceFailIcon.svg +1 -0
  691. package/src/icons/ResponceOKIcon.svg +1 -0
  692. package/src/services/sitemap/isHrefActive.ts +4 -10
  693. package/src/services/sitemap/isSubItemActive.ts +1 -2
  694. package/src/services/sitemap/isTopItemActive.ts +2 -8
  695. package/src/setup-fixture.ts +19 -7
  696. package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +7 -8
  697. package/src/ui-kit/HeaderItem/HeaderItem.tsx +7 -8
  698. package/src/ui-kit/SlideCheckbox/SlideCheckbox.fixture.tsx +9 -0
  699. package/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +33 -0
  700. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  701. package/src/ui-kit/TopItem/TopItem.tsx +16 -19
  702. package/src/utils/adjustHref.ts +6 -14
  703. package/src/utils/url.ts +18 -33
  704. package/tailwind.config.cjs +5 -0
  705. package/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  706. package/bundle/utils/normalizeURLPath.d.ts +0 -1
  707. package/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  708. package/dist/services/sitemap/checkIsHrefSameOrigin.js +0 -6
  709. package/dist/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
  710. package/dist/utils/normalizeURLPath.d.ts +0 -1
  711. package/dist/utils/normalizeURLPath.js +0 -12
  712. package/dist/utils/normalizeURLPath.js.map +0 -1
  713. package/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  714. package/lib/services/sitemap/checkIsHrefSameOrigin.js +0 -3
  715. package/lib/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
  716. package/lib/utils/normalizeURLPath.d.ts +0 -1
  717. package/lib/utils/normalizeURLPath.js +0 -9
  718. package/lib/utils/normalizeURLPath.js.map +0 -1
  719. package/mobile/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  720. package/mobile/bundle/utils/normalizeURLPath.d.ts +0 -1
  721. package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  722. package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js +0 -6
  723. package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
  724. package/mobile/dist/utils/normalizeURLPath.d.ts +0 -1
  725. package/mobile/dist/utils/normalizeURLPath.js +0 -12
  726. package/mobile/dist/utils/normalizeURLPath.js.map +0 -1
  727. package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  728. package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js +0 -3
  729. package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
  730. package/mobile/lib/utils/normalizeURLPath.d.ts +0 -1
  731. package/mobile/lib/utils/normalizeURLPath.js +0 -9
  732. package/mobile/lib/utils/normalizeURLPath.js.map +0 -1
  733. package/mobile/src/services/sitemap/checkIsHrefSameOrigin.ts +0 -7
  734. package/mobile/src/utils/normalizeURLPath.ts +0 -10
  735. package/src/services/sitemap/checkIsHrefSameOrigin.ts +0 -7
  736. package/src/utils/normalizeURLPath.ts +0 -10
@@ -0,0 +1,91 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { useSafeBoxes } from '../../hooks/useSafeBoxes';
4
+ import { Heading } from '../../ui-kit/Heading/Heading';
5
+ import { useGetRegions } from '../SafeDepositRental/useGetRegions';
6
+ import type { ApplicationFormsProps } from './ApplicationFormsProps';
7
+ import { Footnote } from './Footnote';
8
+ import { normalizeSelectedRegion } from './normalizeSelectedRegion';
9
+ import { renderBankOffices } from './renderBankOffices';
10
+ import { renderCreditParameters } from './renderCreditParameters';
11
+ import { renderDataOrganization } from './renderDataOrganization';
12
+ import { renderSubmitButton } from './renderSubmitButton';
13
+ import { useFormHandlers } from './useFormHandlers';
14
+
15
+ export interface CreditFormState {
16
+ amount: number;
17
+ term: number;
18
+ fullName: string;
19
+ inn: string;
20
+ name: string;
21
+ phone: string;
22
+ mail: string;
23
+ region: string;
24
+ department: string;
25
+ annualRevenue: string;
26
+ }
27
+
28
+ export const MIN_CREDIT_AMOUNT = 50000;
29
+ export const MAX_CREDIT_AMOUNT = 3000000;
30
+ export const ITEMS_CREDIT_AMOUNT = ['От 50 000 ₽', 'До 3 000 000 ₽'];
31
+
32
+ export const MIN_CREDIT_TERM = 1;
33
+ export const MAX_CREDIT_TERM = 60;
34
+ export const ITEMS_CREDIT_TERM = ['От 1 года', 'До 5 лет'];
35
+
36
+ export const ApplicationFormCredit = JSX<ApplicationFormsProps>((props) => {
37
+ const { button, link, handleSubmit } = props;
38
+ const [formState, setFormState] = useState<CreditFormState>({
39
+ amount: MIN_CREDIT_AMOUNT,
40
+ term: MIN_CREDIT_TERM,
41
+ fullName: '',
42
+ inn: '',
43
+ name: '',
44
+ phone: '',
45
+ mail: '',
46
+ region: '',
47
+ department: '',
48
+ annualRevenue: '',
49
+ });
50
+
51
+ const { amount, term, fullName, inn, name, phone, mail, region, department, annualRevenue } =
52
+ formState;
53
+
54
+ const regions = useGetRegions();
55
+
56
+ const { handleChange, onSubmit } = useFormHandlers<CreditFormState>({
57
+ formState,
58
+ handleSubmit,
59
+ setFormState,
60
+ typeForm: 'cred',
61
+ });
62
+
63
+ const selectedRegion = normalizeSelectedRegion(formState.region, regions);
64
+
65
+ const branches = useSafeBoxes(region);
66
+
67
+ useEffect(() => {
68
+ handleChange({
69
+ department: '',
70
+ });
71
+ }, [formState.region, handleChange]);
72
+
73
+ return (
74
+ <form onSubmit={onSubmit} className="container">
75
+ <Heading headingType="h6" title="Параметры кредита" className="text-center mb-4" />
76
+ {renderCreditParameters({ amount, term, handleChange })}
77
+ <Heading headingType="h6" title="Данные организации" className="text-center mb-4" />
78
+ {renderDataOrganization({ fullName, inn, name, phone, mail, annualRevenue, handleChange })}
79
+ <Heading headingType="h6" title="Офис банка" className="text-center mb-4" />
80
+ {renderBankOffices({
81
+ regions,
82
+ region: selectedRegion,
83
+ branches,
84
+ department,
85
+ handleChange,
86
+ })}
87
+ {renderSubmitButton(button, 'mb-4')}
88
+ <Footnote link={link} />
89
+ </form>
90
+ );
91
+ });
@@ -0,0 +1,74 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { Heading } from '../../ui-kit/Heading/Heading';
4
+ import { Input } from '../../ui-kit/Input/Input';
5
+ import type { ApplicationFormsProps } from './ApplicationFormsProps';
6
+ import { Footnote } from './Footnote';
7
+ import type { HandleFormStateChange } from './models';
8
+ import { renderSubmitButton } from './renderSubmitButton';
9
+ import { useFormHandlers } from './useFormHandlers';
10
+
11
+ export interface DepositFormState {
12
+ name: string;
13
+ phone: string;
14
+ }
15
+
16
+ export const ApplicationFormDeposit = JSX<ApplicationFormsProps>((props) => {
17
+ const { button, link, handleSubmit } = props;
18
+
19
+ const [formState, setFormState] = useState<DepositFormState>({
20
+ name: '',
21
+ phone: '',
22
+ });
23
+
24
+ const { handleChange, onSubmit } = useFormHandlers<DepositFormState>({
25
+ formState,
26
+ handleSubmit,
27
+ setFormState,
28
+ typeForm: 'dpst',
29
+ });
30
+
31
+ return (
32
+ <form onSubmit={onSubmit} className="container">
33
+ <Heading
34
+ headingType="h6"
35
+ title="Оставьте заявку и мы ответим на любые вопросы по депозитам"
36
+ className="text-center mb-4"
37
+ />
38
+ {renderDataOrganization({ name: formState.name, phone: formState.phone, handleChange })}
39
+ <div className="flex justify-between items-center max-w-[560px] m-auto">
40
+ <div className="flex-1">
41
+ <Footnote link={link} />
42
+ </div>
43
+ {renderSubmitButton(button)}
44
+ </div>
45
+ </form>
46
+ );
47
+ });
48
+
49
+ interface RenderDataOrganizationProps {
50
+ name: string;
51
+ phone: string;
52
+ handleChange: HandleFormStateChange<DepositFormState>;
53
+ }
54
+
55
+ const renderDataOrganization = ({ name, phone, handleChange }: RenderDataOrganizationProps) => (
56
+ <div className="max-w-[560px] m-auto">
57
+ <Input
58
+ className="shrink-0 text-l w-full mb-5"
59
+ type="text"
60
+ aria-label="Имя"
61
+ label="Имя"
62
+ value={name}
63
+ onChange={(value) => handleChange({ name: value })}
64
+ />
65
+ <Input
66
+ className="shrink-0 text-l w-full mb-5"
67
+ type="text"
68
+ aria-label="Телефон"
69
+ label="Телефон"
70
+ value={phone}
71
+ onChange={(value) => handleChange({ phone: value })}
72
+ />
73
+ </div>
74
+ );
@@ -0,0 +1,143 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import { Heading } from '../../ui-kit/Heading/Heading';
4
+ import { Input } from '../../ui-kit/Input/Input';
5
+ import type { ApplicationFormsProps } from './ApplicationFormsProps';
6
+ import { Footnote } from './Footnote';
7
+ import type { HandleFormStateChange } from './models';
8
+ import { renderContacts } from './renderContacts';
9
+ import { renderQuestionsInterested } from './renderQuestionsInterested';
10
+ import { renderSubmitButton } from './renderSubmitButton';
11
+ import { useFormHandlers } from './useFormHandlers';
12
+
13
+ export interface WedFormState {
14
+ fullName: string;
15
+ name: string;
16
+ phone: string;
17
+ mail: string;
18
+ currencyControl: boolean;
19
+ documentaryOperations: boolean;
20
+ conversionOperations: boolean;
21
+ text: string;
22
+ }
23
+
24
+ export const ApplicationFormWed = JSX<ApplicationFormsProps>((props) => {
25
+ const { button, link, handleSubmit } = props;
26
+
27
+ const [formState, setFormState] = useState<WedFormState>({
28
+ fullName: '',
29
+ name: '',
30
+ phone: '',
31
+ mail: '',
32
+ currencyControl: false,
33
+ documentaryOperations: false,
34
+ conversionOperations: false,
35
+ text: '',
36
+ });
37
+
38
+ const {
39
+ fullName,
40
+ name,
41
+ phone,
42
+ mail,
43
+ currencyControl,
44
+ documentaryOperations,
45
+ conversionOperations,
46
+ text,
47
+ } = formState;
48
+
49
+ const { handleChange, onSubmit } = useFormHandlers<WedFormState>({
50
+ formState,
51
+ handleSubmit,
52
+ setFormState,
53
+ typeForm: 'kved',
54
+ });
55
+
56
+ return (
57
+ <form onSubmit={onSubmit} className="container">
58
+ <Heading headingType="h6" title="Данные организации" className="text-center mb-4" />
59
+ {renderDataOrganization({ fullName, name, phone, mail, handleChange })}
60
+ <Heading headingType="h6" title="Интересующий вопрос" className="text-center mb-4" />
61
+ {renderQuestionsInterested({
62
+ currencyControl,
63
+ documentaryOperations,
64
+ conversionOperations,
65
+ text,
66
+ handleChange,
67
+ })}
68
+ <div className="flex items-center pb-9 mb-9 border-b border-main-divider">
69
+ {renderSubmitButton(button, 'mr-5')}
70
+ <Footnote link={link} />
71
+ </div>
72
+ <Heading
73
+ headingType="h6"
74
+ title="Или свяжитесь с нами удобным способом"
75
+ className="text-center mb-4"
76
+ />
77
+ {renderContacts()}
78
+ </form>
79
+ );
80
+ });
81
+
82
+ interface RenderDataOrganizationProps {
83
+ fullName: string;
84
+ name: string;
85
+ phone: string;
86
+ mail: string;
87
+ handleChange: HandleFormStateChange<WedFormState>;
88
+ }
89
+
90
+ const renderDataOrganization = ({
91
+ fullName,
92
+ name,
93
+ phone,
94
+ mail,
95
+ handleChange,
96
+ }: RenderDataOrganizationProps) => (
97
+ <div>
98
+ <div className="flex justify-between gap-5 mb-5">
99
+ <div className="w-1/2">
100
+ <Input
101
+ className="shrink-0 text-l w-full"
102
+ type="text"
103
+ aria-label="Наименование организации"
104
+ label="Наименование организации"
105
+ value={fullName}
106
+ onChange={(value) => handleChange({ fullName: value })}
107
+ />
108
+ </div>
109
+ <div className="w-1/2">
110
+ <Input
111
+ className="shrink-0 text-l w-full"
112
+ type="text"
113
+ aria-label="ФИО"
114
+ label="ФИО"
115
+ value={name}
116
+ onChange={(value) => handleChange({ name: value })}
117
+ />
118
+ </div>
119
+ </div>
120
+ <div className="flex justify-between gap-5 mb-7">
121
+ <div className="w-1/2">
122
+ <Input
123
+ className="shrink-0 text-l w-full"
124
+ type="text"
125
+ aria-label="Телефон"
126
+ label="Телефон"
127
+ value={phone}
128
+ onChange={(value) => handleChange({ phone: value })}
129
+ />
130
+ </div>
131
+ <div className="w-1/2">
132
+ <Input
133
+ className="shrink-0 text-l w-full"
134
+ type="text"
135
+ aria-label="Электронная почта"
136
+ label="Электронная почта"
137
+ value={mail}
138
+ onChange={(value) => handleChange({ mail: value })}
139
+ />
140
+ </div>
141
+ </div>
142
+ </div>
143
+ );
@@ -0,0 +1,8 @@
1
+ import type { LinkProps } from '../../model/LinkProps';
2
+ import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
3
+
4
+ export interface ApplicationFormsProps {
5
+ button?: ButtonProps;
6
+ link?: LinkProps;
7
+ handleSubmit: (data: any) => void;
8
+ }
@@ -0,0 +1,25 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import type { LinkProps } from '../../model/LinkProps';
3
+ import { Button } from '../../ui-kit/Button/Button';
4
+ import { Paragraph } from '../../ui-kit/Paragraph/Paragraph';
5
+ import { Text } from '../../ui-kit/Text/Text';
6
+
7
+ interface FootnoteProps {
8
+ link?: LinkProps;
9
+ }
10
+
11
+ export const Footnote = JSX<FootnoteProps>(({ link }) => (
12
+ <Paragraph size="text-s-light" color="text-secondary-text">
13
+ <Text>Нажимая кнопку вы подтверждаете согласие с </Text>
14
+ {link ? (
15
+ <Button
16
+ href={link.href}
17
+ ariaLabel="условия передачи данных"
18
+ target={link.target}
19
+ className="text-primary-main"
20
+ >
21
+ <Text>{link.text}</Text>
22
+ </Button>
23
+ ) : null}
24
+ </Paragraph>
25
+ ));
@@ -0,0 +1,33 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { Heading } from '../../ui-kit/Heading/Heading';
3
+ import { Img } from '../../ui-kit/Img/Img';
4
+ import { Text } from '../../ui-kit/Text/Text';
5
+
6
+ interface ResponseNotificationProps {
7
+ responceType?: 'OK' | 'Fail';
8
+ }
9
+
10
+ export const ResponseNotification = JSX<ResponseNotificationProps>(({ responceType }) => {
11
+ const responceOK = responceType === 'OK';
12
+ const backgroundColor = responceOK ? 'bg-responce-ok' : 'bg-responce-fail';
13
+
14
+ return (
15
+ <div className={`flex items-center mt-5 p-5 rounded-md ${backgroundColor}`}>
16
+ {responceOK ? (
17
+ <Img image={{ icon: 'ResponceOKIcon' }} width="42" height="42" className="mr-4" />
18
+ ) : (
19
+ <Img image={{ icon: 'ResponceFailIcon' }} width="37" height="34" className="mr-4" />
20
+ )}
21
+ <div>
22
+ <Heading
23
+ headingType="h6"
24
+ title={responceOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку'}
25
+ className="mb-1"
26
+ />
27
+ <Text size="text-l-light" color="text-secondary-text">
28
+ {responceOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее'}
29
+ </Text>
30
+ </div>
31
+ </div>
32
+ );
33
+ });
@@ -0,0 +1,32 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { OptionProps, Select } from '../../ui-kit/Select/Select';
3
+ import { Currency } from '../ExchangeRateTile/CurrencyProps';
4
+
5
+ interface WrapperSelectProps {
6
+ data: Record<string, any>[];
7
+ fieldLabel: string;
8
+ fieldValue?: string;
9
+ selected: string;
10
+ setSelected: (value: string) => void;
11
+ label: string;
12
+ placeholder?: string;
13
+ }
14
+
15
+ export const WrapperSelect = JSX<WrapperSelectProps>(
16
+ ({ data, fieldLabel, fieldValue, selected, placeholder = '', setSelected, label }) => {
17
+ const dataFormat: OptionProps[] = data
18
+ .filter(Boolean)
19
+ .map((_) => ({ key: _?.[fieldValue || fieldLabel], text: _?.[fieldLabel] }));
20
+ const selectedObj = dataFormat.find((_) => _.key === selected);
21
+
22
+ return (
23
+ <Select
24
+ options={dataFormat}
25
+ label={label}
26
+ placeholder={placeholder || selected}
27
+ onChange={(_) => setSelected(_.key as Currency)}
28
+ value={selectedObj}
29
+ />
30
+ );
31
+ },
32
+ );
@@ -0,0 +1,24 @@
1
+ import { Select } from './models';
2
+
3
+ export const ACQUIRING_TYPES: Select[] = [
4
+ {
5
+ code: '1',
6
+ name: 'Торговый эквайринг',
7
+ },
8
+ {
9
+ code: '2',
10
+ name: 'Мобильный эквайринг',
11
+ },
12
+ {
13
+ code: '3',
14
+ name: 'Интернет-эквайринг',
15
+ },
16
+ {
17
+ code: '4',
18
+ name: 'QR-эквайринг (СБП)',
19
+ },
20
+ {
21
+ code: '5',
22
+ name: 'Все виды эквайринга',
23
+ },
24
+ ];
@@ -0,0 +1,7 @@
1
+ export interface Select {
2
+ id?: number;
3
+ code?: string;
4
+ name?: string;
5
+ }
6
+
7
+ export type HandleFormStateChange<T> = (state: Partial<T>) => void;
@@ -0,0 +1,4 @@
1
+ import { Region } from '../../hooks/useRegions';
2
+
3
+ export const normalizeSelectedRegion = (selectedRegion: string, regions?: Region[]) =>
4
+ !selectedRegion && regions?.length && regions[0]?.code ? regions[0].code : selectedRegion;
@@ -0,0 +1,45 @@
1
+ import { Branch } from '../../hooks/useSafeBoxes';
2
+ import type { CreditFormState } from './ApplicationFormCredit';
3
+ import type { HandleFormStateChange, Select } from './models';
4
+ import { WrapperSelect } from './WrapperSelect';
5
+
6
+ interface RenderBankOfficesProps {
7
+ regions: Select[];
8
+ region: string;
9
+ branches: Branch[];
10
+ department: string;
11
+ handleChange: HandleFormStateChange<CreditFormState>;
12
+ }
13
+
14
+ export const renderBankOffices = ({
15
+ regions,
16
+ region,
17
+ branches,
18
+ department,
19
+ handleChange,
20
+ }: RenderBankOfficesProps) => (
21
+ <div className="flex justify-between gap-5 mb-7">
22
+ <div className="w-1/2">
23
+ <WrapperSelect
24
+ data={regions}
25
+ fieldValue="code"
26
+ fieldLabel="name"
27
+ selected={region}
28
+ setSelected={(value) => handleChange({ region: value })}
29
+ label="Регион"
30
+ placeholder="Выберите регион"
31
+ />
32
+ </div>
33
+ <div className="w-1/2">
34
+ <WrapperSelect
35
+ data={branches}
36
+ fieldValue="branchCode"
37
+ fieldLabel="address"
38
+ selected={department}
39
+ setSelected={(value) => handleChange({ department: value })}
40
+ label="Адрес"
41
+ placeholder="Выберите адрес"
42
+ />
43
+ </div>
44
+ </div>
45
+ );
@@ -0,0 +1,22 @@
1
+ import { Img } from '../../ui-kit/Img/Img';
2
+
3
+ export const renderContacts = () => (
4
+ <div className="flex">
5
+ <a
6
+ className="flex items-center text-primary-text no-underline mr-6"
7
+ href={`tel:8 (800) 200-78-70`}
8
+ aria-label="8 (800) 200-78-70"
9
+ >
10
+ <Img image={{ icon: 'PhoneIcon' }} width="24" height="24" className="mr-3" />
11
+ <span>8 (800) 200-78-70</span>
12
+ </a>
13
+ <a
14
+ className="flex items-center text-primary-text no-underline"
15
+ aria-label="ved@rshb.ru"
16
+ href={`mailto:ved@rshb.ru`}
17
+ >
18
+ <Img image={{ icon: 'MailIcon' }} width="24" height="24" className="mr-3" />
19
+ <span>ved@rshb.ru</span>
20
+ </a>
21
+ </div>
22
+ );
@@ -0,0 +1,61 @@
1
+ import { InputRange } from '../../ui-kit/InputRange/InputRange';
2
+ import { Text } from '../../ui-kit/Text/Text';
3
+ import {
4
+ CreditFormState,
5
+ ITEMS_CREDIT_AMOUNT,
6
+ ITEMS_CREDIT_TERM,
7
+ MAX_CREDIT_AMOUNT,
8
+ MAX_CREDIT_TERM,
9
+ MIN_CREDIT_AMOUNT,
10
+ MIN_CREDIT_TERM,
11
+ } from './ApplicationFormCredit';
12
+ import type { HandleFormStateChange } from './models';
13
+
14
+ interface RenderCreditParametersProps {
15
+ amount: number;
16
+ term: number;
17
+ handleChange: HandleFormStateChange<CreditFormState>;
18
+ }
19
+
20
+ export const renderCreditParameters = ({
21
+ amount,
22
+ term,
23
+ handleChange,
24
+ }: RenderCreditParametersProps) => (
25
+ <div className="flex justify-between gap-5 mb-7">
26
+ {renderInputRange({
27
+ label: 'Сумма кредита, ₽',
28
+ value: amount,
29
+ onChange: (value) => handleChange({ amount: value }),
30
+ min: MIN_CREDIT_AMOUNT,
31
+ max: MAX_CREDIT_AMOUNT,
32
+ items: ITEMS_CREDIT_AMOUNT,
33
+ })}
34
+ {renderInputRange({
35
+ label: 'Срок кредита, месяцев',
36
+ value: term,
37
+ onChange: (value) => handleChange({ term: value }),
38
+ min: MIN_CREDIT_TERM,
39
+ max: MAX_CREDIT_TERM,
40
+ items: ITEMS_CREDIT_TERM,
41
+ })}
42
+ </div>
43
+ );
44
+
45
+ interface RenderInputRangeProps {
46
+ label: string;
47
+ value: number;
48
+ onChange: (value: number) => void;
49
+ min: number;
50
+ max: number;
51
+ items: string[];
52
+ }
53
+
54
+ const renderInputRange = (props: RenderInputRangeProps) => (
55
+ <div className="w-1/2">
56
+ <label>
57
+ <Text size="text-m-light">{props.label}</Text>
58
+ </label>
59
+ <InputRange {...props} />
60
+ </div>
61
+ );
@@ -0,0 +1,78 @@
1
+ import { Input } from '../../ui-kit/Input/Input';
2
+ import type { CreditFormState } from './ApplicationFormCredit';
3
+ import type { HandleFormStateChange } from './models';
4
+
5
+ interface RenderDataOrganizationProps {
6
+ fullName: string;
7
+ inn: string;
8
+ name: string;
9
+ phone: string;
10
+ mail: string;
11
+ annualRevenue: string;
12
+ handleChange: HandleFormStateChange<CreditFormState>;
13
+ }
14
+
15
+ export const renderDataOrganization = ({
16
+ fullName,
17
+ inn,
18
+ name,
19
+ phone,
20
+ mail,
21
+ annualRevenue,
22
+ handleChange,
23
+ }: RenderDataOrganizationProps) => (
24
+ <div className="flex justify-between gap-5 mb-7">
25
+ <div className="w-1/2">
26
+ <Input
27
+ className="shrink-0 text-l w-full mb-5"
28
+ type="text"
29
+ aria-label="Наименование организации"
30
+ label="Наименование организации"
31
+ value={fullName}
32
+ onChange={(value) => handleChange({ fullName: value })}
33
+ />
34
+ <Input
35
+ className="shrink-0 text-l w-full mb-5"
36
+ type="text"
37
+ aria-label="ИНН"
38
+ label="ИНН"
39
+ value={inn}
40
+ onChange={(value) => handleChange({ inn: value })}
41
+ />
42
+ <Input
43
+ className="shrink-0 text-l w-full "
44
+ type="text"
45
+ aria-label="Телефон"
46
+ label="Телефон"
47
+ value={phone}
48
+ onChange={(value) => handleChange({ phone: value })}
49
+ />
50
+ </div>
51
+ <div className="w-1/2">
52
+ <Input
53
+ className="shrink-0 text-l w-full mb-5"
54
+ type="text"
55
+ aria-label="Годовая выручка, ₽"
56
+ label="Годовая выручка, ₽"
57
+ value={annualRevenue}
58
+ onChange={(value) => handleChange({ annualRevenue: value })}
59
+ />
60
+ <Input
61
+ className="shrink-0 text-l w-full mb-5"
62
+ type="text"
63
+ aria-label="Контактное лицо"
64
+ label="Контактное лицо"
65
+ value={name}
66
+ onChange={(value) => handleChange({ name: value })}
67
+ />
68
+ <Input
69
+ className="shrink-0 text-l w-full "
70
+ type="text"
71
+ aria-label="Электронная почта"
72
+ label="Электронная почта"
73
+ value={mail}
74
+ onChange={(value) => handleChange({ mail: value })}
75
+ />
76
+ </div>
77
+ </div>
78
+ );