@redneckz/wildless-cms-uni-blocks 0.14.162 → 0.14.164

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 (2242) hide show
  1. package/bin/migration-scripts/0.14.163.js +52 -0
  2. package/bundle/BlockRenderer/renderBlock.d.ts +1 -1
  3. package/bundle/BlockRenderer/renderChildren.d.ts +1 -1
  4. package/bundle/ProjectSettings.d.ts +2 -24
  5. package/bundle/UniBlock/UniBlock.d.ts +17 -0
  6. package/{dist/model/JSXBlock.d.ts → bundle/UniBlock/UniBlockProps.d.ts} +2 -14
  7. package/bundle/UniBlock/extractContent.d.ts +6 -0
  8. package/bundle/blocks.schema.json +1 -1
  9. package/bundle/bundle.umd.js +299 -404
  10. package/bundle/bundle.umd.min.js +1 -1
  11. package/bundle/components/AdTile/AdTile.d.ts +1 -1
  12. package/bundle/components/AdTile/AdTileContent.d.ts +1 -1
  13. package/bundle/components/ApplicationForm/ApplicationForm.d.ts +1 -1
  14. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  15. package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  16. package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
  17. package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
  18. package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +1 -1
  19. package/bundle/components/ButtonsBlock/ButtonsBlock.d.ts +1 -1
  20. package/bundle/components/Calculator/Calculator.d.ts +1 -1
  21. package/bundle/components/Calculator/Calculator.mobile.d.ts +1 -1
  22. package/bundle/components/CardTransfer/CardTransfer.d.ts +1 -1
  23. package/bundle/components/CardTransfer/CardTransferContent.d.ts +1 -1
  24. package/bundle/components/Carousel/Carousel.d.ts +2 -2
  25. package/bundle/components/Carousel/CarouselContent.d.ts +1 -1
  26. package/bundle/components/Carousel/renderCarouselCards.d.ts +1 -1
  27. package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -1
  28. package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.d.ts +1 -1
  29. package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +1 -1
  30. package/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
  31. package/bundle/components/CarouselCard/CarouselCardContent.d.ts +1 -1
  32. package/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +1 -1
  33. package/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +1 -1
  34. package/bundle/components/CarouselLinks/CarouselLinks.d.ts +1 -1
  35. package/bundle/components/CarouselLinks/CarouselLinks.mobile.d.ts +1 -1
  36. package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +1 -1
  37. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  38. package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
  39. package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  40. package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
  41. package/bundle/components/ComparisonTable/ComparisonTable.d.ts +1 -1
  42. package/bundle/components/ComparisonTable/ComparisonTable.mobile.d.ts +1 -1
  43. package/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
  44. package/bundle/components/ComparisonTable/TableColumn.d.ts +1 -1
  45. package/bundle/components/ContactsBlock/ContactsBlock.d.ts +1 -1
  46. package/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +1 -1
  47. package/bundle/components/ContentPage/ContentPage.d.ts +4 -4
  48. package/bundle/components/ContentPage/computeAPIFallback.d.ts +3 -4
  49. package/bundle/components/ContentPage/loadModuleFallback.d.ts +2 -0
  50. package/bundle/components/ContentPage/renderContentPageHead.d.ts +3 -2
  51. package/bundle/components/DepositFiltration/DepositFiltration.d.ts +2 -2
  52. package/bundle/components/Depository/Depository.d.ts +2 -2
  53. package/bundle/components/Depository/DepositoryContent.d.ts +1 -1
  54. package/bundle/components/ErrorBlock/ErrorBlock.d.ts +1 -1
  55. package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +1 -1
  56. package/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
  57. package/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +1 -1
  58. package/bundle/components/Footer/Contacts.d.ts +1 -1
  59. package/bundle/components/Footer/Footer.d.ts +1 -1
  60. package/bundle/components/Footer/Footer.mobile.d.ts +1 -1
  61. package/bundle/components/Footer/FooterContent.d.ts +6 -33
  62. package/bundle/components/Footer/FooterProps.d.ts +4 -1
  63. package/bundle/components/GracePeriod/GracePeriod.d.ts +1 -1
  64. package/bundle/components/GracePeriod/GracePeriodContent.d.ts +1 -1
  65. package/bundle/components/Header/Header.d.ts +1 -1
  66. package/bundle/components/Header/Header.mobile.d.ts +1 -1
  67. package/bundle/components/Header/HeaderContent.d.ts +3 -14
  68. package/bundle/components/Header/HeaderProps.d.ts +4 -1
  69. package/bundle/components/Header/HeaderSecondaryMenu.d.ts +2 -3
  70. package/bundle/components/Headline/Headline.d.ts +1 -1
  71. package/bundle/components/Headline/HeadlineContent.d.ts +1 -1
  72. package/bundle/components/HorizontalLayout/HorizontalLayout.d.ts +2 -2
  73. package/bundle/components/HorizontalLayout/HorizontalLayout.mobile.d.ts +2 -2
  74. package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +1 -1
  75. package/bundle/components/ImgBlock/ImgBlock.d.ts +1 -1
  76. package/bundle/components/ImgBlock/ImgBlockContent.d.ts +1 -1
  77. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
  78. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +1 -1
  79. package/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +1 -1
  80. package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -1
  81. package/bundle/components/LinkDocs/LinkDocs.d.ts +1 -1
  82. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  83. package/bundle/components/MobileAppTile/MobileAppTile.d.ts +1 -1
  84. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  85. package/bundle/components/MortgageFiltration/MortgageFiltration.d.ts +2 -2
  86. package/bundle/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +1 -1
  87. package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -1
  88. package/bundle/components/Placeholder/Placeholder.d.ts +1 -1
  89. package/bundle/components/Placeholder/PlaceholderContent.d.ts +1 -1
  90. package/bundle/components/ProductBlock/ProductBlock.d.ts +2 -2
  91. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  92. package/bundle/components/ProductGallery/ProductGallery.d.ts +1 -1
  93. package/bundle/components/ProductGallery/ProductGallery.mobile.d.ts +1 -1
  94. package/bundle/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  95. package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
  96. package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +1 -1
  97. package/bundle/components/RichTextBlock/RichTextBlock.d.ts +1 -1
  98. package/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +1 -1
  99. package/bundle/components/RollupItem/RollupItem.d.ts +2 -2
  100. package/bundle/components/RollupItem/RollupItemContent.d.ts +1 -1
  101. package/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
  102. package/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -1
  103. package/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
  104. package/bundle/components/StepsBlock/StepsBlock.mobile.d.ts +1 -1
  105. package/bundle/components/StepsBlock/StepsBlockContent.d.ts +1 -1
  106. package/bundle/{ui-kit → components}/StickyBottomMenu/BurgerMenuDialog.d.ts +2 -3
  107. package/bundle/components/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +2 -0
  108. package/bundle/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +5 -0
  109. package/{lib/ui-kit → bundle/components}/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -2
  110. package/bundle/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +7 -0
  111. package/bundle/{ui-kit → components}/StickyBottomMenu/TopItemMobile.d.ts +2 -2
  112. package/bundle/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +7 -0
  113. package/bundle/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +2 -2
  114. package/bundle/components/Tabs/Tabs.d.ts +1 -1
  115. package/bundle/components/Tabs/TabsContent.d.ts +1 -1
  116. package/bundle/components/TabsLayout/TabsLayout.d.ts +2 -2
  117. package/bundle/components/TabsLayout/TabsLayoutContent.d.ts +1 -1
  118. package/bundle/components/TariffsTable/TariffsTable.d.ts +1 -1
  119. package/bundle/components/TariffsTable/TariffsTableCell.d.ts +1 -1
  120. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  121. package/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  122. package/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
  123. package/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +1 -1
  124. package/bundle/components/TextBlock/TextBlock.d.ts +1 -1
  125. package/bundle/components/TextBlock/TextBlockContent.d.ts +1 -1
  126. package/bundle/components/UnitBlock/UnitBlock.d.ts +1 -1
  127. package/bundle/components/UnitBlock/UnitBlockContent.d.ts +1 -1
  128. package/bundle/components/VerticalLayout/VerticalLayout.d.ts +2 -2
  129. package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +1 -1
  130. package/bundle/components/Video/Video.d.ts +1 -1
  131. package/bundle/components/Video/VideoContent.d.ts +1 -1
  132. package/bundle/content-page-repository/computeImgOutputPath.d.ts +1 -1
  133. package/bundle/data/FooterData.d.ts +35 -0
  134. package/bundle/data/JSONRefObject.d.ts +4 -0
  135. package/bundle/data/PortalData.d.ts +3 -0
  136. package/{dist/services/sitemap → bundle/data}/SitemapData.d.ts +4 -5
  137. package/bundle/data/StickyMobileData.d.ts +15 -0
  138. package/bundle/hooks/useJSONRef/fetchRefs.d.ts +2 -0
  139. package/bundle/hooks/useJSONRef/useJSONRef.d.ts +1 -0
  140. package/bundle/index.d.ts +0 -1
  141. package/bundle/model/AlignStyles.d.ts +1 -0
  142. package/bundle/model/BlocksRegistry.d.ts +2 -2
  143. package/bundle/model/ContentPageBase.d.ts +21 -0
  144. package/bundle/model/ContentPageDef.d.ts +8 -23
  145. package/bundle/model/ContentPageMeta.d.ts +100 -0
  146. package/bundle/model/Picture.d.ts +0 -16
  147. package/bundle/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +1 -1
  148. package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -1
  149. package/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -1
  150. package/bundle/ui-kit/BlockWrapper.d.ts +1 -1
  151. package/bundle/ui-kit/DialogManager/isDialogOpen.d.ts +1 -1
  152. package/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -1
  153. package/bundle/ui-kit/LocationDialog/LocationDialog.d.ts +6 -2
  154. package/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -1
  155. package/bundle/ui-kit/LocationDialog/useLocationDialog.d.ts +2 -1
  156. package/bundle/ui-kit/SearchBar/SearchBar.d.ts +2 -1
  157. package/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
  158. package/bundle/ui-kit/SearchDialog/useSearchDialog.d.ts +1 -1
  159. package/bundle/ui-kit/Sitemap/Sitemap.d.ts +1 -1
  160. package/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +1 -1
  161. package/dist/BlockRenderer/renderBlock.d.ts +1 -1
  162. package/dist/BlockRenderer/renderChildren.d.ts +1 -1
  163. package/dist/ProjectSettings.d.ts +2 -24
  164. package/dist/ProjectSettings.js +10 -47
  165. package/dist/ProjectSettings.js.map +1 -1
  166. package/dist/UniBlock/UniBlock.d.ts +17 -0
  167. package/dist/UniBlock/UniBlock.js +17 -0
  168. package/dist/UniBlock/UniBlock.js.map +1 -0
  169. package/{bundle/model/JSXBlock.d.ts → dist/UniBlock/UniBlockProps.d.ts} +2 -14
  170. package/dist/UniBlock/UniBlockProps.js +2 -0
  171. package/dist/UniBlock/UniBlockProps.js.map +1 -0
  172. package/dist/UniBlock/extractContent.d.ts +6 -0
  173. package/dist/UniBlock/extractContent.js +5 -0
  174. package/dist/UniBlock/extractContent.js.map +1 -0
  175. package/dist/components/AdTile/AdTile.d.ts +1 -1
  176. package/dist/components/AdTile/AdTile.js +5 -2
  177. package/dist/components/AdTile/AdTile.js.map +1 -1
  178. package/dist/components/AdTile/AdTileContent.d.ts +1 -1
  179. package/dist/components/ApplicationForm/ApplicationForm.d.ts +1 -1
  180. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  181. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  182. package/dist/components/ApplicationForm/ApplicationFormUltraPremium.js +0 -1
  183. package/dist/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
  184. package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  185. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  186. package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
  187. package/dist/components/Blocks.js +2 -0
  188. package/dist/components/Blocks.js.map +1 -1
  189. package/dist/components/Blocks.mobile.js +2 -0
  190. package/dist/components/Blocks.mobile.js.map +1 -1
  191. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
  192. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  193. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +1 -1
  194. package/dist/components/ButtonsBlock/ButtonsBlock.d.ts +1 -1
  195. package/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
  196. package/dist/components/Calculator/Calculator.d.ts +1 -1
  197. package/dist/components/Calculator/Calculator.js.map +1 -1
  198. package/dist/components/Calculator/Calculator.mobile.d.ts +1 -1
  199. package/dist/components/Calculator/Calculator.mobile.js.map +1 -1
  200. package/dist/components/CardTransfer/CardTransfer.d.ts +1 -1
  201. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  202. package/dist/components/CardTransfer/CardTransferContent.d.ts +1 -1
  203. package/dist/components/Carousel/Carousel.d.ts +2 -2
  204. package/dist/components/Carousel/Carousel.js +18 -17
  205. package/dist/components/Carousel/Carousel.js.map +1 -1
  206. package/dist/components/Carousel/CarouselContent.d.ts +1 -1
  207. package/dist/components/Carousel/renderCarouselCards.d.ts +1 -1
  208. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -1
  209. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  210. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.d.ts +1 -1
  211. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
  212. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +1 -1
  213. package/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
  214. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  215. package/dist/components/CarouselCard/CarouselCardContent.d.ts +1 -1
  216. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +1 -1
  217. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  218. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +1 -1
  219. package/dist/components/CarouselLinks/CarouselLinks.d.ts +1 -1
  220. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  221. package/dist/components/CarouselLinks/CarouselLinks.mobile.d.ts +1 -1
  222. package/dist/components/CarouselLinks/CarouselLinks.mobile.js.map +1 -1
  223. package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +1 -1
  224. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  225. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  226. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
  227. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  228. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  229. package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
  230. package/dist/components/ComparisonTable/ComparisonTable.d.ts +1 -1
  231. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  232. package/dist/components/ComparisonTable/ComparisonTable.mobile.d.ts +1 -1
  233. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  234. package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
  235. package/dist/components/ComparisonTable/TableColumn.d.ts +1 -1
  236. package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  237. package/dist/components/ContactsBlock/ContactsBlock.d.ts +1 -1
  238. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  239. package/dist/components/ContactsBlock/ContactsBlockContent.d.ts +1 -1
  240. package/dist/components/ContentPage/ContentPage.d.ts +4 -4
  241. package/dist/components/ContentPage/ContentPage.js +21 -11
  242. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  243. package/dist/components/ContentPage/ContentPage.page.json +18 -2
  244. package/dist/components/ContentPage/computeAPIFallback.d.ts +3 -4
  245. package/dist/components/ContentPage/computeAPIFallback.js +28 -46
  246. package/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
  247. package/dist/components/ContentPage/loadModuleFallback.d.ts +2 -0
  248. package/dist/components/ContentPage/loadModuleFallback.js +36 -0
  249. package/dist/components/ContentPage/loadModuleFallback.js.map +1 -0
  250. package/dist/components/ContentPage/mapSlot.js +1 -4
  251. package/dist/components/ContentPage/mapSlot.js.map +1 -1
  252. package/dist/components/ContentPage/renderContentPageHead.d.ts +3 -2
  253. package/dist/components/ContentPage/renderContentPageHead.js.map +1 -1
  254. package/dist/components/ContentPage/useContentPageData.js +1 -1
  255. package/dist/components/ContentPage/useContentPageData.js.map +1 -1
  256. package/dist/components/DepositFiltration/DepositFiltration.d.ts +2 -2
  257. package/dist/components/DepositFiltration/DepositFiltration.js +11 -11
  258. package/dist/components/DepositFiltration/DepositFiltration.js.map +1 -1
  259. package/dist/components/Depository/Depository.d.ts +2 -2
  260. package/dist/components/Depository/Depository.js +2 -2
  261. package/dist/components/Depository/Depository.js.map +1 -1
  262. package/dist/components/Depository/DepositoryContent.d.ts +1 -1
  263. package/dist/components/ErrorBlock/ErrorBlock.d.ts +1 -1
  264. package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  265. package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +1 -1
  266. package/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
  267. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  268. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +1 -1
  269. package/dist/components/Footer/Contacts.d.ts +1 -1
  270. package/dist/components/Footer/Contacts.js.map +1 -1
  271. package/dist/components/Footer/Footer.d.ts +1 -1
  272. package/dist/components/Footer/Footer.js +6 -10
  273. package/dist/components/Footer/Footer.js.map +1 -1
  274. package/dist/components/Footer/Footer.mobile.d.ts +1 -1
  275. package/dist/components/Footer/Footer.mobile.js +6 -9
  276. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  277. package/dist/components/Footer/FooterContent.d.ts +6 -33
  278. package/dist/components/Footer/FooterProps.d.ts +4 -1
  279. package/dist/components/Footer/HorizontalNavigation.js +1 -3
  280. package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  281. package/dist/components/GracePeriod/GracePeriod.d.ts +1 -1
  282. package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  283. package/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -1
  284. package/dist/components/Header/Header.d.ts +1 -1
  285. package/dist/components/Header/Header.js +6 -12
  286. package/dist/components/Header/Header.js.map +1 -1
  287. package/dist/components/Header/Header.mobile.d.ts +1 -1
  288. package/dist/components/Header/Header.mobile.js +4 -11
  289. package/dist/components/Header/Header.mobile.js.map +1 -1
  290. package/dist/components/Header/HeaderContent.d.ts +3 -14
  291. package/dist/components/Header/HeaderProps.d.ts +4 -1
  292. package/dist/components/Header/HeaderSecondaryMenu.d.ts +2 -3
  293. package/dist/components/Header/HeaderSecondaryMenu.js +5 -8
  294. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  295. package/dist/components/Headline/Headline.d.ts +1 -1
  296. package/dist/components/Headline/Headline.js.map +1 -1
  297. package/dist/components/Headline/HeadlineContent.d.ts +1 -1
  298. package/dist/components/HorizontalLayout/HorizontalLayout.d.ts +2 -2
  299. package/dist/components/HorizontalLayout/HorizontalLayout.js +5 -6
  300. package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  301. package/dist/components/HorizontalLayout/HorizontalLayout.mobile.d.ts +2 -2
  302. package/dist/components/HorizontalLayout/HorizontalLayout.mobile.js +2 -3
  303. package/dist/components/HorizontalLayout/HorizontalLayout.mobile.js.map +1 -1
  304. package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +1 -1
  305. package/dist/components/ImgBlock/ImgBlock.d.ts +1 -1
  306. package/dist/components/ImgBlock/ImgBlock.js.map +1 -1
  307. package/dist/components/ImgBlock/ImgBlockContent.d.ts +1 -1
  308. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
  309. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  310. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +1 -1
  311. package/dist/components/InvestmentInfo/InvestmentInfo.d.ts +1 -1
  312. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  313. package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -1
  314. package/dist/components/LinkDocs/LinkDocs.d.ts +1 -1
  315. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  316. package/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  317. package/dist/components/MobileAppTile/MobileAppTile.d.ts +1 -1
  318. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  319. package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  320. package/dist/components/MortgageFiltration/MortgageFiltration.d.ts +2 -2
  321. package/dist/components/MortgageFiltration/MortgageFiltration.js +5 -4
  322. package/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  323. package/dist/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +1 -1
  324. package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
  325. package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -1
  326. package/dist/components/Placeholder/Placeholder.d.ts +1 -1
  327. package/dist/components/Placeholder/Placeholder.js.map +1 -1
  328. package/dist/components/Placeholder/PlaceholderContent.d.ts +1 -1
  329. package/dist/components/ProductBlock/ProductBlock.d.ts +2 -2
  330. package/dist/components/ProductBlock/ProductBlock.js +2 -3
  331. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  332. package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  333. package/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
  334. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  335. package/dist/components/ProductGallery/ProductGallery.mobile.d.ts +1 -1
  336. package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
  337. package/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  338. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
  339. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  340. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +1 -1
  341. package/dist/components/RichTextBlock/RichTextBlock.d.ts +1 -1
  342. package/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
  343. package/dist/components/RichTextBlock/RichTextBlockContent.d.ts +1 -1
  344. package/dist/components/RollupItem/RollupItem.d.ts +2 -2
  345. package/dist/components/RollupItem/RollupItem.js +5 -6
  346. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  347. package/dist/components/RollupItem/RollupItemContent.d.ts +1 -1
  348. package/dist/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
  349. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  350. package/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -1
  351. package/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
  352. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  353. package/dist/components/StepsBlock/StepsBlock.mobile.d.ts +1 -1
  354. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  355. package/dist/components/StepsBlock/StepsBlockContent.d.ts +1 -1
  356. package/{mobile/dist/ui-kit → dist/components}/StickyBottomMenu/ActiveSubMenuItem.js +2 -2
  357. package/dist/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
  358. package/dist/{ui-kit → components}/StickyBottomMenu/BurgerMenuDialog.d.ts +2 -3
  359. package/{mobile/dist/ui-kit → dist/components}/StickyBottomMenu/BurgerMenuDialog.js +14 -14
  360. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
  361. package/dist/components/StickyBottomMenu/StickyBottomMenu.js +6 -0
  362. package/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
  363. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +2 -0
  364. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +21 -0
  365. package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -0
  366. package/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.js +1 -1
  367. package/dist/components/StickyBottomMenu/StickyBottomMenuBurger.js.map +1 -0
  368. package/dist/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +5 -0
  369. package/dist/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
  370. package/{mobile/bundle/ui-kit → dist/components}/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -2
  371. package/{mobile/dist/ui-kit → dist/components}/StickyBottomMenu/StickyBottomMenuItem.js +1 -1
  372. package/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -0
  373. package/dist/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +7 -0
  374. package/dist/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
  375. package/dist/{ui-kit → components}/StickyBottomMenu/TopItemMobile.d.ts +2 -2
  376. package/dist/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
  377. package/dist/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +7 -0
  378. package/dist/{ui-kit → components}/StickyBottomMenu/useBurgerMenuDialog.js +8 -9
  379. package/dist/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
  380. package/dist/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +2 -2
  381. package/dist/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -5
  382. package/dist/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
  383. package/dist/components/Tabs/Tabs.d.ts +1 -1
  384. package/dist/components/Tabs/Tabs.js.map +1 -1
  385. package/dist/components/Tabs/TabsContent.d.ts +1 -1
  386. package/dist/components/TabsLayout/TabsLayout.d.ts +2 -2
  387. package/dist/components/TabsLayout/TabsLayout.js +5 -4
  388. package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  389. package/dist/components/TabsLayout/TabsLayoutContent.d.ts +1 -1
  390. package/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
  391. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  392. package/dist/components/TariffsTable/TariffsTableCell.d.ts +1 -1
  393. package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  394. package/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  395. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  396. package/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
  397. package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  398. package/dist/components/TariffsTable/TariffsTableTileCell.d.ts +1 -1
  399. package/dist/components/TextBlock/TextBlock.d.ts +1 -1
  400. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  401. package/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
  402. package/dist/components/UnitBlock/UnitBlock.d.ts +1 -1
  403. package/dist/components/UnitBlock/UnitBlock.js.map +1 -1
  404. package/dist/components/UnitBlock/UnitBlockContent.d.ts +1 -1
  405. package/dist/components/VerticalLayout/VerticalLayout.d.ts +2 -2
  406. package/dist/components/VerticalLayout/VerticalLayout.js +3 -4
  407. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  408. package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +1 -1
  409. package/dist/components/Video/Video.d.ts +1 -1
  410. package/dist/components/Video/Video.js.map +1 -1
  411. package/dist/components/Video/VideoContent.d.ts +1 -1
  412. package/dist/content-page-repository/computeImgOutputPath.d.ts +1 -1
  413. package/dist/content-page-repository/computeImgOutputPath.js +2 -2
  414. package/dist/content-page-repository/computeImgOutputPath.js.map +1 -1
  415. package/dist/content-page-repository/transformContentPage.js +2 -4
  416. package/dist/content-page-repository/transformContentPage.js.map +1 -1
  417. package/dist/content-page-repository/transformImg.js +2 -3
  418. package/dist/content-page-repository/transformImg.js.map +1 -1
  419. package/dist/data/FooterData.d.ts +35 -0
  420. package/{mobile/dist/model/JSXBlock.js → dist/data/FooterData.js} +1 -1
  421. package/dist/data/FooterData.js.map +1 -0
  422. package/dist/data/JSONRefObject.d.ts +4 -0
  423. package/dist/data/JSONRefObject.js +2 -0
  424. package/dist/data/JSONRefObject.js.map +1 -0
  425. package/dist/data/PortalData.d.ts +3 -0
  426. package/dist/{model/JSXBlock.js → data/PortalData.js} +1 -1
  427. package/dist/data/PortalData.js.map +1 -0
  428. package/{lib/services/sitemap → dist/data}/SitemapData.d.ts +4 -5
  429. package/dist/data/SitemapData.js.map +1 -0
  430. package/dist/data/StickyMobileData.d.ts +15 -0
  431. package/dist/data/StickyMobileData.js +2 -0
  432. package/dist/data/StickyMobileData.js.map +1 -0
  433. package/dist/hooks/useJSONRef/fetchRefs.d.ts +2 -0
  434. package/dist/hooks/useJSONRef/fetchRefs.js +16 -0
  435. package/dist/hooks/useJSONRef/fetchRefs.js.map +1 -0
  436. package/dist/hooks/useJSONRef/useJSONRef.d.ts +1 -0
  437. package/dist/hooks/useJSONRef/useJSONRef.js +19 -0
  438. package/dist/hooks/useJSONRef/useJSONRef.js.map +1 -0
  439. package/dist/hooks/useSWRResource.js +1 -3
  440. package/dist/hooks/useSWRResource.js.map +1 -1
  441. package/dist/index.d.ts +0 -1
  442. package/dist/index.js +1 -3
  443. package/dist/index.js.map +1 -1
  444. package/dist/model/AlignStyles.d.ts +1 -0
  445. package/dist/model/AlignStyles.js +1 -0
  446. package/dist/model/AlignStyles.js.map +1 -1
  447. package/dist/model/BlocksRegistry.d.ts +2 -2
  448. package/dist/model/ContentPageBase.d.ts +21 -0
  449. package/dist/{components/Footer/FooterDataProps.js → model/ContentPageBase.js} +1 -1
  450. package/dist/model/ContentPageBase.js.map +1 -0
  451. package/dist/model/ContentPageDef.d.ts +8 -23
  452. package/dist/model/ContentPageMeta.d.ts +100 -0
  453. package/{mobile/dist/components/Footer/FooterDataProps.js → dist/model/ContentPageMeta.js} +1 -1
  454. package/dist/model/ContentPageMeta.js.map +1 -0
  455. package/dist/model/Picture.d.ts +0 -16
  456. package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +1 -1
  457. package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -1
  458. package/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -1
  459. package/dist/ui-kit/BlockWrapper.d.ts +1 -1
  460. package/dist/ui-kit/DialogManager/isDialogOpen.d.ts +1 -1
  461. package/dist/ui-kit/DialogManager/isDialogOpen.js +1 -1
  462. package/dist/ui-kit/DialogManager/isDialogOpen.js.map +1 -1
  463. package/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -1
  464. package/dist/ui-kit/LocationDialog/LocationDialog.d.ts +6 -2
  465. package/dist/ui-kit/LocationDialog/LocationDialog.js +1 -3
  466. package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  467. package/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -1
  468. package/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  469. package/dist/ui-kit/LocationDialog/useLocationDialog.d.ts +2 -1
  470. package/dist/ui-kit/LocationDialog/useLocationDialog.js +2 -2
  471. package/dist/ui-kit/LocationDialog/useLocationDialog.js.map +1 -1
  472. package/dist/ui-kit/SearchBar/SearchBar.d.ts +2 -1
  473. package/dist/ui-kit/SearchBar/SearchBar.js +4 -4
  474. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  475. package/dist/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
  476. package/dist/ui-kit/SearchDialog/SearchDialog.js +1 -12
  477. package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  478. package/dist/ui-kit/SearchDialog/useSearchDialog.d.ts +1 -1
  479. package/dist/ui-kit/SearchDialog/useSearchDialog.js +2 -2
  480. package/dist/ui-kit/SearchDialog/useSearchDialog.js.map +1 -1
  481. package/dist/ui-kit/Sitemap/Sitemap.d.ts +1 -1
  482. package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  483. package/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +1 -1
  484. package/dist/wlc.json +0 -2
  485. package/lib/BlockRenderer/renderBlock.d.ts +1 -1
  486. package/lib/BlockRenderer/renderChildren.d.ts +1 -1
  487. package/lib/ProjectSettings.d.ts +2 -24
  488. package/lib/ProjectSettings.js +10 -47
  489. package/lib/ProjectSettings.js.map +1 -1
  490. package/lib/UniBlock/UniBlock.d.ts +17 -0
  491. package/lib/UniBlock/UniBlock.js +14 -0
  492. package/lib/UniBlock/UniBlock.js.map +1 -0
  493. package/{mobile/bundle/model/JSXBlock.d.ts → lib/UniBlock/UniBlockProps.d.ts} +2 -14
  494. package/lib/UniBlock/UniBlockProps.js +2 -0
  495. package/lib/UniBlock/UniBlockProps.js.map +1 -0
  496. package/lib/UniBlock/extractContent.d.ts +6 -0
  497. package/lib/UniBlock/extractContent.js +2 -0
  498. package/lib/UniBlock/extractContent.js.map +1 -0
  499. package/lib/common.css +1 -1
  500. package/lib/components/AdTile/AdTile.d.ts +1 -1
  501. package/lib/components/AdTile/AdTile.js +5 -2
  502. package/lib/components/AdTile/AdTile.js.map +1 -1
  503. package/lib/components/AdTile/AdTileContent.d.ts +1 -1
  504. package/lib/components/ApplicationForm/ApplicationForm.d.ts +1 -1
  505. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  506. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  507. package/lib/components/ApplicationForm/ApplicationFormUltraPremium.js +0 -1
  508. package/lib/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
  509. package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  510. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  511. package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
  512. package/lib/components/Blocks.js +2 -0
  513. package/lib/components/Blocks.js.map +1 -1
  514. package/lib/components/Blocks.mobile.js +2 -0
  515. package/lib/components/Blocks.mobile.js.map +1 -1
  516. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
  517. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  518. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +1 -1
  519. package/lib/components/ButtonsBlock/ButtonsBlock.d.ts +1 -1
  520. package/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
  521. package/lib/components/Calculator/Calculator.d.ts +1 -1
  522. package/lib/components/Calculator/Calculator.js.map +1 -1
  523. package/lib/components/Calculator/Calculator.mobile.d.ts +1 -1
  524. package/lib/components/Calculator/Calculator.mobile.js.map +1 -1
  525. package/lib/components/CardTransfer/CardTransfer.d.ts +1 -1
  526. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  527. package/lib/components/CardTransfer/CardTransferContent.d.ts +1 -1
  528. package/lib/components/Carousel/Carousel.d.ts +2 -2
  529. package/lib/components/Carousel/Carousel.js +18 -17
  530. package/lib/components/Carousel/Carousel.js.map +1 -1
  531. package/lib/components/Carousel/CarouselContent.d.ts +1 -1
  532. package/lib/components/Carousel/renderCarouselCards.d.ts +1 -1
  533. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -1
  534. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  535. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.d.ts +1 -1
  536. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
  537. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +1 -1
  538. package/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
  539. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  540. package/lib/components/CarouselCard/CarouselCardContent.d.ts +1 -1
  541. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +1 -1
  542. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  543. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +1 -1
  544. package/lib/components/CarouselLinks/CarouselLinks.d.ts +1 -1
  545. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  546. package/lib/components/CarouselLinks/CarouselLinks.mobile.d.ts +1 -1
  547. package/lib/components/CarouselLinks/CarouselLinks.mobile.js.map +1 -1
  548. package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +1 -1
  549. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  550. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  551. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
  552. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  553. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  554. package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
  555. package/lib/components/ComparisonTable/ComparisonTable.d.ts +1 -1
  556. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  557. package/lib/components/ComparisonTable/ComparisonTable.mobile.d.ts +1 -1
  558. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  559. package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
  560. package/lib/components/ComparisonTable/TableColumn.d.ts +1 -1
  561. package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  562. package/lib/components/ContactsBlock/ContactsBlock.d.ts +1 -1
  563. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  564. package/lib/components/ContactsBlock/ContactsBlockContent.d.ts +1 -1
  565. package/lib/components/ContentPage/ContentPage.d.ts +4 -4
  566. package/lib/components/ContentPage/ContentPage.js +21 -11
  567. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  568. package/lib/components/ContentPage/ContentPage.page.json +18 -2
  569. package/lib/components/ContentPage/computeAPIFallback.d.ts +3 -4
  570. package/lib/components/ContentPage/computeAPIFallback.js +26 -19
  571. package/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
  572. package/lib/components/ContentPage/loadModuleFallback.d.ts +2 -0
  573. package/lib/components/ContentPage/loadModuleFallback.js +10 -0
  574. package/lib/components/ContentPage/loadModuleFallback.js.map +1 -0
  575. package/lib/components/ContentPage/mapSlot.js +1 -4
  576. package/lib/components/ContentPage/mapSlot.js.map +1 -1
  577. package/lib/components/ContentPage/renderContentPageHead.d.ts +3 -2
  578. package/lib/components/ContentPage/renderContentPageHead.js.map +1 -1
  579. package/lib/components/ContentPage/useContentPageData.js +1 -1
  580. package/lib/components/ContentPage/useContentPageData.js.map +1 -1
  581. package/lib/components/DepositFiltration/DepositFiltration.d.ts +2 -2
  582. package/lib/components/DepositFiltration/DepositFiltration.js +11 -11
  583. package/lib/components/DepositFiltration/DepositFiltration.js.map +1 -1
  584. package/lib/components/Depository/Depository.d.ts +2 -2
  585. package/lib/components/Depository/Depository.js +2 -2
  586. package/lib/components/Depository/Depository.js.map +1 -1
  587. package/lib/components/Depository/DepositoryContent.d.ts +1 -1
  588. package/lib/components/ErrorBlock/ErrorBlock.d.ts +1 -1
  589. package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  590. package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +1 -1
  591. package/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
  592. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  593. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +1 -1
  594. package/lib/components/Footer/Contacts.d.ts +1 -1
  595. package/lib/components/Footer/Contacts.js.map +1 -1
  596. package/lib/components/Footer/Footer.d.ts +1 -1
  597. package/lib/components/Footer/Footer.js +6 -10
  598. package/lib/components/Footer/Footer.js.map +1 -1
  599. package/lib/components/Footer/Footer.mobile.d.ts +1 -1
  600. package/lib/components/Footer/Footer.mobile.js +6 -9
  601. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  602. package/lib/components/Footer/FooterContent.d.ts +6 -33
  603. package/lib/components/Footer/FooterProps.d.ts +4 -1
  604. package/lib/components/Footer/HorizontalNavigation.js +1 -3
  605. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  606. package/lib/components/GracePeriod/GracePeriod.d.ts +1 -1
  607. package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  608. package/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -1
  609. package/lib/components/Header/Header.d.ts +1 -1
  610. package/lib/components/Header/Header.js +6 -12
  611. package/lib/components/Header/Header.js.map +1 -1
  612. package/lib/components/Header/Header.mobile.d.ts +1 -1
  613. package/lib/components/Header/Header.mobile.js +4 -11
  614. package/lib/components/Header/Header.mobile.js.map +1 -1
  615. package/lib/components/Header/HeaderContent.d.ts +3 -14
  616. package/lib/components/Header/HeaderProps.d.ts +4 -1
  617. package/lib/components/Header/HeaderSecondaryMenu.d.ts +2 -3
  618. package/lib/components/Header/HeaderSecondaryMenu.js +5 -8
  619. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  620. package/lib/components/Headline/Headline.d.ts +1 -1
  621. package/lib/components/Headline/Headline.js.map +1 -1
  622. package/lib/components/Headline/HeadlineContent.d.ts +1 -1
  623. package/lib/components/HorizontalLayout/HorizontalLayout.d.ts +2 -2
  624. package/lib/components/HorizontalLayout/HorizontalLayout.js +5 -6
  625. package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  626. package/lib/components/HorizontalLayout/HorizontalLayout.mobile.d.ts +2 -2
  627. package/lib/components/HorizontalLayout/HorizontalLayout.mobile.js +2 -3
  628. package/lib/components/HorizontalLayout/HorizontalLayout.mobile.js.map +1 -1
  629. package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +1 -1
  630. package/lib/components/ImgBlock/ImgBlock.d.ts +1 -1
  631. package/lib/components/ImgBlock/ImgBlock.js.map +1 -1
  632. package/lib/components/ImgBlock/ImgBlockContent.d.ts +1 -1
  633. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
  634. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  635. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +1 -1
  636. package/lib/components/InvestmentInfo/InvestmentInfo.d.ts +1 -1
  637. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  638. package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -1
  639. package/lib/components/LinkDocs/LinkDocs.d.ts +1 -1
  640. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  641. package/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  642. package/lib/components/MobileAppTile/MobileAppTile.d.ts +1 -1
  643. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  644. package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  645. package/lib/components/MortgageFiltration/MortgageFiltration.d.ts +2 -2
  646. package/lib/components/MortgageFiltration/MortgageFiltration.js +5 -4
  647. package/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  648. package/lib/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +1 -1
  649. package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
  650. package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -1
  651. package/lib/components/Placeholder/Placeholder.d.ts +1 -1
  652. package/lib/components/Placeholder/Placeholder.js.map +1 -1
  653. package/lib/components/Placeholder/PlaceholderContent.d.ts +1 -1
  654. package/lib/components/ProductBlock/ProductBlock.d.ts +2 -2
  655. package/lib/components/ProductBlock/ProductBlock.js +2 -3
  656. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  657. package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  658. package/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
  659. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  660. package/lib/components/ProductGallery/ProductGallery.mobile.d.ts +1 -1
  661. package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
  662. package/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  663. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
  664. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  665. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +1 -1
  666. package/lib/components/RichTextBlock/RichTextBlock.d.ts +1 -1
  667. package/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
  668. package/lib/components/RichTextBlock/RichTextBlockContent.d.ts +1 -1
  669. package/lib/components/RollupItem/RollupItem.d.ts +2 -2
  670. package/lib/components/RollupItem/RollupItem.js +5 -6
  671. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  672. package/lib/components/RollupItem/RollupItemContent.d.ts +1 -1
  673. package/lib/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
  674. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  675. package/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -1
  676. package/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
  677. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  678. package/lib/components/StepsBlock/StepsBlock.mobile.d.ts +1 -1
  679. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  680. package/lib/components/StepsBlock/StepsBlockContent.d.ts +1 -1
  681. package/{mobile/lib/ui-kit → lib/components}/StickyBottomMenu/ActiveSubMenuItem.js +2 -2
  682. package/lib/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
  683. package/lib/{ui-kit → components}/StickyBottomMenu/BurgerMenuDialog.d.ts +2 -3
  684. package/lib/{ui-kit → components}/StickyBottomMenu/BurgerMenuDialog.js +14 -14
  685. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
  686. package/lib/components/StickyBottomMenu/StickyBottomMenu.js +4 -0
  687. package/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
  688. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +2 -0
  689. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +19 -0
  690. package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -0
  691. package/{mobile/lib/ui-kit → lib/components}/StickyBottomMenu/StickyBottomMenuBurger.js +1 -1
  692. package/lib/components/StickyBottomMenu/StickyBottomMenuBurger.js.map +1 -0
  693. package/lib/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +5 -0
  694. package/lib/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
  695. package/{bundle/ui-kit → lib/components}/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -2
  696. package/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuItem.js +1 -1
  697. package/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -0
  698. package/lib/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +7 -0
  699. package/lib/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
  700. package/lib/{ui-kit → components}/StickyBottomMenu/TopItemMobile.d.ts +2 -2
  701. package/lib/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
  702. package/lib/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +7 -0
  703. package/lib/components/StickyBottomMenu/useBurgerMenuDialog.js +22 -0
  704. package/lib/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
  705. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +2 -2
  706. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -5
  707. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
  708. package/lib/components/Tabs/Tabs.d.ts +1 -1
  709. package/lib/components/Tabs/Tabs.js.map +1 -1
  710. package/lib/components/Tabs/TabsContent.d.ts +1 -1
  711. package/lib/components/TabsLayout/TabsLayout.d.ts +2 -2
  712. package/lib/components/TabsLayout/TabsLayout.js +5 -4
  713. package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  714. package/lib/components/TabsLayout/TabsLayoutContent.d.ts +1 -1
  715. package/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
  716. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  717. package/lib/components/TariffsTable/TariffsTableCell.d.ts +1 -1
  718. package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  719. package/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  720. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  721. package/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
  722. package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  723. package/lib/components/TariffsTable/TariffsTableTileCell.d.ts +1 -1
  724. package/lib/components/TextBlock/TextBlock.d.ts +1 -1
  725. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  726. package/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
  727. package/lib/components/UnitBlock/UnitBlock.d.ts +1 -1
  728. package/lib/components/UnitBlock/UnitBlock.js.map +1 -1
  729. package/lib/components/UnitBlock/UnitBlockContent.d.ts +1 -1
  730. package/lib/components/VerticalLayout/VerticalLayout.d.ts +2 -2
  731. package/lib/components/VerticalLayout/VerticalLayout.js +3 -4
  732. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  733. package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +1 -1
  734. package/lib/components/Video/Video.d.ts +1 -1
  735. package/lib/components/Video/Video.js.map +1 -1
  736. package/lib/components/Video/VideoContent.d.ts +1 -1
  737. package/lib/content-page-repository/computeImgOutputPath.d.ts +1 -1
  738. package/lib/content-page-repository/computeImgOutputPath.js +2 -2
  739. package/lib/content-page-repository/computeImgOutputPath.js.map +1 -1
  740. package/lib/content-page-repository/transformContentPage.js +2 -4
  741. package/lib/content-page-repository/transformContentPage.js.map +1 -1
  742. package/lib/content-page-repository/transformImg.js +2 -3
  743. package/lib/content-page-repository/transformImg.js.map +1 -1
  744. package/lib/data/FooterData.d.ts +35 -0
  745. package/lib/data/FooterData.js +2 -0
  746. package/lib/data/FooterData.js.map +1 -0
  747. package/lib/data/JSONRefObject.d.ts +4 -0
  748. package/lib/data/JSONRefObject.js +2 -0
  749. package/lib/data/JSONRefObject.js.map +1 -0
  750. package/lib/data/PortalData.d.ts +3 -0
  751. package/lib/data/PortalData.js +2 -0
  752. package/lib/data/PortalData.js.map +1 -0
  753. package/{bundle/services/sitemap → lib/data}/SitemapData.d.ts +4 -5
  754. package/lib/data/SitemapData.js.map +1 -0
  755. package/lib/data/StickyMobileData.d.ts +15 -0
  756. package/lib/data/StickyMobileData.js +2 -0
  757. package/lib/data/StickyMobileData.js.map +1 -0
  758. package/lib/hooks/useJSONRef/fetchRefs.d.ts +2 -0
  759. package/lib/hooks/useJSONRef/fetchRefs.js +13 -0
  760. package/lib/hooks/useJSONRef/fetchRefs.js.map +1 -0
  761. package/lib/hooks/useJSONRef/useJSONRef.d.ts +1 -0
  762. package/lib/hooks/useJSONRef/useJSONRef.js +16 -0
  763. package/lib/hooks/useJSONRef/useJSONRef.js.map +1 -0
  764. package/lib/hooks/useSWRResource.js +1 -3
  765. package/lib/hooks/useSWRResource.js.map +1 -1
  766. package/lib/index.d.ts +0 -1
  767. package/lib/index.js +0 -1
  768. package/lib/index.js.map +1 -1
  769. package/lib/model/AlignStyles.d.ts +1 -0
  770. package/lib/model/AlignStyles.js +1 -0
  771. package/lib/model/AlignStyles.js.map +1 -1
  772. package/lib/model/BlocksRegistry.d.ts +2 -2
  773. package/lib/model/ContentPageBase.d.ts +21 -0
  774. package/lib/model/ContentPageBase.js +2 -0
  775. package/lib/model/ContentPageBase.js.map +1 -0
  776. package/lib/model/ContentPageDef.d.ts +8 -23
  777. package/lib/model/ContentPageMeta.d.ts +100 -0
  778. package/lib/model/ContentPageMeta.js +2 -0
  779. package/lib/model/ContentPageMeta.js.map +1 -0
  780. package/lib/model/Picture.d.ts +0 -16
  781. package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +1 -1
  782. package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -1
  783. package/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -1
  784. package/lib/ui-kit/BlockWrapper.d.ts +1 -1
  785. package/lib/ui-kit/DialogManager/isDialogOpen.d.ts +1 -1
  786. package/lib/ui-kit/DialogManager/isDialogOpen.js +1 -1
  787. package/lib/ui-kit/DialogManager/isDialogOpen.js.map +1 -1
  788. package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -1
  789. package/lib/ui-kit/LocationDialog/LocationDialog.d.ts +6 -2
  790. package/lib/ui-kit/LocationDialog/LocationDialog.js +1 -3
  791. package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  792. package/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -1
  793. package/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  794. package/lib/ui-kit/LocationDialog/useLocationDialog.d.ts +2 -1
  795. package/lib/ui-kit/LocationDialog/useLocationDialog.js +2 -2
  796. package/lib/ui-kit/LocationDialog/useLocationDialog.js.map +1 -1
  797. package/lib/ui-kit/SearchBar/SearchBar.d.ts +2 -1
  798. package/lib/ui-kit/SearchBar/SearchBar.js +4 -4
  799. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  800. package/lib/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
  801. package/lib/ui-kit/SearchDialog/SearchDialog.js +2 -13
  802. package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  803. package/lib/ui-kit/SearchDialog/useSearchDialog.d.ts +1 -1
  804. package/lib/ui-kit/SearchDialog/useSearchDialog.js +2 -2
  805. package/lib/ui-kit/SearchDialog/useSearchDialog.js.map +1 -1
  806. package/lib/ui-kit/Sitemap/Sitemap.d.ts +1 -1
  807. package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  808. package/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +1 -1
  809. package/lib/wlc.json +0 -2
  810. package/mobile/bundle/BlockRenderer/renderBlock.d.ts +1 -1
  811. package/mobile/bundle/BlockRenderer/renderChildren.d.ts +1 -1
  812. package/mobile/bundle/ProjectSettings.d.ts +2 -24
  813. package/mobile/bundle/UniBlock/UniBlock.d.ts +17 -0
  814. package/{lib/model/JSXBlock.d.ts → mobile/bundle/UniBlock/UniBlockProps.d.ts} +2 -14
  815. package/mobile/bundle/UniBlock/extractContent.d.ts +6 -0
  816. package/mobile/bundle/bundle.umd.js +1019 -1124
  817. package/mobile/bundle/bundle.umd.min.js +1 -1
  818. package/mobile/bundle/components/AdTile/AdTile.d.ts +1 -1
  819. package/mobile/bundle/components/AdTile/AdTileContent.d.ts +1 -1
  820. package/mobile/bundle/components/ApplicationForm/ApplicationForm.d.ts +1 -1
  821. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  822. package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  823. package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
  824. package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
  825. package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +1 -1
  826. package/mobile/bundle/components/ButtonsBlock/ButtonsBlock.d.ts +1 -1
  827. package/mobile/bundle/components/Calculator/Calculator.d.ts +1 -1
  828. package/mobile/bundle/components/CardTransfer/CardTransfer.d.ts +1 -1
  829. package/mobile/bundle/components/CardTransfer/CardTransferContent.d.ts +1 -1
  830. package/mobile/bundle/components/Carousel/Carousel.d.ts +2 -2
  831. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +1 -1
  832. package/mobile/bundle/components/Carousel/renderCarouselCards.d.ts +1 -1
  833. package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -1
  834. package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +1 -1
  835. package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
  836. package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +1 -1
  837. package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +1 -1
  838. package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +1 -1
  839. package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +1 -1
  840. package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +1 -1
  841. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  842. package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
  843. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  844. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
  845. package/mobile/bundle/components/ComparisonTable/ComparisonTable.d.ts +1 -1
  846. package/mobile/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
  847. package/mobile/bundle/components/ComparisonTable/TableColumn.d.ts +1 -1
  848. package/mobile/bundle/components/ContactsBlock/ContactsBlock.d.ts +1 -1
  849. package/mobile/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +1 -1
  850. package/mobile/bundle/components/ContentPage/ContentPage.d.ts +4 -4
  851. package/mobile/bundle/components/ContentPage/computeAPIFallback.d.ts +3 -4
  852. package/mobile/bundle/components/ContentPage/loadModuleFallback.d.ts +2 -0
  853. package/mobile/bundle/components/ContentPage/renderContentPageHead.d.ts +3 -2
  854. package/mobile/bundle/components/DepositFiltration/DepositFiltration.d.ts +2 -2
  855. package/mobile/bundle/components/Depository/Depository.d.ts +2 -2
  856. package/mobile/bundle/components/Depository/DepositoryContent.d.ts +1 -1
  857. package/mobile/bundle/components/ErrorBlock/ErrorBlock.d.ts +1 -1
  858. package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +1 -1
  859. package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
  860. package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +1 -1
  861. package/mobile/bundle/components/Footer/Contacts.d.ts +1 -1
  862. package/mobile/bundle/components/Footer/Footer.d.ts +1 -1
  863. package/mobile/bundle/components/Footer/FooterContent.d.ts +6 -33
  864. package/mobile/bundle/components/Footer/FooterProps.d.ts +4 -1
  865. package/mobile/bundle/components/GracePeriod/GracePeriod.d.ts +1 -1
  866. package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +1 -1
  867. package/mobile/bundle/components/Header/Header.d.ts +1 -1
  868. package/mobile/bundle/components/Header/HeaderContent.d.ts +3 -14
  869. package/mobile/bundle/components/Header/HeaderProps.d.ts +4 -1
  870. package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +2 -3
  871. package/mobile/bundle/components/Headline/Headline.d.ts +1 -1
  872. package/mobile/bundle/components/Headline/HeadlineContent.d.ts +1 -1
  873. package/mobile/bundle/components/HorizontalLayout/HorizontalLayout.d.ts +2 -2
  874. package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +1 -1
  875. package/mobile/bundle/components/ImgBlock/ImgBlock.d.ts +1 -1
  876. package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +1 -1
  877. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
  878. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +1 -1
  879. package/mobile/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +1 -1
  880. package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -1
  881. package/mobile/bundle/components/LinkDocs/LinkDocs.d.ts +1 -1
  882. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  883. package/mobile/bundle/components/MobileAppTile/MobileAppTile.d.ts +1 -1
  884. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  885. package/mobile/bundle/components/MortgageFiltration/MortgageFiltration.d.ts +2 -2
  886. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +1 -1
  887. package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -1
  888. package/mobile/bundle/components/Placeholder/Placeholder.d.ts +1 -1
  889. package/mobile/bundle/components/Placeholder/PlaceholderContent.d.ts +1 -1
  890. package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +2 -2
  891. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  892. package/mobile/bundle/components/ProductGallery/ProductGallery.d.ts +1 -1
  893. package/mobile/bundle/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  894. package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
  895. package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +1 -1
  896. package/mobile/bundle/components/RichTextBlock/RichTextBlock.d.ts +1 -1
  897. package/mobile/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +1 -1
  898. package/mobile/bundle/components/RollupItem/RollupItem.d.ts +2 -2
  899. package/mobile/bundle/components/RollupItem/RollupItemContent.d.ts +1 -1
  900. package/mobile/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
  901. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -1
  902. package/mobile/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
  903. package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +1 -1
  904. package/mobile/bundle/{ui-kit → components}/StickyBottomMenu/BurgerMenuDialog.d.ts +2 -3
  905. package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
  906. package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +5 -0
  907. package/{dist/ui-kit → mobile/bundle/components}/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -2
  908. package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +7 -0
  909. package/mobile/{dist/ui-kit → bundle/components}/StickyBottomMenu/TopItemMobile.d.ts +2 -2
  910. package/mobile/bundle/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +7 -0
  911. package/mobile/bundle/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +2 -2
  912. package/mobile/bundle/components/Tabs/Tabs.d.ts +1 -1
  913. package/mobile/bundle/components/Tabs/TabsContent.d.ts +1 -1
  914. package/mobile/bundle/components/TabsLayout/TabsLayout.d.ts +2 -2
  915. package/mobile/bundle/components/TabsLayout/TabsLayoutContent.d.ts +1 -1
  916. package/mobile/bundle/components/TariffsTable/TariffsTable.d.ts +1 -1
  917. package/mobile/bundle/components/TariffsTable/TariffsTableCell.d.ts +1 -1
  918. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  919. package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  920. package/mobile/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
  921. package/mobile/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +1 -1
  922. package/mobile/bundle/components/TextBlock/TextBlock.d.ts +1 -1
  923. package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +1 -1
  924. package/mobile/bundle/components/UnitBlock/UnitBlock.d.ts +1 -1
  925. package/mobile/bundle/components/UnitBlock/UnitBlockContent.d.ts +1 -1
  926. package/mobile/bundle/components/VerticalLayout/VerticalLayout.d.ts +2 -2
  927. package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +1 -1
  928. package/mobile/bundle/components/Video/Video.d.ts +1 -1
  929. package/mobile/bundle/components/Video/VideoContent.d.ts +1 -1
  930. package/mobile/bundle/content-page-repository/computeImgOutputPath.d.ts +1 -1
  931. package/mobile/bundle/data/FooterData.d.ts +35 -0
  932. package/mobile/bundle/data/JSONRefObject.d.ts +4 -0
  933. package/mobile/bundle/data/PortalData.d.ts +3 -0
  934. package/mobile/bundle/{services/sitemap → data}/SitemapData.d.ts +4 -5
  935. package/mobile/bundle/data/StickyMobileData.d.ts +15 -0
  936. package/mobile/bundle/hooks/useJSONRef/fetchRefs.d.ts +2 -0
  937. package/mobile/bundle/hooks/useJSONRef/useJSONRef.d.ts +1 -0
  938. package/mobile/bundle/index.d.ts +0 -1
  939. package/mobile/bundle/model/BlocksRegistry.d.ts +2 -2
  940. package/mobile/bundle/model/ContentPageBase.d.ts +21 -0
  941. package/mobile/bundle/model/ContentPageDef.d.ts +8 -23
  942. package/mobile/bundle/model/ContentPageMeta.d.ts +100 -0
  943. package/mobile/bundle/model/Picture.d.ts +0 -16
  944. package/mobile/bundle/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +1 -1
  945. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -1
  946. package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -1
  947. package/mobile/bundle/ui-kit/BlockWrapper.d.ts +1 -1
  948. package/mobile/bundle/ui-kit/DialogManager/isDialogOpen.d.ts +1 -1
  949. package/mobile/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -1
  950. package/mobile/bundle/ui-kit/LocationDialog/LocationDialog.d.ts +6 -2
  951. package/mobile/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -1
  952. package/mobile/bundle/ui-kit/LocationDialog/useLocationDialog.d.ts +2 -1
  953. package/mobile/bundle/ui-kit/SearchBar/SearchBar.d.ts +2 -1
  954. package/mobile/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
  955. package/mobile/bundle/ui-kit/SearchDialog/useSearchDialog.d.ts +1 -1
  956. package/mobile/bundle/ui-kit/Sitemap/Sitemap.d.ts +1 -1
  957. package/mobile/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +1 -1
  958. package/mobile/dist/BlockRenderer/renderBlock.d.ts +1 -1
  959. package/mobile/dist/BlockRenderer/renderChildren.d.ts +1 -1
  960. package/mobile/dist/ProjectSettings.d.ts +2 -24
  961. package/mobile/dist/ProjectSettings.js +10 -47
  962. package/mobile/dist/ProjectSettings.js.map +1 -1
  963. package/mobile/dist/UniBlock/UniBlock.d.ts +17 -0
  964. package/mobile/dist/UniBlock/UniBlock.js +17 -0
  965. package/mobile/dist/UniBlock/UniBlock.js.map +1 -0
  966. package/mobile/dist/UniBlock/UniBlockProps.d.ts +24 -0
  967. package/mobile/dist/UniBlock/UniBlockProps.js +2 -0
  968. package/mobile/dist/UniBlock/UniBlockProps.js.map +1 -0
  969. package/mobile/dist/UniBlock/extractContent.d.ts +6 -0
  970. package/mobile/dist/UniBlock/extractContent.js +5 -0
  971. package/mobile/dist/UniBlock/extractContent.js.map +1 -0
  972. package/mobile/dist/components/AdTile/AdTile.d.ts +1 -1
  973. package/mobile/dist/components/AdTile/AdTile.js +5 -2
  974. package/mobile/dist/components/AdTile/AdTile.js.map +1 -1
  975. package/mobile/dist/components/AdTile/AdTileContent.d.ts +1 -1
  976. package/mobile/dist/components/ApplicationForm/ApplicationForm.d.ts +1 -1
  977. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  978. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  979. package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.js +0 -1
  980. package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
  981. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  982. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  983. package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
  984. package/mobile/dist/components/Blocks.js +2 -0
  985. package/mobile/dist/components/Blocks.js.map +1 -1
  986. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
  987. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  988. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +1 -1
  989. package/mobile/dist/components/ButtonsBlock/ButtonsBlock.d.ts +1 -1
  990. package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
  991. package/mobile/dist/components/Calculator/Calculator.d.ts +1 -1
  992. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  993. package/mobile/dist/components/CardTransfer/CardTransfer.d.ts +1 -1
  994. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  995. package/mobile/dist/components/CardTransfer/CardTransferContent.d.ts +1 -1
  996. package/mobile/dist/components/Carousel/Carousel.d.ts +2 -2
  997. package/mobile/dist/components/Carousel/Carousel.js +18 -17
  998. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  999. package/mobile/dist/components/Carousel/CarouselContent.d.ts +1 -1
  1000. package/mobile/dist/components/Carousel/renderCarouselCards.d.ts +1 -1
  1001. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -1
  1002. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  1003. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +1 -1
  1004. package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
  1005. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  1006. package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +1 -1
  1007. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +1 -1
  1008. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  1009. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +1 -1
  1010. package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +1 -1
  1011. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  1012. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +1 -1
  1013. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  1014. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  1015. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
  1016. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  1017. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  1018. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
  1019. package/mobile/dist/components/ComparisonTable/ComparisonTable.d.ts +1 -1
  1020. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  1021. package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
  1022. package/mobile/dist/components/ComparisonTable/TableColumn.d.ts +1 -1
  1023. package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  1024. package/mobile/dist/components/ContactsBlock/ContactsBlock.d.ts +1 -1
  1025. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  1026. package/mobile/dist/components/ContactsBlock/ContactsBlockContent.d.ts +1 -1
  1027. package/mobile/dist/components/ContentPage/ContentPage.d.ts +4 -4
  1028. package/mobile/dist/components/ContentPage/ContentPage.js +21 -11
  1029. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  1030. package/mobile/dist/components/ContentPage/ContentPage.page.json +18 -2
  1031. package/mobile/dist/components/ContentPage/computeAPIFallback.d.ts +3 -4
  1032. package/mobile/dist/components/ContentPage/computeAPIFallback.js +28 -46
  1033. package/mobile/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
  1034. package/mobile/dist/components/ContentPage/loadModuleFallback.d.ts +2 -0
  1035. package/mobile/dist/components/ContentPage/loadModuleFallback.js +36 -0
  1036. package/mobile/dist/components/ContentPage/loadModuleFallback.js.map +1 -0
  1037. package/mobile/dist/components/ContentPage/mapSlot.js +1 -4
  1038. package/mobile/dist/components/ContentPage/mapSlot.js.map +1 -1
  1039. package/mobile/dist/components/ContentPage/renderContentPageHead.d.ts +3 -2
  1040. package/mobile/dist/components/ContentPage/renderContentPageHead.js.map +1 -1
  1041. package/mobile/dist/components/ContentPage/useContentPageData.js +1 -1
  1042. package/mobile/dist/components/ContentPage/useContentPageData.js.map +1 -1
  1043. package/mobile/dist/components/DepositFiltration/DepositFiltration.d.ts +2 -2
  1044. package/mobile/dist/components/DepositFiltration/DepositFiltration.js +11 -11
  1045. package/mobile/dist/components/DepositFiltration/DepositFiltration.js.map +1 -1
  1046. package/mobile/dist/components/Depository/Depository.d.ts +2 -2
  1047. package/mobile/dist/components/Depository/Depository.js +2 -2
  1048. package/mobile/dist/components/Depository/Depository.js.map +1 -1
  1049. package/mobile/dist/components/Depository/DepositoryContent.d.ts +1 -1
  1050. package/mobile/dist/components/ErrorBlock/ErrorBlock.d.ts +1 -1
  1051. package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  1052. package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +1 -1
  1053. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
  1054. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  1055. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +1 -1
  1056. package/mobile/dist/components/Footer/Contacts.d.ts +1 -1
  1057. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  1058. package/mobile/dist/components/Footer/Footer.d.ts +1 -1
  1059. package/mobile/dist/components/Footer/Footer.js +6 -9
  1060. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  1061. package/mobile/dist/components/Footer/FooterContent.d.ts +6 -33
  1062. package/mobile/dist/components/Footer/FooterProps.d.ts +4 -1
  1063. package/mobile/dist/components/GracePeriod/GracePeriod.d.ts +1 -1
  1064. package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  1065. package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -1
  1066. package/mobile/dist/components/Header/Header.d.ts +1 -1
  1067. package/mobile/dist/components/Header/Header.js +4 -11
  1068. package/mobile/dist/components/Header/Header.js.map +1 -1
  1069. package/mobile/dist/components/Header/HeaderContent.d.ts +3 -14
  1070. package/mobile/dist/components/Header/HeaderProps.d.ts +4 -1
  1071. package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +2 -3
  1072. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +5 -8
  1073. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  1074. package/mobile/dist/components/Headline/Headline.d.ts +1 -1
  1075. package/mobile/dist/components/Headline/Headline.js.map +1 -1
  1076. package/mobile/dist/components/Headline/HeadlineContent.d.ts +1 -1
  1077. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.d.ts +2 -2
  1078. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +2 -3
  1079. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  1080. package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +1 -1
  1081. package/mobile/dist/components/ImgBlock/ImgBlock.d.ts +1 -1
  1082. package/mobile/dist/components/ImgBlock/ImgBlock.js.map +1 -1
  1083. package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +1 -1
  1084. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
  1085. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  1086. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +1 -1
  1087. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.d.ts +1 -1
  1088. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  1089. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -1
  1090. package/mobile/dist/components/LinkDocs/LinkDocs.d.ts +1 -1
  1091. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  1092. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  1093. package/mobile/dist/components/MobileAppTile/MobileAppTile.d.ts +1 -1
  1094. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  1095. package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  1096. package/mobile/dist/components/MortgageFiltration/MortgageFiltration.d.ts +2 -2
  1097. package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js +5 -4
  1098. package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  1099. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +1 -1
  1100. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
  1101. package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -1
  1102. package/mobile/dist/components/Placeholder/Placeholder.d.ts +1 -1
  1103. package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
  1104. package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +1 -1
  1105. package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +2 -2
  1106. package/mobile/dist/components/ProductBlock/ProductBlock.js +2 -3
  1107. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  1108. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  1109. package/mobile/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
  1110. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  1111. package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  1112. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
  1113. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  1114. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +1 -1
  1115. package/mobile/dist/components/RichTextBlock/RichTextBlock.d.ts +1 -1
  1116. package/mobile/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
  1117. package/mobile/dist/components/RichTextBlock/RichTextBlockContent.d.ts +1 -1
  1118. package/mobile/dist/components/RollupItem/RollupItem.d.ts +2 -2
  1119. package/mobile/dist/components/RollupItem/RollupItem.js +5 -6
  1120. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  1121. package/mobile/dist/components/RollupItem/RollupItemContent.d.ts +1 -1
  1122. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
  1123. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  1124. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -1
  1125. package/mobile/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
  1126. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  1127. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +1 -1
  1128. package/{dist/ui-kit → mobile/dist/components}/StickyBottomMenu/ActiveSubMenuItem.js +2 -2
  1129. package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
  1130. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.d.ts +6 -0
  1131. package/{dist/ui-kit → mobile/dist/components}/StickyBottomMenu/BurgerMenuDialog.js +14 -14
  1132. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
  1133. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
  1134. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +21 -0
  1135. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
  1136. package/mobile/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.js +1 -1
  1137. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuBurger.js.map +1 -0
  1138. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +5 -0
  1139. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
  1140. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +8 -0
  1141. package/{dist/ui-kit → mobile/dist/components}/StickyBottomMenu/StickyBottomMenuItem.js +1 -1
  1142. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -0
  1143. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +7 -0
  1144. package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
  1145. package/mobile/{bundle/ui-kit → dist/components}/StickyBottomMenu/TopItemMobile.d.ts +2 -2
  1146. package/mobile/dist/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
  1147. package/mobile/dist/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +7 -0
  1148. package/mobile/dist/{ui-kit → components}/StickyBottomMenu/useBurgerMenuDialog.js +8 -9
  1149. package/mobile/dist/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
  1150. package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +2 -2
  1151. package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -5
  1152. package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
  1153. package/mobile/dist/components/Tabs/Tabs.d.ts +1 -1
  1154. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  1155. package/mobile/dist/components/Tabs/TabsContent.d.ts +1 -1
  1156. package/mobile/dist/components/TabsLayout/TabsLayout.d.ts +2 -2
  1157. package/mobile/dist/components/TabsLayout/TabsLayout.js +5 -4
  1158. package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  1159. package/mobile/dist/components/TabsLayout/TabsLayoutContent.d.ts +1 -1
  1160. package/mobile/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
  1161. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  1162. package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +1 -1
  1163. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  1164. package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  1165. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  1166. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
  1167. package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  1168. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.d.ts +1 -1
  1169. package/mobile/dist/components/TextBlock/TextBlock.d.ts +1 -1
  1170. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  1171. package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
  1172. package/mobile/dist/components/UnitBlock/UnitBlock.d.ts +1 -1
  1173. package/mobile/dist/components/UnitBlock/UnitBlock.js.map +1 -1
  1174. package/mobile/dist/components/UnitBlock/UnitBlockContent.d.ts +1 -1
  1175. package/mobile/dist/components/VerticalLayout/VerticalLayout.d.ts +2 -2
  1176. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +3 -4
  1177. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  1178. package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +1 -1
  1179. package/mobile/dist/components/Video/Video.d.ts +1 -1
  1180. package/mobile/dist/components/Video/Video.js.map +1 -1
  1181. package/mobile/dist/components/Video/VideoContent.d.ts +1 -1
  1182. package/mobile/dist/content-page-repository/computeImgOutputPath.d.ts +1 -1
  1183. package/mobile/dist/content-page-repository/computeImgOutputPath.js +2 -2
  1184. package/mobile/dist/content-page-repository/computeImgOutputPath.js.map +1 -1
  1185. package/mobile/dist/content-page-repository/transformContentPage.js +2 -4
  1186. package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
  1187. package/mobile/dist/content-page-repository/transformImg.js +2 -3
  1188. package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
  1189. package/mobile/dist/data/FooterData.d.ts +35 -0
  1190. package/mobile/dist/data/FooterData.js +2 -0
  1191. package/mobile/dist/data/FooterData.js.map +1 -0
  1192. package/mobile/dist/data/JSONRefObject.d.ts +4 -0
  1193. package/mobile/dist/data/JSONRefObject.js +2 -0
  1194. package/mobile/dist/data/JSONRefObject.js.map +1 -0
  1195. package/mobile/dist/data/PortalData.d.ts +3 -0
  1196. package/mobile/dist/data/PortalData.js +2 -0
  1197. package/mobile/dist/data/PortalData.js.map +1 -0
  1198. package/mobile/dist/data/SitemapData.d.ts +36 -0
  1199. package/mobile/dist/data/SitemapData.js.map +1 -0
  1200. package/mobile/dist/data/StickyMobileData.d.ts +15 -0
  1201. package/mobile/dist/data/StickyMobileData.js +2 -0
  1202. package/mobile/dist/data/StickyMobileData.js.map +1 -0
  1203. package/mobile/dist/hooks/useJSONRef/fetchRefs.d.ts +2 -0
  1204. package/mobile/dist/hooks/useJSONRef/fetchRefs.js +16 -0
  1205. package/mobile/dist/hooks/useJSONRef/fetchRefs.js.map +1 -0
  1206. package/mobile/dist/hooks/useJSONRef/useJSONRef.d.ts +1 -0
  1207. package/mobile/dist/hooks/useJSONRef/useJSONRef.js +19 -0
  1208. package/mobile/dist/hooks/useJSONRef/useJSONRef.js.map +1 -0
  1209. package/mobile/dist/hooks/useSWRResource.js +1 -3
  1210. package/mobile/dist/hooks/useSWRResource.js.map +1 -1
  1211. package/mobile/dist/index.d.ts +0 -1
  1212. package/mobile/dist/index.js +1 -3
  1213. package/mobile/dist/index.js.map +1 -1
  1214. package/mobile/dist/model/BlocksRegistry.d.ts +2 -2
  1215. package/mobile/dist/model/ContentPageBase.d.ts +21 -0
  1216. package/mobile/dist/model/ContentPageBase.js +2 -0
  1217. package/mobile/dist/model/ContentPageBase.js.map +1 -0
  1218. package/mobile/dist/model/ContentPageDef.d.ts +8 -23
  1219. package/mobile/dist/model/ContentPageMeta.d.ts +100 -0
  1220. package/mobile/dist/model/ContentPageMeta.js +2 -0
  1221. package/mobile/dist/model/ContentPageMeta.js.map +1 -0
  1222. package/mobile/dist/model/Picture.d.ts +0 -16
  1223. package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +1 -1
  1224. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -1
  1225. package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -1
  1226. package/mobile/dist/ui-kit/BlockWrapper.d.ts +1 -1
  1227. package/mobile/dist/ui-kit/DialogManager/isDialogOpen.d.ts +1 -1
  1228. package/mobile/dist/ui-kit/DialogManager/isDialogOpen.js +1 -1
  1229. package/mobile/dist/ui-kit/DialogManager/isDialogOpen.js.map +1 -1
  1230. package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -1
  1231. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.d.ts +6 -2
  1232. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +1 -3
  1233. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  1234. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -1
  1235. package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  1236. package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.d.ts +2 -1
  1237. package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.js +2 -2
  1238. package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.js.map +1 -1
  1239. package/mobile/dist/ui-kit/SearchBar/SearchBar.d.ts +2 -1
  1240. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +4 -4
  1241. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  1242. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
  1243. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +1 -12
  1244. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  1245. package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.d.ts +1 -1
  1246. package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.js +2 -2
  1247. package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.js.map +1 -1
  1248. package/mobile/dist/ui-kit/Sitemap/Sitemap.d.ts +1 -1
  1249. package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
  1250. package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +1 -1
  1251. package/mobile/dist/wlc.json +0 -2
  1252. package/mobile/lib/BlockRenderer/renderBlock.d.ts +1 -1
  1253. package/mobile/lib/BlockRenderer/renderChildren.d.ts +1 -1
  1254. package/mobile/lib/ProjectSettings.d.ts +2 -24
  1255. package/mobile/lib/ProjectSettings.js +10 -47
  1256. package/mobile/lib/ProjectSettings.js.map +1 -1
  1257. package/mobile/lib/UniBlock/UniBlock.d.ts +17 -0
  1258. package/mobile/lib/UniBlock/UniBlock.js +14 -0
  1259. package/mobile/lib/UniBlock/UniBlock.js.map +1 -0
  1260. package/mobile/lib/UniBlock/UniBlockProps.d.ts +24 -0
  1261. package/mobile/lib/UniBlock/UniBlockProps.js +2 -0
  1262. package/mobile/lib/UniBlock/UniBlockProps.js.map +1 -0
  1263. package/mobile/lib/UniBlock/extractContent.d.ts +6 -0
  1264. package/mobile/lib/UniBlock/extractContent.js +2 -0
  1265. package/mobile/lib/UniBlock/extractContent.js.map +1 -0
  1266. package/mobile/lib/common.css +1 -1
  1267. package/mobile/lib/components/AdTile/AdTile.d.ts +1 -1
  1268. package/mobile/lib/components/AdTile/AdTile.js +5 -2
  1269. package/mobile/lib/components/AdTile/AdTile.js.map +1 -1
  1270. package/mobile/lib/components/AdTile/AdTileContent.d.ts +1 -1
  1271. package/mobile/lib/components/ApplicationForm/ApplicationForm.d.ts +1 -1
  1272. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  1273. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
  1274. package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.js +0 -1
  1275. package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
  1276. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
  1277. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  1278. package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
  1279. package/mobile/lib/components/Blocks.js +2 -0
  1280. package/mobile/lib/components/Blocks.js.map +1 -1
  1281. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
  1282. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  1283. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +1 -1
  1284. package/mobile/lib/components/ButtonsBlock/ButtonsBlock.d.ts +1 -1
  1285. package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
  1286. package/mobile/lib/components/Calculator/Calculator.d.ts +1 -1
  1287. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  1288. package/mobile/lib/components/CardTransfer/CardTransfer.d.ts +1 -1
  1289. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  1290. package/mobile/lib/components/CardTransfer/CardTransferContent.d.ts +1 -1
  1291. package/mobile/lib/components/Carousel/Carousel.d.ts +2 -2
  1292. package/mobile/lib/components/Carousel/Carousel.js +18 -17
  1293. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  1294. package/mobile/lib/components/Carousel/CarouselContent.d.ts +1 -1
  1295. package/mobile/lib/components/Carousel/renderCarouselCards.d.ts +1 -1
  1296. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -1
  1297. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  1298. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +1 -1
  1299. package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
  1300. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  1301. package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +1 -1
  1302. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +1 -1
  1303. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  1304. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +1 -1
  1305. package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +1 -1
  1306. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  1307. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +1 -1
  1308. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
  1309. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  1310. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
  1311. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  1312. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  1313. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
  1314. package/mobile/lib/components/ComparisonTable/ComparisonTable.d.ts +1 -1
  1315. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  1316. package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
  1317. package/mobile/lib/components/ComparisonTable/TableColumn.d.ts +1 -1
  1318. package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  1319. package/mobile/lib/components/ContactsBlock/ContactsBlock.d.ts +1 -1
  1320. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  1321. package/mobile/lib/components/ContactsBlock/ContactsBlockContent.d.ts +1 -1
  1322. package/mobile/lib/components/ContentPage/ContentPage.d.ts +4 -4
  1323. package/mobile/lib/components/ContentPage/ContentPage.js +21 -11
  1324. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  1325. package/mobile/lib/components/ContentPage/ContentPage.page.json +18 -2
  1326. package/mobile/lib/components/ContentPage/computeAPIFallback.d.ts +3 -4
  1327. package/mobile/lib/components/ContentPage/computeAPIFallback.js +26 -19
  1328. package/mobile/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
  1329. package/mobile/lib/components/ContentPage/loadModuleFallback.d.ts +2 -0
  1330. package/mobile/lib/components/ContentPage/loadModuleFallback.js +10 -0
  1331. package/mobile/lib/components/ContentPage/loadModuleFallback.js.map +1 -0
  1332. package/mobile/lib/components/ContentPage/mapSlot.js +1 -4
  1333. package/mobile/lib/components/ContentPage/mapSlot.js.map +1 -1
  1334. package/mobile/lib/components/ContentPage/renderContentPageHead.d.ts +3 -2
  1335. package/mobile/lib/components/ContentPage/renderContentPageHead.js.map +1 -1
  1336. package/mobile/lib/components/ContentPage/useContentPageData.js +1 -1
  1337. package/mobile/lib/components/ContentPage/useContentPageData.js.map +1 -1
  1338. package/mobile/lib/components/DepositFiltration/DepositFiltration.d.ts +2 -2
  1339. package/mobile/lib/components/DepositFiltration/DepositFiltration.js +11 -11
  1340. package/mobile/lib/components/DepositFiltration/DepositFiltration.js.map +1 -1
  1341. package/mobile/lib/components/Depository/Depository.d.ts +2 -2
  1342. package/mobile/lib/components/Depository/Depository.js +2 -2
  1343. package/mobile/lib/components/Depository/Depository.js.map +1 -1
  1344. package/mobile/lib/components/Depository/DepositoryContent.d.ts +1 -1
  1345. package/mobile/lib/components/ErrorBlock/ErrorBlock.d.ts +1 -1
  1346. package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  1347. package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +1 -1
  1348. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
  1349. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  1350. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +1 -1
  1351. package/mobile/lib/components/Footer/Contacts.d.ts +1 -1
  1352. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  1353. package/mobile/lib/components/Footer/Footer.d.ts +1 -1
  1354. package/mobile/lib/components/Footer/Footer.js +6 -9
  1355. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  1356. package/mobile/lib/components/Footer/FooterContent.d.ts +6 -33
  1357. package/mobile/lib/components/Footer/FooterProps.d.ts +4 -1
  1358. package/mobile/lib/components/GracePeriod/GracePeriod.d.ts +1 -1
  1359. package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  1360. package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -1
  1361. package/mobile/lib/components/Header/Header.d.ts +1 -1
  1362. package/mobile/lib/components/Header/Header.js +4 -11
  1363. package/mobile/lib/components/Header/Header.js.map +1 -1
  1364. package/mobile/lib/components/Header/HeaderContent.d.ts +3 -14
  1365. package/mobile/lib/components/Header/HeaderProps.d.ts +4 -1
  1366. package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +2 -3
  1367. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +5 -8
  1368. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  1369. package/mobile/lib/components/Headline/Headline.d.ts +1 -1
  1370. package/mobile/lib/components/Headline/Headline.js.map +1 -1
  1371. package/mobile/lib/components/Headline/HeadlineContent.d.ts +1 -1
  1372. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.d.ts +2 -2
  1373. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +2 -3
  1374. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  1375. package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +1 -1
  1376. package/mobile/lib/components/ImgBlock/ImgBlock.d.ts +1 -1
  1377. package/mobile/lib/components/ImgBlock/ImgBlock.js.map +1 -1
  1378. package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +1 -1
  1379. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
  1380. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  1381. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +1 -1
  1382. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.d.ts +1 -1
  1383. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  1384. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -1
  1385. package/mobile/lib/components/LinkDocs/LinkDocs.d.ts +1 -1
  1386. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  1387. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  1388. package/mobile/lib/components/MobileAppTile/MobileAppTile.d.ts +1 -1
  1389. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  1390. package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
  1391. package/mobile/lib/components/MortgageFiltration/MortgageFiltration.d.ts +2 -2
  1392. package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js +5 -4
  1393. package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
  1394. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +1 -1
  1395. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
  1396. package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -1
  1397. package/mobile/lib/components/Placeholder/Placeholder.d.ts +1 -1
  1398. package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
  1399. package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +1 -1
  1400. package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +2 -2
  1401. package/mobile/lib/components/ProductBlock/ProductBlock.js +2 -3
  1402. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  1403. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
  1404. package/mobile/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
  1405. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  1406. package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
  1407. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
  1408. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  1409. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +1 -1
  1410. package/mobile/lib/components/RichTextBlock/RichTextBlock.d.ts +1 -1
  1411. package/mobile/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
  1412. package/mobile/lib/components/RichTextBlock/RichTextBlockContent.d.ts +1 -1
  1413. package/mobile/lib/components/RollupItem/RollupItem.d.ts +2 -2
  1414. package/mobile/lib/components/RollupItem/RollupItem.js +5 -6
  1415. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  1416. package/mobile/lib/components/RollupItem/RollupItemContent.d.ts +1 -1
  1417. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
  1418. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  1419. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -1
  1420. package/mobile/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
  1421. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  1422. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +1 -1
  1423. package/{lib/ui-kit → mobile/lib/components}/StickyBottomMenu/ActiveSubMenuItem.js +2 -2
  1424. package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
  1425. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.d.ts +6 -0
  1426. package/mobile/lib/{ui-kit → components}/StickyBottomMenu/BurgerMenuDialog.js +14 -14
  1427. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
  1428. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
  1429. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +19 -0
  1430. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
  1431. package/{lib/ui-kit → mobile/lib/components}/StickyBottomMenu/StickyBottomMenuBurger.js +1 -1
  1432. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuBurger.js.map +1 -0
  1433. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +5 -0
  1434. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
  1435. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +8 -0
  1436. package/mobile/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuItem.js +1 -1
  1437. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -0
  1438. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +7 -0
  1439. package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
  1440. package/mobile/lib/components/StickyBottomMenu/TopItemMobile.d.ts +10 -0
  1441. package/mobile/lib/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
  1442. package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +7 -0
  1443. package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.js +22 -0
  1444. package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
  1445. package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +2 -2
  1446. package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -5
  1447. package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
  1448. package/mobile/lib/components/Tabs/Tabs.d.ts +1 -1
  1449. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  1450. package/mobile/lib/components/Tabs/TabsContent.d.ts +1 -1
  1451. package/mobile/lib/components/TabsLayout/TabsLayout.d.ts +2 -2
  1452. package/mobile/lib/components/TabsLayout/TabsLayout.js +5 -4
  1453. package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  1454. package/mobile/lib/components/TabsLayout/TabsLayoutContent.d.ts +1 -1
  1455. package/mobile/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
  1456. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  1457. package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +1 -1
  1458. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  1459. package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  1460. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  1461. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
  1462. package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
  1463. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.d.ts +1 -1
  1464. package/mobile/lib/components/TextBlock/TextBlock.d.ts +1 -1
  1465. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  1466. package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
  1467. package/mobile/lib/components/UnitBlock/UnitBlock.d.ts +1 -1
  1468. package/mobile/lib/components/UnitBlock/UnitBlock.js.map +1 -1
  1469. package/mobile/lib/components/UnitBlock/UnitBlockContent.d.ts +1 -1
  1470. package/mobile/lib/components/VerticalLayout/VerticalLayout.d.ts +2 -2
  1471. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +3 -4
  1472. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  1473. package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +1 -1
  1474. package/mobile/lib/components/Video/Video.d.ts +1 -1
  1475. package/mobile/lib/components/Video/Video.js.map +1 -1
  1476. package/mobile/lib/components/Video/VideoContent.d.ts +1 -1
  1477. package/mobile/lib/content-page-repository/computeImgOutputPath.d.ts +1 -1
  1478. package/mobile/lib/content-page-repository/computeImgOutputPath.js +2 -2
  1479. package/mobile/lib/content-page-repository/computeImgOutputPath.js.map +1 -1
  1480. package/mobile/lib/content-page-repository/transformContentPage.js +2 -4
  1481. package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
  1482. package/mobile/lib/content-page-repository/transformImg.js +2 -3
  1483. package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
  1484. package/mobile/lib/data/FooterData.d.ts +35 -0
  1485. package/mobile/lib/data/FooterData.js +2 -0
  1486. package/mobile/lib/data/FooterData.js.map +1 -0
  1487. package/mobile/lib/data/JSONRefObject.d.ts +4 -0
  1488. package/mobile/lib/data/JSONRefObject.js +2 -0
  1489. package/mobile/lib/data/JSONRefObject.js.map +1 -0
  1490. package/mobile/lib/data/PortalData.d.ts +3 -0
  1491. package/mobile/lib/data/PortalData.js +2 -0
  1492. package/mobile/lib/data/PortalData.js.map +1 -0
  1493. package/mobile/lib/data/SitemapData.d.ts +36 -0
  1494. package/mobile/lib/data/SitemapData.js.map +1 -0
  1495. package/mobile/lib/data/StickyMobileData.d.ts +15 -0
  1496. package/mobile/lib/data/StickyMobileData.js +2 -0
  1497. package/mobile/lib/data/StickyMobileData.js.map +1 -0
  1498. package/mobile/lib/hooks/useJSONRef/fetchRefs.d.ts +2 -0
  1499. package/mobile/lib/hooks/useJSONRef/fetchRefs.js +13 -0
  1500. package/mobile/lib/hooks/useJSONRef/fetchRefs.js.map +1 -0
  1501. package/mobile/lib/hooks/useJSONRef/useJSONRef.d.ts +1 -0
  1502. package/mobile/lib/hooks/useJSONRef/useJSONRef.js +16 -0
  1503. package/mobile/lib/hooks/useJSONRef/useJSONRef.js.map +1 -0
  1504. package/mobile/lib/hooks/useSWRResource.js +1 -3
  1505. package/mobile/lib/hooks/useSWRResource.js.map +1 -1
  1506. package/mobile/lib/index.d.ts +0 -1
  1507. package/mobile/lib/index.js +0 -1
  1508. package/mobile/lib/index.js.map +1 -1
  1509. package/mobile/lib/model/BlocksRegistry.d.ts +2 -2
  1510. package/mobile/lib/model/ContentPageBase.d.ts +21 -0
  1511. package/mobile/lib/model/ContentPageBase.js +2 -0
  1512. package/mobile/lib/model/ContentPageBase.js.map +1 -0
  1513. package/mobile/lib/model/ContentPageDef.d.ts +8 -23
  1514. package/mobile/lib/model/ContentPageMeta.d.ts +100 -0
  1515. package/mobile/lib/model/ContentPageMeta.js +2 -0
  1516. package/mobile/lib/model/ContentPageMeta.js.map +1 -0
  1517. package/mobile/lib/model/Picture.d.ts +0 -16
  1518. package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +1 -1
  1519. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -1
  1520. package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -1
  1521. package/mobile/lib/ui-kit/BlockWrapper.d.ts +1 -1
  1522. package/mobile/lib/ui-kit/DialogManager/isDialogOpen.d.ts +1 -1
  1523. package/mobile/lib/ui-kit/DialogManager/isDialogOpen.js +1 -1
  1524. package/mobile/lib/ui-kit/DialogManager/isDialogOpen.js.map +1 -1
  1525. package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -1
  1526. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.d.ts +6 -2
  1527. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +1 -3
  1528. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  1529. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -1
  1530. package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
  1531. package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.d.ts +2 -1
  1532. package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.js +2 -2
  1533. package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.js.map +1 -1
  1534. package/mobile/lib/ui-kit/SearchBar/SearchBar.d.ts +2 -1
  1535. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +4 -4
  1536. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  1537. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
  1538. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +2 -13
  1539. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  1540. package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.d.ts +1 -1
  1541. package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.js +2 -2
  1542. package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.js.map +1 -1
  1543. package/mobile/lib/ui-kit/Sitemap/Sitemap.d.ts +1 -1
  1544. package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
  1545. package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +1 -1
  1546. package/mobile/lib/wlc.json +0 -2
  1547. package/mobile/src/BlockRenderer/renderBlock.tsx +1 -1
  1548. package/mobile/src/BlockRenderer/renderChildren.ts +1 -1
  1549. package/mobile/src/ProjectSettings.ts +18 -57
  1550. package/mobile/src/UniBlock/UniBlock.tsx +34 -0
  1551. package/mobile/src/{model/JSXBlock.ts → UniBlock/UniBlockProps.ts} +2 -16
  1552. package/mobile/src/UniBlock/extractContent.ts +16 -0
  1553. package/mobile/src/components/AdTile/AdTile.tsx +13 -3
  1554. package/mobile/src/components/AdTile/AdTileContent.ts +1 -1
  1555. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
  1556. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -1
  1557. package/mobile/src/components/ApplicationForm/ApplicationFormUltraPremium.tsx +0 -2
  1558. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  1559. package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -1
  1560. package/mobile/src/components/Blocks.ts +2 -0
  1561. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
  1562. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +1 -1
  1563. package/mobile/src/components/ButtonsBlock/ButtonsBlock.tsx +1 -1
  1564. package/mobile/src/components/Calculator/Calculator.tsx +1 -1
  1565. package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -1
  1566. package/mobile/src/components/CardTransfer/CardTransferContent.ts +1 -1
  1567. package/mobile/src/components/Carousel/Carousel.tsx +20 -20
  1568. package/mobile/src/components/Carousel/CarouselContent.ts +1 -1
  1569. package/mobile/src/components/Carousel/renderCarouselCards.tsx +1 -1
  1570. package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
  1571. package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.ts +1 -1
  1572. package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -1
  1573. package/mobile/src/components/CarouselCard/CarouselCardContent.ts +1 -1
  1574. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
  1575. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +1 -1
  1576. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
  1577. package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +1 -1
  1578. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
  1579. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +1 -1
  1580. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +1 -1
  1581. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +1 -1
  1582. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
  1583. package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +1 -1
  1584. package/mobile/src/components/ComparisonTable/TableColumn.tsx +1 -1
  1585. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  1586. package/mobile/src/components/ContactsBlock/ContactsBlockContent.ts +1 -1
  1587. package/mobile/src/components/ContentPage/ContentPage.page.json +18 -2
  1588. package/mobile/src/components/ContentPage/ContentPage.tsx +37 -27
  1589. package/mobile/src/components/ContentPage/computeAPIFallback.ts +52 -28
  1590. package/mobile/src/components/ContentPage/loadModuleFallback.ts +11 -0
  1591. package/mobile/src/components/ContentPage/mapSlot.ts +2 -6
  1592. package/mobile/src/components/ContentPage/renderContentPageHead.tsx +3 -2
  1593. package/mobile/src/components/ContentPage/useContentPageData.ts +3 -3
  1594. package/mobile/src/components/DepositFiltration/DepositFiltration.tsx +13 -14
  1595. package/mobile/src/components/Depository/Depository.tsx +50 -52
  1596. package/mobile/src/components/Depository/DepositoryContent.ts +1 -1
  1597. package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +1 -1
  1598. package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +1 -1
  1599. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  1600. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +1 -1
  1601. package/mobile/src/components/Footer/Contacts.tsx +1 -1
  1602. package/mobile/src/components/Footer/Footer.tsx +18 -21
  1603. package/mobile/src/components/Footer/FooterContent.ts +6 -37
  1604. package/mobile/src/components/Footer/FooterProps.ts +6 -2
  1605. package/mobile/src/components/GracePeriod/GracePeriod.tsx +1 -1
  1606. package/mobile/src/components/GracePeriod/GracePeriodContent.ts +1 -1
  1607. package/mobile/src/components/Header/Header.tsx +5 -16
  1608. package/mobile/src/components/Header/HeaderContent.ts +3 -16
  1609. package/mobile/src/components/Header/HeaderProps.ts +6 -2
  1610. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +16 -14
  1611. package/mobile/src/components/Headline/Headline.tsx +1 -1
  1612. package/mobile/src/components/Headline/HeadlineContent.ts +1 -1
  1613. package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +4 -5
  1614. package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +1 -1
  1615. package/mobile/src/components/ImgBlock/ImgBlock.tsx +1 -1
  1616. package/mobile/src/components/ImgBlock/ImgBlockContent.ts +1 -1
  1617. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
  1618. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +1 -1
  1619. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
  1620. package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +1 -1
  1621. package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
  1622. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +1 -1
  1623. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  1624. package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
  1625. package/mobile/src/components/MortgageFiltration/MortgageFiltration.tsx +7 -7
  1626. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +1 -1
  1627. package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +1 -1
  1628. package/mobile/src/components/Placeholder/Placeholder.tsx +1 -1
  1629. package/mobile/src/components/Placeholder/PlaceholderContent.ts +1 -1
  1630. package/mobile/src/components/ProductBlock/ProductBlock.tsx +4 -5
  1631. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  1632. package/mobile/src/components/ProductGallery/ProductGallery.tsx +1 -1
  1633. package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +1 -1
  1634. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -1
  1635. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +1 -1
  1636. package/mobile/src/components/RichTextBlock/RichTextBlock.tsx +1 -1
  1637. package/mobile/src/components/RichTextBlock/RichTextBlockContent.ts +1 -1
  1638. package/mobile/src/components/RollupItem/RollupItem.tsx +6 -7
  1639. package/mobile/src/components/RollupItem/RollupItemContent.ts +1 -1
  1640. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +1 -1
  1641. package/mobile/src/components/SafeDepositRental/SafeDepositRentalContent.ts +1 -1
  1642. package/mobile/src/components/StepsBlock/StepsBlock.tsx +1 -1
  1643. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +1 -1
  1644. package/{src/ui-kit → mobile/src/components}/StickyBottomMenu/ActiveSubMenuItem.tsx +2 -2
  1645. package/{src/ui-kit → mobile/src/components}/StickyBottomMenu/BurgerMenuDialog.tsx +46 -32
  1646. package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.example.json +1 -0
  1647. package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +44 -0
  1648. package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.ui.json +1 -0
  1649. package/{src/ui-kit → mobile/src/components}/StickyBottomMenu/StickyBottomMenuBurger.tsx +1 -1
  1650. package/mobile/src/components/StickyBottomMenu/StickyBottomMenuContent.ts +6 -0
  1651. package/mobile/src/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuItem.tsx +3 -3
  1652. package/mobile/src/components/StickyBottomMenu/StickyBottomMenuProps.ts +8 -0
  1653. package/{src/ui-kit → mobile/src/components}/StickyBottomMenu/TopItemMobile.tsx +2 -2
  1654. package/mobile/src/components/StickyBottomMenu/useBurgerMenuDialog.tsx +33 -0
  1655. package/mobile/src/components/SwipeListControlBlock/SwipeListControlBlock.tsx +7 -9
  1656. package/mobile/src/components/Tabs/Tabs.tsx +1 -1
  1657. package/mobile/src/components/Tabs/TabsContent.ts +1 -1
  1658. package/mobile/src/components/TabsLayout/TabsLayout.tsx +7 -6
  1659. package/mobile/src/components/TabsLayout/TabsLayoutContent.ts +1 -1
  1660. package/mobile/src/components/TariffsTable/TariffsTable.tsx +1 -1
  1661. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
  1662. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -1
  1663. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
  1664. package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +1 -1
  1665. package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +1 -1
  1666. package/mobile/src/components/TextBlock/TextBlock.tsx +1 -1
  1667. package/mobile/src/components/TextBlock/TextBlockContent.ts +1 -1
  1668. package/mobile/src/components/UnitBlock/UnitBlock.tsx +1 -1
  1669. package/mobile/src/components/UnitBlock/UnitBlockContent.ts +1 -1
  1670. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +4 -5
  1671. package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +1 -1
  1672. package/mobile/src/components/Video/Video.tsx +1 -1
  1673. package/mobile/src/components/Video/VideoContent.ts +1 -1
  1674. package/mobile/src/content-page-repository/computeImgOutputPath.ts +2 -2
  1675. package/mobile/src/content-page-repository/transformContentPage.ts +2 -6
  1676. package/mobile/src/content-page-repository/transformImg.ts +4 -8
  1677. package/mobile/src/data/FooterData.ts +39 -0
  1678. package/mobile/src/data/JSONRefObject.ts +4 -0
  1679. package/mobile/src/data/PortalData.ts +3 -0
  1680. package/mobile/src/{services/sitemap → data}/SitemapData.ts +4 -5
  1681. package/mobile/src/data/StickyMobileData.ts +17 -0
  1682. package/mobile/src/hooks/useJSONRef/fetchRefs.ts +27 -0
  1683. package/mobile/src/hooks/useJSONRef/useJSONRef.ts +18 -0
  1684. package/mobile/src/hooks/useSWRResource.ts +1 -3
  1685. package/mobile/src/index.ts +0 -1
  1686. package/mobile/src/model/BlocksRegistry.ts +2 -2
  1687. package/mobile/src/model/ContentPageBase.ts +23 -0
  1688. package/mobile/src/model/ContentPageDef.ts +11 -25
  1689. package/mobile/src/model/ContentPageMeta.ts +100 -0
  1690. package/mobile/src/model/Picture.ts +0 -26
  1691. package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +1 -1
  1692. package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  1693. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
  1694. package/mobile/src/ui-kit/BlockWrapper.tsx +1 -1
  1695. package/mobile/src/ui-kit/DialogManager/isDialogOpen.ts +2 -2
  1696. package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +1 -1
  1697. package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +7 -4
  1698. package/mobile/src/ui-kit/LocationDialog/renderForeignOffices.tsx +1 -1
  1699. package/mobile/src/ui-kit/LocationDialog/useLocationDialog.tsx +3 -3
  1700. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +6 -5
  1701. package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +4 -17
  1702. package/mobile/src/ui-kit/SearchDialog/useSearchDialog.tsx +2 -2
  1703. package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +1 -1
  1704. package/mobile/src/ui-kit/TextWithIcon/TextWithIcon.tsx +1 -1
  1705. package/mobile/src/wlc.json +0 -2
  1706. package/package.json +2 -2
  1707. package/src/BlockRenderer/renderBlock.tsx +1 -1
  1708. package/src/BlockRenderer/renderChildren.ts +1 -1
  1709. package/src/ProjectSettings.ts +18 -57
  1710. package/src/UniBlock/UniBlock.tsx +34 -0
  1711. package/src/{model/JSXBlock.ts → UniBlock/UniBlockProps.ts} +2 -16
  1712. package/src/UniBlock/extractContent.ts +16 -0
  1713. package/src/components/AdTile/AdTile.tsx +13 -3
  1714. package/src/components/AdTile/AdTileContent.ts +1 -1
  1715. package/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
  1716. package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -1
  1717. package/src/components/ApplicationForm/ApplicationFormUltraPremium.tsx +0 -2
  1718. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  1719. package/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -1
  1720. package/src/components/Blocks.mobile.ts +2 -0
  1721. package/src/components/Blocks.ts +2 -0
  1722. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
  1723. package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +1 -1
  1724. package/src/components/ButtonsBlock/ButtonsBlock.tsx +1 -1
  1725. package/src/components/Calculator/Calculator.mobile.tsx +1 -1
  1726. package/src/components/Calculator/Calculator.tsx +1 -1
  1727. package/src/components/CardTransfer/CardTransfer.tsx +1 -1
  1728. package/src/components/CardTransfer/CardTransferContent.ts +1 -1
  1729. package/src/components/Carousel/Carousel.tsx +20 -20
  1730. package/src/components/Carousel/CarouselContent.ts +1 -1
  1731. package/src/components/Carousel/renderCarouselCards.tsx +1 -1
  1732. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.tsx +1 -1
  1733. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
  1734. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.ts +1 -1
  1735. package/src/components/CarouselCard/CarouselCard.tsx +1 -1
  1736. package/src/components/CarouselCard/CarouselCardContent.ts +1 -1
  1737. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
  1738. package/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +1 -1
  1739. package/src/components/CarouselLinks/CarouselLinks.mobile.tsx +1 -1
  1740. package/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
  1741. package/src/components/CarouselLinks/CarouselLinksContent.ts +1 -1
  1742. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
  1743. package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +1 -1
  1744. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +1 -1
  1745. package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +1 -1
  1746. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +1 -1
  1747. package/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
  1748. package/src/components/ComparisonTable/ComparisonTableContent.ts +1 -1
  1749. package/src/components/ComparisonTable/TableColumn.tsx +1 -1
  1750. package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  1751. package/src/components/ContactsBlock/ContactsBlockContent.ts +1 -1
  1752. package/src/components/ContentPage/ContentPage.page.json +18 -2
  1753. package/src/components/ContentPage/ContentPage.tsx +37 -27
  1754. package/src/components/ContentPage/computeAPIFallback.ts +52 -28
  1755. package/src/components/ContentPage/loadModuleFallback.ts +11 -0
  1756. package/src/components/ContentPage/mapSlot.ts +2 -6
  1757. package/src/components/ContentPage/renderContentPageHead.tsx +3 -2
  1758. package/src/components/ContentPage/useContentPageData.ts +3 -3
  1759. package/src/components/DepositFiltration/DepositFiltration.tsx +13 -14
  1760. package/src/components/Depository/Depository.tsx +50 -52
  1761. package/src/components/Depository/DepositoryContent.ts +1 -1
  1762. package/src/components/ErrorBlock/ErrorBlock.tsx +1 -1
  1763. package/src/components/ErrorBlock/ErrorBlockContent.ts +1 -1
  1764. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  1765. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +1 -1
  1766. package/src/components/Footer/Contacts.tsx +1 -1
  1767. package/src/components/Footer/Footer.fixture.mobile.tsx +11 -1
  1768. package/src/components/Footer/Footer.fixture.tsx +11 -1
  1769. package/src/components/Footer/Footer.mobile.tsx +18 -21
  1770. package/src/components/Footer/Footer.tsx +7 -13
  1771. package/src/components/Footer/FooterContent.ts +6 -37
  1772. package/src/components/Footer/FooterProps.ts +6 -2
  1773. package/src/components/Footer/HorizontalNavigation.tsx +16 -18
  1774. package/src/components/GracePeriod/GracePeriod.tsx +1 -1
  1775. package/src/components/GracePeriod/GracePeriodContent.ts +1 -1
  1776. package/src/components/Header/Header.fixture.mobile.tsx +12 -2
  1777. package/src/components/Header/Header.fixture.tsx +14 -6
  1778. package/src/components/Header/Header.mobile.tsx +5 -16
  1779. package/src/components/Header/Header.tsx +7 -24
  1780. package/src/components/Header/HeaderContent.ts +3 -16
  1781. package/src/components/Header/HeaderProps.ts +6 -2
  1782. package/src/components/Header/HeaderSecondaryMenu.tsx +16 -14
  1783. package/src/components/Headline/Headline.tsx +1 -1
  1784. package/src/components/Headline/HeadlineContent.ts +1 -1
  1785. package/src/components/HorizontalLayout/HorizontalLayout.mobile.tsx +4 -5
  1786. package/src/components/HorizontalLayout/HorizontalLayout.tsx +6 -7
  1787. package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +1 -1
  1788. package/src/components/ImgBlock/ImgBlock.tsx +1 -1
  1789. package/src/components/ImgBlock/ImgBlockContent.ts +1 -1
  1790. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
  1791. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +1 -1
  1792. package/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
  1793. package/src/components/InvestmentInfo/InvestmentInfoContent.ts +1 -1
  1794. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  1795. package/src/components/LinkDocs/LinkDocsContent.ts +1 -1
  1796. package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  1797. package/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
  1798. package/src/components/MortgageFiltration/MortgageFiltration.tsx +7 -7
  1799. package/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +1 -1
  1800. package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +1 -1
  1801. package/src/components/Placeholder/Placeholder.tsx +1 -1
  1802. package/src/components/Placeholder/PlaceholderContent.ts +1 -1
  1803. package/src/components/ProductBlock/ProductBlock.tsx +4 -5
  1804. package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
  1805. package/src/components/ProductGallery/ProductGallery.mobile.tsx +1 -1
  1806. package/src/components/ProductGallery/ProductGallery.tsx +1 -1
  1807. package/src/components/ProductGallery/ProductGalleryContent.ts +1 -1
  1808. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -1
  1809. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +1 -1
  1810. package/src/components/RichTextBlock/RichTextBlock.tsx +1 -1
  1811. package/src/components/RichTextBlock/RichTextBlockContent.ts +1 -1
  1812. package/src/components/RollupItem/RollupItem.tsx +6 -7
  1813. package/src/components/RollupItem/RollupItemContent.ts +1 -1
  1814. package/src/components/SafeDepositRental/SafeDepositRental.tsx +1 -1
  1815. package/src/components/SafeDepositRental/SafeDepositRentalContent.ts +1 -1
  1816. package/src/components/StepsBlock/StepsBlock.mobile.tsx +1 -1
  1817. package/src/components/StepsBlock/StepsBlock.tsx +1 -1
  1818. package/src/components/StepsBlock/StepsBlockContent.ts +1 -1
  1819. package/{mobile/src/ui-kit → src/components}/StickyBottomMenu/ActiveSubMenuItem.tsx +2 -2
  1820. package/{mobile/src/ui-kit → src/components}/StickyBottomMenu/BurgerMenuDialog.tsx +46 -32
  1821. package/src/components/StickyBottomMenu/StickyBottomMenu.example.json +1 -0
  1822. package/src/components/StickyBottomMenu/StickyBottomMenu.fixture.mobile.tsx +21 -0
  1823. package/src/components/StickyBottomMenu/StickyBottomMenu.fixture.tsx +11 -0
  1824. package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +44 -0
  1825. package/src/{ui-kit → components}/StickyBottomMenu/StickyBottomMenu.tsx +3 -1
  1826. package/src/components/StickyBottomMenu/StickyBottomMenu.ui.json +1 -0
  1827. package/{mobile/src/ui-kit → src/components}/StickyBottomMenu/StickyBottomMenuBurger.tsx +1 -1
  1828. package/src/components/StickyBottomMenu/StickyBottomMenuContent.ts +6 -0
  1829. package/src/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuItem.tsx +3 -3
  1830. package/src/components/StickyBottomMenu/StickyBottomMenuProps.ts +8 -0
  1831. package/{mobile/src/ui-kit → src/components}/StickyBottomMenu/TopItemMobile.tsx +2 -2
  1832. package/src/components/StickyBottomMenu/useBurgerMenuDialog.tsx +33 -0
  1833. package/src/components/SwipeListControlBlock/SwipeListControlBlock.tsx +7 -9
  1834. package/src/components/Tabs/Tabs.tsx +1 -1
  1835. package/src/components/Tabs/TabsContent.ts +1 -1
  1836. package/src/components/TabsLayout/TabsLayout.tsx +7 -6
  1837. package/src/components/TabsLayout/TabsLayoutContent.ts +1 -1
  1838. package/src/components/TariffsTable/TariffsTable.tsx +1 -1
  1839. package/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
  1840. package/src/components/TariffsTable/TariffsTableContent.ts +1 -1
  1841. package/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
  1842. package/src/components/TariffsTable/TariffsTableRowContainer.tsx +1 -1
  1843. package/src/components/TariffsTable/TariffsTableTileCell.tsx +1 -1
  1844. package/src/components/TextBlock/TextBlock.tsx +1 -1
  1845. package/src/components/TextBlock/TextBlockContent.ts +1 -1
  1846. package/src/components/UnitBlock/UnitBlock.tsx +1 -1
  1847. package/src/components/UnitBlock/UnitBlockContent.ts +1 -1
  1848. package/src/components/VerticalLayout/VerticalLayout.tsx +4 -5
  1849. package/src/components/VerticalLayout/VerticalLayoutContent.ts +1 -1
  1850. package/src/components/Video/Video.tsx +1 -1
  1851. package/src/components/Video/VideoContent.ts +1 -1
  1852. package/src/content-page-repository/computeImgOutputPath.ts +2 -2
  1853. package/src/content-page-repository/transformContentPage.ts +2 -6
  1854. package/src/content-page-repository/transformImg.ts +4 -8
  1855. package/src/data/FooterData.ts +39 -0
  1856. package/src/data/JSONRefObject.ts +4 -0
  1857. package/src/data/PortalData.ts +3 -0
  1858. package/src/{services/sitemap → data}/SitemapData.ts +4 -5
  1859. package/src/data/StickyMobileData.ts +17 -0
  1860. package/src/hooks/useJSONRef/fetchRefs.ts +27 -0
  1861. package/src/hooks/useJSONRef/useJSONRef.ts +18 -0
  1862. package/src/hooks/useSWRResource.ts +1 -3
  1863. package/src/index.ts +0 -1
  1864. package/src/model/AlignStyles.ts +1 -0
  1865. package/src/model/BlocksRegistry.ts +2 -2
  1866. package/src/model/ContentPageBase.ts +23 -0
  1867. package/src/model/ContentPageDef.ts +11 -25
  1868. package/src/model/ContentPageMeta.ts +100 -0
  1869. package/src/model/Picture.ts +0 -26
  1870. package/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +1 -1
  1871. package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
  1872. package/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
  1873. package/src/ui-kit/BlockWrapper.tsx +1 -1
  1874. package/src/ui-kit/DialogManager/isDialogOpen.ts +2 -2
  1875. package/src/ui-kit/Foldable/DefaultFoldButton.tsx +1 -1
  1876. package/src/ui-kit/LocationDialog/LocationDialog.tsx +7 -4
  1877. package/src/ui-kit/LocationDialog/renderForeignOffices.tsx +1 -1
  1878. package/src/ui-kit/LocationDialog/useLocationDialog.tsx +3 -3
  1879. package/src/ui-kit/SearchBar/SearchBar.tsx +6 -5
  1880. package/src/ui-kit/SearchDialog/SearchDialog.tsx +4 -17
  1881. package/src/ui-kit/SearchDialog/useSearchDialog.tsx +2 -2
  1882. package/src/ui-kit/Sitemap/Sitemap.tsx +1 -1
  1883. package/src/ui-kit/TextWithIcon/TextWithIcon.tsx +1 -1
  1884. package/src/wlc.json +0 -2
  1885. package/bin/migration-scripts/0.6.19.js +0 -21
  1886. package/bin/migration-scripts/0.6.21.js +0 -15
  1887. package/bundle/api/LikeAPI.d.ts +0 -9
  1888. package/bundle/components/AdTile/useAdTile.d.ts +0 -2
  1889. package/bundle/components/ContentPage/ContentPage.fallback.d.ts +0 -1
  1890. package/bundle/components/Footer/Footer.fallback.d.ts +0 -2
  1891. package/bundle/components/Footer/FooterDataProps.d.ts +0 -12
  1892. package/bundle/components/Footer/useFooterData.d.ts +0 -2
  1893. package/bundle/components/Header/Header.fallback.d.ts +0 -2
  1894. package/bundle/components/LikeControl/LikeControl.d.ts +0 -6
  1895. package/bundle/content-page-repository/alignImg.d.ts +0 -9
  1896. package/bundle/hooks/fallbackWCMSResource.d.ts +0 -2
  1897. package/bundle/hooks/useLikeService.d.ts +0 -5
  1898. package/bundle/services/sitemap/useSitemap.d.ts +0 -3
  1899. package/bundle/ui-kit/LinkButton/LikeButton.d.ts +0 -8
  1900. package/bundle/ui-kit/StickyBottomMenu/ActiveSubMenu.d.ts +0 -7
  1901. package/bundle/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +0 -2
  1902. package/bundle/ui-kit/StickyBottomMenu/StickyBottomMenuContent.d.ts +0 -22
  1903. package/bundle/ui-kit/StickyBottomMenu/StickyBottomMenuProps.d.ts +0 -5
  1904. package/bundle/ui-kit/StickyBottomMenu/useBurgerMenuDialog.d.ts +0 -6
  1905. package/dist/api/LikeAPI.d.ts +0 -9
  1906. package/dist/api/LikeAPI.js +0 -121
  1907. package/dist/api/LikeAPI.js.map +0 -1
  1908. package/dist/components/AdTile/useAdTile.d.ts +0 -2
  1909. package/dist/components/AdTile/useAdTile.js +0 -12
  1910. package/dist/components/AdTile/useAdTile.js.map +0 -1
  1911. package/dist/components/ContentPage/ContentPage.fallback.d.ts +0 -1
  1912. package/dist/components/ContentPage/ContentPage.fallback.js +0 -7
  1913. package/dist/components/ContentPage/ContentPage.fallback.js.map +0 -1
  1914. package/dist/components/Footer/Footer.fallback.d.ts +0 -2
  1915. package/dist/components/Footer/Footer.fallback.js +0 -10
  1916. package/dist/components/Footer/Footer.fallback.js.map +0 -1
  1917. package/dist/components/Footer/FooterDataProps.d.ts +0 -12
  1918. package/dist/components/Footer/FooterDataProps.js.map +0 -1
  1919. package/dist/components/Footer/useFooterData.d.ts +0 -2
  1920. package/dist/components/Footer/useFooterData.js +0 -11
  1921. package/dist/components/Footer/useFooterData.js.map +0 -1
  1922. package/dist/components/Header/Header.fallback.d.ts +0 -2
  1923. package/dist/components/Header/Header.fallback.js +0 -10
  1924. package/dist/components/Header/Header.fallback.js.map +0 -1
  1925. package/dist/components/LikeControl/LikeControl.d.ts +0 -6
  1926. package/dist/components/LikeControl/LikeControl.js +0 -14
  1927. package/dist/components/LikeControl/LikeControl.js.map +0 -1
  1928. package/dist/content-page-repository/alignImg.d.ts +0 -9
  1929. package/dist/content-page-repository/alignImg.js +0 -23
  1930. package/dist/content-page-repository/alignImg.js.map +0 -1
  1931. package/dist/hooks/fallbackWCMSResource.d.ts +0 -2
  1932. package/dist/hooks/fallbackWCMSResource.js +0 -10
  1933. package/dist/hooks/fallbackWCMSResource.js.map +0 -1
  1934. package/dist/hooks/useLikeService.d.ts +0 -5
  1935. package/dist/hooks/useLikeService.js +0 -27
  1936. package/dist/hooks/useLikeService.js.map +0 -1
  1937. package/dist/model/JSXBlock.js.map +0 -1
  1938. package/dist/services/sitemap/SitemapData.js.map +0 -1
  1939. package/dist/services/sitemap/useSitemap.d.ts +0 -3
  1940. package/dist/services/sitemap/useSitemap.js +0 -7
  1941. package/dist/services/sitemap/useSitemap.js.map +0 -1
  1942. package/dist/ui-kit/LinkButton/LikeButton.d.ts +0 -8
  1943. package/dist/ui-kit/LinkButton/LikeButton.js +0 -14
  1944. package/dist/ui-kit/LinkButton/LikeButton.js.map +0 -1
  1945. package/dist/ui-kit/StickyBottomMenu/ActiveSubMenu.d.ts +0 -7
  1946. package/dist/ui-kit/StickyBottomMenu/ActiveSubMenu.js +0 -7
  1947. package/dist/ui-kit/StickyBottomMenu/ActiveSubMenu.js.map +0 -1
  1948. package/dist/ui-kit/StickyBottomMenu/ActiveSubMenuItem.js.map +0 -1
  1949. package/dist/ui-kit/StickyBottomMenu/BurgerMenuDialog.js.map +0 -1
  1950. package/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.js +0 -5
  1951. package/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.js.map +0 -1
  1952. package/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +0 -2
  1953. package/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.js +0 -28
  1954. package/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.js.map +0 -1
  1955. package/dist/ui-kit/StickyBottomMenu/StickyBottomMenuBurger.js.map +0 -1
  1956. package/dist/ui-kit/StickyBottomMenu/StickyBottomMenuContent.d.ts +0 -22
  1957. package/dist/ui-kit/StickyBottomMenu/StickyBottomMenuContent.js.map +0 -1
  1958. package/dist/ui-kit/StickyBottomMenu/StickyBottomMenuItem.js.map +0 -1
  1959. package/dist/ui-kit/StickyBottomMenu/StickyBottomMenuProps.d.ts +0 -5
  1960. package/dist/ui-kit/StickyBottomMenu/StickyBottomMenuProps.js.map +0 -1
  1961. package/dist/ui-kit/StickyBottomMenu/TopItemMobile.js.map +0 -1
  1962. package/dist/ui-kit/StickyBottomMenu/useBurgerMenuDialog.d.ts +0 -6
  1963. package/dist/ui-kit/StickyBottomMenu/useBurgerMenuDialog.js.map +0 -1
  1964. package/lib/api/LikeAPI.d.ts +0 -9
  1965. package/lib/api/LikeAPI.js +0 -118
  1966. package/lib/api/LikeAPI.js.map +0 -1
  1967. package/lib/components/AdTile/useAdTile.d.ts +0 -2
  1968. package/lib/components/AdTile/useAdTile.js +0 -9
  1969. package/lib/components/AdTile/useAdTile.js.map +0 -1
  1970. package/lib/components/ContentPage/ContentPage.fallback.d.ts +0 -1
  1971. package/lib/components/ContentPage/ContentPage.fallback.js +0 -4
  1972. package/lib/components/ContentPage/ContentPage.fallback.js.map +0 -1
  1973. package/lib/components/Footer/Footer.fallback.d.ts +0 -2
  1974. package/lib/components/Footer/Footer.fallback.js +0 -7
  1975. package/lib/components/Footer/Footer.fallback.js.map +0 -1
  1976. package/lib/components/Footer/FooterDataProps.d.ts +0 -12
  1977. package/lib/components/Footer/FooterDataProps.js +0 -2
  1978. package/lib/components/Footer/FooterDataProps.js.map +0 -1
  1979. package/lib/components/Footer/useFooterData.d.ts +0 -2
  1980. package/lib/components/Footer/useFooterData.js +0 -8
  1981. package/lib/components/Footer/useFooterData.js.map +0 -1
  1982. package/lib/components/Header/Header.fallback.d.ts +0 -2
  1983. package/lib/components/Header/Header.fallback.js +0 -7
  1984. package/lib/components/Header/Header.fallback.js.map +0 -1
  1985. package/lib/components/LikeControl/LikeControl.d.ts +0 -6
  1986. package/lib/components/LikeControl/LikeControl.js +0 -12
  1987. package/lib/components/LikeControl/LikeControl.js.map +0 -1
  1988. package/lib/content-page-repository/alignImg.d.ts +0 -9
  1989. package/lib/content-page-repository/alignImg.js +0 -17
  1990. package/lib/content-page-repository/alignImg.js.map +0 -1
  1991. package/lib/hooks/fallbackWCMSResource.d.ts +0 -2
  1992. package/lib/hooks/fallbackWCMSResource.js +0 -7
  1993. package/lib/hooks/fallbackWCMSResource.js.map +0 -1
  1994. package/lib/hooks/useLikeService.d.ts +0 -5
  1995. package/lib/hooks/useLikeService.js +0 -24
  1996. package/lib/hooks/useLikeService.js.map +0 -1
  1997. package/lib/model/JSXBlock.js +0 -2
  1998. package/lib/model/JSXBlock.js.map +0 -1
  1999. package/lib/services/sitemap/SitemapData.js.map +0 -1
  2000. package/lib/services/sitemap/useSitemap.d.ts +0 -3
  2001. package/lib/services/sitemap/useSitemap.js +0 -4
  2002. package/lib/services/sitemap/useSitemap.js.map +0 -1
  2003. package/lib/ui-kit/LinkButton/LikeButton.d.ts +0 -8
  2004. package/lib/ui-kit/LinkButton/LikeButton.fixture.d.ts +0 -6
  2005. package/lib/ui-kit/LinkButton/LikeButton.js +0 -12
  2006. package/lib/ui-kit/LinkButton/LikeButton.js.map +0 -1
  2007. package/lib/ui-kit/StickyBottomMenu/ActiveSubMenu.d.ts +0 -7
  2008. package/lib/ui-kit/StickyBottomMenu/ActiveSubMenu.js +0 -5
  2009. package/lib/ui-kit/StickyBottomMenu/ActiveSubMenu.js.map +0 -1
  2010. package/lib/ui-kit/StickyBottomMenu/ActiveSubMenuItem.js.map +0 -1
  2011. package/lib/ui-kit/StickyBottomMenu/BurgerMenuDialog.js.map +0 -1
  2012. package/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.js +0 -3
  2013. package/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.js.map +0 -1
  2014. package/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +0 -2
  2015. package/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.js +0 -26
  2016. package/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.js.map +0 -1
  2017. package/lib/ui-kit/StickyBottomMenu/StickyBottomMenuBurger.js.map +0 -1
  2018. package/lib/ui-kit/StickyBottomMenu/StickyBottomMenuContent.d.ts +0 -22
  2019. package/lib/ui-kit/StickyBottomMenu/StickyBottomMenuContent.js.map +0 -1
  2020. package/lib/ui-kit/StickyBottomMenu/StickyBottomMenuItem.js.map +0 -1
  2021. package/lib/ui-kit/StickyBottomMenu/StickyBottomMenuProps.d.ts +0 -5
  2022. package/lib/ui-kit/StickyBottomMenu/StickyBottomMenuProps.js.map +0 -1
  2023. package/lib/ui-kit/StickyBottomMenu/TopItemMobile.js.map +0 -1
  2024. package/lib/ui-kit/StickyBottomMenu/useBurgerMenuDialog.d.ts +0 -6
  2025. package/lib/ui-kit/StickyBottomMenu/useBurgerMenuDialog.js +0 -23
  2026. package/lib/ui-kit/StickyBottomMenu/useBurgerMenuDialog.js.map +0 -1
  2027. package/mobile/bundle/api/LikeAPI.d.ts +0 -9
  2028. package/mobile/bundle/components/AdTile/useAdTile.d.ts +0 -2
  2029. package/mobile/bundle/components/ContentPage/ContentPage.fallback.d.ts +0 -1
  2030. package/mobile/bundle/components/Footer/Footer.fallback.d.ts +0 -2
  2031. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +0 -12
  2032. package/mobile/bundle/components/Footer/useFooterData.d.ts +0 -2
  2033. package/mobile/bundle/components/Header/Header.fallback.d.ts +0 -2
  2034. package/mobile/bundle/components/LikeControl/LikeControl.d.ts +0 -6
  2035. package/mobile/bundle/content-page-repository/alignImg.d.ts +0 -9
  2036. package/mobile/bundle/hooks/fallbackWCMSResource.d.ts +0 -2
  2037. package/mobile/bundle/hooks/useLikeService.d.ts +0 -5
  2038. package/mobile/bundle/services/sitemap/useSitemap.d.ts +0 -3
  2039. package/mobile/bundle/ui-kit/LinkButton/LikeButton.d.ts +0 -8
  2040. package/mobile/bundle/ui-kit/StickyBottomMenu/ActiveSubMenu.d.ts +0 -7
  2041. package/mobile/bundle/ui-kit/StickyBottomMenu/StickyBottomMenu.d.ts +0 -2
  2042. package/mobile/bundle/ui-kit/StickyBottomMenu/StickyBottomMenuContent.d.ts +0 -22
  2043. package/mobile/bundle/ui-kit/StickyBottomMenu/StickyBottomMenuProps.d.ts +0 -5
  2044. package/mobile/bundle/ui-kit/StickyBottomMenu/useBurgerMenuDialog.d.ts +0 -6
  2045. package/mobile/dist/api/LikeAPI.d.ts +0 -9
  2046. package/mobile/dist/api/LikeAPI.js +0 -121
  2047. package/mobile/dist/api/LikeAPI.js.map +0 -1
  2048. package/mobile/dist/components/AdTile/useAdTile.d.ts +0 -2
  2049. package/mobile/dist/components/AdTile/useAdTile.js +0 -12
  2050. package/mobile/dist/components/AdTile/useAdTile.js.map +0 -1
  2051. package/mobile/dist/components/ContentPage/ContentPage.fallback.d.ts +0 -1
  2052. package/mobile/dist/components/ContentPage/ContentPage.fallback.js +0 -7
  2053. package/mobile/dist/components/ContentPage/ContentPage.fallback.js.map +0 -1
  2054. package/mobile/dist/components/Footer/Footer.fallback.d.ts +0 -2
  2055. package/mobile/dist/components/Footer/Footer.fallback.js +0 -10
  2056. package/mobile/dist/components/Footer/Footer.fallback.js.map +0 -1
  2057. package/mobile/dist/components/Footer/FooterDataProps.d.ts +0 -12
  2058. package/mobile/dist/components/Footer/FooterDataProps.js.map +0 -1
  2059. package/mobile/dist/components/Footer/useFooterData.d.ts +0 -2
  2060. package/mobile/dist/components/Footer/useFooterData.js +0 -11
  2061. package/mobile/dist/components/Footer/useFooterData.js.map +0 -1
  2062. package/mobile/dist/components/Header/Header.fallback.d.ts +0 -2
  2063. package/mobile/dist/components/Header/Header.fallback.js +0 -10
  2064. package/mobile/dist/components/Header/Header.fallback.js.map +0 -1
  2065. package/mobile/dist/components/LikeControl/LikeControl.d.ts +0 -6
  2066. package/mobile/dist/components/LikeControl/LikeControl.js +0 -14
  2067. package/mobile/dist/components/LikeControl/LikeControl.js.map +0 -1
  2068. package/mobile/dist/content-page-repository/alignImg.d.ts +0 -9
  2069. package/mobile/dist/content-page-repository/alignImg.js +0 -23
  2070. package/mobile/dist/content-page-repository/alignImg.js.map +0 -1
  2071. package/mobile/dist/hooks/fallbackWCMSResource.d.ts +0 -2
  2072. package/mobile/dist/hooks/fallbackWCMSResource.js +0 -10
  2073. package/mobile/dist/hooks/fallbackWCMSResource.js.map +0 -1
  2074. package/mobile/dist/hooks/useLikeService.d.ts +0 -5
  2075. package/mobile/dist/hooks/useLikeService.js +0 -27
  2076. package/mobile/dist/hooks/useLikeService.js.map +0 -1
  2077. package/mobile/dist/model/JSXBlock.d.ts +0 -36
  2078. package/mobile/dist/model/JSXBlock.js.map +0 -1
  2079. package/mobile/dist/services/sitemap/SitemapData.d.ts +0 -37
  2080. package/mobile/dist/services/sitemap/SitemapData.js.map +0 -1
  2081. package/mobile/dist/services/sitemap/useSitemap.d.ts +0 -3
  2082. package/mobile/dist/services/sitemap/useSitemap.js +0 -7
  2083. package/mobile/dist/services/sitemap/useSitemap.js.map +0 -1
  2084. package/mobile/dist/ui-kit/LinkButton/LikeButton.d.ts +0 -8
  2085. package/mobile/dist/ui-kit/LinkButton/LikeButton.js +0 -14
  2086. package/mobile/dist/ui-kit/LinkButton/LikeButton.js.map +0 -1
  2087. package/mobile/dist/ui-kit/StickyBottomMenu/ActiveSubMenu.d.ts +0 -7
  2088. package/mobile/dist/ui-kit/StickyBottomMenu/ActiveSubMenu.js +0 -7
  2089. package/mobile/dist/ui-kit/StickyBottomMenu/ActiveSubMenu.js.map +0 -1
  2090. package/mobile/dist/ui-kit/StickyBottomMenu/ActiveSubMenuItem.js.map +0 -1
  2091. package/mobile/dist/ui-kit/StickyBottomMenu/BurgerMenuDialog.d.ts +0 -7
  2092. package/mobile/dist/ui-kit/StickyBottomMenu/BurgerMenuDialog.js.map +0 -1
  2093. package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.d.ts +0 -2
  2094. package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.js +0 -28
  2095. package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.js.map +0 -1
  2096. package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenuBurger.js.map +0 -1
  2097. package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenuContent.d.ts +0 -22
  2098. package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenuContent.js.map +0 -1
  2099. package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenuItem.d.ts +0 -8
  2100. package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenuItem.js.map +0 -1
  2101. package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenuProps.d.ts +0 -5
  2102. package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenuProps.js.map +0 -1
  2103. package/mobile/dist/ui-kit/StickyBottomMenu/TopItemMobile.js.map +0 -1
  2104. package/mobile/dist/ui-kit/StickyBottomMenu/useBurgerMenuDialog.d.ts +0 -6
  2105. package/mobile/dist/ui-kit/StickyBottomMenu/useBurgerMenuDialog.js.map +0 -1
  2106. package/mobile/lib/api/LikeAPI.d.ts +0 -9
  2107. package/mobile/lib/api/LikeAPI.js +0 -118
  2108. package/mobile/lib/api/LikeAPI.js.map +0 -1
  2109. package/mobile/lib/components/AdTile/useAdTile.d.ts +0 -2
  2110. package/mobile/lib/components/AdTile/useAdTile.js +0 -9
  2111. package/mobile/lib/components/AdTile/useAdTile.js.map +0 -1
  2112. package/mobile/lib/components/ContentPage/ContentPage.fallback.d.ts +0 -1
  2113. package/mobile/lib/components/ContentPage/ContentPage.fallback.js +0 -4
  2114. package/mobile/lib/components/ContentPage/ContentPage.fallback.js.map +0 -1
  2115. package/mobile/lib/components/Footer/Footer.fallback.d.ts +0 -2
  2116. package/mobile/lib/components/Footer/Footer.fallback.js +0 -7
  2117. package/mobile/lib/components/Footer/Footer.fallback.js.map +0 -1
  2118. package/mobile/lib/components/Footer/FooterDataProps.d.ts +0 -12
  2119. package/mobile/lib/components/Footer/FooterDataProps.js +0 -2
  2120. package/mobile/lib/components/Footer/FooterDataProps.js.map +0 -1
  2121. package/mobile/lib/components/Footer/useFooterData.d.ts +0 -2
  2122. package/mobile/lib/components/Footer/useFooterData.js +0 -8
  2123. package/mobile/lib/components/Footer/useFooterData.js.map +0 -1
  2124. package/mobile/lib/components/Header/Header.fallback.d.ts +0 -2
  2125. package/mobile/lib/components/Header/Header.fallback.js +0 -7
  2126. package/mobile/lib/components/Header/Header.fallback.js.map +0 -1
  2127. package/mobile/lib/components/LikeControl/LikeControl.d.ts +0 -6
  2128. package/mobile/lib/components/LikeControl/LikeControl.js +0 -12
  2129. package/mobile/lib/components/LikeControl/LikeControl.js.map +0 -1
  2130. package/mobile/lib/content-page-repository/alignImg.d.ts +0 -9
  2131. package/mobile/lib/content-page-repository/alignImg.js +0 -17
  2132. package/mobile/lib/content-page-repository/alignImg.js.map +0 -1
  2133. package/mobile/lib/hooks/fallbackWCMSResource.d.ts +0 -2
  2134. package/mobile/lib/hooks/fallbackWCMSResource.js +0 -7
  2135. package/mobile/lib/hooks/fallbackWCMSResource.js.map +0 -1
  2136. package/mobile/lib/hooks/useLikeService.d.ts +0 -5
  2137. package/mobile/lib/hooks/useLikeService.js +0 -24
  2138. package/mobile/lib/hooks/useLikeService.js.map +0 -1
  2139. package/mobile/lib/model/JSXBlock.d.ts +0 -36
  2140. package/mobile/lib/model/JSXBlock.js +0 -2
  2141. package/mobile/lib/model/JSXBlock.js.map +0 -1
  2142. package/mobile/lib/services/sitemap/SitemapData.d.ts +0 -37
  2143. package/mobile/lib/services/sitemap/SitemapData.js.map +0 -1
  2144. package/mobile/lib/services/sitemap/useSitemap.d.ts +0 -3
  2145. package/mobile/lib/services/sitemap/useSitemap.js +0 -4
  2146. package/mobile/lib/services/sitemap/useSitemap.js.map +0 -1
  2147. package/mobile/lib/ui-kit/LinkButton/LikeButton.d.ts +0 -8
  2148. package/mobile/lib/ui-kit/LinkButton/LikeButton.js +0 -12
  2149. package/mobile/lib/ui-kit/LinkButton/LikeButton.js.map +0 -1
  2150. package/mobile/lib/ui-kit/StickyBottomMenu/ActiveSubMenu.d.ts +0 -7
  2151. package/mobile/lib/ui-kit/StickyBottomMenu/ActiveSubMenu.js +0 -5
  2152. package/mobile/lib/ui-kit/StickyBottomMenu/ActiveSubMenu.js.map +0 -1
  2153. package/mobile/lib/ui-kit/StickyBottomMenu/ActiveSubMenuItem.js.map +0 -1
  2154. package/mobile/lib/ui-kit/StickyBottomMenu/BurgerMenuDialog.d.ts +0 -7
  2155. package/mobile/lib/ui-kit/StickyBottomMenu/BurgerMenuDialog.js.map +0 -1
  2156. package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.d.ts +0 -2
  2157. package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.js +0 -26
  2158. package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.js.map +0 -1
  2159. package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenuBurger.js.map +0 -1
  2160. package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenuContent.d.ts +0 -22
  2161. package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenuContent.js.map +0 -1
  2162. package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenuItem.d.ts +0 -8
  2163. package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenuItem.js.map +0 -1
  2164. package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenuProps.d.ts +0 -5
  2165. package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenuProps.js.map +0 -1
  2166. package/mobile/lib/ui-kit/StickyBottomMenu/TopItemMobile.d.ts +0 -10
  2167. package/mobile/lib/ui-kit/StickyBottomMenu/TopItemMobile.js.map +0 -1
  2168. package/mobile/lib/ui-kit/StickyBottomMenu/useBurgerMenuDialog.d.ts +0 -6
  2169. package/mobile/lib/ui-kit/StickyBottomMenu/useBurgerMenuDialog.js +0 -23
  2170. package/mobile/lib/ui-kit/StickyBottomMenu/useBurgerMenuDialog.js.map +0 -1
  2171. package/mobile/src/api/LikeAPI.ts +0 -154
  2172. package/mobile/src/components/AdTile/useAdTile.ts +0 -17
  2173. package/mobile/src/components/ContentPage/ContentPage.fallback.ts +0 -9
  2174. package/mobile/src/components/Footer/Footer.fallback.ts +0 -8
  2175. package/mobile/src/components/Footer/FooterDataProps.ts +0 -13
  2176. package/mobile/src/components/Footer/useFooterData.ts +0 -13
  2177. package/mobile/src/components/Header/Header.fallback.ts +0 -13
  2178. package/mobile/src/components/LikeControl/LikeControl.tsx +0 -32
  2179. package/mobile/src/content-page-repository/alignImg.ts +0 -31
  2180. package/mobile/src/hooks/fallbackWCMSResource.ts +0 -14
  2181. package/mobile/src/hooks/useLikeService.ts +0 -29
  2182. package/mobile/src/services/sitemap/useSitemap.ts +0 -7
  2183. package/mobile/src/ui-kit/LinkButton/LikeButton.tsx +0 -46
  2184. package/mobile/src/ui-kit/StickyBottomMenu/ActiveSubMenu.tsx +0 -17
  2185. package/mobile/src/ui-kit/StickyBottomMenu/StickyBottomMenu.tsx +0 -52
  2186. package/mobile/src/ui-kit/StickyBottomMenu/StickyBottomMenuContent.ts +0 -24
  2187. package/mobile/src/ui-kit/StickyBottomMenu/StickyBottomMenuProps.tsx +0 -6
  2188. package/mobile/src/ui-kit/StickyBottomMenu/useBurgerMenuDialog.tsx +0 -34
  2189. package/src/api/LikeAPI.ts +0 -154
  2190. package/src/components/AdTile/useAdTile.ts +0 -17
  2191. package/src/components/ContentPage/ContentPage.fallback.ts +0 -9
  2192. package/src/components/Footer/Footer.fallback.ts +0 -8
  2193. package/src/components/Footer/FooterDataProps.ts +0 -13
  2194. package/src/components/Footer/useFooterData.ts +0 -13
  2195. package/src/components/Header/Header.fallback.ts +0 -13
  2196. package/src/components/LikeControl/LikeControl.fixture.tsx +0 -11
  2197. package/src/components/LikeControl/LikeControl.tsx +0 -32
  2198. package/src/content-page-repository/alignImg.ts +0 -31
  2199. package/src/hooks/fallbackWCMSResource.ts +0 -14
  2200. package/src/hooks/useLikeService.ts +0 -29
  2201. package/src/services/sitemap/useSitemap.ts +0 -7
  2202. package/src/ui-kit/LinkButton/LikeButton.fixture.tsx +0 -6
  2203. package/src/ui-kit/LinkButton/LikeButton.tsx +0 -46
  2204. package/src/ui-kit/StickyBottomMenu/ActiveSubMenu.tsx +0 -17
  2205. package/src/ui-kit/StickyBottomMenu/StickyBottomMenu.fixture.mobile.tsx +0 -36
  2206. package/src/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.tsx +0 -52
  2207. package/src/ui-kit/StickyBottomMenu/StickyBottomMenuContent.ts +0 -24
  2208. package/src/ui-kit/StickyBottomMenu/StickyBottomMenuProps.tsx +0 -6
  2209. package/src/ui-kit/StickyBottomMenu/useBurgerMenuDialog.tsx +0 -34
  2210. /package/bundle/{ui-kit → components}/StickyBottomMenu/ActiveSubMenuItem.d.ts +0 -0
  2211. /package/bundle/{ui-kit → components}/StickyBottomMenu/StickyBottomMenu.d.ts +0 -0
  2212. /package/bundle/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.d.ts +0 -0
  2213. /package/dist/{ui-kit → components}/StickyBottomMenu/ActiveSubMenuItem.d.ts +0 -0
  2214. /package/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenu.d.ts +0 -0
  2215. /package/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.d.ts +0 -0
  2216. /package/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuContent.js +0 -0
  2217. /package/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuProps.js +0 -0
  2218. /package/dist/{ui-kit → components}/StickyBottomMenu/TopItemMobile.js +0 -0
  2219. /package/dist/{services/sitemap → data}/SitemapData.js +0 -0
  2220. /package/lib/{ui-kit → components}/StickyBottomMenu/ActiveSubMenuItem.d.ts +0 -0
  2221. /package/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenu.d.ts +0 -0
  2222. /package/lib/components/{LikeControl/LikeControl.fixture.d.ts → StickyBottomMenu/StickyBottomMenu.fixture.d.ts} +0 -0
  2223. /package/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenu.fixture.mobile.d.ts +0 -0
  2224. /package/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.d.ts +0 -0
  2225. /package/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuContent.js +0 -0
  2226. /package/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuProps.js +0 -0
  2227. /package/lib/{ui-kit → components}/StickyBottomMenu/TopItemMobile.js +0 -0
  2228. /package/lib/{services/sitemap → data}/SitemapData.js +0 -0
  2229. /package/mobile/bundle/{ui-kit → components}/StickyBottomMenu/ActiveSubMenuItem.d.ts +0 -0
  2230. /package/mobile/bundle/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.d.ts +0 -0
  2231. /package/mobile/dist/{ui-kit → components}/StickyBottomMenu/ActiveSubMenuItem.d.ts +0 -0
  2232. /package/mobile/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.d.ts +0 -0
  2233. /package/mobile/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuContent.js +0 -0
  2234. /package/mobile/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuProps.js +0 -0
  2235. /package/mobile/dist/{ui-kit → components}/StickyBottomMenu/TopItemMobile.js +0 -0
  2236. /package/mobile/dist/{services/sitemap → data}/SitemapData.js +0 -0
  2237. /package/mobile/lib/{ui-kit → components}/StickyBottomMenu/ActiveSubMenuItem.d.ts +0 -0
  2238. /package/mobile/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.d.ts +0 -0
  2239. /package/mobile/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuContent.js +0 -0
  2240. /package/mobile/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuProps.js +0 -0
  2241. /package/mobile/lib/{ui-kit → components}/StickyBottomMenu/TopItemMobile.js +0 -0
  2242. /package/mobile/lib/{services/sitemap → data}/SitemapData.js +0 -0
