@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
@@ -505,16 +505,17 @@
505
505
  return await response.json();
506
506
  }
507
507
 
508
- const REGIONS_URL$1 = '/api/v1/regions';
508
+ const REGIONS_URL = '/api/v1/regions';
509
509
  const EMPTY_VALUE$3 = [];
510
510
  function useGetRegions() {
511
- const { data } = useAsyncData(REGIONS_URL$1, fetchJSONUnsafe);
511
+ const { data } = useAsyncData(REGIONS_URL, fetchJSONUnsafe);
512
512
  return data || EMPTY_VALUE$3;
513
513
  }
514
514
 
515
- const useDialog = (id = '') => ({
516
- open: (message) => defaultEventBus.fire('dialog', { type: 'open', id, message }),
515
+ const useDialogManager = () => ({
516
+ open: (dialog, options = {}) => defaultEventBus.fire('dialog', { type: 'open', dialog, ...options }),
517
517
  close: () => defaultEventBus.fire('dialog', { type: 'close' }),
518
+ closeAll: () => defaultEventBus.fire('dialog', { type: 'close', all: true }),
518
519
  });
519
520
 
520
521
  const dirname = (path) => path?.split('/').slice(0, -1).join('/');
@@ -576,7 +577,7 @@
576
577
  function useLink(params = {}) {
577
578
  const { isRemote, basePath } = params;
578
579
  const router = useRouter();
579
- const { close } = useDialog();
580
+ const { closeAll } = useDialogManager();
580
581
  return (props) => ({
581
582
  ...props,
582
583
  href: isRemote && !basePath ? props.href : adjustHref(router)(props.href, basePath),
@@ -590,7 +591,7 @@
590
591
  // Default routing
591
592
  return;
592
593
  }
593
- close();
594
+ closeAll();
594
595
  // Client routing
595
596
  ev?.preventDefault();
596
597
  router.push(href);
@@ -869,7 +870,7 @@
869
870
 
870
871
  const renderBusinessCardDataOrganization = (field) => (jsxs("div", { className: "sm:flex sm:justify-between sm:gap-5", children: [jsxs("div", { className: "sm:w-1/2", children: [jsx(InputControl, { className: "shrink-0 w-full mb-3", label: "\u041A\u043E\u043D\u0442\u0430\u043A\u0442\u043D\u043E\u0435 \u043B\u0438\u0446\u043E", ...withValidator(field('name'), nameValidator) }), jsx(InputControl, { className: "shrink-0 w-full mb-3", label: "\u0418\u041D\u041D", ...withValidator(field('inn'), innValidator) })] }), jsxs("div", { className: "sm:w-1/2", children: [jsx(PhoneInputControl, { className: "shrink-0 w-full mb-3", label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...withValidator(field('phone'), phoneValidator) }), jsx(InputControl, { className: "shrink-0 w-full mb-3", label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...withValidator(field('mail'), defaultValidator) })] })] }));
871
872
 
872
- const renderRegion$1 = ({ regions, field }) => (jsx("div", { className: "w-full mb-3 sm:mb-5", children: jsx(SelectControl, { label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) }));
873
+ const renderRegion = ({ regions, field }) => (jsx("div", { className: "w-full mb-3 sm:mb-5", children: jsx(SelectControl, { label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", options: regions.map(({ code = '', name = '' }) => ({ key: code, text: name })), ...withValidator(field('region'), defaultValidator) }) }));
873
874
 
874
875
  const initialFormState$3 = {
875
876
  name: '',
@@ -900,7 +901,7 @@
900
901
  }, [onSubmit]);
901
902
  const [, { field, ...formProps }] = useForm(initialFormState$3, handleSubmit);
902
903
  const regions = useGetRegions();
903
- return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, children: [renderRegion$1({ regions, field }), renderBusinessCardDataOrganization(field), renderSubmitButton(button, 'mb-4'), jsx(Footnote, { link: link })] }));
904
+ return (jsxs("form", { className: "container", onSubmit: formProps.onSubmit, children: [renderRegion({ regions, field }), renderBusinessCardDataOrganization(field), renderSubmitButton(button, 'mb-4'), jsx(Footnote, { link: link })] }));
904
905
  });
905
906
 
906
907
  const BRANCHES_URL = '/api/v1/branches';
@@ -1054,6 +1055,24 @@
1054
1055
  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)] })] }));
1055
1056
  });
1056
1057
 
1058
+ const EMPTY_VALUE$1 = {};
1059
+ function useSWRResource(filename, fallback = EMPTY_VALUE$1) {
1060
+ const { data } = useAsyncData(filename ? `/wcms-resources/${filename}.json` : null, fetchJSONUnsafe, { fallback });
1061
+ return data || EMPTY_VALUE$1;
1062
+ }
1063
+
1064
+ const ApplicationFormGrantSupport = JSX((props) => {
1065
+ const { button, sourceBookDir } = props;
1066
+ const { regions } = useSWRResource(sourceBookDir || 'regions-grant-support');
1067
+ const [region, setRegion] = useState({ key: '' });
1068
+ const buttonStyle = getRegularButtonClasses({
1069
+ className: 'text-white',
1070
+ version: button?.version,
1071
+ });
1072
+ const regionHref = regions?.find((_) => _.name === region.key)?.href;
1073
+ 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] }));
1074
+ });
1075
+
1057
1076
  const sourcesComparator = (a, b) => a?.media && b?.media ? a.media - b.media : 0;
1058
1077
  const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', pathPrefix }) => {
1059
1078
  const router = useRouter();
@@ -1148,30 +1167,45 @@
1148
1167
  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()] }));
