@redneckz/wildless-cms-uni-blocks 0.8.16 → 0.8.18

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 (573) hide show
  1. package/bin/migration-scripts/0.8.8.js +9 -6
  2. package/bundle/ProjectSettings.d.ts +2 -0
  3. package/bundle/api/CorporateLeadAPI.d.ts +1 -1
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +157 -81
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
  8. package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
  9. package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  10. package/bundle/components/ApplicationForm/CreditParameters.d.ts +6 -0
  11. package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  12. package/bundle/components/ApplicationForm/renderInputRange.d.ts +11 -0
  13. package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
  14. package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
  15. package/bundle/components/ApplicationForm/useFormHandlers.d.ts +1 -5
  16. package/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  17. package/bundle/components/CarouselCard/constants.d.ts +3 -3
  18. package/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  19. package/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  20. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  21. package/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
  22. package/bundle/components/Header/HeaderContent.d.ts +0 -6
  23. package/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  24. package/bundle/components/Header/useChatBot.d.ts +1 -2
  25. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  26. package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  27. package/bundle/components/Video/VideoContent.d.ts +19 -4
  28. package/bundle/hooks/useLink.d.ts +1 -3
  29. package/bundle/model/AlignType.d.ts +10 -0
  30. package/bundle/model/PreventableEvent.d.ts +3 -0
  31. package/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
  32. package/dist/ProjectSettings.d.ts +2 -0
  33. package/dist/ProjectSettings.js +3 -0
  34. package/dist/ProjectSettings.js.map +1 -1
  35. package/dist/api/CorporateLeadAPI.d.ts +1 -1
  36. package/dist/api/CorporateLeadAPI.js +1 -1
  37. package/dist/api/CorporateLeadAPI.js.map +1 -1
  38. package/dist/components/ApplicationForm/ApplicationForm.js +6 -3
  39. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  40. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
  41. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  42. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
  43. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  44. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
  45. package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
  46. package/dist/components/ApplicationForm/ApplicationFormCredit.js +21 -13
  47. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  48. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
  49. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  50. package/dist/components/ApplicationForm/ApplicationFormWed.js +14 -4
  51. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  52. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  53. package/dist/components/ApplicationForm/CreditParameters.d.ts +6 -0
  54. package/dist/components/ApplicationForm/CreditParameters.js +9 -0
  55. package/dist/components/ApplicationForm/CreditParameters.js.map +1 -0
  56. package/dist/components/ApplicationForm/acquiringTypes.js +0 -5
  57. package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
  58. package/dist/components/ApplicationForm/renderBankOffices.js +1 -1
  59. package/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  60. package/dist/components/ApplicationForm/renderCreditParameters.js +10 -12
  61. package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  62. package/dist/components/ApplicationForm/renderInputRange.d.ts +11 -0
  63. package/dist/components/ApplicationForm/renderInputRange.js +8 -0
  64. package/dist/components/ApplicationForm/renderInputRange.js.map +1 -0
  65. package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
  66. package/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  67. package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  68. package/dist/components/ApplicationForm/renderSelects.js +1 -1
  69. package/dist/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
  70. package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  71. package/dist/components/ApplicationForm/useFormHandlers.d.ts +1 -5
  72. package/dist/components/ApplicationForm/useFormHandlers.js +1 -6
  73. package/dist/components/ApplicationForm/useFormHandlers.js.map +1 -1
  74. package/dist/components/Blocks.js +2 -0
  75. package/dist/components/Blocks.js.map +1 -1
  76. package/dist/components/Carousel/Carousel.js +1 -0
  77. package/dist/components/Carousel/Carousel.js.map +1 -1
  78. package/dist/components/CarouselCard/CarouselCard.js +1 -1
  79. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  80. package/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  81. package/dist/components/CarouselCard/constants.d.ts +3 -3
  82. package/dist/components/CarouselCard/constants.js +2 -2
  83. package/dist/components/CarouselCard/constants.js.map +1 -1
  84. package/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  85. package/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
  86. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  87. package/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  88. package/dist/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
  89. package/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  90. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  91. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  92. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  93. package/dist/components/Footer/MediaButton.js +13 -10
  94. package/dist/components/Footer/MediaButton.js.map +1 -1
  95. package/dist/components/Header/Header.js +2 -2
  96. package/dist/components/Header/Header.js.map +1 -1
  97. package/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
  98. package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
  99. package/dist/components/Header/HeaderContent.d.ts +0 -6
  100. package/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  101. package/dist/components/Header/HeaderSecondaryMenu.js +3 -2
  102. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  103. package/dist/components/Header/useChatBot.d.ts +1 -2
  104. package/dist/components/Header/useChatBot.js.map +1 -1
  105. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  106. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  107. package/dist/components/ProductBlock/renderBackwardButton.js +3 -3
  108. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  109. package/dist/components/ProductGallery/ProductGallery.js +1 -1
  110. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  111. package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  112. package/dist/components/VerticalLayout/VerticalLayout.js +2 -1
  113. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  114. package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  115. package/dist/components/Video/Video.js +6 -1
  116. package/dist/components/Video/Video.js.map +1 -1
  117. package/dist/components/Video/VideoContent.d.ts +19 -4
  118. package/dist/hooks/useLink.d.ts +1 -3
  119. package/dist/hooks/useLink.js +1 -1
  120. package/dist/hooks/useLink.js.map +1 -1
  121. package/dist/model/AlignType.d.ts +10 -0
  122. package/dist/model/PreventableEvent.d.ts +3 -0
  123. package/{mobile/dist/model/CarouselCardVersion.js → dist/model/PreventableEvent.js} +1 -1
  124. package/dist/model/PreventableEvent.js.map +1 -0
  125. package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
  126. package/dist/services/sitemap/isTopItemActive.js +1 -3
  127. package/dist/services/sitemap/isTopItemActive.js.map +1 -1
  128. package/dist/wlc.json +3 -1
  129. package/lib/ProjectSettings.d.ts +2 -0
  130. package/lib/ProjectSettings.js +3 -0
  131. package/lib/ProjectSettings.js.map +1 -1
  132. package/lib/api/CorporateLeadAPI.d.ts +1 -1
  133. package/lib/api/CorporateLeadAPI.js +1 -1
  134. package/lib/api/CorporateLeadAPI.js.map +1 -1
  135. package/lib/common.css +1 -1
  136. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +0 -2
  137. package/lib/components/ApplicationForm/ApplicationForm.js +6 -3
  138. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  139. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
  140. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  141. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
  142. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  143. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
  144. package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
  145. package/lib/components/ApplicationForm/ApplicationFormCredit.js +18 -10
  146. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  147. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
  148. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  149. package/lib/components/ApplicationForm/ApplicationFormWed.js +14 -4
  150. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  151. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  152. package/lib/components/ApplicationForm/CreditParameters.d.ts +6 -0
  153. package/lib/components/ApplicationForm/CreditParameters.js +7 -0
  154. package/lib/components/ApplicationForm/CreditParameters.js.map +1 -0
  155. package/lib/components/ApplicationForm/acquiringTypes.js +0 -5
  156. package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
  157. package/lib/components/ApplicationForm/renderBankOffices.js +1 -1
  158. package/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  159. package/lib/components/ApplicationForm/renderCreditParameters.js +3 -5
  160. package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  161. package/lib/components/ApplicationForm/renderInputRange.d.ts +11 -0
  162. package/lib/components/ApplicationForm/renderInputRange.js +5 -0
  163. package/lib/components/ApplicationForm/renderInputRange.js.map +1 -0
  164. package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
  165. package/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  166. package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  167. package/lib/components/ApplicationForm/renderSelects.js +1 -1
  168. package/lib/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
  169. package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  170. package/lib/components/ApplicationForm/useFormHandlers.d.ts +1 -5
  171. package/lib/components/ApplicationForm/useFormHandlers.js +1 -6
  172. package/lib/components/ApplicationForm/useFormHandlers.js.map +1 -1
  173. package/lib/components/Blocks.js +2 -0
  174. package/lib/components/Blocks.js.map +1 -1
  175. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
  176. package/lib/components/Carousel/Carousel.js +1 -0
  177. package/lib/components/Carousel/Carousel.js.map +1 -1
  178. package/lib/components/CarouselCard/CarouselCard.js +1 -1
  179. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  180. package/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  181. package/lib/components/CarouselCard/constants.d.ts +3 -3
  182. package/lib/components/CarouselCard/constants.js +2 -2
  183. package/lib/components/CarouselCard/constants.js.map +1 -1
  184. package/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  185. package/lib/components/CarouselEventCard/CarouselEventCard.fixture.d.ts +7 -0
  186. package/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
  187. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  188. package/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  189. package/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
  190. package/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  191. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  192. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  193. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  194. package/lib/components/Footer/MediaButton.js +13 -10
  195. package/lib/components/Footer/MediaButton.js.map +1 -1
  196. package/lib/components/Header/Header.js +2 -2
  197. package/lib/components/Header/Header.js.map +1 -1
  198. package/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
  199. package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
  200. package/lib/components/Header/HeaderContent.d.ts +0 -6
  201. package/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  202. package/lib/components/Header/HeaderSecondaryMenu.js +3 -2
  203. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  204. package/lib/components/Header/useChatBot.d.ts +1 -2
  205. package/lib/components/Header/useChatBot.js.map +1 -1
  206. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  207. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  208. package/lib/components/ProductBlock/renderBackwardButton.js +3 -3
  209. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  210. package/lib/components/ProductGallery/ProductGallery.js +1 -1
  211. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  212. package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  213. package/lib/components/VerticalLayout/VerticalLayout.js +2 -1
  214. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  215. package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  216. package/lib/components/Video/Video.js +6 -1
  217. package/lib/components/Video/Video.js.map +1 -1
  218. package/lib/components/Video/VideoContent.d.ts +19 -4
  219. package/lib/hooks/useLink.d.ts +1 -3
  220. package/lib/hooks/useLink.js +1 -1
  221. package/lib/hooks/useLink.js.map +1 -1
  222. package/lib/model/AlignType.d.ts +10 -0
  223. package/lib/model/PreventableEvent.d.ts +3 -0
  224. package/lib/model/PreventableEvent.js +2 -0
  225. package/lib/model/PreventableEvent.js.map +1 -0
  226. package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
  227. package/lib/services/sitemap/isTopItemActive.js +1 -3
  228. package/lib/services/sitemap/isTopItemActive.js.map +1 -1
  229. package/lib/wlc.json +3 -1
  230. package/mobile/bundle/ProjectSettings.d.ts +2 -0
  231. package/mobile/bundle/api/CorporateLeadAPI.d.ts +1 -1
  232. package/mobile/bundle/bundle.umd.js +18 -14
  233. package/mobile/bundle/bundle.umd.min.js +1 -1
  234. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
  235. package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
  236. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  237. package/mobile/bundle/components/ApplicationForm/CreditParameters.d.ts +6 -0
  238. package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  239. package/mobile/bundle/components/ApplicationForm/renderInputRange.d.ts +11 -0
  240. package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
  241. package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
  242. package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +1 -5
  243. package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  244. package/mobile/bundle/components/CarouselCard/constants.d.ts +3 -3
  245. package/mobile/bundle/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  246. package/mobile/bundle/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  247. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  248. package/mobile/bundle/components/Header/HeaderChatBotButton.d.ts +1 -3
  249. package/mobile/bundle/components/Header/HeaderContent.d.ts +0 -6
  250. package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  251. package/mobile/bundle/components/Header/useChatBot.d.ts +1 -2
  252. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  253. package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  254. package/mobile/bundle/components/Video/VideoContent.d.ts +19 -4
  255. package/mobile/bundle/hooks/useLink.d.ts +1 -3
  256. package/mobile/bundle/model/AlignType.d.ts +10 -0
  257. package/mobile/bundle/model/PreventableEvent.d.ts +3 -0
  258. package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
  259. package/mobile/dist/ProjectSettings.d.ts +2 -0
  260. package/mobile/dist/ProjectSettings.js +3 -0
  261. package/mobile/dist/ProjectSettings.js.map +1 -1
  262. package/mobile/dist/api/CorporateLeadAPI.d.ts +1 -1
  263. package/mobile/dist/api/CorporateLeadAPI.js +1 -1
  264. package/mobile/dist/api/CorporateLeadAPI.js.map +1 -1
  265. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +6 -3
  266. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  267. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
  268. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  269. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
  270. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  271. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
  272. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
  273. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +21 -13
  274. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  275. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
  276. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  277. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +14 -4
  278. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  279. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  280. package/mobile/dist/components/ApplicationForm/CreditParameters.d.ts +6 -0
  281. package/mobile/dist/components/ApplicationForm/CreditParameters.js +9 -0
  282. package/mobile/dist/components/ApplicationForm/CreditParameters.js.map +1 -0
  283. package/mobile/dist/components/ApplicationForm/acquiringTypes.js +0 -5
  284. package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -1
  285. package/mobile/dist/components/ApplicationForm/renderBankOffices.js +1 -1
  286. package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  287. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +10 -12
  288. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  289. package/mobile/dist/components/ApplicationForm/renderInputRange.d.ts +11 -0
  290. package/mobile/dist/components/ApplicationForm/renderInputRange.js +8 -0
  291. package/mobile/dist/components/ApplicationForm/renderInputRange.js.map +1 -0
  292. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
  293. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  294. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  295. package/mobile/dist/components/ApplicationForm/renderSelects.js +1 -1
  296. package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
  297. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  298. package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +1 -5
  299. package/mobile/dist/components/ApplicationForm/useFormHandlers.js +1 -6
  300. package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +1 -1
  301. package/mobile/dist/components/Carousel/Carousel.js +1 -0
  302. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  303. package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
  304. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  305. package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  306. package/mobile/dist/components/CarouselCard/constants.d.ts +3 -3
  307. package/mobile/dist/components/CarouselCard/constants.js +2 -2
  308. package/mobile/dist/components/CarouselCard/constants.js.map +1 -1
  309. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  310. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +12 -0
  311. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  312. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  313. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
  314. package/mobile/dist/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  315. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  316. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  317. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  318. package/mobile/dist/components/Footer/MediaButton.js +13 -10
  319. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  320. package/mobile/dist/components/Header/HeaderChatBotButton.d.ts +1 -3
  321. package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
  322. package/mobile/dist/components/Header/HeaderContent.d.ts +0 -6
  323. package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  324. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +3 -2
  325. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  326. package/mobile/dist/components/Header/useChatBot.d.ts +1 -2
  327. package/mobile/dist/components/Header/useChatBot.js.map +1 -1
  328. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +3 -3
  329. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  330. package/mobile/dist/components/ProductGallery/ProductGallery.js +1 -1
  331. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  332. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  333. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +2 -1
  334. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  335. package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  336. package/mobile/dist/components/Video/Video.js +6 -1
  337. package/mobile/dist/components/Video/Video.js.map +1 -1
  338. package/mobile/dist/components/Video/VideoContent.d.ts +19 -4
  339. package/mobile/dist/hooks/useLink.d.ts +1 -3
  340. package/mobile/dist/hooks/useLink.js +1 -1
  341. package/mobile/dist/hooks/useLink.js.map +1 -1
  342. package/mobile/dist/model/AlignType.d.ts +10 -0
  343. package/mobile/dist/model/PreventableEvent.d.ts +3 -0
  344. package/{dist/model/CarouselCardVersion.js → mobile/dist/model/PreventableEvent.js} +1 -1
  345. package/mobile/dist/model/PreventableEvent.js.map +1 -0
  346. package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
  347. package/mobile/dist/services/sitemap/isTopItemActive.js +1 -3
  348. package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
  349. package/mobile/dist/wlc.json +3 -1
  350. package/mobile/lib/ProjectSettings.d.ts +2 -0
  351. package/mobile/lib/ProjectSettings.js +3 -0
  352. package/mobile/lib/ProjectSettings.js.map +1 -1
  353. package/mobile/lib/api/CorporateLeadAPI.d.ts +1 -1
  354. package/mobile/lib/api/CorporateLeadAPI.js +1 -1
  355. package/mobile/lib/api/CorporateLeadAPI.js.map +1 -1
  356. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +6 -3
  357. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  358. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +16 -5
  359. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
  360. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +16 -7
  361. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
  362. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +15 -4
  363. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +0 -6
  364. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +18 -10
  365. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
  366. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +11 -4
  367. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
  368. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +14 -4
  369. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
  370. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
  371. package/mobile/lib/components/ApplicationForm/CreditParameters.d.ts +6 -0
  372. package/mobile/lib/components/ApplicationForm/CreditParameters.js +7 -0
  373. package/mobile/lib/components/ApplicationForm/CreditParameters.js.map +1 -0
  374. package/mobile/lib/components/ApplicationForm/acquiringTypes.js +0 -5
  375. package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -1
  376. package/mobile/lib/components/ApplicationForm/renderBankOffices.js +1 -1
  377. package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +1 -1
  378. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +3 -5
  379. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
  380. package/mobile/lib/components/ApplicationForm/renderInputRange.d.ts +11 -0
  381. package/mobile/lib/components/ApplicationForm/renderInputRange.js +5 -0
  382. package/mobile/lib/components/ApplicationForm/renderInputRange.js.map +1 -0
  383. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +2 -2
  384. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  385. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
  386. package/mobile/lib/components/ApplicationForm/renderSelects.js +1 -1
  387. package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
  388. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
  389. package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +1 -5
  390. package/mobile/lib/components/ApplicationForm/useFormHandlers.js +1 -6
  391. package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +1 -1
  392. package/mobile/lib/components/Carousel/Carousel.js +1 -0
  393. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  394. package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
  395. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  396. package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +2 -2
  397. package/mobile/lib/components/CarouselCard/constants.d.ts +3 -3
  398. package/mobile/lib/components/CarouselCard/constants.js +2 -2
  399. package/mobile/lib/components/CarouselCard/constants.js.map +1 -1
  400. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.d.ts +5 -0
  401. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +10 -0
  402. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -0
  403. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.d.ts +9 -0
  404. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js +2 -0
  405. package/mobile/lib/components/CarouselEventCard/CarouselEventCardContent.js.map +1 -0
  406. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  407. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  408. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +8 -9
  409. package/mobile/lib/components/Footer/MediaButton.js +13 -10
  410. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  411. package/mobile/lib/components/Header/HeaderChatBotButton.d.ts +1 -3
  412. package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
  413. package/mobile/lib/components/Header/HeaderContent.d.ts +0 -6
  414. package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +0 -2
  415. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +3 -2
  416. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  417. package/mobile/lib/components/Header/useChatBot.d.ts +1 -2
  418. package/mobile/lib/components/Header/useChatBot.js.map +1 -1
  419. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +3 -3
  420. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  421. package/mobile/lib/components/ProductGallery/ProductGallery.js +1 -1
  422. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  423. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -0
  424. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +2 -1
  425. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  426. package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +2 -2
  427. package/mobile/lib/components/Video/Video.js +6 -1
  428. package/mobile/lib/components/Video/Video.js.map +1 -1
  429. package/mobile/lib/components/Video/VideoContent.d.ts +19 -4
  430. package/mobile/lib/hooks/useLink.d.ts +1 -3
  431. package/mobile/lib/hooks/useLink.js +1 -1
  432. package/mobile/lib/hooks/useLink.js.map +1 -1
  433. package/mobile/lib/model/AlignType.d.ts +10 -0
  434. package/mobile/lib/model/PreventableEvent.d.ts +3 -0
  435. package/mobile/lib/model/PreventableEvent.js +2 -0
  436. package/mobile/lib/model/PreventableEvent.js.map +1 -0
  437. package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
  438. package/mobile/lib/services/sitemap/isTopItemActive.js +1 -3
  439. package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
  440. package/mobile/lib/wlc.json +3 -1
  441. package/mobile/src/ProjectSettings.ts +4 -0
  442. package/mobile/src/api/CorporateLeadAPI.ts +2 -2
  443. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +8 -4
  444. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +20 -5
  445. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +20 -7
  446. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +16 -4
  447. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +23 -12
  448. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +15 -4
  449. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +18 -4
  450. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
  451. package/mobile/src/components/ApplicationForm/CreditParameters.ts +7 -0
  452. package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +1 -1
  453. package/mobile/src/components/ApplicationForm/acquiringTypes.ts +0 -5
  454. package/mobile/src/components/ApplicationForm/renderBankOffices.tsx +1 -1
  455. package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +3 -22
  456. package/mobile/src/components/ApplicationForm/renderInputRange.tsx +20 -0
  457. package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +3 -3
  458. package/mobile/src/components/ApplicationForm/renderSelects.tsx +2 -2
  459. package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
  460. package/mobile/src/components/ApplicationForm/useFormHandlers.ts +1 -15
  461. package/mobile/src/components/Carousel/Carousel.tsx +1 -0
  462. package/mobile/src/components/CarouselCard/CarouselCard.tsx +4 -4
  463. package/mobile/src/components/CarouselCard/CarouselCardContent.ts +2 -2
  464. package/mobile/src/components/CarouselCard/constants.ts +5 -5
  465. package/mobile/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
  466. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
  467. package/mobile/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
  468. package/mobile/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
  469. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
  470. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
  471. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
  472. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
  473. package/mobile/src/components/Footer/MediaButton.tsx +19 -14
  474. package/mobile/src/components/Header/HeaderChatBotButton.tsx +1 -4
  475. package/mobile/src/components/Header/HeaderContent.ts +0 -7
  476. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
  477. package/mobile/src/components/Header/useChatBot.ts +2 -3
  478. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
  479. package/mobile/src/components/ProductGallery/ProductGallery.example.json +2 -3
  480. package/mobile/src/components/ProductGallery/ProductGallery.tsx +1 -1
  481. package/mobile/src/components/TariffsTable/TariffsTable.example.json +3 -0
  482. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -0
  483. package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
  484. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
  485. package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
  486. package/mobile/src/components/Video/Video.example.json +5 -0
  487. package/mobile/src/components/Video/Video.tsx +23 -17
  488. package/mobile/src/components/Video/Video.ui.json +1 -1
  489. package/mobile/src/components/Video/VideoContent.ts +19 -4
  490. package/mobile/src/hooks/useLink.ts +2 -5
  491. package/mobile/src/model/AlignType.ts +11 -0
  492. package/mobile/src/model/PreventableEvent.ts +3 -0
  493. package/mobile/src/services/sitemap/isTopItemActive.ts +2 -7
  494. package/mobile/src/wlc.json +3 -1
  495. package/package.json +1 -1
  496. package/src/ProjectSettings.ts +4 -0
  497. package/src/api/CorporateLeadAPI.ts +2 -2
  498. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -1
  499. package/src/components/ApplicationForm/ApplicationForm.tsx +8 -4
  500. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +20 -5
  501. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +20 -7
  502. package/src/components/ApplicationForm/ApplicationFormContent.ts +16 -4
  503. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +23 -12
  504. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +15 -4
  505. package/src/components/ApplicationForm/ApplicationFormWed.tsx +18 -4
  506. package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
  507. package/src/components/ApplicationForm/CreditParameters.ts +7 -0
  508. package/src/components/ApplicationForm/WrapperSelect.tsx +1 -1
  509. package/src/components/ApplicationForm/acquiringTypes.ts +0 -5
  510. package/src/components/ApplicationForm/renderBankOffices.tsx +1 -1
  511. package/src/components/ApplicationForm/renderCreditParameters.tsx +3 -22
  512. package/src/components/ApplicationForm/renderInputRange.tsx +20 -0
  513. package/src/components/ApplicationForm/renderQuestionsInterested.tsx +3 -3
  514. package/src/components/ApplicationForm/renderSelects.tsx +2 -2
  515. package/src/components/ApplicationForm/renderSubmitButton.tsx +1 -1
  516. package/src/components/ApplicationForm/useFormHandlers.ts +1 -15
  517. package/src/components/Blocks.ts +2 -0
  518. package/src/components/Carousel/Carousel.fixture.tsx +19 -0
  519. package/src/components/Carousel/Carousel.tsx +1 -0
  520. package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
  521. package/src/components/CarouselCard/CarouselCard.tsx +4 -4
  522. package/src/components/CarouselCard/CarouselCardContent.ts +2 -2
  523. package/src/components/CarouselCard/constants.ts +5 -5
  524. package/src/components/CarouselEventCard/CarouselEventCard.example.json +14 -0
  525. package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +21 -0
  526. package/src/components/CarouselEventCard/CarouselEventCard.tsx +32 -0
  527. package/src/components/CarouselEventCard/CarouselEventCard.ui.json +1 -0
  528. package/src/components/CarouselEventCard/CarouselEventCardContent.ts +12 -0
  529. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.example.json +18 -18
  530. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +8 -3
  531. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -4
  532. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.ui.json +1 -4
  533. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +9 -9
  534. package/src/components/Footer/MediaButton.tsx +19 -14
  535. package/src/components/Header/Header.fixture.tsx +3 -3
  536. package/src/components/Header/Header.tsx +0 -2
  537. package/src/components/Header/HeaderChatBotButton.tsx +1 -4
  538. package/src/components/Header/HeaderContent.ts +0 -7
  539. package/src/components/Header/HeaderSecondaryMenu.tsx +8 -5
  540. package/src/components/Header/useChatBot.ts +2 -3
  541. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  542. package/src/components/ProductBlock/renderBackwardButton.tsx +6 -4
  543. package/src/components/ProductGallery/ProductGallery.example.json +2 -3
  544. package/src/components/ProductGallery/ProductGallery.tsx +1 -1
  545. package/src/components/TariffsTable/TariffsTable.example.json +3 -0
  546. package/src/components/TariffsTable/TariffsTableContent.ts +1 -0
  547. package/src/components/VerticalLayout/VerticalLayout.example.json +1 -1
  548. package/src/components/VerticalLayout/VerticalLayout.tsx +4 -3
  549. package/src/components/VerticalLayout/VerticalLayoutContent.ts +2 -2
  550. package/src/components/Video/Video.example.json +5 -0
  551. package/src/components/Video/Video.fixture.tsx +1 -1
  552. package/src/components/Video/Video.tsx +23 -17
  553. package/src/components/Video/Video.ui.json +1 -1
  554. package/src/components/Video/VideoContent.ts +19 -4
  555. package/src/hooks/useLink.ts +2 -5
  556. package/src/model/AlignType.ts +11 -0
  557. package/src/model/PreventableEvent.ts +3 -0
  558. package/src/services/sitemap/isTopItemActive.ts +2 -7
  559. package/src/wlc.json +3 -1
  560. package/bundle/model/CarouselCardVersion.d.ts +0 -1
  561. package/dist/model/CarouselCardVersion.d.ts +0 -1
  562. package/dist/model/CarouselCardVersion.js.map +0 -1
  563. package/lib/model/CarouselCardVersion.d.ts +0 -1
  564. package/lib/model/CarouselCardVersion.js +0 -2
  565. package/lib/model/CarouselCardVersion.js.map +0 -1
  566. package/mobile/bundle/model/CarouselCardVersion.d.ts +0 -1
  567. package/mobile/dist/model/CarouselCardVersion.d.ts +0 -1
  568. package/mobile/dist/model/CarouselCardVersion.js.map +0 -1
  569. package/mobile/lib/model/CarouselCardVersion.d.ts +0 -1
  570. package/mobile/lib/model/CarouselCardVersion.js +0 -2
  571. package/mobile/lib/model/CarouselCardVersion.js.map +0 -1
  572. package/mobile/src/model/CarouselCardVersion.ts +0 -1
  573. package/src/model/CarouselCardVersion.ts +0 -1