@@ -1,6 +1,6 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('path'), require('fs/promises')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'path', 'fs/promises'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.UniMobileBlocks = {}));
5
5
  })(this, (function (exports) { 'use strict';
6
6
 
@@ -53,175 +53,6 @@
53
53
  };
54
54
  }
55
55
 
56
- const appendSlash = (url) => url && !url.endsWith('/') ? `${url}/` : url;
57
-
58
- const DEFAULT_PROJECT_SETTINGS = { PROD_BRANCH: 'master' };
59
- const projectSettings = new (class {
60
- _ = DEFAULT_PROJECT_SETTINGS;
61
- setup(_) {
62
- this._ = _;
63
- }
64
- get TEST_BRANCH() {
65
- return this._.TEST_BRANCH;
66
- }
67
- get RC_BRANCH() {
68
- return this._.RC_BRANCH;
69
- }
70
- get PROD_BRANCH() {
71
- return this._.PROD_BRANCH || DEFAULT_PROJECT_SETTINGS.PROD_BRANCH;
72
- }
73
- get FORCED_DRAFT_FLOW() {
74
- return this._.FORCED_DRAFT_FLOW;
75
- }
76
- get ASSIST_PROJECT_ID() {
77
- return this._.ASSIST_PROJECT_ID;
78
- }
79
- get SITEMAP() {
80
- return this._.SITEMAP;
81
- }
82
- get STICKY_MOBILE_MENU() {
83
- return this._.STICKY_MOBILE_MENU;
84
- }
85
- get FOOTER() {
86
- return this._.FOOTER;
87
- }
88
- get PORTAL_DATA() {
89
- return this._.PORTAL_DATA;
90
- }
91
- get CHAT_BOT() {
92
- return this._.CHAT_BOT;
93
- }
94
- get CDN() {
95
- return appendSlash(this._.CDN);
96
- }
97
- get BASE_PATH() {
98
- return appendSlash(this._.BASE_PATH);
99
- }
100
- get YANDEX_MAP_API_KEY() {
101
- return this._.YANDEX_MAP_API_KEY;
102
- }
103
- get YANDEX_METRIKA_ID() {
104
- return this._.YANDEX_METRIKA_ID;
105
- }
106
- })();
107
-
108
- const AUTH_PREFIX = 'guest';
109
- const STORAGE_KEY = 'likesToken';
110
- // eslint-disable-next-line max-lines-per-function
111
- function LikeAPI() {
112
- async function getLikeCount(...nodeIds) {
113
- if (!nodeIds.length) {
114
- return [];
115
- }
116
- const { token: Authorization } = await auth();
117
- try {
118
- const response = await fetch(`/assist/v1/public/projects/${projectSettings.ASSIST_PROJECT_ID}/nodes/likes`, {
119
- method: 'POST',
120
- mode: 'cors',
121
- headers: { 'Content-Type': 'application/json', Authorization },
122
- body: JSON.stringify({
123
- node_ids: nodeIds,
124
- }),
125
- });
126
- const { likes } = await response.json();
127
- return likes || [];
128
- }
129
- catch (e) {
130
- console.error(e);
131
- return [];
132
- }
133
- }
134
- async function like(nodeId) {
135
- if (!nodeId) {
136
- return 0;
137
- }
138
- const { token: Authorization, name } = await auth();
139
- try {
140
- const response = await fetch(`/assist/v1/public/projects/${projectSettings.ASSIST_PROJECT_ID}/nodes/like`, {
141
- method: 'POST',
142
- mode: 'cors',
143
- headers: {
144
- 'Content-Type': 'application/json',
145
- Authorization,
146
- UserID: name,
147
- },
148
- body: JSON.stringify({
149
- node_id: nodeId,
150
- user_name: name,
151
- }),
152
- });
153
- const { likes } = await response.json();
154
- return likes || 0;
155
- }
156
- catch (e) {
157
- console.error(e);
158
- return 0;
159
- }
160
- }
161
- async function dislike(nodeId) {
162
- if (!nodeId) {
163
- return 0;
164
- }
165
- const { token: Authorization, name } = await auth();
166
- try {
167
- const response = await fetch(`/assist/v1/public/projects/${projectSettings.ASSIST_PROJECT_ID}/nodes/unlike`, {
168
- method: 'POST',
169
- mode: 'cors',
170
- headers: {
171
- 'Content-Type': 'application/json',
172
- Authorization,
173
- UserID: name,
174
- },
175
- body: JSON.stringify({
176
- node_id: nodeId,
177
- user_name: name,
178
- }),
179
- });
180
- const { likes } = await response.json();
181
- return likes || 0;
182
- }
183
- catch (e) {
184
- console.error(e);
185
- return 0;
186
- }
187
- }
188
- async function auth() {
189
- try {
190
- const userData = JSON.parse(globalThis.localStorage?.getItem(STORAGE_KEY) || '');
191
- if (userData?.token) {
192
- return userData;
193
- }
194
- }
195
- catch (e) {
196
- // do nothing
197
- }
198
- try {
199
- const response = await fetch(`/assist/v1/public/auth`, {
200
- method: 'POST',
201
- mode: 'cors',
202
- headers: {
203
- 'Content-Type': 'application/json',
204
- },
205
- body: JSON.stringify({
206
- prefix: AUTH_PREFIX,
207
- }),
208
- });
209
- const { token, name } = await response.json();
210
- globalThis.localStorage?.setItem(STORAGE_KEY, JSON.stringify({ token, name }));
211
- return { token, name };
212
- }
213
- catch (e) {
214
- console.error(e);
215
- return {};
216
- }
217
- }
218
- return {
219
- getLikeCount,
220
- like,
221
- dislike,
222
- };
223
- }
224
-
225
56
  const jsx = (...args) => globalThis._uni._jsx(...args);
226
57
  const jsxs = (...args) => globalThis._uni._jsxs(...args);
227
58
 
@@ -444,6 +275,21 @@
444
275
  : null;
445
276
  }
