@redneckz/wildless-cms-uni-blocks 0.12.12 → 0.12.14

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 (1311) hide show
  1. package/bin/migration-scripts/0.12.10.js +59 -0
  2. package/bin/migration-scripts/0.12.12.js +30 -0
  3. package/bundle/EventBus/defaultEventBus.d.ts +4 -2
  4. package/bundle/EventBus/useLatestEvent.d.ts +2 -0
  5. package/bundle/blocks.schema.json +1 -1
  6. package/bundle/bundle.umd.js +287 -256
  7. package/bundle/bundle.umd.min.js +1 -1
  8. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +54 -8
  9. package/bundle/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  10. package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  11. package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  12. package/bundle/components/Bonus/BonusContent.d.ts +2 -7
  13. package/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +3 -2
  14. package/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -2
  15. package/bundle/components/Calculator/CalculatorContent.d.ts +2 -2
  16. package/bundle/components/CardTransfer/CardTransferContent.d.ts +2 -2
  17. package/bundle/components/Carousel/Carousel.d.ts +1 -1
  18. package/bundle/components/CarouselCard/CarouselCardContent.d.ts +3 -2
  19. package/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +3 -2
  20. package/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +2 -2
  21. package/bundle/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  22. package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  23. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -2
  24. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  25. package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +4 -9
  26. package/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +2 -2
  27. package/bundle/components/ContentPage/computeAPIFallback.d.ts +2 -2
  28. package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  29. package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  30. package/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -2
  31. package/bundle/components/Footer/Contacts.d.ts +0 -1
  32. package/bundle/components/Footer/FooterProps.d.ts +0 -2
  33. package/bundle/components/Footer/MediaButton.d.ts +1 -1
  34. package/bundle/components/Footer/SocialMedia.d.ts +2 -2
  35. package/bundle/components/Footer/buttonSizeStyles.d.ts +4 -0
  36. package/bundle/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
  37. package/bundle/components/Header/HeaderProps.d.ts +0 -4
  38. package/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  39. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  40. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
  41. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  42. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  43. package/bundle/components/ProductBlock/renderBackwardButton.d.ts +2 -2
  44. package/bundle/components/PromoTile/PromoTileContent.d.ts +2 -2
  45. package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +2 -2
  46. package/bundle/components/StepsBlock/StepsBlockContent.d.ts +6 -9
  47. package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +3 -2
  48. package/bundle/components/TariffsTable/EmbeddableCellData.mobile.d.ts +3 -2
  49. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  50. package/bundle/hooks/useList.d.ts +10 -0
  51. package/bundle/hooks/useLocation.d.ts +1 -1
  52. package/bundle/hooks/useSWRResource.d.ts +1 -1
  53. package/bundle/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  54. package/bundle/services/sitemap/useSitemap.d.ts +3 -0
  55. package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  56. package/bundle/ui-kit/Button/Button.d.ts +2 -2
  57. package/bundle/ui-kit/Button/ButtonContent.d.ts +19 -0
  58. package/bundle/ui-kit/Button/ButtonInner.d.ts +2 -7
  59. package/bundle/ui-kit/Button/ButtonProps.d.ts +4 -44
  60. package/bundle/ui-kit/Button/ButtonsSectionContent.d.ts +7 -0
  61. package/bundle/ui-kit/Button/renderButtonsSection.d.ts +2 -2
  62. package/{dist/ui-kit/Dialog → bundle/ui-kit/DialogManager}/CloseButton.d.ts +1 -1
  63. package/{dist/ui-kit/Dialog → bundle/ui-kit/DialogManager}/Dialog.d.ts +0 -1
  64. package/bundle/ui-kit/DialogManager/DialogAction.d.ts +12 -0
  65. package/bundle/ui-kit/DialogManager/DialogManager.d.ts +2 -0
  66. package/bundle/ui-kit/DialogManager/useDialogManager.d.ts +10 -0
  67. package/bundle/ui-kit/LocationDialog/LocationDialog.d.ts +2 -3
  68. package/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +5 -0
  69. package/bundle/ui-kit/LocationDialog/renderRegion.d.ts +3 -0
  70. package/bundle/ui-kit/LocationDialog/renderRegionGroup.d.ts +3 -0
  71. package/bundle/ui-kit/LocationDialog/useLocationDialog.d.ts +5 -0
  72. package/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +1 -3
  73. package/bundle/ui-kit/SearchDialog/useSearchDialog.d.ts +6 -0
  74. package/dist/EventBus/defaultEventBus.d.ts +4 -2
  75. package/dist/EventBus/defaultEventBus.js.map +1 -1
  76. package/dist/EventBus/useLatestEvent.d.ts +2 -0
  77. package/dist/EventBus/useLatestEvent.js +11 -0
  78. package/dist/EventBus/useLatestEvent.js.map +1 -0
  79. package/dist/components/ApplicationForm/ApplicationForm.js +16 -14
  80. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  81. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +54 -8
  82. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  83. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +22 -0
  84. package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
  85. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  86. package/dist/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  87. package/dist/components/ApplicationForm/EmbeddableForms.js +17 -0
  88. package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -0
  89. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  90. package/dist/components/Bonus/Bonus.js +10 -13
  91. package/dist/components/Bonus/Bonus.js.map +1 -1
  92. package/dist/components/Bonus/BonusContent.d.ts +2 -7
  93. package/dist/components/BusinessBlock/BusinessBlockContent.d.ts +3 -2
  94. package/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -2
  95. package/dist/components/Calculator/BusinessDepositCalculatorForm.js +7 -7
  96. package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  97. package/dist/components/Calculator/CalculatorContent.d.ts +2 -2
  98. package/dist/components/Calculator/CreditCalculatorForm.js +1 -1
  99. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  100. package/dist/components/Calculator/DepositCalculatorForm.js +3 -3
  101. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  102. package/dist/components/CardTransfer/CardTransferContent.d.ts +2 -2
  103. package/dist/components/Carousel/Carousel.d.ts +1 -1
  104. package/dist/components/Carousel/Carousel.js.map +1 -1
  105. package/dist/components/Carousel/CarouselScrollButtons.js +2 -2
  106. package/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
  107. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js +1 -1
  108. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
  109. package/dist/components/CarouselCard/CarouselCardContent.d.ts +3 -2
  110. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  111. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  112. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +3 -2
  113. package/dist/components/CarouselCatalogCard/CatalogCard.d.ts +2 -2
  114. package/dist/components/CarouselCatalogCard/CatalogCard.js.map +1 -1
  115. package/dist/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  116. package/dist/components/CarouselLinks/CarouselLinks.js +7 -8
  117. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  118. package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  119. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -2
  120. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  121. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  122. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  123. package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +4 -9
  124. package/dist/components/ContactsBlock/ContactsBlockContent.d.ts +2 -2
  125. package/dist/components/ContentPage/ContentPage.js +2 -23
  126. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  127. package/dist/components/ContentPage/computeAPIFallback.d.ts +2 -2
  128. package/dist/components/ContentPage/computeAPIFallback.js +10 -27
  129. package/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
  130. package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  131. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  132. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  133. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -2
  134. package/dist/components/Footer/Contacts.d.ts +0 -1
  135. package/dist/components/Footer/Contacts.js +3 -4
  136. package/dist/components/Footer/Contacts.js.map +1 -1
  137. package/dist/components/Footer/Footer.js +5 -3
  138. package/dist/components/Footer/Footer.js.map +1 -1
  139. package/dist/components/Footer/Footer.mobile.js +8 -4
  140. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  141. package/dist/components/Footer/FooterProps.d.ts +0 -2
  142. package/dist/components/Footer/HorizontalNavigation.js +1 -1
  143. package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  144. package/dist/components/Footer/HorizontalNavigation.mobile.js +1 -1
  145. package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  146. package/dist/components/Footer/MediaButton.d.ts +1 -1
  147. package/dist/components/Footer/SocialMedia.d.ts +2 -2
  148. package/dist/components/Footer/SocialMedia.js +2 -1
  149. package/dist/components/Footer/SocialMedia.js.map +1 -1
  150. package/dist/components/Footer/TextInformation.js +1 -1
  151. package/dist/components/Footer/TextInformation.js.map +1 -1
  152. package/dist/components/Footer/buttonSizeStyles.d.ts +4 -0
  153. package/dist/components/Footer/buttonSizeStyles.js +7 -0
  154. package/dist/components/Footer/buttonSizeStyles.js.map +1 -0
  155. package/dist/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
  156. package/dist/components/Footer/buttonSizeStyles.mobile.js +7 -0
  157. package/dist/components/Footer/buttonSizeStyles.mobile.js.map +1 -0
  158. package/dist/components/Footer/buttonStylesWithText.js +2 -5
  159. package/dist/components/Footer/buttonStylesWithText.js.map +1 -1
  160. package/dist/components/Header/Header.js +5 -4
  161. package/dist/components/Header/Header.js.map +1 -1
  162. package/dist/components/Header/Header.mobile.js +3 -2
  163. package/dist/components/Header/Header.mobile.js.map +1 -1
  164. package/dist/components/Header/HeaderProps.d.ts +0 -4
  165. package/dist/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  166. package/dist/components/Header/HeaderSecondaryMenu.js +10 -9
  167. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  168. package/dist/components/Header/HeaderSubMenu.js +1 -1
  169. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  170. package/dist/components/Header/findActiveSubItem.js.map +1 -0
  171. package/dist/components/Header/isHrefActive.js.map +1 -0
  172. package/dist/components/Header/isTopItemActive.js.map +1 -0
  173. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  174. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
  175. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  176. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  177. package/dist/components/MobileAppTile/renderDescription.js +1 -1
  178. package/dist/components/MobileAppTile/renderDescription.js.map +1 -1
  179. package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  180. package/dist/components/ProductBlock/renderBackwardButton.d.ts +2 -2
  181. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  182. package/dist/components/PromoTile/PromoTileContent.d.ts +2 -2
  183. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +2 -2
  184. package/dist/components/RollupItem/RollupItem.js +1 -1
  185. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  186. package/dist/components/StepsBlock/StepsBlockContent.d.ts +6 -9
  187. package/dist/components/TariffsTable/EmbeddableCellData.d.ts +3 -2
  188. package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  189. package/dist/components/TariffsTable/EmbeddableCellData.mobile.d.ts +3 -2
  190. package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
  191. package/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  192. package/dist/hooks/useLink.js +3 -3
  193. package/dist/hooks/useLink.js.map +1 -1
  194. package/dist/hooks/useList.d.ts +10 -0
  195. package/dist/hooks/useList.js +13 -0
  196. package/dist/hooks/useList.js.map +1 -0
  197. package/dist/hooks/useLocation.d.ts +1 -1
  198. package/dist/hooks/useLocation.js +27 -16
  199. package/dist/hooks/useLocation.js.map +1 -1
  200. package/dist/hooks/useSWRResource.d.ts +1 -1
  201. package/dist/hooks/useSWRResource.js +2 -4
  202. package/dist/hooks/useSWRResource.js.map +1 -1
  203. package/dist/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  204. package/dist/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
  205. package/dist/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
  206. package/dist/services/sitemap/useSitemap.d.ts +3 -0
  207. package/dist/services/sitemap/useSitemap.js +7 -0
  208. package/dist/services/sitemap/useSitemap.js.map +1 -0
  209. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  210. package/dist/ui-kit/Button/Button.d.ts +2 -2
  211. package/dist/ui-kit/Button/Button.js.map +1 -1
  212. package/dist/ui-kit/Button/ButtonContent.d.ts +19 -0
  213. package/dist/{model/Button.js → ui-kit/Button/ButtonContent.js} +1 -1
  214. package/dist/ui-kit/Button/ButtonContent.js.map +1 -0
  215. package/dist/ui-kit/Button/ButtonInner.d.ts +2 -7
  216. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  217. package/dist/ui-kit/Button/ButtonProps.d.ts +4 -44
  218. package/dist/ui-kit/Button/ButtonsSectionContent.d.ts +7 -0
  219. package/dist/ui-kit/{LocationDialog/LocationDialogProps.js → Button/ButtonsSectionContent.js} +1 -1
  220. package/dist/ui-kit/Button/ButtonsSectionContent.js.map +1 -0
  221. package/dist/ui-kit/Button/renderButtonsSection.d.ts +2 -2
  222. package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  223. package/dist/ui-kit/CookiePopup/CookiePopup.js +6 -6
  224. package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  225. package/{bundle/ui-kit/Dialog → dist/ui-kit/DialogManager}/CloseButton.d.ts +1 -1
  226. package/{mobile/dist/ui-kit/Dialog → dist/ui-kit/DialogManager}/CloseButton.js +1 -1
  227. package/dist/ui-kit/DialogManager/CloseButton.js.map +1 -0
  228. package/{lib/ui-kit/Dialog → dist/ui-kit/DialogManager}/Dialog.d.ts +0 -1
  229. package/dist/ui-kit/DialogManager/Dialog.js +17 -0
  230. package/dist/ui-kit/DialogManager/Dialog.js.map +1 -0
  231. package/dist/ui-kit/DialogManager/DialogAction.d.ts +12 -0
  232. package/dist/ui-kit/DialogManager/DialogAction.js.map +1 -0
  233. package/dist/ui-kit/DialogManager/DialogManager.d.ts +2 -0
  234. package/dist/ui-kit/DialogManager/DialogManager.js +61 -0
  235. package/dist/ui-kit/DialogManager/DialogManager.js.map +1 -0
  236. package/dist/ui-kit/DialogManager/useDialogManager.d.ts +10 -0
  237. package/dist/ui-kit/DialogManager/useDialogManager.js +10 -0
  238. package/dist/ui-kit/DialogManager/useDialogManager.js.map +1 -0
  239. package/dist/ui-kit/LinkButton/LinkButton.js +4 -3
  240. package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
  241. package/dist/ui-kit/LinkList/LinkList.js +2 -2
  242. package/dist/ui-kit/LinkList/LinkList.js.map +1 -1
  243. package/dist/ui-kit/LocationDialog/LocationDialog.d.ts +2 -3
  244. package/dist/ui-kit/LocationDialog/LocationDialog.js +17 -26
  245. package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  246. package/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +5 -0
  247. package/dist/ui-kit/LocationDialog/renderForeignOffices.js +15 -0
  248. package/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -0
  249. package/dist/ui-kit/LocationDialog/renderRegion.d.ts +3 -0
  250. package/dist/ui-kit/LocationDialog/renderRegion.js +8 -0
  251. package/dist/ui-kit/LocationDialog/renderRegion.js.map +1 -0
  252. package/dist/ui-kit/LocationDialog/renderRegionGroup.d.ts +3 -0
  253. package/dist/ui-kit/LocationDialog/renderRegionGroup.js +8 -0
  254. package/dist/ui-kit/LocationDialog/renderRegionGroup.js.map +1 -0
  255. package/dist/ui-kit/LocationDialog/useLocationDialog.d.ts +5 -0
  256. package/dist/ui-kit/LocationDialog/useLocationDialog.js +14 -0
  257. package/dist/ui-kit/LocationDialog/useLocationDialog.js.map +1 -0
  258. package/dist/ui-kit/SearchBar/SearchBar.js +6 -9
  259. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  260. package/dist/ui-kit/SearchDialog/SearchDialog.d.ts +1 -3
  261. package/dist/ui-kit/SearchDialog/SearchDialog.js +8 -9
  262. package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  263. package/dist/ui-kit/SearchDialog/useSearchDialog.d.ts +6 -0
  264. package/dist/ui-kit/SearchDialog/useSearchDialog.js +14 -0
  265. package/dist/ui-kit/SearchDialog/useSearchDialog.js.map +1 -0
  266. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  267. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  268. package/lib/EventBus/defaultEventBus.d.ts +4 -2
  269. package/lib/EventBus/defaultEventBus.js.map +1 -1
  270. package/lib/EventBus/useLatestEvent.d.ts +2 -0
  271. package/lib/EventBus/useLatestEvent.js +8 -0
  272. package/lib/EventBus/useLatestEvent.js.map +1 -0
  273. package/lib/common.css +1 -1
  274. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
  275. package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
  276. package/lib/components/ApplicationForm/ApplicationForm.js +16 -14
  277. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  278. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +54 -8
  279. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  280. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +20 -0
  281. package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
  282. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  283. package/lib/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  284. package/lib/components/ApplicationForm/EmbeddableForms.js +15 -0
  285. package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -0
  286. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  287. package/lib/components/Bonus/Bonus.fixture.mobile.d.ts +8 -0
  288. package/lib/components/Bonus/Bonus.js +10 -13
  289. package/lib/components/Bonus/Bonus.js.map +1 -1
  290. package/lib/components/Bonus/BonusContent.d.ts +2 -7
  291. package/lib/components/BusinessBlock/BusinessBlockContent.d.ts +3 -2
  292. package/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -2
  293. package/lib/components/Calculator/BusinessDepositCalculatorForm.js +7 -7
  294. package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  295. package/lib/components/Calculator/CalculatorContent.d.ts +2 -2
  296. package/lib/components/Calculator/CreditCalculatorForm.js +1 -1
  297. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  298. package/lib/components/Calculator/DepositCalculatorForm.js +3 -3
  299. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  300. package/lib/components/CardTransfer/CardTransferContent.d.ts +2 -2
  301. package/lib/components/Carousel/Carousel.d.ts +1 -1
  302. package/lib/components/Carousel/Carousel.js.map +1 -1
  303. package/lib/components/Carousel/CarouselScrollButtons.js +2 -2
  304. package/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
  305. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js +1 -1
  306. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
  307. package/lib/components/CarouselCard/CarouselCardContent.d.ts +3 -2
  308. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  309. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  310. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +3 -2
  311. package/lib/components/CarouselCatalogCard/CatalogCard.d.ts +2 -2
  312. package/lib/components/CarouselCatalogCard/CatalogCard.js.map +1 -1
  313. package/lib/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  314. package/lib/components/CarouselLinks/CarouselLinks.fixture.mobile.d.ts +6 -0
  315. package/lib/components/CarouselLinks/CarouselLinks.js +7 -8
  316. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  317. package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  318. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -2
  319. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  320. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  321. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  322. package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +4 -9
  323. package/lib/components/ContactsBlock/ContactsBlockContent.d.ts +2 -2
  324. package/lib/components/ContentPage/ContentPage.js +2 -23
  325. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  326. package/lib/components/ContentPage/computeAPIFallback.d.ts +2 -2
  327. package/lib/components/ContentPage/computeAPIFallback.js +8 -25
  328. package/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
  329. package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  330. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  331. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  332. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -2
  333. package/lib/components/Footer/Contacts.d.ts +0 -1
  334. package/lib/components/Footer/Contacts.js +3 -4
  335. package/lib/components/Footer/Contacts.js.map +1 -1
  336. package/lib/components/Footer/Footer.js +5 -3
  337. package/lib/components/Footer/Footer.js.map +1 -1
  338. package/lib/components/Footer/Footer.mobile.js +8 -4
  339. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  340. package/lib/components/Footer/FooterProps.d.ts +0 -2
  341. package/lib/components/Footer/HorizontalNavigation.js +1 -1
  342. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  343. package/lib/components/Footer/HorizontalNavigation.mobile.js +1 -1
  344. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  345. package/lib/components/Footer/MediaButton.d.ts +1 -1
  346. package/lib/components/Footer/SocialMedia.d.ts +2 -2
  347. package/lib/components/Footer/SocialMedia.js +2 -1
  348. package/lib/components/Footer/SocialMedia.js.map +1 -1
  349. package/lib/components/Footer/TextInformation.js +1 -1
  350. package/lib/components/Footer/TextInformation.js.map +1 -1
  351. package/lib/components/Footer/buttonSizeStyles.d.ts +4 -0
  352. package/lib/components/Footer/buttonSizeStyles.js +5 -0
  353. package/lib/components/Footer/buttonSizeStyles.js.map +1 -0
  354. package/lib/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
  355. package/lib/components/Footer/buttonSizeStyles.mobile.js +5 -0
  356. package/lib/components/Footer/buttonSizeStyles.mobile.js.map +1 -0
  357. package/lib/components/Footer/buttonStylesWithText.js +1 -4
  358. package/lib/components/Footer/buttonStylesWithText.js.map +1 -1
  359. package/lib/components/Header/Header.js +5 -4
  360. package/lib/components/Header/Header.js.map +1 -1
  361. package/lib/components/Header/Header.mobile.js +3 -2
  362. package/lib/components/Header/Header.mobile.js.map +1 -1
  363. package/lib/components/Header/HeaderProps.d.ts +0 -4
  364. package/lib/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  365. package/lib/components/Header/HeaderSecondaryMenu.js +10 -9
  366. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  367. package/lib/components/Header/HeaderSubMenu.js +1 -1
  368. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  369. package/lib/components/Header/findActiveSubItem.js.map +1 -0
  370. package/lib/components/Header/isHrefActive.js.map +1 -0
  371. package/lib/components/Header/isTopItemActive.js.map +1 -0
  372. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  373. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
  374. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  375. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  376. package/lib/components/MobileAppTile/renderDescription.js +1 -1
  377. package/lib/components/MobileAppTile/renderDescription.js.map +1 -1
  378. package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  379. package/lib/components/ProductBlock/renderBackwardButton.d.ts +2 -2
  380. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  381. package/lib/components/PromoTile/PromoTileContent.d.ts +2 -2
  382. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +2 -2
  383. package/lib/components/RollupItem/RollupItem.js +1 -1
  384. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  385. package/lib/components/StepsBlock/StepsBlockContent.d.ts +6 -9
  386. package/lib/components/TariffsTable/EmbeddableCellData.d.ts +3 -2
  387. package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  388. package/lib/components/TariffsTable/EmbeddableCellData.mobile.d.ts +3 -2
  389. package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
  390. package/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  391. package/lib/hooks/useLink.js +3 -3
  392. package/lib/hooks/useLink.js.map +1 -1
  393. package/lib/hooks/useList.d.ts +10 -0
  394. package/lib/hooks/useList.js +10 -0
  395. package/lib/hooks/useList.js.map +1 -0
  396. package/lib/hooks/useLocation.d.ts +1 -1
  397. package/lib/hooks/useLocation.js +28 -17
  398. package/lib/hooks/useLocation.js.map +1 -1
  399. package/lib/hooks/useSWRResource.d.ts +1 -1
  400. package/lib/hooks/useSWRResource.js +2 -4
  401. package/lib/hooks/useSWRResource.js.map +1 -1
  402. package/lib/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  403. package/lib/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
  404. package/lib/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
  405. package/lib/services/sitemap/useSitemap.d.ts +3 -0
  406. package/lib/services/sitemap/useSitemap.js +4 -0
  407. package/lib/services/sitemap/useSitemap.js.map +1 -0
  408. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  409. package/lib/ui-kit/Button/Button.d.ts +2 -2
  410. package/lib/ui-kit/Button/Button.js.map +1 -1
  411. package/lib/ui-kit/Button/ButtonContent.d.ts +19 -0
  412. package/lib/ui-kit/Button/ButtonContent.js +2 -0
  413. package/lib/ui-kit/Button/ButtonContent.js.map +1 -0
  414. package/lib/ui-kit/Button/ButtonInner.d.ts +2 -7
  415. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  416. package/lib/ui-kit/Button/ButtonProps.d.ts +4 -44
  417. package/lib/ui-kit/Button/ButtonsSectionContent.d.ts +7 -0
  418. package/lib/ui-kit/Button/ButtonsSectionContent.js +2 -0
  419. package/lib/ui-kit/Button/ButtonsSectionContent.js.map +1 -0
  420. package/lib/ui-kit/Button/renderButtonsSection.d.ts +2 -2
  421. package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  422. package/lib/ui-kit/CookiePopup/CookiePopup.js +6 -6
  423. package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  424. package/lib/ui-kit/{Dialog → DialogManager}/CloseButton.d.ts +1 -1
  425. package/{mobile/lib/ui-kit/Dialog → lib/ui-kit/DialogManager}/CloseButton.js +1 -1
  426. package/lib/ui-kit/DialogManager/CloseButton.js.map +1 -0
  427. package/{bundle/ui-kit/Dialog → lib/ui-kit/DialogManager}/Dialog.d.ts +0 -1
  428. package/lib/ui-kit/DialogManager/Dialog.js +15 -0
  429. package/lib/ui-kit/DialogManager/Dialog.js.map +1 -0
  430. package/lib/ui-kit/DialogManager/DialogAction.d.ts +12 -0
  431. package/lib/ui-kit/DialogManager/DialogAction.js.map +1 -0
  432. package/lib/ui-kit/DialogManager/DialogManager.d.ts +2 -0
  433. package/lib/ui-kit/DialogManager/DialogManager.js +59 -0
  434. package/lib/ui-kit/DialogManager/DialogManager.js.map +1 -0
  435. package/lib/ui-kit/DialogManager/useDialogManager.d.ts +10 -0
  436. package/lib/ui-kit/DialogManager/useDialogManager.js +7 -0
  437. package/lib/ui-kit/DialogManager/useDialogManager.js.map +1 -0
  438. package/lib/ui-kit/LinkButton/LinkButton.fixture.mobile.d.ts +6 -0
  439. package/lib/ui-kit/LinkButton/LinkButton.js +4 -3
  440. package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
  441. package/lib/ui-kit/LinkList/LinkList.js +2 -2
  442. package/lib/ui-kit/LinkList/LinkList.js.map +1 -1
  443. package/lib/ui-kit/LocationDialog/LocationDialog.d.ts +2 -3
  444. package/lib/ui-kit/LocationDialog/LocationDialog.js +16 -25
  445. package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  446. package/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +5 -0
  447. package/lib/ui-kit/LocationDialog/renderForeignOffices.js +12 -0
  448. package/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -0
  449. package/lib/ui-kit/LocationDialog/renderRegion.d.ts +3 -0
  450. package/lib/ui-kit/LocationDialog/renderRegion.js +5 -0
  451. package/lib/ui-kit/LocationDialog/renderRegion.js.map +1 -0
  452. package/lib/ui-kit/LocationDialog/renderRegionGroup.d.ts +3 -0
  453. package/lib/ui-kit/LocationDialog/renderRegionGroup.js +5 -0
  454. package/lib/ui-kit/LocationDialog/renderRegionGroup.js.map +1 -0
  455. package/lib/ui-kit/LocationDialog/useLocationDialog.d.ts +5 -0
  456. package/lib/ui-kit/LocationDialog/useLocationDialog.js +11 -0
  457. package/lib/ui-kit/LocationDialog/useLocationDialog.js.map +1 -0
  458. package/lib/ui-kit/SearchBar/SearchBar.js +6 -9
  459. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  460. package/lib/ui-kit/SearchDialog/SearchDialog.d.ts +1 -3
  461. package/lib/ui-kit/SearchDialog/SearchDialog.js +7 -8
  462. package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  463. package/lib/ui-kit/SearchDialog/useSearchDialog.d.ts +6 -0
  464. package/lib/ui-kit/SearchDialog/useSearchDialog.js +11 -0
  465. package/lib/ui-kit/SearchDialog/useSearchDialog.js.map +1 -0
  466. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  467. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  468. package/mobile/bundle/EventBus/defaultEventBus.d.ts +4 -2
  469. package/mobile/bundle/EventBus/useLatestEvent.d.ts +2 -0
  470. package/mobile/bundle/bundle.umd.js +133 -413
  471. package/mobile/bundle/bundle.umd.min.js +1 -1
  472. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +54 -8
  473. package/mobile/bundle/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  474. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  475. package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  476. package/mobile/bundle/components/Bonus/BonusContent.d.ts +2 -7
  477. package/mobile/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +3 -2
  478. package/mobile/bundle/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -2
  479. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +2 -2
  480. package/mobile/bundle/components/CardTransfer/CardTransferContent.d.ts +2 -2
  481. package/mobile/bundle/components/Carousel/Carousel.d.ts +1 -1
  482. package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +3 -2
  483. package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +3 -2
  484. package/mobile/bundle/components/CarouselCatalogCard/CatalogCard.d.ts +2 -2
  485. package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  486. package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  487. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -2
  488. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  489. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +4 -9
  490. package/mobile/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +2 -2
  491. package/mobile/bundle/components/ContentPage/computeAPIFallback.d.ts +2 -2
  492. package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  493. package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  494. package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -2
  495. package/mobile/bundle/components/Footer/Contacts.d.ts +0 -1
  496. package/mobile/bundle/components/Footer/FooterProps.d.ts +0 -2
  497. package/mobile/bundle/components/Footer/MediaButton.d.ts +1 -1
  498. package/mobile/bundle/components/Footer/SocialMedia.d.ts +4 -2
  499. package/mobile/bundle/components/Footer/buttonSizeStyles.d.ts +4 -0
  500. package/mobile/bundle/components/Header/HeaderProps.d.ts +0 -4
  501. package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  502. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  503. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
  504. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  505. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  506. package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +2 -2
  507. package/mobile/bundle/components/PromoTile/PromoTileContent.d.ts +2 -2
  508. package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +2 -2
  509. package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +6 -9
  510. package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +3 -2
  511. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  512. package/mobile/bundle/hooks/useList.d.ts +10 -0
  513. package/mobile/bundle/hooks/useLocation.d.ts +1 -1
  514. package/mobile/bundle/hooks/useSWRResource.d.ts +1 -1
  515. package/mobile/bundle/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  516. package/mobile/bundle/services/sitemap/useSitemap.d.ts +3 -0
  517. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  518. package/mobile/bundle/ui-kit/Button/Button.d.ts +2 -2
  519. package/mobile/bundle/ui-kit/Button/ButtonContent.d.ts +19 -0
  520. package/mobile/bundle/ui-kit/Button/ButtonInner.d.ts +2 -7
  521. package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +4 -44
  522. package/mobile/bundle/ui-kit/Button/ButtonsSectionContent.d.ts +7 -0
  523. package/mobile/bundle/ui-kit/Button/renderButtonsSection.d.ts +2 -2
  524. package/mobile/bundle/ui-kit/{Dialog → DialogManager}/CloseButton.d.ts +1 -1
  525. package/mobile/bundle/ui-kit/{Dialog → DialogManager}/Dialog.d.ts +0 -1
  526. package/mobile/bundle/ui-kit/DialogManager/DialogAction.d.ts +12 -0
  527. package/mobile/bundle/ui-kit/DialogManager/DialogManager.d.ts +2 -0
  528. package/mobile/bundle/ui-kit/DialogManager/useDialogManager.d.ts +10 -0
  529. package/mobile/bundle/ui-kit/LocationDialog/LocationDialog.d.ts +2 -3
  530. package/mobile/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +5 -0
  531. package/mobile/bundle/ui-kit/LocationDialog/renderRegion.d.ts +3 -0
  532. package/mobile/bundle/ui-kit/LocationDialog/renderRegionGroup.d.ts +3 -0
  533. package/mobile/bundle/ui-kit/LocationDialog/useLocationDialog.d.ts +5 -0
  534. package/mobile/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +1 -3
  535. package/mobile/bundle/ui-kit/SearchDialog/useSearchDialog.d.ts +6 -0
  536. package/mobile/dist/EventBus/defaultEventBus.d.ts +4 -2
  537. package/mobile/dist/EventBus/defaultEventBus.js.map +1 -1
  538. package/mobile/dist/EventBus/useLatestEvent.d.ts +2 -0
  539. package/mobile/dist/EventBus/useLatestEvent.js +11 -0
  540. package/mobile/dist/EventBus/useLatestEvent.js.map +1 -0
  541. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +16 -14
  542. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  543. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +54 -8
  544. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  545. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +22 -0
  546. package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
  547. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  548. package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  549. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +17 -0
  550. package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -0
  551. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  552. package/mobile/dist/components/Bonus/Bonus.js +10 -13
  553. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  554. package/mobile/dist/components/Bonus/BonusContent.d.ts +2 -7
  555. package/mobile/dist/components/BusinessBlock/BusinessBlockContent.d.ts +3 -2
  556. package/mobile/dist/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -2
  557. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +7 -7
  558. package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  559. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +2 -2
  560. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +1 -1
  561. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  562. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +3 -3
  563. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  564. package/mobile/dist/components/CardTransfer/CardTransferContent.d.ts +2 -2
  565. package/mobile/dist/components/Carousel/Carousel.d.ts +1 -1
  566. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  567. package/mobile/dist/components/Carousel/CarouselScrollButtons.js +2 -2
  568. package/mobile/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
  569. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
  570. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  571. package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +3 -2
  572. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  573. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  574. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +3 -2
  575. package/mobile/dist/components/CarouselCatalogCard/CatalogCard.d.ts +2 -2
  576. package/mobile/dist/components/CarouselCatalogCard/CatalogCard.js.map +1 -1
  577. package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  578. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +7 -8
  579. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  580. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  581. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -2
  582. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  583. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +4 -9
  584. package/mobile/dist/components/ContactsBlock/ContactsBlockContent.d.ts +2 -2
  585. package/mobile/dist/components/ContentPage/ContentPage.js +2 -23
  586. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  587. package/mobile/dist/components/ContentPage/computeAPIFallback.d.ts +2 -2
  588. package/mobile/dist/components/ContentPage/computeAPIFallback.js +10 -27
  589. package/mobile/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
  590. package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  591. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  592. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  593. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -2
  594. package/mobile/dist/components/Footer/Contacts.d.ts +0 -1
  595. package/mobile/dist/components/Footer/Contacts.js +3 -4
  596. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  597. package/mobile/dist/components/Footer/Footer.js +8 -4
  598. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  599. package/mobile/dist/components/Footer/FooterProps.d.ts +0 -2
  600. package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
  601. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  602. package/mobile/dist/components/Footer/MediaButton.d.ts +1 -1
  603. package/mobile/dist/components/Footer/SocialMedia.d.ts +4 -2
  604. package/mobile/dist/components/Footer/SocialMedia.js +3 -1
  605. package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
  606. package/mobile/dist/components/Footer/TextInformation.js +1 -1
  607. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  608. package/mobile/dist/components/Footer/buttonSizeStyles.d.ts +4 -0
  609. package/mobile/dist/components/Footer/buttonSizeStyles.js +7 -0
  610. package/mobile/dist/components/Footer/buttonSizeStyles.js.map +1 -0
  611. package/mobile/dist/components/Footer/buttonStylesWithText.js +2 -5
  612. package/mobile/dist/components/Footer/buttonStylesWithText.js.map +1 -1
  613. package/mobile/dist/components/Header/Header.js +3 -2
  614. package/mobile/dist/components/Header/Header.js.map +1 -1
  615. package/mobile/dist/components/Header/HeaderProps.d.ts +0 -4
  616. package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  617. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +10 -9
  618. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  619. package/mobile/dist/components/Header/HeaderSubMenu.js +1 -1
  620. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  621. package/mobile/dist/components/Header/findActiveSubItem.js.map +1 -0
  622. package/mobile/dist/components/Header/isHrefActive.js.map +1 -0
  623. package/mobile/dist/components/Header/isTopItemActive.js.map +1 -0
  624. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  625. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
  626. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  627. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  628. package/mobile/dist/components/MobileAppTile/renderDescription.js +1 -1
  629. package/mobile/dist/components/MobileAppTile/renderDescription.js.map +1 -1
  630. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  631. package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +2 -2
  632. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  633. package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +2 -2
  634. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +2 -2
  635. package/mobile/dist/components/RollupItem/RollupItem.js +1 -1
  636. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  637. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +6 -9
  638. package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +3 -2
  639. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  640. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  641. package/mobile/dist/hooks/useLink.js +3 -3
  642. package/mobile/dist/hooks/useLink.js.map +1 -1
  643. package/mobile/dist/hooks/useList.d.ts +10 -0
  644. package/mobile/dist/hooks/useList.js +13 -0
  645. package/mobile/dist/hooks/useList.js.map +1 -0
  646. package/mobile/dist/hooks/useLocation.d.ts +1 -1
  647. package/mobile/dist/hooks/useLocation.js +27 -16
  648. package/mobile/dist/hooks/useLocation.js.map +1 -1
  649. package/mobile/dist/hooks/useSWRResource.d.ts +1 -1
  650. package/mobile/dist/hooks/useSWRResource.js +2 -4
  651. package/mobile/dist/hooks/useSWRResource.js.map +1 -1
  652. package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  653. package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
  654. package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
  655. package/mobile/dist/services/sitemap/useSitemap.d.ts +3 -0
  656. package/mobile/dist/services/sitemap/useSitemap.js +7 -0
  657. package/mobile/dist/services/sitemap/useSitemap.js.map +1 -0
  658. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  659. package/mobile/dist/ui-kit/Button/Button.d.ts +2 -2
  660. package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
  661. package/mobile/dist/ui-kit/Button/ButtonContent.d.ts +19 -0
  662. package/mobile/dist/{model/Button.js → ui-kit/Button/ButtonContent.js} +1 -1
  663. package/mobile/dist/ui-kit/Button/ButtonContent.js.map +1 -0
  664. package/mobile/dist/ui-kit/Button/ButtonInner.d.ts +2 -7
  665. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  666. package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +4 -44
  667. package/mobile/dist/ui-kit/Button/ButtonsSectionContent.d.ts +7 -0
  668. package/mobile/dist/ui-kit/Button/ButtonsSectionContent.js +2 -0
  669. package/mobile/dist/ui-kit/Button/ButtonsSectionContent.js.map +1 -0
  670. package/mobile/dist/ui-kit/Button/renderButtonsSection.d.ts +2 -2
  671. package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
  672. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +6 -6
  673. package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  674. package/mobile/dist/ui-kit/DialogManager/CloseButton.d.ts +7 -0
  675. package/{dist/ui-kit/Dialog → mobile/dist/ui-kit/DialogManager}/CloseButton.js +1 -1
  676. package/mobile/dist/ui-kit/DialogManager/CloseButton.js.map +1 -0
  677. package/mobile/dist/ui-kit/DialogManager/Dialog.d.ts +7 -0
  678. package/mobile/dist/ui-kit/DialogManager/Dialog.js +17 -0
  679. package/mobile/dist/ui-kit/DialogManager/Dialog.js.map +1 -0
  680. package/mobile/dist/ui-kit/DialogManager/DialogAction.d.ts +12 -0
  681. package/mobile/dist/ui-kit/DialogManager/DialogAction.js.map +1 -0
  682. package/mobile/dist/ui-kit/DialogManager/DialogManager.d.ts +2 -0
  683. package/mobile/dist/ui-kit/DialogManager/DialogManager.js +61 -0
  684. package/mobile/dist/ui-kit/DialogManager/DialogManager.js.map +1 -0
  685. package/mobile/dist/ui-kit/DialogManager/useDialogManager.d.ts +10 -0
  686. package/mobile/dist/ui-kit/DialogManager/useDialogManager.js +10 -0
  687. package/mobile/dist/ui-kit/DialogManager/useDialogManager.js.map +1 -0
  688. package/mobile/dist/ui-kit/LinkButton/LinkButton.js +4 -3
  689. package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
  690. package/mobile/dist/ui-kit/LinkList/LinkList.js +2 -2
  691. package/mobile/dist/ui-kit/LinkList/LinkList.js.map +1 -1
  692. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.d.ts +2 -3
  693. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +17 -26
  694. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  695. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +5 -0
  696. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js +15 -0
  697. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -0
  698. package/mobile/dist/ui-kit/LocationDialog/renderRegion.d.ts +3 -0
  699. package/mobile/dist/ui-kit/LocationDialog/renderRegion.js +8 -0
  700. package/mobile/dist/ui-kit/LocationDialog/renderRegion.js.map +1 -0
  701. package/mobile/dist/ui-kit/LocationDialog/renderRegionGroup.d.ts +3 -0
  702. package/mobile/dist/ui-kit/LocationDialog/renderRegionGroup.js +8 -0
  703. package/mobile/dist/ui-kit/LocationDialog/renderRegionGroup.js.map +1 -0
  704. package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.d.ts +5 -0
  705. package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.js +14 -0
  706. package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.js.map +1 -0
  707. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +6 -9
  708. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  709. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.d.ts +1 -3
  710. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +8 -9
  711. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  712. package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.d.ts +6 -0
  713. package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.js +14 -0
  714. package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.js.map +1 -0
  715. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  716. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  717. package/mobile/lib/EventBus/defaultEventBus.d.ts +4 -2
  718. package/mobile/lib/EventBus/defaultEventBus.js.map +1 -1
  719. package/mobile/lib/EventBus/useLatestEvent.d.ts +2 -0
  720. package/mobile/lib/EventBus/useLatestEvent.js +8 -0
  721. package/mobile/lib/EventBus/useLatestEvent.js.map +1 -0
  722. package/mobile/lib/common.css +1 -1
  723. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +16 -14
  724. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  725. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +54 -8
  726. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
  727. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +20 -0
  728. package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
  729. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
  730. package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
  731. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +15 -0
  732. package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -0
  733. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  734. package/mobile/lib/components/Bonus/Bonus.js +10 -13
  735. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  736. package/mobile/lib/components/Bonus/BonusContent.d.ts +2 -7
  737. package/mobile/lib/components/BusinessBlock/BusinessBlockContent.d.ts +3 -2
  738. package/mobile/lib/components/ButtonsBlock/ButtonsBlockContent.d.ts +2 -2
  739. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +7 -7
  740. package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
  741. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +2 -2
  742. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +1 -1
  743. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  744. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +3 -3
  745. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  746. package/mobile/lib/components/CardTransfer/CardTransferContent.d.ts +2 -2
  747. package/mobile/lib/components/Carousel/Carousel.d.ts +1 -1
  748. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  749. package/mobile/lib/components/Carousel/CarouselScrollButtons.js +2 -2
  750. package/mobile/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
  751. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
  752. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  753. package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +3 -2
  754. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  755. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  756. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +3 -2
  757. package/mobile/lib/components/CarouselCatalogCard/CatalogCard.d.ts +2 -2
  758. package/mobile/lib/components/CarouselCatalogCard/CatalogCard.js.map +1 -1
  759. package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +1 -0
  760. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +7 -8
  761. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  762. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
  763. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +3 -2
  764. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +2 -2
  765. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +4 -9
  766. package/mobile/lib/components/ContactsBlock/ContactsBlockContent.d.ts +2 -2
  767. package/mobile/lib/components/ContentPage/ContentPage.js +2 -23
  768. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  769. package/mobile/lib/components/ContentPage/computeAPIFallback.d.ts +2 -2
  770. package/mobile/lib/components/ContentPage/computeAPIFallback.js +8 -25
  771. package/mobile/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
  772. package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  773. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  774. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  775. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -2
  776. package/mobile/lib/components/Footer/Contacts.d.ts +0 -1
  777. package/mobile/lib/components/Footer/Contacts.js +3 -4
  778. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  779. package/mobile/lib/components/Footer/Footer.js +8 -4
  780. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  781. package/mobile/lib/components/Footer/FooterProps.d.ts +0 -2
  782. package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
  783. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  784. package/mobile/lib/components/Footer/MediaButton.d.ts +1 -1
  785. package/mobile/lib/components/Footer/SocialMedia.d.ts +4 -2
  786. package/mobile/lib/components/Footer/SocialMedia.js +4 -2
  787. package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
  788. package/mobile/lib/components/Footer/TextInformation.js +1 -1
  789. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  790. package/mobile/lib/components/Footer/buttonSizeStyles.d.ts +4 -0
  791. package/mobile/lib/components/Footer/buttonSizeStyles.js +5 -0
  792. package/mobile/lib/components/Footer/buttonSizeStyles.js.map +1 -0
  793. package/mobile/lib/components/Footer/buttonStylesWithText.js +1 -4
  794. package/mobile/lib/components/Footer/buttonStylesWithText.js.map +1 -1
  795. package/mobile/lib/components/Header/Header.js +3 -2
  796. package/mobile/lib/components/Header/Header.js.map +1 -1
  797. package/mobile/lib/components/Header/HeaderProps.d.ts +0 -4
  798. package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +1 -1
  799. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +10 -9
  800. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  801. package/mobile/lib/components/Header/HeaderSubMenu.js +1 -1
  802. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  803. package/mobile/lib/components/Header/findActiveSubItem.js.map +1 -0
  804. package/mobile/lib/components/Header/isHrefActive.js.map +1 -0
  805. package/mobile/lib/components/Header/isTopItemActive.js.map +1 -0
  806. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  807. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
  808. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  809. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +2 -2
  810. package/mobile/lib/components/MobileAppTile/renderDescription.js +1 -1
  811. package/mobile/lib/components/MobileAppTile/renderDescription.js.map +1 -1
  812. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -2
  813. package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +2 -2
  814. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  815. package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +2 -2
  816. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +2 -2
  817. package/mobile/lib/components/RollupItem/RollupItem.js +1 -1
  818. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  819. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +6 -9
  820. package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +3 -2
  821. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  822. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +2 -2
  823. package/mobile/lib/hooks/useLink.js +3 -3
  824. package/mobile/lib/hooks/useLink.js.map +1 -1
  825. package/mobile/lib/hooks/useList.d.ts +10 -0
  826. package/mobile/lib/hooks/useList.js +10 -0
  827. package/mobile/lib/hooks/useList.js.map +1 -0
  828. package/mobile/lib/hooks/useLocation.d.ts +1 -1
  829. package/mobile/lib/hooks/useLocation.js +28 -17
  830. package/mobile/lib/hooks/useLocation.js.map +1 -1
  831. package/mobile/lib/hooks/useSWRResource.d.ts +1 -1
  832. package/mobile/lib/hooks/useSWRResource.js +2 -4
  833. package/mobile/lib/hooks/useSWRResource.js.map +1 -1
  834. package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
  835. package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
  836. package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
  837. package/mobile/lib/services/sitemap/useSitemap.d.ts +3 -0
  838. package/mobile/lib/services/sitemap/useSitemap.js +4 -0
  839. package/mobile/lib/services/sitemap/useSitemap.js.map +1 -0
  840. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +2 -2
  841. package/mobile/lib/ui-kit/Button/Button.d.ts +2 -2
  842. package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
  843. package/mobile/lib/ui-kit/Button/ButtonContent.d.ts +19 -0
  844. package/mobile/lib/ui-kit/Button/ButtonContent.js +2 -0
  845. package/mobile/lib/ui-kit/Button/ButtonContent.js.map +1 -0
  846. package/mobile/lib/ui-kit/Button/ButtonInner.d.ts +2 -7
  847. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  848. package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +4 -44
  849. package/mobile/lib/ui-kit/Button/ButtonsSectionContent.d.ts +7 -0
  850. package/mobile/lib/ui-kit/Button/ButtonsSectionContent.js +2 -0
  851. package/mobile/lib/ui-kit/Button/ButtonsSectionContent.js.map +1 -0
  852. package/mobile/lib/ui-kit/Button/renderButtonsSection.d.ts +2 -2
  853. package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
  854. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +6 -6
  855. package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
  856. package/mobile/lib/ui-kit/DialogManager/CloseButton.d.ts +7 -0
  857. package/{lib/ui-kit/Dialog → mobile/lib/ui-kit/DialogManager}/CloseButton.js +1 -1
  858. package/mobile/lib/ui-kit/DialogManager/CloseButton.js.map +1 -0
  859. package/mobile/lib/ui-kit/DialogManager/Dialog.d.ts +7 -0
  860. package/mobile/lib/ui-kit/DialogManager/Dialog.js +15 -0
  861. package/mobile/lib/ui-kit/DialogManager/Dialog.js.map +1 -0
  862. package/mobile/lib/ui-kit/DialogManager/DialogAction.d.ts +12 -0
  863. package/mobile/lib/ui-kit/DialogManager/DialogAction.js.map +1 -0
  864. package/mobile/lib/ui-kit/DialogManager/DialogManager.d.ts +2 -0
  865. package/mobile/lib/ui-kit/DialogManager/DialogManager.js +59 -0
  866. package/mobile/lib/ui-kit/DialogManager/DialogManager.js.map +1 -0
  867. package/mobile/lib/ui-kit/DialogManager/useDialogManager.d.ts +10 -0
  868. package/mobile/lib/ui-kit/DialogManager/useDialogManager.js +7 -0
  869. package/mobile/lib/ui-kit/DialogManager/useDialogManager.js.map +1 -0
  870. package/mobile/lib/ui-kit/LinkButton/LinkButton.js +4 -3
  871. package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
  872. package/mobile/lib/ui-kit/LinkList/LinkList.js +2 -2
  873. package/mobile/lib/ui-kit/LinkList/LinkList.js.map +1 -1
  874. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.d.ts +2 -3
  875. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +16 -25
  876. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  877. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +5 -0
  878. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js +12 -0
  879. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -0
  880. package/mobile/lib/ui-kit/LocationDialog/renderRegion.d.ts +3 -0
  881. package/mobile/lib/ui-kit/LocationDialog/renderRegion.js +5 -0
  882. package/mobile/lib/ui-kit/LocationDialog/renderRegion.js.map +1 -0
  883. package/mobile/lib/ui-kit/LocationDialog/renderRegionGroup.d.ts +3 -0
  884. package/mobile/lib/ui-kit/LocationDialog/renderRegionGroup.js +5 -0
  885. package/mobile/lib/ui-kit/LocationDialog/renderRegionGroup.js.map +1 -0
  886. package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.d.ts +5 -0
  887. package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.js +11 -0
  888. package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.js.map +1 -0
  889. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +6 -9
  890. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  891. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.d.ts +1 -3
  892. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +7 -8
  893. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  894. package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.d.ts +6 -0
  895. package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.js +11 -0
  896. package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.js.map +1 -0
  897. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  898. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  899. package/mobile/src/EventBus/defaultEventBus.ts +4 -2
  900. package/mobile/src/EventBus/useLatestEvent.ts +16 -0
  901. package/mobile/src/common.css +1 -1
  902. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +31 -19
  903. package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +12 -0
  904. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +72 -13
  905. package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +51 -0
  906. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +1 -0
  907. package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +15 -0
  908. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  909. package/mobile/src/components/Bonus/Bonus.tsx +33 -28
  910. package/mobile/src/components/Bonus/BonusContent.ts +5 -9
  911. package/mobile/src/components/BusinessBlock/BusinessBlockContent.ts +3 -3
  912. package/mobile/src/components/ButtonsBlock/ButtonsBlockContent.ts +2 -2
  913. package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +14 -9
  914. package/mobile/src/components/Calculator/CalculatorContent.ts +2 -2
  915. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +1 -1
  916. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +3 -3
  917. package/mobile/src/components/CardTransfer/CardTransferContent.ts +2 -2
  918. package/mobile/src/components/Carousel/Carousel.tsx +5 -3
  919. package/mobile/src/components/Carousel/CarouselScrollButtons.tsx +10 -3
  920. package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
  921. package/mobile/src/components/CarouselCard/CarouselCardContent.ts +3 -3
  922. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +7 -6
  923. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +3 -3
  924. package/mobile/src/components/CarouselCatalogCard/CatalogCard.ts +2 -2
  925. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +25 -14
  926. package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +2 -0
  927. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +2 -2
  928. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
  929. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +4 -9
  930. package/mobile/src/components/ContactsBlock/ContactsBlockContent.ts +2 -2
  931. package/mobile/src/components/ContentPage/ContentPage.tsx +18 -54
  932. package/mobile/src/components/ContentPage/computeAPIFallback.ts +10 -27
  933. package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +2 -2
  934. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +2 -2
  935. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +2 -2
  936. package/mobile/src/components/Footer/Contacts.tsx +15 -19
  937. package/mobile/src/components/Footer/Footer.tsx +30 -16
  938. package/mobile/src/components/Footer/FooterProps.ts +1 -4
  939. package/mobile/src/components/Footer/HorizontalNavigation.tsx +10 -3
  940. package/mobile/src/components/Footer/MediaButton.tsx +1 -1
  941. package/mobile/src/components/Footer/SocialMedia.tsx +22 -9
  942. package/mobile/src/components/Footer/TextInformation.tsx +2 -2
  943. package/mobile/src/components/Footer/buttonSizeStyles.ts +6 -0
  944. package/mobile/src/components/Footer/buttonStylesWithText.ts +1 -5
  945. package/mobile/src/components/Header/Header.tsx +3 -2
  946. package/mobile/src/components/Header/HeaderProps.ts +1 -6
  947. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +13 -11
  948. package/mobile/src/components/Header/HeaderSubMenu.tsx +1 -1
  949. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  950. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
  951. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +2 -2
  952. package/mobile/src/components/MobileAppTile/renderDescription.tsx +1 -1
  953. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +2 -2
  954. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +2 -2
  955. package/mobile/src/components/PromoTile/PromoTileContent.ts +2 -2
  956. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +2 -2
  957. package/mobile/src/components/RollupItem/RollupItem.tsx +1 -1
  958. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +9 -9
  959. package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +3 -2
  960. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +2 -2
  961. package/mobile/src/hooks/useLink.ts +3 -3
  962. package/mobile/src/hooks/useList.ts +24 -0
  963. package/mobile/src/hooks/useLocation.ts +34 -28
  964. package/mobile/src/hooks/useSWRResource.ts +9 -4
  965. package/mobile/src/services/regionsGrantSupport/RegionsGrantSupportData.ts +8 -0
  966. package/mobile/src/services/sitemap/useSitemap.ts +7 -0
  967. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -2
  968. package/mobile/src/ui-kit/Button/Button.tsx +14 -16
  969. package/mobile/src/ui-kit/Button/ButtonContent.ts +21 -0
  970. package/mobile/src/ui-kit/Button/ButtonInner.tsx +5 -9
  971. package/mobile/src/ui-kit/Button/ButtonProps.ts +4 -49
  972. package/mobile/src/ui-kit/Button/ButtonsSectionContent.ts +8 -0
  973. package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +3 -3
  974. package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +12 -17
  975. package/mobile/src/ui-kit/{Dialog → DialogManager}/CloseButton.tsx +3 -3
  976. package/mobile/src/ui-kit/DialogManager/Dialog.tsx +31 -0
  977. package/mobile/src/ui-kit/DialogManager/DialogAction.ts +15 -0
  978. package/mobile/src/ui-kit/DialogManager/DialogManager.tsx +85 -0
  979. package/mobile/src/ui-kit/DialogManager/useDialogManager.ts +14 -0
  980. package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +22 -9
  981. package/mobile/src/ui-kit/LinkList/LinkList.tsx +3 -3
  982. package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +57 -138
  983. package/mobile/src/ui-kit/LocationDialog/renderForeignOffices.tsx +37 -0
  984. package/mobile/src/ui-kit/LocationDialog/renderRegion.tsx +15 -0
  985. package/mobile/src/ui-kit/LocationDialog/renderRegionGroup.tsx +15 -0
  986. package/mobile/src/ui-kit/LocationDialog/useLocationDialog.tsx +11 -0
  987. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +14 -15
  988. package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +8 -10
  989. package/mobile/src/ui-kit/SearchDialog/useSearchDialog.tsx +12 -0
  990. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +1 -1
  991. package/package.json +1 -1
  992. package/src/EventBus/defaultEventBus.ts +4 -2
  993. package/src/EventBus/useLatestEvent.ts +16 -0
  994. package/src/common.css +1 -1
  995. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +41 -7
  996. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +41 -7
  997. package/src/components/ApplicationForm/ApplicationForm.tsx +31 -19
  998. package/src/components/ApplicationForm/ApplicationForm.ui.json +12 -0
  999. package/src/components/ApplicationForm/ApplicationFormContent.ts +72 -13
  1000. package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +51 -0
  1001. package/src/components/ApplicationForm/ApplicationFormsProps.ts +1 -0
  1002. package/src/components/ApplicationForm/EmbeddableForms.tsx +15 -0
  1003. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  1004. package/src/components/Bonus/Bonus.fixture.mobile.tsx +72 -0
  1005. package/src/components/Bonus/Bonus.tsx +33 -28
  1006. package/src/components/Bonus/BonusContent.ts +5 -9
  1007. package/src/components/BusinessBlock/BusinessBlock.fixture.tsx +2 -3
  1008. package/src/components/BusinessBlock/BusinessBlockContent.ts +3 -3
  1009. package/src/components/ButtonsBlock/ButtonsBlock.fixture.mobile.tsx +2 -2
  1010. package/src/components/ButtonsBlock/ButtonsBlock.fixture.tsx +2 -2
  1011. package/src/components/ButtonsBlock/ButtonsBlockContent.ts +2 -2
  1012. package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +14 -9
  1013. package/src/components/Calculator/Calculator.fixture.tsx +2 -2
  1014. package/src/components/Calculator/CalculatorContent.ts +2 -2
  1015. package/src/components/Calculator/CreditCalculatorForm.tsx +1 -1
  1016. package/src/components/Calculator/DepositCalculatorForm.tsx +3 -3
  1017. package/src/components/CardTransfer/CardTransferContent.ts +2 -2
  1018. package/src/components/Carousel/Carousel.tsx +5 -3
  1019. package/src/components/Carousel/CarouselScrollButtons.tsx +10 -3
  1020. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.tsx +1 -1
  1021. package/src/components/CarouselCard/CarouselCardContent.ts +3 -3
  1022. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +7 -6
  1023. package/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +3 -3
  1024. package/src/components/CarouselCatalogCard/CatalogCard.ts +2 -2
  1025. package/src/components/CarouselLinks/CarouselLinks.fixture.mobile.tsx +34 -0
  1026. package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +3 -0
  1027. package/src/components/CarouselLinks/CarouselLinks.tsx +25 -14
  1028. package/src/components/CarouselLinks/CarouselLinksContent.ts +2 -0
  1029. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +3 -3
  1030. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +2 -2
  1031. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
  1032. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +2 -2
  1033. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.tsx +3 -2
  1034. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +4 -4
  1035. package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +4 -9
  1036. package/src/components/ContactsBlock/ContactsBlockContent.ts +2 -2
  1037. package/src/components/ContentPage/ContentPage.tsx +18 -54
  1038. package/src/components/ContentPage/computeAPIFallback.ts +10 -27
  1039. package/src/components/ErrorBlock/ErrorBlockContent.ts +2 -2
  1040. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +2 -2
  1041. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +2 -2
  1042. package/src/components/Footer/Contacts.tsx +15 -19
  1043. package/src/components/Footer/Footer.fixture.mobile.tsx +3 -3
  1044. package/src/components/Footer/Footer.fixture.tsx +3 -5
  1045. package/src/components/Footer/Footer.mobile.tsx +30 -16
  1046. package/src/components/Footer/Footer.tsx +11 -11
  1047. package/src/components/Footer/FooterProps.ts +1 -4
  1048. package/src/components/Footer/HorizontalNavigation.mobile.tsx +10 -3
  1049. package/src/components/Footer/HorizontalNavigation.tsx +1 -1
  1050. package/src/components/Footer/MediaButton.tsx +1 -1
  1051. package/src/components/Footer/SocialMedia.tsx +11 -8
  1052. package/src/components/Footer/TextInformation.tsx +2 -2
  1053. package/src/components/Footer/buttonSizeStyles.mobile.ts +6 -0
  1054. package/src/components/Footer/buttonSizeStyles.ts +6 -0
  1055. package/src/components/Footer/buttonStylesWithText.ts +1 -5
  1056. package/src/components/Header/Header.fixture.mobile.tsx +14 -5
  1057. package/src/components/Header/Header.fixture.tsx +13 -4
  1058. package/src/components/Header/Header.mobile.tsx +3 -2
  1059. package/src/components/Header/Header.tsx +7 -11
  1060. package/src/components/Header/HeaderProps.ts +1 -6
  1061. package/src/components/Header/HeaderSecondaryMenu.tsx +13 -11
  1062. package/src/components/Header/HeaderSubMenu.tsx +1 -1
  1063. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +2 -2
  1064. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  1065. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
  1066. package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +8 -19
  1067. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +11 -11
  1068. package/src/components/MobileAppTile/MobileAppTileContent.ts +2 -2
  1069. package/src/components/MobileAppTile/renderDescription.tsx +1 -1
  1070. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +2 -2
  1071. package/src/components/ProductBlock/ProductBlock.fixture.tsx +4 -4
  1072. package/src/components/ProductBlock/ProductBlockContent.ts +2 -2
  1073. package/src/components/ProductBlock/renderBackwardButton.tsx +2 -2
  1074. package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +3 -3
  1075. package/src/components/ProductGallery/ProductGallery.fixture.tsx +3 -3
  1076. package/src/components/PromoTile/PromoTileContent.ts +2 -2
  1077. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.tsx +2 -2
  1078. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +2 -2
  1079. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +2 -2
  1080. package/src/components/RollupItem/RollupItem.tsx +1 -1
  1081. package/src/components/StepsBlock/StepsBlockContent.ts +9 -9
  1082. package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +3 -2
  1083. package/src/components/TariffsTable/EmbeddableCellData.tsx +3 -2
  1084. package/src/components/TariffsTable/TariffsTableContent.ts +2 -2
  1085. package/src/hooks/useLink.ts +3 -3
  1086. package/src/hooks/useList.ts +24 -0
  1087. package/src/hooks/useLocation.ts +34 -28
  1088. package/src/hooks/useSWRResource.ts +9 -4
  1089. package/src/services/regionsGrantSupport/RegionsGrantSupportData.ts +8 -0
  1090. package/src/services/sitemap/useSitemap.ts +7 -0
  1091. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +2 -2
  1092. package/src/ui-kit/Button/Button.tsx +14 -16
  1093. package/src/ui-kit/Button/ButtonContent.ts +21 -0
  1094. package/src/ui-kit/Button/ButtonInner.tsx +5 -9
  1095. package/src/ui-kit/Button/ButtonProps.ts +4 -49
  1096. package/src/ui-kit/Button/ButtonsSectionContent.ts +8 -0
  1097. package/src/ui-kit/Button/renderButtonsSection.tsx +3 -3
  1098. package/src/ui-kit/CookiePopup/CookiePopup.tsx +12 -17
  1099. package/src/ui-kit/{Dialog → DialogManager}/CloseButton.tsx +3 -3
  1100. package/src/ui-kit/DialogManager/Dialog.tsx +31 -0
  1101. package/src/ui-kit/DialogManager/DialogAction.ts +15 -0
  1102. package/src/ui-kit/DialogManager/DialogManager.tsx +85 -0
  1103. package/src/ui-kit/DialogManager/useDialogManager.ts +14 -0
  1104. package/src/ui-kit/LinkButton/LinkButton.fixture.mobile.tsx +11 -0
  1105. package/src/ui-kit/LinkButton/LinkButton.fixture.tsx +1 -1
  1106. package/src/ui-kit/LinkButton/LinkButton.tsx +22 -9
  1107. package/src/ui-kit/LinkList/LinkList.tsx +3 -3
  1108. package/src/ui-kit/LocationDialog/LocationDialog.fixture.tsx +1 -74
  1109. package/src/ui-kit/LocationDialog/LocationDialog.tsx +57 -138
  1110. package/src/ui-kit/LocationDialog/renderForeignOffices.tsx +37 -0
  1111. package/src/ui-kit/LocationDialog/renderRegion.tsx +15 -0
  1112. package/src/ui-kit/LocationDialog/renderRegionGroup.tsx +15 -0
  1113. package/src/ui-kit/LocationDialog/useLocationDialog.tsx +11 -0
  1114. package/src/ui-kit/SearchBar/SearchBar.tsx +14 -15
  1115. package/src/ui-kit/SearchDialog/SearchDialog.tsx +8 -10
  1116. package/src/ui-kit/SearchDialog/useSearchDialog.tsx +12 -0
  1117. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +1 -1
  1118. package/tailwind.config.cjs +5 -5
  1119. package/bundle/components/Footer/SocialMedia.mobile.d.ts +0 -6
  1120. package/bundle/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
  1121. package/bundle/hooks/useCachedAsyncData.d.ts +0 -2
  1122. package/bundle/model/Button.d.ts +0 -15
  1123. package/bundle/ui-kit/Dialog/DialogAction.d.ts +0 -12
  1124. package/bundle/ui-kit/Dialog/useDialog.d.ts +0 -4
  1125. package/bundle/ui-kit/Dialog/useDialogHandlers.d.ts +0 -6
  1126. package/bundle/ui-kit/Dialog/useDialogProps.d.ts +0 -7
  1127. package/bundle/ui-kit/LocationDialog/LocationDialogProps.d.ts +0 -14
  1128. package/dist/components/Footer/SocialMedia.mobile.d.ts +0 -6
  1129. package/dist/components/Footer/SocialMedia.mobile.js +0 -7
  1130. package/dist/components/Footer/SocialMedia.mobile.js.map +0 -1
  1131. package/dist/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
  1132. package/dist/components/Footer/buttonStylesWithText.mobile.js +0 -12
  1133. package/dist/components/Footer/buttonStylesWithText.mobile.js.map +0 -1
  1134. package/dist/hooks/useCachedAsyncData.d.ts +0 -2
  1135. package/dist/hooks/useCachedAsyncData.js +0 -25
  1136. package/dist/hooks/useCachedAsyncData.js.map +0 -1
  1137. package/dist/model/Button.d.ts +0 -15
  1138. package/dist/model/Button.js.map +0 -1
  1139. package/dist/services/sitemap/findActiveSubItem.js.map +0 -1
  1140. package/dist/services/sitemap/isHrefActive.js.map +0 -1
  1141. package/dist/services/sitemap/isTopItemActive.js.map +0 -1
  1142. package/dist/ui-kit/Dialog/CloseButton.js.map +0 -1
  1143. package/dist/ui-kit/Dialog/Dialog.js +0 -22
  1144. package/dist/ui-kit/Dialog/Dialog.js.map +0 -1
  1145. package/dist/ui-kit/Dialog/DialogAction.d.ts +0 -12
  1146. package/dist/ui-kit/Dialog/DialogAction.js.map +0 -1
  1147. package/dist/ui-kit/Dialog/useDialog.d.ts +0 -4
  1148. package/dist/ui-kit/Dialog/useDialog.js +0 -9
  1149. package/dist/ui-kit/Dialog/useDialog.js.map +0 -1
  1150. package/dist/ui-kit/Dialog/useDialogHandlers.d.ts +0 -6
  1151. package/dist/ui-kit/Dialog/useDialogHandlers.js +0 -21
  1152. package/dist/ui-kit/Dialog/useDialogHandlers.js.map +0 -1
  1153. package/dist/ui-kit/Dialog/useDialogProps.d.ts +0 -7
  1154. package/dist/ui-kit/Dialog/useDialogProps.js +0 -39
  1155. package/dist/ui-kit/Dialog/useDialogProps.js.map +0 -1
  1156. package/dist/ui-kit/LocationDialog/LocationDialogProps.d.ts +0 -14
  1157. package/dist/ui-kit/LocationDialog/LocationDialogProps.js.map +0 -1
  1158. package/lib/components/Footer/SocialMedia.mobile.d.ts +0 -6
  1159. package/lib/components/Footer/SocialMedia.mobile.js +0 -5
  1160. package/lib/components/Footer/SocialMedia.mobile.js.map +0 -1
  1161. package/lib/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
  1162. package/lib/components/Footer/buttonStylesWithText.mobile.js +0 -9
  1163. package/lib/components/Footer/buttonStylesWithText.mobile.js.map +0 -1
  1164. package/lib/hooks/useCachedAsyncData.d.ts +0 -2
  1165. package/lib/hooks/useCachedAsyncData.js +0 -22
  1166. package/lib/hooks/useCachedAsyncData.js.map +0 -1
  1167. package/lib/model/Button.d.ts +0 -15
  1168. package/lib/model/Button.js +0 -2
  1169. package/lib/model/Button.js.map +0 -1
  1170. package/lib/services/sitemap/findActiveSubItem.js.map +0 -1
  1171. package/lib/services/sitemap/isHrefActive.js.map +0 -1
  1172. package/lib/services/sitemap/isTopItemActive.js.map +0 -1
  1173. package/lib/ui-kit/Dialog/CloseButton.js.map +0 -1
  1174. package/lib/ui-kit/Dialog/Dialog.js +0 -20
  1175. package/lib/ui-kit/Dialog/Dialog.js.map +0 -1
  1176. package/lib/ui-kit/Dialog/DialogAction.d.ts +0 -12
  1177. package/lib/ui-kit/Dialog/DialogAction.js.map +0 -1
  1178. package/lib/ui-kit/Dialog/useDialog.d.ts +0 -4
  1179. package/lib/ui-kit/Dialog/useDialog.js +0 -6
  1180. package/lib/ui-kit/Dialog/useDialog.js.map +0 -1
  1181. package/lib/ui-kit/Dialog/useDialogHandlers.d.ts +0 -6
  1182. package/lib/ui-kit/Dialog/useDialogHandlers.js +0 -18
  1183. package/lib/ui-kit/Dialog/useDialogHandlers.js.map +0 -1
  1184. package/lib/ui-kit/Dialog/useDialogProps.d.ts +0 -7
  1185. package/lib/ui-kit/Dialog/useDialogProps.js +0 -36
  1186. package/lib/ui-kit/Dialog/useDialogProps.js.map +0 -1
  1187. package/lib/ui-kit/LocationDialog/LocationDialogProps.d.ts +0 -14
  1188. package/lib/ui-kit/LocationDialog/LocationDialogProps.js +0 -2
  1189. package/lib/ui-kit/LocationDialog/LocationDialogProps.js.map +0 -1
  1190. package/mobile/bundle/hooks/useCachedAsyncData.d.ts +0 -2
  1191. package/mobile/bundle/model/Button.d.ts +0 -15
  1192. package/mobile/bundle/ui-kit/Dialog/DialogAction.d.ts +0 -12
  1193. package/mobile/bundle/ui-kit/Dialog/useDialog.d.ts +0 -4
  1194. package/mobile/bundle/ui-kit/Dialog/useDialogHandlers.d.ts +0 -6
  1195. package/mobile/bundle/ui-kit/Dialog/useDialogProps.d.ts +0 -7
  1196. package/mobile/bundle/ui-kit/LocationDialog/LocationDialogProps.d.ts +0 -14
  1197. package/mobile/dist/hooks/useCachedAsyncData.d.ts +0 -2
  1198. package/mobile/dist/hooks/useCachedAsyncData.js +0 -25
  1199. package/mobile/dist/hooks/useCachedAsyncData.js.map +0 -1
  1200. package/mobile/dist/model/Button.d.ts +0 -15
  1201. package/mobile/dist/model/Button.js.map +0 -1
  1202. package/mobile/dist/services/sitemap/findActiveSubItem.js.map +0 -1
  1203. package/mobile/dist/services/sitemap/isHrefActive.js.map +0 -1
  1204. package/mobile/dist/services/sitemap/isTopItemActive.js.map +0 -1
  1205. package/mobile/dist/ui-kit/Dialog/CloseButton.d.ts +0 -7
  1206. package/mobile/dist/ui-kit/Dialog/CloseButton.js.map +0 -1
  1207. package/mobile/dist/ui-kit/Dialog/Dialog.d.ts +0 -8
  1208. package/mobile/dist/ui-kit/Dialog/Dialog.js +0 -22
  1209. package/mobile/dist/ui-kit/Dialog/Dialog.js.map +0 -1
  1210. package/mobile/dist/ui-kit/Dialog/DialogAction.d.ts +0 -12
  1211. package/mobile/dist/ui-kit/Dialog/DialogAction.js.map +0 -1
  1212. package/mobile/dist/ui-kit/Dialog/useDialog.d.ts +0 -4
  1213. package/mobile/dist/ui-kit/Dialog/useDialog.js +0 -9
  1214. package/mobile/dist/ui-kit/Dialog/useDialog.js.map +0 -1
  1215. package/mobile/dist/ui-kit/Dialog/useDialogHandlers.d.ts +0 -6
  1216. package/mobile/dist/ui-kit/Dialog/useDialogHandlers.js +0 -21
  1217. package/mobile/dist/ui-kit/Dialog/useDialogHandlers.js.map +0 -1
  1218. package/mobile/dist/ui-kit/Dialog/useDialogProps.d.ts +0 -7
  1219. package/mobile/dist/ui-kit/Dialog/useDialogProps.js +0 -39
  1220. package/mobile/dist/ui-kit/Dialog/useDialogProps.js.map +0 -1
  1221. package/mobile/dist/ui-kit/LocationDialog/LocationDialogProps.d.ts +0 -14
  1222. package/mobile/dist/ui-kit/LocationDialog/LocationDialogProps.js +0 -2
  1223. package/mobile/dist/ui-kit/LocationDialog/LocationDialogProps.js.map +0 -1
  1224. package/mobile/lib/hooks/useCachedAsyncData.d.ts +0 -2
  1225. package/mobile/lib/hooks/useCachedAsyncData.js +0 -22
  1226. package/mobile/lib/hooks/useCachedAsyncData.js.map +0 -1
  1227. package/mobile/lib/model/Button.d.ts +0 -15
  1228. package/mobile/lib/model/Button.js +0 -2
  1229. package/mobile/lib/model/Button.js.map +0 -1
  1230. package/mobile/lib/services/sitemap/findActiveSubItem.js.map +0 -1
  1231. package/mobile/lib/services/sitemap/isHrefActive.js.map +0 -1
  1232. package/mobile/lib/services/sitemap/isTopItemActive.js.map +0 -1
  1233. package/mobile/lib/ui-kit/Dialog/CloseButton.d.ts +0 -7
  1234. package/mobile/lib/ui-kit/Dialog/CloseButton.js.map +0 -1
  1235. package/mobile/lib/ui-kit/Dialog/Dialog.d.ts +0 -8
  1236. package/mobile/lib/ui-kit/Dialog/Dialog.js +0 -20
  1237. package/mobile/lib/ui-kit/Dialog/Dialog.js.map +0 -1
  1238. package/mobile/lib/ui-kit/Dialog/DialogAction.d.ts +0 -12
  1239. package/mobile/lib/ui-kit/Dialog/DialogAction.js.map +0 -1
  1240. package/mobile/lib/ui-kit/Dialog/useDialog.d.ts +0 -4
  1241. package/mobile/lib/ui-kit/Dialog/useDialog.js +0 -6
  1242. package/mobile/lib/ui-kit/Dialog/useDialog.js.map +0 -1
  1243. package/mobile/lib/ui-kit/Dialog/useDialogHandlers.d.ts +0 -6
  1244. package/mobile/lib/ui-kit/Dialog/useDialogHandlers.js +0 -18
  1245. package/mobile/lib/ui-kit/Dialog/useDialogHandlers.js.map +0 -1
  1246. package/mobile/lib/ui-kit/Dialog/useDialogProps.d.ts +0 -7
  1247. package/mobile/lib/ui-kit/Dialog/useDialogProps.js +0 -36
  1248. package/mobile/lib/ui-kit/Dialog/useDialogProps.js.map +0 -1
  1249. package/mobile/lib/ui-kit/LocationDialog/LocationDialogProps.d.ts +0 -14
  1250. package/mobile/lib/ui-kit/LocationDialog/LocationDialogProps.js +0 -2
  1251. package/mobile/lib/ui-kit/LocationDialog/LocationDialogProps.js.map +0 -1
  1252. package/mobile/src/components/Header/sitemap.wcms-resource.json +0 -144
  1253. package/mobile/src/hooks/useCachedAsyncData.ts +0 -37
  1254. package/mobile/src/model/Button.ts +0 -16
  1255. package/mobile/src/ui-kit/Dialog/Dialog.tsx +0 -46
  1256. package/mobile/src/ui-kit/Dialog/DialogAction.ts +0 -14
  1257. package/mobile/src/ui-kit/Dialog/useDialog.ts +0 -6
  1258. package/mobile/src/ui-kit/Dialog/useDialogHandlers.ts +0 -28
  1259. package/mobile/src/ui-kit/Dialog/useDialogProps.ts +0 -48
  1260. package/mobile/src/ui-kit/LocationDialog/LocationDialogProps.ts +0 -21
  1261. package/src/components/Footer/SocialMedia.mobile.tsx +0 -16
  1262. package/src/components/Footer/buttonStylesWithText.mobile.ts +0 -15
  1263. package/src/components/Header/sitemap.wcms-resource.json +0 -144
  1264. package/src/hooks/useCachedAsyncData.ts +0 -37
  1265. package/src/model/Button.ts +0 -16
  1266. package/src/ui-kit/Dialog/Dialog.tsx +0 -46
  1267. package/src/ui-kit/Dialog/DialogAction.ts +0 -14
  1268. package/src/ui-kit/Dialog/useDialog.ts +0 -6
  1269. package/src/ui-kit/Dialog/useDialogHandlers.ts +0 -28
  1270. package/src/ui-kit/Dialog/useDialogProps.ts +0 -48
  1271. package/src/ui-kit/LocationDialog/LocationDialogProps.ts +0 -21
  1272. /package/bundle/{services/sitemap → components/Header}/findActiveSubItem.d.ts +0 -0
  1273. /package/bundle/{services/sitemap → components/Header}/isHrefActive.d.ts +0 -0
  1274. /package/bundle/{services/sitemap → components/Header}/isTopItemActive.d.ts +0 -0
  1275. /package/dist/{services/sitemap → components/Header}/findActiveSubItem.d.ts +0 -0
  1276. /package/dist/{services/sitemap → components/Header}/findActiveSubItem.js +0 -0
  1277. /package/dist/{services/sitemap → components/Header}/isHrefActive.d.ts +0 -0
  1278. /package/dist/{services/sitemap → components/Header}/isHrefActive.js +0 -0
  1279. /package/dist/{services/sitemap → components/Header}/isTopItemActive.d.ts +0 -0
  1280. /package/dist/{services/sitemap → components/Header}/isTopItemActive.js +0 -0
  1281. /package/dist/ui-kit/{Dialog → DialogManager}/DialogAction.js +0 -0
  1282. /package/lib/{services/sitemap → components/Header}/findActiveSubItem.d.ts +0 -0
  1283. /package/lib/{services/sitemap → components/Header}/findActiveSubItem.js +0 -0
  1284. /package/lib/{services/sitemap → components/Header}/isHrefActive.d.ts +0 -0
  1285. /package/lib/{services/sitemap → components/Header}/isHrefActive.js +0 -0
  1286. /package/lib/{services/sitemap → components/Header}/isTopItemActive.d.ts +0 -0
  1287. /package/lib/{services/sitemap → components/Header}/isTopItemActive.js +0 -0
  1288. /package/lib/ui-kit/{Dialog → DialogManager}/DialogAction.js +0 -0
  1289. /package/mobile/bundle/{services/sitemap → components/Header}/findActiveSubItem.d.ts +0 -0
  1290. /package/mobile/bundle/{services/sitemap → components/Header}/isHrefActive.d.ts +0 -0
  1291. /package/mobile/bundle/{services/sitemap → components/Header}/isTopItemActive.d.ts +0 -0
  1292. /package/mobile/dist/{services/sitemap → components/Header}/findActiveSubItem.d.ts +0 -0
  1293. /package/mobile/dist/{services/sitemap → components/Header}/findActiveSubItem.js +0 -0
  1294. /package/mobile/dist/{services/sitemap → components/Header}/isHrefActive.d.ts +0 -0
  1295. /package/mobile/dist/{services/sitemap → components/Header}/isHrefActive.js +0 -0
  1296. /package/mobile/dist/{services/sitemap → components/Header}/isTopItemActive.d.ts +0 -0
  1297. /package/mobile/dist/{services/sitemap → components/Header}/isTopItemActive.js +0 -0
  1298. /package/mobile/dist/ui-kit/{Dialog → DialogManager}/DialogAction.js +0 -0
  1299. /package/mobile/lib/{services/sitemap → components/Header}/findActiveSubItem.d.ts +0 -0
  1300. /package/mobile/lib/{services/sitemap → components/Header}/findActiveSubItem.js +0 -0
  1301. /package/mobile/lib/{services/sitemap → components/Header}/isHrefActive.d.ts +0 -0
  1302. /package/mobile/lib/{services/sitemap → components/Header}/isHrefActive.js +0 -0
  1303. /package/mobile/lib/{services/sitemap → components/Header}/isTopItemActive.d.ts +0 -0
  1304. /package/mobile/lib/{services/sitemap → components/Header}/isTopItemActive.js +0 -0
  1305. /package/mobile/lib/ui-kit/{Dialog → DialogManager}/DialogAction.js +0 -0
  1306. /package/mobile/src/{services/sitemap → components/Header}/findActiveSubItem.ts +0 -0
  1307. /package/mobile/src/{services/sitemap → components/Header}/isHrefActive.ts +0 -0
  1308. /package/mobile/src/{services/sitemap → components/Header}/isTopItemActive.ts +0 -0
  1309. /package/src/{services/sitemap → components/Header}/findActiveSubItem.ts +0 -0
  1310. /package/src/{services/sitemap → components/Header}/isHrefActive.ts +0 -0
  1311. /package/src/{services/sitemap → components/Header}/isTopItemActive.ts +0 -0