1149
1168
  });
1150
1169
 
1170
+ const EmbeddableForms = {
1171
+ ApplicationFormBusinessCard,
1172
+ ApplicationFormWed,
1173
+ ApplicationFormDeposit,
1174
+ ApplicationFormCredit,
1175
+ ApplicationFormAcquiring,
1176
+ ApplicationFormGrantSupport,
1177
+ };
1178
+
1151
1179
  const ResponseNotification = JSX(({ responseType }) => {
1152
1180
  const responseOK = responseType === 'OK';
1153
1181
  const backgroundColor = responseOK ? 'bg-ok' : 'bg-fail';
1154
1182
  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 ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее' })] })] }));
1155
1183
  });
1156
1184
 
1157
- const COMPONENTS_MAP = {
1158
- credit: (props) => jsx(ApplicationFormCredit, { ...props }),
1159
- acquiring: (props) => jsx(ApplicationFormAcquiring, { ...props }),
1160
- 'business-card': (props) => jsx(ApplicationFormBusinessCard, { ...props }),
1161
- deposit: (props) => jsx(ApplicationFormDeposit, { ...props }),
1162
- wed: (props) => jsx(ApplicationFormWed, { ...props }),
1163
- };
1164
1185
  const API = CorporateLeadAPI();
1165
1186
  const ApplicationForm = JSX((props) => {
1166
- const { className, title, typeForm = 'credit', button, link, ...rest } = props;
1187
+ const { className, formBlock, ...rest } = props;
1188
+ // const type = formBlock?.formType;
1189
+ // if (!type || !(type in EmbeddableForms)) {
1190
+ // return null;
1191
+ // }
1192
+ // const EmbeddedForm = EmbeddableForms[type];
1167
1193
  const [responseType, setResponseType] = useState('');
1168
1194
  const handleSubmit = useCallback(async (data) => {
1169
1195
  const status = (await API.send(data)) ? 'OK' : 'Fail';
1170
1196
  setResponseType(status);
1171
1197
  return status;
1172
1198
  }, []);
1173
- 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] }) }));
1199
+ 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] }) }));
1174
1200
  });
1201
+ const renderEmbeddedForm = (formBlock, handleSubmit) => {
1202
+ const type = formBlock?.formType;
1203
+ if (!type || !(type in EmbeddableForms)) {
1204
+ return null;
1205
+ }
1206
+ const EmbeddedForm = EmbeddableForms[type];
1207
+ return jsx(EmbeddedForm, { ...formBlock, onSubmit: handleSubmit });
1208
+ };
1175
1209
 
1176
1210
  const iconBgStyles = {
1177
1211
  '': 'bg-main-divider group-data-secondary:bg-white/30',
@@ -1190,7 +1224,7 @@
1190
1224
  const defaultIconSize = 56;
1191
1225
 
1192
1226
  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] })));
1193
- 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)));
1227
+ 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)));
1194
1228
  const renderDescription$3 = (description) => {
1195
1229
  const benefitType = description?.benefitType || null;
1196
1230
  return description && benefitType ? (jsx("div", { className: "mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80", children: benefitType === 'list'
@@ -1286,7 +1320,7 @@
1286
1320
  return (jsx("div", { className: `inline-block snap-always box-border ${className}`, style: style, "aria-current": Boolean(idx === activeIndex), ref: ref, children: children }));
1287
1321
  });
1288
1322
 
1289
- const childStyleMap = ['min-w-full', 'min-w-1/2', 'min-w-1/3', 'min-w-1/4'];
1323
+ const childStyleMap = ['min-w-full', '@lg:min-w-[50%]', '@lg:min-w-[33.3%]', '@lg:min-w-[25%]'];
1290
1324
  const SwipeListContainer = JSX(({ className = '', containerRef, activeIndex, visibleItemCount = 0, gap = 0, padding = 0, listType = 'horizontal-list', snapAlign = 'snap-center', minHeight, children, onVisibleItemsChange, onVisibleIndicesChange, }) => {
1291
1325
  const observerOptions = {
1292
1326
  sensitivity: 1,
@@ -1348,7 +1382,6 @@
1348
1382
 
1349
1383
  const defaultDiscriminator = (_) => _;
1350
1384
  const maxBy = (discriminator = defaultDiscriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
1351
- const max = maxBy();
1352
1385
 
1353
1386
  const minBy = (discriminator = defaultDiscriminator) => maxBy((_) => -discriminator(_));
1354
1387
 
@@ -1586,9 +1619,9 @@
1586
1619
  onScrollRight();
1587
1620
  }
1588
1621
  }, [scrollRight, onScrollRight, hasEdgeBlocks, canScrollLeft, activeIndex, itemCount]);
1589
- 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] }));
1622
+ 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] }));
1590
1623
  });
1591
- 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] }));
1624
+ 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] }));
1592
1625
 
1593
1626
  const ITEMS_GAP = 16;
1594
1627
 
@@ -1628,7 +1661,7 @@
1628
1661
  'CarouselEventCard',
1629
1662
  ];
1630
1663
 