@@ -80,6 +80,9 @@
80
80
  get FOOTER() {
81
81
  return this._.FOOTER;
82
82
  }
83
+ get CHAT_BOT() {
84
+ return this._.CHAT_BOT;
85
+ }
83
86
  get CDN() {
84
87
  return appendSlash(this._.CDN);
85
88
  }
@@ -515,6 +518,27 @@
515
518
  AccordionItem.childrenTypes = [];
516
519
  const FoldButton = JSX(({ label, icon, onClick }) => (jsxs("button", { className: "border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer", onClick: onClick, children: [jsx(Text, { size: "text-xl", font: "font-medium", children: label }), jsx(ImgInner, { image: { icon }, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })] })));
517
520
 
521
+ function CorporateLeadAPI() {
522
+ async function send(body) {
523
+ try {
524
+ const response = await fetch('/api/v1/sendCorporateLead', {
525
+ method: 'POST',
526
+ headers: { 'Content-Type': 'application/json' },
527
+ mode: 'cors',
528
+ body: JSON.stringify(body),
529
+ });
530
+ const data = await response.json();
531
+ return data;
532
+ }
533
+ catch (e) {
534
+ return null;
535
+ }
536
+ }
537
+ return {
538
+ send,
539
+ };
540
+ }
541
+
518
542
  const Input = JSX(({ className = '', inputClassName = '', id, name, type = 'text', label, value = '', valid = true, children, onChange, onBlur, ...inputProps }) => {
519
543
  const handleChange = useCallback((e) => {
520
544
  const validInputValue = e.target.validity.valid ? e.target.value : value;
@@ -622,23 +646,18 @@
622
646
 
623
647
  const ACQUIRING_TYPES = [
624
648
  {
625
- code: '1',
626
649
  name: 'Торговый эквайринг',
627
650
  },
628
651
  {
629
- code: '2',
630
652
  name: 'Мобильный эквайринг',
631
653
  },
632
654
  {
633
- code: '3',
634
655
  name: 'Интернет-эквайринг',
635
656
  },
636
657
  {
637
- code: '4',
638
658
  name: 'QR-эквайринг (СБП)',
639
659
  },
640
660
  {
641
- code: '5',
642
661
  name: 'Все виды эквайринга',
643
662
  },
644
663
  ];
@@ -652,7 +671,7 @@
652
671
  handlerDecorator._impl = impl;
653
672
  };
654
673
 
655
- function useLink(isRemote) {
674
+ function useLink(isRemote = false) {
656
675
  const router = useRouter();
657
676
  return (props) => ({
658
677
  ...props,
@@ -803,7 +822,7 @@
803
822
  return (jsx(Select, { options: dataFormat, label: label, placeholder: placeholder || selected, onChange: (_) => setSelected(_.key), value: selectedObj }));
804
823
  });
805
824
 
806
- const renderSelects = ({ acquiringType, regions, region, handleChange }) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsx("div", { className: "w-1/2", children: jsx(WrapperSelect$1, { data: ACQUIRING_TYPES, fieldValue: "code", fieldLabel: "name", selected: acquiringType, setSelected: (value) => handleChange({ acquiringType: value }), label: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433" }) }), jsx("div", { className: "w-1/2", children: jsx(WrapperSelect$1, { data: regions, fieldValue: "code", fieldLabel: "name", selected: region, setSelected: (value) => handleChange({ region: value }), label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441" }) })] }));
825
+ const renderSelects = ({ acquiringType, regions, region, handleChange }) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsx("div", { className: "w-1/2", children: jsx(WrapperSelect$1, { data: ACQUIRING_TYPES, fieldValue: "name", fieldLabel: "name", selected: acquiringType, setSelected: (value) => handleChange({ acquiringType: value }), label: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433" }) }), jsx("div", { className: "w-1/2", children: jsx(WrapperSelect$1, { data: regions, fieldValue: "name", fieldLabel: "name", selected: region, setSelected: (value) => handleChange({ region: value }), label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441" }) })] }));
807
826
 