@@ -504,9 +504,10 @@
504
504
  return data || EMPTY_VALUE$3;
505
505
  }
506
506
 
507
- const useDialog = (id = '') => ({
508
- open: (message) => defaultEventBus.fire('dialog', { type: 'open', id, message }),
507
+ const useDialogManager = () => ({
508
+ open: (dialog, options = {}) => defaultEventBus.fire('dialog', { type: 'open', dialog, ...options }),
509
509
  close: () => defaultEventBus.fire('dialog', { type: 'close' }),
510
+ closeAll: () => defaultEventBus.fire('dialog', { type: 'close', all: true }),
510
511
  });
511
512
 
512
513
  const dirname = (path) => path?.split('/').slice(0, -1).join('/');
@@ -568,7 +569,7 @@
568
569
  function useLink(params = {}) {
569
570
  const { isRemote, basePath } = params;
570
571
  const router = useRouter();
571
- const { close } = useDialog();
572
+ const { closeAll } = useDialogManager();
572
573
  return (props) => ({
573
574
  ...props,
574
575
  href: isRemote && !basePath ? props.href : adjustHref(router)(props.href, basePath),
@@ -582,7 +583,7 @@
582
583
  // Default routing
583
584
  return;
584
585
  }
585
- close();
586
+ closeAll();
586
587
  // Client routing
587
588
  ev?.preventDefault();
588
589
  router.push(href);
@@ -1046,6 +1047,24 @@
1046
1047
  return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, 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: "sm:text-center mb-4" }), jsxs("div", { className: "max-w-[560px] m-auto", children: [jsx(InputControl, { className: "shrink-0 w-full mb-3", label: "\u0418\u043C\u044F", ...withValidator(field('name'), nameValidator) }), jsx(PhoneInputControl, { className: "shrink-0 w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) })] }), jsxs("div", { className: "flex justify-between flex-col-reverse sm:items-center sm:flex-row max-w-[560px] m-auto", children: [jsx("div", { className: "flex-1 mt-4 sm:mt-0", children: jsx(Footnote, { link: link }) }), renderSubmitButton(button)] })] }));
1047
1048
  });
1048
1049
 
1050
+ const EMPTY_VALUE$1 = {};
1051
+ function useSWRResource(filename, fallback = EMPTY_VALUE$1) {
1052
+ const { data } = useAsyncData(filename ? `/wcms-resources/${filename}.json` : null, fetchJSONUnsafe, { fallback });
1053
+ return data || EMPTY_VALUE$1;
1054
+ }
1055
+
1056
+ const ApplicationFormGrantSupport = JSX((props) => {
1057
+ const { button, sourceBookDir } = props;
1058
+ const { regions } = useSWRResource(sourceBookDir || 'regions-grant-support');
1059
+ const [region, setRegion] = useState({ key: '' });
1060
+ const buttonStyle = getRegularButtonClasses({
1061
+ className: 'text-white',
1062
+ version: button?.version,
1063
+ });
1064
+ const regionHref = regions?.find((_) => _.name === region.key)?.href;
1065
+ return (jsxs("div", { className: "container space-y-s sm:space-y-lg", children: [regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", options: regions.map(({ name = '' }) => ({ key: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(Button, { href: regionHref, target: "_blank", className: style('p-4 w-full sm:w-auto', buttonStyle), children: button?.text ? button.text : 'Перейти' }) })) : null] }));
1066
+ });
1067
+
1049
1068
  const sourcesComparator = (a, b) => a?.media && b?.media ? a.media - b.media : 0;
1050
1069
  const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', pathPrefix }) => {
1051
1070
  const router = useRouter();
@@ -1140,30 +1159,45 @@
1140
1159
  return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, children: [jsx(Heading, { headingType: "h6", title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", className: "sm:text-center mb-m" }), renderWedDataOrganization(field), jsx(Heading, { headingType: "h6", title: "\u0418\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u043E\u043F\u0440\u043E\u0441", className: "sm:text-center mb-m" }), renderQuestionsInterested(field), jsxs("div", { className: "flex flex-col border-b border-main-divider mb-5 pb-5 sm:items-center sm:flex-row sm:mb-9 sm:pb-9", children: [renderSubmitButton(button, 'mb-m sm:mr-lg sm:mb-0'), jsx(Footnote, { link: link })] }), jsx(Heading, { headingType: "h6", title: "\u0418\u043B\u0438 \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u043D\u0430\u043C\u0438 \u0443\u0434\u043E\u0431\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C", className: "sm:text-center mb-m" }), renderContacts()] }));
1141
1160
  });
1142
1161
 
1162
+ const EmbeddableForms = {
1163
+ ApplicationFormBusinessCard,
1164
+ ApplicationFormWed,
1165
+ ApplicationFormDeposit,
1166
+ ApplicationFormCredit,
1167
+ ApplicationFormAcquiring,
1168
+ ApplicationFormGrantSupport,
1169
+ };
1170
+
1143
1171
  const ResponseNotification = JSX(({ responseType }) => {
1144
1172
  const responseOK = responseType === 'OK';
1145
1173
  const backgroundColor = responseOK ? 'bg-ok' : 'bg-fail';
1146
1174
  return (jsxs("div", { className: `flex items-center mt-lg p-lg rounded-md space-x-m ${backgroundColor}`, children: [responseOK ? (jsx(Img, { image: { icon: 'ResponceOKIcon' }, width: "42", height: "42" })) : (jsx(Img, { image: { icon: 'ResponceFailIcon' }, width: "37", height: "34" })), jsxs("div", { children: [jsx(Heading, { headingType: "h6", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', className: "mb-1" }), jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: responseOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее' })] })] }));
1147
1175
  });
1148
1176
 
1149
- const COMPONENTS_MAP = {
1150
- credit: (props) => jsx(ApplicationFormCredit, { ...props }),
1151
- acquiring: (props) => jsx(ApplicationFormAcquiring, { ...props }),
1152
- 'business-card': (props) => jsx(ApplicationFormBusinessCard, { ...props }),
1153
- deposit: (props) => jsx(ApplicationFormDeposit, { ...props }),
1154
- wed: (props) => jsx(ApplicationFormWed, { ...props }),
1155
- };
1156
1177
  const API = CorporateLeadAPI();
1157
1178
  const ApplicationForm = JSX((props) => {
1158
- const { className, title, typeForm = 'credit', button, link, ...rest } = props;
1179
+ const { className, formBlock, ...rest } = props;
1180
+ // const type = formBlock?.formType;
1181
+ // if (!type || !(type in EmbeddableForms)) {
1182
+ // return null;
1183
+ // }
1184
+ // const EmbeddedForm = EmbeddableForms[type];
1159
1185
  const [responseType, setResponseType] = useState('');
1160
1186
  const handleSubmit = useCallback(async (data) => {
1161
1187
  const status = (await API.send(data)) ? 'OK' : 'Fail';
1162
1188
  setResponseType(status);
1163
1189
  return status;
1164
1190
  }, []);
1165
- return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container max-w-[978px]", children: [title ? (jsx(Heading, { headingType: "h3", title: title, className: "mb-4 sm:mb-8 sm:text-center" })) : null, COMPONENTS_MAP[typeForm]({ button, link, onSubmit: handleSubmit }), responseType ? jsx(ResponseNotification, { responseType: responseType }) : null] }) }));
1191
+ return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container max-w-[978px]", children: [formBlock?.title ? (jsx(Heading, { headingType: "h3", title: formBlock.title, className: "mb-4 sm:mb-8 sm:text-center" })) : null, formBlock ? renderEmbeddedForm(formBlock, handleSubmit) : null, responseType ? jsx(ResponseNotification, { responseType: responseType }) : null] }) }));
1166
1192
  });
1193
+ const renderEmbeddedForm = (formBlock, handleSubmit) => {
1194
+ const type = formBlock?.formType;
1195
+ if (!type || !(type in EmbeddableForms)) {
1196
+ return null;
1197
+ }
1198
+ const EmbeddedForm = EmbeddableForms[type];
1199
+ return jsx(EmbeddedForm, { ...formBlock, onSubmit: handleSubmit });
1200
+ };
1167
1201
 
1168
1202
  const iconBgStyles = {
1169
1203
  '': 'bg-main-divider group-data-secondary:bg-white/30',
@@ -1182,7 +1216,7 @@
1182
1216
  const defaultIconSize = 44;
1183
1217
 
1184
1218
  const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [title ? jsx(Heading, { headingType: "h3", as: "h2", className: "text-center", title: title }) : null, benefitList?.length ? (jsx("div", { className: "flex flex-wrap w-full sm:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] })));
1185
- const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center md:basis-1/2 md:max-w-[400px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$3(benefit.description)] })) : null] }, String(i)));
1219
+ const renderBenefit = (benefit, i) => (jsxs("div", { className: "flex gap-m items-center md:basis-1/2 md:max-w-[500px]", role: "listitem", children: [benefit?.icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", defaultIconSize: defaultIconSize, iconBgVersion: benefit?.iconBgVersion || '', ...benefit?.icon })) : null, benefit?.icon?.src ? jsx(Img, { className: "shrink-0", image: benefit.icon }) : null, benefit?.label ? (jsxs("div", { className: "sm:h-full", children: [jsx(Heading, { headingType: "h6", children: benefit.label }), renderDescription$3(benefit.description)] })) : null] }, String(i)));
1186
1220
  const renderDescription$3 = (description) => {
1187
1221
  const benefitType = description?.benefitType || null;
1188
1222
  return description && benefitType ? (jsx("div", { className: "mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
@@ -1261,19 +1295,16 @@
1261
1295
  return (jsxs(BlockWrapper, { className: className, defaultPadding: isPadding ? 'p-6xl' : '', version: version, isTheme: isTheme, ...rest, children: [title ? (jsx(Heading, { className: style('whitespace-pre-wrap', align), ...versionStyle?.title, as: as || versionStyle?.title.as, title: title })) : null, description ? (jsx(Paragraph, { size: versionStyle.descriptionSize, font: versionStyle.descriptionWeight, align: align, ...descriptionStyle, children: description })) : null] }));
1262
1296
  });
1263
1297
 
1264
- const Bonus = JSX((props) => {
1265
- const { className = '', title, description, bonusItems, ...rest } = props;
1266
- return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isPadding: false }), jsx("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems?.length
1267
- ? bonusItems.map((_, i) => (jsxs("div", { className: "flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0", children: [_?.title ? jsx(Text, { size: "text-h4", children: _.title }) : null, _?.description ? (jsx("div", { className: "mt-xs", children: jsx(Paragraph, { size: "text-xl", font: "font-light", children: _.description }) })) : null, jsxs("div", { className: "flex justify-between items-end mt-3", children: [renderButtonsSection(_?.buttons), _.bonusItemContent?.bonusType
1268
- ? renderBonusItemContent(_.bonusItemContent)
1269
- : null] })] }, String(i))))
1270
- : null })] }) }));
1271
- });
1272
- const renderBonusItemContent = (bonusItemContent) => (jsx("div", { children: bonusItemContent.bonusType === 'count'
1273
- ? renderBonusCount(bonusItemContent)
1274
- : renderBonusImage(bonusItemContent) }));
1275
- const renderBonusCount = (_) => (jsxs("div", { className: "relative -bottom-3 h-auto flex items-end mt-14 shrink-0", children: [_.bonusCount ? (jsx("span", { className: "font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7", children: _.bonusCount })) : null, _.bonusName ? (jsx("span", { className: "text-h2 bg-clip-text text-transparent bg-green-to-yellow", children: _.bonusName })) : null] }));
1276
- const renderBonusImage = (_) => _.image ? jsx(Img, { className: `w-12 h-12 min-w-12 p-3 rounded-icon`, image: _.image }) : null;
1298
+ const Bonus = JSX(({ className = '', title, description, bonusItems = [], ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "mb-xl", isPadding: false, title: title, description: description, headlineVersion: "M" }), jsx("div", { className: "flex flex-wrap w-full", children: bonusItems.length > 0
1299
+ ? bonusItems.map((_, i) => (jsxs("div", { className: "flex-grow w-full sm:w-[49%] border border-gray p-m mb-text mx-xs even:mr-0 odd:ml-0 last:odd:mx-0", children: [_?.title ? (jsx("div", { className: "mb-xs last:mb-0", children: jsx(Text, { size: "text-h4", children: _.title }) })) : null, _?.description ? (jsx("div", { className: "mb-text last:mb-0", children: jsx(Paragraph, { size: "text-xl", font: "font-light", children: _.description }) })) : null, jsxs("div", { className: "flex justify-between items-end", children: [jsx("div", { className: "hidden sm:block", children: renderButtonsSection(_?.buttons) }), _.bonusItemContent?.bonusType
1300
+ ? renderBonusItemContent(_.bonusItemContent)
1301
+ : null] })] }, String(i))))
1302
+ : null })] }) })));
1303
+ const renderBonusItemContent = (bonusItemContent) => bonusItemContent.bonusType === 'count'
1304
+ ? renderBonusCount(bonusItemContent)
1305
+ : renderBonusImage(bonusItemContent);
1306
+ const renderBonusCount = (_) => (jsxs("div", { className: "w-full pt-default mt-s flex items-end", children: [_.bonusCount ? (jsx("span", { className: "shrink-0 w-1/2 sm:w-auto font-mohave text-title-extra -tracking-[5px] bg-clip-text text-transparent bg-green-to-yellow mt-lg", children: _.bonusCount })) : null, _.bonusName ? (jsx("div", { className: "w-1/2 sm:w-auto bg-clip-text text-transparent bg-green-to-yellow", children: jsx(Text, { size: "text-h2", children: _.bonusName }) })) : null] }));
1307
+ const renderBonusImage = (_) => _.image ? jsx(Img, { className: "min-w-12 p-xs rounded-icon shrink-0", image: _.image }) : null;
1277
1308
 