446
277
 
278
+ const appendSlash = (url) => url && !url.endsWith('/') ? `${url}/` : url;
279
+
280
+ const URI_KEYS = ['CDN', 'BASE_PATH'];
281
+ const projectSettings = new Proxy({
282
+ _: {},
283
+ setup(_) {
284
+ this._ = _;
285
+ },
286
+ }, {
287
+ get(target, p) {
288
+ const result = target._[p] || target[p];
289
+ return URI_KEYS.includes(p) ? appendSlash(result) : result;
290
+ },
291
+ });
292
+
447
293
  const dirname = (path) => path?.split('/').slice(0, -1).join('/');
448
294
 
449
295
  const isUUID = (src) => {
@@ -825,74 +671,75 @@
825
671
  const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
826
672
  const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
827
673
 
828
- const ProductBlock = JSX(({ className, padding, ...rest }) => (jsx(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', className), padding: "p-0", ...rest, children: jsx(BaseProductTile, { defaultPadding: "p-6xl", padding: padding, className: "grow h-full", ...rest }) })));
829
- ProductBlock.childrenTypes = ['UnitBlock'];
674
+ const isJSONArray = (_) => Boolean(_ && Array.isArray(_));
675
+ const isJSONRecord = (_) => Boolean(_ && !Array.isArray(_) && typeof _ === 'object');
676
+ const isJSONRef = (_) => Boolean(isJSONRecord(_) && typeof _.$ref === 'string');
830
677
 
831
- const isFilled = (_) => _ !== null && _ !== undefined;
678
+ const mapJSONNode = (json, handlers) => {
679
+ if (isJSONRef(json)) {
680
+ return handlers.ref(json);
681
+ }
682
+ else if (isJSONRecord(json)) {
683
+ return handlers.record(json);
684
+ }
685
+ else if (isJSONArray(json)) {
686
+ return handlers.array(json);
687
+ }
688
+ else {
689
+ return handlers.scalar ? handlers.scalar(json) : json;
690
+ }
691
+ };
832
692
 
833
- const defaultCache = new Map();
834
- const applyCache = (fetcher, cache = defaultCache) => (args) => {
835
- const key = computeKey(args);
836
- const cachedData = cache.get(key);
837
- if (key && isFilled(cachedData)) {
838
- return cachedData;
839
- }
840
- const data = fetcher(...args);
841
- if (key && isFilled(data)) {
842
- cache.set(key, Promise.resolve(data));
843
- }
844
- return data;
845
- };
846
- const isKey = (args) => Boolean(args?.every(_ => (Array.isArray(_) ? isKey(_) : !_ || typeof _ === 'string')));
847
- const computeKey = (args) => (isKey(args) ? args.toString() : '');
693
+ const mergeRecords = (entries) => entries.reduce((acc, _) => Object.assign(acc, _), {});
848
694
 
849
- const isFallbackKey = (args) => Boolean(args && Array.isArray(args) && args.length === 1 && typeof args[0] === 'string');
850
- function useAsyncData(key, fetcher, { fallback, cache } = {}) {
851
- const args = useMemo(() => keyToArgs(key), [key]);
852
- const [data, setData] = useState(undefined);
853
- const [error, setError] = useState(undefined);
854
- useEffect(() => {
855
- const isEmptyKey = !args.some(isFilled);
856
- if (isEmptyKey) {
857
- return;
858
- }
859
- let canceled = false;
860
- const setResult = (newData, err) => {
861
- if (!canceled) {
862
- setData(newData);
863
- setError(err);
864
- }
865
- };
866
- (async () => {
867
- try {
868
- setResult(await applyCache(fetcher, cache)(args));
869
- }
870
- catch (err) {
871
- setResult(undefined, err);
872
- }
873
- })();
874
- return () => {
875
- canceled = true;
876
- };
877
- }, [fetcher, cache, args]);
878
- const fallbackData = fallback && isFallbackKey(args) && fallback[args[0]];
879
- return {
880
- data: !data && fallbackData ? fallbackData : data,
881
- error,
882
- mutate: () => Promise.resolve(undefined) // TODO Clean up cache
883
- };
884
- }
885
- function keyToArgs(key) {
886
- if (Array.isArray(key)) {
887
- return key;
888
- }
889
- else if (key instanceof Function) {
890
- return keyToArgs(key());
891
- }
892
- else {
893
- return [key];
894
- }
895
- }
695
+ const parseJPointer = (uri) => uri.includes('#')
696
+ ? uri
697
+ .substring(uri.indexOf('#') + 1)
698
+ .split('/')
699
+ .filter(Boolean)
700
+ : [];
701
+
702
+ const resolveJPointer = (json, uri) => parseJPointer(uri).reduce(selectNodeByKey, json);
703
+ const selectNodeByKey = (json, key) => {
704
+ if (!json || !key) {
705
+ return json;
706
+ }
707
+ if (isJSONRecord(json)) {
708
+ return json[key];
709
+ }
710
+ else if (isJSONArray(json)) {
711
+ return json[parseInt(key, 10)];
712
+ }
713
+ else {
714
+ return json;
715
+ }
716
+ };
717
+
718
+ const resolveRef = (json, resolver) => mapJSONNode(json, {
719
+ ref: ({ $ref, ...rest }) => resolveRef($ref ? resolveJPointer(resolver($ref), $ref) : rest, resolver),
720
+ record: record => mergeRecords(Object.entries(record).map(([key, value]) => ({ [key]: resolveRef(value, resolver) }))),
721
+ array: list => list.map(_ => resolveRef(_, resolver))
722
+ });
723
+
724
+ const visitRef = (json, visitor, path = []) => {
725
+ mapJSONNode(json, {
726
+ ref: json => visitor(json.$ref, path),
727
+ record: record => {
728
+ for (const key in record)
729
+ visitRef(record[key], visitor, [...path, key]);
730
+ },
731
+ array: list => {
732
+ for (let i = 0; i < list.length; i++)
733
+ visitRef(list[i], visitor, [...path, i]);
734
+ }
735
+ });
736
+ };
737
+
738
+ const collectRef = (json) => {
739
+ const refs = [];
740
+ visitRef(json, _ => refs.push(_));
741
+ return refs;
742
+ };
896
743
 
897
744
  async function fetchJSON(url, options) {
898
745
  try {
@@ -914,27 +761,52 @@
914
761
  return response.json();
915
762
  };
916
763
 
917
- const EMPTY_VALUE$4 = {};
918
- const DEFAULT_PATH_DIR = '/wcms-resources';
919
- function useSWRResource(filename, options = {}) {
920
- const { fallback = EMPTY_VALUE$4, pathDir = DEFAULT_PATH_DIR } = options;
921
- const { data } = useAsyncData(filename ? `${pathDir}/${filename}.json` : null, fetchJSONUnsafe, {
922
- fallback,
764
+ const unique = (list) => [...new Set(list)];
765
+
766
+ const refsCache = {};
767
+ const EXCLUSIONS = ['/portal-resources']; // portal-resources are handled only at compile-time
768
+ const fetchRefs = async (refs) => Object.fromEntries((await Promise.allSettled(unique(refs)
769
+ .filter(($ref) => !EXCLUSIONS.some((_) => $ref.startsWith(_)))
770
+ .map(async ($ref) => [
771
+ $ref,
772
+ (refsCache[$ref] ||= await fetchJSONUnsafe($ref)),
773
+ ])))
774
+ .filter((res) => res.status === 'fulfilled')
775
+ .map(({ value }) => value));
776
+
777
+ const useJSONRef = (content, fallback) => {
778
+ const refs = collectRef(content);
779
+ const [refsMap, setRefsMap] = useState({});
780
+ useEffect(() => {
781
+ if (refs.length) {
782
+ fetchRefs(refs).then(setRefsMap);
783
+ }
784
+ }, [refs.join()]);
785
+ return refs.length
786
+ ? resolveRef(content, (_) => refsMap[_] || fallback?.[_])
787
+ : content;
788
+ };
789
+
790
+ const extractContent = ({ block, options, className, defaultPadding, padding, isTheme, version, children, ...content }) => content;
791
+
792
+ function UniBlock(InputComponent, meta = {}) {
793
+ const OutputComponent = JSX((props) => {
794
+ const content = useJSONRef(extractContent(props), props.options?.page?.fallback);
795
+ return jsx(InputComponent, { ...props, ...content });
923
796
  });
924
- return data || EMPTY_VALUE$4;
797
+ Object.assign(OutputComponent, meta);
798
+ return OutputComponent;
925
799
  }
926
800
 
927
- const useAdTile = (sourceBook = 'reklamnaya-plitka') => {
928
- const data = useSWRResource(sourceBook);
929
- const tileIndex = useMemo(() => randomNumInRange(0, data?.items?.length), [data]);
930
- return data?.items?.[tileIndex];
931
- };
932
- const randomNumInRange = (min = 0, max = 0) => Math.floor(Math.random() * (max - min) + min);
801
+ const ProductBlock = UniBlock(({ className, padding, ...rest }) => (jsx(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', className), padding: "p-0", ...rest, children: jsx(BaseProductTile, { defaultPadding: "p-6xl", padding: padding, className: "grow h-full", ...rest }) })), { childrenTypes: ['UnitBlock'] });
933
802
 
934
803
  const AdTile = JSX((props) => {
935
- const content = useAdTile(props.options?.page?.adSourceBook);
804
+ const { items } = (props.options?.page?.adSourceBook ?? {});
805
+ const tileIndex = useMemo(() => randomNumber(0, items?.length), [items]);
806
+ const content = items?.[tileIndex];
936
807
  return content ? (jsx(ClientOnly, { children: jsx(ProductBlock, { ...content, ...props }) })) : null;
937
808
  });
809
+ const randomNumber = (min = 0, max = 0) => Math.floor(Math.random() * (max - min) + min);
938
810
 
939
811
  const formatPhone = (phone) => phone?.replace(/[^+\d]/g, '');
940
812
 
@@ -1136,6 +1008,72 @@
1136
1008
  },
1137
1009
  ];
1138
1010
 
1011
+ const isFilled = (_) => _ !== null && _ !== undefined;
1012
+
1013
+ const defaultCache = new Map();
1014
+ const applyCache = (fetcher, cache = defaultCache) => (args) => {
1015
+ const key = computeKey(args);
1016
+ const cachedData = cache.get(key);
1017
+ if (key && isFilled(cachedData)) {
1018
+ return cachedData;
1019
+ }
1020
+ const data = fetcher(...args);
1021
+ if (key && isFilled(data)) {
1022
+ cache.set(key, Promise.resolve(data));
1023
+ }
1024
+ return data;
1025
+ };
1026
+ const isKey = (args) => Boolean(args?.every(_ => (Array.isArray(_) ? isKey(_) : !_ || typeof _ === 'string')));
1027
+ const computeKey = (args) => (isKey(args) ? args.toString() : '');
1028
+
1029
+ const isFallbackKey = (args) => Boolean(args && Array.isArray(args) && args.length === 1 && typeof args[0] === 'string');
1030
+ function useAsyncData(key, fetcher, { fallback, cache } = {}) {
1031
+ const args = useMemo(() => keyToArgs(key), [key]);
1032
+ const [data, setData] = useState(undefined);
1033
+ const [error, setError] = useState(undefined);
1034
+ useEffect(() => {
1035
+ const isEmptyKey = !args.some(isFilled);
1036
+ if (isEmptyKey) {
1037
+ return;
1038
+ }
1039
+ let canceled = false;
1040
+ const setResult = (newData, err) => {
1041
+ if (!canceled) {
1042
+ setData(newData);
1043
+ setError(err);
1044
+ }
1045
+ };
1046
+ (async () => {
1047
+ try {
1048
+ setResult(await applyCache(fetcher, cache)(args));
1049
+ }
1050
+ catch (err) {
1051
+ setResult(undefined, err);
1052
+ }
1053
+ })();
1054
+ return () => {
1055
+ canceled = true;
1056
+ };
1057
+ }, [fetcher, cache, args]);
1058
+ const fallbackData = fallback && isFallbackKey(args) && fallback[args[0]];
1059
+ return {
1060
+ data: !data && fallbackData ? fallbackData : data,
1061
+ error,
1062
+ mutate: () => Promise.resolve(undefined) // TODO Clean up cache
1063
+ };
1064
+ }
1065
+ function keyToArgs(key) {
1066
+ if (Array.isArray(key)) {
1067
+ return key;
1068
+ }
1069
+ else if (key instanceof Function) {
1070
+ return keyToArgs(key());
1071
+ }
1072
+ else {
1073
+ return [key];
1074
+ }
1075
+ }
1076
+
1139
1077
  const REGIONS_URL$1 = '/api/v1/regions';
1140
1078
  function useRegions() {
1141
1079
  const { data } = useAsyncData(REGIONS_URL$1, fetchJSONUnsafe);
@@ -1593,14 +1531,14 @@
1593
1531
  });
1594
1532
 
1595
1533
  const BRANCHES_URL = '/api/v1/branches';
1596
- const EMPTY_VALUE$3 = [];
1534
+ const EMPTY_VALUE$4 = [];
1597
1535
  function useBranches(regionCode) {
1598
1536
  const { data } = useAsyncData(regionCode ? `${BRANCHES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes$1);
1599
- return data || EMPTY_VALUE$3;
1537
+ return data || EMPTY_VALUE$4;
1600
1538
  }
1601
1539
  const fetchSafeBoxes$1 = async (url) => {
1602
1540
  const result = await fetchJSON(url, { method: 'GET' });
1603
- return result || EMPTY_VALUE$3;
1541
+ return result || EMPTY_VALUE$4;
1604
1542
  };
1605
1543
 
1606
1544
  const REGIONS_URL = '/api/v1/premiumBranchesByRegions';
@@ -1831,6 +1769,14 @@
1831
1769
  });
1832
1770
  const getLegalEntity = (typeFormKey = '', serviceDirectionKey = '') => typeFormKey === 'FEEDBACK_QS' && serviceDirectionKey === 'Юридическое лицо / ИП';
1833
1771
 
1772
+ const EMPTY_VALUE$3 = {};
1773
+ const DEFAULT_PATH_DIR = '/wcms-resources';
1774
+ function useSWRResource(filename, options = {}) {
1775
+ const { fallback = EMPTY_VALUE$3, pathDir = DEFAULT_PATH_DIR } = options;
1776
+ const { data } = useAsyncData(filename ? `${pathDir}/${filename}.json` : null, fetchJSONUnsafe, { fallback });
1777
+ return data || EMPTY_VALUE$3;
1778
+ }
1779
+
1834
1780
  const ApplicationFormGrantSupport = JSX((props) => {
1835
1781
  const { button, sourceBookDir } = props;
1836
1782
  const { regions } = useSWRResource(sourceBookDir || 'regions-grant-support');
@@ -3194,7 +3140,7 @@
3194
3140
 
3195
3141
  const VISIBLE_ITEM_COUNT = 0;
3196
3142
 
3197
- const Carousel = JSX(({ className, itemCount, visibleItemCount = VISIBLE_ITEM_COUNT, noCardBorder, isAlignCenter, arrowsPadded = true, isGap = true, cardSize = 'normal', ...rest }) => {
3143
+ const Carousel = UniBlock(({ className, itemCount, visibleItemCount = VISIBLE_ITEM_COUNT, noCardBorder, isAlignCenter, arrowsPadded = true, isGap = true, cardSize = 'normal', ...rest }) => {
3198
3144
  const { blocks: childBlocks = [] } = rest.block || {};
3199
3145
  const count = itemCount || childBlocks?.length;
3200
3146
  const [activeIndex, { inc: increaseActiveIndex, dec: decreaseActiveIndex }] = useCarouselControls({
@@ -3206,21 +3152,22 @@
3206
3152
  // TODO Remove
3207
3153
  const isBankHistoryCarousel = childBlocks && childBlocks[0]?.type === 'CarouselBankHistoryCard';
3208
3154
  return (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsxs("div", { className: style(isAlignCenter ? 'flex justify-center' : '', 'relative max-w-full'), children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: isGap ? ITEMS_GAP : undefined, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderCarouselCards({ noCardBorder, activeIndex, cardSize, ...rest }) }), jsx(CarouselScrollButtons, { scroll: scroll, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }), jsx(SwipeListControlDots, { className: "@5xl:hidden", containerRef: containerRef, activeIndex: dotsActiveIndex, dotCount: count, listType: "horizontal-list" })] }));
3209
- });
3210
- Carousel.childrenTypes = [
3211
- 'CarouselCard',
3212
- 'CarouselBankHistoryCard',
3213
- 'CarouselCatalogCard',
3214
- 'CarouselRecommendationCard',
3215
- 'CarouselTariffsCard',
3216
- 'RichTextBlock',
3217
- 'ProductBlock',
3218
- ];
3219
- Carousel.childSchema = () => ({
3220
- isHighlighting: {
3221
- title: 'Выделить карточку',
3222
- type: 'boolean',
3223
- },
3155
+ }, {
3156
+ childrenTypes: [
3157
+ 'CarouselCard',
3158
+ 'CarouselBankHistoryCard',
3159
+ 'CarouselCatalogCard',
3160
+ 'CarouselRecommendationCard',
3161
+ 'CarouselTariffsCard',
3162
+ 'RichTextBlock',
3163
+ 'ProductBlock',
3164
+ ],
3165
+ childSchema: () => ({
3166
+ isHighlighting: {
3167
+ title: 'Выделить карточку',
3168
+ type: 'boolean',
3169
+ },
3170
+ }),
3224
3171
  });
3225
3172
 
3226
3173
  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", isEmbedded: true }) })));
@@ -3485,8 +3432,6 @@
3485
3432
  return (jsxs("div", { children: [item?.title ? (jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.title }) })) : null, jsx(SlideCheckboxGroup, { items: options, multiple: !item?.single, ...field(key) })] }, key));
3486
3433
  };
3487
3434
 
3488
- const unique = (list) => [...new Set(list)];
3489
-
3490
3435
  const isRateRow = (rateRow) => {
3491
3436
  return typeof rateRow?.minMonths === 'number' && typeof rateRow?.maxMonths === 'number';
3492
3437
  };
@@ -3533,7 +3478,7 @@
3533
3478
  },
3534
3479
  period: 3,
3535
3480
  };
3536
- const DepositFiltration = JSX(({ className, filtrationSchema = {}, resetButton, sumInput, periodInput, ...rest }) => {
3481
+ const DepositFiltration = UniBlock(({ className, filtrationSchema = {}, resetButton, sumInput, periodInput, ...rest }) => {
3537
3482
  const { source, months } = useDepositsPeriods(rest.block?.blocks);
3538
3483
  const [filtrationState, { field, reset }] = useForm(initialFiltrationState$1);
3539
3484
  const blocksToRender = filtrationState === initialFiltrationState$1
@@ -3544,15 +3489,15 @@
3544
3489
  format: ({ min }) => String(min),
3545
3490
  }) }), jsx(InputRange, { title: periodInput?.title, items: ['От 3 мес', 'До 5 лет'], list: months, ...field('period') })] }));
3546
3491
  return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [renderFiltrationForm$1({ field, reset, filtrationSchema, resetButton, children: Inputs }), jsx(BaseFiltrationInner, { blocksToRender: blocksToRender, ...rest })] }));
3547
- });
3548
- const sourceBookSchema = {
3549
- type: 'string',
3550
- title: 'Адрес справочника',
3551
- };
3552
- DepositFiltration.childrenTypes = ['ProductTile'];
3553
- DepositFiltration.childSchema = (content) => ({
3554
- ...(content?.filtrationSchema || {}),
3555
- sourceBook: sourceBookSchema,
3492
+ }, {
3493
+ childrenTypes: ['ProductTile'],
3494
+ childSchema: (content) => ({
3495
+ ...(content?.filtrationSchema || {}),
3496
+ sourceBook: {
3497
+ type: 'string',
3498
+ title: 'Адрес справочника',
3499
+ },
3500
+ }),
3556
3501
  });
3557
3502
 
3558
3503
  const renderErrorContent = (error) => {
@@ -3758,8 +3703,6 @@
3758
3703
  return currencies?.filter((_) => _?.currency?.id === 1 || _?.currency?.id === 2) || [];
3759
3704
  };
3760
3705
 
3761
- const useSitemap = (fallback) => useSWRResource(projectSettings.SITEMAP || 'sitemap', { fallback });
3762
-
3763
3706
  const mapCookie = (name, mapper) => {
3764
3707
  const cookies = globalThis.document?.cookie.split(';') ?? [];
3765
3708
  const [, value] = cookies.map((_) => _.split('=')).find(([key]) => key.trim() === name) || [];
@@ -3780,7 +3723,7 @@
3780
3723
 
3781
3724
  const rollupItemStyles = '';
3782
3725
 
3783
- const RollupItem = JSX(({ className = '', isExpanded, isFoldButtonOnTop = true, label = 'Развернуть', labelIcon, labelIconBgVersion, foldButtonVersion = 'default',
3726
+ const RollupItem = UniBlock(({ className = '', isExpanded, isFoldButtonOnTop = true, label = 'Развернуть', labelIcon, labelIconBgVersion, foldButtonVersion = 'default',
3784
3727
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
3785
3728
  version, ...rest }) => (jsx(BlockWrapper, { className: style('w-full', rollupItemStyles, className), defaultPadding: "p-0", tag: "div", version: "transparent", ...rest, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: style('gap-lg', foldableSectionStyles), isUnfolded: isUnfolded, children: renderChildren({
3786
3729
  ...rest,
@@ -3792,10 +3735,9 @@
3792
3735
  labelIconBgVersion,
3793
3736
  isUnfolded,
3794
3737
  onToggle,
3795
- }) }) })));
3796
- RollupItem.childrenTypes = {
3797
- exclude: ['RollupItem'],
3798
- };
3738
+ }) }) })), {
3739
+ childrenTypes: { exclude: ['RollupItem'] },
3740
+ });
3799
3741
  const renderFoldButton$1 = ({ foldButtonVersion, label: defaultLabel, labelIcon, labelIconBgVersion, isUnfolded, onToggle, }) => {
3800
3742
  const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
3801
3743
  const icon = getIconName(isUnfolded);
@@ -3846,16 +3788,16 @@
3846
3788
 
3847
3789
  const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: style('@container', 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 @5xl: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] })));
3848
3790
 
3849
- const Footer = JSX(({ className, ...rest }) => {
3850
- const fallback = rest.options?.page?.fallback;
3851
- const { topItems } = useSitemap(fallback);
3852
- const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = useSWRResource(projectSettings.FOOTER || 'footer', { fallback });
3791
+ const Footer = UniBlock(({ className, footer, ...rest }) => {
3792
+ const { topItems } = rest.options?.page?.sitemap ?? {};
3793
+ const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = footer || {};
3853
3794
  const handleOnClick = useCallback(() => {
3854
3795
  const [name, oldValue, newValue] = COOKIE_REPLACE;
3855
3796
  mapCookie(name, (value) => value?.replace(oldValue, newValue));
3856
3797
  }, []);
3857
- return (jsxs(BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl pb-24", ...rest, children: [jsx("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems?.map((item, i) => (jsx(RollupItem, { foldButtonVersion: "accordion", label: item?.text, labelIcon: item?.icon, children: jsx(LinkList, { items: item.items, basePath: appendSlash(item.href) }) }, String(i)))) }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), jsxs("div", { className: "mt-xl", children: [jsx(SocialMedia, { className: "mb-xl", media: socialMedia, stretched: true, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsxs("div", { className: "mb-xl", children: [jsx("div", { className: "flex flex-col gap-4 mb-xs", children: mobileApps?.map(renderButton) }), 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: "py-lg border-t border-main-divider", children: jsx(HorizontalNavigationLink, { text: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0436\u043D\u044E\u044E \u0432\u0435\u0440\u0441\u0438\u044E \u0441\u0430\u0439\u0442\u0430", className: "text-l font-light max-w-[292px]", href: "https://old.rshb.ru", onClick: handleOnClick }) }), jsx(HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3798
+ return (jsxs(BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl pb-24", ...rest, children: [jsx("div", { className: "mb-lg pb-xs border-b border-main-divider", children: renderTopItems(topItems) }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), jsxs("div", { className: "mt-xl", children: [jsx(SocialMedia, { className: "mb-xl", media: socialMedia, stretched: true, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsxs("div", { className: "mb-xl", children: [jsx("div", { className: "flex flex-col gap-4 mb-xs", children: mobileApps?.map(renderButton) }), 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: "py-lg border-t border-main-divider", children: jsx(HorizontalNavigationLink, { text: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0436\u043D\u044E\u044E \u0432\u0435\u0440\u0441\u0438\u044E \u0441\u0430\u0439\u0442\u0430", className: "text-l font-light max-w-[292px]", href: "https://old.rshb.ru", onClick: handleOnClick }) }), jsx(HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
3858
3799
  });
3800
+ const renderTopItems = (topItems) => topItems?.map((item, i) => (jsx(RollupItem, { foldButtonVersion: "accordion", label: item?.text, labelIcon: item?.icon, children: jsx(LinkList, { items: item.items, basePath: appendSlash(item.href) }) }, String(i))));
3859
3801
  const renderButton = ({ href = '/', text }, i) => {
3860
3802
  const { label } = findIconByHref(href);
3861
3803
  return (jsx(LinkButton, { className: "w-full", text: text || label, version: "secondary", href: href, target: "_blank" }, String(i)));
@@ -3910,12 +3852,9 @@
3910
3852
  'bg-white': 'primary',
3911
3853
  transparent: 'transparent',
3912
3854
  };
3913
- const Header = JSX(({ bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
3914
- const { logo } = useSitemap(rest.options?.page?.fallback);
3915
- const { internetBankUrl } = useSWRResource(projectSettings.PORTAL_DATA || 'portal-data', {
3916
- fallback: rest.options?.page?.fallback,
3917
- pathDir: joinPath(projectSettings.BASE_PATH, 'portal-resources'),
3918
- });
3855
+ const Header = UniBlock(({ bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], portal, ...rest }) => {
3856
+ const { logo } = rest.options?.page?.sitemap ?? {};
3857
+ const { internetBankUrl } = portal || {};
3919
3858
  return (jsx(BlockWrapper, { tag: "header", defaultPadding: "", version: version, ...rest, children: jsx("div", { className: "container px-lg py-2xs box-border", children: jsx(HeaderTop, { bgColor: bgColor, logo: logo, internetBankUrl: internetBankUrl, version: version, ...rest }) }) }));
3920
3859
  });
3921
3860
 
@@ -3929,7 +3868,7 @@
3929
3868
  '': '',
3930
3869
  };
3931
3870
 
3932
- const VerticalLayout = JSX(({ className = '', padding = 'p-0', gap = '', isInnerPadding = true, version = 'transparent', isTheme = false, isCardBorder = false, image, ...rest }) => {
3871
+ const VerticalLayout = UniBlock(({ className = '', padding = 'p-0', gap = '', isInnerPadding = true, version = 'transparent', isTheme = false, isCardBorder = false, image, ...rest }) => {
3933
3872
  const router = useRouter();
3934
3873
  return (jsx(BlockWrapper, { className: style('relative flex flex-col', gapStyles[gap], image?.src ? 'bg-right-bottom bg-no-repeat' : '', className), ...(image?.src
3935
3874
  ? { style: { backgroundImage: `url(${adjustSrc(router)(image?.src)})` } }
@@ -3940,11 +3879,9 @@
3940
3879
  padding: isInnerPadding ? '' : 'p-0',
3941
3880
  },
3942
3881
  }) }));
3943
- });
3944
- VerticalLayout.childrenTypes = [];
3882
+ }, { childrenTypes: [] });
3945
3883
 
3946
- const HorizontalLayout = JSX((props) => jsx(VerticalLayout, { ...props }));
3947
- HorizontalLayout.childrenTypes = [];
3884
+ const HorizontalLayout = UniBlock((props) => jsx(VerticalLayout, { ...props }), { childrenTypes: [] });
3948
3885
 
3949
3886
  const ImgBlock = JSX((props) => {
3950
3887
  const { className, image, ...rest } = props;
@@ -4105,7 +4042,7 @@
4105
4042
  propertyType: [],
4106
4043
  stage: [],
4107
4044
  };
4108
- const MortgageFiltration = JSX(({ className, hotFilters, filtrationSchema = {}, resetButton, ...rest }) => {
4045
+ const MortgageFiltration = UniBlock(({ className, hotFilters, filtrationSchema = {}, resetButton, ...rest }) => {
4109
4046
  const [filtrationState, { field, reset, update: replaceFiltrationState }] = useForm(initialFiltrationState);
4110
4047
  const blocksToRender = filtrationState === initialFiltrationState
4111
4048
  ? rest.block?.blocks
@@ -4118,9 +4055,10 @@
4118
4055
  onFiltrationStateChange: handleFiltrationStateChange,
4119
4056
  });
4120
4057
  return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(TabsControl, { ...tabsControlProps }), renderFiltrationForm$1({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, { blocksToRender: blocksToRender, ...rest })] }));
4058
+ }, {
4059
+ childrenTypes: ['ProductTile'],
4060
+ childSchema: (content) => content?.filtrationSchema || {},
4121
4061
  });
4122
- MortgageFiltration.childrenTypes = ['ProductTile'];
4123
- MortgageFiltration.childSchema = (content) => content?.filtrationSchema || {};
4124
4062
 
4125
4063
  function renderClusterer(yandexMaps, map, points) {
4126
4064
  map.geoObjects.removeAll();
@@ -4798,947 +4736,904 @@
4798
4736
  };
4799
4737
  const getIconSizeStyle = (size) => (size === 'normal' ? '38' : '24');
4800
4738
 
4801
- const scrollButtonStyle = 'hidden sm:flex absolute z-40 top-0';
4802
- const ScrollableTabsControl = JSX(({ className, items = [], value, onChange, tabsType }) => {
4803
- const [containerRef, scroll] = useSwipeListScroll({
4804
- itemCount: items?.length || 0,
4805
- });
4806
- return (jsxs("div", { className: style('relative overflow-x-auto no-scrollbar', className), role: "tablist", children: [jsx(SwipeListContainer, { containerRef: containerRef, snapAlign: "snap-start", onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: items.map(renderTab(value, onChange, tabsType)) }), scroll.canScrollLeft ? (jsx(ScrollLeftButton, { className: style('left-6', scrollButtonStyle), onClick: scroll.scrollLeft })) : null, scroll.canScrollRight ? (jsx(ScrollRightButton, { className: style('right-6', scrollButtonStyle), onClick: scroll.scrollRight })) : null] }));
4807
- });
4739
+ const isHrefActive = (router) => ({ href }) => !href ? false : withoutQuery(getRouterHref(href, router)).startsWith(withoutQuery(href));
4740
+ const getRouterHref = (href, router) => isURL(href) ? router.href : router.pathname;
4808
4741
 
4809
- const renderTabs = ({ tabsMode, ...props }) => {
4810
- switch (tabsMode) {
4811
- case 'wideScreen':
4812
- return jsx(TabsControl, { ...props });
4813
- case 'centered':
4814
- return (jsx("div", { className: "flex", children: jsx(TabsControl, { className: "m-auto p-xs rounded-md bg-main-gray", tabsType: "rounded", ...props }) }));
4815
- case 'scrollable':
4816
- return (jsx("div", { className: "flex", children: jsx(ScrollableTabsControl, { className: "m-auto", tabsType: "underlined", ...props }) }));
4817
- default:
4818
- return null;
4819
- }
4820
- };
4742
+ const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
4821
4743
 
4822
- const TAB_QUERY_PARAM_KEY = 'tab';
4823
- const Tabs = JSX(({ className = '', isSticky, tabs = [], tabsMode, ...rest }) => {
4744
+ function useActiveRoute(items = []) {
4824
4745
  const router = useRouter();
4825
- const { isReady } = router;
4826
- const tabsControlItems = useMemo(() => tabs.map(normalizeTab), [tabs]);
4827
- const [activeTabIndex, setActiveTabIndex] = useState(0);
4828
- useEffect(() => {
4829
- if (!tabs || !tabs[0]) {
4830
- return;
4831
- }
4832
- const defaultTabIndex = router.query[TAB_QUERY_PARAM_KEY]
4833
- ? tabs.findIndex((_) => _.type === 'group' && _.ref === router.query[TAB_QUERY_PARAM_KEY]) || 0
4834
- : 0;
4835
- const defaultTab = tabs[defaultTabIndex] || tabs[0];
4836
- setActiveTabIndex(defaultTabIndex);
4837
- fireTabEvent(defaultTab);
4838
- }, [isReady]);
4839
- useEffect(() => {
4840
- const activeTab = tabs[activeTabIndex];
4841
- if (activeTab?.type === 'group') {
4842
- defaultEventBus.subject('tab', {
4843
- type: activeTab.type,
4844
- label: activeTab.ref,
4845
- groupName: activeTab.name,
4846
- });
4847
- }
4848
- }, [tabs, activeTabIndex]);
4849
- const updateUrlSearchTabParam = (_) => {
4850
- const searchParams = new URLSearchParams(router.query);
4851
- if (_.name) {
4852
- searchParams.set(TAB_QUERY_PARAM_KEY, _.name);
4853
- }
4854
- else {
4855
- searchParams.delete(TAB_QUERY_PARAM_KEY);
4856
- }
4857
- router.replace(`${router.pathname}?${searchParams}`, '', { scroll: false });
4858
- };
4859
- const handleChange = useCallback((_) => {
4860
- const index = tabsControlItems.indexOf(_);
4861
- const tab = tabs[index];
4862
- setActiveTabIndex(index);
4863
- fireTabEvent(tab);
4864
- if (tab.type === 'group') {
4865
- updateUrlSearchTabParam(_);
4866
- }
4867
- }, [tabs, tabsControlItems]);
4868
- return (jsx(BlockWrapper, { className: style(isSticky ? 'sticky top-1 z-20' : '', className), defaultPadding: "p-0", ...rest, children: renderTabs({
4869
- items: tabsControlItems,
4870
- value: tabsControlItems[activeTabIndex],
4871
- tabsMode,
4872
- onChange: handleChange,
4873
- }) }));
4874
- });
4875
- const fireTabEvent = (tab) => {
4876
- if (tab.type === 'group') {
4877
- defaultEventBus.fire('tab', { type: tab.type, label: tab.ref, groupName: tab.name });
4878
- }
4879
- if (tab.type === 'link') {
4880
- defaultEventBus.fire('tab', { type: tab.type, label: tab.href });
4881
- }
4882
- };
4883
- const normalizeTab = (_) => _?.type === 'group' ? { text: _.title, name: _.ref } : _;
4746
+ const activeIndex = items.findIndex(isTopItemActive(router));
4747
+ return [activeIndex, items[activeIndex]];
4748
+ }
4884
4749
 
4885
- const alignTabStyle = {
4886
- start: 'text-start',
4887
- center: 'text-center',
4888
- end: 'text-end',
4889
- };
4750
+ const StickyBottomMenuBurger = JSX(({ isActive, onClick }) => (jsxs("button", { className: style(isActive ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer`), onClick: onClick, children: [jsx(Icon, { className: "w-6 h-6", name: "BurgerIcon", iconVersion: isActive ? 'color' : 'black' }), "\u041C\u0435\u043D\u044E"] })));
4890
4751
 
4891
- const getButtonClassNames = (isActive) => ({
4892
- btn: `w-96 ${isActive
4893
- ? 'p-m border-none bg-primary-main text-white'
4894
- : 'p-s ease-in duration-300 bg-white text-primary-text'}`,
4895
- title: isActive ? 'mb-xs text-xl' : 'mb-2xs text-l',
4896
- desc: `font-light ${isActive ? 'text-l text-white' : 'text-m text-secondary-text'}`,
4897
- icon: isActive ? '' : 'text-primary-main',
4898
- iconVersion: (isActive ? 'white' : 'normal'),
4899
- });
4900
- const TabsLayoutButton = JSX(({ tab, className, onClick, isActive }) => {
4901
- const buttonClassNames = getButtonClassNames(isActive);
4902
- return (jsxs("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: style('border border-gray cursor-pointer text-left border-b-0 mt-auto flex gap-2xs', buttonClassNames.btn, className), children: [tab?.icon ? (jsx(Img, { className: style('h-6 w-6 min-w-6 min-h-6', buttonClassNames.icon), image: {
4903
- ...tab?.icon,
4904
- iconVersion: tab?.icon?.iconVersion ?? buttonClassNames.iconVersion,
4905
- }, width: "24", height: "24" })) : null, jsxs("div", { className: "border-0", children: [tab?.title ? jsx("div", { className: buttonClassNames.title, children: tab.title }) : null, tab?.description ? jsx("div", { className: buttonClassNames.desc, children: tab.description }) : null] })] }));
4752
+ const StickyBottomMenuItem = JSX(({ isActive, item, onClick }) => {
4753
+ const link = useLink({ isRemote: true });
4754
+ const { href, onClick: handleClick } = link({ href: item?.href, onClick });
4755
+ return (jsxs("a", { className: style(isActive ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer`), href: href, target: "_self", title: item?.title || '', onClick: handleClick, children: [jsx(Icon, { className: "w-6 h-6", name: item?.icon?.icon, iconVersion: isActive ? 'color' : 'black' }), item?.title || ''] }));
4906
4756
  });
4907
4757
 
4908
- function useDebouncedEffect(effect, deps, delay = 300) {
4909
- useEffect(() => {
4910
- const timerId = globalThis.setTimeout(effect, delay);
4911
- return () => {
4912
- globalThis.clearTimeout(timerId);
4913
- };
4914
- }, deps);
4915
- }
4758
+ const isDialogOpen = (id, dialogs) => Boolean(dialogs.find((item) => item.id === id, id));
4916
4759
 
4917
- const REDIRECT_DELAY = 0.8 * 1000;
4918
- const TabsLayoutRedirectSection = JSX(({ tab }) => {
4919
- const link = useLink();
4920
- const { onClick } = link({
4921
- ...tab,
4922
- onClick: () => {
4923
- /**
4924
- * In the current implementation of useLink, there is no follow-by-link method,
4925
- * and default routing won't work if the link is external.
4926
- */
4927
- if (tab.href && !isLocalURL(tab.href)) {
4928
- globalThis.location.href = tab.href;
4929
- }
4930
- },
4931
- });
4932
- useDebouncedEffect(onClick, [], REDIRECT_DELAY);
4933
- return jsx(Shimmer, { className: "col-span-12 p-xl", size: 5 });
4934
- });
4760
+ function useList(initialList = []) {
4761
+ const [list, setList] = useState(initialList);
4762
+ const push = useCallback((item) => setList(_ => [..._, item]), []);
4763
+ const pop = useCallback(() => setList(_ => _.slice(0, -1)), []);
4764
+ const remove = useCallback((item) => setList(_ => _.filter(currentItem => currentItem !== item)), []);
4765
+ const clear = useCallback(() => setList([]), []);
4766
+ return [list, { setList, push, pop, remove, clear }];
4767
+ }
4935
4768
 
4936
- const useScrollToTab = (activeTabIndex, scroll) => {
4937
- const [initState, { setTrue: setInitStateTrue }] = useBool(false);
4938
- useEffect(() => {
4939
- scroll.scrollTo(activeTabIndex, {
4940
- behavior: initState ? 'smooth' : 'auto',
4941
- block: 'nearest',
4942
- inline: 'center',
4943
- });
4944
- !initState && setInitStateTrue();
4945
- }, [activeTabIndex, initState]);
4769
+ const useDialogsList = ({ onCloseAll, onClose, } = {}) => {
4770
+ const [dialogs, { push, pop, clear }] = useList();
4771
+ const closeAll = useCallback(() => {
4772
+ onCloseAll && onCloseAll(dialogs);
4773
+ clear();
4774
+ }, [dialogs, onCloseAll]);
4775
+ const close = useCallback(() => {
4776
+ onClose && onClose(dialogs[dialogs.length - 1]);
4777
+ pop();
4778
+ }, [dialogs, onClose]);
4779
+ useEffect(() => defaultEventBus.subscribe('dialog', (action) => {
4780
+ switch (action.type) {
4781
+ case 'open':
4782
+ push(action);
4783
+ break;
4784
+ case 'close':
4785
+ if (action.all) {
4786
+ closeAll();
4787
+ }
4788
+ else {
4789
+ close();
4790
+ }
4791
+ break;
4792
+ default:
4793
+ assertUnreachable(action);
4794
+ }
4795
+ }), [closeAll, close]);
4796
+ return dialogs;
4946
4797
  };
4947
4798
 
4948
- const TabsLayout = JSX(({ className = '', tabs = [], block, tabAlign, ...rest }) => {
4949
- const [activeTabIndex, setActiveTabIndex] = useState(getInitSelectedIndex(tabs));
4950
- const slotName = getSlotName(tabs[activeTabIndex], activeTabIndex);
4951
- const itemCount = tabs.length;
4952
- const [activeSlideIndex, { inc: incActiveSlideIndex, dec: decActiveSlideIndex }] = useCarouselControls({ itemCount }, activeTabIndex);
4953
- const [containerRef, scroll] = useSwipeListScroll({ itemCount });
4954
- useScrollToTab(activeTabIndex, scroll);
4955
- return (jsxs(BlockWrapper, { className: style(className), defaultPadding: "p-0", ...rest, children: [jsxs("div", { className: "relative border-b-8 border-primary-main", children: [jsx(SwipeListContainer, { itemClassName: "flex", containerRef: containerRef, snapAlign: "snap-end", gap: 8, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: tabs.map(renderTabButton(activeTabIndex, setActiveTabIndex, tabAlign)) }), jsx(CarouselScrollButtons, { scroll: scroll, arrowsPadded: true, onScrollLeft: decActiveSlideIndex, onScrollRight: incActiveSlideIndex, activeIndex: activeSlideIndex, itemCount: itemCount })] }), jsx("div", { className: "space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs", children: tabs[activeTabIndex]?.href ? (jsx(TabsLayoutRedirectSection, { tab: tabs[activeTabIndex] })) : (renderBlocksList(block?.slots?.[slotName], {
4956
- ...rest?.options,
4957
- slotName,
4958
- parent: block,
4959
- })) })] }));
4960
- });
4961
- TabsLayout.slots = ({ tabs }) => tabs?.filter((_) => !_.href).map(getSlotName) || [];
4962
- TabsLayout.childrenTypes = { exclude: ['TabsLayout'] }; //TODO: fix this on wcms
4963
- const getSlotName = (tab, index) => tab?.title || `Слот №${index}`;
4964
- const getInitSelectedIndex = (tabs) => tabs.reduce((selectedIndex, tab, i) => (tab.selected ? i : selectedIndex), 0);
4965
- const renderTabButton = (activeTabIndex, onClick, tabAlign = 'start') => (tab, i) => (jsx(TabsLayoutButton, { className: alignTabStyle[tabAlign], tab: tab, isActive: activeTabIndex === i, onClick: () => onClick(i) }, String(i)));
4799
+ const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs 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" }) })));
4966
4800
 
4967
- const dividerStyle = '@4xl:border-main-divider @4xl:border-b';
4968
- const firstCellStyle = 'w-80 flex-shrink-0';
4969
- const COLS_LENGTH_FOR_SCROLL = 2;
4970
- const COLUMN_WIDTH$1 = 4 * 80 + 40; // w-80 + pl-10 = 360px
4801
+ const Dialog = JSX(({ className, head, children, onClose }) => {
4802
+ const { close } = useDialogManager();
4803
+ const handleClose = useCallback(() => {
4804
+ close();
4805
+ onClose && onClose();
4806
+ }, [onClose]);
4807
+ return (jsxs("div", { className: style('relative min-h-full bg-white pt-0 p-5', className), children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: handleClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] }));
4808
+ });
4971
4809
 
4972
- const carouselContainerClassesMap = {
4973
- comparison: 'flex gap-m duration-1000',
4974
- tariff: 'flex gap-5xl flex-grow duration-1000',
4810
+ const groupBy = (list, keyGetter) => {
4811
+ const result = new Map();
4812
+ for (const item of list) {
4813
+ const key = keyGetter(item);
4814
+ const group = result.get(key) || [];
4815
+ result.set(key, [...group, item]);
4816
+ }
4817
+ return result;
4975
4818
  };
4976
- const TableCarouselContainer = JSX(({ children, activeIndex, columnWidth, version = 'comparison' }) => (jsx("div", { className: "flex flex-1 overflow-hidden", children: jsx("div", { className: carouselContainerClassesMap[version], style: { transform: `translateX(-${activeIndex * columnWidth}px)` }, children: children }) })));
4977
-
4978
- const TableInnerButton = JSX(({ className = '', isOpen, onClick }) => (jsx(LinkButton, { className: className, appendRight: jsx(Img, { image: { icon: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon' }, width: "20", height: "20" }), text: isOpen ? 'Скрыть' : 'Показать', version: "gray", onClick: onClick })));
4979
4819
 
4980
- const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons, {
4981
- buttonClassName: 'basis-0',
4982
- });
4983
- const renderLabelDescriptionCellData = ({ label, description }) => (jsxs("div", { className: "space-y-2xs", children: [label ? (jsx("div", { children: jsx(Text, { size: "text-h6", children: label }) })) : null, description ? (jsx("div", { children: jsx(Text, { size: "text-l", color: "text-secondary-text", children: description }) })) : null] }));
4984
- const renderImgCellData = ({ image }) => (image?.src ? jsx(Img, { image: image }) : null);
4985
- const renderListCellData = ({ isDotted, ...rest }) => (jsx(List, { className: "flex flex-col justify-between items-start text-h6", isDotted: isDotted ?? true, ...rest }));
4986
- const renderInnerTableCellData = ({ isVisible, displayTable, dataUrl, pdfUrl, isOpen, }) => isVisible ? (jsx(TableInnerButton, { isOpen: isOpen, onClick: () => {
4987
- displayTable({ dataUrl, pdfUrl });
4988
- } })) : null;
4989
- const EmbeddableCellData = {
4990
- Buttons: renderButtonsCellData,
4991
- Img: renderImgCellData,
4992
- List: renderListCellData,
4993
- LabelDescription: renderLabelDescriptionCellData,
4994
- Table: renderInnerTableCellData,
4995
- };
4996
-
4997
- const RenderCellInner = JSX(({ cell, fieldIdx, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
4998
- const [isVisible, setVisibility] = useState(true);
4999
- useEffect(() => {
5000
- if (cellIdx !== openTableInnerIdx || !tableInner) {
5001
- setVisibility(true);
5002
- }
5003
- }, [tableInner, openTableInnerIdx]);
5004
- const displayTable = (props) => {
5005
- setVisibility(false);
5006
- setOpenTableInnerIdx(cellIdx);
5007
- setTableInner(props);
5008
- };
5009
- return renderCell({
5010
- cell,
5011
- cellProps: {
5012
- rowIdx,
5013
- cellIdx,
5014
- fieldIdx,
5015
- displayTable,
5016
- isVisible,
5017
- },
5018
- });
5019
- });
5020
- const renderCell = ({ cell, cellProps }) => {
5021
- if (!cell) {
5022
- return null;
4820
+ const JARO_WINKLER_P = 0.1;
4821
+ const JARO_WINKLER_MAX_L = 4;
4822
+ const jaroWinklerDistance = (s1) => (s2) => {
4823
+ if (s1 === s2) {
4824
+ return 1;
5023
4825
  }
5024
- const { tableCellType: type, ...rest } = cell;
5025
- if (!type || !(type in EmbeddableCellData)) {
5026
- return null;
4826
+ if (!s1 || !s2) {
4827
+ return 0;
5027
4828
  }
5028
- const EmbeddableCellInner = EmbeddableCellData[type];
5029
- return jsx(EmbeddableCellInner, { ...cellProps, ...rest });
5030
- };
5031
-
5032
- const TariffsTableCell = JSX(({ cells, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
5033
- return (jsx("div", { className: "w-80 flex-grow flex flex-col gap-m @4xl:gap-lg", role: "cell", children: cells?.length
5034
- ? cells.map((_, i) => (jsx(RenderCellInner, { cell: _, fieldIdx: i, rowIdx: rowIdx, cellIdx: cellIdx, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx }, String(i))))
5035
- : null }));
5036
- });
5037
-
5038
- const COLUMN_WIDTH = 140;
5039
- const getHorizontalShift = (columns, activeColumnIndex) => sum(columns.slice(0, activeColumnIndex).map((_) => _?.cols?.length ?? 1)) * COLUMN_WIDTH;
5040
-
5041
- const renderInnerTableRow = (activeColumnIndex) => (rowData, rowIdx) => {
5042
- if (!rowData?.length) {
5043
- return null;
4829
+ const { m, s1Matches, s2Matches } = computeM(s1, s2);
4830
+ if (m === 0) {
4831
+ return 0;
5044
4832
  }
5045
- const [headerColumn, ...columns] = rowData;
5046
- const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
5047
- return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
5048
- transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
5049
- }, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx(Text, { size: "text-xl", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
4833
+ const t = computeT(s1, s2, { s1Matches, s2Matches });
4834
+ const jaroWeight = (m / s1.length + m / s2.length + (m - t / 2) / m) / 3;
4835
+ const winklerWeight = jaroWeight > 0.7 ? computePrefixL(s1, s2) * JARO_WINKLER_P : 0;
4836
+ return jaroWeight + winklerWeight * (1 - jaroWeight);
5050
4837
  };
5051
- const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: style('flex', rowIndex === 0 ? 'text-secondary-text' : ''), children: cols.map((data, i) => (jsx("div", { className: "w-20 mx-lg", children: jsx(Text, { size: "text-h6", font: "font-light", children: data }) }, String(i)))) })) : null;
5052
-
5053
- const InnerTableBodyItem = JSX(({ rows }) => (jsx(SwipeListContainer, { visibleItemCount: 0, snapAlign: "snap-start", children: jsx("div", { children: rows?.map(renderInnerTableRow(0)) }) })));
5054
-
5055
- const InnerTableBody = JSX(({ activeTabIndex, items }) => {
5056
- return (jsx("div", { children: items.map((_, tableIdx) => {
5057
- const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
5058
- return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex py-m sm:px-m bg-white @4xl:bg-gray relative", children: jsx(Text, { size: "text-xl", align: "text-left", children: _.title }) }), jsx("div", { className: "w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
5059
- }) }));
5060
- });
5061
-
5062
- const linkButtonVersion = 'link';
5063
-
5064
- const TableColor = (isEqual = false) => `${isEqual ? 'text-white' : 'text-secondary-text'}`;
5065
- const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between items-center w-full py-lg", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-2xs rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: style('rounded-md px-4 py-3 cursor-pointer', idx === activeTabIndex ? 'bg-primary-main' : ''), onClick: () => setActiveTabIndex(idx), children: jsx(Text, { size: "text-xl", font: "font-light", color: TableColor(idx === activeTabIndex), children: currency || idx + 1 }) }, currency))) })) : null, linkToPDF ? (jsx(LinkButton, { className: "text-primary-main", href: linkToPDF, version: linkButtonVersion, target: "_blank", appendLeft: jsx(Icon, { name: "DocDownloadIcon", iconVersion: "color", className: "mr-3xs", width: "20", height: "20" }), text: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })) : null] })));
5066
-
5067
- function useTariffsInnerTableData(directoryName) {
5068
- const { data } = useAsyncData(tariffsInnerTableDataUrl(directoryName), fetchTariffsInnerTableData);
5069
- return data || {};
4838
+ function computeM(s1, s2) {
4839
+ const range = Math.max(0, Math.floor(Math.max(s1.length, s2.length) / 2) - 1);
4840
+ const s1Matches = Array.from({ length: s1.length });
4841
+ const s2Matches = Array.from({ length: s2.length });
4842
+ let m = 0;
4843
+ for (let i = 0; i < s1.length; i++) {
4844
+ const low = Math.max(0, i - range);
4845
+ const high = Math.min(i + range, s2.length - 1);
4846
+ for (let j = low; j <= high; j++) {
4847
+ if (s1Matches[i] || s2Matches[j] || s1[i] !== s2[j]) {
4848
+ continue;
4849
+ }
4850
+ m++;
4851
+ s1Matches[i] = true;
4852
+ s2Matches[j] = true;
4853
+ }
4854
+ }
4855
+ return { m, s1Matches, s2Matches };
5070
4856
  }
5071
- async function fetchTariffsInnerTableData(url) {
5072
- const response = await fetch(url);
5073
- return await response.json();
4857
+ function computeT(s1, s2, { s1Matches, s2Matches }) {
4858
+ let t = 0;
4859
+ for (let i = 0, k = 0; i < s1.length; i++) {
4860
+ if (!s1Matches[i]) {
4861
+ continue;
4862
+ }
4863
+ let j = k;
4864
+ for (; j < s2.length; j++) {
4865
+ if (s2Matches[j]) {
4866
+ k = j + 1;
4867
+ break;
4868
+ }
4869
+ }
4870
+ if (s1[i] !== s2[j]) {
4871
+ t++;
4872
+ }
4873
+ }
4874
+ return t;
5074
4875
  }
5075
- function tariffsInnerTableDataUrl(directoryName) {
5076
- return `/wcms-resources/${directoryName || 'tariffs-inner-table-data'}.json`;
4876
+ function computePrefixL(s1, s2) {
4877
+ let prefixL = 0;
4878
+ while (s1[prefixL] === s2[prefixL] && prefixL < JARO_WINKLER_MAX_L) {
4879
+ prefixL++;
4880
+ }
4881
+ return prefixL;
5077
4882
  }
5078
4883
 
5079
- const EMPTY_DATA = 'Данных нет';
5080
- const InnerTable = JSX(({ dataUrl, pdfUrl, onClick }) => {
5081
- const { tableData } = useTariffsInnerTableData(dataUrl);
5082
- const [activeTabIndex, setActiveTabIndex] = useState(0);
5083
- const handleActiveTabIndex = useCallback((_) => setActiveTabIndex(_), []);
5084
- const items = tableData?.[activeTabIndex]?.items ?? [];
5085
- const currencies = tableData?.map((item) => item.currency ?? '');
5086
- return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex, linkToPDF: pdfUrl }), jsx(InnerTableBody, { activeTabIndex: activeTabIndex, items: items }), jsx(TableInnerButton, { className: "mt-xl", onClick: onClick, isOpen: true })] })) : (jsxs("div", { className: "my-lg space-y-m text-center", children: [jsx(Text, { size: "text-h6", children: EMPTY_DATA }), jsx(TableInnerButton, { onClick: onClick, isOpen: true })] }));
4884
+ const renderForeignOffices = (foreignOffices) => foreignOffices?.length ? (jsxs("div", { className: "sm:border-t sm: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 flex-col sm:flex-row gap-5xl", children: foreignOffices.map((office, i) => (jsx(ForeignOffice, { ...office }, String(i)))) })] })) : null;
4885
+ const ForeignOffice = JSX(({ icon, ...rest }) => {
4886
+ const link = useLink();
4887
+ const { text, target, href, onClick } = link(rest);
4888
+ return (jsxs("div", { className: "flex gap-s items-center", 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: jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text }) })) : null] }));
5087
4889
  });
5088
4890
 
5089
- const TariffsTableRowContainer = JSX(({ children, tableInner, onHideContentClick }) => (jsxs("div", { className: "self-start flex flex-col", role: "row", children: [jsx("div", { className: style(dividerStyle, 'flex flex-col @4xl:flex-row gap-y-xs gap-x-5xl pb-lg @4xl:pt-lg'), children: children }), tableInner ? (jsx("div", { className: "origin-top animate-expansion", children: jsx(InnerTable, { ...tableInner, onClick: onHideContentClick }) })) : null] })));
5090
-
5091
- const TariffsTableRow = JSX(({ row: { header, data }, activeIndex, rowIdx, ...rest }) => {
5092
- const [tableInner, setTableInner] = useState(undefined);
5093
- const handleSetTableInner = useCallback((_) => setTableInner(_), []);
5094
- const [openTableInnerIdx, setOpenTableInnerIdx] = useState(undefined);
5095
- const handleOpenTableInnerIdx = useCallback((_) => setOpenTableInnerIdx(_), []);
5096
- const onHideContentClick = () => setTableInner(undefined);
5097
- return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: style('text-s', firstCellStyle), children: jsxs("div", { className: "flex gap-m items-center", role: "cell", children: [header?.icon ? (jsx(Img, { className: "hidden @4xl:block max-w-6 shrink-0", image: header.icon, width: "24", height: "24" })) : null, header?.title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: header?.title })) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
5098
- });
4891
+ const renderRegion = (onChangeLocation) => (region) => (jsx("div", { className: "mb-xs sm:mb-2xs", children: jsx("button", { className: "cursor-pointer hover:text-primary-hover", onClick: () => {
4892
+ onChangeLocation && onChangeLocation(region);
4893
+ }, children: jsx(Text, { size: "text-l", font: "font-light", children: region.name || '' }) }) }, region.id));
5099
4894
 
5100
- /** @deprecated */
5101
- function renderArrows({ dec, inc, canDec, canInc, btnClass, className = '', }) {
5102
- const isVisible = canDec || canInc;
5103
- if (!isVisible) {
5104
- return null;
5105
- }
5106
- return (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: style('absolute z-40', btnClass[0], className), onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: style('absolute z-40 rotate-180', btnClass[1], className), onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] }));
5107
- }
4895
+ 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));
5108
4896
 
5109
- const TariffsTableWrapper = JSX(({ children, controls }) => {
5110
- const { isScrollAvailable } = controls;
5111
- return (jsxs("div", { role: "table", children: [jsxs("div", { className: "relative space-y-xs", children: [children, renderArrows({
5112
- ...controls,
5113
- btnClass: ['top-28', 'top-11'],
5114
- className: 'right-7',
5115
- })] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" })) : null] }));
4897
+ const SearchBar$1 = JSX(({ className, searchTerm, onSearch }) => {
4898
+ return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsx("div", { className: "absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s 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-m w-full peer text-l text-black border border-solid rounded-md box-border
4899
+ 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" })] }));
5116
4900
  });
5117
4901
 
5118
- const TariffsTable = JSX(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
5119
- const colData = columns?.map(({ data }) => data) || [];
5120
- const rowData = rowHeaders?.map((header, i) => ({
5121
- header,
5122
- data: colData.map((col) => col?.[i] || []),
5123
- }));
5124
- const itemCount = colData.length;
5125
- const [activeIndex, controls] = useCarouselControls({
5126
- itemCount: itemCount,
5127
- visibleItemCount: COLS_LENGTH_FOR_SCROLL,
5128
- });
5129
- const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
5130
- const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
5131
- return (jsxs(BlockWrapper, { className: style('overflow-hidden relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m", children: hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
4902
+ const SEARCH_TERM_MIN_LENGTH = 3;
4903
+ const LocationDialog = JSX(({ foreignOffices, defaultLocation }) => {
4904
+ const [currentLocation, selectCurrentLocation] = useLocation(defaultLocation);
4905
+ const [query, setQuery] = useState('');
4906
+ const regions = cleanUpRegions(useRegions()).sort((a, b) => a.name.localeCompare(b.name));
4907
+ const regionsGroupByLetter = groupBy(regions, regionFirstLetter);
4908
+ const { close } = useDialogManager();
4909
+ const handleChangeLocation = useCallback((region) => {
4910
+ selectCurrentLocation(region);
4911
+ close();
4912
+ }, []);
4913
+ return (jsxs(Dialog, { className: "pb-20", head: jsxs("div", { children: [jsx(Text, { size: "text-h4", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B" }), currentLocation ? (jsxs("div", { className: "mb-s", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { onClick: () => selectCurrentLocation(currentLocation), children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null, jsx(SearchBar$1, { onSearch: setQuery, searchTerm: query })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
4914
+ .filter(({ name }) => name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8)
4915
+ .map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-1 sm:columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), renderForeignOffices(foreignOffices)] }));
5132
4916
  });
4917
+ const regionFirstLetter = (region) => region.name?.charAt(0) || '';
4918
+ const cleanUpRegions = (regions) => regions.map((region) => ({
4919
+ ...region,
4920
+ name: region.name?.replace(/республика|область|край'/gi, '').trim() || '',
4921
+ }));
5133
4922
 
5134
- const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { __html: __html }) : null] })] })));
5135
- const renderIcon = () => (jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main`, children: "i" }));
5136
- const renderDescription = (description) => (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text group-data-secondary:text-white", children: description }));
5137
-
5138
- const Unit = JSX(({ prefix, unit, suffix }) => (jsxs("div", { className: "w-full flex items-end", children: [prefix ? (jsx("div", { className: "gradient-color-text", children: jsx(Text, { size: "text-h2", children: prefix }) })) : null, unit ? (
5139
- // -mb-n добавлен для выравнивания unit относительно prefix и suffix, тк шрифт font-mohave неправильно высчитывает line-height
5140
- jsx("div", { className: "-mb-6 @xl:-mb-4", children: jsx("span", { className: "font-mohave text-title-large sm:text-title-extra gradient-color-text", children: unit }) })) : null, suffix ? (jsx("div", { className: "gradient-color-text", children: jsx(Text, { size: "text-h2", children: suffix }) })) : null] })));
4923
+ const useLocationDialog = (props) => {
4924
+ const { open, close } = useDialogManager();
4925
+ return {
4926
+ open: (options = {}) => open(jsx(LocationDialog, { ...props }), options),
4927
+ close,
4928
+ };
4929
+ };
5141
4930
 
5142
- const UnitBlock = JSX((props) => {
5143
- const { prefix, unit, suffix, ...rest } = props;
5144
- return (jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: jsx(Unit, { prefix: prefix, unit: unit, suffix: suffix }) }));
4931
+ const SearchInput = JSX(({ className, value, autoFocus, onChange, onFocus, placeholder = 'Поиск по сайту' }) => {
4932
+ const handleChange = useCallback((ev) => {
4933
+ onChange && onChange(ev.target?.value || '');
4934
+ }, [onChange]);
4935
+ 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', iconVersion: 'black' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-14 w-full px-10 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: placeholder, autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
5145
4936
  });
5146
4937
 
5147
- const Blocks = {
5148
- AdTile,
5149
- ApplicationForm,
5150
- BenefitsBlock,
5151
- BonusBenefitsBlock,
5152
- ButtonsBlock,
5153
- Calculator,
5154
- CardTransfer,
5155
- Carousel,
5156
- CarouselBankHistoryCard,
5157
- CarouselCard,
5158
- CarouselCatalogCard,
5159
- CarouselLinks,
5160
- CarouselRecommendationCard,
5161
- CarouselTariffsCard,
5162
- ComparisonTable,
5163
- DepositFiltration,
5164
- ErrorBlock,
5165
- ExchangeRateTile,
5166
- Footer,
5167
- Header,
5168
- Headline,
5169
- HorizontalLayout,
5170
- ImgBlock,
5171
- LinkDocs,
5172
- MobileAppTile,
5173
- MortgageFiltration,
5174
- OfficesAtmsMap,
5175
- Placeholder,
5176
- ProductBlock,
5177
- ProductGallery,
5178
- RepresentativeOfficeInfo,
5179
- RichTextBlock,
5180
- RollupItem,
5181
- SafeDepositRental,
5182
- StepsBlock,
5183
- Tabs,
5184
- TabsLayout,
5185
- TariffsTable,
5186
- TextBlock,
5187
- UnitBlock,
5188
- VerticalLayout,
5189
- };
4938
+ function useDebouncedEffect(effect, deps, delay = 300) {
4939
+ useEffect(() => {
4940
+ const timerId = globalThis.setTimeout(effect, delay);
4941
+ return () => {
4942
+ globalThis.clearTimeout(timerId);
4943
+ };
4944
+ }, deps);
4945
+ }
5190
4946
 
5191
- const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs 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" }) })));
4947
+ const compareBy = (indexOf) => (a, b) => indexOf(a) - indexOf(b);
4948
+ const desc = (cmp) => (a, b) => -cmp(a, b);
5192
4949
 
5193
- const COOKIE_DIALOG_ID = 'cookie';
5194
- const DIALOG_INITIAL_DELAY = 3 * 1000;
5195
- const CookiePopup = JSX(({ termLink, personalDataPolicyLink }) => {
5196
- const [opened, { setTrue: open, setFalse: close }] = useBool();
5197
- useDebouncedEffect(() => {
5198
- if (!globalThis.localStorage?.getItem(COOKIE_DIALOG_ID)) {
5199
- open();
5200
- }
5201
- }, [], DIALOG_INITIAL_DELAY);
5202
- const handleClose = useCallback(() => {
5203
- globalThis.localStorage?.setItem(COOKIE_DIALOG_ID, 'true');
5204
- close();
5205
- }, []);
5206
- 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-main-black", 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;
5207
- });
5208
- const linkWrapperStyle = (href) => style('inline mx-2xs', href ? 'text-green-dark' : '');
4950
+ const joinMaps = (aggregate, emptyVal) => (acc, map) => {
4951
+ for (const [key, b] of map) {
4952
+ acc.set(key, aggregate(acc.get(key) || emptyVal, b));
4953
+ }
4954
+ return acc;
4955
+ };
5209
4956
 
5210
- function useList(initialList = []) {
5211
- const [list, setList] = useState(initialList);
5212
- const push = useCallback((item) => setList(_ => [..._, item]), []);
5213
- const pop = useCallback(() => setList(_ => _.slice(0, -1)), []);
5214
- const remove = useCallback((item) => setList(_ => _.filter(currentItem => currentItem !== item)), []);
5215
- const clear = useCallback(() => setList([]), []);
5216
- return [list, { setList, push, pop, remove, clear }];
5217
- }
4957
+ const MIN_TERM_LEN = 3;
4958
+ const tokenize = (text) => text
4959
+ .toLowerCase()
4960
+ .split(/[^0-9a-zа-я-]+/)
4961
+ .filter((token) => token.length >= MIN_TERM_LEN && !/[0-9a-z]/.test(token));
5218
4962
 
5219
- const useDialogsList = ({ onCloseAll, onClose, } = {}) => {
5220
- const [dialogs, { push, pop, clear }] = useList();
5221
- const closeAll = useCallback(() => {
5222
- onCloseAll && onCloseAll(dialogs);
5223
- clear();
5224
- }, [dialogs, onCloseAll]);
5225
- const close = useCallback(() => {
5226
- onClose && onClose(dialogs[dialogs.length - 1]);
5227
- pop();
5228
- }, [dialogs, onClose]);
5229
- useEffect(() => defaultEventBus.subscribe('dialog', (action) => {
5230
- switch (action.type) {
5231
- case 'open':
5232
- push(action);
5233
- break;
5234
- case 'close':
5235
- if (action.all) {
5236
- closeAll();
5237
- }
5238
- else {
5239
- close();
5240
- }
5241
- break;
5242
- default:
5243
- assertUnreachable(action);
5244
- }
5245
- }), [closeAll, close]);
5246
- return dialogs;
4963
+ const textRank = (queryTokens) => (text) => {
4964
+ const textTokens = tokenize(text || '');
4965
+ return textTokens.length
4966
+ ? sum(queryTokens.map((qToken) => max(textTokens.map(jaroWinklerDistance(qToken)))))
4967
+ : 0;
5247
4968
  };
5248
4969
 
5249
- const DialogManager = JSX(() => {
5250
- const handleCloseAll = useCallback((dialogs) => {
5251
- for (const _ of dialogs) {
5252
- _?.onClose && _.onClose();
5253
- }
5254
- }, []);
5255
- const handleClose = useCallback((_) => {
5256
- _?.onClose && _.onClose();
5257
- }, []);
5258
- const dialogs = useDialogsList({ onCloseAll: handleCloseAll, onClose: handleClose });
5259
- const { close } = useDialogManager();
5260
- const escapeHandler = useCallback(({ key }) => {
5261
- if (key === 'Escape') {
5262
- close();
5263
- }
5264
- }, []);
5265
- useEventListener(globalThis.document, 'keydown', escapeHandler);
4970
+ const JW_THRESHOLD = 0.8;
4971
+ const RANK_EPS = 0.001;
4972
+ const search = (query) => (searchIndex) => {
4973
+ const { corpus, dictionary } = searchIndex || {};
4974
+ if (!query || !corpus?.length || !dictionary || !Object.keys(dictionary).length) {
4975
+ return [];
4976
+ }
4977
+ const queryTokens = tokenize(query);
4978
+ if (!queryTokens.length) {
4979
+ return [];
4980
+ }
4981
+ const dictEntries = Object.entries(dictionary);
4982
+ const pagesRanking = queryTokens
4983
+ .map(computePagesRankingPerToken(dictEntries))
4984
+ .reduce(joinMaps((a, b) => a + b, 0), new Map());
4985
+ const relevantPages = [...pagesRanking.entries()]
4986
+ .filter(([, pageRank]) => pageRank >= (JW_THRESHOLD - RANK_EPS) * queryTokens.length) // Multiplication of query tokens
4987
+ .map(([pageIndex]) => corpus[pageIndex]);
4988
+ return sortResultsByRank(queryTokens)(relevantPages);
4989
+ };
4990
+ const computePagesRankingPerToken = (dictEntries) => (qToken) => dictEntries
4991
+ .map(([stem, pageIndices]) => [jaroWinklerDistance(qToken)(stem), pageIndices])
4992
+ .filter(([stemRank]) => stemRank >= JW_THRESHOLD)
4993
+ .map(([stemRank, pageIndices]) => fillMapWith(pageIndices, stemRank))
4994
+ .reduce(joinMaps(Math.max, 0), new Map());
4995
+ const sortResultsByRank = (queryTokens) => (results) => zip(results, results.map(({ title }) => title).map(textRank(queryTokens)))
4996
+ .sort(desc(compareBy(([, pageTitleRank]) => pageTitleRank)))
4997
+ .map(([corpusItem]) => corpusItem);
4998
+ const fillMapWith = (keys, value) => new Map(keys.map((_) => [_, value]));
4999
+
5000
+ const SEARCH_INDEX_FILENAME = 'search.index.json';
5001
+ const useSearch = ({ basePathList, initialQuery = '', }) => {
5002
+ const [query, setQuery] = useState(initialQuery || '');
5266
5003
  useEffect(() => {
5267
- if (dialogs.length) {
5268
- globalThis.document?.body.classList.add('no-scrollbar');
5269
- globalThis.document?.body.classList.add('overflow-hidden');
5004
+ if (initialQuery !== undefined && initialQuery !== null) {
5005
+ setQuery(initialQuery);
5270
5006
  }
5271
- else {
5272
- globalThis.document?.body.classList.remove('no-scrollbar');
5273
- globalThis.document?.body.classList.remove('overflow-hidden');
5007
+ }, [initialQuery]);
5008
+ const { data } = useAsyncData(basePathList?.length ? basePathList : null, fetchSearchIndex);
5009
+ const [result, setResult] = useState(null);
5010
+ useDebouncedEffect(() => {
5011
+ if (data) {
5012
+ setResult(data.map(search(query)));
5274
5013
  }
5275
- }, [dialogs]);
5276
- 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;
5277
- });
5014
+ }, [data, query]);
5015
+ return [result, { value: query, onChange: setQuery }];
5016
+ };
5017
+ const fetchSearchIndex = async (...basePathList) => (await Promise.allSettled(basePathList.map((basePath) => fetchJSON(joinPath(basePath, '/', SEARCH_INDEX_FILENAME))))).map((_) => (_.status === 'fulfilled' ? _.value : {}));
5278
5018
 
5279
- const PopupManager = JSX(() => {
5280
- const [popup, setPopup] = useState(null);
5281
- const close = useCallback(() => {
5282
- setPopup(null);
5283
- }, []);
5284
- useEffect(() => defaultEventBus.subscribe('popup', (action) => {
5285
- switch (action.type) {
5286
- case 'open':
5287
- case 'update':
5288
- setPopup(action);
5289
- break;
5290
- case 'close':
5291
- close();
5292
- break;
5293
- default:
5294
- assertUnreachable(action);
5295
- }
5296
- }), []);
5297
- const escapeHandler = useCallback(({ key }) => {
5298
- if (key === 'Escape') {
5299
- close();
5300
- }
5301
- }, [close]);
5302
- useEventListener(globalThis.document, 'keydown', escapeHandler);
5303
- return popup ? (jsx("div", { className: "absolute z-50", style: {
5304
- left: `${popup.left}px`,
5305
- top: `${popup.top}px`,
5306
- ...(popup.width ? { width: `${popup.width}px` } : {}),
5307
- }, role: "dialog", children: popup.popup })) : null;
5019
+ const Sitemap = JSX(({ className, topItems }) => {
5020
+ const link = useLink({ isRemote: true });
5021
+ return (jsx("div", { className: style('flex items-start justify-between', className), children: topItems?.map(link).map(renderColumn) }));
5022
+ });
5023
+ const FOOTER_AREA_KEYS = ['all', 'footer'];
5024
+ const renderColumn = (menuItem, index) => {
5025
+ const { text, items = [], href, target, onClick } = menuItem;
5026
+ const visibleSubItems = items.filter((_) => !_.displayArea || FOOTER_AREA_KEYS.includes(_.displayArea.toLowerCase()));
5027
+ return (jsxs("div", { className: "flex flex-col gap-s 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}` }), visibleSubItems.map((_, i) => (jsx(ColumnItem, { ..._, basePath: appendSlash(href), index: i }, String(i))))] }, String(index)));
5028
+ };
5029
+ const ColumnItem = JSX(({ text, index, basePath, ...rest }) => {
5030
+ const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
5031
+ const link = useLink({ isRemote: isAnotherPortal, basePath });
5032
+ const { href, target, onClick } = link(rest);
5033
+ 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}` }));
5308
5034
  });
5309
5035
 
5310
- const isHrefActive = (router) => ({ href }) => !href ? false : withoutQuery(getRouterHref(href, router)).startsWith(withoutQuery(href));
5311
- const getRouterHref = (href, router) => isURL(href) ? router.href : router.pathname;
5036
+ const SearchDialog = JSX(({ initialQuery, topItems }) => {
5037
+ const basePathList = useMemo(() => topItems?.map((_) => _.href || '/'), [topItems]);
5038
+ const [searchResult, searchInputProps] = useSearch({
5039
+ basePathList,
5040
+ initialQuery,
5041
+ });
5042
+ const searchItems = useMemo(() => combineTopItemsAndSearchResult(topItems)(searchResult), [topItems, searchResult]);
5043
+ return (jsx(Dialog, { head: jsx(SearchInput, { autoFocus: true, ...searchInputProps }), children: jsx(Sitemap, { topItems: searchItems }) }));
5044
+ });
5045
+ const combineTopItemsAndSearchResult = (topItems) => (searchResult) => topItems?.length && searchResult?.length
5046
+ ? zip(topItems, searchResult).map(([_, portalSearchResult]) => ({
5047
+ ..._,
5048
+ items: portalSearchResult?.map(({ title, uri }) => ({ text: title, href: joinPath('/', uri) })),
5049
+ }))
5050
+ : [];
5312
5051
 
5313
- const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
5052
+ const useSearchDialog = (initialProps = {}) => {
5053
+ const { open, close } = useDialogManager();
5054
+ return {
5055
+ open: (props = {}, options = {}) => open(jsx(SearchDialog, { ...initialProps, ...props }), options),
5056
+ close,
5057
+ };
5058
+ };
5314
5059
 
5315
- function useActiveRoute(items = []) {
5060
+ const MIN_QUERY_LEN = 3;
5061
+ const SearchBar = JSX(({ className, ...rest }) => {
5062
+ const [value, setValue] = useState('');
5063
+ const resetQueryOnDialogClose = useCallback(() => setValue(''), []);
5064
+ const searchDialog = useSearchDialog(rest);
5065
+ const handleInitialInputChange = useCallback((_) => {
5066
+ setValue(_);
5067
+ if (isQueryLongEnough(_)) {
5068
+ searchDialog.open({ initialQuery: _ }, { onClose: resetQueryOnDialogClose });
5069
+ }
5070
+ }, [resetQueryOnDialogClose, searchDialog]);
5071
+ return (jsxs("div", { className: style('relative', className), children: [jsx(SearchInput, { value: value, onChange: handleInitialInputChange }), jsx(CloseButton, { className: "absolute top-0 right-0 sm:hidden", onClose: resetQueryOnDialogClose })] }));
5072
+ });
5073
+ const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
5074
+
5075
+ const ActiveSubMenuItem = JSX(({ item, basePath }) => {
5076
+ const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
5077
+ const link = useLink({ isRemote: isAnotherPortal, basePath });
5078
+ const { href, target, onClick } = link(item);
5316
5079
  const router = useRouter();
5317
- const activeIndex = items.findIndex(isTopItemActive(router));
5318
- return [activeIndex, items[activeIndex]];
5319
- }
5080
+ const isActive = isHrefActive(router)({ href });
5081
+ return (jsxs("a", { className: style(isActive ? 'text-primary-main' : 'text-primary-text', `py-3 text-h5 font-light flex justify-between cursor-pointer`), href: href, target: target, onClick: onClick, children: [item.text, jsx(Img, { image: { icon: 'ChevronLeftIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-secondary-text rotate-180 opacity-30" })] }));
5082
+ });
5320
5083
 
5321
- const StickyBottomMenuBurger = JSX(({ isActive, onClick }) => (jsxs("button", { className: style(isActive ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer`), onClick: onClick, children: [jsx(Icon, { className: "w-6 h-6", name: "BurgerIcon", iconVersion: isActive ? 'color' : 'black' }), "\u041C\u0435\u043D\u044E"] })));
5084
+ const TopItemMobile = ({ item, isActive, onClick }) => (jsxs("button", { type: "button", className: "relative", onClick: onClick, children: [jsx("span", { className: style('whitespace-nowrap', isActive ? 'text-primary-main' : ''), children: item.text }), isActive ? (jsx("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }));
5322
5085
 
5323
- const StickyBottomMenuItem = JSX(({ isActive, item, onClick }) => {
5324
- const link = useLink({ isRemote: true });
5325
- const { href, onClick: handleClick } = link({ href: item?.href, onClick });
5326
- return (jsxs("a", { className: style(isActive ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer`), href: href, target: "_self", title: item?.title || '', onClick: handleClick, children: [jsx(Icon, { className: "w-6 h-6", name: item?.icon?.icon, iconVersion: isActive ? 'color' : 'black' }), item?.title || ''] }));
5086
+ const BurgerMenuDialog = JSX((props) => {
5087
+ const { topItems, defaultLocation, officesLink } = props;
5088
+ const [location] = useLocation(defaultLocation);
5089
+ const locationDialog = useLocationDialog(props);
5090
+ const [containerRef, scroll] = useSwipeListScroll({
5091
+ itemCount: topItems?.length ?? 0,
5092
+ });
5093
+ const [activeIndex] = useActiveRoute(topItems);
5094
+ const [activeTopItemIndex, setActiveTopItemIndex] = useState(activeIndex);
5095
+ const activeRoute = useMemo(() => topItems?.[activeTopItemIndex], [topItems, activeTopItemIndex]);
5096
+ const activeMenuSubItems = activeRoute?.items || [];
5097
+ useEffect(() => {
5098
+ setActiveTopItemIndex(activeIndex);
5099
+ }, [activeIndex]);
5100
+ useEffect(() => {
5101
+ if (activeTopItemIndex > 0) {
5102
+ scroll.scrollTo(activeTopItemIndex);
5103
+ }
5104
+ }, [activeTopItemIndex, scroll]);
5105
+ const handleTopItemClick = useCallback((idx) => setActiveTopItemIndex(idx), []);
5106
+ return (jsx(Dialog, { head: jsx("div", { className: "flex items-center", children: jsx(Heading, { as: "h4", title: "\u041C\u0435\u043D\u044E" }) }), children: jsxs("div", { className: "flex flex-col flex-nowrap relative w-full h-auto m-auto bg-white pb-24 box-border rounded-md", children: [jsx("div", { className: "w-full mb-3", children: jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: 0, gap: 20, className: "pb-3", children: topItems?.map((item, i) => (jsx(TopItemMobile, { item: item, isActive: activeTopItemIndex === i, onClick: () => handleTopItemClick(i) }, String(i)))) }) }), jsxs("div", { className: "relative grow overflow-auto", children: [renderActiveSubMenu(activeMenuSubItems, activeRoute?.href), jsx(SearchBar, { className: "grow mb-5", ...props }), renderOfficeLink(officesLink), renderLocation(location, () => locationDialog.open())] })] }) }));
5327
5107
  });
5108
+ const renderActiveSubMenu = (activeMenuSubItems, basePath) => activeMenuSubItems ? (jsx("div", { children: activeMenuSubItems.map((_, i) => (jsx(ActiveSubMenuItem, { item: _, basePath: basePath }, String(i)))) })) : null;
5109
+ const renderOfficeLink = (officesLink) => officesLink ? (jsxs("a", { className: "flex items-center mb-3", href: officesLink, rel: "noopener noreferrer", "aria-label": "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", children: [jsx(Img, { image: { icon: 'MapOpenedIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-primary-main box-border mr-xs bg-main-divider p-xs rounded-md" }), jsx("span", { children: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })] })) : null;
5110
+ const renderLocation = (location, onClick) => (jsxs("div", { className: "flex items-center text-s cursor-pointer", onClick: onClick, children: [jsx(Img, { image: { icon: 'GeolocationIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-primary-main box-border mr-xs bg-main-divider p-xs rounded-md" }), jsxs("div", { className: "flex flex-col items-start", children: [jsx(Text, { size: "text-h5", children: location.name }), jsx(Text, { color: "text-secondary-text", size: "text-s", children: "\u0412\u0430\u0448\u0430 \u043B\u043E\u043A\u0430\u0446\u0438\u044F" })] })] }));
5328
5111
 
5329
- const isDialogOpen = (id, dialogs) => dialogs.find((item) => item.id === id, id);
5112
+ const BURGER_MENU_DIALOG_ID = 'burgerMenuDialog';
5113
+ const useBurgerMenuDialog = (props) => {
5114
+ const { open: openDialog, closeAll, close } = useDialogManager();
5115
+ const dialogs = useDialogsList();
5116
+ const isBurgerMenuOpen = isDialogOpen(BURGER_MENU_DIALOG_ID, dialogs);
5117
+ const open = () => openDialog(jsx(BurgerMenuDialog, { ...props }), { id: BURGER_MENU_DIALOG_ID });
5118
+ const toggle = () => {
5119
+ if (isBurgerMenuOpen) {
5120
+ closeAll();
5121
+ }
5122
+ else {
5123
+ open();
5124
+ }
5125
+ };
5126
+ return [isBurgerMenuOpen, { open, close, toggle }];
5127
+ };
5330
5128
 
5331
- const Dialog = JSX(({ className, head, children, onClose }) => {
5332
- const { close } = useDialogManager();
5333
- const handleClose = useCallback(() => {
5334
- close();
5335
- onClose && onClose();
5336
- }, [onClose]);
5337
- return (jsxs("div", { className: style('relative min-h-full bg-white pt-0 p-5', className), children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: handleClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] }));
5129
+ const EMPTY_MENU = [];
5130
+ const StickyBottomMenu = UniBlock(({ sticky, ...rest }) => {
5131
+ const { menuItems = EMPTY_MENU } = sticky ?? {};
5132
+ const [isBurgerMenuDialogOpen, { toggle, close }] = useBurgerMenuDialog(rest.options?.page?.sitemap ?? {});
5133
+ const [, activeItem] = useActiveRoute(menuItems);
5134
+ const middleIdx = Math.floor(menuItems.length / 2);
5135
+ const leftItems = menuItems.slice(0, middleIdx);
5136
+ const rightItems = menuItems.slice(middleIdx);
5137
+ return (jsx(BlockWrapper, { className: "h-[74px]", defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "ml-auto container bg-white flex justify-center shadow-blue-gray", children: [leftItems.map(renderMenuItem(activeItem, close)), jsx(StickyBottomMenuBurger, { isActive: isBurgerMenuDialogOpen, onClick: toggle }), rightItems.map(renderMenuItem(activeItem, close))] }) }));
5338
5138
  });
5139
+ const renderMenuItem = (activeItem, close) => (_, i) => (jsx(StickyBottomMenuItem, { isActive: _ === activeItem, item: _, onClick: close }, _.href || String(i)));
5339
5140
 
5340
- const groupBy = (list, keyGetter) => {
5341
- const result = new Map();
5342
- for (const item of list) {
5343
- const key = keyGetter(item);
5344
- const group = result.get(key) || [];
5345
- result.set(key, [...group, item]);
5346
- }
5347
- return result;
5348
- };
5141
+ const scrollButtonStyle = 'hidden sm:flex absolute z-40 top-0';
5142
+ const ScrollableTabsControl = JSX(({ className, items = [], value, onChange, tabsType }) => {
5143
+ const [containerRef, scroll] = useSwipeListScroll({
5144
+ itemCount: items?.length || 0,
5145
+ });
5146
+ return (jsxs("div", { className: style('relative overflow-x-auto no-scrollbar', className), role: "tablist", children: [jsx(SwipeListContainer, { containerRef: containerRef, snapAlign: "snap-start", onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: items.map(renderTab(value, onChange, tabsType)) }), scroll.canScrollLeft ? (jsx(ScrollLeftButton, { className: style('left-6', scrollButtonStyle), onClick: scroll.scrollLeft })) : null, scroll.canScrollRight ? (jsx(ScrollRightButton, { className: style('right-6', scrollButtonStyle), onClick: scroll.scrollRight })) : null] }));
5147
+ });
5349
5148
 
5350
- const JARO_WINKLER_P = 0.1;
5351
- const JARO_WINKLER_MAX_L = 4;
5352
- const jaroWinklerDistance = (s1) => (s2) => {
5353
- if (s1 === s2) {
5354
- return 1;
5355
- }
5356
- if (!s1 || !s2) {
5357
- return 0;
5358
- }
5359
- const { m, s1Matches, s2Matches } = computeM(s1, s2);
5360
- if (m === 0) {
5361
- return 0;
5149
+ const renderTabs = ({ tabsMode, ...props }) => {
5150
+ switch (tabsMode) {
5151
+ case 'wideScreen':
5152
+ return jsx(TabsControl, { ...props });
5153
+ case 'centered':
5154
+ return (jsx("div", { className: "flex", children: jsx(TabsControl, { className: "m-auto p-xs rounded-md bg-main-gray", tabsType: "rounded", ...props }) }));
5155
+ case 'scrollable':
5156
+ return (jsx("div", { className: "flex", children: jsx(ScrollableTabsControl, { className: "m-auto", tabsType: "underlined", ...props }) }));
5157
+ default:
5158
+ return null;
5362
5159
  }
5363
- const t = computeT(s1, s2, { s1Matches, s2Matches });
5364
- const jaroWeight = (m / s1.length + m / s2.length + (m - t / 2) / m) / 3;
5365
- const winklerWeight = jaroWeight > 0.7 ? computePrefixL(s1, s2) * JARO_WINKLER_P : 0;
5366
- return jaroWeight + winklerWeight * (1 - jaroWeight);
5367
5160
  };
5368
- function computeM(s1, s2) {
5369
- const range = Math.max(0, Math.floor(Math.max(s1.length, s2.length) / 2) - 1);
5370
- const s1Matches = Array.from({ length: s1.length });
5371
- const s2Matches = Array.from({ length: s2.length });
5372
- let m = 0;
5373
- for (let i = 0; i < s1.length; i++) {
5374
- const low = Math.max(0, i - range);
5375
- const high = Math.min(i + range, s2.length - 1);
5376
- for (let j = low; j <= high; j++) {
5377
- if (s1Matches[i] || s2Matches[j] || s1[i] !== s2[j]) {
5378
- continue;
5379
- }
5380
- m++;
5381
- s1Matches[i] = true;
5382
- s2Matches[j] = true;
5161
+
5162
+ const TAB_QUERY_PARAM_KEY = 'tab';
5163
+ const Tabs = JSX(({ className = '', isSticky, tabs = [], tabsMode, ...rest }) => {
5164
+ const router = useRouter();
5165
+ const { isReady } = router;
5166
+ const tabsControlItems = useMemo(() => tabs.map(normalizeTab), [tabs]);
5167
+ const [activeTabIndex, setActiveTabIndex] = useState(0);
5168
+ useEffect(() => {
5169
+ if (!tabs || !tabs[0]) {
5170
+ return;
5383
5171
  }
5384
- }
5385
- return { m, s1Matches, s2Matches };
5386
- }
5387
- function computeT(s1, s2, { s1Matches, s2Matches }) {
5388
- let t = 0;
5389
- for (let i = 0, k = 0; i < s1.length; i++) {
5390
- if (!s1Matches[i]) {
5391
- continue;
5172
+ const defaultTabIndex = router.query[TAB_QUERY_PARAM_KEY]
5173
+ ? tabs.findIndex((_) => _.type === 'group' && _.ref === router.query[TAB_QUERY_PARAM_KEY]) || 0
5174
+ : 0;
5175
+ const defaultTab = tabs[defaultTabIndex] || tabs[0];
5176
+ setActiveTabIndex(defaultTabIndex);
5177
+ fireTabEvent(defaultTab);
5178
+ }, [isReady]);
5179
+ useEffect(() => {
5180
+ const activeTab = tabs[activeTabIndex];
5181
+ if (activeTab?.type === 'group') {
5182
+ defaultEventBus.subject('tab', {
5183
+ type: activeTab.type,
5184
+ label: activeTab.ref,
5185
+ groupName: activeTab.name,
5186
+ });
5392
5187
  }
5393
- let j = k;
5394
- for (; j < s2.length; j++) {
5395
- if (s2Matches[j]) {
5396
- k = j + 1;
5397
- break;
5398
- }
5188
+ }, [tabs, activeTabIndex]);
5189
+ const updateUrlSearchTabParam = (_) => {
5190
+ const searchParams = new URLSearchParams(router.query);
5191
+ if (_.name) {
5192
+ searchParams.set(TAB_QUERY_PARAM_KEY, _.name);
5399
5193
  }
5400
- if (s1[i] !== s2[j]) {
5401
- t++;
5194
+ else {
5195
+ searchParams.delete(TAB_QUERY_PARAM_KEY);
5196
+ }
5197
+ router.replace(`${router.pathname}?${searchParams}`, '', { scroll: false });
5198
+ };
5199
+ const handleChange = useCallback((_) => {
5200
+ const index = tabsControlItems.indexOf(_);
5201
+ const tab = tabs[index];
5202
+ setActiveTabIndex(index);
5203
+ fireTabEvent(tab);
5204
+ if (tab.type === 'group') {
5205
+ updateUrlSearchTabParam(_);
5402
5206
  }
5207
+ }, [tabs, tabsControlItems]);
5208
+ return (jsx(BlockWrapper, { className: style(isSticky ? 'sticky top-1 z-20' : '', className), defaultPadding: "p-0", ...rest, children: renderTabs({
5209
+ items: tabsControlItems,
5210
+ value: tabsControlItems[activeTabIndex],
5211
+ tabsMode,
5212
+ onChange: handleChange,
5213
+ }) }));
5214
+ });
5215
+ const fireTabEvent = (tab) => {
5216
+ if (tab.type === 'group') {
5217
+ defaultEventBus.fire('tab', { type: tab.type, label: tab.ref, groupName: tab.name });
5403
5218
  }
5404
- return t;
5405
- }
5406
- function computePrefixL(s1, s2) {
5407
- let prefixL = 0;
5408
- while (s1[prefixL] === s2[prefixL] && prefixL < JARO_WINKLER_MAX_L) {
5409
- prefixL++;
5219
+ if (tab.type === 'link') {
5220
+ defaultEventBus.fire('tab', { type: tab.type, label: tab.href });
5410
5221
  }
5411
- return prefixL;
5412
- }
5413
-
5414
- const renderForeignOffices = (foreignOffices) => foreignOffices?.length ? (jsxs("div", { className: "sm:border-t sm: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 flex-col sm:flex-row gap-5xl", children: foreignOffices.map((office, i) => (jsx(ForeignOffice, { ...office }, String(i)))) })] })) : null;
5415
- const ForeignOffice = JSX(({ icon, ...rest }) => {
5416
- const link = useLink();
5417
- const { text, target, href, onClick } = link(rest);
5418
- return (jsxs("div", { className: "flex gap-s items-center", 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: jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text }) })) : null] }));
5419
- });
5420
-
5421
- const renderRegion = (onChangeLocation) => (region) => (jsx("div", { className: "mb-xs sm:mb-2xs", children: jsx("button", { className: "cursor-pointer hover:text-primary-hover", onClick: () => {
5422
- onChangeLocation && onChangeLocation(region);
5423
- }, children: jsx(Text, { size: "text-l", font: "font-light", children: region.name || '' }) }) }, region.id));
5222
+ };
5223
+ const normalizeTab = (_) => _?.type === 'group' ? { text: _.title, name: _.ref } : _;
5424
5224
 
5425
- 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));
5225
+ const alignTabStyle = {
5226
+ start: 'text-start',
5227
+ center: 'text-center',
5228
+ end: 'text-end',
5229
+ };
5426
5230
 
5427
- const SearchBar$1 = JSX(({ className, searchTerm, onSearch }) => {
5428
- return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsx("div", { className: "absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s 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-m w-full peer text-l text-black border border-solid rounded-md box-border
5429
- 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" })] }));
5231
+ const getButtonClassNames = (isActive) => ({
5232
+ btn: `w-96 ${isActive
5233
+ ? 'p-m border-none bg-primary-main text-white'
5234
+ : 'p-s ease-in duration-300 bg-white text-primary-text'}`,
5235
+ title: isActive ? 'mb-xs text-xl' : 'mb-2xs text-l',
5236
+ desc: `font-light ${isActive ? 'text-l text-white' : 'text-m text-secondary-text'}`,
5237
+ icon: isActive ? '' : 'text-primary-main',
5238
+ iconVersion: (isActive ? 'white' : 'normal'),
5239
+ });
5240
+ const TabsLayoutButton = JSX(({ tab, className, onClick, isActive }) => {
5241
+ const buttonClassNames = getButtonClassNames(isActive);
5242
+ return (jsxs("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: style('border border-gray cursor-pointer text-left border-b-0 mt-auto flex gap-2xs', buttonClassNames.btn, className), children: [tab?.icon ? (jsx(Img, { className: style('h-6 w-6 min-w-6 min-h-6', buttonClassNames.icon), image: {
5243
+ ...tab?.icon,
5244
+ iconVersion: tab?.icon?.iconVersion ?? buttonClassNames.iconVersion,
5245
+ }, width: "24", height: "24" })) : null, jsxs("div", { className: "border-0", children: [tab?.title ? jsx("div", { className: buttonClassNames.title, children: tab.title }) : null, tab?.description ? jsx("div", { className: buttonClassNames.desc, children: tab.description }) : null] })] }));
5430
5246
  });
5431
5247
 
5432
- const SEARCH_TERM_MIN_LENGTH = 3;
5433
- const LocationDialog = JSX(() => {
5434
- const { defaultLocation, foreignOffices } = useSitemap();
5435
- const [currentLocation, selectCurrentLocation] = useLocation(defaultLocation);
5436
- const [query, setQuery] = useState('');
5437
- const regions = cleanUpRegions(useRegions()).sort((a, b) => a.name.localeCompare(b.name));
5438
- const regionsGroupByLetter = groupBy(regions, regionFirstLetter);
5439
- const { close } = useDialogManager();
5440
- const handleChangeLocation = useCallback((region) => {
5441
- selectCurrentLocation(region);
5442
- close();
5443
- }, []);
5444
- return (jsxs(Dialog, { className: "pb-20", head: jsxs("div", { children: [jsx(Text, { size: "text-h4", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B" }), currentLocation ? (jsxs("div", { className: "mb-s", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { onClick: () => selectCurrentLocation(currentLocation), children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null, jsx(SearchBar$1, { onSearch: setQuery, searchTerm: query })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
5445
- .filter(({ name }) => name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8)
5446
- .map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-1 sm:columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), renderForeignOffices(foreignOffices)] }));
5248
+ const REDIRECT_DELAY = 0.8 * 1000;
5249
+ const TabsLayoutRedirectSection = JSX(({ tab }) => {
5250
+ const link = useLink();
5251
+ const { onClick } = link({
5252
+ ...tab,
5253
+ onClick: () => {
5254
+ /**
5255
+ * In the current implementation of useLink, there is no follow-by-link method,
5256
+ * and default routing won't work if the link is external.
5257
+ */
5258
+ if (tab.href && !isLocalURL(tab.href)) {
5259
+ globalThis.location.href = tab.href;
5260
+ }
5261
+ },
5262
+ });
5263
+ useDebouncedEffect(onClick, [], REDIRECT_DELAY);
5264
+ return jsx(Shimmer, { className: "col-span-12 p-xl", size: 5 });
5447
5265
  });
5448
- const regionFirstLetter = (region) => region.name?.charAt(0) || '';
5449
- const cleanUpRegions = (regions) => regions.map((region) => ({
5450
- ...region,
5451
- name: region.name?.replace(/республика|область|край'/gi, '').trim() || '',
5452
- }));
5453
5266
 
5454
- const useLocationDialog = () => {
5455
- const { open, close } = useDialogManager();
5456
- return {
5457
- open: (options = {}) => open(jsx(LocationDialog, {}), options),
5458
- close,
5459
- };
5267
+ const useScrollToTab = (activeTabIndex, scroll) => {
5268
+ const [initState, { setTrue: setInitStateTrue }] = useBool(false);
5269
+ useEffect(() => {
5270
+ scroll.scrollTo(activeTabIndex, {
5271
+ behavior: initState ? 'smooth' : 'auto',
5272
+ block: 'nearest',
5273
+ inline: 'center',
5274
+ });
5275
+ !initState && setInitStateTrue();
5276
+ }, [activeTabIndex, initState]);
5460
5277
  };
5461
5278
 
5462
- const SearchInput = JSX(({ className, value, autoFocus, onChange, onFocus, placeholder = 'Поиск по сайту' }) => {
5463
- const handleChange = useCallback((ev) => {
5464
- onChange && onChange(ev.target?.value || '');
5465
- }, [onChange]);
5466
- 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', iconVersion: 'black' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-14 w-full px-10 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: placeholder, autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
5279
+ const TabsLayout = UniBlock(({ className = '', tabs = [], block, tabAlign, ...rest }) => {
5280
+ const [activeTabIndex, setActiveTabIndex] = useState(getInitSelectedIndex(tabs));
5281
+ const slotName = getSlotName(tabs[activeTabIndex], activeTabIndex);
5282
+ const itemCount = tabs.length;
5283
+ const [activeSlideIndex, { inc: incActiveSlideIndex, dec: decActiveSlideIndex }] = useCarouselControls({ itemCount }, activeTabIndex);
5284
+ const [containerRef, scroll] = useSwipeListScroll({ itemCount });
5285
+ useScrollToTab(activeTabIndex, scroll);
5286
+ return (jsxs(BlockWrapper, { className: style(className), defaultPadding: "p-0", ...rest, children: [jsxs("div", { className: "relative border-b-8 border-primary-main", children: [jsx(SwipeListContainer, { itemClassName: "flex", containerRef: containerRef, snapAlign: "snap-end", gap: 8, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: tabs.map(renderTabButton(activeTabIndex, setActiveTabIndex, tabAlign)) }), jsx(CarouselScrollButtons, { scroll: scroll, arrowsPadded: true, onScrollLeft: decActiveSlideIndex, onScrollRight: incActiveSlideIndex, activeIndex: activeSlideIndex, itemCount: itemCount })] }), jsx("div", { className: "space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs", children: tabs[activeTabIndex]?.href ? (jsx(TabsLayoutRedirectSection, { tab: tabs[activeTabIndex] })) : (renderBlocksList(block?.slots?.[slotName], {
5287
+ ...rest?.options,
5288
+ slotName,
5289
+ parent: block,
5290
+ })) })] }));
5291
+ }, {
5292
+ slots: ({ tabs }) => tabs?.filter((_) => !_.href).map(getSlotName) || [],
5293
+ childrenTypes: { exclude: ['TabsLayout'] }, // TODO: fix this on wcms
5467
5294
  });
5295
+ const getSlotName = (tab, index) => tab?.title || `Слот №${index}`;
5296
+ const getInitSelectedIndex = (tabs) => tabs.reduce((selectedIndex, tab, i) => (tab.selected ? i : selectedIndex), 0);
5297
+ const renderTabButton = (activeTabIndex, onClick, tabAlign = 'start') => (tab, i) => (jsx(TabsLayoutButton, { className: alignTabStyle[tabAlign], tab: tab, isActive: activeTabIndex === i, onClick: () => onClick(i) }, String(i)));
5468
5298
 
5469
- const compareBy = (indexOf) => (a, b) => indexOf(a) - indexOf(b);
5470
- const desc = (cmp) => (a, b) => -cmp(a, b);
5299
+ const dividerStyle = '@4xl:border-main-divider @4xl:border-b';
5300
+ const firstCellStyle = 'w-80 flex-shrink-0';
5301
+ const COLS_LENGTH_FOR_SCROLL = 2;
5302
+ const COLUMN_WIDTH$1 = 4 * 80 + 40; // w-80 + pl-10 = 360px
5471
5303
 
5472
- const joinMaps = (aggregate, emptyVal) => (acc, map) => {
5473
- for (const [key, b] of map) {
5474
- acc.set(key, aggregate(acc.get(key) || emptyVal, b));
5475
- }
5476
- return acc;
5304
+ const carouselContainerClassesMap = {
5305
+ comparison: 'flex gap-m duration-1000',
5306
+ tariff: 'flex gap-5xl flex-grow duration-1000',
5477
5307
  };
5308
+ const TableCarouselContainer = JSX(({ children, activeIndex, columnWidth, version = 'comparison' }) => (jsx("div", { className: "flex flex-1 overflow-hidden", children: jsx("div", { className: carouselContainerClassesMap[version], style: { transform: `translateX(-${activeIndex * columnWidth}px)` }, children: children }) })));
5478
5309
 
5479
- const MIN_TERM_LEN = 3;
5480
- const tokenize = (text) => text
5481
- .toLowerCase()
5482
- .split(/[^0-9a-zа-я-]+/)
5483
- .filter((token) => token.length >= MIN_TERM_LEN && !/[0-9a-z]/.test(token));
5310
+ const TableInnerButton = JSX(({ className = '', isOpen, onClick }) => (jsx(LinkButton, { className: className, appendRight: jsx(Img, { image: { icon: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon' }, width: "20", height: "20" }), text: isOpen ? 'Скрыть' : 'Показать', version: "gray", onClick: onClick })));
5484
5311
 
5485
- const textRank = (queryTokens) => (text) => {
5486
- const textTokens = tokenize(text || '');
5487
- return textTokens.length
5488
- ? sum(queryTokens.map((qToken) => max(textTokens.map(jaroWinklerDistance(qToken)))))
5489
- : 0;
5312
+ const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons, {
5313
+ buttonClassName: 'basis-0',
5314
+ });
5315
+ const renderLabelDescriptionCellData = ({ label, description }) => (jsxs("div", { className: "space-y-2xs", children: [label ? (jsx("div", { children: jsx(Text, { size: "text-h6", children: label }) })) : null, description ? (jsx("div", { children: jsx(Text, { size: "text-l", color: "text-secondary-text", children: description }) })) : null] }));
5316
+ const renderImgCellData = ({ image }) => (image?.src ? jsx(Img, { image: image }) : null);
5317
+ const renderListCellData = ({ isDotted, ...rest }) => (jsx(List, { className: "flex flex-col justify-between items-start text-h6", isDotted: isDotted ?? true, ...rest }));
5318
+ const renderInnerTableCellData = ({ isVisible, displayTable, dataUrl, pdfUrl, isOpen, }) => isVisible ? (jsx(TableInnerButton, { isOpen: isOpen, onClick: () => {
5319
+ displayTable({ dataUrl, pdfUrl });
5320
+ } })) : null;
5321
+ const EmbeddableCellData = {
5322
+ Buttons: renderButtonsCellData,
5323
+ Img: renderImgCellData,
5324
+ List: renderListCellData,
5325
+ LabelDescription: renderLabelDescriptionCellData,
5326
+ Table: renderInnerTableCellData,
5490
5327
  };
5491
5328
 
5492
- const JW_THRESHOLD = 0.8;
5493
- const RANK_EPS = 0.001;
5494
- const search = (query) => (searchIndex) => {
5495
- const { corpus, dictionary } = searchIndex || {};
5496
- if (!query || !corpus?.length || !dictionary || !Object.keys(dictionary).length) {
5497
- return [];
5329
+ const RenderCellInner = JSX(({ cell, fieldIdx, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
5330
+ const [isVisible, setVisibility] = useState(true);
5331
+ useEffect(() => {
5332
+ if (cellIdx !== openTableInnerIdx || !tableInner) {
5333
+ setVisibility(true);
5334
+ }
5335
+ }, [tableInner, openTableInnerIdx]);
5336
+ const displayTable = (props) => {
5337
+ setVisibility(false);
5338
+ setOpenTableInnerIdx(cellIdx);
5339
+ setTableInner(props);
5340
+ };
5341
+ return renderCell({
5342
+ cell,
5343
+ cellProps: {
5344
+ rowIdx,
5345
+ cellIdx,
5346
+ fieldIdx,
5347
+ displayTable,
5348
+ isVisible,
5349
+ },
5350
+ });
5351
+ });
5352
+ const renderCell = ({ cell, cellProps }) => {
5353
+ if (!cell) {
5354
+ return null;
5498
5355
  }
5499
- const queryTokens = tokenize(query);
5500
- if (!queryTokens.length) {
5501
- return [];
5356
+ const { tableCellType: type, ...rest } = cell;
5357
+ if (!type || !(type in EmbeddableCellData)) {
5358
+ return null;
5502
5359
  }
5503
- const dictEntries = Object.entries(dictionary);
5504
- const pagesRanking = queryTokens
5505
- .map(computePagesRankingPerToken(dictEntries))
5506
- .reduce(joinMaps((a, b) => a + b, 0), new Map());
5507
- const relevantPages = [...pagesRanking.entries()]
5508
- .filter(([, pageRank]) => pageRank >= (JW_THRESHOLD - RANK_EPS) * queryTokens.length) // Multiplication of query tokens
5509
- .map(([pageIndex]) => corpus[pageIndex]);
5510
- return sortResultsByRank(queryTokens)(relevantPages);
5360
+ const EmbeddableCellInner = EmbeddableCellData[type];
5361
+ return jsx(EmbeddableCellInner, { ...cellProps, ...rest });
5511
5362
  };
5512
- const computePagesRankingPerToken = (dictEntries) => (qToken) => dictEntries
5513
- .map(([stem, pageIndices]) => [jaroWinklerDistance(qToken)(stem), pageIndices])
5514
- .filter(([stemRank]) => stemRank >= JW_THRESHOLD)
5515
- .map(([stemRank, pageIndices]) => fillMapWith(pageIndices, stemRank))
5516
- .reduce(joinMaps(Math.max, 0), new Map());
5517
- const sortResultsByRank = (queryTokens) => (results) => zip(results, results.map(({ title }) => title).map(textRank(queryTokens)))
5518
- .sort(desc(compareBy(([, pageTitleRank]) => pageTitleRank)))
5519
- .map(([corpusItem]) => corpusItem);
5520
- const fillMapWith = (keys, value) => new Map(keys.map((_) => [_, value]));
5521
5363
 
5522
- const SEARCH_INDEX_FILENAME = 'search.index.json';
5523
- const useSearch = ({ basePathList, initialQuery = '', }) => {
5524
- const [query, setQuery] = useState(initialQuery || '');
5525
- useEffect(() => {
5526
- if (initialQuery !== undefined && initialQuery !== null) {
5527
- setQuery(initialQuery);
5528
- }
5529
- }, [initialQuery]);
5530
- const { data } = useAsyncData(basePathList?.length ? basePathList : null, fetchSearchIndex);
5531
- const [result, setResult] = useState(null);
5532
- useDebouncedEffect(() => {
5533
- if (data) {
5534
- setResult(data.map(search(query)));
5535
- }
5536
- }, [data, query]);
5537
- return [result, { value: query, onChange: setQuery }];
5364
+ const TariffsTableCell = JSX(({ cells, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
5365
+ return (jsx("div", { className: "w-80 flex-grow flex flex-col gap-m @4xl:gap-lg", role: "cell", children: cells?.length
5366
+ ? cells.map((_, i) => (jsx(RenderCellInner, { cell: _, fieldIdx: i, rowIdx: rowIdx, cellIdx: cellIdx, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx }, String(i))))
5367
+ : null }));
5368
+ });
5369
+
5370
+ const COLUMN_WIDTH = 140;
5371
+ const getHorizontalShift = (columns, activeColumnIndex) => sum(columns.slice(0, activeColumnIndex).map((_) => _?.cols?.length ?? 1)) * COLUMN_WIDTH;
5372
+
5373
+ const renderInnerTableRow = (activeColumnIndex) => (rowData, rowIdx) => {
5374
+ if (!rowData?.length) {
5375
+ return null;
5376
+ }
5377
+ const [headerColumn, ...columns] = rowData;
5378
+ const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
5379
+ return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
5380
+ transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
5381
+ }, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx(Text, { size: "text-xl", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
5538
5382
  };
5539
- const fetchSearchIndex = async (...basePathList) => (await Promise.allSettled(basePathList.map((basePath) => fetchJSON(joinPath(basePath, '/', SEARCH_INDEX_FILENAME))))).map((_) => (_.status === 'fulfilled' ? _.value : {}));
5383
+ const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: style('flex', rowIndex === 0 ? 'text-secondary-text' : ''), children: cols.map((data, i) => (jsx("div", { className: "w-20 mx-lg", children: jsx(Text, { size: "text-h6", font: "font-light", children: data }) }, String(i)))) })) : null;
5540
5384
 
5541
- const Sitemap = JSX(({ className, topItems }) => {
5542
- const link = useLink({ isRemote: true });
5543
- return (jsx("div", { className: style('flex items-start justify-between', className), children: topItems?.map(link).map(renderColumn) }));
5385
+ const InnerTableBodyItem = JSX(({ rows }) => (jsx(SwipeListContainer, { visibleItemCount: 0, snapAlign: "snap-start", children: jsx("div", { children: rows?.map(renderInnerTableRow(0)) }) })));
5386
+
5387
+ const InnerTableBody = JSX(({ activeTabIndex, items }) => {
5388
+ return (jsx("div", { children: items.map((_, tableIdx) => {
5389
+ const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
5390
+ return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex py-m sm:px-m bg-white @4xl:bg-gray relative", children: jsx(Text, { size: "text-xl", align: "text-left", children: _.title }) }), jsx("div", { className: "w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
5391
+ }) }));
5544
5392
  });
5545
- const FOOTER_AREA_KEYS = ['all', 'footer'];
5546
- const renderColumn = (menuItem, index) => {
5547
- const { text, items = [], href, target, onClick } = menuItem;
5548
- const visibleSubItems = items.filter((_) => !_.displayArea || FOOTER_AREA_KEYS.includes(_.displayArea.toLowerCase()));
5549
- return (jsxs("div", { className: "flex flex-col gap-s 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}` }), visibleSubItems.map((_, i) => (jsx(ColumnItem, { ..._, basePath: appendSlash(href), index: i }, String(i))))] }, String(index)));
5550
- };
5551
- const ColumnItem = JSX(({ text, index, basePath, ...rest }) => {
5552
- const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
5553
- const link = useLink({ isRemote: isAnotherPortal, basePath });
5554
- const { href, target, onClick } = link(rest);
5555
- 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}` }));
5393
+
5394
+ const linkButtonVersion = 'link';
5395
+
5396
+ const TableColor = (isEqual = false) => `${isEqual ? 'text-white' : 'text-secondary-text'}`;
5397
+ const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between items-center w-full py-lg", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-2xs rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: style('rounded-md px-4 py-3 cursor-pointer', idx === activeTabIndex ? 'bg-primary-main' : ''), onClick: () => setActiveTabIndex(idx), children: jsx(Text, { size: "text-xl", font: "font-light", color: TableColor(idx === activeTabIndex), children: currency || idx + 1 }) }, currency))) })) : null, linkToPDF ? (jsx(LinkButton, { className: "text-primary-main", href: linkToPDF, version: linkButtonVersion, target: "_blank", appendLeft: jsx(Icon, { name: "DocDownloadIcon", iconVersion: "color", className: "mr-3xs", width: "20", height: "20" }), text: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })) : null] })));
5398
+
5399
+ function useTariffsInnerTableData(directoryName) {
5400
+ const { data } = useAsyncData(tariffsInnerTableDataUrl(directoryName), fetchTariffsInnerTableData);
5401
+ return data || {};
5402
+ }
5403
+ async function fetchTariffsInnerTableData(url) {
5404
+ const response = await fetch(url);
5405
+ return await response.json();
5406
+ }
5407
+ function tariffsInnerTableDataUrl(directoryName) {
5408
+ return `/wcms-resources/${directoryName || 'tariffs-inner-table-data'}.json`;
5409
+ }
5410
+
5411
+ const EMPTY_DATA$1 = 'Данных нет';
5412
+ const InnerTable = JSX(({ dataUrl, pdfUrl, onClick }) => {
5413
+ const { tableData } = useTariffsInnerTableData(dataUrl);
5414
+ const [activeTabIndex, setActiveTabIndex] = useState(0);
5415
+ const handleActiveTabIndex = useCallback((_) => setActiveTabIndex(_), []);
5416
+ const items = tableData?.[activeTabIndex]?.items ?? [];
5417
+ const currencies = tableData?.map((item) => item.currency ?? '');
5418
+ return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex, linkToPDF: pdfUrl }), jsx(InnerTableBody, { activeTabIndex: activeTabIndex, items: items }), jsx(TableInnerButton, { className: "mt-xl", onClick: onClick, isOpen: true })] })) : (jsxs("div", { className: "my-lg space-y-m text-center", children: [jsx(Text, { size: "text-h6", children: EMPTY_DATA$1 }), jsx(TableInnerButton, { onClick: onClick, isOpen: true })] }));
5556
5419
  });
5557
5420
 
5558
- const SearchDialog = JSX(({ initialQuery }) => {
5559
- const { topItems } = useSitemap();
5560
- const basePathList = useMemo(() => topItems?.map((_) => _.href || '/'), [topItems]);
5561
- const [searchResult, searchInputProps] = useSearch({
5562
- basePathList,
5563
- initialQuery,
5564
- });
5565
- const searchItems = useMemo(() => combineTopItemsAndSearchResult(topItems)(searchResult), [topItems, searchResult]);
5566
- useEffect(() => printSearchItems(searchItems), [searchItems]); // Temp
5567
- return (jsx(Dialog, { head: jsx(SearchInput, { autoFocus: true, ...searchInputProps }), children: jsx(Sitemap, { topItems: searchItems }) }));
5421
+ const TariffsTableRowContainer = JSX(({ children, tableInner, onHideContentClick }) => (jsxs("div", { className: "self-start flex flex-col", role: "row", children: [jsx("div", { className: style(dividerStyle, 'flex flex-col @4xl:flex-row gap-y-xs gap-x-5xl pb-lg @4xl:pt-lg'), children: children }), tableInner ? (jsx("div", { className: "origin-top animate-expansion", children: jsx(InnerTable, { ...tableInner, onClick: onHideContentClick }) })) : null] })));
5422
+
5423
+ const TariffsTableRow = JSX(({ row: { header, data }, activeIndex, rowIdx, ...rest }) => {
5424
+ const [tableInner, setTableInner] = useState(undefined);
5425
+ const handleSetTableInner = useCallback((_) => setTableInner(_), []);
5426
+ const [openTableInnerIdx, setOpenTableInnerIdx] = useState(undefined);
5427
+ const handleOpenTableInnerIdx = useCallback((_) => setOpenTableInnerIdx(_), []);
5428
+ const onHideContentClick = () => setTableInner(undefined);
5429
+ return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: style('text-s', firstCellStyle), children: jsxs("div", { className: "flex gap-m items-center", role: "cell", children: [header?.icon ? (jsx(Img, { className: "hidden @4xl:block max-w-6 shrink-0", image: header.icon, width: "24", height: "24" })) : null, header?.title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: header?.title })) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
5568
5430
  });
5569
- const combineTopItemsAndSearchResult = (topItems) => (searchResult) => topItems?.length && searchResult?.length
5570
- ? zip(topItems, searchResult).map(([_, portalSearchResult]) => ({
5571
- ..._,
5572
- items: portalSearchResult?.map(({ title, uri }) => ({ text: title, href: joinPath('/', uri) })),
5573
- }))
5574
- : [];
5575
- // Temp
5576
- function printSearchItems(topItems) {
5577
- for (const _ of topItems.filter(({ items }) => items?.length)) {
5578
- console.group(_.text);
5579
- console.table(_.items, ['text', 'href']);
5580
- console.groupEnd();
5431
+
5432
+ /** @deprecated */
5433
+ function renderArrows({ dec, inc, canDec, canInc, btnClass, className = '', }) {
5434
+ const isVisible = canDec || canInc;
5435
+ if (!isVisible) {
5436
+ return null;
5581
5437
  }
5438
+ return (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: style('absolute z-40', btnClass[0], className), onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: style('absolute z-40 rotate-180', btnClass[1], className), onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] }));
5582
5439
  }
5583
5440
 
5584
- const useSearchDialog = () => {
5585
- const { open, close } = useDialogManager();
5586
- return {
5587
- open: (props = {}, options = {}) => open(jsx(SearchDialog, { ...props }), options),
5588
- close,
5589
- };
5590
- };
5591
-
5592
- const MIN_QUERY_LEN = 3;
5593
- const SearchBar = JSX(({ className }) => {
5594
- const [value, setValue] = useState('');
5595
- const resetQueryOnDialogClose = useCallback(() => setValue(''), []);
5596
- const { open } = useSearchDialog();
5597
- const handleInitialInputChange = useCallback((_) => {
5598
- setValue(_);
5599
- if (isQueryLongEnough(_)) {
5600
- open({ initialQuery: _ }, { onClose: resetQueryOnDialogClose });
5601
- }
5602
- }, [resetQueryOnDialogClose]);
5603
- return (jsxs("div", { className: style('relative', className), children: [jsx(SearchInput, { value: value, onChange: handleInitialInputChange }), jsx(CloseButton, { className: "absolute top-0 right-0 sm:hidden", onClose: resetQueryOnDialogClose })] }));
5441
+ const TariffsTableWrapper = JSX(({ children, controls }) => {
5442
+ const { isScrollAvailable } = controls;
5443
+ return (jsxs("div", { role: "table", children: [jsxs("div", { className: "relative space-y-xs", children: [children, renderArrows({
5444
+ ...controls,
5445
+ btnClass: ['top-28', 'top-11'],
5446
+ className: 'right-7',
5447
+ })] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" })) : null] }));
5604
5448
  });
5605
- const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
5606
5449
 
5607
- const ActiveSubMenuItem = JSX(({ item, basePath }) => {
5608
- const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
5609
- const link = useLink({ isRemote: isAnotherPortal, basePath });
5610
- const { href, target, onClick } = link(item);
5611
- const router = useRouter();
5612
- const isActive = isHrefActive(router)({ href });
5613
- return (jsxs("a", { className: style(isActive ? 'text-primary-main' : 'text-primary-text', `py-3 text-h5 font-light flex justify-between cursor-pointer`), href: href, target: target, onClick: onClick, children: [item.text, jsx(Img, { image: { icon: 'ChevronLeftIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-secondary-text rotate-180 opacity-30" })] }));
5450
+ const TariffsTable = JSX(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
5451
+ const colData = columns?.map(({ data }) => data) || [];
5452
+ const rowData = rowHeaders?.map((header, i) => ({
5453
+ header,
5454
+ data: colData.map((col) => col?.[i] || []),
5455
+ }));
5456
+ const itemCount = colData.length;
5457
+ const [activeIndex, controls] = useCarouselControls({
5458
+ itemCount: itemCount,
5459
+ visibleItemCount: COLS_LENGTH_FOR_SCROLL,
5460
+ });
5461
+ const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
5462
+ const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
5463
+ return (jsxs(BlockWrapper, { className: style('overflow-hidden relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m", children: hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
5614
5464
  });
5615
5465
 
5616
- const ActiveSubMenu = JSX(({ activeMenuSubItems, basePath }) => activeMenuSubItems ? (jsx("div", { className: "mb-5", children: activeMenuSubItems.map((_, i) => (jsx(ActiveSubMenuItem, { item: _, basePath: basePath }, String(i)))) })) : null);
5466
+ const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { __html: __html }) : null] })] })));
5467
+ const renderIcon = () => (jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main`, children: "i" }));
5468
+ const renderDescription = (description) => (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text group-data-secondary:text-white", children: description }));
5617
5469
 
5618
- const TopItemMobile = ({ item, isActive, onClick }) => (jsxs("button", { type: "button", className: "relative", onClick: onClick, children: [jsx("span", { className: style('whitespace-nowrap', isActive ? 'text-primary-main' : ''), children: item.text }), isActive ? (jsx("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }));
5470
+ const Unit = JSX(({ prefix, unit, suffix }) => (jsxs("div", { className: "w-full flex items-end", children: [prefix ? (jsx("div", { className: "gradient-color-text", children: jsx(Text, { size: "text-h2", children: prefix }) })) : null, unit ? (
5471
+ // -mb-n добавлен для выравнивания unit относительно prefix и suffix, тк шрифт font-mohave неправильно высчитывает line-height
5472
+ jsx("div", { className: "-mb-6 @xl:-mb-4", children: jsx("span", { className: "font-mohave text-title-large sm:text-title-extra gradient-color-text", children: unit }) })) : null, suffix ? (jsx("div", { className: "gradient-color-text", children: jsx(Text, { size: "text-h2", children: suffix }) })) : null] })));
5619
5473
 
5620
- const BurgerMenuDialog = JSX((props) => {
5621
- const { topItems, officesLink, defaultLocation } = useSitemap(props.options?.page?.fallback);
5622
- const [location] = useLocation(defaultLocation);
5623
- const locationDialog = useLocationDialog();
5624
- const openLocationDialog = useCallback(() => locationDialog.open(), []);
5625
- const [containerRef, scroll] = useSwipeListScroll({
5626
- itemCount: topItems?.length ?? 0,
5627
- });
5628
- const [activeIndex] = useActiveRoute(topItems);
5629
- const [activeTopItemIndex, setActiveTopItemIndex] = useState(activeIndex);
5630
- const activeRoute = useMemo(() => topItems?.[activeTopItemIndex], [topItems, activeTopItemIndex]);
5631
- const activeMenuSubItems = activeRoute?.items || [];
5632
- useEffect(() => {
5633
- setActiveTopItemIndex(activeIndex);
5634
- }, [activeIndex]);
5635
- useEffect(() => {
5636
- if (activeTopItemIndex > 0) {
5637
- scroll.scrollTo(activeTopItemIndex);
5638
- }
5639
- }, [activeTopItemIndex, scroll]);
5640
- const handleTopItemClick = useCallback((idx) => setActiveTopItemIndex(idx), []);
5641
- return (jsx(Dialog, { head: jsx("div", { className: "flex items-center", children: jsx(Heading, { as: "h4", title: "\u041C\u0435\u043D\u044E" }) }), children: jsxs("div", { className: "flex flex-col flex-nowrap relative w-full h-auto m-auto bg-white pb-24 box-border rounded-md", children: [jsx("div", { className: "w-full mb-3", children: jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: 0, gap: 20, className: "pb-3", children: topItems?.map((item, i) => (jsx(TopItemMobile, { item: item, isActive: activeTopItemIndex === i, onClick: () => handleTopItemClick(i) }, String(i)))) }) }), jsxs("div", { className: "relative grow overflow-auto", children: [jsx(ActiveSubMenu, { activeMenuSubItems: activeMenuSubItems, basePath: activeRoute?.href }), jsx(SearchBar, { className: "grow mb-5" }), renderOfficeLink(officesLink), jsxs("div", { className: "flex items-center text-s cursor-pointer", onClick: openLocationDialog, children: [jsx(Img, { image: { icon: 'GeolocationIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-primary-main box-border mr-xs bg-main-divider p-xs rounded-md" }), jsxs("div", { className: "flex flex-col items-start", children: [jsx(Text, { size: "text-h5", children: location.name }), jsx(Text, { color: "text-secondary-text", size: "text-s", children: "\u0412\u0430\u0448\u0430 \u043B\u043E\u043A\u0430\u0446\u0438\u044F" })] })] })] })] }) }));
5474
+ const UnitBlock = JSX((props) => {
5475
+ const { prefix, unit, suffix, ...rest } = props;
5476
+ return (jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: jsx(Unit, { prefix: prefix, unit: unit, suffix: suffix }) }));
5642
5477
  });
5643
- const renderOfficeLink = (officesLink) => officesLink ? (jsxs("a", { className: "flex items-center mb-3", href: officesLink, rel: "noopener noreferrer", "aria-label": "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", children: [jsx(Img, { image: { icon: 'MapOpenedIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-primary-main box-border mr-xs bg-main-divider p-xs rounded-md" }), jsx("span", { children: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })] })) : null;
5644
5478
 
5645
- const BURGER_MENU_DIALOG_ID = 'burgerMenuDialog';
5646
- const useBurgerMenuDialog = () => {
5647
- const { open: openDialog, closeAll, close } = useDialogManager();
5648
- const dialogs = useDialogsList();
5649
- const isBurgerMenuOpen = isDialogOpen(BURGER_MENU_DIALOG_ID, dialogs);
5650
- const open = useCallback(() => openDialog(jsx(BurgerMenuDialog, {}), { id: BURGER_MENU_DIALOG_ID }), []);
5651
- const toggle = useCallback(() => {
5652
- if (isBurgerMenuOpen) {
5653
- closeAll();
5654
- }
5655
- else {
5656
- open();
5657
- }
5658
- }, [isBurgerMenuOpen]);
5659
- return [Boolean(isBurgerMenuOpen), { open, close, toggle }];
5479
+ const Blocks = {
5480
+ AdTile,
5481
+ ApplicationForm,
5482
+ BenefitsBlock,
5483
+ BonusBenefitsBlock,
5484
+ ButtonsBlock,
5485
+ Calculator,
5486
+ CardTransfer,
5487
+ Carousel,
5488
+ CarouselBankHistoryCard,
5489
+ CarouselCard,
5490
+ CarouselCatalogCard,
5491
+ CarouselLinks,
5492
+ CarouselRecommendationCard,
5493
+ CarouselTariffsCard,
5494
+ ComparisonTable,
5495
+ DepositFiltration,
5496
+ ErrorBlock,
5497
+ ExchangeRateTile,
5498
+ Footer,
5499
+ Header,
5500
+ Headline,
5501
+ HorizontalLayout,
5502
+ ImgBlock,
5503
+ LinkDocs,
5504
+ MobileAppTile,
5505
+ MortgageFiltration,
5506
+ OfficesAtmsMap,
5507
+ Placeholder,
5508
+ ProductBlock,
5509
+ ProductGallery,
5510
+ RepresentativeOfficeInfo,
5511
+ RichTextBlock,
5512
+ RollupItem,
5513
+ SafeDepositRental,
5514
+ StepsBlock,
5515
+ StickyBottomMenu,
5516
+ Tabs,
5517
+ TabsLayout,
5518
+ TariffsTable,
5519
+ TextBlock,
5520
+ UnitBlock,
5521
+ VerticalLayout,
5660
5522
  };
5661
5523
 
5662
- const EMPTY_MENU = [];
5663
- const StickyBottomMenu = JSX(({ ...rest }) => {
5664
- const [isBurgerMenuDialogOpen, { toggle, close }] = useBurgerMenuDialog();
5665
- const dataName = projectSettings.STICKY_MOBILE_MENU || 'sticky-mobile-menu';
5666
- const { menuItems = EMPTY_MENU } = useSWRResource(dataName, {
5667
- fallback: rest.options?.page?.fallback,
5668
- pathDir: joinPath(projectSettings.BASE_PATH, 'portal-resources'),
5669
- });
5670
- const [, activeItem] = useActiveRoute(menuItems);
5671
- const middleIdx = Math.floor(menuItems.length / 2);
5672
- const leftItems = menuItems.slice(0, middleIdx);
5673
- const rightItems = menuItems.slice(middleIdx);
5674
- /* Attribute [data-component] need for correct render in wcms editor. Do not remove. */
5675
- return (jsx("div", { className: "w-full mb-5", "data-component": "sticky-bottom-menu-container", children: jsx("div", { className: "fixed w-full h-[74px] bottom-0 left-0 my-0 mx-auto bg-transparent z-[100]", children: jsxs("div", { className: "ml-auto container bg-white flex justify-center shadow-blue-gray", children: [leftItems.map(renderMenuItem(activeItem, close)), jsx(StickyBottomMenuBurger, { isActive: isBurgerMenuDialogOpen, onClick: toggle }), rightItems.map(renderMenuItem(activeItem, close))] }) }) }));
5524
+ const COOKIE_DIALOG_ID = 'cookie';
5525
+ const DIALOG_INITIAL_DELAY = 3 * 1000;
5526
+ const CookiePopup = JSX(({ termLink, personalDataPolicyLink }) => {
5527
+ const [opened, { setTrue: open, setFalse: close }] = useBool();
5528
+ useDebouncedEffect(() => {
5529
+ if (!globalThis.localStorage?.getItem(COOKIE_DIALOG_ID)) {
5530
+ open();
5531
+ }
5532
+ }, [], DIALOG_INITIAL_DELAY);
5533
+ const handleClose = useCallback(() => {
5534
+ globalThis.localStorage?.setItem(COOKIE_DIALOG_ID, 'true');
5535
+ close();
5536
+ }, []);
5537
+ 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-main-black", 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;
5676
5538
  });
5677
- const renderMenuItem = (activeItem, close) => (_, i) => (jsx(StickyBottomMenuItem, { isActive: _ === activeItem, item: _, onClick: close }, _.href || String(i)));
5539
+ const linkWrapperStyle = (href) => style('inline mx-2xs', href ? 'text-green-dark' : '');
5678
5540
 
5679
- const api = LikeAPI();
5680
- function useLikeService(pagePath) {
5681
- const [likeCount, setLikeCount] = useState(0);
5541
+ const DialogManager = JSX(() => {
5542
+ const handleCloseAll = useCallback((dialogs) => {
5543
+ for (const _ of dialogs) {
5544
+ _?.onClose && _.onClose();
5545
+ }
5546
+ }, []);
5547
+ const handleClose = useCallback((_) => {
5548
+ _?.onClose && _.onClose();
5549
+ }, []);
5550
+ const dialogs = useDialogsList({ onCloseAll: handleCloseAll, onClose: handleClose });
5551
+ const { close } = useDialogManager();
5552
+ const escapeHandler = useCallback(({ key }) => {
5553
+ if (key === 'Escape') {
5554
+ close();
5555
+ }
5556
+ }, []);
5557
+ useEventListener(globalThis.document, 'keydown', escapeHandler);
5682
5558
  useEffect(() => {
5683
- (async () => {
5684
- const [likeData] = await api.getLikeCount(pagePath);
5685
- setLikeCount(likeData?.value || 0);
5686
- })();
5687
- }, [pagePath]);
5688
- const like = useCallback(async () => {
5689
- setLikeCount(await api.like(pagePath));
5690
- }, [pagePath]);
5691
- const dislike = useCallback(async () => {
5692
- setLikeCount(await api.dislike(pagePath));
5693
- }, [pagePath]);
5694
- return {
5695
- likeCount,
5696
- like,
5697
- dislike,
5698
- };
5699
- }
5700
-
5701
- /** @deprecated */
5702
- const LikeButton = JSX(({ className, onClick, ariaLabel }) => (jsx("button", { type: "button", className: `border-0 w-9 bg-inherit cursor-pointer ${className || ''}`, onClick: onClick, "aria-label": ariaLabel, children: renderLikeIcon() })));
5703
- const renderLikeIcon = () => {
5704
- const handPath = 'M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1' +
5705
- ' 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77';
5706
- const cuffPath = 'M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z';
5707
- return (jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [renderLinkIconPath(handPath), renderLinkIconPath(cuffPath)] }));
5708
- };
5709
- const renderLinkIconPath = (d) => (jsx("path", { stroke: "#292D32", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", strokeMiterlimit: "10", d: d }));
5559
+ if (dialogs.length) {
5560
+ globalThis.document?.body.classList.add('no-scrollbar');
5561
+ globalThis.document?.body.classList.add('overflow-hidden');
5562
+ }
5563
+ else {
5564
+ globalThis.document?.body.classList.remove('no-scrollbar');
5565
+ globalThis.document?.body.classList.remove('overflow-hidden');
5566
+ }
5567
+ }, [dialogs]);
5568
+ 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;
5569
+ });
5710
5570
 
5711
- const LikeControl = JSX(({ className = '' }) => {
5712
- const router = useRouter();
5713
- const likeService = useLikeService(router.pathname);
5714
- return (jsxs("div", { className: `border-main border-2 border-solid bg-white flex w-32 items-center justify-center gap-s p-xs font-sans ${className}`, children: [jsx(LikeButton, { onClick: handlerDecorator(likeService.like), ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u043B\u0430\u0439\u043A\u00BB" }), jsx(LikeButton, { onClick: handlerDecorator(likeService.dislike), className: "rotate-180", ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u0434\u0438\u0437\u043B\u0430\u0439\u043A\u00BB" }), jsx("span", { className: "select-none", children: likeService.likeCount })] }));
5571
+ const PopupManager = JSX(() => {
5572
+ const [popup, setPopup] = useState(null);
5573
+ const close = useCallback(() => {
5574
+ setPopup(null);
5575
+ }, []);
5576
+ useEffect(() => defaultEventBus.subscribe('popup', (action) => {
5577
+ switch (action.type) {
5578
+ case 'open':
5579
+ case 'update':
5580
+ setPopup(action);
5581
+ break;
5582
+ case 'close':
5583
+ close();
5584
+ break;
5585
+ default:
5586
+ assertUnreachable(action);
5587
+ }
5588
+ }), []);
5589
+ const escapeHandler = useCallback(({ key }) => {
5590
+ if (key === 'Escape') {
5591
+ close();
5592
+ }
5593
+ }, [close]);
5594
+ useEventListener(globalThis.document, 'keydown', escapeHandler);
5595
+ return popup ? (jsx("div", { className: "absolute z-50", style: {
5596
+ left: `${popup.left}px`,
5597
+ top: `${popup.top}px`,
5598
+ ...(popup.width ? { width: `${popup.width}px` } : {}),
5599
+ }, role: "dialog", children: popup.popup })) : null;
5715
5600
  });
5716
5601
 
5717
- const ContentPage = JSX(({ className, blocksRegistry, blockDecorator, data = {} }) => {
5718
- const { style: pageStyle, slots, likeControl, colorPalette = 'pc' } = data;
5602
+ const HEADER_SLOT = 'header';
5603
+ const FOOTER_SLOT = 'footer';
5604
+ const STICKY_FOOTER_SLOT = 'sticky-footer';
5605
+ const EMPTY_DATA = {};
5606
+ const ContentPage = JSX(({ className, data = EMPTY_DATA, blocksRegistry, blockDecorator }) => {
5607
+ const { slots, blocks, ...pageContent } = data;
5608
+ const resolvedPageContent = useJSONRef(pageContent);
5719
5609
  const options = {
5720
5610
  key: '',
5721
- page: data,
5611
+ page: { slots, blocks, ...resolvedPageContent },
5722
5612
  blocksRegistry,
5723
5613
  blockDecorator,
5724
5614
  parent: data,
5725
5615
  };
5726
- return (jsxs("div", { "data-theme": colorPalette, children: [jsxs("section", { className: style('@container relative', pageStyle, className), children: [slots?.header ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, { ...options, slotName: 'header' }) })) : null, jsxs("div", { className: "container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs", children: [renderChildren({ block: data, options, extraProps: { className: 'scroll-mt-12' } }), renderBlocksList(slots?.footer, { ...options, slotName: 'footer' })] }), likeControl ? renderLikeControl() : null] }), jsx(StickyBottomMenu, { options: options }), jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
5616
+ return (jsxs("div", { "data-theme": data.colorPalette || 'pc', children: [jsxs("section", { className: style('@container relative', data.style, className), children: [slots?.[HEADER_SLOT]?.length ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.[HEADER_SLOT], { ...options, slotName: HEADER_SLOT }) })) : null, jsxs("div", { className: "container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs", children: [renderChildren({
5617
+ block: data,
5618
+ options,
5619
+ extraProps: { className: 'scroll-mt-12' },
5620
+ }), renderBlocksList(slots?.[FOOTER_SLOT], { ...options, slotName: FOOTER_SLOT })] })] }), slots?.[STICKY_FOOTER_SLOT]?.length ? (jsx("div", { className: "fixed w-full bottom-0 left-0 z-[100]", children: renderBlocksList(slots?.[STICKY_FOOTER_SLOT], {
5621
+ ...options,
5622
+ slotName: STICKY_FOOTER_SLOT,
5623
+ }) })) : null, jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
5624
+ });
5625
+ Object.assign(ContentPage, {
5626
+ childrenTypes: [],
5627
+ slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
5727
5628
  });
5728
- ContentPage.childrenTypes = [];
5729
- ContentPage.slots = () => ['header', 'footer'];
5730
- function renderLikeControl() {
5731
- return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
5732
- }
5733
5629
 
5734
5630
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
5735
5631
 
5736
- const packageVersion = "0.14.161";
5632
+ const packageVersion = "0.14.163";
5737
5633
 
5738
5634
  exports.Blocks = Blocks;
5739
5635
  exports.ContentPage = ContentPage;
5740
5636
  exports.DaDataAPI = DaDataAPI;
5741
- exports.LikeAPI = LikeAPI;
5742
5637
  exports.handlerDecorator = handlerDecorator;
5743
5638
  exports.joinList = joinList;
5744
5639
  exports.packageVersion = packageVersion;