@redneckz/wildless-cms-uni-blocks 0.7.9 → 0.8.1

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 (663) 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 +559 -328
  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/TopItem/TopItem.d.ts +0 -1
  36. package/bundle/utils/adjustHref.d.ts +1 -4
  37. package/bundle/utils/url.d.ts +4 -2
  38. package/cosmos-static/icons/MailIcon.svg +1 -0
  39. package/cosmos-static/icons/PhoneIcon.svg +1 -0
  40. package/cosmos-static/icons/ResponceFailIcon.svg +1 -0
  41. package/cosmos-static/icons/ResponceOKIcon.svg +1 -0
  42. package/dist/ProjectSettings.d.ts +4 -4
  43. package/dist/ProjectSettings.js +3 -5
  44. package/dist/ProjectSettings.js.map +1 -1
  45. package/dist/api/CorporateLeadAPI.d.ts +15 -0
  46. package/dist/api/CorporateLeadAPI.js +24 -0
  47. package/dist/api/CorporateLeadAPI.js.map +1 -0
  48. package/dist/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  49. package/dist/components/ApplicationForm/ApplicationForm.js +30 -0
  50. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -0
  51. package/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  52. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +55 -0
  53. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
  54. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  55. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +39 -0
  56. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
  57. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  58. package/dist/components/ApplicationForm/ApplicationFormContent.js +2 -0
  59. package/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
  60. package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  61. package/dist/components/ApplicationForm/ApplicationFormCredit.js +59 -0
  62. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
  63. package/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  64. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +26 -0
  65. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
  66. package/dist/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  67. package/dist/components/ApplicationForm/ApplicationFormWed.js +41 -0
  68. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
  69. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  70. package/dist/components/ApplicationForm/ApplicationFormsProps.js +2 -0
  71. package/dist/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
  72. package/dist/components/ApplicationForm/Footnote.d.ts +6 -0
  73. package/dist/components/ApplicationForm/Footnote.js +9 -0
  74. package/dist/components/ApplicationForm/Footnote.js.map +1 -0
  75. package/dist/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  76. package/dist/components/ApplicationForm/ResponseNotification.js +13 -0
  77. package/dist/components/ApplicationForm/ResponseNotification.js.map +1 -0
  78. package/dist/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  79. package/dist/components/ApplicationForm/WrapperSelect.js +13 -0
  80. package/dist/components/ApplicationForm/WrapperSelect.js.map +1 -0
  81. package/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  82. package/dist/components/ApplicationForm/acquiringTypes.js +25 -0
  83. package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -0
  84. package/dist/components/ApplicationForm/models.d.ts +6 -0
  85. package/dist/components/ApplicationForm/models.js +2 -0
  86. package/dist/components/ApplicationForm/models.js.map +1 -0
  87. package/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  88. package/dist/components/ApplicationForm/normalizeSelectedRegion.js +5 -0
  89. package/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
  90. package/dist/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  91. package/dist/components/ApplicationForm/renderBankOffices.js +7 -0
  92. package/dist/components/ApplicationForm/renderBankOffices.js.map +1 -0
  93. package/dist/components/ApplicationForm/renderContacts.d.ts +2 -0
  94. package/dist/components/ApplicationForm/renderContacts.js +7 -0
  95. package/dist/components/ApplicationForm/renderContacts.js.map +1 -0
  96. package/dist/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  97. package/dist/components/ApplicationForm/renderCreditParameters.js +24 -0
  98. package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -0
  99. package/dist/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  100. package/dist/components/ApplicationForm/renderDataOrganization.js +7 -0
  101. package/dist/components/ApplicationForm/renderDataOrganization.js.map +1 -0
  102. package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  103. package/dist/components/ApplicationForm/renderQuestionsInterested.js +7 -0
  104. package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
  105. package/dist/components/ApplicationForm/renderSelects.d.ts +11 -0
  106. package/dist/components/ApplicationForm/renderSelects.js +8 -0
  107. package/dist/components/ApplicationForm/renderSelects.js.map +1 -0
  108. package/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  109. package/dist/components/ApplicationForm/renderSlideCheckboxes.js +7 -0
  110. package/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
  111. package/dist/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  112. package/dist/components/ApplicationForm/renderSubmitButton.js +13 -0
  113. package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -0
  114. package/dist/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  115. package/dist/components/ApplicationForm/useFormHandlers.js +16 -0
  116. package/dist/components/ApplicationForm/useFormHandlers.js.map +1 -0
  117. package/dist/components/Blocks.js +2 -0
  118. package/dist/components/Blocks.js.map +1 -1
  119. package/dist/components/Header/Header.js +1 -2
  120. package/dist/components/Header/Header.js.map +1 -1
  121. package/dist/components/Header/HeaderSecondaryMenu.js +1 -2
  122. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  123. package/dist/components/Header/HeaderSubMenu.js +2 -1
  124. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  125. package/dist/components/Header/HeaderSubMenuItem.js +2 -2
  126. package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  127. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  128. package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  129. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  130. package/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  131. package/dist/hooks/useLink.js +21 -22
  132. package/dist/hooks/useLink.js.map +1 -1
  133. package/dist/icons/IconName.d.ts +10 -2
  134. package/dist/icons/IconName.js +9 -1
  135. package/dist/icons/IconName.js.map +1 -1
  136. package/dist/services/sitemap/isHrefActive.d.ts +1 -2
  137. package/dist/services/sitemap/isHrefActive.js +2 -2
  138. package/dist/services/sitemap/isHrefActive.js.map +1 -1
  139. package/dist/services/sitemap/isSubItemActive.d.ts +3 -2
  140. package/dist/services/sitemap/isSubItemActive.js.map +1 -1
  141. package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
  142. package/dist/services/sitemap/isTopItemActive.js +1 -6
  143. package/dist/services/sitemap/isTopItemActive.js.map +1 -1
  144. package/dist/setup-fixture.js +13 -6
  145. package/dist/setup-fixture.js.map +1 -1
  146. package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -2
  147. package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  148. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -2
  149. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  150. package/dist/ui-kit/TopItem/TopItem.d.ts +0 -1
  151. package/dist/ui-kit/TopItem/TopItem.js +2 -2
  152. package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  153. package/dist/utils/adjustHref.d.ts +1 -4
  154. package/dist/utils/adjustHref.js +4 -8
  155. package/dist/utils/adjustHref.js.map +1 -1
  156. package/dist/utils/url.d.ts +4 -2
  157. package/dist/utils/url.js +15 -28
  158. package/dist/utils/url.js.map +1 -1
  159. package/lib/ProjectSettings.d.ts +4 -4
  160. package/lib/ProjectSettings.js +3 -5
  161. package/lib/ProjectSettings.js.map +1 -1
  162. package/lib/api/CorporateLeadAPI.d.ts +15 -0
  163. package/lib/api/CorporateLeadAPI.js +21 -0
  164. package/lib/api/CorporateLeadAPI.js.map +1 -0
  165. package/lib/common.css +1 -1
  166. package/lib/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  167. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +12 -0
  168. package/lib/components/ApplicationForm/ApplicationForm.js +28 -0
  169. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -0
  170. package/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  171. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +53 -0
  172. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
  173. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  174. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +37 -0
  175. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
  176. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  177. package/lib/components/ApplicationForm/ApplicationFormContent.js +2 -0
  178. package/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
  179. package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  180. package/lib/components/ApplicationForm/ApplicationFormCredit.js +57 -0
  181. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
  182. package/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  183. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -0
  184. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
  185. package/lib/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  186. package/lib/components/ApplicationForm/ApplicationFormWed.js +39 -0
  187. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
  188. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  189. package/lib/components/ApplicationForm/ApplicationFormsProps.js +2 -0
  190. package/lib/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
  191. package/lib/components/ApplicationForm/Footnote.d.ts +6 -0
  192. package/lib/components/ApplicationForm/Footnote.js +7 -0
  193. package/lib/components/ApplicationForm/Footnote.js.map +1 -0
  194. package/lib/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  195. package/lib/components/ApplicationForm/ResponseNotification.js +11 -0
  196. package/lib/components/ApplicationForm/ResponseNotification.js.map +1 -0
  197. package/lib/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  198. package/lib/components/ApplicationForm/WrapperSelect.js +11 -0
  199. package/lib/components/ApplicationForm/WrapperSelect.js.map +1 -0
  200. package/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  201. package/lib/components/ApplicationForm/acquiringTypes.js +23 -0
  202. package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -0
  203. package/lib/components/ApplicationForm/models.d.ts +6 -0
  204. package/lib/components/ApplicationForm/models.js +2 -0
  205. package/lib/components/ApplicationForm/models.js.map +1 -0
  206. package/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  207. package/lib/components/ApplicationForm/normalizeSelectedRegion.js +2 -0
  208. package/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
  209. package/lib/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  210. package/lib/components/ApplicationForm/renderBankOffices.js +4 -0
  211. package/lib/components/ApplicationForm/renderBankOffices.js.map +1 -0
  212. package/lib/components/ApplicationForm/renderContacts.d.ts +2 -0
  213. package/lib/components/ApplicationForm/renderContacts.js +4 -0
  214. package/lib/components/ApplicationForm/renderContacts.js.map +1 -0
  215. package/lib/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  216. package/lib/components/ApplicationForm/renderCreditParameters.js +21 -0
  217. package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -0
  218. package/lib/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  219. package/lib/components/ApplicationForm/renderDataOrganization.js +4 -0
  220. package/lib/components/ApplicationForm/renderDataOrganization.js.map +1 -0
  221. package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  222. package/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -0
  223. package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
  224. package/lib/components/ApplicationForm/renderSelects.d.ts +11 -0
  225. package/lib/components/ApplicationForm/renderSelects.js +5 -0
  226. package/lib/components/ApplicationForm/renderSelects.js.map +1 -0
  227. package/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  228. package/lib/components/ApplicationForm/renderSlideCheckboxes.js +4 -0
  229. package/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
  230. package/lib/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  231. package/lib/components/ApplicationForm/renderSubmitButton.js +10 -0
  232. package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -0
  233. package/lib/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  234. package/lib/components/ApplicationForm/useFormHandlers.js +13 -0
  235. package/lib/components/ApplicationForm/useFormHandlers.js.map +1 -0
  236. package/lib/components/Blocks.js +2 -0
  237. package/lib/components/Blocks.js.map +1 -1
  238. package/lib/components/Header/Header.js +1 -2
  239. package/lib/components/Header/Header.js.map +1 -1
  240. package/lib/components/Header/HeaderSecondaryMenu.js +1 -2
  241. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  242. package/lib/components/Header/HeaderSubMenu.js +2 -1
  243. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  244. package/lib/components/Header/HeaderSubMenuItem.js +2 -2
  245. package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  246. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  247. package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  248. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  249. package/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  250. package/lib/hooks/useLink.js +22 -23
  251. package/lib/hooks/useLink.js.map +1 -1
  252. package/lib/icons/IconName.d.ts +10 -2
  253. package/lib/icons/IconName.js +9 -1
  254. package/lib/icons/IconName.js.map +1 -1
  255. package/lib/services/sitemap/isHrefActive.d.ts +1 -2
  256. package/lib/services/sitemap/isHrefActive.js +2 -2
  257. package/lib/services/sitemap/isHrefActive.js.map +1 -1
  258. package/lib/services/sitemap/isSubItemActive.d.ts +3 -2
  259. package/lib/services/sitemap/isSubItemActive.js.map +1 -1
  260. package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
  261. package/lib/services/sitemap/isTopItemActive.js +1 -6
  262. package/lib/services/sitemap/isTopItemActive.js.map +1 -1
  263. package/lib/setup-fixture.js +14 -7
  264. package/lib/setup-fixture.js.map +1 -1
  265. package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -2
  266. package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  267. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -2
  268. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  269. package/lib/ui-kit/TopItem/TopItem.d.ts +0 -1
  270. package/lib/ui-kit/TopItem/TopItem.js +2 -2
  271. package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  272. package/lib/utils/adjustHref.d.ts +1 -4
  273. package/lib/utils/adjustHref.js +5 -9
  274. package/lib/utils/adjustHref.js.map +1 -1
  275. package/lib/utils/url.d.ts +4 -2
  276. package/lib/utils/url.js +12 -26
  277. package/lib/utils/url.js.map +1 -1
  278. package/mobile/bundle/ProjectSettings.d.ts +4 -4
  279. package/mobile/bundle/api/CorporateLeadAPI.d.ts +15 -0
  280. package/mobile/bundle/bundle.umd.js +45 -79
  281. package/mobile/bundle/bundle.umd.min.js +1 -1
  282. package/mobile/bundle/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  283. package/mobile/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  284. package/mobile/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  285. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  286. package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  287. package/mobile/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  288. package/mobile/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  289. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  290. package/mobile/bundle/components/ApplicationForm/Footnote.d.ts +6 -0
  291. package/mobile/bundle/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  292. package/mobile/bundle/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  293. package/mobile/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  294. package/mobile/bundle/components/ApplicationForm/models.d.ts +6 -0
  295. package/mobile/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  296. package/mobile/bundle/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  297. package/mobile/bundle/components/ApplicationForm/renderContacts.d.ts +2 -0
  298. package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  299. package/mobile/bundle/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  300. package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  301. package/mobile/bundle/components/ApplicationForm/renderSelects.d.ts +11 -0
  302. package/mobile/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  303. package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  304. package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  305. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  306. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  307. package/mobile/bundle/icons/IconName.d.ts +10 -2
  308. package/mobile/bundle/services/sitemap/isHrefActive.d.ts +1 -2
  309. package/mobile/bundle/services/sitemap/isSubItemActive.d.ts +3 -2
  310. package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
  311. package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +0 -1
  312. package/mobile/bundle/utils/adjustHref.d.ts +1 -4
  313. package/mobile/bundle/utils/url.d.ts +4 -2
  314. package/mobile/dist/ProjectSettings.d.ts +4 -4
  315. package/mobile/dist/ProjectSettings.js +3 -5
  316. package/mobile/dist/ProjectSettings.js.map +1 -1
  317. package/mobile/dist/api/CorporateLeadAPI.d.ts +15 -0
  318. package/mobile/dist/api/CorporateLeadAPI.js +24 -0
  319. package/mobile/dist/api/CorporateLeadAPI.js.map +1 -0
  320. package/mobile/dist/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  321. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +30 -0
  322. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -0
  323. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  324. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +55 -0
  325. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
  326. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  327. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +39 -0
  328. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
  329. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  330. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js +2 -0
  331. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
  332. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  333. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +59 -0
  334. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
  335. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  336. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +26 -0
  337. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
  338. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  339. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +41 -0
  340. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
  341. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  342. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js +2 -0
  343. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
  344. package/mobile/dist/components/ApplicationForm/Footnote.d.ts +6 -0
  345. package/mobile/dist/components/ApplicationForm/Footnote.js +9 -0
  346. package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -0
  347. package/mobile/dist/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  348. package/mobile/dist/components/ApplicationForm/ResponseNotification.js +13 -0
  349. package/mobile/dist/components/ApplicationForm/ResponseNotification.js.map +1 -0
  350. package/mobile/dist/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  351. package/mobile/dist/components/ApplicationForm/WrapperSelect.js +13 -0
  352. package/mobile/dist/components/ApplicationForm/WrapperSelect.js.map +1 -0
  353. package/mobile/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  354. package/mobile/dist/components/ApplicationForm/acquiringTypes.js +25 -0
  355. package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -0
  356. package/mobile/dist/components/ApplicationForm/models.d.ts +6 -0
  357. package/mobile/dist/components/ApplicationForm/models.js +2 -0
  358. package/mobile/dist/components/ApplicationForm/models.js.map +1 -0
  359. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  360. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js +5 -0
  361. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
  362. package/mobile/dist/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  363. package/mobile/dist/components/ApplicationForm/renderBankOffices.js +7 -0
  364. package/mobile/dist/components/ApplicationForm/renderBankOffices.js.map +1 -0
  365. package/mobile/dist/components/ApplicationForm/renderContacts.d.ts +2 -0
  366. package/mobile/dist/components/ApplicationForm/renderContacts.js +7 -0
  367. package/mobile/dist/components/ApplicationForm/renderContacts.js.map +1 -0
  368. package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  369. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +24 -0
  370. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -0
  371. package/mobile/dist/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  372. package/mobile/dist/components/ApplicationForm/renderDataOrganization.js +7 -0
  373. package/mobile/dist/components/ApplicationForm/renderDataOrganization.js.map +1 -0
  374. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  375. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +7 -0
  376. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
  377. package/mobile/dist/components/ApplicationForm/renderSelects.d.ts +11 -0
  378. package/mobile/dist/components/ApplicationForm/renderSelects.js +8 -0
  379. package/mobile/dist/components/ApplicationForm/renderSelects.js.map +1 -0
  380. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  381. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js +7 -0
  382. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
  383. package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  384. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +13 -0
  385. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -0
  386. package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  387. package/mobile/dist/components/ApplicationForm/useFormHandlers.js +16 -0
  388. package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +1 -0
  389. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -2
  390. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  391. package/mobile/dist/components/Header/HeaderSubMenu.js +2 -1
  392. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  393. package/mobile/dist/components/Header/HeaderSubMenuItem.js +2 -2
  394. package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  395. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  396. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  397. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  398. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  399. package/mobile/dist/hooks/useLink.js +21 -22
  400. package/mobile/dist/hooks/useLink.js.map +1 -1
  401. package/mobile/dist/icons/IconName.d.ts +10 -2
  402. package/mobile/dist/icons/IconName.js +9 -1
  403. package/mobile/dist/icons/IconName.js.map +1 -1
  404. package/mobile/dist/services/sitemap/isHrefActive.d.ts +1 -2
  405. package/mobile/dist/services/sitemap/isHrefActive.js +2 -2
  406. package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -1
  407. package/mobile/dist/services/sitemap/isSubItemActive.d.ts +3 -2
  408. package/mobile/dist/services/sitemap/isSubItemActive.js.map +1 -1
  409. package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
  410. package/mobile/dist/services/sitemap/isTopItemActive.js +1 -6
  411. package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
  412. package/mobile/dist/setup-fixture.js +13 -6
  413. package/mobile/dist/setup-fixture.js.map +1 -1
  414. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +1 -2
  415. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  416. package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +0 -1
  417. package/mobile/dist/ui-kit/TopItem/TopItem.js +2 -2
  418. package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  419. package/mobile/dist/utils/adjustHref.d.ts +1 -4
  420. package/mobile/dist/utils/adjustHref.js +4 -8
  421. package/mobile/dist/utils/adjustHref.js.map +1 -1
  422. package/mobile/dist/utils/url.d.ts +4 -2
  423. package/mobile/dist/utils/url.js +15 -28
  424. package/mobile/dist/utils/url.js.map +1 -1
  425. package/mobile/lib/ProjectSettings.d.ts +4 -4
  426. package/mobile/lib/ProjectSettings.js +3 -5
  427. package/mobile/lib/ProjectSettings.js.map +1 -1
  428. package/mobile/lib/api/CorporateLeadAPI.d.ts +15 -0
  429. package/mobile/lib/api/CorporateLeadAPI.js +21 -0
  430. package/mobile/lib/api/CorporateLeadAPI.js.map +1 -0
  431. package/mobile/lib/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  432. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +28 -0
  433. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -0
  434. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  435. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +53 -0
  436. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
  437. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  438. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +37 -0
  439. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
  440. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  441. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js +2 -0
  442. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
  443. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  444. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +57 -0
  445. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
  446. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  447. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -0
  448. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
  449. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  450. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +39 -0
  451. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
  452. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  453. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js +2 -0
  454. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
  455. package/mobile/lib/components/ApplicationForm/Footnote.d.ts +6 -0
  456. package/mobile/lib/components/ApplicationForm/Footnote.js +7 -0
  457. package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -0
  458. package/mobile/lib/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  459. package/mobile/lib/components/ApplicationForm/ResponseNotification.js +11 -0
  460. package/mobile/lib/components/ApplicationForm/ResponseNotification.js.map +1 -0
  461. package/mobile/lib/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  462. package/mobile/lib/components/ApplicationForm/WrapperSelect.js +11 -0
  463. package/mobile/lib/components/ApplicationForm/WrapperSelect.js.map +1 -0
  464. package/mobile/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  465. package/mobile/lib/components/ApplicationForm/acquiringTypes.js +23 -0
  466. package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -0
  467. package/mobile/lib/components/ApplicationForm/models.d.ts +6 -0
  468. package/mobile/lib/components/ApplicationForm/models.js +2 -0
  469. package/mobile/lib/components/ApplicationForm/models.js.map +1 -0
  470. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  471. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js +2 -0
  472. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
  473. package/mobile/lib/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  474. package/mobile/lib/components/ApplicationForm/renderBankOffices.js +4 -0
  475. package/mobile/lib/components/ApplicationForm/renderBankOffices.js.map +1 -0
  476. package/mobile/lib/components/ApplicationForm/renderContacts.d.ts +2 -0
  477. package/mobile/lib/components/ApplicationForm/renderContacts.js +4 -0
  478. package/mobile/lib/components/ApplicationForm/renderContacts.js.map +1 -0
  479. package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  480. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +21 -0
  481. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -0
  482. package/mobile/lib/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  483. package/mobile/lib/components/ApplicationForm/renderDataOrganization.js +4 -0
  484. package/mobile/lib/components/ApplicationForm/renderDataOrganization.js.map +1 -0
  485. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  486. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -0
  487. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
  488. package/mobile/lib/components/ApplicationForm/renderSelects.d.ts +11 -0
  489. package/mobile/lib/components/ApplicationForm/renderSelects.js +5 -0
  490. package/mobile/lib/components/ApplicationForm/renderSelects.js.map +1 -0
  491. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  492. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js +4 -0
  493. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
  494. package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  495. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +10 -0
  496. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -0
  497. package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  498. package/mobile/lib/components/ApplicationForm/useFormHandlers.js +13 -0
  499. package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +1 -0
  500. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -2
  501. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  502. package/mobile/lib/components/Header/HeaderSubMenu.js +2 -1
  503. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  504. package/mobile/lib/components/Header/HeaderSubMenuItem.js +2 -2
  505. package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  506. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  507. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  508. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  509. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  510. package/mobile/lib/hooks/useLink.js +22 -23
  511. package/mobile/lib/hooks/useLink.js.map +1 -1
  512. package/mobile/lib/icons/IconName.d.ts +10 -2
  513. package/mobile/lib/icons/IconName.js +9 -1
  514. package/mobile/lib/icons/IconName.js.map +1 -1
  515. package/mobile/lib/services/sitemap/isHrefActive.d.ts +1 -2
  516. package/mobile/lib/services/sitemap/isHrefActive.js +2 -2
  517. package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -1
  518. package/mobile/lib/services/sitemap/isSubItemActive.d.ts +3 -2
  519. package/mobile/lib/services/sitemap/isSubItemActive.js.map +1 -1
  520. package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
  521. package/mobile/lib/services/sitemap/isTopItemActive.js +1 -6
  522. package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
  523. package/mobile/lib/setup-fixture.js +14 -7
  524. package/mobile/lib/setup-fixture.js.map +1 -1
  525. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +1 -2
  526. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  527. package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +0 -1
  528. package/mobile/lib/ui-kit/TopItem/TopItem.js +2 -2
  529. package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  530. package/mobile/lib/utils/adjustHref.d.ts +1 -4
  531. package/mobile/lib/utils/adjustHref.js +5 -9
  532. package/mobile/lib/utils/adjustHref.js.map +1 -1
  533. package/mobile/lib/utils/url.d.ts +4 -2
  534. package/mobile/lib/utils/url.js +12 -26
  535. package/mobile/lib/utils/url.js.map +1 -1
  536. package/mobile/src/ProjectSettings.ts +6 -7
  537. package/mobile/src/api/CorporateLeadAPI.ts +36 -0
  538. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +45 -0
  539. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +138 -0
  540. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +134 -0
  541. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +19 -0
  542. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +91 -0
  543. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +74 -0
  544. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +143 -0
  545. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +8 -0
  546. package/mobile/src/components/ApplicationForm/Footnote.tsx +25 -0
  547. package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +33 -0
  548. package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +32 -0
  549. package/mobile/src/components/ApplicationForm/acquiringTypes.ts +24 -0
  550. package/mobile/src/components/ApplicationForm/models.ts +7 -0
  551. package/mobile/src/components/ApplicationForm/normalizeSelectedRegion.ts +4 -0
  552. package/mobile/src/components/ApplicationForm/renderBankOffices.tsx +45 -0
  553. package/mobile/src/components/ApplicationForm/renderContacts.tsx +22 -0
  554. package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +61 -0
  555. package/mobile/src/components/ApplicationForm/renderDataOrganization.tsx +78 -0
  556. package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +45 -0
  557. package/mobile/src/components/ApplicationForm/renderSelects.tsx +38 -0
  558. package/mobile/src/components/ApplicationForm/renderSlideCheckboxes.tsx +28 -0
  559. package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +15 -0
  560. package/mobile/src/components/ApplicationForm/useFormHandlers.ts +32 -0
  561. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -21
  562. package/mobile/src/components/Header/HeaderSubMenu.tsx +2 -1
  563. package/mobile/src/components/Header/HeaderSubMenuItem.tsx +2 -4
  564. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
  565. package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -4
  566. package/mobile/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +1 -1
  567. package/mobile/src/hooks/useLink.ts +23 -25
  568. package/mobile/src/icons/IconName.ts +5 -5
  569. package/mobile/src/icons/MailIcon.svg +1 -0
  570. package/mobile/src/icons/PhoneIcon.svg +1 -0
  571. package/mobile/src/icons/ResponceFailIcon.svg +1 -0
  572. package/mobile/src/icons/ResponceOKIcon.svg +1 -0
  573. package/mobile/src/services/sitemap/isHrefActive.ts +4 -10
  574. package/mobile/src/services/sitemap/isSubItemActive.ts +1 -2
  575. package/mobile/src/services/sitemap/isTopItemActive.ts +2 -8
  576. package/mobile/src/setup-fixture.ts +19 -7
  577. package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +7 -8
  578. package/mobile/src/ui-kit/TopItem/TopItem.tsx +16 -19
  579. package/mobile/src/utils/adjustHref.ts +6 -14
  580. package/mobile/src/utils/url.ts +18 -33
  581. package/package.json +2 -2
  582. package/src/ProjectSettings.ts +6 -7
  583. package/src/api/CorporateLeadAPI.ts +36 -0
  584. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +43 -0
  585. package/src/components/ApplicationForm/ApplicationForm.tsx +45 -0
  586. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +138 -0
  587. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +134 -0
  588. package/src/components/ApplicationForm/ApplicationFormContent.ts +19 -0
  589. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +91 -0
  590. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +74 -0
  591. package/src/components/ApplicationForm/ApplicationFormWed.tsx +143 -0
  592. package/src/components/ApplicationForm/ApplicationFormsProps.ts +8 -0
  593. package/src/components/ApplicationForm/Footnote.tsx +25 -0
  594. package/src/components/ApplicationForm/ResponseNotification.tsx +33 -0
  595. package/src/components/ApplicationForm/WrapperSelect.tsx +32 -0
  596. package/src/components/ApplicationForm/acquiringTypes.ts +24 -0
  597. package/src/components/ApplicationForm/models.ts +7 -0
  598. package/src/components/ApplicationForm/normalizeSelectedRegion.ts +4 -0
  599. package/src/components/ApplicationForm/renderBankOffices.tsx +45 -0
  600. package/src/components/ApplicationForm/renderContacts.tsx +22 -0
  601. package/src/components/ApplicationForm/renderCreditParameters.tsx +61 -0
  602. package/src/components/ApplicationForm/renderDataOrganization.tsx +78 -0
  603. package/src/components/ApplicationForm/renderQuestionsInterested.tsx +45 -0
  604. package/src/components/ApplicationForm/renderSelects.tsx +38 -0
  605. package/src/components/ApplicationForm/renderSlideCheckboxes.tsx +28 -0
  606. package/src/components/ApplicationForm/renderSubmitButton.tsx +15 -0
  607. package/src/components/ApplicationForm/useFormHandlers.ts +32 -0
  608. package/src/components/Blocks.ts +2 -0
  609. package/src/components/Header/Header.tsx +3 -5
  610. package/src/components/Header/HeaderSecondaryMenu.tsx +1 -21
  611. package/src/components/Header/HeaderSubMenu.tsx +2 -1
  612. package/src/components/Header/HeaderSubMenuItem.tsx +2 -4
  613. package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
  614. package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -4
  615. package/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +1 -1
  616. package/src/hooks/useLink.ts +23 -25
  617. package/src/icons/IconName.ts +5 -5
  618. package/src/icons/MailIcon.svg +1 -0
  619. package/src/icons/PhoneIcon.svg +1 -0
  620. package/src/icons/ResponceFailIcon.svg +1 -0
  621. package/src/icons/ResponceOKIcon.svg +1 -0
  622. package/src/services/sitemap/isHrefActive.ts +4 -10
  623. package/src/services/sitemap/isSubItemActive.ts +1 -2
  624. package/src/services/sitemap/isTopItemActive.ts +2 -8
  625. package/src/setup-fixture.ts +19 -7
  626. package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +7 -8
  627. package/src/ui-kit/HeaderItem/HeaderItem.tsx +7 -8
  628. package/src/ui-kit/TopItem/TopItem.tsx +16 -19
  629. package/src/utils/adjustHref.ts +6 -14
  630. package/src/utils/url.ts +18 -33
  631. package/tailwind.config.cjs +5 -0
  632. package/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  633. package/bundle/utils/normalizeURLPath.d.ts +0 -1
  634. package/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  635. package/dist/services/sitemap/checkIsHrefSameOrigin.js +0 -6
  636. package/dist/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
  637. package/dist/utils/normalizeURLPath.d.ts +0 -1
  638. package/dist/utils/normalizeURLPath.js +0 -12
  639. package/dist/utils/normalizeURLPath.js.map +0 -1
  640. package/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  641. package/lib/services/sitemap/checkIsHrefSameOrigin.js +0 -3
  642. package/lib/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
  643. package/lib/utils/normalizeURLPath.d.ts +0 -1
  644. package/lib/utils/normalizeURLPath.js +0 -9
  645. package/lib/utils/normalizeURLPath.js.map +0 -1
  646. package/mobile/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  647. package/mobile/bundle/utils/normalizeURLPath.d.ts +0 -1
  648. package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  649. package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js +0 -6
  650. package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
  651. package/mobile/dist/utils/normalizeURLPath.d.ts +0 -1
  652. package/mobile/dist/utils/normalizeURLPath.js +0 -12
  653. package/mobile/dist/utils/normalizeURLPath.js.map +0 -1
  654. package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  655. package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js +0 -3
  656. package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
  657. package/mobile/lib/utils/normalizeURLPath.d.ts +0 -1
  658. package/mobile/lib/utils/normalizeURLPath.js +0 -9
  659. package/mobile/lib/utils/normalizeURLPath.js.map +0 -1
  660. package/mobile/src/services/sitemap/checkIsHrefSameOrigin.ts +0 -7
  661. package/mobile/src/utils/normalizeURLPath.ts +0 -10
  662. package/src/services/sitemap/checkIsHrefSameOrigin.ts +0 -7
  663. package/src/utils/normalizeURLPath.ts +0 -10