1278
1309
  /**
1279
1310
  * @deprecated
@@ -1514,6 +1545,8 @@
1514
1545
  })] }), jsx("div", { children: monthBonus >= 0 ? (jsx(Rate, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u043C\u0435\u0441\u044F\u0446", rate: monthBonus, rateBlockClassName: "tracking-[-14px]", fractionDigits: 0 })) : null }), jsxs("div", { className: "w-96", children: [yearBonus >= 0 ? jsx(CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus }) : null, renderButtonsSection(buttons, { className: 'mt-7', isVertical: true }), renderFootnote(footnote)] })] }));
1515
1546
  });
1516
1547
 
1548
+ const UnknownRate = JSX(({ title = 'Ставка' }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title }), jsx("div", { className: "mt-2xs pt-2xs pl-lg pb-xs", children: jsx(Icon, { name: "PercentIcon", width: "90", height: "85" }) }), jsx("div", { className: "w-64 mt-m", children: jsxs(Paragraph, { size: "text-xl", font: "font-light", color: "text-primary-text", children: ["\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u043D\u0430\u044F \u0441\u0442\u0430\u0432\u043A\u0430 \u0434\u043B\u044F \u0441\u0440\u043E\u043A\u0430 ", jsx("strong", { children: "1-30 \u0434\u043D\u0435\u0439" }), " \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0432 \u0411\u0430\u043D\u043A"] }) })] })));
1549
+
1517
1550
  const STEP_DAYS = 1;
1518
1551
  const renderDaysInput = (props) => (jsx(InputRange, { className: "mt-7", items: [`От ${daysText(props.min || 0)}`, `До ${daysText(props.max || 0)}`], step: STEP_DAYS, ...props }));
1519
1552
  const daysText = (days) => `${days} ${Number(days) % 10 === 1 ? 'дня' : 'дней'}`;
@@ -1534,8 +1567,6 @@
1534
1567
  ],
1535
1568
  });
1536
1569
 
1537
- const UnknownRate = JSX(({ title = 'Ставка' }) => (jsxs("div", { children: [jsx(Text, { size: "text-l", font: "font-light", color: "text-secondary-text", children: title }), jsx("div", { className: "mt-2xs pt-2xs pl-lg pb-xs", children: jsx(Icon, { name: "PercentIcon", width: "90", height: "85" }) }), jsx("div", { className: "w-64 mt-m", children: jsxs(Paragraph, { size: "text-xl", font: "font-light", color: "text-primary-text", children: ["\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u043D\u0430\u044F \u0441\u0442\u0430\u0432\u043A\u0430 \u0434\u043B\u044F \u0441\u0440\u043E\u043A\u0430 ", jsx("strong", { children: "1-30 \u0434\u043D\u0435\u0439" }), " \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0432 \u0411\u0430\u043D\u043A"] }) })] })));
1538
-
1539
1570
  const defaultDiscriminator = (_) => _;
1540
1571
  const maxBy = (discriminator = defaultDiscriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
1541
1572
  const max = maxBy();
@@ -1638,24 +1669,24 @@
1638
1669
  const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, sourceBookDir);
1639
1670
  const { income, finalSum, rate, depositeName, isShowUnknownRate } = calculatorParams;
1640
1671
  return (jsxs("section", { className: className, children: [jsxs("div", { className: "flex justify-between", children: [jsxs("div", { className: "w-2/5", children: [renderWantedSumInput({
1641
- title: 'Сумма вклада, ₽',
1672
+ title: 'Сумма, ₽',
1642
1673
  min: calculatorParams.minSum,
1643
1674
  max: calculatorParams.maxSum,
1644
1675
  ...field('moneyValue'),
1645
1676
  value: calculatorParams.moneyValue,
1646
1677
  }), renderDaysInput({
1647
- title: 'Срок вклада, дни',
1678
+ title: 'Срок, дней',
1648
1679
  min: calculatorParams.minDays,
1649
1680
  max: calculatorParams.maxDays,
1650
1681
  ...field('daysValue'),
1651
1682
  value: calculatorParams.daysValue,
1652
- }), jsxs("div", { className: "mt-7 flex justify-between", children: [renderBusinessDepositParamsForm(calculatorParams, field), renderInterestPayment({
1683
+ }), jsxs("div", { className: "mt-2xl flex justify-between", children: [renderBusinessDepositParamsForm(calculatorParams, field), renderInterestPayment({
1653
1684
  title: 'Выплата процентов',
1654
1685
  orientation: 'vertical',
1655
1686
  ...field('isMonthlyInterestPayment'),
1656
- })] })] }), isShowUnknownRate ? (jsx(UnknownRate, {})) : (jsx(Rate, { rate: rate, depositeName: depositeName, isShowDepositeName: isShowDepositeName, rateBlockClassName: "tracking-[-25px]", unit: "%" })), jsxs("div", { className: "w-96", children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" }), jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), renderButtonsSection(buttons, { className: 'mt-7', isVertical: true }), jsx("div", { className: "mt-7", children: renderFootnote(footnote) })] })] }), jsx("div", { className: "mt-5", children: renderFootnote(bottomFootnote) })] }));
1687
+ })] })] }), isShowUnknownRate ? (jsx(UnknownRate, {})) : (jsx(Rate, { rate: rate, depositeName: depositeName, isShowDepositeName: isShowDepositeName, rateBlockClassName: "tracking-[-25px]", unit: "%" })), jsxs("div", { className: "w-96", children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: income, postfix: "\u20BD", prefix: "+" }), jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), renderButtonsSection(buttons, { className: 'mt-2xl', isVertical: true }), jsx("div", { className: "mt-2xl", children: renderFootnote(footnote) })] })] }), jsx("div", { className: "mt-5", children: renderFootnote(bottomFootnote) })] }));
1657
1688
  });
1658
- const renderBusinessDepositParamsForm = (calculatorParams, field) => (jsxs("div", { children: [jsx(Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), jsx(Checkbox, { className: "mt-3", disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal }), jsx(Checkbox, { className: "mt-3", text: "\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043C\u0430\u043B\u044B\u043C \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u044F\u0442\u0438\u0435\u043C", ...field('isSmallBusiness'), value: calculatorParams.isSmallBusiness })] }));
1689
+ const renderBusinessDepositParamsForm = (calculatorParams, field) => (jsxs("div", { children: [jsx(Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), jsx(Checkbox, { className: "mt-3", disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal }), jsx(Checkbox, { className: "mt-3", text: "\u0418\u041F / \u043C\u0430\u043B\u043E\u0435 \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u044F\u0442\u0438\u0435", ...field('isSmallBusiness'), value: calculatorParams.isSmallBusiness })] }));
1659
1690
 
1660
1691
  const STEP_MONTHS = 1;
1661
1692
  const renderMonthsInput = ({ min = 0, max = 0, availableMonths, ...rest }) => (jsx(InputRange, { className: "mt-7", items: [`От ${monthText(min)}`, `До ${monthText(max)}`], step: STEP_MONTHS, ...(availableMonths?.length ? { list: availableMonths } : { min, max }), ...rest }));
@@ -1769,7 +1800,7 @@
1769
1800
 
1770
1801
  const CreditCalculatorForm = JSX(({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
1771
1802
  const [userInputParams, { field }] = useForm({
1772
- isAnnuity: false,
1803
+ isAnnuity: true,
1773
1804
  isInsurance: true,
1774
1805
  isSalaryClient: false,
1775
1806
  isPensionClient: false,
@@ -1871,19 +1902,19 @@
1871
1902
  setMonthsValue && setMonthsValue(defaultMonth);
1872
1903
  }, [defaultMonth]);
1873
1904
  return (jsxs("section", { className: style('flex justify-between', className), children: [jsxs("div", { className: "w-2/5", children: [renderWantedSumInput({
1874
- title: 'Сумма вклада, ₽',
1905
+ title: 'Сумма, ₽',
1875
1906
  min: calculatorParams.minSum,
1876
1907
  max: calculatorParams.maxSum,
1877
1908
  ...field('moneyValue'),
1878
1909
  value: calculatorParams.moneyValue,
1879
1910
  }), renderMonthsInput({
1880
- title: 'Срок вклада, месяцев',
1911
+ title: 'Срок, месяцев',
1881
1912
  min: calculatorParams.minMonths,
1882
1913
  max: calculatorParams.maxMonths,
1883
1914
  availableMonths: calculatorParams.availableMonths,
1884
1915
  ...field('monthsValue'),
1885
1916
  value: calculatorParams.monthsValue,
1886
- }), jsx("div", { className: "mt-2xl", children: renderDepositParamsForm({ ...calculatorParams, ...paramsViewSettings }, field) })] }), jsx(Rate, { rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), jsxs("div", { className: "w-96", children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" }), jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), renderButtonsSection(buttons, { className: 'mt-2xl', isVertical: true }), renderFootnote(footnote)] })] }));
1917
+ }), jsx("div", { className: "mt-2xl", children: renderDepositParamsForm({ ...calculatorParams, ...paramsViewSettings }, field) })] }), jsx(Rate, { rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), jsxs("div", { className: "w-96", children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: income, postfix: "\u20BD", prefix: "+" }), jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), renderButtonsSection(buttons, { className: 'mt-2xl', isVertical: true }), renderFootnote(footnote)] })] }));
1887
1918
  });
1888
1919
  const renderDepositParamsForm = (params, field) => (jsxs("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowMonthlyInterestPayment
1889
1920
  ? renderInterestPayment({
@@ -2196,7 +2227,7 @@
2196
2227
  return (jsx("div", { className: `inline-block snap-always box-border ${className}`, style: style, "aria-current": Boolean(idx === activeIndex), ref: ref, children: children }));
2197
2228
  });
2198
2229
 
2199
- const childStyleMap = ['min-w-full', 'min-w-1/2', 'min-w-1/3', 'min-w-1/4'];
2230
+ const childStyleMap = ['min-w-full', '@lg:min-w-[50%]', '@lg:min-w-[33.3%]', '@lg:min-w-[25%]'];
2200
2231
  const SwipeListContainer = JSX(({ className = '', containerRef, activeIndex, visibleItemCount = 0, gap = 0, padding = 0, listType = 'horizontal-list', snapAlign = 'snap-center', minHeight, children, onVisibleItemsChange, onVisibleIndicesChange, }) => {
2201
2232
  const observerOptions = {
2202
2233
  sensitivity: 1,
@@ -2340,9 +2371,9 @@
2340
2371
  onScrollRight();
2341
2372
  }
2342
2373
  }, [scrollRight, onScrollRight, hasEdgeBlocks, canScrollLeft, activeIndex, itemCount]);
2343
- return (jsxs("div", { children: [renderBlur(scroll), canMoveLeft ? (jsx(ScrollLeftButton, { className: style(scrollButtonStyle$1, arrowsPadded ? 'left-1 @lg:left-8' : 'left-0'), onClick: handleScrollLeft })) : null, canMoveRight ? (jsx(ScrollRightButton, { className: style(scrollButtonStyle$1, arrowsPadded ? 'right-1 @lg:right-8' : 'right-0'), onClick: handleScrollRight })) : null] }));
2374
+ return (jsxs("div", { className: "hidden @lg:block", children: [renderBlur(scroll), canMoveLeft ? (jsx(ScrollLeftButton, { className: style(scrollButtonStyle$1, arrowsPadded ? 'left-1 @lg:left-8' : 'left-0'), onClick: handleScrollLeft })) : null, canMoveRight ? (jsx(ScrollRightButton, { className: style(scrollButtonStyle$1, arrowsPadded ? 'right-1 @lg:right-8' : 'right-0'), onClick: handleScrollRight })) : null] }));
2344
2375
  });
2345
- const renderBlur = (scroll) => (jsxs("div", { children: [scroll.canScrollLeft ? (jsx("div", { className: style(blurBaseStyle, 'left-0 bg-opacity-from-white') })) : null, scroll.canScrollRight ? (jsx("div", { className: style(blurBaseStyle, 'right-0 bg-opacity-to-white') })) : null] }));
2376
+ const renderBlur = (scroll) => (jsxs("div", { children: [scroll.canScrollLeft ? (jsx("div", { className: style(blurBaseStyle, 'left-0 bg-opacity-from-white group-data-secondary:bg-none') })) : null, scroll.canScrollRight ? (jsx("div", { className: style(blurBaseStyle, 'right-0 bg-opacity-to-white group-data-secondary:bg-none') })) : null] }));
2346
2377
 
2347
2378
  const ITEMS_GAP = 16;
2348
2379
 
@@ -2403,8 +2434,8 @@
2403
2434
  black: 'bg-black',
2404
2435
  white: 'bg-white',
2405
2436
  };
2406
- const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-left gap-m', className), defaultPadding: "p-6xl sm:p-7", ...rest, children: [image?.src ? jsx(Img, { className: "flex justify-center", image: image }) : null, jsx(Headline, { title: title, description: description, headlineVersion: "XS", isPadding: false, align: "text-left" }), colors?.length ? (jsxs("div", { className: "flex text-secondary-text", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\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: 'w-full' })] })));
2407
- const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-1 sm:ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2437
+ const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: [image?.src ? jsx(Img, { className: "flex justify-center mb-xl", image: image }) : null, jsx(Headline, { title: title, description: description, headlineVersion: "XS", isPadding: false, align: "text-left", className: "mb-m" }), colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\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: 'w-full mt-lg' })] })));
2438
+ const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
2408
2439
 
2409
2440
  const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
2410
2441
  const link = useLink({ isRemote });
@@ -2437,23 +2468,22 @@
2437
2468
  return visibleCardsList.map((item, i) => (jsxs("li", { className: columnsMode === 2 ? 'basis-[calc(50%-20px)]' : '', children: [item?.parameter ? (jsx("div", { className: "pr-2.5", children: jsx(Text, { size: getItemListFontSize(columnsMode), children: item.parameter }) })) : null, item?.parameterDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.parameterDescription })) : null] }, String(i))));
2438
2469
  };
2439
2470
 
2440
- const LINK_CLASS_NAME = `absolute border border-primary-main ml-s px-xl py-lg
2441
- text-l font-light bg-white text-primary-text flex w-80
2471
+ const LINK_CLASS_NAME = `absolute border border-primary-main px-xl py-lg
2472
+ text-l font-light bg-white text-primary-text flex
2442
2473
  justify-between items-center group-hover/link:text-primary-main z-10`;
2443
2474
  const LINK_BORDER_CLASS_NAME = 'bg-transparent border-white border h-[70px] absolute w-[316px] top-0';
2444
2475
  const LinkButton = JSX(({ text, href = '', target = '', className = '' }) => {
2445
2476
  const link = useLink();
2446
2477
  const adjustedProps = link({ href, target });
2447
- return text ? (jsxs("div", { className: `relative group/link cursor-pointer w-[328px] h-[82px] ${className}`, children: [jsxs("a", { className: LINK_CLASS_NAME, role: "link", ...adjustedProps, children: [jsx("div", { className: "p-3xs", children: text }), jsx("div", { className: "w-6 h-6", children: jsx(Img, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main", width: "24", height: "24" }) })] }), jsx("div", { className: `${LINK_BORDER_CLASS_NAME} mx-1.5 mt-1.5` }), jsx("div", { className: `${LINK_BORDER_CLASS_NAME} mt-3 mr-3` })] })) : null;
2478
+ return text ? (jsxs("div", { className: style('flex max-w-sm relative group/link cursor-pointer w-64 h-16 sm:w-[47%] sm:h-20 sm:mr-m', className), children: [jsxs("a", { className: style(LINK_CLASS_NAME, 'rounded-md sm:rounded-none w-full h-12 sm:ml-s sm:w-full sm:h-auto'), role: "link", ...adjustedProps, children: [jsx("div", { className: "p-0.5", children: text }), jsx("div", { className: "w-6 h-6 hidden sm:block", children: jsx(Img, { className: "w-4 h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main", width: "24", height: "24" }) })] }), jsx("div", { className: LINK_BORDER_CLASS_NAME + ' hidden sm:block mx-1.5 mt-1.5' }), jsx("div", { className: LINK_BORDER_CLASS_NAME + ' hidden sm:block mt-3 mr-3' })] })) : null;
2448
2479
  });
2449
2480
 
2450
- const MAX_LINKS_COUNT = 10;
2451
- const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (jsxs(BlockWrapper, { className: style('flex w-full overflow-hidden', className), ...rest, children: [jsxs("div", { className: "mr-xl flex-auto", children: [jsx(Headline, { isPadding: false, title: title, description: description, as: "h1", align: "text-left" }), additionalDescription ? (jsx(Headline, { className: "pt-m", description: additionalDescription, align: "text-left", isPadding: false })) : null] }), links?.length ? renderLinks(links) : null] })));
2452
- const renderLinks = (links) => {
2453
- const itemCount = Math.ceil(links.length / MAX_LINKS_COUNT);
2454
- return (jsx(Carousel, { className: "min-w-[832px] w-[832px]", version: "", itemCount: itemCount, arrowsPadded: false, showDots: true, children: new Array(itemCount).fill(null).map((_, groupIndex) => (jsx("div", { className: "w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start", children: links
2455
- .slice(groupIndex * MAX_LINKS_COUNT, (groupIndex + 1) * MAX_LINKS_COUNT)
2456
- .map((link, index) => (jsx(LinkButton, { className: "m-1", ...link }, String(index)))) }, String(groupIndex)))) }));
2481
+ const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, maxLinksCount = 10, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col sm:flex-row w-full overflow-hidden', className), ...rest, children: [jsxs("div", { className: "mr-xl flex-auto", children: [jsx(Headline, { isPadding: false, title: title, description: description, as: "h1", align: "text-left" }), additionalDescription ? (jsx(Headline, { className: "pt-m", description: additionalDescription, align: "text-left", isPadding: false })) : null] }), links?.length ? renderLinks(links, maxLinksCount) : null] })));
2482
+ const renderLinks = (links, maxLinksCount) => {
2483
+ const itemCount = Math.ceil(links.length / maxLinksCount);
2484
+ return (jsx(Carousel, { className: "sm:w-2/3 w-full p-0 sm:p-2xl", version: "secondary", itemCount: itemCount, arrowsPadded: false, showDots: true, children: new Array(itemCount).fill(null).map((_, groupIndex) => (jsx("div", { className: style('flex flex-wrap self-start sm:w-[672px] w-full sm:mx-5xl'), children: links
2485
+ .slice(groupIndex * maxLinksCount, (groupIndex + 1) * maxLinksCount)
2486
+ .map((link, index) => (jsx(LinkButton, { className: "sm:m-2xs", ...link }, String(index)))) }, String(groupIndex)))) }));
2457
2487
  };
2458
2488
 
2459
2489
  const DOT_SIZE_MAP = {
@@ -2497,8 +2527,9 @@
2497
2527
 
2498
2528
  const buttonSizeStyles = {
2499
2529
  default: 'w-14 h-14',
2500
- small: 'w-12 h-12',
2530
+ stretched: 'flex-1 h-14',
2501
2531
  };
2532
+
2502
2533
  const buttonStylesWithText = (text, buttonSize) => text
2503
2534
  ? ''
2504
2535
  : style('group/media flex items-center justify-center box-border', buttonSizeStyles[buttonSize]);
@@ -2546,10 +2577,10 @@
2546
2577
  });
2547
2578
  const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
2548
2579
 
2549
- const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-1 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, ..._ }, String(index)))) }), jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })] })));
2580
+ const SocialMedia = JSX(({ className = '', media, children, buttonSize }) => (jsxs("div", { className: "flex flex-col sm:flex-col-reverse gap-xs", children: [children ? (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: children })) : null, jsx("div", { className: style('flex gap-xs', className), children: media?.map((_, index) => (jsx(MediaButton, { buttonSize: buttonSize, ..._ }, String(index)))) })] })));
2550
2581
 
2551
2582
  const CarouselRecommendationCard = JSX(({ className, padding, description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', ...rest }) => {
2552
- return (jsx(BlockWrapper, { className: style('relative min-h-[218px] group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isPadding: false, align: align })) : null, backImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia }) : null, children: items.length ? jsx(List, { items: items, listItemSize: "S" }) : null }) }) }));
2583
+ return (jsx(BlockWrapper, { className: style('relative min-h-[218px] group-data-gray:bg-main-divider/50', className), defaultPadding: "p-0", ...rest, children: jsx(LinkWrapper, { href: href, target: target, className: "h-full", children: jsx(BaseTile, { className: "h-full", defaultPadding: "p-m", padding: padding, title: title ? (jsx(Headline, { title: title, description: description, headlineVersion: "S", isPadding: false, align: align })) : null, backImage: icon?.icon || icon?.src ? jsx(Img, { image: icon }) : null, buttons: socialMedia.length ? jsx(SocialMedia, { media: socialMedia }) : null, children: items.length ? jsx(List, { items: items, listItemSize: "S" }) : null }) }) }));
2553
2584
  });
2554
2585
 
2555
2586
  const RichText = JSX((props) => {
@@ -2871,7 +2902,7 @@
2871
2902
  };
2872
2903
 
2873
2904
  const icon = { icon: 'GpsIcon' };
2874
- const CurrentLocation$1 = JSX(({ className = '', address }) => (jsxs("div", { className: `flex gap-s ${className}`, children: [jsx(RoundedIcon, { ...icon, iconBgVersion: "primary" }), jsxs("div", { className: "space-y-2xs", children: [address ? jsx("p", { className: "text-primary-main text-l", children: address }) : null, jsx("p", { className: "text-secondary-text text-m", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
2905
+ const CurrentLocation = JSX(({ className = '', address }) => (jsxs("div", { className: `flex gap-s ${className}`, children: [jsx(RoundedIcon, { ...icon, iconBgVersion: "primary" }), jsxs("div", { className: "space-y-2xs", children: [address ? jsx("p", { className: "text-primary-main text-l", children: address }) : null, jsx("p", { className: "text-secondary-text text-m", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
2875
2906
 
2876
2907
  const roundTo = (value, precision = 2) => {
2877
2908
  const factor = 10 ** precision;
@@ -3014,19 +3045,13 @@
3014
3045
  currencyRatesBuy.unshift({ currency: { currency: Currency.RUB } });
3015
3046
  const currencyRatesSell = currencyRates.filter((_) => _.saleExchangeRate);
3016
3047
  currencyRatesSell.push({ currency: { currency: Currency.RUB } });
3017
- return (jsx(BlockWrapper, { className: style('box-border min-h-80', className), ...rest, children: jsx(BaseTile, { className: "h-full", title: jsx(Heading, { headingType: "h4", title: title, className: "whitespace-pre-wrap" }), children: jsxs("div", { className: "flex gap-6xl flex-wrap", children: [jsxs("div", { children: [currencyRates ? (jsx(CurrencyTable, { className: "mb-xl", exchangeCurrencyItems: currencyRates })) : null, jsx(CurrentLocation$1, { address: exchangeRates?.address })] }), currencyRates.length && currencyRatesBuy.length && currencyRatesSell.length ? (jsx(ExchangeCurrencyCalculator, { className: "grow", currencyRatesBuy: currencyRatesBuy, currencyRatesSell: currencyRatesSell, button: button })) : null] }) }) }));
3048
+ return (jsx(BlockWrapper, { className: style('box-border min-h-80', className), ...rest, children: jsx(BaseTile, { className: "h-full", title: jsx(Heading, { headingType: "h4", title: title, className: "whitespace-pre-wrap" }), children: jsxs("div", { className: "flex gap-6xl flex-wrap", children: [jsxs("div", { children: [currencyRates ? (jsx(CurrencyTable, { className: "mb-xl", exchangeCurrencyItems: currencyRates })) : null, jsx(CurrentLocation, { address: exchangeRates?.address })] }), currencyRates.length && currencyRatesBuy.length && currencyRatesSell.length ? (jsx(ExchangeCurrencyCalculator, { className: "grow", currencyRatesBuy: currencyRatesBuy, currencyRatesSell: currencyRatesSell, button: button })) : null] }) }) }));
3018
3049
  });
3019
3050
  const getCurrencyRates = (currencies) => {
3020
3051
  return currencies?.filter((_) => _?.currency?.id === 1 || _?.currency?.id === 2) || [];
3021
3052
  };
3022
3053
 
3023
- const EMPTY_VALUE$1 = {};
3024
- function useSWRResource(filename, fallback = {}) {
3025
- const { data } = useAsyncData(`/wcms-resources/${filename}.json`, fetchJSONUnsafe, {
3026
- fallback,
3027
- });
3028
- return data || EMPTY_VALUE$1;
3029
- }
3054
+ const useSitemap = (fallback) => useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
3030
3055
 
3031
3056
  const ICON_VERSION_MAP = {
3032
3057
  'bg-white': 'color',
@@ -3053,26 +3078,14 @@
3053
3078
 
3054
3079
  const Logo = JSX(({ className = '', href = '/', logo, children = logo?.title, targetBlank, bgColor = 'bg-white', showTitle = true, }) => (jsxs("a", { className: style('inline-flex items-center font-sans no-underline', className), href: href, target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage$1(bgColor, logo?.image, { width: '40', height: '45' }), showTitle ? renderTitle(children || logo?.title, bgColor) : null] })));
3055
3080
 
3056
- const CloseButton = JSX(({ className, onClick }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none', className), onClick: onClick, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: jsx(Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
3057
-
3058
- function assertUnreachable(x) {
3059
- throw new Error(x);
3060
- }
3081
+ const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: jsx(Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
3061
3082
 
3062
- function useDialogHandlers({ onOpen, onClose } = {}) {
3063
- useEffect(() => defaultEventBus.subscribe('dialog', (action) => {
3064
- switch (action.type) {
3065
- case 'open':
3066
- onOpen && onOpen(action);
3067
- break;
3068
- case 'close':
3069
- onClose && onClose();
3070
- break;
3071
- default:
3072
- assertUnreachable(action);
3073
- }
3074
- }), [onOpen, onClose]);
3075
- }
3083
+ const SearchInput = JSX(({ className, value, autoFocus, onChange, onFocus }) => {
3084
+ const handleChange = useCallback((ev) => {
3085
+ onChange && onChange(ev.target?.value || '');
3086
+ }, [onChange]);
3087
+ return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-12 pl-12 w-full text-l text-black outline-none box-border', 'border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'), value: value, type: "text", name: "search-bar-input", placeholder: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
3088
+ });
3076
3089
 
3077
3090
  const useDebouncedEffect = (effect, deps, delay = 300) => useEffect(() => {
3078
3091
  const timerId = setTimeout(effect, delay);
@@ -3226,52 +3239,14 @@
3226
3239
  };
3227
3240
  const fetchSearchIndex = async (...basePathList) => (await Promise.allSettled(basePathList.map((basePath) => fetchJSON(joinPath(basePath, '/', SEARCH_INDEX_FILENAME))))).map((_) => (_.status === 'fulfilled' ? _.value : {}));
3228
3241
 
3229
- const Dialog = JSX(({ className, isOpened, head, children, onClose }) => {
3230
- useEffect(() => {
3231
- const handleEscape = ({ key }) => {
3232
- if (key === 'Escape') {
3233
- onClose && onClose();
3234
- }
3235
- };
3236
- globalThis.document?.addEventListener('keydown', handleEscape);
3237
- return () => {
3238
- globalThis.document?.removeEventListener('keydown', handleEscape);
3239
- };
3240
- }, [onClose]);
3241
- return isOpened ? (jsx("div", { className: style('fixed inset-0 bg-white text-l font-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar', className), role: "dialog", children: jsxs("div", { className: "relative container pb-6xl min-h-full", children: [jsxs("div", { className: "sticky bg-white pt-xl top-0", children: [jsx(CloseButton, { className: "absolute top-0 -right-6xl", onClick: onClose }), head] }), children] }) })) : null;
3242
- });
3243
-
3244
- function useDialogProps(id, isOpenedOnInit = false) {
3245
- const [isOpened, { setTrue: open, setFalse: close }] = useBool(isOpenedOnInit);
3246
- const [params, setParams] = useState({ id });
3247
- const wasOpened = useRef(isOpened);
3248
- wasOpened.current ||= isOpened;
3249
- const handleOpen = useCallback((_) => {
3250
- if (_.id === id) {
3251
- setParams(_);
3252
- open();
3253
- }
3254
- else {
3255
- close();
3256
- }
3257
- }, [id]);
3242
+ const Dialog = JSX(({ className, head, children, onClose }) => {
3243
+ const { close } = useDialogManager();
3258
3244
  const handleClose = useCallback(() => {
3259
3245
  close();
3260
- defaultEventBus.fire('dialog', { type: 'close' });
3261
- }, []);
3262
- useDialogHandlers({
3263
- onOpen: handleOpen,
3264
- onClose: close,
3265
- });
3266
- return {
3267
- ...params,
3268
- isOpened,
3269
- wasOpened: wasOpened.current,
3270
- open,
3271
- close,
3272
- onClose: handleClose,
3273
- };
3274
- }
3246
+ onClose && onClose();
3247
+ }, [onClose]);
3248
+ return (jsxs("div", { className: style('relative min-h-full bg-white', className), children: [jsxs("div", { className: "sticky py-xl top-0 bg-white", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: handleClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] }));
3249
+ });
3275
3250
 
3276
3251
  const Sitemap = JSX(({ className, topItems }) => {
3277
3252
  const link = useLink({ isRemote: true });
@@ -3288,25 +3263,17 @@
3288
3263
  return (jsx("a", { className: style('text-l font-light text-secondary-text hover:text-primary-main no-underline', 'overflow-x-hidden overflow-ellipsis whitespace-nowrap'), href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
3289
3264
  });
3290
3265
 
3291
- const SearchInput = JSX(({ className, value, autoFocus, onChange, onFocus }) => {
3292
- const handleChange = useCallback((ev) => {
3293
- onChange && onChange(ev.target?.value || '');
3294
- }, [onChange]);
3295
- return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-12 pl-12 w-full text-l text-black outline-none box-border', 'border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'), value: value, type: "text", name: "search-bar-input", placeholder: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
3296
- });
3297
-
3298
- const SEARCH_DIALOG_ID = 'search';
3299
- const SearchDialog = JSX(({ topItems }) => {
3300
- const dialogProps = useDialogProps(SEARCH_DIALOG_ID);
3266
+ const SearchDialog = JSX(({ initialQuery }) => {
3267
+ const { topItems } = useSitemap();
3301
3268
  const basePathList = useMemo(() => topItems?.map((_) => _.href || '/'), [topItems]);
3302
3269
  const [searchResult, searchInputProps] = useSearch({
3303
3270
  basePathList,
3304
- initialQuery: dialogProps.message,
3305
- wasOpened: dialogProps.wasOpened,
3271
+ initialQuery,
3272
+ wasOpened: false,
3306
3273
  });
3307
3274
  const searchItems = useMemo(() => combineTopItemsAndSearchResult(topItems)(searchResult), [topItems, searchResult]);
3308
3275
  useEffect(() => printSearchItems(searchItems), [searchItems]); // Temp
3309
- return (jsx(Dialog, { ...dialogProps, head: jsx(SearchInput, { autoFocus: true, ...searchInputProps }), children: jsx(Sitemap, { topItems: searchItems }) }));
3276
+ return (jsx(Dialog, { head: jsx(SearchInput, { autoFocus: true, ...searchInputProps }), children: jsx(Sitemap, { topItems: searchItems }) }));
3310
3277
  });
3311
3278
  const combineTopItemsAndSearchResult = (topItems) => (searchResult) => topItems?.length && searchResult?.length
3312
3279
  ? zip(topItems, searchResult).map(([_, portalSearchResult]) => ({
@@ -3323,25 +3290,32 @@
3323
3290
  }
3324
3291
  }
3325
3292
 
3293
+ const useSearchDialog = () => {
3294
+ const { open, close } = useDialogManager();
3295
+ return {
3296
+ open: (props = {}, options = {}) => open(jsx(SearchDialog, { ...props }), options),
3297
+ close,
3298
+ };
3299
+ };
3300
+
3326
3301
  const MIN_QUERY_LEN = 3;
3327
3302
  const SearchBar$1 = JSX(({ className }) => {
3328
3303
  const [value, setValue] = useState('');
3329
3304
  const resetQueryOnDialogClose = useCallback(() => setValue(''), []);
3330
- useDialogHandlers({ onClose: resetQueryOnDialogClose });
3331
- const { open } = useDialog(SEARCH_DIALOG_ID);
3305
+ const { open } = useSearchDialog();
3332
3306
  const handleInitialInputChange = useCallback((_) => {
3333
3307
  setValue(_);
3334
3308
  if (isQueryLongEnough(_)) {
3335
- open(_);
3309
+ open({ initialQuery: _ }, { onClose: resetQueryOnDialogClose });
3336
3310
  }
3337
- }, []);
3338
- return (jsxs("div", { className: className, children: [jsx(SearchInput, { value: value, onChange: handleInitialInputChange }), jsx(CloseButton, { className: "absolute top-2 right-3 sm:hidden", onClick: resetQueryOnDialogClose })] }));
3311
+ }, [resetQueryOnDialogClose]);
3312
+ return (jsxs("div", { className: className, children: [jsx(SearchInput, { value: value, onChange: handleInitialInputChange }), jsx(CloseButton, { className: "absolute top-2 right-3 sm:hidden", onClose: resetQueryOnDialogClose })] }));
3339
3313
  });
3340
3314
  const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
3341
3315
 
3342
- const Contacts = JSX(({ className = '', items, hasButton }) => (jsxs("div", { className: style('space-y-xl', className), children: [items?.length ? items.map(renderContactsGroup) : null, hasButton ? (jsx(Button, { version: "primary", className: "mb-6 w-full", href: "https://www.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
3343
- const renderContactsGroup = (item, i) => (jsxs("div", { className: "space-y-m", children: [jsx("div", { className: "", children: jsx(Text, { size: "text-l", font: "font-medium", children: item?.title }) }), jsx("div", { className: "space-y-m", children: item.items?.map(renderContact) })] }, String(i)));
3344
- const renderContact = (item, index) => (jsxs("div", { className: "space-y-2xs", children: [jsx("div", { children: renderText(item.type, item.text) }), jsx("div", { className: "text-s font-light text-secondary-text", children: item.description })] }, String(index)));
3316
+ const Contacts = JSX(({ className = '', items }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContactsGroup) : null, jsx(Button, { version: "primary", className: "w-full", href: "https://www.rshb.ru/feedback/question/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })] })));
3317
+ const renderContactsGroup = (item, i) => (jsxs("div", { className: "mb-m", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-l", font: "font-medium", children: item?.title }) }), jsx("div", { children: item.items?.map(renderContact) })] }, String(i)));
3318
+ const renderContact = (item, index) => (jsxs("div", { className: "mb-m", children: [jsx("div", { children: renderText(item.type, item.text) }), jsx("div", { className: "mt-2xs text-s font-light text-secondary-text", children: item.description })] }, String(index)));
3345
3319
  const renderText = (type, text = '') => {
3346
3320
  switch (type) {
3347
3321
  case 'tel':
@@ -3363,7 +3337,7 @@
3363
3337
  });
3364
3338
 
3365
3339
  const HorizontalNavigation = JSX(({ className = '', links }) => {
3366
- return (jsx("div", { className: className, children: links?.length ? (jsx("div", { className: "flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, className: "text-l font-light max-w-[292px]", ..._ }, String(i)))) })) : null }));
3340
+ return (jsx("div", { className: className, children: links?.length ? (jsx("div", { className: "flex justify-between items-center gap-lg py-lg border-solid border-x-0 border-y border-y-main-divider", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, className: "text-l font-light max-w-[292px]", ..._ }, String(i)))) })) : null }));
3367
3341
  });
3368
3342
 
3369
3343
  const TextInformationLink = JSX(({ className = '', index, ...rest }) => {
@@ -3372,12 +3346,13 @@
3372
3346
  return (jsx("a", { className: `text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
3373
3347
  });
3374
3348
 
3375
- const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-4 xl:pt-5", children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex justify-start items-start gap-5 pt-4", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
3349
+ const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-lg", children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex flex-col sm:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
3376
3350
 
3377
- const LEFT_COL_WIDTH_FULL_HD = 'w-[204px]';
3378
- const Footer = JSX(({ className, sitemap, ...rest }) => {
3351
+ const LEFT_COL_WIDTH = 'w-52';
3352
+ const Footer = JSX(({ className, ...rest }) => {
3353
+ const { topItems } = useSitemap(rest.options?.page?.fallback);
3379
3354
  const { documents, relatedEnterprises, contacts, socialMedia, mobileApps, logo } = useSWRResource(projectSettings.FOOTER || 'footer', rest.options?.page?.fallback);
3380
- return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-6xl xl:gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH_FULL_HD, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl xl:gap-3xl", children: [jsxs("div", { className: `${LEFT_COL_WIDTH_FULL_HD} flex flex-col shrink-0 overflow-hidden space-y-xl`, children: [jsx(Contacts, { items: contacts, hasButton: true }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: sitemap?.topItems })] }), jsx(HorizontalNavigation, { className: "mt-24", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3355
+ return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-3xl pb-3xl ", children: [jsx(Logo, { className: LEFT_COL_WIDTH, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-6xl", children: [jsxs("div", { className: `${LEFT_COL_WIDTH} flex flex-col shrink-0 overflow-hidden space-y-xl`, children: [jsx(Contacts, { items: contacts }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { media: mobileApps, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: topItems })] }), jsx(HorizontalNavigation, { className: "mt-xl", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3381
3356
  });
3382
3357
 
3383
3358
  const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { className: "mb-4", title: title, description: description, headlineVersion: "M", isPadding: false }), calendar ? renderCalendar(calendar) : null] })));
@@ -3396,10 +3371,6 @@
3396
3371
  const renderMonthNames = (item, colSize) => item.month?.map((_, i) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.text }, `monthName-${i}`)));
3397
3372
  const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0", children: jsx(Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
3398
3373
 
3399
- const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
3400
-
3401
- const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
3402
-
3403
3374
  const TopItem = JSX(({ className = '', active, flat, children, ...rest }) => {
3404
3375
  const link = useLink({ isRemote: true });
3405
3376
  const { href, target, text, onClick } = link(rest);
@@ -3412,6 +3383,48 @@
3412
3383
  ? 'text-primary-main'
3413
3384
  : style(flat ? 'text-primary-text' : 'text-secondary-text', 'hover:text-primary-main'), 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
3414
3385
 
3386
+ const useLatestEvent = (eventBus, type, initialEvent) => {
3387
+ const [latestEvent, setLatestEvent] = useState(initialEvent || null);
3388
+ useEffect(() => eventBus.subscribe(type, (_) => setLatestEvent(_)), [eventBus, type]);
3389
+ const fireEvent = useCallback((_) => eventBus.fire(type, _), [eventBus, type]);
3390
+ return [latestEvent, fireEvent];
3391
+ };
3392
+
3393
+ const REGION_URL = '/api/v1/region';
3394
+ const LOCATION_STORAGE_KEY = 'location';
3395
+ function useLocation(defaultLocation = 'Москва') {
3396
+ const [currentLocation, fireCurrentLocation] = useLatestEvent(defaultEventBus, 'location', restoreLocation() ?? { name: defaultLocation });
3397
+ const selectCurrentLocation = useCallback((_) => {
3398
+ storeLocation(_);
3399
+ fireCurrentLocation(_);
3400
+ }, []);
3401
+ const { data } = useAsyncData(REGION_URL, fetchJSONUnsafe);
3402
+ useEffect(() => {
3403
+ if (data && !hasStoredLocation()) {
3404
+ fireCurrentLocation(data);
3405
+ }
3406
+ }, [data]);
3407
+ return [currentLocation ?? { name: defaultLocation }, selectCurrentLocation];
3408
+ }
3409
+ const hasStoredLocation = () => Boolean(globalThis.localStorage?.getItem(LOCATION_STORAGE_KEY));
3410
+ const restoreLocation = () => {
3411
+ try {
3412
+ const data = globalThis.localStorage?.getItem(LOCATION_STORAGE_KEY);
3413
+ return data && JSON.parse(data);
3414
+ }
3415
+ catch (ex) {
3416
+ return null;
3417
+ }
3418
+ };
3419
+ const storeLocation = (_) => {
3420
+ try {
3421
+ globalThis.localStorage?.setItem(LOCATION_STORAGE_KEY, JSON.stringify(_));
3422
+ }
3423
+ catch (ex) {
3424
+ // Do nothing
3425
+ }
3426
+ };
3427
+
3415
3428
  const REGIONS_URL = '/api/v1/regions';
3416
3429
  function useRegions() {
3417
3430
  const { data } = useAsyncData(REGIONS_URL, fetchJSONUnsafe);
@@ -3428,44 +3441,53 @@
3428
3441
  return result;
3429
3442
  };
3430
3443
 
3444
+ const renderForeignOffices = (foreignOffices) => foreignOffices?.length ? (jsxs("div", { className: "border-t border-main-divider mt-2xs pt-2xs", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: "\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043E\u043C:" }) }), jsx("div", { className: "flex gap-10", children: foreignOffices.map((office, i) => (jsx(ForeignOffice, { ...office }, String(i)))) })] })) : null;
3445
+ const ForeignOffice = JSX(({ icon, ...rest }) => {
3446
+ const link = useLink();
3447
+ const { text, target, href, onClick } = link(rest);
3448
+ return (jsxs("div", { className: "flex gap-x-3", children: [icon ? jsx(Img, { pathPrefix: "/wcms-resources/", image: icon }) : null, text ? (jsx("a", { className: "hover:text-primary-hover", href: href, target: target, onClick: onClick, children: text })) : null] }));
3449
+ });
3450
+
3451
+ const renderRegion = (onChangeLocation) => (region) => (jsx("div", { className: "mb-2xs", children: jsx("button", { className: "cursor-pointer hover:text-primary-hover", onClick: () => {
3452
+ onChangeLocation && onChangeLocation(region);
3453
+ }, children: region.name || '' }) }, region.id));
3454
+
3455
+ const renderRegionGroup = (onChangeLocation) => ([letter, regions]) => (jsxs("div", { className: "break-inside-avoid mb-2xl w-56", children: [jsx("div", { className: "mb-s", children: jsx(Text, { size: "text-h6", children: letter }) }), regions.map(renderRegion(onChangeLocation))] }, letter));
3456
+
3431
3457
  const SearchBar = JSX(({ className, searchTerm, onSearch }) => {
3432
3458
  return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsx("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-44 gap-3.5 pointer-events-none", children: searchTerm ? null : (jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text `, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0444\u0438\u043B\u0438\u0430\u043B\u0430\u043C" })) }), jsx("input", { id: "search-bar-input", className: `h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border
3433
3459
  outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text`, value: searchTerm, onChange: (e) => onSearch(e.target.value.toLowerCase()), type: "text", name: "location-search-bar-input" })] }));
3434
3460
  });
3435
3461
 
3436
3462
  const SEARCH_TERM_MIN_LENGTH = 3;
3437
- const LOCATION_DIALOG_ID = 'location';
3438
- const LocationDialog = JSX(({ currentLocation, onChangeLocation, foreignOffices }) => {
3439
- const dialogProps = useDialogProps(LOCATION_DIALOG_ID);
3463
+ const LocationDialog = JSX(() => {
3464
+ const { defaultLocation, foreignOffices } = useSitemap();
3465
+ const [currentLocation, selectCurrentLocation] = useLocation(defaultLocation);
3440
3466
  const [query, setQuery] = useState('');
3441
3467
  const regions = cleanUpRegions(useRegions()).sort((a, b) => a.name.localeCompare(b.name));
3442
3468
  const regionsGroupByLetter = groupBy(regions, regionFirstLetter);
3469
+ const { close } = useDialogManager();
3443
3470
  const handleChangeLocation = useCallback((region) => {
3444
- dialogProps.onClose && dialogProps.onClose();
3445
- onChangeLocation && onChangeLocation(region);
3446
- }, [dialogProps.onClose, onChangeLocation]);
3447
- return (jsxs(Dialog, { ...dialogProps, head: jsxs("div", { children: [jsx(CurrentLocation, { currentLocation: currentLocation, onChangeLocation: handleChangeLocation }), jsx(SearchBar, { onSearch: setQuery, searchTerm: query })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
3471
+ selectCurrentLocation(region);
3472
+ close();
3473
+ }, []);
3474
+ return (jsxs(Dialog, { head: jsxs("div", { children: [currentLocation ? (jsxs("div", { className: "mb-s", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { onClick: () => selectCurrentLocation(currentLocation), children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null, jsx(SearchBar, { onSearch: setQuery, searchTerm: query })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
3448
3475
  .filter(({ name }) => name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8)
3449
- .map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), jsx(ForeignOffices, { foreignOffices: foreignOffices })] }));
3476
+ .map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), renderForeignOffices(foreignOffices)] }));
3450
3477
  });
3451
3478
  const regionFirstLetter = (region) => region.name?.charAt(0) || '';
3452
3479
  const cleanUpRegions = (regions) => regions.map((region) => ({
3453
3480
  ...region,
3454
3481
  name: region.name?.replace(/республика|область|край'/gi, '').trim() || '',
3455
3482
  }));
3456
- const CurrentLocation = JSX(({ currentLocation, onChangeLocation }) => currentLocation ? (jsxs("div", { className: "mb-4", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { className: "cursor-pointer", onClick: () => {
3457
- onChangeLocation && onChangeLocation(currentLocation);
3458
- }, children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null);
3459
- const renderRegionGroup = (onChangeLocation) => ([letter, regions]) => (jsxs("div", { className: "break-inside-avoid mb-2xl w-56", children: [jsx("div", { className: "mb-s", children: jsx(Text, { size: "text-h6", children: letter }) }), regions.map(renderRegion(onChangeLocation))] }, letter));
3460
- const renderRegion = (onChangeLocation) => (region) => (jsx("div", { className: "mb-2xs", children: jsx("button", { className: "cursor-pointer hover:text-primary-hover", onClick: () => {
3461
- onChangeLocation && onChangeLocation(region);
3462
- }, children: region.name || '' }) }, region.id));
3463
- const ForeignOffices = JSX(({ foreignOffices }) => foreignOffices?.length ? (jsxs("div", { className: "border-t border-main-divider mt-2xs pt-2xs", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: "\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043E\u043C:" }) }), jsx("div", { className: "flex gap-10", children: foreignOffices.map((office, i) => (jsx(ForeignOffice, { ...office }, String(i)))) })] })) : null);
3464
- const ForeignOffice = JSX(({ icon, ...rest }) => {
3465
- const link = useLink();
3466
- const { text, target, href, onClick } = link(rest);
3467
- return (jsxs("div", { className: "flex gap-x-3", children: [icon ? jsx(Img, { pathPrefix: "/wcms-resources/", image: icon }) : null, text ? (jsx("a", { className: "hover:text-primary-hover", href: href, target: target, onClick: onClick, children: text })) : null] }));
3468
- });
3483
+
3484
+ const useLocationDialog = () => {
3485
+ const { open, close } = useDialogManager();
3486
+ return {
3487
+ open: (options = {}) => open(jsx(LocationDialog, {}), options),
3488
+ close,
3489
+ };
3490
+ };
3469
3491
 
3470
3492
  const BUTTON_SIZE_STYLE = {
3471
3493
  default: 'w-6 h-6',
@@ -3475,15 +3497,18 @@
3475
3497
  ? 'w-8 h-8 text-secondary-light hover:text-secondary-hove'
3476
3498
  : `${BUTTON_SIZE_STYLE[buttonSize]} text-primary-text hover:text-primary-main`, 'group-data-transparent:text-white', className), type: "button", disabled: disabled, "aria-label": ariaLabel, onClick: onClick, children: jsx(Img, { image: image, className: style('h-full', isRounded ? 'bg-main-divider/20 rounded-full' : ''), imageClassName: "group-hover/btn:text-primary-hover group-hover/btn:invert-0" }) })));
3477
3499
 
3478
- const HeaderSecondaryMenu = JSX(({ className, version, locationName: location, officesLink }) => {
3500
+ const HeaderSecondaryMenu = JSX(({ className, version, officesLink, defaultLocation }) => {
3479
3501
  const iconVersion = version === 'transparent' ? 'white' : 'black';
3480
- const { open: openLocationModal } = useDialog(LOCATION_DIALOG_ID);
3481
- const handleOpenLocationModal = useCallback(() => openLocationModal(), []);
3482
- const { open: openSearchModal } = useDialog(SEARCH_DIALOG_ID);
3483
- const handleOpenSearchModal = useCallback(() => openSearchModal(), []);
3484
- return (jsxs("div", { className: style('flex items-center gap-5', className), children: [jsx(TopItem, { flat: true, href: "#", text: location, onClick: handleOpenLocationModal }), officesLink ? jsx(TopItem, { flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" }) : null, jsx(HeaderSecondaryMenuButton, { image: { icon: 'LoupeIcon', iconVersion }, ariaLabel: "\u041F\u043E\u0438\u0441\u043A", onClick: handleOpenSearchModal })] }));
3502
+ const [currentLocation] = useLocation(defaultLocation);
3503
+ const searchDialog = useSearchDialog();
3504
+ const openSearchDialog = useCallback(() => searchDialog.open(), []);
3505
+ const locationDialog = useLocationDialog();
3506
+ const openLocationDialog = useCallback(() => locationDialog.open(), []);
3507
+ return (jsxs("div", { className: style('flex items-center gap-5', className), children: [jsx(TopItem, { flat: true, href: "#", text: currentLocation?.name, onClick: openLocationDialog }), officesLink ? jsx(TopItem, { flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" }) : null, jsx(HeaderSecondaryMenuButton, { image: { icon: 'LoupeIcon', iconVersion }, ariaLabel: "\u041F\u043E\u0438\u0441\u043A", onClick: openSearchDialog })] }));
3485
3508
  });
3486
3509
 
3510
+ const isHrefActive = (router) => ({ href }) => withoutQuery(isURL(href) ? router.href : router.pathname).startsWith(withoutQuery(href));
3511
+
3487
3512
  const findActiveSubItem = (router) => (items = []) => {
3488
3513
  const possibleActiveSubItems = items?.filter(isHrefActive(router));
3489
3514
  return possibleActiveSubItems?.length
@@ -3604,15 +3629,17 @@
3604
3629
  const handleIntersectionActivation = (index) => (prev) => Math.max(prev, index + 1);
3605
3630
  const handleIntersectionDeactivation = (index) => (prev) => Math.min(prev, index);
3606
3631
 
3632
+ const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
3633
+
3607
3634
  const BG_COLOR_TO_BLOCK_VERSION = {
3608
3635
  'bg-white': 'primary',
3609
3636
  transparent: 'transparent',
3610
3637
  };
3611
- const Header = JSX(({ className, bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], sitemap, location, ...rest }) => {
3638
+ const Header = JSX(({ className, bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
3612
3639
  const router = useRouter();
3613
- const { topItems, logo, officesLink, internetBankUrl } = sitemap || {};
3640
+ const { topItems, logo, officesLink, internetBankUrl, defaultLocation } = useSitemap(rest.options?.page?.fallback);
3614
3641
  const activeTopItem = topItems?.find(isTopItemActive(router));
3615
- return (jsx(BlockWrapper, { tag: "header", className: style('pt-3xl px-20', activeTopItem?.items?.length ? 'pb-m' : 'pb-lg', className), defaultPadding: "", version: version, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-3xl", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", locationName: location?.name, officesLink: officesLink })] }), jsx("div", { className: style('mt-xl h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, version: version, internetBankUrl: internetBankUrl })) : null] }) }));
3642
+ return (jsx(BlockWrapper, { tag: "header", className: style('pt-3xl px-20', activeTopItem?.items?.length ? 'pb-m' : 'pb-lg', className), defaultPadding: "", version: version, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-3xl", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", officesLink: officesLink, defaultLocation: defaultLocation })] }), jsx("div", { className: style('mt-xl h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, version: version, internetBankUrl: internetBankUrl })) : null] }) }));
3616
3643
  });
3617
3644
 
3618
3645
  const gapStyles = {
@@ -3793,7 +3820,7 @@
3793
3820
  return (jsx("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: jsx(LinkDocItem, { text: docBlockDef?.text, target: docBlockDef?.target, href: href, fileSize: fileSize, icon: icon ? jsx(Img, { className: linkIconStyle, image: icon, width: "24", height: "24" }) : null }) }, String(i)));
3794
3821
  };
3795
3822
 
3796
- const renderDescription$1 = (description) => description ? (jsx("div", { className: "mb-5 pt-3xs sm:mb-0 sm:pt-0", children: jsx(Text, { size: "text-xl", "font-weight": "light", children: description }) })) : null;
3823
+ const renderDescription$1 = (description) => description ? (jsx("div", { className: "mb-lg pt-3xs", children: jsx(Text, { size: "text-xl", "font-weight": "light", children: description }) })) : null;
3797
3824
 
3798
3825
  const renderList$1 = (items) => {
3799
3826
  return items?.length ? (jsx(List, { items: items, className: "text-l font-light mb-xs last:mb-0" })) : (jsx("span", { className: "text-m font-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
@@ -4316,7 +4343,7 @@
4316
4343
  })) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
4317
4344
  };
4318
4345
  const renderPrimaryFoldButton = ({ label, labelIconBgVersion, icon, onToggle, labelIcon, }) => {
4319
- return (jsxs("button", { className: style('border-none bg-transparent px-0 flex justify-between items-center w-full group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, children: [jsxs("div", { className: "flex items-center group-hover/button:text-primary-main gap-s", children: [renderRoundedIcon(), label ? (jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), icon ? jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null] }));
4346
+ return (jsxs("button", { className: style('border-none bg-transparent flex justify-between items-center w-full group/button', labelIcon?.icon ? 'py-xs' : 'py-lg'), onClick: onToggle, children: [jsxs("div", { className: "flex items-center group-hover/button:text-primary-main gap-s", children: [renderRoundedIcon(), label ? (jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), icon ? jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null] }));
4320
4347
  };
4321
4348
 
4322
4349
  const WrapperSelect = JSX(({ data, fieldLabel, fieldValue, selected, placeholder = '', setSelected, label }) => {
@@ -4516,6 +4543,10 @@
4516
4543
  exclude: ['SwipeListControlBlock'],
4517
4544
  };
4518
4545
 
4546
+ function assertUnreachable(x) {
4547
+ throw new Error(x);
4548
+ }
4549
+
4519
4550
  const LINK_CLASSES = 'h-12 flex-1 flex items-center justify-center cursor-pointer';
4520
4551
  const INACTIVE_LINK_CLASSES = 'group/btn bg-white';
4521
4552
  const SCROLLABLE_ACTIVE_LINK_CLASSES = 'bg-white text-primary-main';
@@ -4918,52 +4949,6 @@
4918
4949
  ExchangeRateOffice,
4919
4950
  };
4920
4951
 
4921
- const STORAGE_DEFAULT_TTL = 86400000; // 24 * 60 * 60 * 1000
4922
- function useCachedAsyncData(key, fetcher, storage = globalThis?.localStorage) {
4923
- const cachedFetcher = useCallback(async (...args) => {
4924
- const storageKey = `async:${key}`;
4925
- const storageData = storage.getItem(storageKey);
4926
- const cachedData = getParsedData(storageData);
4927
- if (cachedData) {
4928
- return cachedData;
4929
- }
4930
- const data = await fetcher(...args);
4931
- storage.setItem(storageKey, JSON.stringify({ data, timestamp: Date.now() }));
4932
- return data;
4933
- }, [key, fetcher]);
4934
- return useAsyncData(key, cachedFetcher);
4935
- }
4936
- function getParsedData(storageData) {
4937
- const { data = null, timestamp = null } = storageData ? JSON.parse(storageData) : {};
4938
- return data && Date.now() - timestamp < STORAGE_DEFAULT_TTL ? data : undefined;
4939
- }
4940
-
4941
- const REGION_URL = '/api/v1/region';
4942
- function useLocation(defaultLocation = 'Москва') {
4943
- const currentLocation = getLocalStorageLocation();
4944
- const [location, setLocation] = useState(currentLocation?.region ?? { name: defaultLocation });
4945
- const { data } = useCachedAsyncData(REGION_URL, fetchJSONUnsafe);
4946
- useEffect(() => {
4947
- setLocation(currentLocation?.region && currentLocation?.manual
4948
- ? currentLocation.region
4949
- : data || { name: defaultLocation });
4950
- }, [data]);
4951
- const onChangeLocation = useCallback((region) => {
4952
- globalThis.localStorage?.setItem('location', JSON.stringify({ manual: true, region }));
4953
- setLocation(region);
4954
- }, []);
4955
- return [location, onChangeLocation];
4956
- }
4957
- const getLocalStorageLocation = () => {
4958
- const localStorageLocation = globalThis.localStorage?.getItem('location');
4959
- try {
4960
- return localStorageLocation ? JSON.parse(localStorageLocation) : null;
4961
- }
4962
- catch (_) {
4963
- return null;
4964
- }
4965
- };
4966
-
4967
4952
  const debounce = (fn, delay = 600) => {
4968
4953
  let timerId;
4969
4954
  const debouncedCallback = (...args) => {
@@ -5022,7 +5007,7 @@
5022
5007
  const COOKIE_DIALOG_ID = 'cookie';
5023
5008
  const DIALOG_INITIAL_DELAY = 3 * 1000;
5024
5009
  const CookiePopup = JSX(({ termLink, personalDataPolicyLink }) => {
5025
- const { isOpened, open, close } = useDialogProps(COOKIE_DIALOG_ID);
5010
+ const [opened, { setTrue: open, setFalse: close }] = useBool();
5026
5011
  useDebouncedEffect(() => {
5027
5012
  if (!globalThis.localStorage?.getItem(COOKIE_DIALOG_ID)) {
5028
5013
  open();
@@ -5031,10 +5016,71 @@
5031
5016
  const handleClose = useCallback(() => {
5032
5017
  globalThis.localStorage?.setItem(COOKIE_DIALOG_ID, 'true');
5033
5018
  close();
5019
+ }, []);
5020
+ return opened ? (jsx("div", { className: "container fixed left-0 right-0 bottom-0 z-50", children: jsxs("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-[0_4px_25px_rgba(0,0,0,0.07)]", children: [jsx("div", { className: "sm:flex-1", children: jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-primary-text", children: ["\u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442", jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(termLink?.href), ...termLink, children: "cookie" }), "(\u0444\u0430\u0439\u043B\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u043E \u043F\u0440\u043E\u0448\u043B\u044B\u0445 \u043F\u043E\u0441\u0435\u0449\u0435\u043D\u0438\u044F\u0445 \u0441\u0430\u0439\u0442\u0430) \u0434\u043B\u044F \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0438 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 cookie \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0432\u043E\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(personalDataPolicyLink?.href), ...personalDataPolicyLink, children: "\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u0412\u0430\u0448\u0438\u0445 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" }), "\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u043E\u0442 27.07.2006 \u2116 152-\u04243 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB."] }) }), jsx("div", { className: "ml-s sm:ml-0 w-24 flex justify-end", children: jsx(CloseButton, { className: "bg-main-gray rounded-md", onClose: handleClose }) })] }) })) : null;
5021
+ });
5022
+ const linkWrapperStyle = (href) => style('inline mx-1', href ? 'text-green-dark' : '');
5023
+
5024
+ function useList(initialList = []) {
5025
+ const [list, setList] = useState(initialList);
5026
+ const push = useCallback((item) => setList((_) => [..._, item]), []);
5027
+ const pop = useCallback(() => setList((_) => _.slice(0, -1)), []);
5028
+ const remove = useCallback((item) => setList((_) => _.filter((currentItem) => currentItem !== item)), []);
5029
+ const clear = useCallback(() => setList([]), []);
5030
+ return [list, { setList, push, pop, remove, clear }];
5031
+ }
5032
+
5033
+ const DialogManager = JSX(() => {
5034
+ const [dialogs, { push, pop, clear }] = useList();
5035
+ const closeAll = useCallback(() => {
5036
+ for (const _ of dialogs) {
5037
+ _.onClose && _.onClose();
5038
+ }
5039
+ clear();
5040
+ }, [dialogs]);
5041
+ const close = useCallback(() => {
5042
+ const _ = dialogs[dialogs.length - 1];
5043
+ _?.onClose && _.onClose();
5044
+ pop();
5045
+ }, [dialogs]);
5046
+ useEffect(() => defaultEventBus.subscribe('dialog', (action) => {
5047
+ switch (action.type) {
5048
+ case 'open':
5049
+ push(action);
5050
+ break;
5051
+ case 'close':
5052
+ if (action.all) {
5053
+ closeAll();
5054
+ }
5055
+ else {
5056
+ close();
5057
+ }
5058
+ break;
5059
+ default:
5060
+ assertUnreachable(action);
5061
+ }
5062
+ }), [closeAll, close]);
5063
+ useEffect(() => {
5064
+ const handleEscape = ({ key }) => {
5065
+ if (key === 'Escape') {
5066
+ close();
5067
+ }
5068
+ };
5069
+ globalThis.document?.addEventListener('keydown', handleEscape);
5070
+ return () => {
5071
+ globalThis.document?.removeEventListener('keydown', handleEscape);
5072
+ };
5034
5073
  }, [close]);
5035
- return isOpened ? (jsx("div", { className: "container z-40 fixed bottom-0 left-0 right-0 pointer-events-none", children: jsxs("div", { className: "bg-white m-5 p-5 sm:m-6 sm:p-6 rounded-md flex sm:items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]", children: [jsx("div", { className: "sm:flex-1", children: jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-primary-text", children: ["\u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442", jsx(LinkWrapper, { isRemote: true, className: style(getStyleLinkWrapper(termLink?.href)), ...termLink, children: "cookie" }), "(\u0444\u0430\u0439\u043B\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u043E \u043F\u0440\u043E\u0448\u043B\u044B\u0445 \u043F\u043E\u0441\u0435\u0449\u0435\u043D\u0438\u044F\u0445 \u0441\u0430\u0439\u0442\u0430) \u0434\u043B\u044F \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0438 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 cookie \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0432\u043E\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", jsx(LinkWrapper, { isRemote: true, className: style(getStyleLinkWrapper(personalDataPolicyLink?.href)), ...personalDataPolicyLink, children: "\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u0412\u0430\u0448\u0438\u0445 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" }), "\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u043E\u0442 27.07.2006 \u2116 152-\u04243 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB."] }) }), jsx("div", { className: "ml-3 sm:ml-0 w-24 flex justify-end", children: jsx(CloseButton, { className: "bg-main-gray rounded-md", onClick: handleClose }) })] }) })) : null;
5074
+ useEffect(() => {
5075
+ if (dialogs.length) {
5076
+ globalThis.document?.body.classList.add('no-scrollbar');
5077
+ }
5078
+ else {
5079
+ globalThis.document?.body.classList.remove('no-scrollbar');
5080
+ }
5081
+ }, [dialogs]);
5082
+ return dialogs.length ? (jsx("div", { className: "fixed inset-0 z-50", role: "dialog", children: dialogs.map(({ dialog, id }, i) => (jsx("div", { className: style('absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar', i === dialogs.length - 1 ? '' : 'hidden'), children: dialog }, String(id || i)))) })) : null;
5036
5083
  });
5037
- const getStyleLinkWrapper = (href) => ['inline mx-1', href ? 'text-green-dark' : ''];
5038
5084
 
5039
5085
  const api = LikeAPI();
5040
5086
  function useLikeService(pagePath) {
@@ -5086,23 +5132,8 @@
5086
5132
  blockDecorator,
5087
5133
  parent: data,
5088
5134
  };
5089
- const sitemap = useSWRResource(projectSettings.SITEMAP || 'sitemap', data?.fallback);
5090
- const [location, onChangeLocation] = useLocation(sitemap?.defaultLocation);
5091
5135
  useBlockRouterProvider();
5092
- const [isSomeDialogOpened, { setTrue: setSomeDialogOpened, setFalse: resetSomeDialogOpened }] = useBool();
5093
- useDialogHandlers({
5094
- onOpen: setSomeDialogOpened,
5095
- onClose: resetSomeDialogOpened,
5096
- });
5097
- return (jsxs("section", { className: style('relative', pageStyle, className, isSomeDialogOpened ? 'overflow-hidden h-screen' : ''), "data-theme": colorPalette, children: [slots?.header ? (jsx("div", { className: "mb-5 shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, {
5098
- ...options,
5099
- slotName: 'header',
5100
- extraProps: { sitemap, location },
5101
- }) })) : null, jsxs("div", { className: "container grid grid-cols-12 gap-1", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, {
5102
- ...options,
5103
- slotName: 'footer',
5104
- extraProps: { sitemap, location },
5105
- })] }), likeControl ? renderLikeControl() : null, jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } }), jsx(SearchDialog, { topItems: sitemap?.topItems }), jsx(LocationDialog, { currentLocation: location, foreignOffices: sitemap?.foreignOffices, onChangeLocation: onChangeLocation })] }));
5136
+ return (jsxs("div", { children: [jsxs("section", { className: style('relative @container', pageStyle, className), "data-theme": colorPalette, children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-5 shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container @lg:grid @lg:grid-cols-12 @lg:gap-1", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(DialogManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
5106
5137
  });
5107
5138
  ContentPage.childrenTypes = [];
5108
5139
  ContentPage.slots = () => ['header', 'footer'];
@@ -5110,7 +5141,7 @@
5110
5141
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5111
5142
  }
5112
5143
 
5113
- const packageVersion = "0.12.12";
5144
+ const packageVersion = "0.12.14";
5114
5145
 
5115
5146
  exports.Blocks = Blocks;
5116
5147
  exports.ContentPage = ContentPage;