808
827
  const SlideCheckbox = JSX(({ checked, text, onClick }) => (jsxs("div", { role: "checkbox", "aria-checked": checked, className: "flex justify-start items-center w-full cursor-pointer mb-4", onClick: () => onClick && onClick(), children: [jsx("div", { className: `relative duration-300 w-9 h-5 mr-3 rounded rounded-2xl ${checked ? 'bg-primary-main' : 'bg-main-divider'}`, children: jsx("div", { className: `absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded rounded-full ${checked ? 'left-[50%]' : 'left-[5%]'}` }) }), jsx("div", { children: jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: text }) })] })));
809
828
 
@@ -817,15 +836,10 @@
817
836
  return (jsx("button", { type: "submit", className: `p-4 ${buttonStyle} ${className}`, children: button?.text ? button.text : 'Отправить заявку' }));
818
837
  };
819
838
 
820
- const useFormHandlers = ({ formState, handleSubmit, setFormState, typeForm, }) => {
839
+ const useFormHandlers = ({ setFormState }) => {
821
840
  const handleChange = useCallback((state) => setFormState((oldState) => ({ ...oldState, ...state })), []);
822
- const onSubmit = useCallback(async (e) => {
823
- e.preventDefault();
824
- handleSubmit && (await handleSubmit({ ...formState, typeForm }));
825
- }, []);
826
841
  return {
827
842
  handleChange,
828
- onSubmit,
829
843
  };
830
844
  };
831
845
 
@@ -843,19 +857,30 @@
843
857
  });