@@ -0,0 +1,138 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useEffect, 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 { useGetRegions } from '../SafeDepositRental/useGetRegions';
6
+ import { ACQUIRING_TYPES } from './acquiringTypes';
7
+ import type { ApplicationFormsProps } from './ApplicationFormsProps';
8
+ import { Footnote } from './Footnote';
9
+ import type { HandleFormStateChange } from './models';
10
+ import { normalizeSelectedRegion } from './normalizeSelectedRegion';
11
+ import { renderSelects } from './renderSelects';
12
+ import { renderSlideCheckboxes } from './renderSlideCheckboxes';
13
+ import { renderSubmitButton } from './renderSubmitButton';
14
+ import { useFormHandlers } from './useFormHandlers';
15
+
16
+ export interface AcquiringFormState {
17
+ acquiringType: string;
18
+ region: string;
19
+ fullName: string;
20
+ inn: string;
21
+ name: string;
22
+ phone: string;
23
+ onlineСheckout: boolean;
24
+ posTerminal: boolean;
25
+ }
26
+
27
+ export const ApplicationFormAcquiring = JSX<ApplicationFormsProps>((props) => {
28
+ const { button, link, handleSubmit } = props;
29
+
30
+ const [formState, setFormState] = useState<AcquiringFormState>({
31
+ acquiringType: '',
32
+ region: '',
33
+ fullName: '',
34
+ inn: '',
35
+ name: '',
36
+ phone: '',
37
+ onlineСheckout: false,
38
+ posTerminal: false,
39
+ });
40
+
41
+ const { acquiringType, region, fullName, inn, name, phone, onlineСheckout, posTerminal } =
42
+ formState;
43
+
44
+ const regions = useGetRegions();
45
+
46
+ const { handleChange, onSubmit } = useFormHandlers<AcquiringFormState>({
47
+ formState,
48
+ handleSubmit,
49
+ setFormState,
50
+ typeForm: 'acqr',
51
+ });
52
+
53
+ const selectedRegion = normalizeSelectedRegion(region, regions);
54
+
55
+ useEffect(() => {
56
+ setFormState((oldState) => ({
57
+ ...oldState,
58
+ acquiringType:
59
+ ACQUIRING_TYPES?.length && ACQUIRING_TYPES[0]?.code ? ACQUIRING_TYPES[0].code : '',
60
+ }));
61
+ }, []);
62
+
63
+ return (
64
+ <form onSubmit={onSubmit} className="container">
65
+ <Heading headingType="h6" title="Вид эквайринга и регион" className="text-center mb-4" />
66
+ {renderSelects({
67
+ acquiringType,
68
+ regions,
69
+ region: selectedRegion,
70
+ handleChange,
71
+ })}
72
+ <Heading headingType="h6" title="Данные организации" className="text-center mb-4" />
73
+ {renderDataOrganization({ fullName, inn, name, phone, handleChange })}
74
+ {renderSlideCheckboxes({
75
+ onlineСheckout,
76
+ posTerminal,
77
+ handleChange,
78
+ })}
79
+ {renderSubmitButton(button, 'mb-4')}
80
+ <Footnote link={link} />
81
+ </form>
82
+ );
83
+ });
84
+
85
+ interface RenderDataOrganizationProps {
86
+ fullName: string;
87
+ inn: string;
88
+ name: string;
89
+ phone: string;
90
+ handleChange: HandleFormStateChange<AcquiringFormState>;
91
+ }
92
+
93
+ const renderDataOrganization = ({
94
+ fullName,
95
+ inn,
96
+ name,
97
+ phone,
98
+ handleChange,
99
+ }: RenderDataOrganizationProps) => (
100
+ <div className="flex justify-between gap-5 mb-5">
101
+ <div className="w-1/2">
102
+ <Input
103
+ className="shrink-0 text-l w-full mb-5"
104
+ type="text"
105
+ aria-label="Наименование организации"
106
+ label="Наименование организации"
107
+ value={fullName}
108
+ onChange={(value) => handleChange({ fullName: value })}
109
+ />
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 className="w-1/2">
120
+ <Input
121
+ className="shrink-0 text-l w-full mb-5"
122
+ type="text"
123
+ label="ИНН"
124
+ aria-label="ИНН"
125
+ value={inn}
126
+ onChange={(value) => handleChange({ inn: value })}
127
+ />
128
+ <Input
129
+ className="shrink-0 text-l w-full"
130
+ type="text"
131
+ label="Телефон"
132
+ aria-label="Телефон"
133
+ value={phone}
134
+ onChange={(value) => handleChange({ phone: value })}
135
+ />
136
+ </div>
137
+ </div>
138
+ );
@@ -0,0 +1,134 @@
1
+ import { JSX } from '@redneckz/uni-jsx';
2
+ import { useState } from '@redneckz/uni-jsx/lib/hooks';
3
+ import type { Region } from '../../hooks/useRegions';
4
+ import { Input } from '../../ui-kit/Input/Input';
5
+ import { useGetRegions } from '../SafeDepositRental/useGetRegions';
6
+ import type { ApplicationFormsProps } from './ApplicationFormsProps';
7
+ import { Footnote } from './Footnote';
8
+ import type { HandleFormStateChange } from './models';
9
+ import { normalizeSelectedRegion } from './normalizeSelectedRegion';
10
+ import { renderSubmitButton } from './renderSubmitButton';
11
+ import { useFormHandlers } from './useFormHandlers';
12
+ import { WrapperSelect } from './WrapperSelect';
13
+
14
+ export interface BusinessCardFormState {
15
+ region: string;
16
+ name: string;
17
+ phone: string;
18
+ inn: string;
19
+ mail: string;
20
+ }
21
+
22
+ export const ApplicationFormBusinessCard = JSX<ApplicationFormsProps>((props) => {
23
+ const { button, link, handleSubmit } = props;
24
+ const [formState, setFormState] = useState<BusinessCardFormState>({
25
+ region: '',
26
+ name: '',
27
+ phone: '',
28
+ inn: '',
29
+ mail: '',
30
+ });
31
+
32
+ const { name, phone, inn, mail } = formState;
33
+
34
+ const regions = useGetRegions();
35
+
36
+ const { handleChange, onSubmit } = useFormHandlers<BusinessCardFormState>({
37
+ formState,
38
+ handleSubmit,
39
+ setFormState,
40
+ typeForm: 'bcrd',
41
+ });
42
+
43
+ const selectedRegion = normalizeSelectedRegion(formState.region, regions);
44
+
45
+ return (
46
+ <form onSubmit={onSubmit} className="container">
47
+ {renderRegion({
48
+ regions,
49
+ region: selectedRegion,
50
+ handleChange,
51
+ })}
52
+ {renderDataOrganization({ name, phone, inn, mail, handleChange })}
53
+ {renderSubmitButton(button, 'mb-4')}
54
+ <Footnote link={link} />
55
+ </form>
56
+ );
57
+ });
58
+
59
+ interface RenderDataOrganizationProps {
60
+ name: string;
61
+ phone: string;
62
+ mail: string;
63
+ inn: string;
64
+ handleChange: HandleFormStateChange<BusinessCardFormState>;
65
+ }
66
+
67
+ const renderDataOrganization = ({
68
+ name,
69
+ phone,
70
+ mail,
71
+ inn,
72
+ handleChange,
73
+ }: RenderDataOrganizationProps) => (
74
+ <div className="flex justify-between gap-5">
75
+ <div className="w-1/2">
76
+ <Input
77
+ className="shrink-0 text-l w-full mb-5"
78
+ type="text"
79
+ aria-label="Контактное лицо"
80
+ label="Контактное лицо"
81
+ value={name}
82
+ onChange={(value) => handleChange({ name: value })}
83
+ />
84
+ <Input
85
+ className="shrink-0 text-l w-full mb-5"
86
+ type="text"
87
+ aria-label="ИНН"
88
+ label="ИНН"
89
+ value={inn}
90
+ onChange={(value) => handleChange({ inn: value })}
91
+ />
92
+ </div>
93
+ <div className="w-1/2">
94
+ <Input
95
+ className="shrink-0 text-l w-full mb-5"
96
+ type="text"
97
+ aria-label="Телефон"
98
+ label="Телефон"
99
+ value={phone}
100
+ onChange={(value) => handleChange({ phone: value })}
101
+ />
102
+ <Input
103
+ className="shrink-0 text-l w-full "
104
+ type="text"
105
+ aria-label="Электронная почта"
106
+ label="Электронная почта"
107
+ value={mail}
108
+ onChange={(value) => handleChange({ mail: value })}
109
+ />
110
+ </div>
111
+ </div>
112
+ );
113
+
114
+ interface RenderRegionProps {
115
+ regions: Region[];
116
+ region: string;
117
+ handleChange: HandleFormStateChange<BusinessCardFormState>;
118
+ }
119
+
120
+ const renderRegion = ({ regions, region, handleChange }: RenderRegionProps) => (
121
+ <div className="flex justify-between gap-5 mb-5">
122
+ <div className="w-full">
123
+ <WrapperSelect
124
+ data={regions}
125
+ fieldValue="code"
126
+ fieldLabel="name"
127
+ selected={region}
128
+ setSelected={(value) => handleChange({ region: value })}
129
+ label="Регион"
130
+ placeholder="Выберите регион"
131
+ />
132
+ </div>
133
+ </div>
134
+ );
@@ -0,0 +1,19 @@
1
+ import type { HeadlineCommonProps } from '../../model/HeadlineType';
2
+ import type { LinkProps } from '../../model/LinkProps';
3
+ import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
4
+
5
+ /**
6
+ * @title Форма заявки
7
+ */
8
+ export type ApplicationFormContent = HeadlineCommonProps & {
9
+ /**
10
+ * @title Вид заявки
11
+ * @default credit
12
+ * @enumNames ["Бизнес-карта", "ВЭД", "Депозит", "Кредит", "Эквайринг"]
13
+ */
14
+ typeForm?: 'business-card' | 'wed' | 'deposit' | 'credit' | 'acquiring';
15
+ /** @title Кнопка */
16
+ button?: ButtonProps;
17
+ /** @title Условия передачи данных */
18
+ link?: LinkProps;
19
+ };
@@ -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
+ });