1631
- const CarouselBankHistoryCard = JSX(({ title, description, className }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", children: jsx(Headline, { headlineVersion: "S", title: title, description: description, align: "text-left", className: "text-primary-text", isPadding: false }) })));
1664
+ const CarouselBankHistoryCard = JSX(({ title, description, className }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", children: jsx(Headline, { headlineVersion: "XS", title: title, description: description, align: "text-left", className: "text-primary-text", isPadding: false }) })));
1632
1665
 
1633
1666
  const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
1634
1667
  const link = useLink({ isRemote });
@@ -1664,8 +1697,9 @@
1664
1697
 
1665
1698
  const buttonSizeStyles = {
1666
1699
  default: 'w-24 h-14',
1667
- small: 'w-12 h-12',
1700
+ stretched: 'flex-1 h-14',
1668
1701
  };
1702
+
1669
1703
  const buttonStylesWithText = (text, buttonSize) => text
1670
1704
  ? ''
1671
1705
  : style('group/media flex items-center justify-center box-border', buttonSizeStyles[buttonSize]);
@@ -1713,7 +1747,7 @@
1713
1747
  });
1714
1748
  const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
1715
1749
 
1716
- const SocialMedia = JSX(({ className = '', media }) => (jsx("div", { className: `flex gap-2 items-start justify-start ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { ..._ }, String(index)))) })));
1750
+ 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)))) })] })));
1717
1751
 
1718
1752
  const CarouselRecommendationCard = JSX(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', ...rest }) => {
1719
1753
  return (jsx(BlockWrapper, { className: style('relative group-data-gray:bg-main-divider/50', className), defaultPadding: "p-6xl", ...rest, children: jsxs(LinkWrapper, { href: href, target: target, children: [jsx(Headline, { className: "mb-xs", title: title, description: description, headlineVersion: "S", isPadding: false, align: align }), items.length ? (jsx(List, { className: "flex flex-col gap-2", items: items, listItemSize: "S" })) : null, renderIcon$1(icon), socialMedia.length ? jsx(SocialMedia, { className: "mt-5", media: socialMedia }) : null] }) }));
@@ -1773,8 +1807,8 @@
1773
1807
  black: 'bg-black',
1774
1808
  white: 'bg-white',
1775
1809
  };
1776
- 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' })] })));
1777
- 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)));
1810
+ 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' })] })));
1811
+ 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)));
1778
1812
 
1779
1813
  const alignTextStyle = 'text-left';
1780
1814
 
@@ -1864,7 +1898,7 @@
1864
1898
  };
1865
1899
 
1866
1900
  const icon = { icon: 'GpsIcon' };
1867
- 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" })] })] })));
1901
+ 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" })] })] })));
1868
1902
 
1869
1903
  const roundTo = (value, precision = 2) => {
1870
1904
  const factor = 10 ** precision;
@@ -1968,7 +2002,7 @@
1968
2002
  };
1969
2003
 
1970
2004
  const EXCHANGE_RATES_URL = '/api/v1/exchangerates';
1971
- const REGION_URL$1 = '/api/v1/region';
2005
+ const REGION_URL = '/api/v1/region';
1972
2006
  function useFetchExchangeRateData() {
1973
2007
  const { data } = useAsyncData(EXCHANGE_RATES_URL, fetchData);
1974
2008
  return data || {};
@@ -1981,7 +2015,7 @@
1981
2015
  };
1982
2016
  const fetchRegion = async () => {
1983
2017
  try {
1984
- return await fetchJSONUnsafe(REGION_URL$1, { method: 'GET' });
2018
+ return await fetchJSONUnsafe(REGION_URL, { method: 'GET' });
1985
2019
  }
1986
2020
  catch (error) {
1987
2021
  console.log(error);
@@ -2007,26 +2041,20 @@
2007
2041
  currencyRatesBuy.unshift({ currency: { currency: Currency.RUB } });
2008
2042
  const currencyRatesSell = currencyRates.filter((_) => _.saleExchangeRate);
2009
2043
  currencyRatesSell.push({ currency: { currency: Currency.RUB } });
2010
- 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] }) }) }));
2044
+ 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] }) }) }));
2011
2045
  });
2012
2046
  const getCurrencyRates = (currencies) => {
2013
2047
  return currencies?.filter((_) => _?.currency?.id === 1 || _?.currency?.id === 2) || [];
2014
2048
  };
2015
2049
 
2016
- const EMPTY_VALUE$1 = {};
2017
- function useSWRResource(filename, fallback = {}) {
2018
- const { data } = useAsyncData(`/wcms-resources/${filename}.json`, fetchJSONUnsafe, {
2019
- fallback,
2020
- });
2021
- return data || EMPTY_VALUE$1;
2022
- }
2050
+ const useSitemap = (fallback) => useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
2023
2051
 
2024
2052
  const linkListStyles = '';
2025
2053
 
2026
- const LinkList = JSX(({ className = '', items }) => items?.length ? (jsx("ul", { className: style('flex flex-col p-0 gap-m sm:gap-xl', linkListStyles, className), children: items.map(renderLinkListItem) })) : null);
2054
+ const LinkList = JSX(({ className = '', items }) => items?.length ? (jsx("ul", { className: style('flex flex-col', linkListStyles, className), children: items.map(renderLinkListItem) })) : null);
2027
2055
  const renderLinkListItem = (item, i) => {
2028
2056
  const { text, ...linkProps } = item;
2029
- return (jsx("li", { className: "list-none", children: jsx("a", { className: "hover:text-primary-main sm:font-light", role: "link", ...linkProps, children: text ? text : null }) }, `list_item_${String(i)}`));
2057
+ return (jsx("li", { className: "list-none my-xs", children: jsx("a", { className: "hover:text-primary-main font-light", role: "link", ...linkProps, children: text ? text : null }) }, `list_item_${String(i)}`));
2030
2058
  };
2031
2059
 
2032
2060
  const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = '', disabled = false, onClick }) => {
@@ -2075,12 +2103,12 @@
2075
2103
  })) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
2076
2104
  };
2077
2105
  const renderPrimaryFoldButton = ({ label, labelIconBgVersion, icon, onToggle, labelIcon, }) => {
2078
- 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(labelIcon, labelIconBgVersion), label ? (jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), icon ? jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null] }));
2106
+ 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(labelIcon, labelIconBgVersion), label ? (jsx(Text, { size: "text-h6", font: "font-normal", children: label })) : null] }), icon ? jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null] }));
2079
2107
  };
2080
2108
 
2081
- 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] })));
2082
- 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)));
2083
- 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)));
2109
+ 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" })] })));
2110
+ 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)));
2111
+ 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)));
2084
2112
  const renderText = (type, text = '') => {
2085
2113
  switch (type) {
2086
2114
  case 'tel':
@@ -2101,7 +2129,7 @@
2101
2129
  return (jsx("a", { className: style(horizontalNavigationLinkStyles, className), href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
2102
2130
  });
2103
2131
 
2104
- const HorizontalNavigation = JSX(({ title, links, className = '' }) => (jsxs("div", { className: className, children: [jsx(Text, { size: "text-h6", children: title }), links?.length ? (jsx("div", { className: "flex flex-col gap-6 mt-7", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, ..._ }, String(i)))) })) : null] })));
2132
+ const HorizontalNavigation = JSX(({ title, links, className = '' }) => (jsxs("div", { className: className, children: [jsx(Text, { size: "text-l", font: "font-normal", children: title }), links?.length ? (jsx("div", { className: "flex flex-col gap-lg mt-lg", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { className: "text-l font-light", index: i, ..._ }, String(i)))) })) : null] })));
2105
2133
 
2106
2134
  const TextInformationLink = JSX(({ className = '', index, ...rest }) => {
2107
2135
  const link = useLink({ isRemote: true });
@@ -2109,15 +2137,17 @@
2109
2137
  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}` }));
2110
2138
  });
2111
2139
 
2112
- 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] })));
2140
+ 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] })));
2113
2141
 