844
858
  const { acquiringType, region, fullName, inn, name, phone, onlineСheckout, posTerminal } = formState;
845
859
  const regions = useGetRegions();
846
- const { handleChange, onSubmit } = useFormHandlers({
847
- formState,
848
- handleSubmit,
860
+ const { handleChange } = useFormHandlers({
849
861
  setFormState,
850
- typeForm: 'acqr',
851
862
  });
852
863
  const selectedRegion = normalizeSelectedRegion$1(region, regions);
853
864
  useEffect(() => {
854
865
  setFormState((oldState) => ({
855
866
  ...oldState,
856
- acquiringType: ACQUIRING_TYPES?.length && ACQUIRING_TYPES[0]?.code ? ACQUIRING_TYPES[0].code : '',
867
+ acquiringType: ACQUIRING_TYPES?.length && ACQUIRING_TYPES[0]?.name ? ACQUIRING_TYPES[0].name : '',
857
868
  }));
858
869
  }, []);
870
+ const onSubmit = async (e) => {
871
+ e.preventDefault();
872
+ const PartnerComments = `Вид эквайринга=${acquiringType}/Онлайн касса=${onlineСheckout}/POS-терминал=${posTerminal}`;
873
+ handleSubmit &&
874
+ (await handleSubmit({
875
+ typeForm: 'acqr',
876
+ region,
877
+ PartnerComments,
878
+ fullName,
879
+ inn,
880
+ name,
881
+ phone,
882
+ }));
883
+ };
859
884
  return (jsxs("form", { onSubmit: onSubmit, className: "container", children: [jsx(Heading, { headingType: "h6", title: "\u0412\u0438\u0434 \u044D\u043A\u0432\u0430\u0439\u0440\u0438\u043D\u0433\u0430 \u0438 \u0440\u0435\u0433\u0438\u043E\u043D", className: "text-center mb-4" }), renderSelects({
860
885
  acquiringType,
861
886
  regions,
@@ -878,15 +903,24 @@
878
903
  inn: '',
879
904
  mail: '',
880
905
  });
881
- const { name, phone, inn, mail } = formState;
906
+ const { region, name, phone, inn, mail } = formState;
882
907
  const regions = useGetRegions();
883
- const { handleChange, onSubmit } = useFormHandlers({
884
- formState,
885
- handleSubmit,
908
+ const { handleChange } = useFormHandlers({
886
909
  setFormState,
887
- typeForm: 'bcrd',
888
910
  });
889
- const selectedRegion = normalizeSelectedRegion$1(formState.region, regions);
911
+ const selectedRegion = normalizeSelectedRegion$1(region, regions);
912
+ const onSubmit = async (e) => {
913
+ e.preventDefault();
914
+ handleSubmit &&
915
+ (await handleSubmit({
916
+ typeForm: 'bcrd',
917
+ region,
918
+ name,
919
+ phone,
920
+ inn,
921
+ mail,
922
+ }));
923
+ };
890
924
  return (jsxs("form", { onSubmit: onSubmit, className: "container", children: [renderRegion$1({
891
925
  regions,
892
926
  region: selectedRegion,
@@ -894,7 +928,7 @@
894
928
  }), renderDataOrganization$3({ name, phone, inn, mail, handleChange }), renderSubmitButton(button, 'mb-4'), jsx(Footnote, { link: link })] }));
895
929
  });
896
930
  const renderDataOrganization$3 = ({ name, phone, mail, inn, handleChange, }) => (jsxs("div", { className: "flex justify-between gap-5", children: [jsxs("div", { className: "w-1/2", children: [jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", value: name, onChange: (value) => handleChange({ name: value }) }), jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u0418\u041D\u041D", label: "\u0418\u041D\u041D", value: inn, onChange: (value) => handleChange({ inn: value }) })] }), jsxs("div", { className: "w-1/2", children: [jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", value: phone, onChange: (value) => handleChange({ phone: value }) }), jsx(Input, { className: "shrink-0 text-l w-full ", type: "text", "aria-label": "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", value: mail, onChange: (value) => handleChange({ mail: value }) })] })] }));
897
- const renderRegion$1 = ({ regions, region, handleChange }) => (jsx("div", { className: "flex justify-between gap-5 mb-5", children: jsx("div", { className: "w-full", children: jsx(WrapperSelect$1, { data: regions, fieldValue: "code", fieldLabel: "name", selected: region, setSelected: (value) => handleChange({ region: value }), label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D" }) }) }));
931
+ const renderRegion$1 = ({ regions, region, handleChange }) => (jsx("div", { className: "flex justify-between gap-5 mb-5", children: jsx("div", { className: "w-full", children: jsx(WrapperSelect$1, { data: regions, fieldValue: "name", fieldLabel: "name", selected: region, setSelected: (value) => handleChange({ region: value }), label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D" }) }) }));
898
932
 
899
933
  const SAFEBOXES_URL = '/api/v1/safeboxes';
900
934
  const EMPTY_VALUE = [];
@@ -907,7 +941,14 @@
907
941
  return result || EMPTY_VALUE;
908
942
  };
909
943
 
910
- const renderBankOffices = ({ regions, region, branches, department, handleChange, }) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsx("div", { className: "w-1/2", children: jsx(WrapperSelect$1, { data: regions, fieldValue: "code", fieldLabel: "name", selected: region, setSelected: (value) => handleChange({ region: value }), label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D" }) }), jsx("div", { className: "w-1/2", children: jsx(WrapperSelect$1, { data: branches, fieldValue: "branchCode", fieldLabel: "address", selected: department, setSelected: (value) => handleChange({ department: value }), label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441" }) })] }));
944
+ const MIN_CREDIT_AMOUNT = 50000;
945
+ const MAX_CREDIT_AMOUNT = 3000000;
946
+ const ITEMS_CREDIT_AMOUNT = ['От 50 000 ₽', 'До 3 000 000 ₽'];
947
+ const MIN_CREDIT_TERM = 1;
948
+ const MAX_CREDIT_TERM = 60;
949
+ const ITEMS_CREDIT_TERM = ['От 1 года', 'До 5 лет'];
950
+
951
+ const renderBankOffices = ({ regions, region, branches, department, handleChange, }) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsx("div", { className: "w-1/2", children: jsx(WrapperSelect$1, { data: regions, fieldValue: "name", fieldLabel: "name", selected: region, setSelected: (value) => handleChange({ region: value }), label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D" }) }), jsx("div", { className: "w-1/2", children: jsx(WrapperSelect$1, { data: branches, fieldValue: "branchCode", fieldLabel: "address", selected: department, setSelected: (value) => handleChange({ department: value }), label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441" }) })] }));
911
952
 
912
953
  const addSpacesBetweenNumbers = (number) => new Intl.NumberFormat('ru-RU', {}).format(number);
913
954
 
@@ -933,6 +974,8 @@
933
974
  return (jsx("div", { className: "flex justify-between my-2", children: items.map((item, i) => (jsx("span", { className: "text-s-light text-secondary-text", children: item }, String(i)))) }));
934
975
  }
935
976
 
977
+ const renderInputRange = (props) => (jsxs("div", { className: "w-1/2", children: [jsx("label", { children: jsx(Text, { size: "text-m-light", children: props.label }) }), jsx(InputRange, { ...props })] }));
978
+
936
979
  const renderCreditParameters = ({ amount, term, handleChange, }) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [renderInputRange({
937
980
  label: 'Сумма кредита, ₽',
938
981
  value: amount,
@@ -948,16 +991,9 @@
948
991
  max: MAX_CREDIT_TERM,
949
992
  items: ITEMS_CREDIT_TERM,
950
993
  })] }));
951
- const renderInputRange = (props) => (jsxs("div", { className: "w-1/2", children: [jsx("label", { children: jsx(Text, { size: "text-m-light", children: props.label }) }), jsx(InputRange, { ...props })] }));
952
994
 
953
995
  const renderDataOrganization$2 = ({ fullName, inn, name, phone, mail, annualRevenue, handleChange, }) => (jsxs("div", { className: "flex justify-between gap-5 mb-7", children: [jsxs("div", { className: "w-1/2", children: [jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", label: "\u041D\u0430\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", value: fullName, onChange: (value) => handleChange({ fullName: value }) }), jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u0418\u041D\u041D", label: "\u0418\u041D\u041D", value: inn, onChange: (value) => handleChange({ inn: value }) }), jsx(Input, { className: "shrink-0 text-l w-full ", type: "text", "aria-label": "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", value: phone, onChange: (value) => handleChange({ phone: value }) })] }), jsxs("div", { className: "w-1/2", children: [jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", label: "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", value: annualRevenue, onChange: (value) => handleChange({ annualRevenue: value }) }), jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", value: name, onChange: (value) => handleChange({ name: value }) }), jsx(Input, { className: "shrink-0 text-l w-full ", type: "text", "aria-label": "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", value: mail, onChange: (value) => handleChange({ mail: value }) })] })] }));
954
996
 
955
- const MIN_CREDIT_AMOUNT = 50000;
956
- const MAX_CREDIT_AMOUNT = 3000000;
957
- const ITEMS_CREDIT_AMOUNT = ['От 50 000 ₽', 'До 3 000 000 ₽'];
958
- const MIN_CREDIT_TERM = 1;
959
- const MAX_CREDIT_TERM = 60;
960
- const ITEMS_CREDIT_TERM = ['От 1 года', 'До 5 лет'];
961
997
  const ApplicationFormCredit = JSX((props) => {
962
998
  const { button, link, handleSubmit } = props;
963
999
  const [formState, setFormState] = useState({
@@ -974,11 +1010,8 @@
974
1010
  });
975
1011
  const { amount, term, fullName, inn, name, phone, mail, region, department, annualRevenue } = formState;
976
1012
  const regions = useGetRegions();
977
- const { handleChange, onSubmit } = useFormHandlers({
978
- formState,
979
- handleSubmit,
1013
+ const { handleChange } = useFormHandlers({
980
1014
  setFormState,
981
- typeForm: 'cred',
982
1015
  });
983
1016
  const selectedRegion = normalizeSelectedRegion$1(formState.region, regions);
984
1017
  const branches = useSafeBoxes(region);
@@ -987,6 +1020,22 @@
987
1020
  department: '',
988
1021
  });
989
1022
  }, [formState.region, handleChange]);
1023
+ const onSubmit = async (e) => {
1024
+ e.preventDefault();
1025
+ const PartnerComments = `Сумма=${amount}/Срок=${term}/Выручка=${annualRevenue}`;
1026
+ handleSubmit &&
1027
+ (await handleSubmit({
1028
+ typeForm: 'cred',
1029
+ fullName,
1030
+ inn,
1031
+ name,
1032
+ phone,
1033
+ mail,
1034
+ region,
1035
+ department,
1036
+ PartnerComments,
1037
+ }));
1038
+ };
990
1039
  return (jsxs("form", { onSubmit: onSubmit, className: "container", children: [jsx(Heading, { headingType: "h6", title: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043A\u0440\u0435\u0434\u0438\u0442\u0430", className: "text-center mb-4" }), renderCreditParameters({ amount, term, handleChange }), jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "text-center mb-4" }), renderDataOrganization$2({ fullName, inn, name, phone, mail, annualRevenue, handleChange }), jsx(Heading, { headingType: "h6", title: "\u041E\u0444\u0438\u0441 \u0431\u0430\u043D\u043A\u0430", className: "text-center mb-4" }), renderBankOffices({
991
1040
  regions,
992
1041
  region: selectedRegion,
@@ -1002,12 +1051,19 @@
1002
1051
  name: '',
1003
1052
  phone: '',
1004
1053
  });
1005
- const { handleChange, onSubmit } = useFormHandlers({
1006
- formState,
1007
- handleSubmit,
1054
+ const { name, phone } = formState;
1055
+ const { handleChange } = useFormHandlers({
1008
1056
  setFormState,
1009
- typeForm: 'dpst',
1010
1057
  });
1058
+ const onSubmit = async (e) => {
1059
+ e.preventDefault();
1060
+ handleSubmit &&
1061
+ (await handleSubmit({
1062
+ typeForm: 'dpst',
1063
+ name,
1064
+ phone,
1065
+ }));
1066
+ };
1011
1067
  return (jsxs("form", { onSubmit: onSubmit, className: "container", children: [jsx(Heading, { headingType: "h6", title: "\u041E\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u0437\u0430\u044F\u0432\u043A\u0443 \u0438 \u043C\u044B \u043E\u0442\u0432\u0435\u0442\u0438\u043C \u043D\u0430 \u043B\u044E\u0431\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430\u043C", className: "text-center mb-4" }), renderDataOrganization$1({ name: formState.name, phone: formState.phone, handleChange }), jsxs("div", { className: "flex justify-between items-center max-w-[560px] m-auto", children: [jsx("div", { className: "flex-1", children: jsx(Footnote, { link: link }) }), renderSubmitButton(button)] })] }));
1012
1068
  });
1013
1069
  const renderDataOrganization$1 = ({ name, phone, handleChange }) => (jsxs("div", { className: "max-w-[560px] m-auto", children: [jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u0418\u043C\u044F", label: "\u0418\u043C\u044F", value: name, onChange: (value) => handleChange({ name: value }) }), jsx(Input, { className: "shrink-0 text-l w-full mb-5", type: "text", "aria-label": "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", value: phone, onChange: (value) => handleChange({ phone: value }) })] }));
@@ -1032,7 +1088,7 @@
1032
1088
  : 'rounded checked:bg-primary-main disabled:bg-main-disabled border', checked ? 'border-black' : 'border-gray', disabled ? '' : 'group-hover/box:border-primary-hover'), type: "checkbox", onChange: (e) => onChange && onChange(e.target.checked), checked: checked, disabled: disabled }), isRadio ? (jsx("div", { className: "left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "hidden absolute left-1 ml-px peer-checked:block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" })), text ? jsx("span", { className: "font-sans ml-3 text-l-light", children: text }) : null] }) }));
1033
1089
  });
1034
1090
 
1035
- const renderQuestionsInterested = ({ currencyControl, documentaryOperations, conversionOperations, text, handleChange, }) => (jsxs("div", { className: "mb-6", children: [jsxs("div", { className: "flex items-center mb-4 gap-6", children: [jsx(Checkbox, { text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", checked: currencyControl, onChange: (value) => handleChange({ currencyControl: value }) }), jsx(Checkbox, { text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: documentaryOperations, onChange: (value) => handleChange({ documentaryOperations: value }) }), jsx(Checkbox, { text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: conversionOperations, onChange: (value) => handleChange({ conversionOperations: value }) })] }), jsx("textarea", { placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0412\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441, \u043C\u0435\u0441\u0442\u043E \u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0437\u043D\u0435\u0441\u0430 \u0438 \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u043D\u043E\u0433\u043E \u0437\u0432\u043E\u043D\u043A\u0430", className: "block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text", value: text, onChange: (e) => handleChange({ text: e.target.value }) })] }));
1091
+ const renderQuestionsInterested = ({ currencyControl, documentaryOperations, conversionOperations, text, handleChange, }) => (jsxs("div", { className: "mb-6", children: [jsxs("div", { className: "flex items-center mb-4 gap-6", children: [jsx(Checkbox, { text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", checked: currencyControl, onChange: (value) => handleChange({ currencyControl: value }) }), jsx(Checkbox, { text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: documentaryOperations, onChange: (value) => handleChange({ documentaryOperations: value }) }), jsx(Checkbox, { text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: conversionOperations, onChange: (value) => handleChange({ conversionOperations: value }) })] }), jsx("textarea", { placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0412\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441, \u043C\u0435\u0441\u0442\u043E \u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0437\u043D\u0435\u0441\u0430 \u0438 \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u043D\u043E\u0433\u043E \u0437\u0432\u043E\u043D\u043A\u0430", className: "block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text", value: text, onChange: (e) => handleChange({ text: e.target.value }) })] }));
1036
1092
 
1037
1093
  const ApplicationFormWed = JSX((props) => {
1038
1094
  const { button, link, handleSubmit } = props;
@@ -1047,12 +1103,22 @@
1047
1103
  text: '',
1048
1104
  });
1049
1105
  const { fullName, name, phone, mail, currencyControl, documentaryOperations, conversionOperations, text, } = formState;
1050
- const { handleChange, onSubmit } = useFormHandlers({
1051
- formState,
1052
- handleSubmit,
1106
+ const { handleChange } = useFormHandlers({
1053
1107
  setFormState,
1054
- typeForm: 'kved',
1055
1108
  });
1109
+ const onSubmit = async (e) => {
1110
+ e.preventDefault();
1111
+ const PartnerComments = `Валютный контроль=${currencyControl}/Документарные операции=${documentaryOperations}/Конверсионные операции=${conversionOperations}/Доп инф=${text}`;
1112
+ handleSubmit &&
1113
+ (await handleSubmit({
1114
+ typeForm: 'kved',
1115
+ fullName,
1116
+ name,
1117
+ phone,
1118
+ mail,
1119
+ PartnerComments,
1120
+ }));
1121
+ };
1056
1122
  return (jsxs("form", { onSubmit: onSubmit, className: "container", children: [jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "text-center mb-4" }), renderDataOrganization({ fullName, name, phone, mail, handleChange }), jsx(Heading, { headingType: "h6", title: "\u0418\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u043E\u043F\u0440\u043E\u0441", className: "text-center mb-4" }), renderQuestionsInterested({
1057
1123
  currencyControl,
1058
1124
  documentaryOperations,
@@ -1076,11 +1142,13 @@
1076
1142
  deposit: (props) => jsx(ApplicationFormDeposit, { ...props }),
1077
1143
  wed: (props) => jsx(ApplicationFormWed, { ...props }),
1078
1144
  };
1145
+ const API = CorporateLeadAPI();
1079
1146
  const ApplicationForm = JSX((props) => {
1080
1147
  const { className = '', title, typeForm = 'credit', button, link, ...rest } = props;
1081
- const [responceType, setResponceType] = useState('');
1082
- const handleSubmit = useCallback(() => {
1083
- setResponceType('OK');
1148
+ const [responceType, setResponseType] = useState('');
1149
+ const handleSubmit = useCallback(async (data) => {
1150
+ const status = await API.send(data);
1151
+ setResponseType(status ? 'OK' : 'Fail');
1084
1152
  return 'OK';
1085
1153
  }, []);
1086
1154
  return (jsx(BlockWrapper, { className: `font-sans bg-white p-[50px] pb-9 ${className}`, ...rest, children: jsxs("div", { className: "container max-w-[978px]", children: [title ? jsx(Heading, { headingType: "h3", title: title, className: "text-center mb-8" }) : null, COMPONENTS_MAP[typeForm]({ button, link, handleSubmit }), responceType ? jsx(ResponseNotification, { responceType: responceType }) : null] }) }));
@@ -1940,6 +2008,7 @@
1940
2008
  'CarouselRecommendationCard',
1941
2009
  'CarouselTariffsCard',
1942
2010
  'CarouselInvestmentCard',
2011
+ 'CarouselEventCard',
1943
2012
  ];
1944
2013
  const getPaddingStyle = (isPadding) => (isPadding ? 'p-12' : '');
1945
2014
 
@@ -1987,7 +2056,7 @@
1987
2056
  const BLOCK_CLASSES = 'absolute border border-solid border-gray w-full h-full';
1988
2057
  const CARD_WIDTH_MAP = {
1989
2058
  normal: 'min-w-[970px]',
1990
- mini: 'min-w-[355px]',
2059
+ small: 'min-w-[355px]',
1991
2060
  };
1992
2061
  const CarouselCard = JSX(({ className = '', button, description, title, carouselVersion = 'normal' }) => (jsx("section", { className: `flex pb-9 pl-12 border-box h-full ${CARD_WIDTH_MAP[carouselVersion]} ${className}`, children: jsxs("div", { className: "relative w-full", children: [jsx("div", { className: `${BLOCK_CLASSES} z-10 top-9 right-12 bg-green-dark` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-6 right-8 bg-green` }), jsx("div", { className: `${BLOCK_CLASSES} z-10 top-3 right-4 bg-green-light` }), jsxs("div", { className: "relative h-full bg-white z-10 p-10 border border-solid border-green-light", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "L", align: "text-left" }), renderButtonsSection([button], { className: 'mt-14' })] })] }) })));
1993
2062
 
@@ -1998,6 +2067,13 @@
1998
2067
  const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: `border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${className}`, ...rest, children: [image?.src ? jsx(ImgInner, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Paragraph, { size: "text-m", align: "text-left", font: "font-light", children: description }) })) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-s-light text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: jsx(Text, { children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, renderButtonsSection([button], { buttonClassName: 'mt-5 w-full' })] })));
1999
2068
  const renderColorOption = (color, i) => (jsx("span", { className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2000
2069
 
2070
+ const getIconWithVersion = (icon, version = 'primary') => ({
2071
+ ...icon,
2072
+ iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
2073
+ });
2074
+
2075
+ const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col w-[365px]', className), ...rest, children: jsxs("a", { href: href, target: target, role: "link", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-2", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Text, { font: "font-light", size: "text-s", color: "text-secondary-text", children: description }) })) : null] }) })));
2076
+
2001
2077
  const BaseTile = JSX(({ className = '', title = '', buttons, image, children }) => (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { className: "h-full", children: children }), buttons ? jsx("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] })));
2002
2078
 
2003
2079
  const getItemListFontSize = (colValue) => (colValue === 1 ? 'text-h6' : 'text-l');
@@ -2070,43 +2146,38 @@
2070
2146
  const renderAdditionalDescription$1 = (additionalDescription) => additionalDescription ? (jsx("div", { className: "mt-auto", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription }) })) : null;
2071
2147
  const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted })) : null;
2072
2148
 
2073
- const getIconWithVersion = (icon, version = 'primary') => ({
2074
- ...icon,
2075
- iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
2076
- });
2077
-
2078
2149
  const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [], ...rest }) => (jsxs(BlockWrapper, { className: `border border-gray flex min-w-[536px] ${className}`, ...rest, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }), jsxs("div", { className: "p-8 pl-3 w-full", children: [title ? jsx(Heading, { className: " mb-3.5", headingType: "h5", title: title }) : null, list.length ? jsx("div", { className: "flex flex-col gap-3", children: list?.map(renderList$1) }) : null] })] })));
2079
2150
  const renderList$1 = (_, i) => (jsxs("div", { className: "break-words", children: [_.title ? jsx("div", { className: `text-h6`, children: _.title }) : null, _.description ? jsx("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
2080
2151
 
2081
2152
  const ICONS_MAP = [
2082
2153
  {
2083
2154
  origins: ['t.me', 'telegram.org'],
2084
- icon: { icon: 'TelegramIcon' },
2155
+ iconMapped: { icon: 'TelegramIcon' },
2085
2156
  label: 'Телеграм',
2086
2157
  },
2087
2158
  {
2088
2159
  origins: ['vk.com'],
2089
- icon: { icon: 'VKIcon' },
2160
+ iconMapped: { icon: 'VKIcon' },
2090
2161
  label: 'ВКонтакте',
2091
2162
  },
2092
2163
  {
2093
2164
  origins: ['ok.ru'],
2094
- icon: { icon: 'OkIcon' },
2165
+ iconMapped: { icon: 'OkIcon' },
2095
2166
  label: 'Одноклассники',
2096
2167
  },
2097
2168
  {
2098
2169
  origins: ['apps.apple.com'],
2099
- icon: { icon: 'AppleIcon' },
2170
+ iconMapped: { icon: 'AppleIcon' },
2100
2171
  label: 'App Store',
2101
2172
  },
2102
2173
  {
2103
2174
  origins: ['play.google.com'],
2104
- icon: { icon: 'PlayMarketIcon' },
2175
+ iconMapped: { icon: 'PlayMarketIcon' },
2105
2176
  label: 'Google Play',
2106
2177
  },
2107
2178
  {
2108
2179
  origins: ['youtube.com'],
2109
- icon: { icon: 'YoutubeIcon' },
2180
+ iconMapped: { icon: 'YoutubeIcon' },
2110
2181
  label: 'Youtube',
2111
2182
  },
2112
2183
  ];
@@ -2114,20 +2185,23 @@
2114
2185
  default: 'w-14 h-14',
2115
2186
  small: 'w-12 h-12',
2116
2187
  };
2117
- const MediaButton = JSX(({ iconVersion = 'color', buttonSize = 'default', rounded = false, ...rest }) => {
2188
+ const MediaButton = JSX(({ iconVersion = 'color', buttonSize = 'default', rounded = false, icon, ...rest }) => {
2118
2189
  const { href, version } = rest;
2119
- const { icon, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
2120
- const iconWithVersion = icon ? { ...getIconWithVersion(icon), iconVersion } : null;
2190
+ const { iconMapped, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
2191
+ const iconCustom = icon ?? iconMapped;
2192
+ const iconWithVersion = iconCustom
2193
+ ? { ...getIconWithVersion(iconCustom), iconVersion }
2194
+ : undefined;
2121
2195
  return (jsx(Button, { className: style('group/media flex items-center justify-center box-border', buttonSizeStyles[buttonSize], rounded ? 'rounded-full' : 'rounded-md', 'border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', buttonSizeStyles[buttonSize]), "aria-label": label, target: "_blank", rel: "noopener noreferrer", version: version, ...rest, children: iconWithVersion ? (jsx(ImgInner, { image: iconWithVersion, imageClassName: "group-hover/media:text-white", width: "24", height: "24", asSVG: true })) : null }));
2122
2196
  });
2123
2197
 
2124
2198
  const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, version: _.version, ..._ }, String(index)))) }), jsx(Text, { size: "text-s-light", color: "text-secondary-text", children: children })] })));
2125
2199
 
2126
- const CarouselRecommendationCard = JSX(({ button, className = '', description, image, items = [], socialMedia = [], title, version = 'primary', ...rest }) => {
2200
+ const CarouselRecommendationCard = JSX(({ className = '', description, image, items = [], socialMedia = [], title, version = 'primary', ...rest }) => {
2127
2201
  const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
2128
2202
  const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
2129
2203
  const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
2130
- return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] h-full text-left box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? (jsx("span", { className: "mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]", children: description })) : null, items.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null, renderButtonsSection([button], { className: 'pt-2 mt-16' })] }) }) }));
2204
+ return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] h-full text-left box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? (jsx("span", { className: "mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]", children: description })) : null, items.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia }) : null] }) }) }));
2131
2205
  });
2132
2206
 
2133
2207
  const VISIBLE_CELLS_COUNT = 1;
@@ -2537,9 +2611,7 @@
2537
2611
 
2538
2612
  const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
2539
2613
 
2540
- const isTopItemActive = (router) => (topItem) => projectSettings.BASE_PATH
2541
- ? isHrefActive({ pathname: projectSettings.BASE_PATH })(topItem)
2542
- : topItem.items?.some(isHrefActive(router)) || isHrefActive(router)(topItem);
2614
+ const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
2543
2615
 
2544
2616
  const TopItem = JSX(({ className = '', active, flat, children, ...rest }) => {
2545
2617
  const link = useLink(true);
@@ -2719,11 +2791,11 @@
2719
2791
  });
2720
2792
  const renderChatBotButton = ({ className, iconVersion, onClick }) => (jsx(HeaderSecondaryMenuButton, { className: style(CHAT_BUTTON_EXTERNAL_NAME, className), image: { icon: 'HeadphonesIcon', iconVersion }, ariaLabel: "\u0427\u0430\u0442", onClick: onClick }));
2721
2793
 
2722
- const HeaderSecondaryMenu = JSX(({ version, className, officesLink, defaultLocation = 'Москва', foreignOffices, chat }) => {
2794
+ const HeaderSecondaryMenu = JSX(({ version, className, officesLink, defaultLocation = 'Москва', foreignOffices }) => {
2723
2795
  const [isShowLocationModal, { setTrue: showLocationModal, setFalse: hideLocationModal }] = useBool();
2724
2796
  const [location, onChangeLocation] = useLocation(defaultLocation);
2725
2797
  const iconVersion = version === 'transparent' ? 'white' : 'black';
2726
- return (jsxs("div", { className: style('flex items-center', className), children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: location.name, onClick: showLocationModal }), officesLink ? (jsx(TopItem, { className: "mr-7", flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })) : null, chat ? (jsx(HeaderChatBotButton, { className: "mr-5", iconVersion: iconVersion, chat: chat })) : null, isShowLocationModal ? (jsx(Location, { currentLocation: location, foreignOffices: foreignOffices, onChangeLocation: onChangeLocation, close: hideLocationModal })) : null] }));
2798
+ return (jsxs("div", { className: style('flex items-center', className), children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: location.name, onClick: showLocationModal }), officesLink ? (jsx(TopItem, { className: "mr-7", flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })) : null, projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { className: "mr-5", iconVersion: iconVersion, chat: projectSettings.CHAT_BOT })) : null, isShowLocationModal ? (jsx(Location, { currentLocation: location, foreignOffices: foreignOffices, onChangeLocation: onChangeLocation, close: hideLocationModal })) : null] }));
2727
2799
  });
2728
2800
 
2729
2801
  const findActiveSubItem = (router) => (items = []) => {
@@ -2788,11 +2860,11 @@
2788
2860
  'bg-white': 'primary',
2789
2861
  transparent: 'transparent',
2790
2862
  };
2791
- const Header = JSX(({ bgColor = 'bg-white', className, showSubMenu = true, version = BG_COLOR_TO_BLOCK_VERSION[bgColor], chat, ...rest }) => {
2863
+ const Header = JSX(({ bgColor = 'bg-white', className, showSubMenu = true, version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
2792
2864
  const router = useRouter();
2793
2865
  const { topItems, logo, defaultLocation, foreignOffices, officesLink } = useSWRResource(projectSettings.SITEMAP || 'sitemap', rest.options?.page?.fallback);
2794
2866
  const activeTopItem = topItems?.find(isTopItemActive(router));
2795
- return (jsx(BlockWrapper, { tag: "header", className: style('pt-6 px-20', showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5', className), version: version, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", foreignOffices: foreignOffices, defaultLocation: defaultLocation, officesLink: officesLink, chat: chat })] }), jsx("div", { className: style('mt-6 h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items })) : null] }) }));
2867
+ return (jsx(BlockWrapper, { tag: "header", className: style('pt-6 px-20', showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5', className), version: version, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", foreignOffices: foreignOffices, defaultLocation: defaultLocation, officesLink: officesLink })] }), jsx("div", { className: style('mt-6 h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items })) : null] }) }));
2796
2868
  });
2797
2869
 
2798
2870
  const gapStyles = {
@@ -3509,18 +3581,17 @@
3509
3581
  const ProductBlockInner = JSX(({ className = '', title, headlineVersion = 'L', description, benefitsCountOfRow = 3, benefits, benefitsVersion, buttons, footnote, image, __html, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
3510
3582
  const benefitsCount = benefits?.filter((_) => _.label)?.length;
3511
3583
  const benefitsContainerStyles = getBenefitsContainerStyles(benefitsCountOfRow);
3512
- return (jsxs("div", { className: style('flex grow justify-between items-stretch h-full', className), children: [jsxs("div", { className: style('flex flex-col', textBlockClassName), children: [jsx(Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), jsxs("div", { className: "flex flex-col justify-between h-full", children: [jsxs(BaseTile, { buttons: renderButtonsSection(buttons), children: [benefitsCount ? (jsx("div", { className: benefitsContainerStyles, children: benefits.map(renderBenefit$1(version, benefitsVersion)) })) : null, __html ? (jsx("div", { className: "mt-5", children: jsx(RichText, { __html: __html }) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }), footnote ? jsx("p", { className: "text-m-light pt-12", children: footnote }) : null] })] }), image?.src && jsx(ImgInner, { className: "mt-[-50px]", image: image })] }));
3584
+ return (jsxs("div", { className: style('flex grow justify-between items-stretch h-full', className), children: [jsxs("div", { className: style('flex flex-col', textBlockClassName), children: [jsx(Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left" }), jsxs("div", { className: "flex flex-col justify-between h-full", children: [jsxs(BaseTile, { buttons: renderButtonsSection(buttons), children: [benefitsCount ? (jsx("div", { className: benefitsContainerStyles, children: benefits?.map(renderBenefit$1(version, benefitsVersion)) })) : null, __html ? (jsx("div", { className: "mt-5", children: jsx(RichText, { __html: __html }) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }), footnote ? jsx("p", { className: "text-m-light pt-12", children: footnote }) : null] })] }), image?.src && jsx(ImgInner, { className: "mt-[-50px]", image: image })] }));
3513
3585
  });
3514
3586
  const getBenefitsContainerStyles = (benefitsCountOfRow = 2) => `gap-6 mt-6 ${benefitsCountOfRow > 2
3515
3587
  ? 'inline-grid grid-cols-[auto_auto_auto]'
3516
3588
  : 'inline-grid grid-cols-[auto_auto]'}`;
3517
3589
 
3518
3590
  function renderBackwardButton(button, version, className) {
3519
- const { text, href, target, onClick } = button;
3591
+ const { text, href, target } = button;
3520
3592
  const iconVersion = version === 'primary' ? 'white' : 'black';
3521
3593
  const backwardIcon = button?.icon || { icon: 'ArrowLeftIcon' };
3522
- // TODO Move click handler to Button
3523
- return (jsxs("div", { className: `flex items-center cursor-pointer ${className}`, onClick: onClick, children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: jsx(ImgInner, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion: backwardIcon.iconVersion || iconVersion }, asSVG: true }) }), text ? jsx("span", { className: "text-m", children: text }) : null] }));
3594
+ return (jsxs("div", { className: style('flex items-center', className), children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: jsx(ImgInner, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion: backwardIcon.iconVersion || iconVersion }, asSVG: true }) }), text ? (jsx(Button, { version: "link", text: text, href: href, target: target, ariaLabel: text })) : null] }));
3524
3595
  }
3525
3596
 
3526
3597
  const breadcrumbStyle = 'text-secondary-text group-data-secondary:text-white/80';
@@ -3545,7 +3616,7 @@
3545
3616
  })) })] }));
3546
3617
  });
3547
3618
  function renderProductBlock(block, i) {
3548
- return (jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { className: "pl-12 z-10 text-secondary-text group-data-secondary:text-white", textBlockClassName: "mb-[154px]", headlineVersion: "XXL", ...block }) }) }, String(i)));
3619
+ return (jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { className: "pl-12 z-10 group-data-secondary:text-white", textBlockClassName: "mb-[154px]", headlineVersion: "XXL", ...block }) }) }, String(i)));
3549
3620
  }
3550
3621
  function renderNavButton({ slide, i, isActive, onClick }) {
3551
3622
  const btnClassName = isActive
@@ -4249,11 +4320,12 @@
4249
4320
  }), image: image?.src ? jsx(ImgInner, { className: "mt-auto ml-7", image: image }) : null, children: [__html ? (jsx("div", { className: "max-w-[600px] mt-2.5", children: jsx(RichText, { __html: __html }) })) : null, children, jsx(List, { className: "mt-2.5", itemClassName: "mb-1.5", items: items, isDotted: isDotted, listItemSize: listItemSize }), tags?.length ? jsx(Tags, { tags: tags, className: "mt-5" }) : null] }) })));
4250
4321
 
4251
4322
  const alignStyle = {
4323
+ stretch: 'items-stretch',
4252
4324
  left: 'items-start',
4253
4325
  center: 'items-center',
4254
4326
  right: 'items-end',
4255
4327
  };
4256
- const VerticalLayout = JSX(({ className = '', gap = '', align, isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
4328
+ const VerticalLayout = JSX(({ className = '', gap = '', align = 'stretch', isPadding = false, isInnerPadding = true, version = 'transparent', options, ...rest }) => {
4257
4329
  const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
4258
4330
  return (jsx(BlockWrapper, { className: style('flex flex-col [&>*]:max-w-full', isPadding ? 'p-12' : '', gapStyles[gap], align && alignStyle[align], className), version: version, ...rest, children: renderChildren({ ...rest, options: { ...options, className: innerPaddingStyle } }) }));
4259
4331
  });
@@ -4262,7 +4334,10 @@
4262
4334
  const MIN_COL_SPAN = 10;
4263
4335
  const getPaddings = (className) => getColSpan(className) < MIN_COL_SPAN ? 'py-6 px-11' : 'py-12 px-32';
4264
4336
 
4265
- const Video = JSX(({ className, title, src, previewImg, ...rest }) => (jsxs(BlockWrapper, { className: style(getPaddings(className), className), ...rest, children: [jsx(Headline, { title: title, headlineVersion: "M" }), src ? (jsx("video", { className: "m-auto w-full object-fill", preload: "metadata", poster: previewImg?.src, style: { maxHeight: 524 }, controls: true, children: jsx("source", { src: src }) })) : null] })));
4337
+ const Video = JSX(({ className, title, url, previewImg, ...rest }) => {
4338
+ const router = useRouter();
4339
+ return (jsxs(BlockWrapper, { className: style(getPaddings(className), className), ...rest, children: [jsx(Headline, { title: title, headlineVersion: "M" }), url ? (jsx("video", { className: "m-auto w-full object-fill", preload: "metadata", poster: adjustHref(router)(previewImg?.src), style: { maxHeight: 524 }, controls: true, children: jsx("source", { src: adjustHref(router)(url) }) })) : null] }));
4340
+ });
4266
4341
 
4267
4342
  const Blocks = {
4268
4343
  Accordion,
@@ -4279,6 +4354,7 @@
4279
4354
  CarouselBankHistoryCard,
4280
4355
  CarouselCard,
4281
4356
  CarouselCatalogCard,
4357
+ CarouselEventCard,
4282
4358
  CarouselInvestmentCard,
4283
4359
  CarouselLinks,
4284
4360
  CarouselProductCard,
@@ -4447,7 +4523,7 @@
4447
4523
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
4448
4524
  }
4449
4525
 
4450
- const packageVersion = "0.8.16";
4526
+ const packageVersion = "0.8.18";
4451
4527
 
4452
4528
  exports.Blocks = Blocks;
4453
4529
  exports.ContentPage = ContentPage;