2114
- const Footer = JSX(({ className, sitemap, ...rest }) => {
2115
- const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle } = useSWRResource(projectSettings.FOOTER || 'footer', rest.options?.page?.fallback);
2116
- return (jsxs(BlockWrapper, { tag: "footer", className: className, defaultPadding: "px-4 py-6", ...rest, children: [jsx("div", { className: "mb-4 pb-5 border-b border-main-divider", children: sitemap?.topItems?.map((item, i) => (jsx(RollupItem, { label: item?.text, labelIcon: item?.icon, children: jsx(LinkList, { items: item.items, className: "my-3" }) }, String(i)))) }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), jsx(SocialMedia, { className: "mb-4", media: socialMedia }), mobileApps?.map(renderButton), jsx(HorizontalNavigation, { className: "pt-m pb-2xl border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, {})] }));
2142
+ const Footer = JSX(({ className, ...rest }) => {
2143
+ const fallback = rest.options?.page?.fallback;
2144
+ const { topItems } = useSitemap(fallback);
2145
+ const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = useSWRResource(projectSettings.FOOTER || 'footer', fallback);
2146
+ return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsx("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems?.map((item, i) => (jsx(RollupItem, { label: item?.text, labelIcon: item?.icon, children: jsx(LinkList, { items: item.items }) }, String(i)))) }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), jsxs("div", { className: "mt-xl", children: [jsx(SocialMedia, { className: "mb-xl", media: socialMedia, buttonSize: "stretched", children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), jsx("div", { className: "mt-xs", children: mobileApps?.map(renderButton) })] }), jsx(HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
2117
2147
  });
2118
2148
  const renderButton = ({ href = '/' }, i) => {
2119
2149
  const { label } = findIconByHref(href);
2120
- return (jsx(Button, { className: "w-full mb-4", text: label, version: "secondary", href: href, target: "_blank" }, String(i)));
2150
+ return (jsx(Button, { className: "w-full mb-lg", text: label, version: "secondary", href: href, target: "_blank" }, String(i)));
2121
2151
  };
2122
2152
 
2123
2153
  const ICON_VERSION_MAP = {
@@ -2167,8 +2197,8 @@
2167
2197
  'bg-white': 'primary',
2168
2198
  transparent: 'transparent',
2169
2199
  };
2170
- const Header = JSX(({ bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], sitemap, ...rest }) => {
2171
- const { logo, internetBankUrl } = sitemap || {};
2200
+ const Header = JSX(({ bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
2201
+ const { logo, internetBankUrl } = useSitemap(rest.options?.page?.fallback);
2172
2202
  return (jsx(BlockWrapper, { tag: "header", defaultPadding: "", version: version, ...rest, children: jsx("div", { className: "container px-4 py-2xs box-border", children: jsx(HeaderTop, { bgColor: bgColor, logo: logo, internetBankUrl: internetBankUrl, version: version, ...rest }) }) }));
2173
2203
  });
2174
2204
 
@@ -2250,7 +2280,7 @@
2250
2280
  right: 'text-right',
2251
2281
  };
2252
2282
 
2253
- 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;
2283
+ const renderDescription$1 = (description) => description ? (jsx("div", { className: "mb-lg pt-3xs", children: jsx(Text, { size: "text-xl", "font-weight": "light", children: description }) })) : null;
2254
2284
 
2255
2285
  const renderList$1 = (items) => {
2256
2286
  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" }));
@@ -3002,52 +3032,6 @@
3002
3032
  BenefitsBlock,
3003
3033
  };
3004
3034
 
3005
- const STORAGE_DEFAULT_TTL = 86400000; // 24 * 60 * 60 * 1000
3006
- function useCachedAsyncData(key, fetcher, storage = globalThis?.localStorage) {
3007
- const cachedFetcher = useCallback(async (...args) => {
3008
- const storageKey = `async:${key}`;
3009
- const storageData = storage.getItem(storageKey);
3010
- const cachedData = getParsedData(storageData);
3011
- if (cachedData) {
3012
- return cachedData;
3013
- }
3014
- const data = await fetcher(...args);
3015
- storage.setItem(storageKey, JSON.stringify({ data, timestamp: Date.now() }));
3016
- return data;
3017
- }, [key, fetcher]);
3018
- return useAsyncData(key, cachedFetcher);
3019
- }
3020
- function getParsedData(storageData) {
3021
- const { data = null, timestamp = null } = storageData ? JSON.parse(storageData) : {};
3022
- return data && Date.now() - timestamp < STORAGE_DEFAULT_TTL ? data : undefined;
3023
- }
3024
-
3025
- const REGION_URL = '/api/v1/region';
3026
- function useLocation(defaultLocation = 'Москва') {
3027
- const currentLocation = getLocalStorageLocation();
3028
- const [location, setLocation] = useState(currentLocation?.region ?? { name: defaultLocation });
3029
- const { data } = useCachedAsyncData(REGION_URL, fetchJSONUnsafe);
3030
- useEffect(() => {
3031
- setLocation(currentLocation?.region && currentLocation?.manual
3032
- ? currentLocation.region
3033
- : data || { name: defaultLocation });
3034
- }, [data]);
3035
- const onChangeLocation = useCallback((region) => {
3036
- globalThis.localStorage?.setItem('location', JSON.stringify({ manual: true, region }));
3037
- setLocation(region);
3038
- }, []);
3039
- return [location, onChangeLocation];
3040
- }
3041
- const getLocalStorageLocation = () => {
3042
- const localStorageLocation = globalThis.localStorage?.getItem('location');
3043
- try {
3044
- return localStorageLocation ? JSON.parse(localStorageLocation) : null;
3045
- }
3046
- catch (_) {
3047
- return null;
3048
- }
3049
- };
3050
-
3051
3035
  const debounce = (fn, delay = 600) => {
3052
3036
  let timerId;
3053
3037
  const debouncedCallback = (...args) => {
@@ -3110,59 +3094,12 @@
3110
3094
  };
3111
3095
  }, deps);
3112
3096
 
3113
- 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" }) })));
3114
-
3115
- function useDialogHandlers({ onOpen, onClose } = {}) {
3116
- useEffect(() => defaultEventBus.subscribe('dialog', (action) => {
3117
- switch (action.type) {
3118
- case 'open':
3119
- onOpen && onOpen(action);
3120
- break;
3121
- case 'close':
3122
- onClose && onClose();
3123
- break;
3124
- default:
3125
- assertUnreachable(action);
3126
- }
3127
- }), [onOpen, onClose]);
3128
- }
3129
-
3130
- function useDialogProps(id, isOpenedOnInit = false) {
3131
- const [isOpened, { setTrue: open, setFalse: close }] = useBool(isOpenedOnInit);
3132
- const [params, setParams] = useState({ id });
3133
- const wasOpened = useRef(isOpened);
3134
- wasOpened.current ||= isOpened;
3135
- const handleOpen = useCallback((_) => {
3136
- if (_.id === id) {
3137
- setParams(_);
3138
- open();
3139
- }
3140
- else {
3141
- close();
3142
- }
3143
- }, [id]);
3144
- const handleClose = useCallback(() => {
3145
- close();
3146
- defaultEventBus.fire('dialog', { type: 'close' });
3147
- }, []);
3148
- useDialogHandlers({
3149
- onOpen: handleOpen,
3150
- onClose: close,
3151
- });
3152
- return {
3153
- ...params,
3154
- isOpened,
3155
- wasOpened: wasOpened.current,
3156
- open,
3157
- close,
3158
- onClose: handleClose,
3159
- };
3160
- }
3097
+ 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" }) })));
3161
3098
 
3162
3099
  const COOKIE_DIALOG_ID = 'cookie';
3163
3100
  const DIALOG_INITIAL_DELAY = 3 * 1000;
3164
3101
  const CookiePopup = JSX(({ termLink, personalDataPolicyLink }) => {
3165
- const { isOpened, open, close } = useDialogProps(COOKIE_DIALOG_ID);
3102
+ const [opened, { setTrue: open, setFalse: close }] = useBool();
3166
3103
  useDebouncedEffect(() => {
3167
3104
  if (!globalThis.localStorage?.getItem(COOKIE_DIALOG_ID)) {
3168
3105
  open();
@@ -3171,274 +3108,72 @@
3171
3108
  const handleClose = useCallback(() => {
3172
3109
  globalThis.localStorage?.setItem(COOKIE_DIALOG_ID, 'true');
3173
3110
  close();
3174
- }, [close]);
3175
- 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;
3111
+ }, []);
3112
+ 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;
3176
3113
  });
3177
- const getStyleLinkWrapper = (href) => ['inline mx-1', href ? 'text-green-dark' : ''];
3114
+ const linkWrapperStyle = (href) => style('inline mx-1', href ? 'text-green-dark' : '');
3178
3115
 
3179
- const REGIONS_URL = '/api/v1/regions';
3180
- function useRegions() {
3181
- const { data } = useAsyncData(REGIONS_URL, fetchJSONUnsafe);
3182
- return data || [];
3116
+ function useList(initialList = []) {
3117
+ const [list, setList] = useState(initialList);
3118
+ const push = useCallback((item) => setList((_) => [..._, item]), []);
3119
+ const pop = useCallback(() => setList((_) => _.slice(0, -1)), []);
3120
+ const remove = useCallback((item) => setList((_) => _.filter((currentItem) => currentItem !== item)), []);
3121
+ const clear = useCallback(() => setList([]), []);
3122
+ return [list, { setList, push, pop, remove, clear }];
3183
3123
  }
3184
3124
 
3185
- const JARO_WINKLER_P = 0.1;
3186
- const JARO_WINKLER_MAX_L = 4;
3187
- const jaroWinklerDistance = (s1) => (s2) => {
3188
- if (s1 === s2) {
3189
- return 1;
3190
- }
3191
- if (!s1 || !s2) {
3192
- return 0;
3193
- }
3194
- const { m, s1Matches, s2Matches } = computeM(s1, s2);
3195
- if (m === 0) {
3196
- return 0;
3197
- }
3198
- const t = computeT(s1, s2, { s1Matches, s2Matches });
3199
- const jaroWeight = (m / s1.length + m / s2.length + (m - t / 2) / m) / 3;
3200
- const winklerWeight = jaroWeight > 0.7 ? computePrefixL(s1, s2) * JARO_WINKLER_P : 0;
3201
- return jaroWeight + winklerWeight * (1 - jaroWeight);
3202
- };
3203
- function computeM(s1, s2) {
3204
- const range = Math.max(0, Math.floor(Math.max(s1.length, s2.length) / 2) - 1);
3205
- const s1Matches = new Array(s1.length);
3206
- const s2Matches = new Array(s2.length);
3207
- let m = 0;
3208
- for (let i = 0; i < s1.length; i++) {
3209
- const low = Math.max(0, i - range);
3210
- const high = Math.min(i + range, s2.length - 1);
3211
- for (let j = low; j <= high; j++) {
3212
- if (s1Matches[i] || s2Matches[j] || s1[i] !== s2[j]) {
3213
- continue;
3214
- }
3215
- m++;
3216
- s1Matches[i] = true;
3217
- s2Matches[j] = true;
3218
- }
3219
- }
3220
- return { m, s1Matches, s2Matches };
3221
- }
3222
- function computeT(s1, s2, { s1Matches, s2Matches }) {
3223
- let t = 0;
3224
- for (let i = 0, k = 0; i < s1.length; i++) {
3225
- if (!s1Matches[i]) {
3226
- continue;
3227
- }
3228
- let j = k;
3229
- for (; j < s2.length; j++) {
3230
- if (s2Matches[j]) {
3231
- k = j + 1;
3125
+ const DialogManager = JSX(() => {
3126
+ const [dialogs, { push, pop, clear }] = useList();
3127
+ const closeAll = useCallback(() => {
3128
+ for (const _ of dialogs) {
3129
+ _.onClose && _.onClose();
3130
+ }
3131
+ clear();
3132
+ }, [dialogs]);
3133
+ const close = useCallback(() => {
3134
+ const _ = dialogs[dialogs.length - 1];
3135
+ _?.onClose && _.onClose();
3136
+ pop();
3137
+ }, [dialogs]);
3138
+ useEffect(() => defaultEventBus.subscribe('dialog', (action) => {
3139
+ switch (action.type) {
3140
+ case 'open':
3141
+ push(action);
3232
3142
  break;
3233
- }
3234
- }
3235
- if (s1[i] !== s2[j]) {
3236
- t++;
3143
+ case 'close':
3144
+ if (action.all) {
3145
+ closeAll();
3146
+ }
3147
+ else {
3148
+ close();
3149
+ }
3150
+ break;
3151
+ default:
3152
+ assertUnreachable(action);
3237
3153
  }
3238
- }
3239
- return t;
3240
- }
3241
- function computePrefixL(s1, s2) {
3242
- let prefixL = 0;
3243
- while (s1[prefixL] === s2[prefixL] && prefixL < JARO_WINKLER_MAX_L) {
3244
- prefixL++;
3245
- }
3246
- return prefixL;
3247
- }
3248
-
3249
- const groupBy = (list, keyGetter) => {
3250
- const result = new Map();
3251
- for (const item of list) {
3252
- const key = keyGetter(item);
3253
- const group = result.get(key) || [];
3254
- result.set(key, [...group, item]);
3255
- }
3256
- return result;
3257
- };
3258
-
3259
- const Dialog = JSX(({ className, isOpened, head, children, onClose }) => {
3154
+ }), [closeAll, close]);
3260
3155
  useEffect(() => {
3261
3156
  const handleEscape = ({ key }) => {
3262
3157
  if (key === 'Escape') {
3263
- onClose && onClose();
3158
+ close();
3264
3159
  }
3265
3160
  };
3266
3161
  globalThis.document?.addEventListener('keydown', handleEscape);
3267
3162
  return () => {
3268
3163
  globalThis.document?.removeEventListener('keydown', handleEscape);
3269
3164
  };
3270
- }, [onClose]);
3271
- 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;
3272
- });
3273
-
3274
- const SearchBar = JSX(({ className, searchTerm, onSearch }) => {
3275
- 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
3276
- 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" })] }));
3277
- });
3278
-
3279
- const SEARCH_TERM_MIN_LENGTH = 3;
3280
- const LOCATION_DIALOG_ID = 'location';
3281
- const LocationDialog = JSX(({ currentLocation, onChangeLocation, foreignOffices }) => {
3282
- const dialogProps = useDialogProps(LOCATION_DIALOG_ID);
3283
- const [query, setQuery] = useState('');
3284
- const regions = cleanUpRegions(useRegions()).sort((a, b) => a.name.localeCompare(b.name));
3285
- const regionsGroupByLetter = groupBy(regions, regionFirstLetter);
3286
- const handleChangeLocation = useCallback((region) => {
3287
- dialogProps.onClose && dialogProps.onClose();
3288
- onChangeLocation && onChangeLocation(region);
3289
- }, [dialogProps.onClose, onChangeLocation]);
3290
- 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
3291
- .filter(({ name }) => name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8)
3292
- .map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), jsx(ForeignOffices, { foreignOffices: foreignOffices })] }));
3293
- });
3294
- const regionFirstLetter = (region) => region.name?.charAt(0) || '';
3295
- const cleanUpRegions = (regions) => regions.map((region) => ({
3296
- ...region,
3297
- name: region.name?.replace(/республика|область|край'/gi, '').trim() || '',
3298
- }));
3299
- 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: () => {
3300
- onChangeLocation && onChangeLocation(currentLocation);
3301
- }, children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null);
3302
- 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));
3303
- const renderRegion = (onChangeLocation) => (region) => (jsx("div", { className: "mb-2xs", children: jsx("button", { className: "cursor-pointer hover:text-primary-hover", onClick: () => {
3304
- onChangeLocation && onChangeLocation(region);
3305
- }, children: region.name || '' }) }, region.id));
3306
- 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);
3307
- const ForeignOffice = JSX(({ icon, ...rest }) => {
3308
- const link = useLink();
3309
- const { text, target, href, onClick } = link(rest);
3310
- 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] }));
3311
- });
3312
-
3313
- const compareBy = (indexOf) => (a, b) => indexOf(a) - indexOf(b);
3314
- const desc = (cmp) => (a, b) => -cmp(a, b);
3315
-
3316
- function zip(firstCol, ...restCols) {
3317
- return firstCol.map((firstEl, rowIndex) => [firstEl, ...restCols.map((col) => col[rowIndex])]);
3318
- }
3319
-
3320
- const joinMaps = (aggregate, emptyVal) => (acc, map) => {
3321
- for (const [key, b] of map) {
3322
- acc.set(key, aggregate(acc.get(key) || emptyVal, b));
3323
- }
3324
- return acc;
3325
- };
3326
-
3327
- const MIN_TERM_LEN = 3;
3328
- const tokenize = (text) => text
3329
- .toLowerCase()
3330
- .split(/[^0-9a-zа-я-]+/)
3331
- .filter((token) => token.length >= MIN_TERM_LEN && !/[0-9a-z]/.test(token));
3332
-
3333
- const textRank = (queryTokens) => (text) => {
3334
- const textTokens = tokenize(text || '');
3335
- return textTokens.length
3336
- ? sum(queryTokens.map((qToken) => max(textTokens.map(jaroWinklerDistance(qToken)))))
3337
- : 0;
3338
- };
3339
-
3340
- const JW_THRESHOLD = 0.8;
3341
- const RANK_EPS = 0.001;
3342
- const search = (query) => (searchIndex) => {
3343
- const { corpus, dictionary } = searchIndex || {};
3344
- if (!query || !corpus?.length || !dictionary || !Object.keys(dictionary).length) {
3345
- return [];
3346
- }
3347
- const queryTokens = tokenize(query);
3348
- if (!queryTokens.length) {
3349
- return [];
3350
- }
3351
- const dictEntries = Object.entries(dictionary);
3352
- const pagesRanking = queryTokens
3353
- .map(computePagesRankingPerToken(dictEntries))
3354
- .reduce(joinMaps((a, b) => a + b, 0), new Map());
3355
- const relevantPages = [...pagesRanking.entries()]
3356
- .filter(([, pageRank]) => pageRank >= (JW_THRESHOLD - RANK_EPS) * queryTokens.length) // Multiplication of query tokens
3357
- .map(([pageIndex]) => corpus[pageIndex]);
3358
- return sortResultsByRank(queryTokens)(relevantPages);
3359
- };
3360
- const computePagesRankingPerToken = (dictEntries) => (qToken) => dictEntries
3361
- .map(([stem, pageIndices]) => [jaroWinklerDistance(qToken)(stem), pageIndices])
3362
- .filter(([stemRank]) => stemRank >= JW_THRESHOLD)
3363
- .map(([stemRank, pageIndices]) => fillMapWith(pageIndices, stemRank))
3364
- .reduce(joinMaps(Math.max, 0), new Map());
3365
- const sortResultsByRank = (queryTokens) => (results) => zip(results, results.map(({ title }) => title).map(textRank(queryTokens)))
3366
- .sort(desc(compareBy(([, pageTitleRank]) => pageTitleRank)))
3367
- .map(([corpusItem]) => corpusItem);
3368
- const fillMapWith = (keys, value) => new Map(keys.map((_) => [_, value]));
3369
-
3370
- const SEARCH_INDEX_FILENAME = 'search.index.json';
3371
- const DEFAULT_BASE_PATH = ['/'];
3372
- const useSearch = ({ basePathList = DEFAULT_BASE_PATH, initialQuery = '', wasOpened, }) => {
3373
- const [query, setQuery] = useState(initialQuery || '');
3165
+ }, [close]);
3374
3166
  useEffect(() => {
3375
- if (initialQuery !== undefined && initialQuery !== null) {
3376
- setQuery(initialQuery);
3167
+ if (dialogs.length) {
3168
+ globalThis.document?.body.classList.add('no-scrollbar');
3377
3169
  }
3378
- }, [initialQuery]);
3379
- const key = useMemo(() => basePathList.map((_) => (wasOpened ? _ : null)), // Load search index on very first search
3380
- [wasOpened, basePathList]);
3381
- const { data } = useAsyncData(key, fetchSearchIndex);
3382
- const [result, setResult] = useState(null);
3383
- useDebouncedEffect(() => {
3384
- if (data) {
3385
- setResult(data.map(search(query)));
3170
+ else {
3171
+ globalThis.document?.body.classList.remove('no-scrollbar');
3386
3172
  }
3387
- }, [data, query]);
3388
- return [result, { value: query, onChange: setQuery }];
3389
- };
3390
- const fetchSearchIndex = async (...basePathList) => (await Promise.allSettled(basePathList.map((basePath) => fetchJSON(joinPath(basePath, '/', SEARCH_INDEX_FILENAME))))).map((_) => (_.status === 'fulfilled' ? _.value : {}));
3391
-
3392
- const Sitemap = JSX(({ className, topItems }) => {
3393
- const link = useLink({ isRemote: true });
3394
- return (jsx("div", { className: style('flex items-start justify-between', className), children: topItems?.map(link).map(renderColumn) }));
3395
- });
3396
- const renderColumn = (menuItem, index) => {
3397
- const { text, items, href, target, onClick } = menuItem;
3398
- return (jsxs("div", { className: "flex flex-col gap-3.5 w-1/4", children: [jsx("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items?.map((_, i) => (jsx(ColumnItem, { ..._, basePath: appendSlash(href), index: i }, String(i))))] }, String(index)));
3399
- };
3400
- const ColumnItem = JSX(({ text, index, basePath, ...rest }) => {
3401
- const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
3402
- const link = useLink({ isRemote: isAnotherPortal, basePath });
3403
- const { href, target, onClick } = link(rest);
3404
- 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}` }));
3173
+ }, [dialogs]);
3174
+ 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;
3405
3175
  });
3406
3176
 
3407
- const SearchInput = JSX(({ className, value, autoFocus, onChange, onFocus }) => {
3408
- const handleChange = useCallback((ev) => {
3409
- onChange && onChange(ev.target?.value || '');
3410
- }, [onChange]);
3411
- 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 })] }));
3412
- });
3413
-
3414
- const SEARCH_DIALOG_ID = 'search';
3415
- const SearchDialog = JSX(({ topItems }) => {
3416
- const dialogProps = useDialogProps(SEARCH_DIALOG_ID);
3417
- const basePathList = useMemo(() => topItems?.map((_) => _.href || '/'), [topItems]);
3418
- const [searchResult, searchInputProps] = useSearch({
3419
- basePathList,
3420
- initialQuery: dialogProps.message,
3421
- wasOpened: dialogProps.wasOpened,
3422
- });
3423
- const searchItems = useMemo(() => combineTopItemsAndSearchResult(topItems)(searchResult), [topItems, searchResult]);
3424
- useEffect(() => printSearchItems(searchItems), [searchItems]); // Temp
3425
- return (jsx(Dialog, { ...dialogProps, head: jsx(SearchInput, { autoFocus: true, ...searchInputProps }), children: jsx(Sitemap, { topItems: searchItems }) }));
3426
- });
3427
- const combineTopItemsAndSearchResult = (topItems) => (searchResult) => topItems?.length && searchResult?.length
3428
- ? zip(topItems, searchResult).map(([_, portalSearchResult]) => ({
3429
- ..._,
3430
- items: portalSearchResult?.map(({ title, uri }) => ({ text: title, href: joinPath('/', uri) })),
3431
- }))
3432
- : [];
3433
- // Temp
3434
- function printSearchItems(topItems) {
3435
- for (const _ of topItems.filter(({ items }) => items?.length)) {
3436
- console.group(_.text);
3437
- console.table(_.items, ['text', 'href']);
3438
- console.groupEnd();
3439
- }
3440
- }
3441
-
3442
3177
  const api = LikeAPI();
3443
3178
  function useLikeService(pagePath) {
3444
3179
  const [likeCount, setLikeCount] = useState(0);
@@ -3489,23 +3224,8 @@
3489
3224
  blockDecorator,
3490
3225
  parent: data,
3491
3226
  };
3492
- const sitemap = useSWRResource(projectSettings.SITEMAP || 'sitemap', data?.fallback);
3493
- const [location, onChangeLocation] = useLocation(sitemap?.defaultLocation);
3494
3227
  useBlockRouterProvider();
3495
- const [isSomeDialogOpened, { setTrue: setSomeDialogOpened, setFalse: resetSomeDialogOpened }] = useBool();
3496
- useDialogHandlers({
3497
- onOpen: setSomeDialogOpened,
3498
- onClose: resetSomeDialogOpened,
3499
- });
3500
- 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, {
3501
- ...options,
3502
- slotName: 'header',
3503
- extraProps: { sitemap, location },
3504
- }) })) : null, jsxs("div", { className: "container grid grid-cols-12 gap-1", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, {
3505
- ...options,
3506
- slotName: 'footer',
3507
- extraProps: { sitemap, location },
3508
- })] }), 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 })] }));
3228
+ 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' } })] }));
3509
3229
  });
3510
3230
  ContentPage.childrenTypes = [];
3511
3231
  ContentPage.slots = () => ['header', 'footer'];
@@ -3515,7 +3235,7 @@
3515
3235
 
3516
3236
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
3517
3237
 
3518
- const packageVersion = "0.12.12";
3238
+ const packageVersion = "0.12.14";
3519
3239
 
3520
3240
  exports.Blocks = Blocks;
3521
3241
  exports.ContentPage = ContentPage;