@redneckz/wildless-cms-uni-blocks 0.5.10 → 0.5.12

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 (1971) hide show
  1. package/bin/migration-scripts/0.4.5.js +1 -1
  2. package/bin/migration-scripts/0.5.10.js +36 -0
  3. package/bin/utils.js +0 -2
  4. package/bundle/EventBus/EventBus.d.ts +10 -0
  5. package/bundle/EventBus/EventMap.d.ts +7 -0
  6. package/bundle/ProjectSettings.d.ts +24 -0
  7. package/bundle/api/DaDataAPI.d.ts +15 -0
  8. package/bundle/api/LikeAPI.d.ts +9 -0
  9. package/bundle/blocks.schema.json +1 -1
  10. package/bundle/bundle.umd.js +529 -658
  11. package/bundle/bundle.umd.min.js +1 -1
  12. package/bundle/components/Accordion/Accordion.d.ts +5 -0
  13. package/bundle/components/Accordion/Accordion.mobile.d.ts +5 -0
  14. package/bundle/components/Accordion/AccordionContent.d.ts +43 -0
  15. package/bundle/components/Accordion/AccordionItem.d.ts +5 -0
  16. package/bundle/components/Accordion/AccordionItem.mobile.d.ts +5 -0
  17. package/bundle/components/BaseTile/BaseTile.d.ts +5 -0
  18. package/bundle/components/BaseTile/BaseTileProps.d.ts +15 -0
  19. package/bundle/components/BaseTile/getTileHeadingType.d.ts +1 -0
  20. package/bundle/components/BaseTile/getTileMinHeight.d.ts +1 -0
  21. package/bundle/components/BaseTile/getTileRightPadding.d.ts +1 -0
  22. package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +5 -0
  23. package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +52 -0
  24. package/bundle/components/Blocks.d.ts +36 -0
  25. package/bundle/components/Blocks.mobile.d.ts +17 -0
  26. package/bundle/components/Bonus/Bonus.d.ts +5 -0
  27. package/bundle/components/Bonus/BonusContent.d.ts +45 -0
  28. package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +5 -0
  29. package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +15 -0
  30. package/bundle/components/BonusBenefitsBlock/getElementsColsValue.d.ts +1 -0
  31. package/bundle/components/Calculator/BonusCalculatorForm.d.ts +5 -0
  32. package/bundle/components/Calculator/Calculator.d.ts +5 -0
  33. package/bundle/components/Calculator/CalculatorContent.d.ts +129 -0
  34. package/bundle/components/Calculator/CalculatorValueBlock.d.ts +8 -0
  35. package/bundle/components/Calculator/CreditCalculatorForm.d.ts +7 -0
  36. package/bundle/components/Calculator/DepositCalculatorForm.d.ts +5 -0
  37. package/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +9 -0
  38. package/bundle/components/Calculator/Rate.d.ts +7 -0
  39. package/bundle/components/Calculator/constants.d.ts +16 -0
  40. package/bundle/components/Calculator/getBonus.d.ts +2 -0
  41. package/bundle/components/Calculator/getCreditRate.d.ts +7 -0
  42. package/bundle/components/Calculator/getDefaultMonths.d.ts +1 -0
  43. package/bundle/components/Calculator/getDefaultSum.d.ts +1 -0
  44. package/bundle/components/Calculator/getMonthlyPayment.d.ts +6 -0
  45. package/bundle/components/Calculator/renderButtonSection.d.ts +2 -0
  46. package/bundle/components/Calculator/renderCalculatorBlock.d.ts +3 -0
  47. package/bundle/components/Calculator/renderFootnote.d.ts +2 -0
  48. package/bundle/components/Calculator/renderInitialFeeInput.d.ts +6 -0
  49. package/bundle/components/Calculator/renderMonthsInput.d.ts +8 -0
  50. package/bundle/components/Calculator/renderPaymentTypeSelector.d.ts +6 -0
  51. package/bundle/components/Calculator/renderProposal.d.ts +2 -0
  52. package/bundle/components/Calculator/renderProposalMortgage.d.ts +8 -0
  53. package/bundle/components/Calculator/renderRealEstateValue.d.ts +6 -0
  54. package/bundle/components/Calculator/renderWantedSumInput.d.ts +11 -0
  55. package/bundle/components/Calculator/useBonusCalculatorParams.d.ts +36 -0
  56. package/bundle/components/Calculator/useCalculatorParams.d.ts +1 -0
  57. package/bundle/components/Calculator/useCreditCalculatorParams.d.ts +27 -0
  58. package/bundle/components/CardTransfer/CardTransfer.d.ts +5 -0
  59. package/bundle/components/CardTransfer/CardTransferContent.d.ts +10 -0
  60. package/bundle/components/Catalog/Catalog.d.ts +5 -0
  61. package/bundle/components/Catalog/CatalogCard.d.ts +7 -0
  62. package/bundle/components/Catalog/CatalogContent.d.ts +25 -0
  63. package/bundle/components/ComparisonTable/ComparisonTable.d.ts +5 -0
  64. package/bundle/components/ComparisonTable/ComparisonTable.mobile.d.ts +5 -0
  65. package/bundle/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
  66. package/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
  67. package/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +50 -0
  68. package/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
  69. package/bundle/components/ComparisonTable/HeaderCell.d.ts +10 -0
  70. package/bundle/components/ComparisonTable/HeaderCell.mobile.d.ts +11 -0
  71. package/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +7 -0
  72. package/bundle/components/ComparisonTable/TableCell.d.ts +9 -0
  73. package/bundle/components/ComparisonTable/TableCell.mobile.d.ts +9 -0
  74. package/bundle/components/ComparisonTable/TableColumn.d.ts +15 -0
  75. package/bundle/components/ComparisonTable/TableRow.d.ts +14 -0
  76. package/bundle/components/ComparisonTable/TableRowContainer.d.ts +1 -0
  77. package/bundle/components/ComparisonTable/constants.d.ts +6 -0
  78. package/bundle/components/ContentPage/ContentPage.d.ts +10 -0
  79. package/bundle/components/ContentPage/ContentPageContext.d.ts +17 -0
  80. package/bundle/components/ContentPage/ContentPageHead.d.ts +7 -0
  81. package/bundle/components/ContentPage/computeAPIFallback.d.ts +5 -0
  82. package/bundle/components/ContentPage/filterBlocks.d.ts +12 -0
  83. package/bundle/components/ContentPage/filterBlocks.mobile.d.ts +12 -0
  84. package/bundle/components/ContentPage/isBlockInRegistry.d.ts +2 -0
  85. package/bundle/components/ContentPage/normalizeBlock.d.ts +11 -0
  86. package/bundle/components/ContentPage/normalizeBlock.mobile.d.ts +2 -0
  87. package/bundle/components/ContentPage/normalizePage.d.ts +3 -0
  88. package/bundle/components/ContentPage/renderBlock.d.ts +13 -0
  89. package/bundle/components/ErrorBlock/ErrorBlock.d.ts +5 -0
  90. package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +48 -0
  91. package/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
  92. package/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +7 -0
  93. package/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +7 -0
  94. package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +21 -0
  95. package/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +5 -0
  96. package/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +8 -0
  97. package/bundle/components/ExchangeRateTile/calculateResult.d.ts +2 -0
  98. package/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
  99. package/bundle/components/ExchangeRateTile/formatCurrency.d.ts +1 -0
  100. package/bundle/components/ExchangeRateTile/renderInput.d.ts +13 -0
  101. package/bundle/components/Footer/Contacts.d.ts +7 -0
  102. package/bundle/components/Footer/Footer.d.ts +5 -0
  103. package/bundle/components/Footer/Footer.mobile.d.ts +5 -0
  104. package/bundle/components/Footer/FooterContent.d.ts +44 -0
  105. package/bundle/components/Footer/FooterLink.d.ts +5 -0
  106. package/bundle/components/Footer/HorizontalNavigation.d.ts +6 -0
  107. package/bundle/components/Footer/HorizontalNavigation.mobile.d.ts +6 -0
  108. package/bundle/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  109. package/bundle/components/Footer/MediaButton.d.ts +7 -0
  110. package/bundle/components/Footer/Sitemap.d.ts +8 -0
  111. package/bundle/components/Footer/SocialMedia.d.ts +8 -0
  112. package/bundle/components/Footer/SocialMedia.mobile.d.ts +8 -0
  113. package/bundle/components/Footer/TextInformation.d.ts +2 -0
  114. package/bundle/components/Footer/TextInformation.mobile.d.ts +2 -0
  115. package/bundle/components/Footer/TextInformationLink.d.ts +8 -0
  116. package/bundle/components/Gallery/Gallery.d.ts +2 -0
  117. package/bundle/components/Gallery/Gallery.mobile.d.ts +2 -0
  118. package/bundle/components/Gallery/GalleryCardInner.d.ts +2 -0
  119. package/bundle/components/Gallery/GalleryContainer.d.ts +13 -0
  120. package/bundle/components/Gallery/GalleryContent.d.ts +64 -0
  121. package/bundle/components/Gallery/GalleryInner.d.ts +7 -0
  122. package/bundle/components/Gallery/GalleryProps.d.ts +4 -0
  123. package/bundle/components/Gallery/constants.d.ts +4 -0
  124. package/bundle/components/GracePeriod/GracePeriod.d.ts +5 -0
  125. package/bundle/components/GracePeriod/GracePeriodContent.d.ts +32 -0
  126. package/bundle/components/Header/DropdownMenu.d.ts +14 -0
  127. package/bundle/components/Header/Header.d.ts +5 -0
  128. package/bundle/components/Header/Header.fallback.d.ts +2 -0
  129. package/bundle/components/Header/Header.mobile.d.ts +5 -0
  130. package/bundle/components/Header/HeaderBurger.d.ts +11 -0
  131. package/bundle/components/Header/HeaderContent.d.ts +41 -0
  132. package/bundle/components/Header/HeaderSecondaryMenu.d.ts +10 -0
  133. package/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +6 -0
  134. package/bundle/components/Header/HeaderSubMenu.d.ts +9 -0
  135. package/bundle/components/Header/HeaderTop.d.ts +6 -0
  136. package/bundle/components/Headline/Headline.d.ts +5 -0
  137. package/bundle/components/Headline/Headline.mobile.d.ts +5 -0
  138. package/bundle/components/Headline/HeadlineContent.d.ts +15 -0
  139. package/bundle/components/Headline/constants.d.ts +20 -0
  140. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
  141. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
  142. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +7 -0
  143. package/bundle/components/LikeControl/LikeControl.d.ts +2 -0
  144. package/bundle/components/LinkDocs/LinkDocs.d.ts +5 -0
  145. package/bundle/components/LinkDocs/LinkDocs.mobile.d.ts +5 -0
  146. package/bundle/components/LinkDocs/LinkDocsContent.d.ts +43 -0
  147. package/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +6 -0
  148. package/bundle/components/LinkDocs/LinkDocsList.d.ts +9 -0
  149. package/bundle/components/LinkDocs/LinkDocsListItem.d.ts +2 -0
  150. package/bundle/components/LinkDocs/LinkDocsListItem.mobile.d.ts +2 -0
  151. package/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +13 -0
  152. package/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +8 -0
  153. package/bundle/components/LinkDocs/linkDocsContentExample.d.ts +2 -0
  154. package/bundle/components/LinkList/LinkList.d.ts +5 -0
  155. package/bundle/components/LinkList/LinkListContent.d.ts +8 -0
  156. package/bundle/components/LinkList/linkListContentExample.d.ts +2 -0
  157. package/bundle/components/MiniGallery/MiniGallery.d.ts +5 -0
  158. package/bundle/components/MiniGallery/MiniGalleryContent.d.ts +12 -0
  159. package/bundle/components/MobileAppTile/MobileAppTile.d.ts +5 -0
  160. package/bundle/components/MobileAppTile/MobileAppTile.mobile.d.ts +5 -0
  161. package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +31 -0
  162. package/bundle/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +5 -0
  163. package/bundle/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +10 -0
  164. package/bundle/components/OtherProducts/OtherProducts.d.ts +5 -0
  165. package/bundle/components/OtherProducts/OtherProductsContent.d.ts +25 -0
  166. package/bundle/components/OtherProducts/OtherProductsItem.d.ts +6 -0
  167. package/bundle/components/PictureText/PictureText.d.ts +5 -0
  168. package/bundle/components/PictureText/PictureTextContent.d.ts +34 -0
  169. package/bundle/components/Placeholder/Placeholder.d.ts +6 -0
  170. package/bundle/components/Placeholder/PlaceholderContent.d.ts +5 -0
  171. package/bundle/components/ProductBlock/ProductBlock.d.ts +5 -0
  172. package/bundle/components/ProductBlock/ProductBlock.mobile.d.ts +5 -0
  173. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +54 -0
  174. package/bundle/components/ProductBlock/ProductBlockInner.d.ts +4 -0
  175. package/bundle/components/ProductBlock/ProductBlockInner.mobile.d.ts +4 -0
  176. package/bundle/components/ProductBlock/renderBackwardButton.d.ts +4 -0
  177. package/bundle/components/ProductBlock/renderBenefit.d.ts +5 -0
  178. package/bundle/components/ProductGallery/ProductGallery.d.ts +5 -0
  179. package/bundle/components/ProductGallery/ProductGallery.mobile.d.ts +5 -0
  180. package/bundle/components/ProductGallery/ProductGalleryBlock.d.ts +8 -0
  181. package/bundle/components/ProductGallery/ProductGalleryContent.d.ts +29 -0
  182. package/bundle/components/ProductTile/ProductTile.d.ts +5 -0
  183. package/bundle/components/ProductTile/ProductTileContent.d.ts +33 -0
  184. package/bundle/components/PromoTile/PromoTile.d.ts +5 -0
  185. package/bundle/components/PromoTile/PromoTileContent.d.ts +12 -0
  186. package/bundle/components/Recommendation/Recommendation.d.ts +5 -0
  187. package/bundle/components/Recommendation/RecommendationCard.d.ts +7 -0
  188. package/bundle/components/Recommendation/RecommendationContent.d.ts +43 -0
  189. package/bundle/components/SafeDepositRental/RegionsAndBranches.d.ts +12 -0
  190. package/bundle/components/SafeDepositRental/RenderRadioButtons.d.ts +2 -0
  191. package/bundle/components/SafeDepositRental/RentalPeriod.d.ts +6 -0
  192. package/bundle/components/SafeDepositRental/SafeBoxCases.d.ts +11 -0
  193. package/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +5 -0
  194. package/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +9 -0
  195. package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +12 -0
  196. package/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +11 -0
  197. package/bundle/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +6 -0
  198. package/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +8 -0
  199. package/bundle/components/SafeDepositRental/WrapperSelect.d.ts +11 -0
  200. package/bundle/components/SafeDepositRental/YandexMap.d.ts +5 -0
  201. package/bundle/components/SafeDepositRental/renderClusterer.d.ts +2 -0
  202. package/bundle/components/SafeDepositRental/useGetRegions.d.ts +6 -0
  203. package/bundle/components/SafeDepositRental/useYandexMaps.d.ts +2 -0
  204. package/bundle/components/SafeDepositRental/utils.d.ts +3 -0
  205. package/bundle/components/StepsBlock/StepsBlock.d.ts +5 -0
  206. package/bundle/components/StepsBlock/StepsBlock.mobile.d.ts +5 -0
  207. package/bundle/components/StepsBlock/StepsBlockContent.d.ts +43 -0
  208. package/bundle/components/StepsBlock/StepsBlockStyleMaps.d.ts +11 -0
  209. package/bundle/components/StepsBlock/renderItems.d.ts +3 -0
  210. package/bundle/components/Tabs/Tabs.d.ts +13 -0
  211. package/bundle/components/Tabs/TabsContent.d.ts +36 -0
  212. package/bundle/components/Tabs/renderGroupTab.d.ts +4 -0
  213. package/bundle/components/Tabs/renderLinkTab.d.ts +9 -0
  214. package/bundle/components/Tabs/renderTab.d.ts +12 -0
  215. package/bundle/components/Tabs/tabItemClasses.d.ts +6 -0
  216. package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +14 -0
  217. package/bundle/components/TariffsTable/EmbeddableCellData.mobile.d.ts +12 -0
  218. package/bundle/components/TariffsTable/TableTileHeader.d.ts +2 -0
  219. package/bundle/components/TariffsTable/TariffsTable.d.ts +5 -0
  220. package/bundle/components/TariffsTable/TariffsTable.mobile.d.ts +5 -0
  221. package/bundle/components/TariffsTable/TariffsTableCell.d.ts +9 -0
  222. package/bundle/components/TariffsTable/TariffsTableContent.d.ts +95 -0
  223. package/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
  224. package/bundle/components/TariffsTable/TariffsTableRow.d.ts +9 -0
  225. package/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +7 -0
  226. package/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +8 -0
  227. package/bundle/components/TariffsTable/TariffsTableVertical.d.ts +6 -0
  228. package/bundle/components/TariffsTable/constants.d.ts +4 -0
  229. package/bundle/components/TariffsTable/dataFixture.d.ts +5 -0
  230. package/bundle/components/TariffsTable/utils/getButtonAriaLabel.d.ts +2 -0
  231. package/bundle/components/TextBlock/TextBlock.d.ts +5 -0
  232. package/bundle/components/TextBlock/TextBlock.mobile.d.ts +5 -0
  233. package/bundle/components/TextBlock/TextBlockContent.d.ts +22 -0
  234. package/bundle/components/Tile/Tile.d.ts +6 -0
  235. package/bundle/components/Tile/TileContent.d.ts +34 -0
  236. package/bundle/content-page-repository/ContentPageRepository.d.ts +11 -0
  237. package/bundle/content-page-repository/TransformationOptions.d.ts +4 -0
  238. package/bundle/content-page-repository/index.d.ts +2 -0
  239. package/bundle/content-page-repository/mapJSON.d.ts +1 -0
  240. package/bundle/content-page-repository/transformContentPage.d.ts +3 -0
  241. package/bundle/content-page-repository/transformImg.d.ts +11 -0
  242. package/bundle/content-page-repository/transformMarkdown.d.ts +1 -0
  243. package/bundle/content-page-repository/transformPicture.d.ts +3 -0
  244. package/bundle/content-page-repository/transformSrc.d.ts +3 -0
  245. package/bundle/hooks/useExchangeRates.d.ts +2 -0
  246. package/bundle/hooks/useExternalNS.d.ts +2 -0
  247. package/bundle/hooks/useGeolocation.d.ts +1 -0
  248. package/bundle/hooks/useLikeService.d.ts +5 -0
  249. package/bundle/hooks/useLink.d.ts +18 -0
  250. package/bundle/hooks/useOutsideClick.d.ts +5 -0
  251. package/{lib/hooks/useFetchSafeBoxes.d.ts → bundle/hooks/useSafeBoxes.d.ts} +1 -3
  252. package/bundle/hooks/useSearch.d.ts +4 -0
  253. package/bundle/hooks/useTableArrowScrollControl.d.ts +7 -0
  254. package/bundle/hooks/useTariffsInnerTableData.d.ts +1 -0
  255. package/bundle/icons/IconName.d.ts +194 -0
  256. package/bundle/index.d.ts +9 -0
  257. package/bundle/model/AlignType.d.ts +9 -0
  258. package/bundle/model/BgColorVersion.d.ts +8 -0
  259. package/bundle/model/BlockDecorator.d.ts +14 -0
  260. package/bundle/model/BlockVersion.d.ts +11 -0
  261. package/bundle/model/BlocksRegistry.d.ts +5 -0
  262. package/bundle/model/ButtonVersion.d.ts +6 -0
  263. package/bundle/model/ContentPageDef.d.ts +52 -0
  264. package/bundle/model/EmptyOptionType.d.ts +4 -0
  265. package/bundle/model/Fallback.d.ts +5 -0
  266. package/bundle/model/Footnote.d.ts +4 -0
  267. package/bundle/model/GalleryVersion.d.ts +1 -0
  268. package/bundle/model/HeadlineType.d.ts +29 -0
  269. package/bundle/model/IconVersion.d.ts +9 -0
  270. package/bundle/model/ImageSize.d.ts +6 -0
  271. package/bundle/model/InputTypes.d.ts +1 -0
  272. package/bundle/model/LinkProps.d.ts +24 -0
  273. package/bundle/model/ListOrientation.d.ts +8 -0
  274. package/bundle/model/Picture.d.ts +59 -0
  275. package/bundle/model/ProductColorVersion.d.ts +4 -0
  276. package/bundle/model/SitemapProps.d.ts +24 -0
  277. package/bundle/model/SizeVersion.d.ts +8 -0
  278. package/bundle/model/TableVersion.d.ts +1 -0
  279. package/bundle/model/VNode.d.ts +1 -0
  280. package/bundle/react/setup-fixture.d.ts +4 -0
  281. package/bundle/services/sitemap/SitemapProps.d.ts +24 -0
  282. package/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +4 -0
  283. package/bundle/services/sitemap/findActiveSubItem.d.ts +3 -0
  284. package/bundle/services/sitemap/isHrefActive.d.ts +4 -0
  285. package/bundle/services/sitemap/isSubItemActive.d.ts +3 -0
  286. package/bundle/services/sitemap/isTopItemActive.d.ts +3 -0
  287. package/bundle/services/sitemap/mergeTopItems.d.ts +2 -0
  288. package/bundle/services/sitemap/useSitemap.d.ts +3 -0
  289. package/bundle/ui-kit/BenefitItem/BenefitItem.d.ts +4 -0
  290. package/bundle/ui-kit/BenefitItem/BenefitItemProps.d.ts +20 -0
  291. package/bundle/ui-kit/BlockWrapper.d.ts +7 -0
  292. package/bundle/ui-kit/BlocksList/BlocksListProps.d.ts +96 -0
  293. package/bundle/ui-kit/BlocksList/EmbeddableBlocks.d.ts +12 -0
  294. package/bundle/ui-kit/BlocksList/EmbeddableBlocks.mobile.d.ts +8 -0
  295. package/bundle/ui-kit/BlocksList/renderBlocksList.d.ts +9 -0
  296. package/bundle/ui-kit/Breadcrumb.d.ts +6 -0
  297. package/bundle/ui-kit/Button/ArrowButton.d.ts +2 -0
  298. package/bundle/ui-kit/Button/Button.d.ts +2 -0
  299. package/bundle/ui-kit/Button/Button.mobile.d.ts +2 -0
  300. package/bundle/ui-kit/Button/ButtonInner.d.ts +7 -0
  301. package/bundle/ui-kit/Button/ButtonProps.d.ts +54 -0
  302. package/bundle/ui-kit/Button/ButtonSection.d.ts +5 -0
  303. package/bundle/ui-kit/Button/GetButtonClassParams.d.ts +6 -0
  304. package/bundle/ui-kit/Button/LikeButton.d.ts +6 -0
  305. package/bundle/ui-kit/Button/buttonClassNameConstants.d.ts +5 -0
  306. package/bundle/ui-kit/Button/getDisabledButtonClasses.d.ts +2 -0
  307. package/bundle/ui-kit/Button/getRegularButtonClasses.d.ts +2 -0
  308. package/bundle/ui-kit/Button/renderArrows.d.ts +9 -0
  309. package/bundle/ui-kit/Checkbox/Checkbox.d.ts +2 -0
  310. package/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +7 -0
  311. package/bundle/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -0
  312. package/bundle/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +5 -0
  313. package/bundle/ui-kit/CurrencyInput/adjustValue .d.ts +3 -0
  314. package/bundle/ui-kit/Description/Description.d.ts +5 -0
  315. package/bundle/ui-kit/Foldable/DefaultButton.d.ts +2 -0
  316. package/bundle/ui-kit/Foldable/FoldButtonProps.d.ts +12 -0
  317. package/bundle/ui-kit/Foldable/Foldable.d.ts +16 -0
  318. package/bundle/ui-kit/HeaderItem/HeaderItem.d.ts +2 -0
  319. package/bundle/ui-kit/HeaderItem/HeaderItem.mobile.d.ts +3 -0
  320. package/bundle/ui-kit/Heading/Heading.d.ts +2 -0
  321. package/bundle/ui-kit/Heading/Heading.mobile.d.ts +2 -0
  322. package/bundle/ui-kit/Heading/HeadingProps.d.ts +23 -0
  323. package/bundle/ui-kit/Icon/Icon.d.ts +2 -0
  324. package/bundle/ui-kit/Icon/IconProps.d.ts +21 -0
  325. package/bundle/ui-kit/Img/Img.d.ts +1 -0
  326. package/bundle/ui-kit/Img/Img.mobile.d.ts +2 -0
  327. package/bundle/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  328. package/bundle/ui-kit/Img/ImgInner.d.ts +2 -0
  329. package/bundle/ui-kit/Img/ImgProps.d.ts +11 -0
  330. package/bundle/ui-kit/Img/getIconVersion.d.ts +1 -0
  331. package/bundle/ui-kit/InnerTable/InnerTable.d.ts +5 -0
  332. package/bundle/ui-kit/InnerTable/InnerTableBody.d.ts +7 -0
  333. package/bundle/ui-kit/InnerTable/InnerTableBodyItem.d.ts +6 -0
  334. package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +6 -0
  335. package/bundle/ui-kit/InnerTable/InnerTableHeader.d.ts +7 -0
  336. package/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +24 -0
  337. package/bundle/ui-kit/Input/Input.d.ts +2 -0
  338. package/bundle/ui-kit/Input/InputProps.d.ts +16 -0
  339. package/bundle/ui-kit/InputRange/InputRange.d.ts +2 -0
  340. package/bundle/ui-kit/InputRange/InputRangeProps.d.ts +11 -0
  341. package/bundle/ui-kit/IntersectionObserverTag.d.ts +11 -0
  342. package/bundle/ui-kit/List/List.d.ts +2 -0
  343. package/bundle/ui-kit/List/ListContent.d.ts +4 -0
  344. package/bundle/ui-kit/List/ListItem.d.ts +12 -0
  345. package/bundle/ui-kit/List/ListProps.d.ts +26 -0
  346. package/bundle/ui-kit/Logo/Logo.d.ts +13 -0
  347. package/bundle/ui-kit/Logo/Logo.mobile.d.ts +8 -0
  348. package/bundle/ui-kit/Radio/Radio.d.ts +2 -0
  349. package/bundle/ui-kit/Radio/RadioProps.d.ts +9 -0
  350. package/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  351. package/bundle/ui-kit/SVG.d.ts +19 -0
  352. package/bundle/ui-kit/SearchBar/SearchBar.d.ts +2 -0
  353. package/bundle/ui-kit/SearchBar/SearchBar.mobile.d.ts +2 -0
  354. package/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  355. package/{dist/ui-kit/SelectCustom/SelectCustom.d.ts → bundle/ui-kit/Select/Select.d.ts} +3 -2
  356. package/bundle/ui-kit/SwipeListControl/SwipeListControl.d.ts +2 -0
  357. package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +6 -0
  358. package/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +9 -0
  359. package/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +10 -0
  360. package/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +18 -0
  361. package/bundle/ui-kit/SwipeListControl/constants.d.ts +2 -0
  362. package/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +1 -0
  363. package/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +4 -0
  364. package/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +8 -0
  365. package/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
  366. package/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
  367. package/bundle/ui-kit/TopItem/TopItem.d.ts +14 -0
  368. package/bundle/utils/addSpacesBetweenNumbers.d.ts +1 -0
  369. package/bundle/utils/adjustHref.d.ts +4 -0
  370. package/bundle/utils/assertUnreachable.d.ts +1 -0
  371. package/bundle/utils/changeHashOnObserve.d.ts +9 -0
  372. package/bundle/utils/checkIsIconRenderable.d.ts +2 -0
  373. package/bundle/utils/clamp.d.ts +1 -0
  374. package/bundle/utils/fetchJSON.d.ts +2 -0
  375. package/bundle/utils/getAccordionItems.d.ts +1 -0
  376. package/bundle/utils/getColSpan.d.ts +1 -0
  377. package/bundle/utils/getCurrentDate.d.ts +1 -0
  378. package/bundle/utils/getGeolocation.d.ts +1 -0
  379. package/bundle/utils/getSanitizedValue.d.ts +1 -0
  380. package/bundle/utils/isPictureSizeEmpty.d.ts +2 -0
  381. package/bundle/utils/joinList.d.ts +1 -0
  382. package/bundle/utils/maxBy.d.ts +2 -0
  383. package/bundle/utils/roundTo.d.ts +1 -0
  384. package/bundle/utils/style2className.d.ts +1 -0
  385. package/bundle/utils/tableFunc.d.ts +2 -0
  386. package/bundle/utils/url.d.ts +5 -0
  387. package/bundle/utils/withoutMobilePath.d.ts +2 -0
  388. package/dist/EventBus/EventMap.d.ts +2 -1
  389. package/dist/components/Accordion/AccordionItem.d.ts +1 -1
  390. package/dist/components/Accordion/AccordionItem.js +9 -10
  391. package/dist/components/Accordion/AccordionItem.js.map +1 -1
  392. package/dist/components/Accordion/AccordionItem.mobile.d.ts +1 -1
  393. package/dist/components/Accordion/AccordionItem.mobile.js +9 -7
  394. package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
  395. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  396. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  397. package/dist/components/Blocks.mobile.d.ts +0 -1
  398. package/dist/components/Blocks.mobile.js +0 -2
  399. package/dist/components/Blocks.mobile.js.map +1 -1
  400. package/dist/components/Bonus/Bonus.js +11 -2
  401. package/dist/components/Bonus/Bonus.js.map +1 -1
  402. package/dist/components/Bonus/BonusContent.d.ts +30 -2
  403. package/dist/components/Calculator/CalculatorContent.d.ts +1 -1
  404. package/dist/components/CardTransfer/CardTransfer.js +12 -12
  405. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  406. package/dist/components/CardTransfer/CardTransferContent.d.ts +2 -2
  407. package/dist/components/Catalog/Catalog.js +1 -1
  408. package/dist/components/Catalog/Catalog.js.map +1 -1
  409. package/dist/components/Catalog/CatalogCard.js +1 -23
  410. package/dist/components/Catalog/CatalogCard.js.map +1 -1
  411. package/dist/components/ComparisonTable/ComparisonTable.js +1 -1
  412. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  413. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +13 -48
  414. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  415. package/dist/components/ComparisonTable/TableCell.d.ts +1 -1
  416. package/dist/components/ComparisonTable/TableCell.js.map +1 -1
  417. package/dist/components/ComparisonTable/TableColumn.d.ts +5 -8
  418. package/dist/components/ComparisonTable/TableColumn.js +2 -3
  419. package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  420. package/dist/components/ContentPage/ContentPageContext.d.ts +0 -11
  421. package/dist/components/ErrorBlock/ErrorBlock.js +1 -1
  422. package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  423. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  424. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  425. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  426. package/dist/components/ExchangeRateTile/renderInput.js +2 -2
  427. package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  428. package/dist/components/Footer/Contacts.js +1 -1
  429. package/dist/components/Footer/Contacts.js.map +1 -1
  430. package/dist/components/Footer/FooterContent.d.ts +5 -9
  431. package/dist/components/Gallery/Gallery.mobile.js +7 -3
  432. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  433. package/dist/components/Gallery/GalleryCardInner.js +14 -17
  434. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  435. package/dist/components/Gallery/GalleryContainer.js +2 -2
  436. package/dist/components/Gallery/GalleryContainer.js.map +1 -1
  437. package/dist/components/Gallery/GalleryContent.d.ts +11 -3
  438. package/dist/components/GracePeriod/GracePeriod.js +3 -3
  439. package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  440. package/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -1
  441. package/dist/components/Header/HeaderSubMenu.js +3 -2
  442. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  443. package/dist/components/Headline/constants.d.ts +2 -1
  444. package/dist/components/Headline/constants.js +10 -1
  445. package/dist/components/Headline/constants.js.map +1 -1
  446. package/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
  447. package/dist/components/MobileAppTile/MobileAppTile.js +3 -3
  448. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  449. package/dist/components/OtherProducts/OtherProductsItem.js +4 -2
  450. package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  451. package/dist/components/ProductGallery/ProductGallery.js +2 -2
  452. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  453. package/dist/components/ProductTile/ProductTile.js +1 -1
  454. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  455. package/dist/components/Recommendation/RecommendationContent.d.ts +5 -0
  456. package/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
  457. package/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -1
  458. package/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  459. package/dist/components/SafeDepositRental/SafeBoxCases.d.ts +1 -1
  460. package/dist/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
  461. package/dist/components/SafeDepositRental/SafeDepositRental.js +17 -3
  462. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  463. package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +7 -4
  464. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +3 -5
  465. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  466. package/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +7 -3
  467. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +7 -28
  468. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  469. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +1 -1
  470. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
  471. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  472. package/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -2
  473. package/dist/components/SafeDepositRental/WrapperSelect.js +6 -3
  474. package/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
  475. package/dist/components/SafeDepositRental/utils.d.ts +1 -1
  476. package/dist/components/StepsBlock/StepsBlock.js +9 -4
  477. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  478. package/dist/components/StepsBlock/StepsBlockContent.d.ts +9 -2
  479. package/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
  480. package/dist/components/StepsBlock/StepsBlockStyleMaps.js +2 -0
  481. package/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  482. package/dist/components/StepsBlock/renderItems.d.ts +3 -0
  483. package/dist/components/StepsBlock/renderItems.js +6 -0
  484. package/dist/components/StepsBlock/renderItems.js.map +1 -0
  485. package/dist/components/Tabs/Tabs.d.ts +4 -0
  486. package/dist/components/Tabs/Tabs.js +13 -3
  487. package/dist/components/Tabs/Tabs.js.map +1 -1
  488. package/dist/components/Tabs/TabsContent.d.ts +2 -0
  489. package/dist/components/Tabs/renderLinkTab.d.ts +3 -2
  490. package/dist/components/Tabs/renderLinkTab.js +4 -1
  491. package/dist/components/Tabs/renderLinkTab.js.map +1 -1
  492. package/dist/components/Tabs/renderTab.js +12 -2
  493. package/dist/components/Tabs/renderTab.js.map +1 -1
  494. package/dist/components/TariffsTable/EmbeddableCellData.js +4 -5
  495. package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  496. package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +1 -2
  497. package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
  498. package/dist/components/TariffsTable/TariffsTable.js +1 -1
  499. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  500. package/dist/components/TariffsTable/TariffsTableCell.js +1 -1
  501. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  502. package/dist/components/TariffsTable/TariffsTableRow.js +1 -2
  503. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  504. package/dist/components/TariffsTable/dataFixture.js +4 -2
  505. package/dist/components/TariffsTable/dataFixture.js.map +1 -1
  506. package/dist/components/TariffsTable/utils/getButtonAriaLabel.d.ts +1 -1
  507. package/dist/components/TariffsTable/utils/getButtonAriaLabel.js +1 -2
  508. package/dist/components/TariffsTable/utils/getButtonAriaLabel.js.map +1 -1
  509. package/dist/components/Tile/Tile.js +2 -3
  510. package/dist/components/Tile/Tile.js.map +1 -1
  511. package/dist/hooks/useOutsideClick.d.ts +5 -0
  512. package/dist/hooks/useOutsideClick.js +21 -0
  513. package/dist/hooks/useOutsideClick.js.map +1 -0
  514. package/dist/hooks/{useFetchSafeBoxes.d.ts → useSafeBoxes.d.ts} +1 -3
  515. package/dist/hooks/{useFetchSafeBoxes.js → useSafeBoxes.js} +9 -10
  516. package/dist/hooks/useSafeBoxes.js.map +1 -0
  517. package/dist/icons/IconName.d.ts +1 -92
  518. package/dist/icons/IconName.js +4 -4
  519. package/dist/icons/IconName.js.map +1 -1
  520. package/dist/model/HeadlineType.d.ts +8 -0
  521. package/dist/model/Picture.d.ts +1 -0
  522. package/dist/react/setup-fixture.js +0 -2
  523. package/dist/react/setup-fixture.js.map +1 -1
  524. package/dist/ui-kit/BenefitItem/BenefitItem.js +3 -1
  525. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  526. package/dist/ui-kit/BlockWrapper.d.ts +0 -3
  527. package/dist/ui-kit/BlockWrapper.js +36 -14
  528. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  529. package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +1 -1
  530. package/dist/ui-kit/BlocksList/renderBlocksList.js +1 -1
  531. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  532. package/dist/ui-kit/Button/Button.js +6 -10
  533. package/dist/ui-kit/Button/Button.js.map +1 -1
  534. package/dist/ui-kit/Button/Button.mobile.js +1 -1
  535. package/dist/ui-kit/Button/Button.mobile.js.map +1 -1
  536. package/dist/ui-kit/Button/ButtonInner.js +3 -2
  537. package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  538. package/dist/ui-kit/Button/ButtonProps.d.ts +1 -7
  539. package/dist/ui-kit/Button/ButtonSection.js +5 -10
  540. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  541. package/dist/ui-kit/Button/buttonClassNameConstants.d.ts +1 -0
  542. package/dist/ui-kit/Button/buttonClassNameConstants.js +7 -1
  543. package/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  544. package/dist/ui-kit/CurrencyInput/CurrencyInput.js +17 -6
  545. package/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  546. package/dist/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +2 -7
  547. package/dist/ui-kit/CurrencyInput/adjustValue .d.ts +3 -0
  548. package/dist/ui-kit/CurrencyInput/adjustValue .js +24 -0
  549. package/dist/ui-kit/CurrencyInput/adjustValue .js.map +1 -0
  550. package/dist/ui-kit/Foldable/DefaultButton.d.ts +2 -0
  551. package/dist/ui-kit/Foldable/DefaultButton.js +12 -0
  552. package/dist/ui-kit/Foldable/DefaultButton.js.map +1 -0
  553. package/dist/ui-kit/Foldable/FoldButtonProps.d.ts +12 -0
  554. package/dist/ui-kit/Foldable/FoldButtonProps.js +2 -0
  555. package/dist/ui-kit/Foldable/FoldButtonProps.js.map +1 -0
  556. package/dist/ui-kit/Foldable/Foldable.d.ts +11 -17
  557. package/dist/ui-kit/Foldable/Foldable.js +22 -14
  558. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  559. package/dist/ui-kit/Icon/Icon.js +4 -5
  560. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  561. package/dist/ui-kit/Icon/IconProps.d.ts +0 -1
  562. package/dist/ui-kit/Img/Img.d.ts +1 -2
  563. package/dist/ui-kit/Img/Img.js +2 -6
  564. package/dist/ui-kit/Img/Img.js.map +1 -1
  565. package/dist/ui-kit/Img/Img.mobile.js +1 -3
  566. package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
  567. package/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
  568. package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  569. package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +6 -2
  570. package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  571. package/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
  572. package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  573. package/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
  574. package/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  575. package/dist/ui-kit/Input/Input.d.ts +1 -1
  576. package/dist/ui-kit/Input/Input.js +16 -4
  577. package/dist/ui-kit/Input/Input.js.map +1 -1
  578. package/dist/ui-kit/Input/InputProps.d.ts +8 -3
  579. package/dist/ui-kit/InputRange/InputRange.js +2 -2
  580. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  581. package/dist/ui-kit/IntersectionObserverTag.d.ts +11 -0
  582. package/dist/ui-kit/IntersectionObserverTag.js +22 -0
  583. package/dist/ui-kit/IntersectionObserverTag.js.map +1 -0
  584. package/dist/ui-kit/List/List.js +13 -8
  585. package/dist/ui-kit/List/List.js.map +1 -1
  586. package/dist/ui-kit/List/ListItem.d.ts +2 -2
  587. package/dist/ui-kit/List/ListItem.js +8 -23
  588. package/dist/ui-kit/List/ListItem.js.map +1 -1
  589. package/dist/ui-kit/List/ListProps.d.ts +5 -3
  590. package/dist/ui-kit/Radio/Radio.js +1 -1
  591. package/dist/ui-kit/Radio/Radio.js.map +1 -1
  592. package/dist/ui-kit/Select/Select.d.ts +10 -4
  593. package/dist/ui-kit/Select/Select.js +26 -5
  594. package/dist/ui-kit/Select/Select.js.map +1 -1
  595. package/dist/utils/changeHashOnObserve.d.ts +9 -1
  596. package/dist/utils/changeHashOnObserve.js +12 -4
  597. package/dist/utils/changeHashOnObserve.js.map +1 -1
  598. package/dist/utils/getSanitizedValue.d.ts +1 -0
  599. package/dist/utils/getSanitizedValue.js +5 -0
  600. package/dist/utils/getSanitizedValue.js.map +1 -0
  601. package/lib/EventBus/EventMap.d.ts +2 -1
  602. package/lib/common.css +1 -1
  603. package/lib/components/Accordion/AccordionItem.d.ts +1 -1
  604. package/lib/components/Accordion/AccordionItem.js +9 -10
  605. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  606. package/lib/components/Accordion/AccordionItem.mobile.d.ts +1 -1
  607. package/lib/components/Accordion/AccordionItem.mobile.js +9 -7
  608. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  609. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  610. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  611. package/lib/components/Blocks.mobile.d.ts +0 -1
  612. package/lib/components/Blocks.mobile.js +0 -2
  613. package/lib/components/Blocks.mobile.js.map +1 -1
  614. package/lib/components/Bonus/Bonus.js +11 -2
  615. package/lib/components/Bonus/Bonus.js.map +1 -1
  616. package/lib/components/Bonus/BonusContent.d.ts +30 -2
  617. package/lib/components/Calculator/CalculatorContent.d.ts +1 -1
  618. package/lib/components/CardTransfer/CardTransfer.js +12 -12
  619. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  620. package/lib/components/CardTransfer/CardTransferContent.d.ts +2 -2
  621. package/lib/components/Catalog/Catalog.js +1 -1
  622. package/lib/components/Catalog/Catalog.js.map +1 -1
  623. package/lib/components/Catalog/CatalogCard.js +1 -23
  624. package/lib/components/Catalog/CatalogCard.js.map +1 -1
  625. package/lib/components/ComparisonTable/ComparisonTable.js +1 -1
  626. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  627. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +14 -49
  628. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  629. package/lib/components/ComparisonTable/TableCell.d.ts +1 -1
  630. package/lib/components/ComparisonTable/TableCell.js.map +1 -1
  631. package/lib/components/ComparisonTable/TableColumn.d.ts +5 -8
  632. package/lib/components/ComparisonTable/TableColumn.js +2 -3
  633. package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  634. package/lib/components/ContentPage/ContentPageContext.d.ts +0 -11
  635. package/lib/components/ErrorBlock/ErrorBlock.js +1 -1
  636. package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  637. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  638. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  639. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  640. package/lib/components/ExchangeRateTile/renderInput.js +2 -2
  641. package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  642. package/lib/components/Footer/Contacts.js +1 -1
  643. package/lib/components/Footer/Contacts.js.map +1 -1
  644. package/lib/components/Footer/FooterContent.d.ts +5 -9
  645. package/lib/components/Gallery/Gallery.mobile.js +7 -3
  646. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  647. package/lib/components/Gallery/GalleryCardInner.js +15 -18
  648. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  649. package/lib/components/Gallery/GalleryContainer.js +2 -2
  650. package/lib/components/Gallery/GalleryContainer.js.map +1 -1
  651. package/lib/components/Gallery/GalleryContent.d.ts +11 -3
  652. package/lib/components/GracePeriod/GracePeriod.js +3 -3
  653. package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  654. package/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -1
  655. package/lib/components/Header/HeaderSubMenu.js +2 -1
  656. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  657. package/lib/components/Headline/constants.d.ts +2 -1
  658. package/lib/components/Headline/constants.js +9 -0
  659. package/lib/components/Headline/constants.js.map +1 -1
  660. package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +1 -0
  661. package/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
  662. package/lib/components/MobileAppTile/MobileAppTile.js +3 -3
  663. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  664. package/lib/components/OtherProducts/OtherProductsItem.js +4 -2
  665. package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  666. package/lib/components/ProductGallery/ProductGallery.js +2 -2
  667. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  668. package/lib/components/ProductTile/ProductTile.js +1 -1
  669. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  670. package/lib/components/Recommendation/RecommendationContent.d.ts +5 -0
  671. package/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
  672. package/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -1
  673. package/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  674. package/lib/components/SafeDepositRental/SafeBoxCases.d.ts +1 -1
  675. package/lib/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
  676. package/lib/components/SafeDepositRental/SafeDepositRental.js +18 -4
  677. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  678. package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +7 -4
  679. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +3 -5
  680. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  681. package/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +7 -3
  682. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +9 -30
  683. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  684. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +1 -1
  685. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
  686. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  687. package/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -2
  688. package/lib/components/SafeDepositRental/WrapperSelect.js +7 -4
  689. package/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
  690. package/lib/components/SafeDepositRental/utils.d.ts +1 -1
  691. package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +1 -0
  692. package/lib/components/StepsBlock/StepsBlock.js +9 -4
  693. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  694. package/lib/components/StepsBlock/StepsBlockContent.d.ts +9 -2
  695. package/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
  696. package/lib/components/StepsBlock/StepsBlockStyleMaps.js +2 -0
  697. package/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  698. package/lib/components/StepsBlock/renderItems.d.ts +3 -0
  699. package/lib/components/StepsBlock/renderItems.js +3 -0
  700. package/lib/components/StepsBlock/renderItems.js.map +1 -0
  701. package/lib/components/Tabs/Tabs.d.ts +4 -0
  702. package/lib/components/Tabs/Tabs.js +13 -3
  703. package/lib/components/Tabs/Tabs.js.map +1 -1
  704. package/lib/components/Tabs/TabsContent.d.ts +2 -0
  705. package/lib/components/Tabs/renderLinkTab.d.ts +3 -2
  706. package/lib/components/Tabs/renderLinkTab.js +5 -2
  707. package/lib/components/Tabs/renderLinkTab.js.map +1 -1
  708. package/lib/components/Tabs/renderTab.js +12 -2
  709. package/lib/components/Tabs/renderTab.js.map +1 -1
  710. package/lib/components/TariffsTable/EmbeddableCellData.js +4 -5
  711. package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  712. package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +1 -2
  713. package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
  714. package/lib/components/TariffsTable/TariffsTable.js +1 -1
  715. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  716. package/lib/components/TariffsTable/TariffsTableCell.js +1 -1
  717. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  718. package/lib/components/TariffsTable/TariffsTableRow.js +1 -2
  719. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  720. package/lib/components/TariffsTable/dataFixture.js +4 -2
  721. package/lib/components/TariffsTable/dataFixture.js.map +1 -1
  722. package/lib/components/TariffsTable/utils/getButtonAriaLabel.d.ts +1 -1
  723. package/lib/components/TariffsTable/utils/getButtonAriaLabel.js +1 -2
  724. package/lib/components/TariffsTable/utils/getButtonAriaLabel.js.map +1 -1
  725. package/lib/components/Tile/Tile.js +2 -3
  726. package/lib/components/Tile/Tile.js.map +1 -1
  727. package/lib/hooks/useOutsideClick.d.ts +5 -0
  728. package/lib/hooks/useOutsideClick.js +18 -0
  729. package/lib/hooks/useOutsideClick.js.map +1 -0
  730. package/{mobile/dist/hooks/useFetchSafeBoxes.d.ts → lib/hooks/useSafeBoxes.d.ts} +1 -3
  731. package/lib/hooks/{useFetchSafeBoxes.js → useSafeBoxes.js} +7 -8
  732. package/lib/hooks/useSafeBoxes.js.map +1 -0
  733. package/lib/icons/IconName.d.ts +1 -92
  734. package/lib/icons/IconName.js +3 -3
  735. package/lib/icons/IconName.js.map +1 -1
  736. package/lib/model/HeadlineType.d.ts +8 -0
  737. package/lib/model/Picture.d.ts +1 -0
  738. package/lib/react/setup-fixture.js +0 -2
  739. package/lib/react/setup-fixture.js.map +1 -1
  740. package/lib/ui-kit/BenefitItem/BenefitItem.js +3 -1
  741. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  742. package/lib/ui-kit/BlockWrapper.d.ts +0 -3
  743. package/lib/ui-kit/BlockWrapper.js +37 -15
  744. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  745. package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +1 -1
  746. package/lib/ui-kit/BlocksList/renderBlocksList.js +1 -1
  747. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  748. package/lib/ui-kit/Button/Button.js +6 -10
  749. package/lib/ui-kit/Button/Button.js.map +1 -1
  750. package/lib/ui-kit/Button/Button.mobile.js +1 -1
  751. package/lib/ui-kit/Button/Button.mobile.js.map +1 -1
  752. package/lib/ui-kit/Button/ButtonInner.js +3 -2
  753. package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  754. package/lib/ui-kit/Button/ButtonProps.d.ts +1 -7
  755. package/lib/ui-kit/Button/ButtonSection.js +5 -10
  756. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  757. package/lib/ui-kit/Button/buttonClassNameConstants.d.ts +1 -0
  758. package/lib/ui-kit/Button/buttonClassNameConstants.js +6 -0
  759. package/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  760. package/lib/ui-kit/CurrencyInput/CurrencyInput.js +18 -7
  761. package/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  762. package/lib/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +2 -7
  763. package/lib/ui-kit/CurrencyInput/adjustValue .d.ts +3 -0
  764. package/lib/ui-kit/CurrencyInput/adjustValue .js +19 -0
  765. package/lib/ui-kit/CurrencyInput/adjustValue .js.map +1 -0
  766. package/lib/ui-kit/Foldable/DefaultButton.d.ts +2 -0
  767. package/lib/ui-kit/Foldable/DefaultButton.js +10 -0
  768. package/lib/ui-kit/Foldable/DefaultButton.js.map +1 -0
  769. package/lib/ui-kit/Foldable/FoldButtonProps.d.ts +12 -0
  770. package/lib/ui-kit/Foldable/FoldButtonProps.js +2 -0
  771. package/lib/ui-kit/Foldable/FoldButtonProps.js.map +1 -0
  772. package/lib/ui-kit/Foldable/Foldable.d.ts +11 -17
  773. package/lib/ui-kit/Foldable/Foldable.js +22 -14
  774. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  775. package/lib/ui-kit/Icon/Icon.js +4 -5
  776. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  777. package/lib/ui-kit/Icon/IconProps.d.ts +0 -1
  778. package/lib/ui-kit/Img/Img.d.ts +1 -2
  779. package/lib/ui-kit/Img/Img.js +1 -6
  780. package/lib/ui-kit/Img/Img.js.map +1 -1
  781. package/lib/ui-kit/Img/Img.mobile.js +1 -3
  782. package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
  783. package/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
  784. package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  785. package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +6 -2
  786. package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  787. package/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
  788. package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  789. package/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
  790. package/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  791. package/lib/ui-kit/Input/Input.d.ts +1 -1
  792. package/lib/ui-kit/Input/Input.js +17 -5
  793. package/lib/ui-kit/Input/Input.js.map +1 -1
  794. package/lib/ui-kit/Input/InputProps.d.ts +8 -3
  795. package/lib/ui-kit/InputRange/InputRange.js +2 -2
  796. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  797. package/lib/ui-kit/IntersectionObserverTag.d.ts +11 -0
  798. package/lib/ui-kit/IntersectionObserverTag.js +20 -0
  799. package/lib/ui-kit/IntersectionObserverTag.js.map +1 -0
  800. package/lib/ui-kit/List/List.fixture.d.ts +0 -4
  801. package/lib/ui-kit/List/List.js +13 -8
  802. package/lib/ui-kit/List/List.js.map +1 -1
  803. package/lib/ui-kit/List/ListItem.d.ts +2 -2
  804. package/lib/ui-kit/List/ListItem.js +7 -21
  805. package/lib/ui-kit/List/ListItem.js.map +1 -1
  806. package/lib/ui-kit/List/ListProps.d.ts +5 -3
  807. package/lib/ui-kit/Radio/Radio.js +1 -1
  808. package/lib/ui-kit/Radio/Radio.js.map +1 -1
  809. package/lib/ui-kit/Select/Select.d.ts +10 -4
  810. package/lib/ui-kit/{SelectCustom/SelectCustom.fixture.d.ts → Select/Select.fixture.d.ts} +0 -0
  811. package/lib/ui-kit/Select/Select.js +27 -6
  812. package/lib/ui-kit/Select/Select.js.map +1 -1
  813. package/lib/utils/changeHashOnObserve.d.ts +9 -1
  814. package/lib/utils/changeHashOnObserve.js +12 -4
  815. package/lib/utils/changeHashOnObserve.js.map +1 -1
  816. package/lib/utils/getSanitizedValue.d.ts +1 -0
  817. package/lib/utils/getSanitizedValue.js +2 -0
  818. package/lib/utils/getSanitizedValue.js.map +1 -0
  819. package/mobile/bundle/EventBus/EventBus.d.ts +10 -0
  820. package/mobile/bundle/EventBus/EventMap.d.ts +7 -0
  821. package/mobile/bundle/ProjectSettings.d.ts +24 -0
  822. package/mobile/bundle/api/DaDataAPI.d.ts +15 -0
  823. package/mobile/bundle/api/LikeAPI.d.ts +9 -0
  824. package/mobile/bundle/bundle.umd.js +247 -655
  825. package/mobile/bundle/bundle.umd.min.js +1 -1
  826. package/mobile/bundle/components/Accordion/Accordion.d.ts +5 -0
  827. package/mobile/bundle/components/Accordion/AccordionContent.d.ts +43 -0
  828. package/mobile/bundle/components/Accordion/AccordionItem.d.ts +5 -0
  829. package/mobile/bundle/components/BaseTile/BaseTile.d.ts +5 -0
  830. package/mobile/bundle/components/BaseTile/BaseTileProps.d.ts +15 -0
  831. package/mobile/bundle/components/BaseTile/getTileHeadingType.d.ts +1 -0
  832. package/mobile/bundle/components/BaseTile/getTileMinHeight.d.ts +1 -0
  833. package/mobile/bundle/components/BaseTile/getTileRightPadding.d.ts +1 -0
  834. package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +5 -0
  835. package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +52 -0
  836. package/mobile/bundle/components/Blocks.d.ts +17 -0
  837. package/mobile/bundle/components/Bonus/Bonus.d.ts +5 -0
  838. package/mobile/bundle/components/Bonus/BonusContent.d.ts +45 -0
  839. package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +5 -0
  840. package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +15 -0
  841. package/mobile/bundle/components/BonusBenefitsBlock/getElementsColsValue.d.ts +1 -0
  842. package/mobile/bundle/components/Calculator/BonusCalculatorForm.d.ts +5 -0
  843. package/mobile/bundle/components/Calculator/Calculator.d.ts +5 -0
  844. package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +129 -0
  845. package/mobile/bundle/components/Calculator/CalculatorValueBlock.d.ts +8 -0
  846. package/mobile/bundle/components/Calculator/CreditCalculatorForm.d.ts +7 -0
  847. package/mobile/bundle/components/Calculator/DepositCalculatorForm.d.ts +5 -0
  848. package/mobile/bundle/components/Calculator/EmbeddableCalcBlocks.d.ts +9 -0
  849. package/mobile/bundle/components/Calculator/Rate.d.ts +7 -0
  850. package/mobile/bundle/components/Calculator/constants.d.ts +16 -0
  851. package/mobile/bundle/components/Calculator/getBonus.d.ts +2 -0
  852. package/mobile/bundle/components/Calculator/getCreditRate.d.ts +7 -0
  853. package/mobile/bundle/components/Calculator/getDefaultMonths.d.ts +1 -0
  854. package/mobile/bundle/components/Calculator/getDefaultSum.d.ts +1 -0
  855. package/mobile/bundle/components/Calculator/getMonthlyPayment.d.ts +6 -0
  856. package/mobile/bundle/components/Calculator/renderButtonSection.d.ts +2 -0
  857. package/mobile/bundle/components/Calculator/renderCalculatorBlock.d.ts +3 -0
  858. package/mobile/bundle/components/Calculator/renderFootnote.d.ts +2 -0
  859. package/mobile/bundle/components/Calculator/renderInitialFeeInput.d.ts +6 -0
  860. package/mobile/bundle/components/Calculator/renderMonthsInput.d.ts +8 -0
  861. package/mobile/bundle/components/Calculator/renderPaymentTypeSelector.d.ts +6 -0
  862. package/mobile/bundle/components/Calculator/renderProposal.d.ts +2 -0
  863. package/mobile/bundle/components/Calculator/renderProposalMortgage.d.ts +8 -0
  864. package/mobile/bundle/components/Calculator/renderRealEstateValue.d.ts +6 -0
  865. package/mobile/bundle/components/Calculator/renderWantedSumInput.d.ts +11 -0
  866. package/mobile/bundle/components/Calculator/useBonusCalculatorParams.d.ts +36 -0
  867. package/mobile/bundle/components/Calculator/useCalculatorParams.d.ts +1 -0
  868. package/mobile/bundle/components/Calculator/useCreditCalculatorParams.d.ts +27 -0
  869. package/mobile/bundle/components/CardTransfer/CardTransfer.d.ts +5 -0
  870. package/mobile/bundle/components/CardTransfer/CardTransferContent.d.ts +10 -0
  871. package/mobile/bundle/components/Catalog/Catalog.d.ts +5 -0
  872. package/mobile/bundle/components/Catalog/CatalogCard.d.ts +7 -0
  873. package/mobile/bundle/components/Catalog/CatalogContent.d.ts +25 -0
  874. package/mobile/bundle/components/ComparisonTable/ComparisonTable.d.ts +5 -0
  875. package/mobile/bundle/components/ComparisonTable/ComparisonTableBody.d.ts +12 -0
  876. package/mobile/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +10 -0
  877. package/mobile/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +50 -0
  878. package/mobile/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +13 -0
  879. package/mobile/bundle/components/ComparisonTable/HeaderCell.d.ts +11 -0
  880. package/mobile/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +7 -0
  881. package/mobile/bundle/components/ComparisonTable/TableCell.d.ts +9 -0
  882. package/mobile/bundle/components/ComparisonTable/TableColumn.d.ts +15 -0
  883. package/mobile/bundle/components/ComparisonTable/TableRow.d.ts +14 -0
  884. package/mobile/bundle/components/ComparisonTable/TableRowContainer.d.ts +1 -0
  885. package/mobile/bundle/components/ComparisonTable/constants.d.ts +6 -0
  886. package/mobile/bundle/components/ContentPage/ContentPage.d.ts +10 -0
  887. package/mobile/bundle/components/ContentPage/ContentPageContext.d.ts +17 -0
  888. package/mobile/bundle/components/ContentPage/ContentPageHead.d.ts +7 -0
  889. package/mobile/bundle/components/ContentPage/computeAPIFallback.d.ts +5 -0
  890. package/mobile/bundle/components/ContentPage/filterBlocks.d.ts +3 -0
  891. package/mobile/bundle/components/ContentPage/isBlockInRegistry.d.ts +2 -0
  892. package/mobile/bundle/components/ContentPage/normalizeBlock.d.ts +2 -0
  893. package/mobile/bundle/components/ContentPage/normalizePage.d.ts +3 -0
  894. package/mobile/bundle/components/ContentPage/renderBlock.d.ts +13 -0
  895. package/mobile/bundle/components/ErrorBlock/ErrorBlock.d.ts +5 -0
  896. package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +48 -0
  897. package/mobile/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
  898. package/mobile/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +7 -0
  899. package/mobile/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +7 -0
  900. package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +21 -0
  901. package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +5 -0
  902. package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +8 -0
  903. package/mobile/bundle/components/ExchangeRateTile/calculateResult.d.ts +2 -0
  904. package/mobile/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
  905. package/mobile/bundle/components/ExchangeRateTile/formatCurrency.d.ts +1 -0
  906. package/mobile/bundle/components/ExchangeRateTile/renderInput.d.ts +13 -0
  907. package/mobile/bundle/components/Footer/Contacts.d.ts +7 -0
  908. package/mobile/bundle/components/Footer/Footer.d.ts +5 -0
  909. package/mobile/bundle/components/Footer/FooterContent.d.ts +44 -0
  910. package/mobile/bundle/components/Footer/FooterLink.d.ts +5 -0
  911. package/mobile/bundle/components/Footer/HorizontalNavigation.d.ts +6 -0
  912. package/mobile/bundle/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  913. package/mobile/bundle/components/Footer/MediaButton.d.ts +7 -0
  914. package/mobile/bundle/components/Footer/Sitemap.d.ts +8 -0
  915. package/mobile/bundle/components/Footer/SocialMedia.d.ts +8 -0
  916. package/mobile/bundle/components/Footer/TextInformation.d.ts +2 -0
  917. package/mobile/bundle/components/Footer/TextInformationLink.d.ts +8 -0
  918. package/mobile/bundle/components/Gallery/Gallery.d.ts +2 -0
  919. package/mobile/bundle/components/Gallery/GalleryCardInner.d.ts +2 -0
  920. package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +13 -0
  921. package/mobile/bundle/components/Gallery/GalleryContent.d.ts +64 -0
  922. package/mobile/bundle/components/Gallery/GalleryInner.d.ts +7 -0
  923. package/mobile/bundle/components/Gallery/GalleryProps.d.ts +4 -0
  924. package/mobile/bundle/components/Gallery/constants.d.ts +4 -0
  925. package/mobile/bundle/components/GracePeriod/GracePeriod.d.ts +5 -0
  926. package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +32 -0
  927. package/mobile/bundle/components/Header/DropdownMenu.d.ts +14 -0
  928. package/mobile/bundle/components/Header/Header.d.ts +5 -0
  929. package/mobile/bundle/components/Header/Header.fallback.d.ts +2 -0
  930. package/mobile/bundle/components/Header/HeaderBurger.d.ts +11 -0
  931. package/mobile/bundle/components/Header/HeaderContent.d.ts +41 -0
  932. package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +10 -0
  933. package/mobile/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +6 -0
  934. package/mobile/bundle/components/Header/HeaderSubMenu.d.ts +9 -0
  935. package/mobile/bundle/components/Header/HeaderTop.d.ts +6 -0
  936. package/mobile/bundle/components/Headline/Headline.d.ts +5 -0
  937. package/mobile/bundle/components/Headline/HeadlineContent.d.ts +15 -0
  938. package/mobile/bundle/components/Headline/constants.d.ts +20 -0
  939. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
  940. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
  941. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +7 -0
  942. package/mobile/bundle/components/LikeControl/LikeControl.d.ts +2 -0
  943. package/mobile/bundle/components/LinkDocs/LinkDocs.d.ts +5 -0
  944. package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +43 -0
  945. package/mobile/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +6 -0
  946. package/mobile/bundle/components/LinkDocs/LinkDocsList.d.ts +9 -0
  947. package/mobile/bundle/components/LinkDocs/LinkDocsListItem.d.ts +2 -0
  948. package/mobile/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +13 -0
  949. package/mobile/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +8 -0
  950. package/mobile/bundle/components/LinkDocs/linkDocsContentExample.d.ts +2 -0
  951. package/mobile/bundle/components/LinkList/LinkList.d.ts +5 -0
  952. package/mobile/bundle/components/LinkList/LinkListContent.d.ts +8 -0
  953. package/mobile/bundle/components/LinkList/linkListContentExample.d.ts +2 -0
  954. package/mobile/bundle/components/MiniGallery/MiniGallery.d.ts +5 -0
  955. package/mobile/bundle/components/MiniGallery/MiniGalleryContent.d.ts +12 -0
  956. package/mobile/bundle/components/MobileAppTile/MobileAppTile.d.ts +5 -0
  957. package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +31 -0
  958. package/mobile/bundle/components/OfficeServicesBlock/OfficeServicesBlock.d.ts +5 -0
  959. package/mobile/bundle/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +10 -0
  960. package/mobile/bundle/components/OtherProducts/OtherProducts.d.ts +5 -0
  961. package/mobile/bundle/components/OtherProducts/OtherProductsContent.d.ts +25 -0
  962. package/mobile/bundle/components/OtherProducts/OtherProductsItem.d.ts +6 -0
  963. package/mobile/bundle/components/PictureText/PictureText.d.ts +5 -0
  964. package/mobile/bundle/components/PictureText/PictureTextContent.d.ts +34 -0
  965. package/mobile/bundle/components/Placeholder/Placeholder.d.ts +6 -0
  966. package/mobile/bundle/components/Placeholder/PlaceholderContent.d.ts +5 -0
  967. package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +5 -0
  968. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +54 -0
  969. package/mobile/bundle/components/ProductBlock/ProductBlockInner.d.ts +4 -0
  970. package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +4 -0
  971. package/mobile/bundle/components/ProductBlock/renderBenefit.d.ts +5 -0
  972. package/mobile/bundle/components/ProductGallery/ProductGallery.d.ts +5 -0
  973. package/mobile/bundle/components/ProductGallery/ProductGalleryBlock.d.ts +8 -0
  974. package/mobile/bundle/components/ProductGallery/ProductGalleryContent.d.ts +29 -0
  975. package/mobile/bundle/components/ProductTile/ProductTile.d.ts +5 -0
  976. package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +33 -0
  977. package/mobile/bundle/components/PromoTile/PromoTile.d.ts +5 -0
  978. package/mobile/bundle/components/PromoTile/PromoTileContent.d.ts +12 -0
  979. package/mobile/bundle/components/Recommendation/Recommendation.d.ts +5 -0
  980. package/mobile/bundle/components/Recommendation/RecommendationCard.d.ts +7 -0
  981. package/mobile/bundle/components/Recommendation/RecommendationContent.d.ts +43 -0
  982. package/mobile/bundle/components/SafeDepositRental/RegionsAndBranches.d.ts +12 -0
  983. package/mobile/bundle/components/SafeDepositRental/RenderRadioButtons.d.ts +2 -0
  984. package/mobile/bundle/components/SafeDepositRental/RentalPeriod.d.ts +6 -0
  985. package/mobile/bundle/components/SafeDepositRental/SafeBoxCases.d.ts +11 -0
  986. package/mobile/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +5 -0
  987. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +9 -0
  988. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +12 -0
  989. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +11 -0
  990. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +6 -0
  991. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +8 -0
  992. package/mobile/bundle/components/SafeDepositRental/WrapperSelect.d.ts +11 -0
  993. package/mobile/bundle/components/SafeDepositRental/YandexMap.d.ts +5 -0
  994. package/mobile/bundle/components/SafeDepositRental/renderClusterer.d.ts +2 -0
  995. package/mobile/bundle/components/SafeDepositRental/useGetRegions.d.ts +6 -0
  996. package/mobile/bundle/components/SafeDepositRental/useYandexMaps.d.ts +2 -0
  997. package/mobile/bundle/components/SafeDepositRental/utils.d.ts +3 -0
  998. package/mobile/bundle/components/StepsBlock/StepsBlock.d.ts +5 -0
  999. package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +43 -0
  1000. package/mobile/bundle/components/StepsBlock/StepsBlockStyleMaps.d.ts +11 -0
  1001. package/mobile/bundle/components/StepsBlock/renderItems.d.ts +3 -0
  1002. package/mobile/bundle/components/Tabs/Tabs.d.ts +13 -0
  1003. package/mobile/bundle/components/Tabs/TabsContent.d.ts +36 -0
  1004. package/mobile/bundle/components/Tabs/renderGroupTab.d.ts +4 -0
  1005. package/mobile/bundle/components/Tabs/renderLinkTab.d.ts +9 -0
  1006. package/mobile/bundle/components/Tabs/renderTab.d.ts +12 -0
  1007. package/mobile/bundle/components/Tabs/tabItemClasses.d.ts +6 -0
  1008. package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +12 -0
  1009. package/mobile/bundle/components/TariffsTable/TableTileHeader.d.ts +2 -0
  1010. package/mobile/bundle/components/TariffsTable/TariffsTable.d.ts +5 -0
  1011. package/mobile/bundle/components/TariffsTable/TariffsTableCell.d.ts +9 -0
  1012. package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +95 -0
  1013. package/mobile/bundle/components/TariffsTable/TariffsTableHorizontal.d.ts +6 -0
  1014. package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +9 -0
  1015. package/mobile/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +7 -0
  1016. package/mobile/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +8 -0
  1017. package/mobile/bundle/components/TariffsTable/TariffsTableVertical.d.ts +6 -0
  1018. package/mobile/bundle/components/TariffsTable/constants.d.ts +4 -0
  1019. package/mobile/bundle/components/TariffsTable/dataFixture.d.ts +5 -0
  1020. package/mobile/bundle/components/TariffsTable/utils/getButtonAriaLabel.d.ts +2 -0
  1021. package/mobile/bundle/components/TextBlock/TextBlock.d.ts +5 -0
  1022. package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +22 -0
  1023. package/mobile/bundle/components/Tile/Tile.d.ts +6 -0
  1024. package/mobile/bundle/components/Tile/TileContent.d.ts +34 -0
  1025. package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +11 -0
  1026. package/mobile/bundle/content-page-repository/TransformationOptions.d.ts +4 -0
  1027. package/mobile/bundle/content-page-repository/index.d.ts +2 -0
  1028. package/mobile/bundle/content-page-repository/mapJSON.d.ts +1 -0
  1029. package/mobile/bundle/content-page-repository/transformContentPage.d.ts +3 -0
  1030. package/mobile/bundle/content-page-repository/transformImg.d.ts +11 -0
  1031. package/mobile/bundle/content-page-repository/transformMarkdown.d.ts +1 -0
  1032. package/mobile/bundle/content-page-repository/transformPicture.d.ts +3 -0
  1033. package/mobile/bundle/content-page-repository/transformSrc.d.ts +3 -0
  1034. package/mobile/bundle/hooks/useExchangeRates.d.ts +2 -0
  1035. package/mobile/bundle/hooks/useExternalNS.d.ts +2 -0
  1036. package/mobile/bundle/hooks/useGeolocation.d.ts +1 -0
  1037. package/mobile/bundle/hooks/useLikeService.d.ts +5 -0
  1038. package/mobile/bundle/hooks/useLink.d.ts +18 -0
  1039. package/mobile/bundle/hooks/useOutsideClick.d.ts +5 -0
  1040. package/mobile/{lib/hooks/useFetchSafeBoxes.d.ts → bundle/hooks/useSafeBoxes.d.ts} +1 -3
  1041. package/mobile/bundle/hooks/useSearch.d.ts +4 -0
  1042. package/mobile/bundle/hooks/useTableArrowScrollControl.d.ts +7 -0
  1043. package/mobile/bundle/hooks/useTariffsInnerTableData.d.ts +1 -0
  1044. package/mobile/bundle/icons/IconName.d.ts +194 -0
  1045. package/mobile/bundle/index.d.ts +9 -0
  1046. package/mobile/bundle/model/AlignType.d.ts +9 -0
  1047. package/mobile/bundle/model/BgColorVersion.d.ts +8 -0
  1048. package/mobile/bundle/model/BlockDecorator.d.ts +14 -0
  1049. package/mobile/bundle/model/BlockVersion.d.ts +11 -0
  1050. package/mobile/bundle/model/BlocksRegistry.d.ts +5 -0
  1051. package/mobile/bundle/model/ButtonVersion.d.ts +6 -0
  1052. package/mobile/bundle/model/ContentPageDef.d.ts +52 -0
  1053. package/mobile/bundle/model/EmptyOptionType.d.ts +4 -0
  1054. package/mobile/bundle/model/Fallback.d.ts +5 -0
  1055. package/mobile/bundle/model/Footnote.d.ts +4 -0
  1056. package/mobile/bundle/model/GalleryVersion.d.ts +1 -0
  1057. package/mobile/bundle/model/HeadlineType.d.ts +29 -0
  1058. package/mobile/bundle/model/IconVersion.d.ts +9 -0
  1059. package/mobile/bundle/model/ImageSize.d.ts +6 -0
  1060. package/mobile/bundle/model/InputTypes.d.ts +1 -0
  1061. package/mobile/bundle/model/LinkProps.d.ts +24 -0
  1062. package/mobile/bundle/model/ListOrientation.d.ts +8 -0
  1063. package/mobile/bundle/model/Picture.d.ts +59 -0
  1064. package/mobile/bundle/model/ProductColorVersion.d.ts +4 -0
  1065. package/mobile/bundle/model/SitemapProps.d.ts +24 -0
  1066. package/mobile/bundle/model/SizeVersion.d.ts +8 -0
  1067. package/mobile/bundle/model/TableVersion.d.ts +1 -0
  1068. package/mobile/bundle/model/VNode.d.ts +1 -0
  1069. package/mobile/bundle/react/setup-fixture.d.ts +4 -0
  1070. package/mobile/bundle/services/sitemap/SitemapProps.d.ts +24 -0
  1071. package/mobile/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +4 -0
  1072. package/mobile/bundle/services/sitemap/findActiveSubItem.d.ts +3 -0
  1073. package/mobile/bundle/services/sitemap/isHrefActive.d.ts +4 -0
  1074. package/mobile/bundle/services/sitemap/isSubItemActive.d.ts +3 -0
  1075. package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -0
  1076. package/mobile/bundle/services/sitemap/mergeTopItems.d.ts +2 -0
  1077. package/mobile/bundle/services/sitemap/useSitemap.d.ts +3 -0
  1078. package/mobile/bundle/ui-kit/BenefitItem/BenefitItem.d.ts +4 -0
  1079. package/mobile/bundle/ui-kit/BenefitItem/BenefitItemProps.d.ts +20 -0
  1080. package/mobile/bundle/ui-kit/BlockWrapper.d.ts +7 -0
  1081. package/mobile/bundle/ui-kit/BlocksList/BlocksListProps.d.ts +96 -0
  1082. package/mobile/bundle/ui-kit/BlocksList/EmbeddableBlocks.d.ts +8 -0
  1083. package/mobile/bundle/ui-kit/BlocksList/renderBlocksList.d.ts +9 -0
  1084. package/mobile/bundle/ui-kit/Breadcrumb.d.ts +6 -0
  1085. package/mobile/bundle/ui-kit/Button/ArrowButton.d.ts +2 -0
  1086. package/mobile/bundle/ui-kit/Button/Button.d.ts +2 -0
  1087. package/mobile/bundle/ui-kit/Button/ButtonInner.d.ts +7 -0
  1088. package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +54 -0
  1089. package/mobile/bundle/ui-kit/Button/ButtonSection.d.ts +5 -0
  1090. package/mobile/bundle/ui-kit/Button/GetButtonClassParams.d.ts +6 -0
  1091. package/mobile/bundle/ui-kit/Button/LikeButton.d.ts +6 -0
  1092. package/mobile/bundle/ui-kit/Button/buttonClassNameConstants.d.ts +5 -0
  1093. package/mobile/bundle/ui-kit/Button/getDisabledButtonClasses.d.ts +2 -0
  1094. package/mobile/bundle/ui-kit/Button/getRegularButtonClasses.d.ts +2 -0
  1095. package/mobile/bundle/ui-kit/Button/renderArrows.d.ts +9 -0
  1096. package/mobile/bundle/ui-kit/Checkbox/Checkbox.d.ts +2 -0
  1097. package/mobile/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +7 -0
  1098. package/mobile/bundle/ui-kit/CurrencyInput/CurrencyInput.d.ts +2 -0
  1099. package/mobile/bundle/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +5 -0
  1100. package/mobile/bundle/ui-kit/CurrencyInput/adjustValue .d.ts +3 -0
  1101. package/mobile/bundle/ui-kit/Description/Description.d.ts +5 -0
  1102. package/mobile/bundle/ui-kit/Foldable/DefaultButton.d.ts +2 -0
  1103. package/mobile/bundle/ui-kit/Foldable/FoldButtonProps.d.ts +12 -0
  1104. package/mobile/bundle/ui-kit/Foldable/Foldable.d.ts +16 -0
  1105. package/mobile/bundle/ui-kit/HeaderItem/HeaderItem.d.ts +3 -0
  1106. package/mobile/bundle/ui-kit/Heading/Heading.d.ts +2 -0
  1107. package/mobile/bundle/ui-kit/Heading/HeadingProps.d.ts +23 -0
  1108. package/mobile/bundle/ui-kit/Icon/Icon.d.ts +2 -0
  1109. package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +21 -0
  1110. package/mobile/bundle/ui-kit/Img/Img.d.ts +2 -0
  1111. package/mobile/bundle/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  1112. package/mobile/bundle/ui-kit/Img/ImgInner.d.ts +2 -0
  1113. package/mobile/bundle/ui-kit/Img/ImgProps.d.ts +11 -0
  1114. package/mobile/bundle/ui-kit/Img/getIconVersion.d.ts +1 -0
  1115. package/mobile/bundle/ui-kit/InnerTable/InnerTable.d.ts +5 -0
  1116. package/mobile/bundle/ui-kit/InnerTable/InnerTableBody.d.ts +7 -0
  1117. package/mobile/bundle/ui-kit/InnerTable/InnerTableBodyItem.d.ts +6 -0
  1118. package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +6 -0
  1119. package/mobile/bundle/ui-kit/InnerTable/InnerTableHeader.d.ts +7 -0
  1120. package/mobile/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +24 -0
  1121. package/mobile/bundle/ui-kit/Input/Input.d.ts +2 -0
  1122. package/mobile/bundle/ui-kit/Input/InputProps.d.ts +16 -0
  1123. package/mobile/bundle/ui-kit/InputRange/InputRange.d.ts +2 -0
  1124. package/mobile/bundle/ui-kit/InputRange/InputRangeProps.d.ts +11 -0
  1125. package/mobile/bundle/ui-kit/IntersectionObserverTag.d.ts +11 -0
  1126. package/mobile/bundle/ui-kit/List/List.d.ts +2 -0
  1127. package/mobile/bundle/ui-kit/List/ListContent.d.ts +4 -0
  1128. package/mobile/bundle/ui-kit/List/ListItem.d.ts +12 -0
  1129. package/mobile/bundle/ui-kit/List/ListProps.d.ts +26 -0
  1130. package/mobile/bundle/ui-kit/Logo/Logo.d.ts +8 -0
  1131. package/mobile/bundle/ui-kit/Radio/Radio.d.ts +2 -0
  1132. package/mobile/bundle/ui-kit/Radio/RadioProps.d.ts +9 -0
  1133. package/mobile/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  1134. package/mobile/bundle/ui-kit/SVG.d.ts +19 -0
  1135. package/mobile/bundle/ui-kit/SearchBar/SearchBar.d.ts +2 -0
  1136. package/mobile/bundle/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  1137. package/mobile/{dist/ui-kit/SelectCustom/SelectCustom.d.ts → bundle/ui-kit/Select/Select.d.ts} +3 -2
  1138. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControl.d.ts +2 -0
  1139. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +6 -0
  1140. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +9 -0
  1141. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +10 -0
  1142. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +18 -0
  1143. package/mobile/bundle/ui-kit/SwipeListControl/constants.d.ts +2 -0
  1144. package/mobile/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +1 -0
  1145. package/mobile/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +4 -0
  1146. package/mobile/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +8 -0
  1147. package/mobile/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControl.d.ts +2 -0
  1148. package/mobile/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +7 -0
  1149. package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +14 -0
  1150. package/mobile/bundle/utils/addSpacesBetweenNumbers.d.ts +1 -0
  1151. package/mobile/bundle/utils/adjustHref.d.ts +4 -0
  1152. package/mobile/bundle/utils/assertUnreachable.d.ts +1 -0
  1153. package/mobile/bundle/utils/changeHashOnObserve.d.ts +9 -0
  1154. package/mobile/bundle/utils/checkIsIconRenderable.d.ts +2 -0
  1155. package/mobile/bundle/utils/clamp.d.ts +1 -0
  1156. package/mobile/bundle/utils/fetchJSON.d.ts +2 -0
  1157. package/mobile/bundle/utils/getAccordionItems.d.ts +1 -0
  1158. package/mobile/bundle/utils/getColSpan.d.ts +1 -0
  1159. package/mobile/bundle/utils/getCurrentDate.d.ts +1 -0
  1160. package/mobile/bundle/utils/getGeolocation.d.ts +1 -0
  1161. package/mobile/bundle/utils/getSanitizedValue.d.ts +1 -0
  1162. package/mobile/bundle/utils/isPictureSizeEmpty.d.ts +2 -0
  1163. package/mobile/bundle/utils/joinList.d.ts +1 -0
  1164. package/mobile/bundle/utils/maxBy.d.ts +2 -0
  1165. package/mobile/bundle/utils/roundTo.d.ts +1 -0
  1166. package/mobile/bundle/utils/style2className.d.ts +1 -0
  1167. package/mobile/bundle/utils/tableFunc.d.ts +2 -0
  1168. package/mobile/bundle/utils/url.d.ts +5 -0
  1169. package/mobile/bundle/utils/withoutMobilePath.d.ts +2 -0
  1170. package/mobile/dist/EventBus/EventMap.d.ts +2 -1
  1171. package/mobile/dist/components/Accordion/AccordionItem.d.ts +1 -1
  1172. package/mobile/dist/components/Accordion/AccordionItem.js +9 -7
  1173. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  1174. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  1175. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  1176. package/mobile/dist/components/Blocks.d.ts +0 -1
  1177. package/mobile/dist/components/Blocks.js +0 -2
  1178. package/mobile/dist/components/Blocks.js.map +1 -1
  1179. package/mobile/dist/components/Bonus/Bonus.js +11 -2
  1180. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  1181. package/mobile/dist/components/Bonus/BonusContent.d.ts +30 -2
  1182. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +1 -1
  1183. package/mobile/dist/components/CardTransfer/CardTransfer.js +12 -12
  1184. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  1185. package/mobile/dist/components/CardTransfer/CardTransferContent.d.ts +2 -2
  1186. package/mobile/dist/components/Catalog/Catalog.js +1 -1
  1187. package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
  1188. package/mobile/dist/components/Catalog/CatalogCard.js +1 -23
  1189. package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
  1190. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +13 -48
  1191. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  1192. package/mobile/dist/components/ComparisonTable/TableColumn.d.ts +5 -8
  1193. package/mobile/dist/components/ComparisonTable/TableColumn.js +2 -3
  1194. package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
  1195. package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +0 -11
  1196. package/mobile/dist/components/ErrorBlock/ErrorBlock.js +1 -1
  1197. package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  1198. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  1199. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  1200. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  1201. package/mobile/dist/components/ExchangeRateTile/renderInput.js +2 -2
  1202. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  1203. package/mobile/dist/components/Footer/Contacts.js +1 -1
  1204. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  1205. package/mobile/dist/components/Footer/FooterContent.d.ts +5 -9
  1206. package/mobile/dist/components/Gallery/Gallery.js +7 -3
  1207. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  1208. package/mobile/dist/components/Gallery/GalleryCardInner.js +14 -17
  1209. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  1210. package/mobile/dist/components/Gallery/GalleryContainer.js +2 -2
  1211. package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
  1212. package/mobile/dist/components/Gallery/GalleryContent.d.ts +11 -3
  1213. package/mobile/dist/components/GracePeriod/GracePeriod.js +3 -3
  1214. package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  1215. package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -1
  1216. package/mobile/dist/components/Header/HeaderSubMenu.js +3 -2
  1217. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  1218. package/mobile/dist/components/Headline/constants.d.ts +2 -1
  1219. package/mobile/dist/components/Headline/constants.js +10 -1
  1220. package/mobile/dist/components/Headline/constants.js.map +1 -1
  1221. package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
  1222. package/mobile/dist/components/OtherProducts/OtherProductsItem.js +4 -2
  1223. package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  1224. package/mobile/dist/components/ProductTile/ProductTile.js +1 -1
  1225. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  1226. package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +5 -0
  1227. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
  1228. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -1
  1229. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  1230. package/mobile/dist/components/SafeDepositRental/SafeBoxCases.d.ts +1 -1
  1231. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
  1232. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +17 -3
  1233. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  1234. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +7 -4
  1235. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +3 -5
  1236. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  1237. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +7 -3
  1238. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +7 -28
  1239. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  1240. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +1 -1
  1241. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
  1242. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  1243. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -2
  1244. package/mobile/dist/components/SafeDepositRental/WrapperSelect.js +6 -3
  1245. package/mobile/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
  1246. package/mobile/dist/components/SafeDepositRental/utils.d.ts +1 -1
  1247. package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +9 -2
  1248. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
  1249. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js +2 -0
  1250. package/mobile/dist/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  1251. package/mobile/dist/components/StepsBlock/renderItems.d.ts +3 -0
  1252. package/mobile/dist/components/StepsBlock/renderItems.js +6 -0
  1253. package/mobile/dist/components/StepsBlock/renderItems.js.map +1 -0
  1254. package/mobile/dist/components/Tabs/Tabs.d.ts +4 -0
  1255. package/mobile/dist/components/Tabs/Tabs.js +13 -3
  1256. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  1257. package/mobile/dist/components/Tabs/TabsContent.d.ts +2 -0
  1258. package/mobile/dist/components/Tabs/renderLinkTab.d.ts +3 -2
  1259. package/mobile/dist/components/Tabs/renderLinkTab.js +4 -1
  1260. package/mobile/dist/components/Tabs/renderLinkTab.js.map +1 -1
  1261. package/mobile/dist/components/Tabs/renderTab.js +12 -2
  1262. package/mobile/dist/components/Tabs/renderTab.js.map +1 -1
  1263. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +1 -2
  1264. package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  1265. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -1
  1266. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  1267. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -2
  1268. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  1269. package/mobile/dist/components/TariffsTable/dataFixture.js +4 -2
  1270. package/mobile/dist/components/TariffsTable/dataFixture.js.map +1 -1
  1271. package/mobile/dist/components/TariffsTable/utils/getButtonAriaLabel.d.ts +1 -1
  1272. package/mobile/dist/components/TariffsTable/utils/getButtonAriaLabel.js +1 -2
  1273. package/mobile/dist/components/TariffsTable/utils/getButtonAriaLabel.js.map +1 -1
  1274. package/mobile/dist/components/Tile/Tile.js +2 -3
  1275. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  1276. package/mobile/dist/hooks/useOutsideClick.d.ts +5 -0
  1277. package/mobile/dist/hooks/useOutsideClick.js +21 -0
  1278. package/mobile/dist/hooks/useOutsideClick.js.map +1 -0
  1279. package/mobile/dist/hooks/useSafeBoxes.d.ts +20 -0
  1280. package/mobile/dist/hooks/{useFetchSafeBoxes.js → useSafeBoxes.js} +9 -10
  1281. package/mobile/dist/hooks/useSafeBoxes.js.map +1 -0
  1282. package/mobile/dist/icons/IconName.d.ts +1 -92
  1283. package/mobile/dist/icons/IconName.js +4 -4
  1284. package/mobile/dist/icons/IconName.js.map +1 -1
  1285. package/mobile/dist/model/HeadlineType.d.ts +8 -0
  1286. package/mobile/dist/model/Picture.d.ts +1 -0
  1287. package/mobile/dist/react/setup-fixture.js +0 -2
  1288. package/mobile/dist/react/setup-fixture.js.map +1 -1
  1289. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +3 -1
  1290. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  1291. package/mobile/dist/ui-kit/BlockWrapper.d.ts +0 -3
  1292. package/mobile/dist/ui-kit/BlockWrapper.js +36 -14
  1293. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  1294. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +1 -1
  1295. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +1 -1
  1296. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  1297. package/mobile/dist/ui-kit/Button/Button.js +1 -1
  1298. package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
  1299. package/mobile/dist/ui-kit/Button/ButtonInner.js +3 -2
  1300. package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
  1301. package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +1 -7
  1302. package/mobile/dist/ui-kit/Button/ButtonSection.js +5 -10
  1303. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  1304. package/mobile/dist/ui-kit/Button/buttonClassNameConstants.d.ts +1 -0
  1305. package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js +7 -1
  1306. package/mobile/dist/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  1307. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js +17 -6
  1308. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  1309. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +2 -7
  1310. package/mobile/dist/ui-kit/CurrencyInput/adjustValue .d.ts +3 -0
  1311. package/mobile/dist/ui-kit/CurrencyInput/adjustValue .js +24 -0
  1312. package/mobile/dist/ui-kit/CurrencyInput/adjustValue .js.map +1 -0
  1313. package/mobile/dist/ui-kit/Foldable/DefaultButton.d.ts +2 -0
  1314. package/mobile/dist/ui-kit/Foldable/DefaultButton.js +12 -0
  1315. package/mobile/dist/ui-kit/Foldable/DefaultButton.js.map +1 -0
  1316. package/mobile/dist/ui-kit/Foldable/FoldButtonProps.d.ts +12 -0
  1317. package/mobile/dist/ui-kit/Foldable/FoldButtonProps.js +2 -0
  1318. package/mobile/dist/ui-kit/Foldable/FoldButtonProps.js.map +1 -0
  1319. package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +11 -17
  1320. package/mobile/dist/ui-kit/Foldable/Foldable.js +22 -14
  1321. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  1322. package/mobile/dist/ui-kit/Icon/Icon.js +4 -5
  1323. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  1324. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +0 -1
  1325. package/mobile/dist/ui-kit/Img/Img.js +1 -3
  1326. package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
  1327. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
  1328. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  1329. package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +6 -2
  1330. package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  1331. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
  1332. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  1333. package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
  1334. package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  1335. package/mobile/dist/ui-kit/Input/Input.d.ts +1 -1
  1336. package/mobile/dist/ui-kit/Input/Input.js +16 -4
  1337. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  1338. package/mobile/dist/ui-kit/Input/InputProps.d.ts +8 -3
  1339. package/mobile/dist/ui-kit/InputRange/InputRange.js +2 -2
  1340. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  1341. package/mobile/dist/ui-kit/IntersectionObserverTag.d.ts +11 -0
  1342. package/mobile/dist/ui-kit/IntersectionObserverTag.js +22 -0
  1343. package/mobile/dist/ui-kit/IntersectionObserverTag.js.map +1 -0
  1344. package/mobile/dist/ui-kit/List/List.js +13 -8
  1345. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  1346. package/mobile/dist/ui-kit/List/ListItem.d.ts +2 -2
  1347. package/mobile/dist/ui-kit/List/ListItem.js +8 -23
  1348. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  1349. package/mobile/dist/ui-kit/List/ListProps.d.ts +5 -3
  1350. package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
  1351. package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
  1352. package/mobile/dist/ui-kit/Select/Select.d.ts +10 -4
  1353. package/mobile/dist/ui-kit/Select/Select.js +26 -5
  1354. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  1355. package/mobile/dist/utils/changeHashOnObserve.d.ts +9 -1
  1356. package/mobile/dist/utils/changeHashOnObserve.js +12 -4
  1357. package/mobile/dist/utils/changeHashOnObserve.js.map +1 -1
  1358. package/mobile/dist/utils/getSanitizedValue.d.ts +1 -0
  1359. package/mobile/dist/utils/getSanitizedValue.js +5 -0
  1360. package/mobile/dist/utils/getSanitizedValue.js.map +1 -0
  1361. package/mobile/lib/EventBus/EventMap.d.ts +2 -1
  1362. package/mobile/lib/components/Accordion/AccordionItem.d.ts +1 -1
  1363. package/mobile/lib/components/Accordion/AccordionItem.js +9 -7
  1364. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  1365. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  1366. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  1367. package/mobile/lib/components/Blocks.d.ts +0 -1
  1368. package/mobile/lib/components/Blocks.js +0 -2
  1369. package/mobile/lib/components/Blocks.js.map +1 -1
  1370. package/mobile/lib/components/Bonus/Bonus.js +11 -2
  1371. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  1372. package/mobile/lib/components/Bonus/BonusContent.d.ts +30 -2
  1373. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +1 -1
  1374. package/mobile/lib/components/CardTransfer/CardTransfer.js +12 -12
  1375. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  1376. package/mobile/lib/components/CardTransfer/CardTransferContent.d.ts +2 -2
  1377. package/mobile/lib/components/Catalog/Catalog.js +1 -1
  1378. package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
  1379. package/mobile/lib/components/Catalog/CatalogCard.js +1 -23
  1380. package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
  1381. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +14 -49
  1382. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  1383. package/mobile/lib/components/ComparisonTable/TableColumn.d.ts +5 -8
  1384. package/mobile/lib/components/ComparisonTable/TableColumn.js +2 -3
  1385. package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
  1386. package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +0 -11
  1387. package/mobile/lib/components/ErrorBlock/ErrorBlock.js +1 -1
  1388. package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  1389. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -2
  1390. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  1391. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  1392. package/mobile/lib/components/ExchangeRateTile/renderInput.js +2 -2
  1393. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  1394. package/mobile/lib/components/Footer/Contacts.js +1 -1
  1395. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  1396. package/mobile/lib/components/Footer/FooterContent.d.ts +5 -9
  1397. package/mobile/lib/components/Gallery/Gallery.js +7 -3
  1398. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  1399. package/mobile/lib/components/Gallery/GalleryCardInner.js +15 -18
  1400. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  1401. package/mobile/lib/components/Gallery/GalleryContainer.js +2 -2
  1402. package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
  1403. package/mobile/lib/components/Gallery/GalleryContent.d.ts +11 -3
  1404. package/mobile/lib/components/GracePeriod/GracePeriod.js +3 -3
  1405. package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  1406. package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -1
  1407. package/mobile/lib/components/Header/HeaderSubMenu.js +2 -1
  1408. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  1409. package/mobile/lib/components/Headline/constants.d.ts +2 -1
  1410. package/mobile/lib/components/Headline/constants.js +9 -0
  1411. package/mobile/lib/components/Headline/constants.js.map +1 -1
  1412. package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -0
  1413. package/mobile/lib/components/OtherProducts/OtherProductsItem.js +4 -2
  1414. package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  1415. package/mobile/lib/components/ProductTile/ProductTile.js +1 -1
  1416. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  1417. package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +5 -0
  1418. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.d.ts +1 -1
  1419. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -1
  1420. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  1421. package/mobile/lib/components/SafeDepositRental/SafeBoxCases.d.ts +1 -1
  1422. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
  1423. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +18 -4
  1424. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  1425. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +7 -4
  1426. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +3 -5
  1427. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  1428. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +7 -3
  1429. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +9 -30
  1430. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  1431. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +1 -1
  1432. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
  1433. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  1434. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +0 -2
  1435. package/mobile/lib/components/SafeDepositRental/WrapperSelect.js +7 -4
  1436. package/mobile/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
  1437. package/mobile/lib/components/SafeDepositRental/utils.d.ts +1 -1
  1438. package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +9 -2
  1439. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.d.ts +1 -0
  1440. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js +2 -0
  1441. package/mobile/lib/components/StepsBlock/StepsBlockStyleMaps.js.map +1 -1
  1442. package/mobile/lib/components/StepsBlock/renderItems.d.ts +3 -0
  1443. package/mobile/lib/components/StepsBlock/renderItems.js +3 -0
  1444. package/mobile/lib/components/StepsBlock/renderItems.js.map +1 -0
  1445. package/mobile/lib/components/Tabs/Tabs.d.ts +4 -0
  1446. package/mobile/lib/components/Tabs/Tabs.js +13 -3
  1447. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  1448. package/mobile/lib/components/Tabs/TabsContent.d.ts +2 -0
  1449. package/mobile/lib/components/Tabs/renderLinkTab.d.ts +3 -2
  1450. package/mobile/lib/components/Tabs/renderLinkTab.js +5 -2
  1451. package/mobile/lib/components/Tabs/renderLinkTab.js.map +1 -1
  1452. package/mobile/lib/components/Tabs/renderTab.js +12 -2
  1453. package/mobile/lib/components/Tabs/renderTab.js.map +1 -1
  1454. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +1 -2
  1455. package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
  1456. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +1 -1
  1457. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  1458. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -2
  1459. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  1460. package/mobile/lib/components/TariffsTable/dataFixture.js +4 -2
  1461. package/mobile/lib/components/TariffsTable/dataFixture.js.map +1 -1
  1462. package/mobile/lib/components/TariffsTable/utils/getButtonAriaLabel.d.ts +1 -1
  1463. package/mobile/lib/components/TariffsTable/utils/getButtonAriaLabel.js +1 -2
  1464. package/mobile/lib/components/TariffsTable/utils/getButtonAriaLabel.js.map +1 -1
  1465. package/mobile/lib/components/Tile/Tile.js +2 -3
  1466. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  1467. package/mobile/lib/hooks/useOutsideClick.d.ts +5 -0
  1468. package/mobile/lib/hooks/useOutsideClick.js +18 -0
  1469. package/mobile/lib/hooks/useOutsideClick.js.map +1 -0
  1470. package/mobile/lib/hooks/useSafeBoxes.d.ts +20 -0
  1471. package/mobile/lib/hooks/{useFetchSafeBoxes.js → useSafeBoxes.js} +7 -8
  1472. package/mobile/lib/hooks/useSafeBoxes.js.map +1 -0
  1473. package/mobile/lib/icons/IconName.d.ts +1 -92
  1474. package/mobile/lib/icons/IconName.js +3 -3
  1475. package/mobile/lib/icons/IconName.js.map +1 -1
  1476. package/mobile/lib/model/HeadlineType.d.ts +8 -0
  1477. package/mobile/lib/model/Picture.d.ts +1 -0
  1478. package/mobile/lib/react/setup-fixture.js +0 -2
  1479. package/mobile/lib/react/setup-fixture.js.map +1 -1
  1480. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +3 -1
  1481. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  1482. package/mobile/lib/ui-kit/BlockWrapper.d.ts +0 -3
  1483. package/mobile/lib/ui-kit/BlockWrapper.js +37 -15
  1484. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  1485. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +1 -1
  1486. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +1 -1
  1487. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  1488. package/mobile/lib/ui-kit/Button/Button.js +1 -1
  1489. package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
  1490. package/mobile/lib/ui-kit/Button/ButtonInner.js +3 -2
  1491. package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
  1492. package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +1 -7
  1493. package/mobile/lib/ui-kit/Button/ButtonSection.js +5 -10
  1494. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  1495. package/mobile/lib/ui-kit/Button/buttonClassNameConstants.d.ts +1 -0
  1496. package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js +6 -0
  1497. package/mobile/lib/ui-kit/Button/buttonClassNameConstants.js.map +1 -1
  1498. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js +18 -7
  1499. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  1500. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInputProps.d.ts +2 -7
  1501. package/mobile/lib/ui-kit/CurrencyInput/adjustValue .d.ts +3 -0
  1502. package/mobile/lib/ui-kit/CurrencyInput/adjustValue .js +19 -0
  1503. package/mobile/lib/ui-kit/CurrencyInput/adjustValue .js.map +1 -0
  1504. package/mobile/lib/ui-kit/Foldable/DefaultButton.d.ts +2 -0
  1505. package/mobile/lib/ui-kit/Foldable/DefaultButton.js +10 -0
  1506. package/mobile/lib/ui-kit/Foldable/DefaultButton.js.map +1 -0
  1507. package/mobile/lib/ui-kit/Foldable/FoldButtonProps.d.ts +12 -0
  1508. package/mobile/lib/ui-kit/Foldable/FoldButtonProps.js +2 -0
  1509. package/mobile/lib/ui-kit/Foldable/FoldButtonProps.js.map +1 -0
  1510. package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +11 -17
  1511. package/mobile/lib/ui-kit/Foldable/Foldable.js +22 -14
  1512. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  1513. package/mobile/lib/ui-kit/Icon/Icon.js +4 -5
  1514. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  1515. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +0 -1
  1516. package/mobile/lib/ui-kit/Img/Img.js +1 -3
  1517. package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
  1518. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
  1519. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  1520. package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +6 -2
  1521. package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  1522. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
  1523. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  1524. package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
  1525. package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
  1526. package/mobile/lib/ui-kit/Input/Input.d.ts +1 -1
  1527. package/mobile/lib/ui-kit/Input/Input.js +17 -5
  1528. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  1529. package/mobile/lib/ui-kit/Input/InputProps.d.ts +8 -3
  1530. package/mobile/lib/ui-kit/InputRange/InputRange.js +2 -2
  1531. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  1532. package/mobile/lib/ui-kit/IntersectionObserverTag.d.ts +11 -0
  1533. package/mobile/lib/ui-kit/IntersectionObserverTag.js +20 -0
  1534. package/mobile/lib/ui-kit/IntersectionObserverTag.js.map +1 -0
  1535. package/mobile/lib/ui-kit/List/List.js +13 -8
  1536. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  1537. package/mobile/lib/ui-kit/List/ListItem.d.ts +2 -2
  1538. package/mobile/lib/ui-kit/List/ListItem.js +7 -21
  1539. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  1540. package/mobile/lib/ui-kit/List/ListProps.d.ts +5 -3
  1541. package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
  1542. package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
  1543. package/mobile/lib/ui-kit/Select/Select.d.ts +10 -4
  1544. package/mobile/lib/ui-kit/Select/Select.js +27 -6
  1545. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  1546. package/mobile/lib/utils/changeHashOnObserve.d.ts +9 -1
  1547. package/mobile/lib/utils/changeHashOnObserve.js +12 -4
  1548. package/mobile/lib/utils/changeHashOnObserve.js.map +1 -1
  1549. package/mobile/lib/utils/getSanitizedValue.d.ts +1 -0
  1550. package/mobile/lib/utils/getSanitizedValue.js +2 -0
  1551. package/mobile/lib/utils/getSanitizedValue.js.map +1 -0
  1552. package/mobile/src/EventBus/EventMap.ts +3 -1
  1553. package/mobile/src/components/Accordion/Accordion.ui.json +79 -0
  1554. package/mobile/src/components/Accordion/AccordionItem.tsx +50 -26
  1555. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  1556. package/mobile/src/components/BenefitsBlock/BenefitsBlock.ui.json +16 -0
  1557. package/mobile/src/components/Blocks.ts +0 -2
  1558. package/mobile/src/components/Bonus/Bonus.example.json +5 -2
  1559. package/mobile/src/components/Bonus/Bonus.tsx +44 -16
  1560. package/mobile/src/components/Bonus/Bonus.ui.json +16 -0
  1561. package/mobile/src/components/Bonus/BonusContent.ts +33 -2
  1562. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
  1563. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.ui.json +11 -0
  1564. package/mobile/src/components/Calculator/Calculator.example.json +2 -1
  1565. package/mobile/src/components/Calculator/Calculator.ui.json +31 -0
  1566. package/mobile/src/components/Calculator/CalculatorContent.ts +1 -1
  1567. package/mobile/src/components/CardTransfer/CardTransfer.example.json +7 -2
  1568. package/mobile/src/components/CardTransfer/CardTransfer.tsx +25 -24
  1569. package/mobile/src/components/CardTransfer/CardTransfer.ui.json +1 -0
  1570. package/mobile/src/components/CardTransfer/CardTransferContent.ts +2 -2
  1571. package/mobile/src/components/Catalog/Catalog.tsx +2 -2
  1572. package/mobile/src/components/Catalog/Catalog.ui.json +1 -0
  1573. package/mobile/src/components/Catalog/CatalogCard.tsx +1 -35
  1574. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +49 -120
  1575. package/mobile/src/components/ComparisonTable/ComparisonTable.ui.json +1 -0
  1576. package/mobile/src/components/ComparisonTable/TableColumn.tsx +25 -21
  1577. package/mobile/src/components/ContentPage/ContentPage.page.json +15 -1
  1578. package/mobile/src/components/ContentPage/ContentPageContext.tsx +0 -14
  1579. package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +1 -3
  1580. package/mobile/src/components/ErrorBlock/ErrorBlock.ui.json +12 -0
  1581. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +4 -3
  1582. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +1 -0
  1583. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +4 -4
  1584. package/mobile/src/components/Footer/Contacts.tsx +1 -0
  1585. package/mobile/src/components/Footer/Footer.ui.json +11 -0
  1586. package/mobile/src/components/Footer/FooterContent.ts +5 -10
  1587. package/mobile/src/components/Gallery/Gallery.tsx +15 -5
  1588. package/mobile/src/components/Gallery/Gallery.ui.json +1 -0
  1589. package/mobile/src/components/Gallery/GalleryCardInner.tsx +60 -44
  1590. package/mobile/src/components/Gallery/GalleryContainer.tsx +10 -2
  1591. package/mobile/src/components/Gallery/GalleryContent.ts +11 -3
  1592. package/mobile/src/components/GracePeriod/GracePeriod.tsx +5 -4
  1593. package/mobile/src/components/GracePeriod/GracePeriod.ui.json +15 -0
  1594. package/mobile/src/components/GracePeriod/GracePeriodContent.ts +1 -1
  1595. package/mobile/src/components/Header/Header.ui.json +11 -0
  1596. package/mobile/src/components/Header/HeaderSubMenu.tsx +2 -1
  1597. package/mobile/src/components/Headline/Headline.ui.json +1 -0
  1598. package/mobile/src/components/Headline/constants.ts +11 -1
  1599. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +15 -0
  1600. package/mobile/src/components/LinkDocs/LinkDocs.ui.json +1 -0
  1601. package/mobile/src/components/LinkList/LinkList.ui.json +1 -0
  1602. package/mobile/src/components/MiniGallery/MiniGallery.ui.json +1 -0
  1603. package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +1 -0
  1604. package/mobile/src/components/MobileAppTile/MobileAppTile.ui.json +7 -0
  1605. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.ui.json +11 -0
  1606. package/mobile/src/components/OtherProducts/OtherProducts.ui.json +76 -0
  1607. package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +18 -9
  1608. package/mobile/src/components/PictureText/PictureText.ui.json +1 -0
  1609. package/mobile/src/components/Placeholder/Placeholder.ui.json +1 -0
  1610. package/mobile/src/components/ProductBlock/ProductBlock.ui.json +12 -0
  1611. package/mobile/src/components/ProductGallery/ProductGallery.ui.json +30 -0
  1612. package/mobile/src/components/ProductTile/ProductTile.tsx +3 -3
  1613. package/mobile/src/components/ProductTile/ProductTile.ui.json +1 -0
  1614. package/mobile/src/components/PromoTile/PromoTile.ui.json +1 -0
  1615. package/mobile/src/components/Recommendation/Recommendation.ui.json +11 -0
  1616. package/mobile/src/components/Recommendation/RecommendationContent.ts +5 -0
  1617. package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +5 -5
  1618. package/mobile/src/components/SafeDepositRental/SafeBoxCases.tsx +1 -1
  1619. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +35 -8
  1620. package/mobile/src/components/SafeDepositRental/SafeDepositRental.ui.json +1 -0
  1621. package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +13 -21
  1622. package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +21 -49
  1623. package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +3 -3
  1624. package/mobile/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +0 -3
  1625. package/mobile/src/components/SafeDepositRental/WrapperSelect.tsx +15 -20
  1626. package/mobile/src/components/SafeDepositRental/utils.ts +1 -1
  1627. package/mobile/src/components/StepsBlock/StepsBlock.ui.json +19 -0
  1628. package/mobile/src/components/StepsBlock/StepsBlockContent.ts +9 -2
  1629. package/mobile/src/components/StepsBlock/StepsBlockStyleMaps.ts +3 -0
  1630. package/mobile/src/components/StepsBlock/renderItems.tsx +17 -0
  1631. package/mobile/src/components/Tabs/Tabs.tsx +25 -3
  1632. package/mobile/src/components/Tabs/Tabs.ui.json +1 -0
  1633. package/mobile/src/components/Tabs/TabsContent.ts +2 -0
  1634. package/mobile/src/components/Tabs/renderLinkTab.tsx +28 -12
  1635. package/mobile/src/components/Tabs/renderTab.tsx +13 -2
  1636. package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +4 -8
  1637. package/mobile/src/components/TariffsTable/TariffsTable.ui.json +33 -0
  1638. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
  1639. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -4
  1640. package/mobile/src/components/TariffsTable/{dataFixture.ts → dataFixture.tsx} +3 -2
  1641. package/mobile/src/components/TariffsTable/utils/getButtonAriaLabel.ts +1 -3
  1642. package/mobile/src/components/TextBlock/TextBlock.ui.json +1 -0
  1643. package/mobile/src/components/Tile/Tile.tsx +3 -5
  1644. package/mobile/src/components/Tile/Tile.ui.json +1 -0
  1645. package/mobile/src/hooks/useOutsideClick.ts +25 -0
  1646. package/mobile/src/hooks/{useFetchSafeBoxes.ts → useSafeBoxes.ts} +7 -8
  1647. package/mobile/src/icons/IconName.ts +3 -3
  1648. package/mobile/src/model/HeadlineType.ts +10 -0
  1649. package/mobile/src/model/Picture.ts +1 -0
  1650. package/mobile/src/react/setup-fixture.ts +0 -2
  1651. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +5 -5
  1652. package/mobile/src/ui-kit/BlockWrapper.tsx +46 -23
  1653. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
  1654. package/mobile/src/ui-kit/Button/Button.tsx +1 -1
  1655. package/mobile/src/ui-kit/Button/ButtonInner.tsx +4 -3
  1656. package/mobile/src/ui-kit/Button/ButtonProps.ts +1 -7
  1657. package/mobile/src/ui-kit/Button/ButtonSection.tsx +19 -41
  1658. package/mobile/src/ui-kit/Button/buttonClassNameConstants.ts +7 -0
  1659. package/mobile/src/ui-kit/CurrencyInput/CurrencyInput.tsx +36 -35
  1660. package/mobile/src/ui-kit/CurrencyInput/CurrencyInputProps.ts +3 -7
  1661. package/mobile/src/ui-kit/CurrencyInput/adjustValue .ts +28 -0
  1662. package/mobile/src/ui-kit/Foldable/DefaultButton.tsx +27 -0
  1663. package/mobile/src/ui-kit/Foldable/FoldButtonProps.ts +13 -0
  1664. package/mobile/src/ui-kit/Foldable/Foldable.tsx +66 -70
  1665. package/mobile/src/ui-kit/Icon/Icon.tsx +5 -6
  1666. package/mobile/src/ui-kit/Icon/IconProps.ts +0 -1
  1667. package/mobile/src/ui-kit/Img/Img.tsx +1 -13
  1668. package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +1 -1
  1669. package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +14 -5
  1670. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
  1671. package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +4 -3
  1672. package/mobile/src/ui-kit/Input/Input.tsx +53 -16
  1673. package/mobile/src/ui-kit/Input/InputProps.ts +8 -3
  1674. package/mobile/src/ui-kit/InputRange/InputRange.tsx +2 -3
  1675. package/mobile/src/ui-kit/IntersectionObserverTag.tsx +49 -0
  1676. package/mobile/src/ui-kit/List/List.tsx +29 -18
  1677. package/mobile/src/ui-kit/List/ListItem.tsx +14 -26
  1678. package/mobile/src/ui-kit/List/ListProps.ts +5 -3
  1679. package/mobile/src/ui-kit/Radio/Radio.tsx +3 -2
  1680. package/mobile/src/ui-kit/Select/Select.tsx +91 -20
  1681. package/mobile/src/utils/changeHashOnObserve.ts +30 -10
  1682. package/mobile/src/utils/getSanitizedValue.ts +1 -0
  1683. package/package.json +7 -4
  1684. package/src/EventBus/EventMap.ts +3 -1
  1685. package/src/components/Accordion/Accordion.ui.json +79 -0
  1686. package/src/components/Accordion/AccordionItem.mobile.tsx +50 -26
  1687. package/src/components/Accordion/AccordionItem.tsx +38 -27
  1688. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +4 -4
  1689. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  1690. package/src/components/BenefitsBlock/BenefitsBlock.ui.json +16 -0
  1691. package/src/components/Blocks.mobile.ts +0 -2
  1692. package/src/components/Bonus/Bonus.example.json +5 -2
  1693. package/src/components/Bonus/Bonus.fixture.tsx +37 -6
  1694. package/src/components/Bonus/Bonus.tsx +44 -16
  1695. package/src/components/Bonus/Bonus.ui.json +16 -0
  1696. package/src/components/Bonus/BonusContent.ts +33 -2
  1697. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
  1698. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.ui.json +11 -0
  1699. package/src/components/Calculator/Calculator.example.json +2 -1
  1700. package/src/components/Calculator/Calculator.ui.json +31 -0
  1701. package/src/components/Calculator/CalculatorContent.ts +1 -1
  1702. package/src/components/CardTransfer/CardTransfer.example.json +7 -2
  1703. package/src/components/CardTransfer/CardTransfer.fixture.tsx +9 -1
  1704. package/src/components/CardTransfer/CardTransfer.tsx +25 -24
  1705. package/src/components/CardTransfer/CardTransfer.ui.json +1 -0
  1706. package/src/components/CardTransfer/CardTransferContent.ts +2 -2
  1707. package/src/components/Catalog/Catalog.fixture.tsx +10 -3
  1708. package/src/components/Catalog/Catalog.tsx +2 -2
  1709. package/src/components/Catalog/Catalog.ui.json +1 -0
  1710. package/src/components/Catalog/CatalogCard.tsx +1 -35
  1711. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +49 -120
  1712. package/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
  1713. package/src/components/ComparisonTable/ComparisonTable.ui.json +1 -0
  1714. package/src/components/ComparisonTable/TableCell.tsx +2 -2
  1715. package/src/components/ComparisonTable/TableColumn.tsx +25 -21
  1716. package/src/components/ContentPage/ContentPage.page.json +15 -1
  1717. package/src/components/ContentPage/ContentPageContext.tsx +0 -14
  1718. package/src/components/ErrorBlock/ErrorBlock.tsx +1 -3
  1719. package/src/components/ErrorBlock/ErrorBlock.ui.json +12 -0
  1720. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +4 -3
  1721. package/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +1 -0
  1722. package/src/components/ExchangeRateTile/renderInput.tsx +4 -4
  1723. package/src/components/Footer/Contacts.tsx +1 -0
  1724. package/src/components/Footer/Footer.ui.json +11 -0
  1725. package/src/components/Footer/FooterContent.ts +5 -10
  1726. package/src/components/Gallery/Gallery.fixture.tsx +2 -2
  1727. package/src/components/Gallery/Gallery.mobile.tsx +15 -5
  1728. package/src/components/Gallery/Gallery.ui.json +1 -0
  1729. package/src/components/Gallery/GalleryCardInner.tsx +60 -44
  1730. package/src/components/Gallery/GalleryContainer.tsx +10 -2
  1731. package/src/components/Gallery/GalleryContent.ts +11 -3
  1732. package/src/components/GracePeriod/GracePeriod.fixture.tsx +5 -5
  1733. package/src/components/GracePeriod/GracePeriod.tsx +5 -4
  1734. package/src/components/GracePeriod/GracePeriod.ui.json +15 -0
  1735. package/src/components/GracePeriod/GracePeriodContent.ts +1 -1
  1736. package/src/components/Header/Header.ui.json +11 -0
  1737. package/src/components/Header/HeaderSubMenu.tsx +2 -1
  1738. package/src/components/Headline/Headline.ui.json +1 -0
  1739. package/src/components/Headline/constants.ts +11 -1
  1740. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +15 -0
  1741. package/src/components/LinkDocs/LinkDocs.ui.json +1 -0
  1742. package/src/components/LinkList/LinkList.ui.json +1 -0
  1743. package/src/components/MiniGallery/MiniGallery.fixture.tsx +45 -0
  1744. package/src/components/MiniGallery/MiniGallery.ui.json +1 -0
  1745. package/src/components/MiniGallery/MiniGalleryContent.ts +1 -0
  1746. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +14 -4
  1747. package/src/components/MobileAppTile/MobileAppTile.tsx +5 -8
  1748. package/src/components/MobileAppTile/MobileAppTile.ui.json +7 -0
  1749. package/src/components/OfficeServicesBlock/OfficeServicesBlock.ui.json +11 -0
  1750. package/src/components/OtherProducts/OtherProducts.ui.json +76 -0
  1751. package/src/components/OtherProducts/OtherProductsItem.tsx +18 -9
  1752. package/src/components/PictureText/PictureText.ui.json +1 -0
  1753. package/src/components/Placeholder/Placeholder.ui.json +1 -0
  1754. package/src/components/ProductBlock/ProductBlock.ui.json +12 -0
  1755. package/src/components/ProductGallery/ProductGallery.tsx +2 -2
  1756. package/src/components/ProductGallery/ProductGallery.ui.json +30 -0
  1757. package/src/components/ProductTile/ProductTile.tsx +3 -3
  1758. package/src/components/ProductTile/ProductTile.ui.json +1 -0
  1759. package/src/components/PromoTile/PromoTile.ui.json +1 -0
  1760. package/src/components/Recommendation/Recommendation.ui.json +11 -0
  1761. package/src/components/Recommendation/RecommendationContent.ts +5 -0
  1762. package/src/components/SafeDepositRental/RegionsAndBranches.tsx +5 -5
  1763. package/src/components/SafeDepositRental/SafeBoxCases.tsx +1 -1
  1764. package/src/components/SafeDepositRental/SafeDepositRental.tsx +35 -8
  1765. package/src/components/SafeDepositRental/SafeDepositRental.ui.json +1 -0
  1766. package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +13 -21
  1767. package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +21 -49
  1768. package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +3 -3
  1769. package/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +0 -3
  1770. package/src/components/SafeDepositRental/WrapperSelect.tsx +15 -20
  1771. package/src/components/SafeDepositRental/utils.ts +1 -1
  1772. package/src/components/StepsBlock/StepsBlock.fixture.tsx +31 -3
  1773. package/src/components/StepsBlock/StepsBlock.tsx +11 -6
  1774. package/src/components/StepsBlock/StepsBlock.ui.json +19 -0
  1775. package/src/components/StepsBlock/StepsBlockContent.ts +9 -2
  1776. package/src/components/StepsBlock/StepsBlockStyleMaps.ts +3 -0
  1777. package/src/components/StepsBlock/renderItems.tsx +17 -0
  1778. package/src/components/Tabs/Tabs.tsx +25 -3
  1779. package/src/components/Tabs/Tabs.ui.json +1 -0
  1780. package/src/components/Tabs/TabsContent.ts +2 -0
  1781. package/src/components/Tabs/renderLinkTab.tsx +28 -12
  1782. package/src/components/Tabs/renderTab.tsx +13 -2
  1783. package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +4 -8
  1784. package/src/components/TariffsTable/EmbeddableCellData.tsx +5 -10
  1785. package/src/components/TariffsTable/TariffsTable.tsx +3 -5
  1786. package/src/components/TariffsTable/TariffsTable.ui.json +33 -0
  1787. package/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
  1788. package/src/components/TariffsTable/TariffsTableRow.tsx +1 -4
  1789. package/src/components/TariffsTable/{dataFixture.ts → dataFixture.tsx} +3 -2
  1790. package/src/components/TariffsTable/utils/getButtonAriaLabel.ts +1 -3
  1791. package/src/components/TextBlock/TextBlock.ui.json +1 -0
  1792. package/src/components/Tile/Tile.tsx +3 -5
  1793. package/src/components/Tile/Tile.ui.json +1 -0
  1794. package/src/hooks/useOutsideClick.ts +25 -0
  1795. package/src/hooks/{useFetchSafeBoxes.ts → useSafeBoxes.ts} +7 -8
  1796. package/src/icons/IconName.ts +34 -92
  1797. package/src/model/HeadlineType.ts +10 -0
  1798. package/src/model/Picture.ts +1 -0
  1799. package/src/react/setup-fixture.ts +0 -2
  1800. package/src/ui-kit/BenefitItem/BenefitItem.tsx +5 -5
  1801. package/src/ui-kit/BlockWrapper.tsx +46 -23
  1802. package/src/ui-kit/BlocksList/renderBlocksList.tsx +1 -1
  1803. package/src/ui-kit/Button/Button.mobile.tsx +1 -1
  1804. package/src/ui-kit/Button/Button.tsx +55 -27
  1805. package/src/ui-kit/Button/ButtonInner.tsx +4 -3
  1806. package/src/ui-kit/Button/ButtonProps.ts +1 -7
  1807. package/src/ui-kit/Button/ButtonSection.tsx +19 -41
  1808. package/src/ui-kit/Button/buttonClassNameConstants.ts +7 -0
  1809. package/src/ui-kit/CurrencyInput/CurrencyInput.tsx +36 -35
  1810. package/src/ui-kit/CurrencyInput/CurrencyInputProps.ts +3 -7
  1811. package/src/ui-kit/CurrencyInput/adjustValue .ts +28 -0
  1812. package/src/ui-kit/Foldable/DefaultButton.tsx +27 -0
  1813. package/src/ui-kit/Foldable/FoldButtonProps.ts +13 -0
  1814. package/src/ui-kit/Foldable/Foldable.tsx +66 -70
  1815. package/src/ui-kit/Icon/Icon.tsx +5 -6
  1816. package/src/ui-kit/Icon/IconProps.ts +0 -1
  1817. package/src/ui-kit/Img/Img.mobile.tsx +1 -13
  1818. package/src/ui-kit/Img/Img.tsx +1 -17
  1819. package/src/ui-kit/InnerTable/InnerTableBody.tsx +1 -1
  1820. package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +14 -5
  1821. package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
  1822. package/src/ui-kit/InnerTable/InnerTableHeader.tsx +4 -3
  1823. package/src/ui-kit/Input/Input.tsx +53 -16
  1824. package/src/ui-kit/Input/InputProps.ts +8 -3
  1825. package/src/ui-kit/InputRange/InputRange.tsx +2 -3
  1826. package/src/ui-kit/IntersectionObserverTag.tsx +49 -0
  1827. package/src/ui-kit/List/List.fixture.tsx +1 -21
  1828. package/src/ui-kit/List/List.tsx +29 -18
  1829. package/src/ui-kit/List/ListItem.tsx +14 -26
  1830. package/src/ui-kit/List/ListProps.ts +5 -3
  1831. package/src/ui-kit/Radio/Radio.tsx +3 -2
  1832. package/src/ui-kit/{SelectCustom/SelectCustom.fixture.tsx → Select/Select.fixture.tsx} +2 -2
  1833. package/src/ui-kit/Select/Select.tsx +91 -20
  1834. package/src/utils/changeHashOnObserve.ts +30 -10
  1835. package/src/utils/getSanitizedValue.ts +1 -0
  1836. package/tailwind.config.cjs +1 -1
  1837. package/bin/migration-scripts/0.4.5.spec.ts +0 -352
  1838. package/dist/components/Accordion/AccordionItemInner.d.ts +0 -2
  1839. package/dist/components/Accordion/AccordionItemInner.js +0 -9
  1840. package/dist/components/Accordion/AccordionItemInner.js.map +0 -1
  1841. package/dist/components/Accordion/AccordionItemInner.mobile.d.ts +0 -2
  1842. package/dist/components/Accordion/AccordionItemInner.mobile.js +0 -9
  1843. package/dist/components/Accordion/AccordionItemInner.mobile.js.map +0 -1
  1844. package/dist/components/Accordion/useActiveHandler.d.ts +0 -7
  1845. package/dist/components/Accordion/useActiveHandler.js +0 -22
  1846. package/dist/components/Accordion/useActiveHandler.js.map +0 -1
  1847. package/dist/components/ExchangeRateTile/renderButton.d.ts +0 -3
  1848. package/dist/components/ExchangeRateTile/renderButton.js +0 -9
  1849. package/dist/components/ExchangeRateTile/renderButton.js.map +0 -1
  1850. package/dist/hooks/useFetchSafeBoxes.js.map +0 -1
  1851. package/dist/react/IntersectionObserverTag.d.ts +0 -2
  1852. package/dist/react/IntersectionObserverTag.js +0 -39
  1853. package/dist/react/IntersectionObserverTag.js.map +0 -1
  1854. package/dist/ui-kit/Foldable/useActiveHandler.d.ts +0 -9
  1855. package/dist/ui-kit/Foldable/useActiveHandler.js +0 -23
  1856. package/dist/ui-kit/Foldable/useActiveHandler.js.map +0 -1
  1857. package/dist/ui-kit/Select/SelectOption.d.ts +0 -7
  1858. package/dist/ui-kit/Select/SelectOption.js +0 -8
  1859. package/dist/ui-kit/Select/SelectOption.js.map +0 -1
  1860. package/dist/ui-kit/SelectCustom/SelectCustom.js +0 -30
  1861. package/dist/ui-kit/SelectCustom/SelectCustom.js.map +0 -1
  1862. package/lib/components/Accordion/AccordionItemInner.d.ts +0 -2
  1863. package/lib/components/Accordion/AccordionItemInner.js +0 -7
  1864. package/lib/components/Accordion/AccordionItemInner.js.map +0 -1
  1865. package/lib/components/Accordion/AccordionItemInner.mobile.d.ts +0 -2
  1866. package/lib/components/Accordion/AccordionItemInner.mobile.js +0 -7
  1867. package/lib/components/Accordion/AccordionItemInner.mobile.js.map +0 -1
  1868. package/lib/components/Accordion/useActiveHandler.d.ts +0 -7
  1869. package/lib/components/Accordion/useActiveHandler.js +0 -19
  1870. package/lib/components/Accordion/useActiveHandler.js.map +0 -1
  1871. package/lib/components/ExchangeRateTile/renderButton.d.ts +0 -3
  1872. package/lib/components/ExchangeRateTile/renderButton.js +0 -6
  1873. package/lib/components/ExchangeRateTile/renderButton.js.map +0 -1
  1874. package/lib/hooks/useFetchSafeBoxes.js.map +0 -1
  1875. package/lib/react/IntersectionObserverTag.d.ts +0 -2
  1876. package/lib/react/IntersectionObserverTag.js +0 -13
  1877. package/lib/react/IntersectionObserverTag.js.map +0 -1
  1878. package/lib/ui-kit/Foldable/useActiveHandler.d.ts +0 -9
  1879. package/lib/ui-kit/Foldable/useActiveHandler.js +0 -20
  1880. package/lib/ui-kit/Foldable/useActiveHandler.js.map +0 -1
  1881. package/lib/ui-kit/Select/SelectOption.d.ts +0 -7
  1882. package/lib/ui-kit/Select/SelectOption.js +0 -6
  1883. package/lib/ui-kit/Select/SelectOption.js.map +0 -1
  1884. package/lib/ui-kit/SelectCustom/SelectCustom.d.ts +0 -13
  1885. package/lib/ui-kit/SelectCustom/SelectCustom.js +0 -28
  1886. package/lib/ui-kit/SelectCustom/SelectCustom.js.map +0 -1
  1887. package/mobile/dist/components/Accordion/AccordionItemInner.d.ts +0 -2
  1888. package/mobile/dist/components/Accordion/AccordionItemInner.js +0 -9
  1889. package/mobile/dist/components/Accordion/AccordionItemInner.js.map +0 -1
  1890. package/mobile/dist/components/Accordion/useActiveHandler.d.ts +0 -7
  1891. package/mobile/dist/components/Accordion/useActiveHandler.js +0 -22
  1892. package/mobile/dist/components/Accordion/useActiveHandler.js.map +0 -1
  1893. package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +0 -3
  1894. package/mobile/dist/components/ExchangeRateTile/renderButton.js +0 -9
  1895. package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +0 -1
  1896. package/mobile/dist/hooks/useFetchSafeBoxes.js.map +0 -1
  1897. package/mobile/dist/react/IntersectionObserverTag.d.ts +0 -2
  1898. package/mobile/dist/react/IntersectionObserverTag.js +0 -39
  1899. package/mobile/dist/react/IntersectionObserverTag.js.map +0 -1
  1900. package/mobile/dist/ui-kit/Foldable/useActiveHandler.d.ts +0 -9
  1901. package/mobile/dist/ui-kit/Foldable/useActiveHandler.js +0 -23
  1902. package/mobile/dist/ui-kit/Foldable/useActiveHandler.js.map +0 -1
  1903. package/mobile/dist/ui-kit/Select/SelectOption.d.ts +0 -7
  1904. package/mobile/dist/ui-kit/Select/SelectOption.js +0 -8
  1905. package/mobile/dist/ui-kit/Select/SelectOption.js.map +0 -1
  1906. package/mobile/dist/ui-kit/SelectCustom/SelectCustom.js +0 -30
  1907. package/mobile/dist/ui-kit/SelectCustom/SelectCustom.js.map +0 -1
  1908. package/mobile/lib/components/Accordion/AccordionItemInner.d.ts +0 -2
  1909. package/mobile/lib/components/Accordion/AccordionItemInner.js +0 -7
  1910. package/mobile/lib/components/Accordion/AccordionItemInner.js.map +0 -1
  1911. package/mobile/lib/components/Accordion/useActiveHandler.d.ts +0 -7
  1912. package/mobile/lib/components/Accordion/useActiveHandler.js +0 -19
  1913. package/mobile/lib/components/Accordion/useActiveHandler.js.map +0 -1
  1914. package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +0 -3
  1915. package/mobile/lib/components/ExchangeRateTile/renderButton.js +0 -6
  1916. package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +0 -1
  1917. package/mobile/lib/hooks/useFetchSafeBoxes.js.map +0 -1
  1918. package/mobile/lib/react/IntersectionObserverTag.d.ts +0 -2
  1919. package/mobile/lib/react/IntersectionObserverTag.js +0 -13
  1920. package/mobile/lib/react/IntersectionObserverTag.js.map +0 -1
  1921. package/mobile/lib/ui-kit/Foldable/useActiveHandler.d.ts +0 -9
  1922. package/mobile/lib/ui-kit/Foldable/useActiveHandler.js +0 -20
  1923. package/mobile/lib/ui-kit/Foldable/useActiveHandler.js.map +0 -1
  1924. package/mobile/lib/ui-kit/Select/SelectOption.d.ts +0 -7
  1925. package/mobile/lib/ui-kit/Select/SelectOption.js +0 -6
  1926. package/mobile/lib/ui-kit/Select/SelectOption.js.map +0 -1
  1927. package/mobile/lib/ui-kit/SelectCustom/SelectCustom.d.ts +0 -13
  1928. package/mobile/lib/ui-kit/SelectCustom/SelectCustom.js +0 -28
  1929. package/mobile/lib/ui-kit/SelectCustom/SelectCustom.js.map +0 -1
  1930. package/mobile/src/components/Accordion/AccordionItemInner.tsx +0 -11
  1931. package/mobile/src/components/Accordion/useActiveHandler.ts +0 -25
  1932. package/mobile/src/components/Blocks.spec.tsx +0 -66
  1933. package/mobile/src/components/ContentPage/computeAPIFallback.spec.ts +0 -63
  1934. package/mobile/src/components/ContentPage/normalizeBlock.spec.ts +0 -50
  1935. package/mobile/src/components/ExchangeRateTile/renderButton.tsx +0 -10
  1936. package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +0 -1206
  1937. package/mobile/src/content-page-repository/mapJSON.spec.ts +0 -28
  1938. package/mobile/src/react/IntersectionObserverTag.tsx +0 -26
  1939. package/mobile/src/services/sitemap/checkIsHrefSameOrigin.spec.ts +0 -20
  1940. package/mobile/src/services/sitemap/isTopItemActive.spec.ts +0 -60
  1941. package/mobile/src/services/sitemap/mergeTopItems.spec.ts +0 -20
  1942. package/mobile/src/ui-kit/Foldable/useActiveHandler.ts +0 -33
  1943. package/mobile/src/ui-kit/Select/SelectOption.tsx +0 -18
  1944. package/mobile/src/ui-kit/SelectCustom/SelectCustom.tsx +0 -91
  1945. package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.spec.ts +0 -19
  1946. package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +0 -42
  1947. package/mobile/src/utils/adjustHref.spec.ts +0 -25
  1948. package/mobile/src/utils/maxBy.spec.ts +0 -11
  1949. package/mobile/src/utils/url.spec.ts +0 -17
  1950. package/src/components/Accordion/AccordionItemInner.mobile.tsx +0 -11
  1951. package/src/components/Accordion/AccordionItemInner.tsx +0 -11
  1952. package/src/components/Accordion/useActiveHandler.ts +0 -25
  1953. package/src/components/Blocks.spec.tsx +0 -66
  1954. package/src/components/ContentPage/computeAPIFallback.spec.ts +0 -63
  1955. package/src/components/ContentPage/normalizeBlock.mobile.spec.ts +0 -71
  1956. package/src/components/ContentPage/normalizeBlock.spec.ts +0 -50
  1957. package/src/components/ExchangeRateTile/renderButton.tsx +0 -10
  1958. package/src/components/__snapshots__/Blocks.spec.tsx.snap +0 -1206
  1959. package/src/content-page-repository/mapJSON.spec.ts +0 -28
  1960. package/src/react/IntersectionObserverTag.tsx +0 -26
  1961. package/src/services/sitemap/checkIsHrefSameOrigin.spec.ts +0 -20
  1962. package/src/services/sitemap/isTopItemActive.spec.ts +0 -60
  1963. package/src/services/sitemap/mergeTopItems.spec.ts +0 -20
  1964. package/src/ui-kit/Foldable/useActiveHandler.ts +0 -33
  1965. package/src/ui-kit/Select/SelectOption.tsx +0 -18
  1966. package/src/ui-kit/SelectCustom/SelectCustom.tsx +0 -91
  1967. package/src/ui-kit/SwipeListControl/utils/getIndexParts.spec.ts +0 -19
  1968. package/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +0 -42
  1969. package/src/utils/adjustHref.spec.ts +0 -25
  1970. package/src/utils/maxBy.spec.ts +0 -11
  1971. package/src/utils/url.spec.ts +0 -17
@@ -255,34 +255,81 @@
255
255
  }
256
256
  }
257
257
 
258
- const changeHashOnObserve = (entries) => {
259
- if (!entries.length) {
258
+ const changeHashOnObserve = ({ anchor, anchorClickRef }) => (entries) => {
259
+ if (!entries?.length) {
260
260
  return;
261
261
  }
262
262
  const [entry] = entries;
263
- if (entry.isIntersecting) ;
263
+ if (!entry.isIntersecting || entry.boundingClientRect.top > 150) {
264
+ return;
265
+ }
266
+ if (anchorClickRef?.current?.isScrolling && anchorClickRef.current.label === `#${anchor}`) {
267
+ EventBus.inst.fire('anchorClick', { isScrolling: false, label: undefined });
268
+ EventBus.inst.fire('tab', { type: 'link', label: anchor });
269
+ }
270
+ else if (!anchorClickRef?.current?.isScrolling) {
271
+ EventBus.inst.fire('tab', { type: 'link', label: anchor });
272
+ }
264
273
  };
265
274
 
266
- const BlockWrapper = JSX(({ anchor, className, context, children, tag = 'section', labels }) => {
267
- const Tag = tag;
268
- const { IntersectionObserverTag } = context;
269
- const [shouldRenderBlock, setShouldRenderBlock] = useState(true);
270
- useEffect(() => EventBus.inst.subscribe('tab', (event) => {
271
- if (event.type === 'group') {
272
- setShouldRenderBlock(!labels?.length || !event.label || labels.includes(event.label));
275
+ const IntersectionObserverTag = JSX((props) => {
276
+ const { tag = 'section', observerCallback, observerOptions, className = '', anchor = null, children, } = props;
277
+ const intersectionObserver = useRef(null);
278
+ const ref = useCallback((element) => {
279
+ if (!element) {
280
+ return;
273
281
  }
274
- else {
275
- setShouldRenderBlock(true);
276
- scrollToBlock(event.label);
282
+ if (intersectionObserver.current) {
283
+ intersectionObserver.current.disconnect();
277
284
  }
278
- }), [labels]);
285
+ intersectionObserver.current = new IntersectionObserver(observerCallback, observerOptions);
286
+ intersectionObserver.current.observe(element);
287
+ }, [observerCallback, observerOptions]);
288
+ const Tag = tag;
289
+ return (jsx(Tag, { ref: ref, className: className, id: anchor, children: children }));
290
+ });
291
+
292
+ const THRESHOLD_ACCURACY = 100; // Decimals number (100 is for two decimals number, 0.**)
293
+ const THRESHOLD_ARRAY_LENGTH = 18;
294
+ const THRESHOLD_ARRAY_START_VALUE = (THRESHOLD_ACCURACY - THRESHOLD_ARRAY_LENGTH) / THRESHOLD_ACCURACY;
295
+ const BlockWrapper = JSX(({ anchor, className, children, tag = 'section', labels }) => {
296
+ const Tag = tag;
297
+ const [shouldRenderBlock, setShouldRenderBlock] = useState(true);
298
+ const anchorClickRef = useRef({});
299
+ const observerCallback = useMemo(() => changeHashOnObserve({ anchor, anchorClickRef }), [anchor]);
300
+ useEffect(() => {
301
+ const anchorClickCleanup = EventBus.inst.subscribe('anchorClick', (e) => {
302
+ anchorClickRef.current = e;
303
+ });
304
+ const tabCleanup = EventBus.inst.subscribe('tab', (event) => {
305
+ if (event.type === 'group') {
306
+ setShouldRenderBlock(!labels?.length || !event.label || labels.includes(event.label));
307
+ }
308
+ else {
309
+ changeHash(event.label);
310
+ setShouldRenderBlock(true);
311
+ }
312
+ });
313
+ return () => {
314
+ anchorClickCleanup();
315
+ tabCleanup();
316
+ };
317
+ }, []);
279
318
  if (!shouldRenderBlock) {
280
319
  return null;
281
320
  }
282
- return anchor ? (jsx(IntersectionObserverTag, { tag: tag, className: className, observerCallback: changeHashOnObserve, observerOptions: { threshold: 1 }, anchor: anchor, children: children })) : (jsx(Tag, { className: className, children: children }));
321
+ return anchor ? (jsx(IntersectionObserverTag, { tag: tag, className: className, observerCallback: observerCallback, observerOptions: {
322
+ threshold: new Array(THRESHOLD_ARRAY_LENGTH).fill(0).map(getIntersectionThreshold),
323
+ }, anchor: anchor, children: children })) : (jsx(Tag, { className: className, children: children }));
283
324
  });
284
- function scrollToBlock(label) {
285
- setTimeout(() => globalThis.document.getElementById(`#${label}`)?.scrollIntoView({ behavior: 'smooth' }));
325
+ function getIntersectionThreshold(_, i) {
326
+ const value = (i + 1) / THRESHOLD_ACCURACY + THRESHOLD_ARRAY_START_VALUE;
327
+ return Math.round(value * THRESHOLD_ACCURACY) / THRESHOLD_ACCURACY;
328
+ }
329
+ function changeHash(label) {
330
+ if (label) {
331
+ globalThis.document.location.hash = label;
332
+ }
286
333
  }
287
334
 
288
335
  const HEADING_STYLE_MAP = {
@@ -299,270 +346,6 @@
299
346
  return (jsx(Tag, { className: `font-sans m-0 ${HEADING_STYLE_MAP[headingType]} ${className}`, children: title }));
300
347
  });
301
348
 
302
- // Generated. Do not touch
303
- /* eslint-disable max-len, max-lines */
304
- const IconInverseMap = {
305
- ActualBalanceIcon: false, AirPlaneIcon: false, AppleIcon: true, ArrowDownIcon: true, ArrowLeftIcon: true, ArrowUpIcon: true, AtmIcon: true, BankIcon: true, BuildingIcon: true, BurgerIcon: true, Calendar2Icon: true, CalendarCircleIcon: true, CalendarIcon: true, CalendarTickIcon: true, Car2Icon: true, CardIcon: true, CardPosIcon: true, CardTickIcon: true, CardWithGemIcon: false, CarIcon: false, ChartSquareIcon: true, CinemaIcon: false, ClockIcon: false, CloseIcon: true, ComfortableCompIcon: false, CreditCardsIcon: false, DiscountShapeIcon: true, DocDownloadIcon: true, DocIcon: true, DocIconMonoColor: true, DocsIcon: false, DocumentTextIcon: true, DollarIcon: false, DoneIcon: false, DoneSimpleIcon: true, EarthIcon: false, EmptyWalletChangeIcon: true, EmptyWalletIcon: true, EuroIcon: false, GeolocationIcon: true, GlassIcon: false, GlobalIcon: true, GpsIcon: true, GridIcon: true, InterestGrowthIcon: false, InterestIcon: true, JCBIcon: false, LogoIcon: true, LoupeIcon: true, MapMarkerClusterIcon: false, MapMarkerSingleIcon: false, MasterCardIcon: false, MinusIcon: true, MirIcon: false, MoneyIcon: true, MoneyInsuranceIcon: false, MoneysIcon: true, MonitorMobileIcon: true, NewDocIcon: false, OfficeIcon: false, OkIcon: true, PackA4Icon: false, PassSendIcon: false, PercentageRoundIcon: true, PercentageSquareIcon: true, PersonalCardIcon: true, PlayMarketIcon: true, PlusIcon: true, PowerIcon: false, Profile2UserIcon: true, ProfileIcon: true, PumpkinIcon: false, RoundRubleIcon: true, SafeIcon: true, ShieldTickIcon: true, SignDocsIcon: false, SmallClockIcon: true, SoundIcon: false, StrongBoxIcon: true, TelegramIcon: true, UnionPayIcon: false, UserSquareIcon: true, UserTickIcon: true, VisaIcon: false, VKIcon: true, WalletAdd2Icon: true, WalletAddIcon: true, WalletIcon: true, WalletWithMoneyIcon: true, WateringCanIcon: false
306
- };
307
- var IconMap;
308
- (function (IconMap) {
309
- IconMap["ActualBalanceIcon"] = "ActualBalanceIcon";
310
- IconMap["AirPlaneIcon"] = "AirPlaneIcon";
311
- IconMap["AppleIcon"] = "AppleIcon";
312
- IconMap["ArrowDownIcon"] = "ArrowDownIcon";
313
- IconMap["ArrowLeftIcon"] = "ArrowLeftIcon";
314
- IconMap["ArrowUpIcon"] = "ArrowUpIcon";
315
- IconMap["AtmIcon"] = "AtmIcon";
316
- IconMap["BankIcon"] = "BankIcon";
317
- IconMap["BuildingIcon"] = "BuildingIcon";
318
- IconMap["BurgerIcon"] = "BurgerIcon";
319
- IconMap["Calendar2Icon"] = "Calendar2Icon";
320
- IconMap["CalendarCircleIcon"] = "CalendarCircleIcon";
321
- IconMap["CalendarIcon"] = "CalendarIcon";
322
- IconMap["CalendarTickIcon"] = "CalendarTickIcon";
323
- IconMap["Car2Icon"] = "Car2Icon";
324
- IconMap["CardIcon"] = "CardIcon";
325
- IconMap["CardPosIcon"] = "CardPosIcon";
326
- IconMap["CardTickIcon"] = "CardTickIcon";
327
- IconMap["CardWithGemIcon"] = "CardWithGemIcon";
328
- IconMap["CarIcon"] = "CarIcon";
329
- IconMap["ChartSquareIcon"] = "ChartSquareIcon";
330
- IconMap["CinemaIcon"] = "CinemaIcon";
331
- IconMap["ClockIcon"] = "ClockIcon";
332
- IconMap["CloseIcon"] = "CloseIcon";
333
- IconMap["ComfortableCompIcon"] = "ComfortableCompIcon";
334
- IconMap["CreditCardsIcon"] = "CreditCardsIcon";
335
- IconMap["DiscountShapeIcon"] = "DiscountShapeIcon";
336
- IconMap["DocDownloadIcon"] = "DocDownloadIcon";
337
- IconMap["DocIcon"] = "DocIcon";
338
- IconMap["DocIconMonoColor"] = "DocIconMonoColor";
339
- IconMap["DocsIcon"] = "DocsIcon";
340
- IconMap["DocumentTextIcon"] = "DocumentTextIcon";
341
- IconMap["DollarIcon"] = "DollarIcon";
342
- IconMap["DoneIcon"] = "DoneIcon";
343
- IconMap["DoneSimpleIcon"] = "DoneSimpleIcon";
344
- IconMap["EarthIcon"] = "EarthIcon";
345
- IconMap["EmptyWalletChangeIcon"] = "EmptyWalletChangeIcon";
346
- IconMap["EmptyWalletIcon"] = "EmptyWalletIcon";
347
- IconMap["EuroIcon"] = "EuroIcon";
348
- IconMap["GeolocationIcon"] = "GeolocationIcon";
349
- IconMap["GlassIcon"] = "GlassIcon";
350
- IconMap["GlobalIcon"] = "GlobalIcon";
351
- IconMap["GpsIcon"] = "GpsIcon";
352
- IconMap["GridIcon"] = "GridIcon";
353
- IconMap["InterestGrowthIcon"] = "InterestGrowthIcon";
354
- IconMap["InterestIcon"] = "InterestIcon";
355
- IconMap["JCBIcon"] = "JCBIcon";
356
- IconMap["LogoIcon"] = "LogoIcon";
357
- IconMap["LoupeIcon"] = "LoupeIcon";
358
- IconMap["MapMarkerClusterIcon"] = "MapMarkerClusterIcon";
359
- IconMap["MapMarkerSingleIcon"] = "MapMarkerSingleIcon";
360
- IconMap["MasterCardIcon"] = "MasterCardIcon";
361
- IconMap["MinusIcon"] = "MinusIcon";
362
- IconMap["MirIcon"] = "MirIcon";
363
- IconMap["MoneyIcon"] = "MoneyIcon";
364
- IconMap["MoneyInsuranceIcon"] = "MoneyInsuranceIcon";
365
- IconMap["MoneysIcon"] = "MoneysIcon";
366
- IconMap["MonitorMobileIcon"] = "MonitorMobileIcon";
367
- IconMap["NewDocIcon"] = "NewDocIcon";
368
- IconMap["OfficeIcon"] = "OfficeIcon";
369
- IconMap["OkIcon"] = "OkIcon";
370
- IconMap["PackA4Icon"] = "PackA4Icon";
371
- IconMap["PassSendIcon"] = "PassSendIcon";
372
- IconMap["PercentageRoundIcon"] = "PercentageRoundIcon";
373
- IconMap["PercentageSquareIcon"] = "PercentageSquareIcon";
374
- IconMap["PersonalCardIcon"] = "PersonalCardIcon";
375
- IconMap["PlayMarketIcon"] = "PlayMarketIcon";
376
- IconMap["PlusIcon"] = "PlusIcon";
377
- IconMap["PowerIcon"] = "PowerIcon";
378
- IconMap["Profile2UserIcon"] = "Profile2UserIcon";
379
- IconMap["ProfileIcon"] = "ProfileIcon";
380
- IconMap["PumpkinIcon"] = "PumpkinIcon";
381
- IconMap["RoundRubleIcon"] = "RoundRubleIcon";
382
- IconMap["SafeIcon"] = "SafeIcon";
383
- IconMap["ShieldTickIcon"] = "ShieldTickIcon";
384
- IconMap["SignDocsIcon"] = "SignDocsIcon";
385
- IconMap["SmallClockIcon"] = "SmallClockIcon";
386
- IconMap["SoundIcon"] = "SoundIcon";
387
- IconMap["StrongBoxIcon"] = "StrongBoxIcon";
388
- IconMap["TelegramIcon"] = "TelegramIcon";
389
- IconMap["UnionPayIcon"] = "UnionPayIcon";
390
- IconMap["UserSquareIcon"] = "UserSquareIcon";
391
- IconMap["UserTickIcon"] = "UserTickIcon";
392
- IconMap["VisaIcon"] = "VisaIcon";
393
- IconMap["VKIcon"] = "VKIcon";
394
- IconMap["WalletAdd2Icon"] = "WalletAdd2Icon";
395
- IconMap["WalletAddIcon"] = "WalletAddIcon";
396
- IconMap["WalletIcon"] = "WalletIcon";
397
- IconMap["WalletWithMoneyIcon"] = "WalletWithMoneyIcon";
398
- IconMap["WateringCanIcon"] = "WateringCanIcon";
399
- })(IconMap || (IconMap = {}));
400
- var IconTitleMap;
401
- (function (IconTitleMap) {
402
- IconTitleMap["ActualBalanceIcon"] = "\u0414\u0435\u043D\u044C\u0433\u0438";
403
- IconTitleMap["AirPlaneIcon"] = "\u0421\u0430\u043C\u043E\u043B\u0451\u0442";
404
- IconTitleMap["AppleIcon"] = "\u041B\u043E\u0433\u043E \u00ABApple\u00BB";
405
- IconTitleMap["ArrowDownIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 '\u0412\u043D\u0438\u0437'";
406
- IconTitleMap["ArrowLeftIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430";
407
- IconTitleMap["ArrowUpIcon"] = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445";
408
- IconTitleMap["AtmIcon"] = "\u0411\u0430\u043D\u043A\u043E\u043C\u0430\u0442";
409
- IconTitleMap["BankIcon"] = "\u0411\u0430\u043D\u043A";
410
- IconTitleMap["BuildingIcon"] = "\u0417\u0434\u0430\u043D\u0438\u0435 \u0441 \u0434\u0435\u0440\u0435\u0432\u043E\u043C";
411
- IconTitleMap["BurgerIcon"] = "\u0411\u0443\u0440\u0433\u0435\u0440";
412
- IconTitleMap["Calendar2Icon"] = "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C 2";
413
- IconTitleMap["CalendarCircleIcon"] = "\u0421\u043A\u0440\u0443\u0433\u043B\u0451\u043D\u043D\u044B\u0439 \u043A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C";
414
- IconTitleMap["CalendarIcon"] = "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C";
415
- IconTitleMap["CalendarTickIcon"] = "\u041A\u0430\u043B\u0435\u043D\u0434\u0430\u0440\u044C \u0441 \u0433\u0430\u043B\u043E\u0447\u043A\u043E\u0439";
416
- IconTitleMap["Car2Icon"] = "\u041C\u0430\u0448\u0438\u043D\u04302";
417
- IconTitleMap["CardIcon"] = "\u041A\u0440\u0435\u0434. \u043A\u0430\u0440\u0442\u0430";
418
- IconTitleMap["CardPosIcon"] = "\u041A\u0440\u0435\u0434. \u043A\u0430\u0440\u0442\u0430 \u043F\u043E\u0434 \u043D\u0430\u043A\u043B\u043E\u043D\u043E\u043C";
419
- IconTitleMap["CardTickIcon"] = "\u041A\u0440\u0435\u0434. \u043A\u0430\u0440\u0442\u0430 \u0441 \u0433\u0430\u043B\u043E\u0447\u043A\u043E\u0439";
420
- IconTitleMap["CardWithGemIcon"] = "\u041A\u0430\u0440\u0442\u0430 \u0441 \u0434\u0440\u0430\u0433\u043E\u0446\u0435\u043D\u043D\u043E\u0441\u0442\u044F\u043C\u0438";
421
- IconTitleMap["CarIcon"] = "\u041C\u0430\u0448\u0438\u043D\u0430";
422
- IconTitleMap["ChartSquareIcon"] = "\u0414\u0435\u043D\u044C\u0433\u0438 \u0432\u043D\u0443\u0442\u0440\u0438 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430";
423
- IconTitleMap["CinemaIcon"] = "\u041A\u0438\u043D\u043E\u0442\u0435\u0430\u0442\u0440";
424
- IconTitleMap["ClockIcon"] = "\u0427\u0430\u0441\u044B";
425
- IconTitleMap["CloseIcon"] = "\u041A\u0440\u0435\u0441\u0442\u0438\u043A";
426
- IconTitleMap["ComfortableCompIcon"] = "\u041A\u0440\u0435\u0441\u043B\u043E";
427
- IconTitleMap["CreditCardsIcon"] = "\u041A\u0440\u0435\u0434\u0438\u0442\u043D\u044B\u0435 \u043A\u0430\u0440\u0442\u044B";
428
- IconTitleMap["DiscountShapeIcon"] = "\u0421\u043A\u0438\u0434\u043A\u0430";
429
- IconTitleMap["DocDownloadIcon"] = "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442";
430
- IconTitleMap["DocIcon"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442";
431
- IconTitleMap["DocIconMonoColor"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 (\u043E\u0434\u043D\u043E\u0446\u0432\u0435\u0442\u043D\u044B\u0439)";
432
- IconTitleMap["DocsIcon"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B";
433
- IconTitleMap["DocumentTextIcon"] = "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 \u0441 \u0442\u0435\u043A\u0441\u0442\u043E\u043C";
434
- IconTitleMap["DollarIcon"] = "\u0414\u043E\u043B\u043B\u0430\u0440";
435
- IconTitleMap["DoneIcon"] = "\u0417\u0435\u043B\u0451\u043D\u0430\u044F '\u0433\u0430\u043B\u043E\u0447\u043A\u0430' \u0432 \u043A\u0440\u0443\u0433\u0435";
436
- IconTitleMap["DoneSimpleIcon"] = "\u0417\u0435\u043B\u0451\u043D\u0430\u044F '\u0433\u0430\u043B\u043E\u0447\u043A\u0430'";
437
- IconTitleMap["EarthIcon"] = "\u0417\u0435\u043C\u043B\u044F";
438
- IconTitleMap["EmptyWalletChangeIcon"] = "\u041F\u0443\u0441\u0442\u043E\u0439 \u043A\u043E\u0448\u0435\u043B\u0451\u043A \u0441 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u043C";
439
- IconTitleMap["EmptyWalletIcon"] = "\u041F\u0443\u0441\u0442\u043E\u0439 \u043A\u043E\u0448\u0435\u043B\u0451\u043A";
440
- IconTitleMap["EuroIcon"] = "\u0415\u0432\u0440\u043E";
441
- IconTitleMap["GeolocationIcon"] = "\u0413\u0435\u043E\u043B\u043E\u043A\u0430\u0446\u0438\u044F";
442
- IconTitleMap["GlassIcon"] = "\u0417\u0435\u0440\u043A\u0430\u043B\u043E";
443
- IconTitleMap["GlobalIcon"] = "\u0413\u043B\u043E\u0431\u0443\u0441";
444
- IconTitleMap["GpsIcon"] = "Gps";
445
- IconTitleMap["GridIcon"] = "\u0421\u0435\u0442\u043A\u0430 (\u0431\u0435\u043B\u0430\u044F)";
446
- IconTitleMap["InterestGrowthIcon"] = "\u0414\u0438\u0430\u0433\u0440\u0430\u043C\u043C\u0430 \u0440\u043E\u0441\u0442\u0430";
447
- IconTitleMap["InterestIcon"] = "\u0421\u043A\u0438\u0434\u043A\u0430";
448
- IconTitleMap["JCBIcon"] = "JCB";
449
- IconTitleMap["LogoIcon"] = "Logo";
450
- IconTitleMap["LoupeIcon"] = "\u041B\u0443\u043F\u0430";
451
- IconTitleMap["MapMarkerClusterIcon"] = "\u041C\u0430\u0440\u043A\u0435\u0440 \u043A\u0430\u0440\u0442\u044B";
452
- IconTitleMap["MapMarkerSingleIcon"] = "\u041C\u0430\u0440\u043A\u0435\u0440 \u043A\u0430\u0440\u0442\u044B \u0420\u0421\u0425\u0411";
453
- IconTitleMap["MasterCardIcon"] = "MasterCard";
454
- IconTitleMap["MinusIcon"] = "\u041C\u0438\u043D\u0443\u0441";
455
- IconTitleMap["MirIcon"] = "\u041C\u0418\u0420";
456
- IconTitleMap["MoneyIcon"] = "\u0414\u0435\u043D\u044C\u0433\u0438";
457
- IconTitleMap["MoneyInsuranceIcon"] = "\u0414\u0435\u043D\u0435\u0436\u043D\u043E\u0435 \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435";
458
- IconTitleMap["MoneysIcon"] = "\u041A\u0443\u043F\u044E\u0440\u044B";
459
- IconTitleMap["MonitorMobileIcon"] = "\u041C\u043E\u043D\u0438\u0442\u043E\u0440 \u0438 \u043C\u043E\u0431\u0438\u043B\u044C\u043D\u044B\u0439";
460
- IconTitleMap["NewDocIcon"] = "\u041D\u043E\u0432\u044B\u0439 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442";
461
- IconTitleMap["OfficeIcon"] = "\u041E\u0444\u0438\u0441";
462
- IconTitleMap["OkIcon"] = "\u041B\u043E\u0433\u043E \u00AB\u041E\u0434\u043D\u043E\u043A\u043B\u0430\u0441\u0441\u043D\u0438\u043A\u0438\u00BB";
463
- IconTitleMap["PackA4Icon"] = "\u041F\u0430\u0447\u043A\u0430 \u0431\u0443\u043C\u0430\u0433\u0438 \u04104";
464
- IconTitleMap["PassSendIcon"] = "\u0411\u0438\u0437\u043D\u0435\u0441";
465
- IconTitleMap["PercentageRoundIcon"] = "\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u044B (\u043A\u0440\u0443\u0433.)";
466
- IconTitleMap["PercentageSquareIcon"] = "\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u044B";
467
- IconTitleMap["PersonalCardIcon"] = "\u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u0430\u044F \u043A\u0430\u0440\u0442\u0430";
468
- IconTitleMap["PlayMarketIcon"] = "\u041B\u043E\u0433\u043E \u00ABPlayMarket\u00BB";
469
- IconTitleMap["PlusIcon"] = "\u041F\u043B\u044E\u0441";
470
- IconTitleMap["PowerIcon"] = "\u0429\u0438\u0442";
471
- IconTitleMap["Profile2UserIcon"] = "\u041F\u0440\u043E\u0444\u0438\u043B\u044C, 2 \u043F\u0435\u0440\u0441\u043E\u043D\u044B";
472
- IconTitleMap["ProfileIcon"] = "\u041F\u0440\u043E\u0444\u0438\u043B\u044C";
473
- IconTitleMap["PumpkinIcon"] = "\u0422\u044B\u043A\u0432\u0430";
474
- IconTitleMap["RoundRubleIcon"] = "\u0420\u0443\u0431\u043B\u044C (\u043A\u0440\u0443\u0433.)";
475
- IconTitleMap["SafeIcon"] = "\u0421\u0435\u0439\u0444";
476
- IconTitleMap["ShieldTickIcon"] = "\u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C";
477
- IconTitleMap["SignDocsIcon"] = "\u041F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u043D\u044B\u0435 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u044B";
478
- IconTitleMap["SmallClockIcon"] = "\u041C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0435 \u0447\u0430\u0441\u044B";
479
- IconTitleMap["SoundIcon"] = "\u0417\u0432\u0443\u043A";
480
- IconTitleMap["StrongBoxIcon"] = "\u042F\u0449\u0438\u043A \u0441 \u0437\u0430\u043C\u043E\u0447\u043D\u043E\u0439 \u0441\u043A\u0432\u0430\u0436\u0438\u043D\u043E\u0439";
481
- IconTitleMap["TelegramIcon"] = "\u041B\u043E\u0433\u043E \u00ABTelegram\u00BB";
482
- IconTitleMap["UnionPayIcon"] = "UnionPay";
483
- IconTitleMap["UserSquareIcon"] = "\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u0432 \u0440\u0430\u043C\u043A\u0435";
484
- IconTitleMap["UserTickIcon"] = "\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C";
485
- IconTitleMap["VisaIcon"] = "Visa";
486
- IconTitleMap["VKIcon"] = "\u041B\u043E\u0433\u043E \u00ABVK\u00BB";
487
- IconTitleMap["WalletAdd2Icon"] = "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u043A\u0430\u0440\u0442\u044B";
488
- IconTitleMap["WalletAddIcon"] = "\u041A\u043E\u0448\u0435\u043B\u0451\u043A \u0441 \u043F\u043B\u044E\u0441\u043E\u043C";
489
- IconTitleMap["WalletIcon"] = "\u041A\u043E\u0448\u0435\u043B\u0451\u043A";
490
- IconTitleMap["WalletWithMoneyIcon"] = "\u041A\u043E\u0448\u0435\u043B\u0451\u043A \u0441 \u0434\u0435\u043D\u044C\u0433\u0430\u043C\u0438";
491
- IconTitleMap["WateringCanIcon"] = "\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0434\u0443\u043A\u0442";
492
- })(IconTitleMap || (IconTitleMap = {}));
493
-
494
- const svgUseStyleMap = {
495
- normal: 'text-primary-main',
496
- black: 'text-black',
497
- white: 'text-black',
498
- };
499
- const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${IconTitleMap[name] || name}`, title = alt, iconVersion = 'normal', asSVG, ...imgProps }) => {
500
- const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
501
- if (asSVG && IconInverseMap[name]) {
502
- return (jsx(Background, { className: className, children: jsxs("svg", { className: [
503
- getSvgSize(className, imgProps.width),
504
- svgUseStyleMap[iconVersion],
505
- imageClassName,
506
- getInvertStyle(name, iconVersion),
507
- ].join(' '), ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }) }));
508
- }
509
- return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
510
- });
511
- const getInvertStyle = (name, iconVersion) => iconVersion === 'white' && IconInverseMap[name] ? 'invert' : '';
512
- const getSvgSize = (className, width) => width ? `width: ${width}px ` : 'w-full h-full';
513
- const Background = JSX(({ className, children }) => className ? jsx("div", { className: className, children: children }) : children);
514
-
515
- function getIconVersion(image) {
516
- return typeof image === 'string' ? 'normal' : image.iconVersion || 'normal';
517
- }
518
-
519
- const sourcesComparator = (a, b) => {
520
- if (a.media && b.media) {
521
- return a.media - b.media;
522
- }
523
- return 0;
524
- };
525
- const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', isMobile = false }) => {
526
- if (!image || (!image?.sources && !image?.src)) {
527
- return null;
528
- }
529
- const pictureStyles = isMobile ? 'flex' : 'flex-none';
530
- return (jsxs("picture", { className: `${pictureStyles} ${className}`, children: [image?.sources?.length
531
- ? image.sources
532
- .sort(sourcesComparator)
533
- .map(({ src, format, media }, index) => (jsx("source", { srcSet: src, type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
534
- : null, renderImg(image, imageClassName, isMobile)] }));
535
- });
536
- const renderImg = (image, imageClassName = '', isMobile = false) => {
537
- const style = {
538
- width: image.size?.width ? `${image.size?.width}px` : '100%',
539
- height: image.size?.height ? `${image.size?.height}px` : '100%',
540
- };
541
- const title = image.title || '';
542
- const alt = image.alt || image.title;
543
- const imgStyle = isMobile ? 'm-auto' : 'm-0';
544
- return (jsx("img", { src: image.src, className: `${imgStyle} ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
545
- };
546
- function formatToMimeType(format) {
547
- return format ? `image/${String(format)}` : undefined;
548
- }
549
-
550
- const ImgInner = JSX(({ className = '', image, imageClassName = '', isMobile, ...iconProps }) => {
551
- if (!image) {
552
- return null;
553
- }
554
- // backwards compatibility with existing icons in usage
555
- const icon = typeof image === 'string' ? image : image.icon;
556
- if (icon || icon === '') {
557
- return icon.length ? (jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: getIconVersion(image), name: icon, ...iconProps })) : null;
558
- }
559
- return (jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image, isMobile: isMobile }));
560
- });
561
-
562
- const Img = JSX(({ className = '', imageClassName, image, ...iconProps }) => {
563
- return (jsx(ImgInner, { className: className, imageClassName: imageClassName, image: image, ...iconProps }));
564
- });
565
-
566
349
  function style2className(style) {
567
350
  return style ? style.filter(Boolean).join(' ') : '';
568
351
  }
@@ -626,6 +409,15 @@
626
409
  as: 'h4',
627
410
  },
628
411
  };
412
+ const HEADLINE_SMALL_VERSION = {
413
+ XL_L: 'text-xl-light',
414
+ XL_R: 'text-xl',
415
+ L_L: 'text-l-light',
416
+ L_R: 'text-l',
417
+ M: 'text-m-light',
418
+ S: 'text-s-light',
419
+ XS: 'text-xs-light',
420
+ };
629
421
 
630
422
  const Headline = JSX(({ bgColorHeadline = 'transparent', align = 'center', className = '', title, description, headlineVersion = 'XL', as, ...rest }) => {
631
423
  const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
@@ -633,9 +425,77 @@
633
425
  return (jsxs(BlockWrapper, { className: `font-sans flex flex-col p-[50px] ${SIZE_MAPS.gap} ${STYLE_MAPS.background} ${className}`, ...rest, children: [title ? (jsx(Heading, { headingType: SIZE_MAPS?.headingType, as: as || SIZE_MAPS?.as, className: `whitespace-pre-wrap ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, title: title })) : null, description ? (jsx(Description, { className: `${SIZE_MAPS.descriptionFont} ${STYLE_MAPS.text} ${ALIGN_TEXT[align]}`, description: description })) : null] }));
634
426
  });
635
427
 
428
+ const svgUseStyleMap = {
429
+ normal: 'text-primary-main',
430
+ black: 'text-black',
431
+ white: 'text-black',
432
+ };
433
+ const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'normal', asSVG, ...imgProps }) => {
434
+ const href = `${projectSettings.CDN || ''}icons/${name}.svg`;
435
+ if (asSVG) {
436
+ return (jsx(Background, { className: className, children: jsxs("svg", { className: [
437
+ getSvgSize(className, imgProps.width),
438
+ svgUseStyleMap[iconVersion],
439
+ imageClassName,
440
+ getInvertStyle(iconVersion),
441
+ ].join(' '), ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }) }));
442
+ }
443
+ return (jsx("img", { className: className, src: href, alt: alt, title: title, ...imgProps, "aria-hidden": "true" }));
444
+ });
445
+ const getInvertStyle = (iconVersion) => iconVersion === 'white' ? 'invert' : '';
446
+ const getSvgSize = (className, width) => width ? `width: ${width}px ` : 'w-full h-full';
447
+ const Background = JSX(({ className, children }) => className ? jsx("div", { className: className, children: children }) : children);
448
+
449
+ function getIconVersion$1(image) {
450
+ return typeof image === 'string' ? 'normal' : image.iconVersion || 'normal';
451
+ }
452
+
453
+ const sourcesComparator = (a, b) => {
454
+ if (a.media && b.media) {
455
+ return a.media - b.media;
456
+ }
457
+ return 0;
458
+ };
459
+ const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', isMobile = false }) => {
460
+ if (!image || (!image?.sources && !image?.src)) {
461
+ return null;
462
+ }
463
+ const pictureStyles = isMobile ? 'flex' : 'flex-none';
464
+ return (jsxs("picture", { className: `${pictureStyles} ${className}`, children: [image?.sources?.length
465
+ ? image.sources
466
+ .sort(sourcesComparator)
467
+ .map(({ src, format, media }, index) => (jsx("source", { srcSet: src, type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
468
+ : null, renderImg(image, imageClassName, isMobile)] }));
469
+ });
470
+ const renderImg = (image, imageClassName = '', isMobile = false) => {
471
+ const style = {
472
+ width: image.size?.width ? `${image.size?.width}px` : '100%',
473
+ height: image.size?.height ? `${image.size?.height}px` : '100%',
474
+ };
475
+ const title = image.title || '';
476
+ const alt = image.alt || image.title;
477
+ const imgStyle = isMobile ? 'm-auto' : 'm-0';
478
+ return (jsx("img", { src: image.src, className: `${imgStyle} ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
479
+ };
480
+ function formatToMimeType(format) {
481
+ return format ? `image/${String(format)}` : undefined;
482
+ }
483
+
484
+ const ImgInner = JSX(({ className = '', image, imageClassName = '', isMobile, ...iconProps }) => {
485
+ if (!image) {
486
+ return null;
487
+ }
488
+ // backwards compatibility with existing icons in usage
489
+ const icon = typeof image === 'string' ? image : image.icon;
490
+ if (icon || icon === '') {
491
+ return icon.length ? (jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: getIconVersion$1(image), name: icon, ...iconProps })) : null;
492
+ }
493
+ return (jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image, isMobile: isMobile }));
494
+ });
495
+
636
496
  const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
637
497
  const { text, fileSize, ...linkProps } = doc;
638
- return (jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (jsx(Img, { className: iconClassName, image: icon, width: "24px", height: "24px", asSVG: true })) : null, text ? (jsxs("span", { className: textClassName, children: [text, jsx("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
498
+ return (jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (jsx(ImgInner, { className: iconClassName, image: icon, width: "24px", height: "24px", asSVG: true })) : null, text ? (jsxs("span", { className: textClassName, children: [text, jsx("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
639
499
  });
640
500
  const formatSuffix = (ext, fileSize) => {
641
501
  const prefix = ext || fileSize ? ',' : '';
@@ -682,7 +542,8 @@
682
542
  const { className = '', icon, label, description, version = 'primary', benefitsVersion = 'normal', } = props;
683
543
  const isIconWhite = benefitsVersion === 'white' || version === 'secondary';
684
544
  const listItemAlign = description ? 'items-start' : 'items-center';
685
- return (jsxs("div", { className: `flex gap-5 ${listItemAlign} ${className}`, children: [icon ? (jsx("div", { className: renderBenefitIconBgStyle(version, benefitsVersion), children: jsx(Img, { className: "w-6 h-6", image: { ...icon, iconVersion: isIconWhite ? 'white' : 'normal' }, asSVG: true }) })) : null, jsxs("div", { className: "gap-0.5", children: [label ? jsx("div", { className: `text-h6 ${titleStyleMap[version]}`, children: label }) : null, description ? (jsx("div", { className: `text-m-light ${descStyleMap[version]}`, children: description })) : null] })] }));
545
+ const iconVersion = getIconVersion(icon, isIconWhite);
546
+ return (jsxs("div", { className: `flex gap-5 ${listItemAlign} ${className}`, children: [icon ? (jsx("div", { className: renderBenefitIconBgStyle(version, benefitsVersion), children: jsx(ImgInner, { className: "w-6 h-6", image: { ...icon, iconVersion }, asSVG: true }) })) : null, jsxs("div", { className: "gap-0.5", children: [label ? jsx("div", { className: `text-h6 ${titleStyleMap[version]}`, children: label }) : null, description ? (jsx("div", { className: `text-m-light ${descStyleMap[version]}`, children: description })) : null] })] }));
686
547
  });
687
548
  function renderBenefitIconBgStyle(version, benefitsVersion) {
688
549
  let bgColorStyle = 'bg-primary-main text-black';
@@ -694,11 +555,12 @@
694
555
  }
695
556
  return `w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
696
557
  }
558
+ const getIconVersion = (icon, isIconWhite) => icon?.iconVersion || isIconWhite ? 'white' : 'normal';
697
559
 
698
560
  const addSpacesBetweenNumbers = (number) => new Intl.NumberFormat('ru-RU', { maximumSignificantDigits: 3 }).format(number);
699
561
 
700
562
  const PictureText = JSX(({ className = '', context, title, description, image, benefits, version = 'primary', sum, monthLimit, directionRight = false, ...rest }) => {
701
- return (jsxs(BlockWrapper, { className: `relative font-sans py-12 px-24 ${VersionStyleMap[version]} ${className}`, context: context, ...rest, children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", bgColorHeadline: version, align: "center" }), jsxs("div", { className: 'flex justify-center gap-[122px] mt-[30px]', children: [image?.src ? jsx(Img, { className: directionRight ? 'order-2' : '', image: image }) : null, jsxs("div", { className: "w-[558px] m-auto", children: [benefits?.length ? (jsx("div", { className: "flex flex-col gap-4", children: benefits.map(renderBenefit$2(version)) })) : null, renderInsuranceSumMonth(sum, monthLimit)] })] })] }));
563
+ return (jsxs(BlockWrapper, { className: `relative font-sans py-12 px-24 ${VersionStyleMap[version]} ${className}`, context: context, ...rest, children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", bgColorHeadline: version, align: "center" }), jsxs("div", { className: 'flex justify-center gap-[122px] mt-[30px]', children: [image?.src ? jsx(ImgInner, { className: directionRight ? 'order-2' : '', image: image }) : null, jsxs("div", { className: "w-[558px] m-auto", children: [benefits?.length ? (jsx("div", { className: "flex flex-col gap-4", children: benefits.map(renderBenefit$2(version)) })) : null, renderInsuranceSumMonth(sum, monthLimit)] })] })] }));
702
564
  });
703
565
  const renderBenefit$2 = (version) => (benefit, i) => (jsx(BenefitItem, { icon: benefit.icon, label: benefit.label, description: benefit.description, version: version }, String(i)));
704
566
  function renderInsuranceSumMonth(sum, monthLimit) {
@@ -791,9 +653,30 @@
791
653
  return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
792
654
  }
793
655
 
656
+ const buttonStyleMap = {
657
+ primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
658
+ secondary: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
659
+ white: 'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main',
660
+ link: '',
661
+ };
662
+ const DisabledStyle = 'bg-main-divider text-main-disabled';
663
+ const buttonDisabledStyleMap = {
664
+ primary: DisabledStyle,
665
+ secondary: DisabledStyle,
666
+ white: DisabledStyle,
667
+ link: '',
668
+ };
669
+ const buttonStyle = 'text-center font-sans select-none';
670
+ const iconStyleMap = {
671
+ primary: 'group-hover:brightness-0 group-hover:invert',
672
+ secondary: 'group-hover:brightness-0 group-hover:invert',
673
+ white: 'group-hover:brightness-0 group-hover:invert',
674
+ link: '',
675
+ };
676
+
794
677
  const ButtonInner = JSX((props) => {
795
- const { text, aboveText, appendLeft, appendRight } = props;
796
- return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? appendLeft : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-xs-light text-left", children: aboveText }), jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-0.5' : 'text-l'}`, children: text })] })) : null, appendRight ? appendRight : null] }));
678
+ const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
679
+ return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? jsx("div", { className: iconStyleMap[version], children: appendLeft }) : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-xs-light text-left", children: aboveText }), jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-0.5' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
797
680
  });
798
681
  const getButtonStyle = (props) => {
799
682
  const { className = '', version, aboveText, rounded } = props;
@@ -810,47 +693,28 @@
810
693
  };
811
694
  const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
812
695
 
813
- const buttonStyleMap = {
814
- primary: 'text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active',
815
- secondary: 'text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active',
816
- white: 'text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main',
817
- link: '',
818
- };
819
- const DisabledStyle = 'bg-main-divider text-main-disabled';
820
- const buttonDisabledStyleMap = {
821
- primary: DisabledStyle,
822
- secondary: DisabledStyle,
823
- white: DisabledStyle,
824
- link: '',
825
- };
826
- const buttonStyle = 'text-center font-sans select-none';
827
-
828
- const getRegularButtonClasses = ({ className, rounded, version, }) => [
696
+ const getDisabledButtonClasses = ({ className, rounded, version, }) => [
697
+ 'inline-block',
829
698
  buttonStyle,
830
- 'border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border',
831
- version ? buttonStyleMap[version] : '',
699
+ version ? buttonDisabledStyleMap[version] : '',
832
700
  rounded ? 'rounded-full' : 'rounded-md',
833
701
  className,
834
702
  ].join(' ');
835
703
 
836
- const getDisabledButtonClasses = ({ className, rounded, version, }) => [
837
- 'inline-block',
704
+ const getRegularButtonClasses = ({ className, rounded, version, }) => [
838
705
  buttonStyle,
839
- version ? buttonDisabledStyleMap[version] : '',
706
+ 'border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border',
707
+ version ? buttonStyleMap[version] : '',
840
708
  rounded ? 'rounded-full' : 'rounded-md',
841
709
  className,
842
710
  ].join(' ');
843
711
 
844
- const Button = JSX((props) => {
845
- const { text, aboveText, appendLeft, appendRight, children, disabled, rounded, ...rest } = props;
846
- // its non valid HTML attribute. Must be excluded from "rest"
847
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
848
- const { asSVG, iconRight, icon, ...usedProps } = rest;
849
- const buttonInner = children ?? (jsx(ButtonInner, { text: text, aboveText: aboveText, appendLeft: appendLeft, appendRight: appendRight, rounded: rounded }));
850
- return disabled ? (jsx(DisabledButton, { rounded: rounded, ...usedProps, children: buttonInner })) : (jsx(RegularButton, { rounded: rounded, ...usedProps, children: buttonInner }));
712
+ const Button = JSX(({ aboveText, appendLeft, appendRight, ariaLabel, children, className, disabled, href, onClick, rel, rounded, target, text, version, }) => {
713
+ const buttonInner = children ?? (jsx(ButtonInner, { aboveText: aboveText, appendLeft: appendLeft, appendRight: appendRight, rounded: rounded, text: text, version: version }));
714
+ return disabled ? (jsx(DisabledButton, { ariaLabel: ariaLabel, className: className, rounded: rounded, version: version, children: buttonInner })) : (jsx(RegularButton, { ariaLabel: ariaLabel, className: className, href: href, onClick: onClick, rel: rel, rounded: rounded, target: target, version: version, children: buttonInner }));
851
715
  });
852
- const RegularButton = JSX(({ className = '', ariaLabel, version, rounded, href, target, children, onClick, ...rest }) => {
853
- return (jsx("a", { className: getRegularButtonClasses({ className, version, rounded }), href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: href ? 'link' : 'button', ...rest, children: children }));
716
+ const RegularButton = JSX(({ className = '', ariaLabel, version, rounded, href, target, children, onClick, rel }) => {
717
+ return (jsx("a", { className: getRegularButtonClasses({ className, version, rounded }), href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: href ? 'link' : 'button', rel: rel, children: children }));
854
718
  });
855
719
  const DisabledButton = JSX(({ className, children, ariaLabel, version, rounded }) => {
856
720
  return (jsx("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: -1, className: getDisabledButtonClasses({ className, rounded, version }), children: children }));
@@ -859,61 +723,48 @@
859
723
  const ButtonSection = JSX(({ context, className = '', buttons }) => {
860
724
  const { handlerDecorator } = context;
861
725
  const router = context.useRouter();
862
- return buttons && buttons?.length ? (jsx("div", { className: className, children: buttons.map((button, index) => renderButton$2(useLink({ router, handlerDecorator }, button), index)) })) : null;
726
+ return buttons && buttons?.length ? (jsx("div", { className: className, children: buttons.map((button, index) => (jsx(ButtonSectionItem, { button: button, handlerDecorator: handlerDecorator, router: router }, String(index)))) })) : null;
727
+ });
728
+ const ButtonSectionItem = JSX(({ router, handlerDecorator, button }) => {
729
+ const buttonProps = useLink({ router, handlerDecorator }, button);
730
+ return jsx(Button, { ...button, ...buttonProps });
863
731
  });
864
- function renderButton$2({ icon, iconRight, version = 'primary', ...button }, i) {
865
- if (!button?.text) {
866
- return null;
867
- }
868
- const imgStyle = version === 'primary' ? 'group-hover:text-black' : 'group-hover:text-white';
869
- const iconVersion = version === 'secondary' ? 'normal' : 'white';
870
- return icon ? (jsx(Button, { appendLeft: jsx(Img, { imageClassName: imgStyle, image: { ...icon, iconVersion: iconVersion }, width: "24", height: "24", asSVG: true }), appendRight: jsx(Img, { imageClassName: imgStyle, image: { ...iconRight, iconVersion: iconVersion }, width: "24", height: "24", asSVG: true }), version: version, ...button }, String(i))) : (jsx(Button, { version: version, ...button }, String(i)));
871
- }
872
732
 
873
- const LIST_STYLE_CLASSES = {
874
- primary: 'rounded-full inline-block mr-3 mt-2',
875
- secondary: 'rounded-full inline-block mr-3 mt-2',
876
- gray: 'rounded-full inline-block mr-3 mt-2',
877
- tile: 'rounded-full inline-block mr-4 mt-3',
878
- 'tile-white': 'rounded-full inline-block mr-4 mt-3',
879
- };
880
733
  const LIST_DOT_STYLE_MAP = {
881
734
  primary: 'bg-primary-text',
882
735
  secondary: 'bg-white',
883
736
  gray: 'bg-secondary-text',
884
- tile: 'bg-black',
885
- 'tile-white': 'bg-white',
886
- };
887
- const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary' }) => {
888
- return (jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted ? jsx("div", { className: getListStyle(version) }) : null, jsx("span", { children: children })] }));
889
- });
890
- const getListStyle = (version) => {
891
- const size = {
892
- primary: 'w-2 h-2 min-w-2 min-h-2',
893
- secondary: 'w-2 h-2 min-w-2 min-h-2',
894
- gray: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5',
895
- tile: 'w-[7px] h-[7px] min-w-[7px] min-h-[7px]',
896
- 'tile-white': 'w-[7px] h-[7px] min-w-[7px] min-h-[7px]',
897
- };
898
- return `${LIST_STYLE_CLASSES[version]} ${LIST_DOT_STYLE_MAP[version]} ${size[version]}`;
899
737
  };
738
+ const DOT_SIZE_MAP = {
739
+ L: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4 mt-3',
740
+ M: 'w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3 mt-3',
741
+ S: 'w-1 h-1 min-w-1 min-h-1 mr-2 mt-2.5',
742
+ };
743
+ const ListItem = JSX(({ className = '', isDotted = true, children, version = 'primary', size = 'M' }) => {
744
+ return (jsxs("div", { className: `font-sans flex items-start ${className}`, role: "listitem", children: [isDotted ? (jsx("div", { className: `rounded-full inline-block ${LIST_DOT_STYLE_MAP[version]} ${DOT_SIZE_MAP[size]}` })) : null, jsx("span", { children: children })] }));
745
+ });
900
746
 
901
747
  const TEXT_STYLE_MAP = {
902
748
  primary: 'text-primary-text',
903
749
  secondary: 'text-white',
904
750
  gray: 'text-secondary-text',
905
- tile: 'text-primary-text',
906
- 'tile-white': 'text-white',
907
751
  };
908
752
  const TEXT_SIZE_MAP = {
909
- M: 'text-xl-light',
910
- L: 'text-h5-light',
753
+ S: 'text-l-light',
754
+ M: 'text-h6',
755
+ L: 'text-h5',
756
+ };
757
+ const ITEM_INDENT_MAP = {
758
+ S: 'ml-2',
759
+ M: 'ml-3',
760
+ L: 'ml-4',
911
761
  };
912
762
  const List = JSX((props) => {
913
- const { className = '', itemClassName, isDotted, items, listItemSize = 'M', version = 'primary', } = props;
914
- return (jsx("section", { className: `${TEXT_STYLE_MAP[version]} ${TEXT_SIZE_MAP[listItemSize]} ${className}`, role: "list", children: items?.length
915
- ? items.map((_, i) => (jsx(ListItem, { className: itemClassName, isDotted: isDotted, version: version, children: _ }, String(i))))
916
- : null }));
763
+ const { className = '', hasIndent, isDotted, itemClassName = '', items, listItemSize = 'M', version = 'primary', } = props;
764
+ if (!items?.length) {
765
+ return null;
766
+ }
767
+ return (jsx("section", { className: `${TEXT_STYLE_MAP[version]} ${TEXT_SIZE_MAP[listItemSize]} ${className} ${hasIndent ? ITEM_INDENT_MAP[listItemSize] : ''}`, role: "list", children: items.map((item, i) => (jsx(ListItem, { className: `${itemClassName} mb-1.5`, isDotted: isDotted, version: version, size: listItemSize, children: item }, String(i)))) }));
917
768
  });
918
769
 
919
770
  const BaseTile = JSX(({ className = '', title = '', children, buttons, image }) => {
@@ -925,7 +776,7 @@
925
776
  };
926
777
 
927
778
  const ProductBlockInner = JSX(({ className = '', context, title, headlineVersion = 'L', description, benefits, benefitsVersion = 'normal', buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', }) => {
928
- return (jsxs("div", { className: `flex grow justify-between items-stretch h-full ${className}`, children: [jsxs("div", { className: `flex flex-col ${textBlockClassName}`, children: [jsx(Headline, { context: context, title: title, description: description, className: `!p-0 max-w-[600px]`, bgColorHeadline: version, headlineVersion: headlineVersion, align: "left" }), jsxs(BaseTile, { context: context, buttons: getButtons(context, buttons), children: [benefits?.filter((_) => _.label)?.length ? (jsx("div", { className: "flex gap-6 mt-6", children: benefits.map(renderBenefit$1(version, benefitsVersion)) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", version: version, isDotted: isDotted })) : null] })] }), image?.src && jsx(Img, { className: "mt-[-50px]", image: image })] }));
779
+ return (jsxs("div", { className: `flex grow justify-between items-stretch h-full ${className}`, children: [jsxs("div", { className: `flex flex-col ${textBlockClassName}`, children: [jsx(Headline, { context: context, title: title, description: description, className: `!p-0 max-w-[600px]`, bgColorHeadline: version, headlineVersion: headlineVersion, align: "left" }), jsxs(BaseTile, { context: context, buttons: getButtons(context, buttons), children: [benefits?.filter((_) => _.label)?.length ? (jsx("div", { className: "flex gap-6 mt-6", children: benefits.map(renderBenefit$1(version, benefitsVersion)) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", version: version, isDotted: isDotted })) : null] })] }), image?.src && jsx(ImgInner, { className: "mt-[-50px]", image: image })] }));
929
780
  });
930
781
  const getButtons = (context, buttons) => {
931
782
  return buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex gap-4" })) : null;
@@ -935,7 +786,7 @@
935
786
  const { text, href, target, onClick } = button;
936
787
  const iconVersion = version === 'primary' ? 'white' : 'black';
937
788
  const backwardIcon = button?.icon || { icon: 'ArrowLeftIcon' };
938
- return (jsxs("div", { className: `flex items-center cursor-pointer ${className}`, onClick: onClick, children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: jsx(Img, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion }, asSVG: true }) }), text ? jsx("span", { className: "text-m", children: text }) : null] }));
789
+ return (jsxs("div", { className: `flex items-center cursor-pointer ${className}`, onClick: onClick, children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: jsx(ImgInner, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion }, asSVG: true }) }), text ? jsx("span", { className: "text-m", children: text }) : null] }));
939
790
  }
940
791
 
941
792
  const breadcrumbsStyleMap = {
@@ -973,13 +824,13 @@
973
824
  };
974
825
  const TextBlock = JSX(({ title, description, blockVersion = 'primary', iconVersion, image, className, ...rest }) => {
975
826
  const textBlockStyleMap = textBlockStyleMaps[blockVersion];
976
- return (jsxs(BlockWrapper, { className: `font-sans px-9 py-4 flex ${textBlockStyleMap.background} ${className || ''}`, ...rest, children: [iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "py-0.5", children: [title ? (jsx("div", { className: `text-l font-medium mb-1 ${textBlockStyleMap.title}`, children: title })) : null, description ? (jsx("div", { className: `text-s ${textBlockStyleMap.description}`, children: description })) : null] })] }));
827
+ return (jsxs(BlockWrapper, { className: `font-sans px-9 py-4 flex ${textBlockStyleMap.background} ${className || ''}`, ...rest, children: [iconVersion === 'small' ? renderIcon(textBlockStyleMap.icon) : null, iconVersion === 'big' ? renderImage$1(image) : null, jsxs("div", { className: "py-0.5", children: [title ? (jsx("div", { className: `text-l font-medium mb-1 ${textBlockStyleMap.title}`, children: title })) : null, description ? (jsx("div", { className: `text-s ${textBlockStyleMap.description}`, children: description })) : null] })] }));
977
828
  });
978
829
  function renderIcon(className) {
979
830
  return (jsx("div", { className: "pt-1.5 pl-1 pr-4", children: jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs-light ${className}`, children: "i" }) }));
980
831
  }
981
- function renderImage(image) {
982
- return image?.src ? jsx(Img, { className: "pt-0.5 pr-3", image: image }) : null;
832
+ function renderImage$1(image) {
833
+ return image?.src ? jsx(ImgInner, { className: "pt-0.5 pr-3", image: image }) : null;
983
834
  }
984
835
 
985
836
  const getColSpan = (className) => {
@@ -1017,18 +868,17 @@
1017
868
  const Tile = JSX((props) => {
1018
869
  const { context, title, headingType = 'h3', description, items, children, buttons, image, isDotted = true, listItemSize = 'M', className = '', version = 'primary', ...rest } = props;
1019
870
  const headingClassName = version === 'primary' ? 'text-primary-text' : '';
1020
- return (jsx(BlockWrapper, { context: context, className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsxs(BaseTile, { context: context, title: title ? (jsx(Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px] ${headingClassName}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons.map((button) => ({ ...button, className: 'w-[158px]' })), className: "flex mt-8 gap-3" })) : null, image: image?.src ? jsx(Img, { className: "mt-auto ml-7", image: image }) : null, children: [description ? (jsx(Description, { className: "max-w-[600px] text-xl-light mt-2", description: description })) : null, children, renderList$1(items, { version, isDotted, listItemSize })] }) }));
871
+ return (jsx(BlockWrapper, { context: context, className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsxs(BaseTile, { context: context, title: title ? (jsx(Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px] ${headingClassName}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons.map((button) => ({ ...button, className: 'w-[158px]' })), className: "flex mt-8 gap-3" })) : null, image: image?.src ? jsx(ImgInner, { className: "mt-auto ml-7", image: image }) : null, children: [description ? (jsx(Description, { className: "max-w-[600px] text-xl-light mt-2.5", description: description })) : null, children, renderList$1(items, { version, isDotted, listItemSize })] }) }));
1021
872
  });
1022
873
  function renderList$1(items, { version, isDotted, listItemSize }) {
1023
- const listVersion = version === 'primary' ? 'tile' : 'tile-white';
1024
- return items?.length ? (jsx(List, { items: items, isDotted: isDotted, className: "mt-3", listItemSize: listItemSize, itemClassName: "mb-1.5", version: listVersion })) : null;
874
+ return items?.length ? (jsx(List, { items: items, isDotted: isDotted, className: "mt-2.5", listItemSize: listItemSize, itemClassName: "mb-1.5", version: version })) : null;
1025
875
  }
1026
876
 
1027
877
  const ProductTile = JSX(({ context, className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, version = 'primary', ...rest }) => {
1028
878
  return (jsxs(BlockWrapper, { context: context, className: `overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]
1029
879
  ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)}`, ...rest, children: [jsx(Headline, { context: context, className: `!p-0 !bg-transparent z-10 ${title || description ? 'mb-3.5' : ''}`, as: "h2", title: title, description: description, headlineVersion: headlineVersion, bgColorHeadline: version, align: "left" }), renderBenefits$1(benefits, version, image), additionalDescription
1030
- ? renderAdditionalDescription(additionalDescription, image, version)
1031
- : null, buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex self-end mt-5 gap-4 z-10 text-l" })) : null, image?.src ? jsx(Img, { className: "absolute right-0 bottom-0", image: image }) : null] }));
880
+ ? renderAdditionalDescription$1(additionalDescription, image, version)
881
+ : null, buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex self-end mt-5 gap-4 z-10 text-l" })) : null, image?.src ? jsx(ImgInner, { className: "absolute right-0 bottom-0", image: image }) : null] }));
1032
882
  });
1033
883
  function renderBenefits$1(benefits, version, image) {
1034
884
  // picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
@@ -1049,7 +899,7 @@
1049
899
  ];
1050
900
  };
1051
901
  }
1052
- function renderAdditionalDescription(additionalDescription, image, version = 'primary') {
902
+ function renderAdditionalDescription$1(additionalDescription, image, version = 'primary') {
1053
903
  const descStyleMap = {
1054
904
  primary: 'text-secondary-text',
1055
905
  secondary: 'text-white',
@@ -1061,7 +911,7 @@
1061
911
 
1062
912
  const ArrowButton = JSX(({ className, disabled, ...rest }) => (jsx(Button, { rounded: true, className: `group shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${disabled
1063
913
  ? 'bg-secondary-light text-secondary-text'
1064
- : 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(Img, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border", image: { icon: 'ArrowLeftIcon', iconVersion: 'black' }, imageClassName: "group-hover:text-primary-main", width: "16", height: "16", asSVG: true }) })));
914
+ : 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(ImgInner, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border", image: { icon: 'ArrowLeftIcon', iconVersion: 'black' }, imageClassName: "group-hover:text-primary-main", width: "16", height: "16", asSVG: true }) })));
1065
915
 
1066
916
  function renderArrows({ handler, isShown, btnClass, className = '', isDisabled = false, }) {
1067
917
  return (jsxs("div", { children: [isShown[0] || isDisabled ? (jsx(ArrowButton, { className: `absolute z-10 ${btnClass[0]} ${className}`, onClick: handler[0], ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !isShown[0] })) : null, isShown[1] || isDisabled ? (jsx(ArrowButton, { className: `absolute z-10 rotate-180 ${btnClass[1]} ${className}`, onClick: handler[1], ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !isShown[1] })) : null] }));
@@ -1080,27 +930,23 @@
1080
930
  mini: 276,
1081
931
  };
1082
932
 
1083
- const GalleryCardInner = JSX(({ title, description, image, items, button, version, isDotted = true }) => {
1084
- const titleStyleClasses = getTitleStyle(version);
1085
- return (jsxs("div", { className: "h-full flex flex-col justify-between text-center", children: [jsxs("div", { children: [image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? jsx("div", { className: `text-m${title ? 'mt-2' : ''}`, children: description }) : null, items?.length ? renderItems(items, isDotted, version) : null] }), button?.text ? renderButton$1(button) : null] }));
933
+ const ALIGN_TITLE$1 = {
934
+ left: 'text-left',
935
+ center: 'text-center',
936
+ right: 'text-right',
937
+ };
938
+ const GalleryCardInner = JSX(({ title, headlineSmallVersion = 'XL_L', description, additionalDescription, image, items, button, version, isDotted = true, align = 'center', }) => {
939
+ return (jsxs("div", { className: `h-full flex flex-col justify-between ${ALIGN_TITLE$1[align]}`, children: [jsxs("div", { className: "flex flex-col h-full", children: [renderImage(image), renderCardTitle(headlineSmallVersion, title), renderDescription$1(description, title), renderAdditionalDescription(additionalDescription), items?.length ? renderItems$1(items, isDotted, version) : null] }), button ? renderButton(button) : null] }));
1086
940
  });
1087
- function renderButton$1(button) {
1088
- return (jsx(Button, { className: "mt-6 w-full", appendLeft: button.icon && jsx(Img, { image: button.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
1089
- }
1090
- function renderCardTitle(title, className) {
1091
- return jsx("div", { className: `text-xl-light m-0 ${className}`, children: title });
1092
- }
1093
- function renderItems(items, isDotted, version = 'primary') {
1094
- return (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "mt-1 text-left first:mt-0", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, version: version }));
1095
- }
1096
- function getTitleStyle(version) {
1097
- return `text-xl-light m-0
1098
- ${version !== 'secondary' ? 'text-primary-text' : ''}
1099
- `;
1100
- }
941
+ const renderImage = (image) => image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(ImgInner, { className: "mb-6", image: image }) })) : null;
942
+ const renderCardTitle = (headlineSmallVersion, title) => title ? jsx("div", { className: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) : null;
943
+ const renderDescription$1 = (description, title) => description ? jsx("div", { className: `text-base ${title ? 'mt-2' : ''}`, children: description }) : null;
944
+ const renderAdditionalDescription = (additionalDescription) => additionalDescription ? (jsx("div", { className: "text-m-light text-secondary-text mt-auto", children: additionalDescription })) : null;
945
+ const renderButton = (button) => (jsx(Button, { className: "mt-6 w-full", ...button }));
946
+ const renderItems$1 = (items, isDotted, version = 'primary') => (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "mt-1 text-left first:mt-0", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, version: version }));
1101
947
 
1102
- const GalleryContainer = JSX(({ context, title, description, cards = [], version = 'normal', activeCardIndex }) => {
1103
- return (jsxs("div", { children: [jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent" }), jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "L", align: "center" }), jsx("div", { className: `flex mt-8 ${cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeCardIndex * cardWidthMap[version]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, version, context }, i)) })] }));
948
+ const GalleryContainer = JSX(({ context, title, headlineVersion = 'L', description, cards = [], version = 'normal', activeCardIndex, }) => {
949
+ return (jsxs("div", { children: [jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent" }), jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: headlineVersion, align: "center" }), jsx("div", { className: `flex mt-8 ${cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeCardIndex * cardWidthMap[version]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, version, context }, i)) })] }));
1104
950
  });
1105
951
  function renderCard({ card, version }, i) {
1106
952
  return (jsx("section", { className: `box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between
@@ -1150,7 +996,7 @@
1150
996
  LinkList,
1151
997
  };
1152
998
 
1153
- const renderBlocksList$1 = ({ blocks, context, className = '' }) => blocks?.length ? blocks.map(renderBlock$1({ context, className })) : null;
999
+ const renderBlocksList$1 = ({ blocks, context, className = '' }) => blocks?.length ? blocks.map(renderBlock$1({ context, className })) : [];
1154
1000
  const renderBlock$1 = ({ context, className }) => (block, i) => {
1155
1001
  if (!block) {
1156
1002
  return null;
@@ -1164,37 +1010,47 @@
1164
1010
  return (jsx(EmbeddedBlock, { className: `${className} ${classNameBlock}`, context: context, ...rest }, `block_${i}`));
1165
1011
  };
1166
1012
 
1167
- const AccordionItemInner = JSX(({ blocks, context }) => {
1168
- return (jsx("div", { className: "grid grid-cols-12 transition-all duration-300 max-h-0 overflow-hidden", children: renderBlocksList$1({ context, blocks, className: '!p-0 mb-3.5' }) }));
1013
+ const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
1014
+
1015
+ const DefaultButton = JSX(({ icon, label, dataTheme = '', onClick }) => {
1016
+ return (jsxs("button", { className: "border-none bg-primary-main hover:bg-primary-hover px-0 py-5 mb-[1px] w-full font-sans text-white flex justify-center cursor-pointer", "data-theme": dataTheme, onClick: onClick, children: [jsx("span", { className: "text-h4 pr-3", children: label }), icon ? (jsx(ImgInner, { image: {
1017
+ icon,
1018
+ iconVersion: 'white',
1019
+ }, className: "flex-shrink-0 my-auto", width: "20", height: "20", asSVG: true })) : null] }));
1169
1020
  });
1170
1021
 
1171
- const useActiveHandler$1 = ({ blocks, initialState = false }) => {
1172
- const [isActive, setIsActive] = useState(initialState);
1173
- const hasContent = blocks?.length;
1174
- const icon = isActive ? 'MinusIcon' : 'PlusIcon';
1175
- const handleToggle = (e) => {
1176
- const currentTarget = e.currentTarget;
1177
- if (!currentTarget) {
1178
- return;
1022
+ const Foldable = JSX(({ blocks = [], hiddenBlocksNum = 0, isFoldButtonOnTop = false, unfoldedByDefault = false, containerClassName = '', blockWrapper = (_) => _, renderFoldButton = renderDefaultFoldButton, }) => {
1023
+ const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
1024
+ const blocksToHide = clamp(hiddenBlocksNum, 0, blocks?.length);
1025
+ const visibleBlocks = blocks.slice(0, blocks.length - blocksToHide);
1026
+ const hiddenBlocks = blocksToHide > 0 ? blocks.slice(-blocksToHide) : [];
1027
+ const containerRef = useRef(null);
1028
+ const onToggle = () => {
1029
+ setIsUnfolded(!isUnfolded);
1030
+ if (containerRef.current) {
1031
+ containerRef.current.style.maxHeight = isUnfolded
1032
+ ? ''
1033
+ : `${containerRef.current.scrollHeight}px`;
1179
1034
  }
1180
- setIsActive(!isActive);
1181
- const contentBlock = currentTarget.nextSibling;
1182
- contentBlock.style.maxHeight = contentBlock.style.maxHeight
1183
- ? ''
1184
- : `${contentBlock.scrollHeight}px`;
1185
1035
  };
1186
- return { isActive, hasContent, icon, handleToggle };
1036
+ const buttonNode = hiddenBlocksNum ? renderFoldButton({ isUnfolded, onToggle }) : null;
1037
+ const blocksNode = blockWrapper(jsxs("div", { children: [visibleBlocks, jsx("div", { ref: containerRef, className: `transition-max-h duration-300 overflow-hidden max-h-0 ${containerClassName}`, children: hiddenBlocks })] }));
1038
+ return (jsx("div", { children: isFoldButtonOnTop ? (jsxs("div", { children: [buttonNode, blocksNode] })) : (jsxs("div", { children: [blocksNode, buttonNode] })) }));
1039
+ });
1040
+ const renderDefaultFoldButton = (props) => {
1041
+ const labels = ['Развернуть', 'Скрыть'];
1042
+ const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
1043
+ return (jsx(DefaultButton, { icon: icons[Number(props.isUnfolded)], label: labels[Number(props.isUnfolded)], onClick: props.onToggle }));
1187
1044
  };
1188
1045
 
1189
- const AccordionItem = JSX(({ label, isExpanded, blocks, context }) => {
1190
- const { isActive, hasContent, icon, handleToggle } = useActiveHandler$1({
1191
- blocks,
1192
- initialState: isExpanded,
1193
- });
1194
- return (jsxs("li", { className: "border-0 border-b border-solid border-main-divider last:border-b-0", children: [jsxs("button", { className: `border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full
1195
- font-sans text-h6 ${hasContent ? 'group cursor-pointer' : ''}
1196
- `, onClick: handleToggle, children: [jsx("span", { className: `text-xl font-medium pr-2.5`, children: label }), hasContent ? (jsx(Img, { image: icon, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })) : null] }), hasContent ? (jsx(AccordionItemInner, { isExpanded: isActive, blocks: blocks, context: context })) : null] }));
1046
+ const icons$1 = ['PlusIcon', 'MinusIcon'];
1047
+ const AccordionItem = JSX(({ label = '', blocks, context }) => {
1048
+ const foldableBlocks = blocks
1049
+ ? renderBlocksList$1({ context, blocks, className: '!p-0 mb-5' })
1050
+ : [];
1051
+ return (jsx("li", { className: "border-0 border-b border-solid border-main-divider last:border-b-0", children: jsx(Foldable, { hiddenBlocksNum: foldableBlocks.length, blocks: foldableBlocks, isFoldButtonOnTop: true, containerClassName: "grid grid-cols-12", renderFoldButton: (props) => (jsx(FoldButton, { icon: icons$1[Number(props.isUnfolded)], label: label, hasContent: Boolean(blocks?.length), onClick: props.onToggle })) }) }));
1197
1052
  });
1053
+ const FoldButton = JSX(({ icon, label, hasContent, onClick }) => (jsxs("button", { className: `border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer ${hasContent ? 'group cursor-pointer' : ''}`, onClick: onClick, children: [jsx("span", { className: `text-xl font-medium pr-2.5`, children: label }), hasContent ? (jsx(ImgInner, { image: icon, className: "text-primary-main flex-shrink-0", width: "24", height: "24", asSVG: true })) : null] })));
1198
1054
 
1199
1055
  const ALIGN_TITLE = {
1200
1056
  left: 'text-left',
@@ -1228,7 +1084,7 @@
1228
1084
  return (jsx("div", { className: "flex flex-wrap w-full justify-center gap-x-20 mt-8", children: benefitList.map(renderStep(benefitsBlockVersion)) }));
1229
1085
  };
1230
1086
  const setIconVersion = (benefitIcon, benefitsBlockVersion) => {
1231
- if (!benefitIcon.icon) {
1087
+ if (!benefitIcon.icon || benefitIcon?.iconVersion) {
1232
1088
  return benefitIcon;
1233
1089
  }
1234
1090
  benefitIcon.iconVersion = benefitsBlockVersion === 'secondary' ? 'white' : 'normal';
@@ -1236,7 +1092,7 @@
1236
1092
  };
1237
1093
  const renderStep = (benefitsBlockVersion) => (benefit, i) => {
1238
1094
  const description = (benefit?.description || undefined);
1239
- return (jsxs("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? (jsx(Img, { className: `w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${benefitsIconStyleMap[benefitsBlockVersion]}`, image: setIconVersion(benefit.icon, benefitsBlockVersion), asSVG: true })) : null, benefit?.icon?.src ? jsx(Img, { image: benefit.icon }) : null, jsxs("div", { className: "ml-5", children: [benefit?.label ? (jsx("h3", { className: `text-h6 m-0 ${benefitsTextStyleMap[benefitsBlockVersion]}`, children: benefit.label })) : null, renderDescription(description, benefitsBlockVersion)] })] }, String(i)));
1095
+ return (jsxs("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? (jsx(ImgInner, { className: `w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${benefitsIconStyleMap[benefitsBlockVersion]}`, image: setIconVersion(benefit.icon, benefitsBlockVersion), asSVG: true })) : null, benefit?.icon?.src ? jsx(ImgInner, { image: benefit.icon }) : null, jsxs("div", { className: "ml-5", children: [benefit?.label ? (jsx("h3", { className: `text-h6 m-0 ${benefitsTextStyleMap[benefitsBlockVersion]}`, children: benefit.label })) : null, renderDescription(description, benefitsBlockVersion)] })] }, String(i)));
1240
1096
  };
1241
1097
  const renderDescription = (description, benefitsBlockVersion) => {
1242
1098
  const benefitType = description ? description?.benefitType : null;
@@ -1255,12 +1111,19 @@
1255
1111
 
1256
1112
  const Bonus = JSX((props) => {
1257
1113
  const { context, className = '', title, description, bonusItems, ...rest } = props;
1258
- return (jsx(BlockWrapper, { className: `font-sans bg-white p-[50px] pb-9 ${className}`, context: context, ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), jsx("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems
1114
+ return (jsx(BlockWrapper, { className: `font-sans bg-white p-[50px] pb-9 ${className}`, context: context, ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center" }), jsx("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems?.length
1259
1115
  ? bonusItems.map((_, i) => {
1260
- return (jsx("div", { className: "flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-[14px] mx-[7px] even:mr-0 odd:ml-0 last:odd:mx-0", children: jsxs("div", { className: "flex justify-between w-full", children: [jsxs("div", { className: "mr-4", children: [jsx("div", { className: "text-h4", children: _.title }), jsx("div", { className: "text-xl-light mt-[14px] max-w-[488px]", children: _.description })] }), _.bonusCount ? (jsxs("div", { className: "relative -bottom-3 h-auto flex items-end mt-14 shrink-0", children: [jsx("span", { className: "font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7", children: _.bonusCount }), jsx("span", { className: "text-h2 bg-clip-text text-transparent bg-green-to-yellow", children: _.bonusName })] })) : null] }) }, String(i)));
1116
+ return (jsx("div", { className: "flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0", children: jsxs("div", { className: "flex justify-between w-full", children: [jsxs("div", { className: "flex flex-col justify-between mr-4", children: [jsxs("div", { children: [jsx("div", { className: "text-h4", children: _.title }), jsx("div", { className: "text-xl-light mt-2 max-w-[488px]", children: _.description })] }), _?.buttons?.length ? (jsx(ButtonSection, { context: context, buttons: _?.buttons })) : null] }), _.bonusItemContent?.bonusType
1117
+ ? renderBonusItemContent(_.bonusItemContent)
1118
+ : null] }) }, String(i)));
1261
1119
  })
1262
1120
  : null })] }) }));
1263
1121
  });
1122
+ const renderBonusItemContent = (bonusItemContent) => (jsx("div", { children: bonusItemContent.bonusType === 'count'
1123
+ ? renderBonusCount(bonusItemContent)
1124
+ : renderBonusImage(bonusItemContent) }));
1125
+ const renderBonusCount = (_) => (jsxs("div", { className: "relative -bottom-3 h-auto flex items-end mt-14 shrink-0", children: [_.bonusCount ? (jsx("span", { className: "font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7", children: _.bonusCount })) : null, _.bonusName ? (jsx("span", { className: "text-h2 bg-clip-text text-transparent bg-green-to-yellow", children: _.bonusName })) : null] }));
1126
+ const renderBonusImage = (_) => _.image ? (jsx(ImgInner, { className: `w-[50px] h-[50px] min-w-[50px] p-3 rounded-full`, image: _.image })) : null;
1264
1127
 
1265
1128
  function getElementsColsValue(className = '') {
1266
1129
  const colSpan = getColSpan(className);
@@ -1277,7 +1140,7 @@
1277
1140
 
1278
1141
  const BonusBenefitsBlock = JSX(({ context, className = '', title, subtitle, bonusBenefits, ...rest }) => (jsxs(BlockWrapper, { className: `font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${className}`, context: context, ...rest, children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: subtitle, headlineVersion: "M", align: "center" }), bonusBenefits?.length ? (jsx("div", { className: `grid gap-1 mt-8 ${getElementsColsValue(className)}`, children: bonusBenefits.map(renderBonusBenefit) })) : null] })));
1279
1142
  const renderBonusBenefit = (bonusBenefit, i) => {
1280
- return (jsxs("div", { className: "flex flex-col items-center max-w-[292px]", children: [bonusBenefit?.icon ? (jsx(Img, { className: "h-[160px] w-[180px] min-w-[180px] min-h-[160px]", image: bonusBenefit.icon, width: "180", height: "160" })) : null, jsx("div", { children: bonusBenefit?.label ? jsx("span", { className: "text-h6 m-0", children: bonusBenefit.label }) : null })] }, String(i)));
1143
+ return (jsxs("div", { className: "flex flex-col items-center max-w-[292px]", children: [bonusBenefit?.icon ? (jsx(ImgInner, { className: "h-[160px] w-[180px] min-w-[180px] min-h-[160px]", image: bonusBenefit.icon, width: "180", height: "160" })) : null, jsx("div", { children: bonusBenefit?.label ? jsx("span", { className: "text-h6 m-0", children: bonusBenefit.label }) : null })] }, String(i)));
1281
1144
  };
1282
1145
 
1283
1146
  const CalculatorValueBlock = JSX(({ title, value, postfix = '', prefix, className = '' }) => {
@@ -1329,16 +1192,15 @@
1329
1192
 
1330
1193
  const renderFootnote = (text) => text ? jsx("p", { className: "text-s-light text-secondary-text mt-7", children: text }) : null;
1331
1194
 
1332
- const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
1195
+ const getSanitizedValue = (_) => _.split(/\s+/).join('');
1333
1196
 
1334
1197
  const DISABLED_INPUT_CLASSES = 'disabled:border-main-stroke disabled:bg-main-divider';
1335
1198
  const InputRange = JSX(({ className, title, items = [], min = 1, max = 100, step = 1, value = min, disabled = false, onChange, }) => {
1336
- const getSanitizedValue = (_) => Number(_.replace(/\D/g, ''));
1337
1199
  const handleChange = (e) => {
1338
1200
  if (!onChange) {
1339
1201
  return;
1340
1202
  }
1341
- onChange(clamp(getSanitizedValue(e.target.value), min, max));
1203
+ onChange(clamp(Number(getSanitizedValue(e.target.value)), min, max));
1342
1204
  };
1343
1205
  const inputStyle = {
1344
1206
  backgroundSize: `${(((value - min) * 100) / (max - min)).toFixed(2)}% 100%`,
@@ -1373,7 +1235,7 @@
1373
1235
  };
1374
1236
 
1375
1237
  const consistentDataMap = new Map();
1376
- function useAsyncData$1(key, fetcher, { fallback } = {}) {
1238
+ function useAsyncData(key, fetcher, { fallback } = {}) {
1377
1239
  const args = useMemo(() => keyToArgs(key), [key]);
1378
1240
  const [data, setData] = useState();
1379
1241
  const [error, setError] = useState();
@@ -1432,9 +1294,6 @@
1432
1294
  }
1433
1295
  }
1434
1296
 
1435
- let impl = useAsyncData$1;
1436
- const useAsyncData = (...args) => impl(...args);
1437
-
1438
1297
  async function fetchJSON(url, options) {
1439
1298
  try {
1440
1299
  return await fetchJSONUnsafe(url, options);
@@ -1685,7 +1544,7 @@
1685
1544
  : `text-m-light text-secondary-text`;
1686
1545
  const iconClassName = isActiveBtn ? '' : `text-primary-main`;
1687
1546
  return (jsxs("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: `box-border relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]
1688
- ${btnClassName}`, children: [jsx(Img, { className: `h-6 w-6 min-w-6 min-h-6 mr-4 ${iconClassName}`, image: { ...tab?.icon, iconVersion: isActiveBtn ? 'white' : 'normal' }, width: "24", height: "24", asSVG: true }), jsxs("div", { className: "border-0", children: [jsx("div", { className: `${btnTitleClassName}`, children: tab?.title }), jsx("div", { className: `${btnDescClassName}`, children: tab.description })] })] }, String(i)));
1547
+ ${btnClassName}`, children: [jsx(ImgInner, { className: `h-6 w-6 min-w-6 min-h-6 mr-4 ${iconClassName}`, image: { ...tab?.icon, iconVersion: isActiveBtn ? 'white' : 'normal' }, width: "24", height: "24", asSVG: true }), jsxs("div", { className: "border-0", children: [jsx("div", { className: `${btnTitleClassName}`, children: tab?.title }), jsx("div", { className: `${btnDescClassName}`, children: tab.description })] })] }, String(i)));
1689
1548
  }
1690
1549
  function renderTabs({ tabsShift, tabsNav, activeSlideIndex, setActiveSlideIndex }) {
1691
1550
  return (jsxs("div", { children: [jsx("div", { style: { transform: `translateX(-${tabsShift * 388}px)` }, className: "flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000", children: jsx("div", { className: "w-full flex flex-nowrap items-end gap-2", children: tabsNav.map((tab, i) => renderNavButton$2({
@@ -1696,65 +1555,86 @@
1696
1555
  })) }) }), jsx("div", { className: "w-full h-2 bg-primary-main" })] }));
1697
1556
  }
1698
1557
 
1699
- const CurrencyInput = JSX(({ className = '', label, onChange, value = '', minValue = 0, maxValue = 300000, ...inputProps }) => {
1700
- const handleChange = (e) => {
1558
+ const adjustValue = (val) => onlyOneDot(setZeroStart(replaceCommaToDot(getSanitizedValue(val))));
1559
+ const localNumberFormat = (val) => new Intl.NumberFormat('ru-RU', {
1560
+ minimumFractionDigits: 0,
1561
+ maximumFractionDigits: 2,
1562
+ })
1563
+ .format(Number(getSanitizedValue(val)))
1564
+ .replace(',', '.');
1565
+ const onlyOneDot = (val) => {
1566
+ const matches = val.match(/\./g) || [];
1567
+ return matches.length > 1 ? val.slice(0, val.lastIndexOf('.')) : val;
1568
+ };
1569
+ const setZeroStart = (val) => {
1570
+ const isZeroStart = val.indexOf('0') === 0 && val.length === 2;
1571
+ const newVal = isZeroStart ? val.replace('0', '0.') : val;
1572
+ return newVal.startsWith('.') ? newVal.replace('.', '0.') : newVal;
1573
+ };
1574
+ const replaceCommaToDot = (val) => String(val.replace(',', '.').replace(/[^.\d]/g, ''));
1575
+
1576
+ const Input = JSX(({ className = '', inputClassName = '', id, name, type = 'text', label, value = '', valid = true, children, onChange, onBlur, ...inputProps }) => {
1577
+ const handleChange = useCallback((e) => {
1578
+ const validInputValue = e.target.validity.valid ? e.target.value : value;
1579
+ onChange(validInputValue);
1580
+ }, [onChange]);
1581
+ const handleBlur = useCallback((e) => {
1582
+ if (!onBlur) {
1583
+ return;
1584
+ }
1585
+ const validInputValue = e.target.validity.valid ? e.target.value : value;
1586
+ onBlur(validInputValue);
1587
+ }, [onBlur]);
1588
+ const paddingStyle = children ? 'pr-8' : '';
1589
+ const validStyle = valid
1590
+ ? 'border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text'
1591
+ : 'border-error';
1592
+ return (jsxs("div", { className: `relative ${className}`, children: [label ? jsx("label", { className: "block text-m-light mb-2", children: label }) : null, jsx("input", { className: `w-full border rounded-md text-primary-text outline-none p-4 ${paddingStyle} ${validStyle} ${inputClassName}`, id: id, name: name || id, type: type, value: value, onChange: handleChange, onBlur: handleBlur, ...inputProps }), children] }));
1593
+ });
1594
+
1595
+ const CurrencyInput = JSX(({ className = '', onChange, minValue = 0, maxValue = 300000, ...inputProps }) => {
1596
+ const handleChange = useCallback((inputValue) => {
1701
1597
  if (!onChange) {
1702
1598
  return;
1703
1599
  }
1704
- const newValue = e.target.value === '' ? '' : String(clamp(e.target.value, minValue, maxValue));
1705
- onChange(newValue);
1706
- };
1707
- return (jsxs("div", { className: className, children: [label ? jsx("label", { className: "block text-m-light mb-2", children: label }) : null, jsxs("div", { className: "h-[56px] relative flex items-center", children: [jsx("input", { type: "number", className: 'text-l pl-4 pr-8 w-full h-full rounded-md border border-solid border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text', onChange: handleChange, value: value, min: minValue, max: maxValue, ...inputProps }), jsx("span", { className: "text-xl-light absolute right-4", children: "\u20BD" })] })] }));
1600
+ const adjustedVal = adjustValue(inputValue);
1601
+ const clampVal = getClampValue(adjustedVal, clamp(Number(adjustedVal), minValue, maxValue));
1602
+ onChange(String(clampVal));
1603
+ }, [onChange]);
1604
+ const handleBlur = useCallback((inputValue) => {
1605
+ if (!onChange) {
1606
+ return;
1607
+ }
1608
+ onChange(localNumberFormat(inputValue));
1609
+ }, [onChange]);
1610
+ return (jsx(Input, { className: className, inputClassName: "w-full", onChange: handleChange, onBlur: handleBlur, ...inputProps, children: jsx("span", { className: "text-xl-light absolute right-4 bottom-4", children: "\u20BD" }) }));
1708
1611
  });
1612
+ const getClampValue = (val, clampVal) => Number(val) === clampVal ? val : String(clampVal);
1709
1613
 
1710
1614
  const AMOUNT_KEY = 'amount';
1711
1615
  const FORM_URL = 'https://www.rshb.ru/p2p/';
1712
1616
  const DEFAULT_TITLE = 'Укажите сумму перевода';
1713
1617
  const DEFAULT_LABEL = 'Сумма перевода';
1714
1618
  const DEFAULT_PLACEHOLDER = '1500';
1715
- const DEFAULT_BUTTON_TEXT = 'Далее';
1716
- const BUTTON_CLASS_PARAMS = {
1717
- version: 'primary',
1718
- className: 'w-full h-[56px] px-9 mt-6',
1719
- };
1720
- const CardTransfer = JSX(({ className = '', title = DEFAULT_TITLE, label = DEFAULT_LABEL, placeholder = DEFAULT_PLACEHOLDER, buttonText = DEFAULT_BUTTON_TEXT, ...rest }) => {
1619
+ const CardTransfer = JSX(({ className = '', title = DEFAULT_TITLE, label = DEFAULT_LABEL, placeholder = DEFAULT_PLACEHOLDER, button, context, ...rest }) => {
1620
+ const router = context.useRouter();
1621
+ const { handlerDecorator } = context;
1721
1622
  const [value, setValue] = useState('');
1722
- const isDisabled = !Number(value);
1723
- return (jsxs(BlockWrapper, { className: `p-[50px] flex flex-col items-center font-sans bg-white ${className}`, ...rest, children: [title ? jsx(Heading, { className: "max-w-[684px] pb-9", headingType: "h2", title: title }) : null, jsxs("form", { className: "w-[468px]", method: "POST", action: FORM_URL, children: [jsx(CurrencyInput, { name: AMOUNT_KEY, value: value, onChange: setValue, placeholder: placeholder, label: label }), jsx("button", { type: "submit", className: isDisabled
1724
- ? getDisabledButtonClasses(BUTTON_CLASS_PARAMS)
1725
- : getRegularButtonClasses(BUTTON_CLASS_PARAMS), disabled: isDisabled, children: buttonText })] })] }));
1623
+ const isDisabled = !Number(getSanitizedValue(value));
1624
+ const buttonStyle = isDisabled
1625
+ ? getDisabledButtonClasses({ version: button?.version })
1626
+ : getRegularButtonClasses({ className: 'text-white', version: button?.version });
1627
+ return (jsxs(BlockWrapper, { className: `p-[50px] flex flex-col items-center font-sans bg-white ${className}`, context: context, ...rest, children: [title ? jsx(Heading, { className: "max-w-[684px] pb-9", headingType: "h2", title: title }) : null, jsxs("form", { className: "w-[468px]", method: "POST", action: FORM_URL, children: [jsx(CurrencyInput, { name: AMOUNT_KEY, value: value, onChange: setValue, valid: value === '' || !isDisabled, placeholder: placeholder, label: label }), button?.text ? (jsx("button", { type: "submit", className: `w-full p-4 mt-6 ${buttonStyle} `, disabled: isDisabled, ...useLink({ router, handlerDecorator }, button), children: button.text })) : null] })] }));
1726
1628
  });
1727
1629
 
1728
- const iconVersionMap = {
1729
- default: 'normal',
1730
- primary: 'white',
1731
- secondary: 'black',
1732
- };
1733
1630
  const cardStyleMap = {
1734
1631
  black: 'bg-black',
1735
1632
  white: 'bg-white',
1736
1633
  };
1737
1634
  const CatalogCard = JSX(({ className = '', title, description, image, price, button, colors }) => {
1738
- return (jsxs("section", { className: `border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${className}`, role: "listitem", children: [image?.src ? jsx(Img, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? jsx("div", { className: "text-m-light text-left mb-4", children: description }) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-m-light text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }), colors.map(renderColorOption)] })) : null, price ? jsxs("div", { className: "text-h3 text-left", children: [price, "\u00A0\u20BD"] }) : null, button ? renderButton(button) : null] }));
1635
+ return (jsxs("section", { className: `border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${className}`, role: "listitem", children: [image?.src ? jsx(ImgInner, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? jsx("div", { className: "text-m-light text-left mb-4", children: description }) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-m-light text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }), colors.map(renderColorOption)] })) : null, price ? jsxs("div", { className: "text-h3 text-left", children: [price, "\u00A0\u20BD"] }) : null, button ? jsx(Button, { className: "mt-5 w-full", ...button }) : null] }));
1739
1636
  });
1740
1637
  const renderColorOption = (color, i) => (jsx("span", { className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
1741
- const renderButton = (button) => {
1742
- const { icon, iconRight, ...other } = button;
1743
- if (!button?.text) {
1744
- return null;
1745
- }
1746
- const iconVersion = iconVersionMap[button?.version || 'default'];
1747
- const leftIcon = renderButtonIcon({ ...icon, iconVersion });
1748
- const rightIcon = renderButtonIcon({ ...iconRight, iconVersion });
1749
- return (jsx(Button, { className: "mt-5 w-full", appendLeft: leftIcon, appendRight: rightIcon, ...other }));
1750
- };
1751
- const renderButtonIcon = (buttonIcon) => {
1752
- if (!buttonIcon || (!buttonIcon?.icon && !buttonIcon?.src)) {
1753
- return null;
1754
- }
1755
- const iconWidth = buttonIcon?.size?.width ? `${buttonIcon.size.width}` : '24';
1756
- return jsx(Img, { image: buttonIcon, width: iconWidth, height: "24", asSVG: true });
1757
- };
1758
1638
 
1759
1639
  const BLUR_BLOCK_CLASSES$1 = 'absolute top-0 bottom-0 w-[84px]';
1760
1640
  const CARD_FULL_VIEW_COUNT$1 = 3;
@@ -1765,7 +1645,7 @@
1765
1645
  cardsCount: cards.length,
1766
1646
  activeCardIndex,
1767
1647
  setActiveCardIndex,
1768
- }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} left-0 ${'bg-opacity-from-white'}` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} right-0 ${'bg-opacity-to-white'}` })] }));
1648
+ }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} left-0 bg-opacity-from-white` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} right-0 bg-opacity-to-white` })] }));
1769
1649
  });
1770
1650
  const renderCatalogCard = (context) => (card, i) => {
1771
1651
  return jsx(CatalogCard, { context: context, ...card }, String(i));
@@ -1800,7 +1680,7 @@
1800
1680
  const COLS_LENGTH_FOR_SCROLL$1 = 2;
1801
1681
  const COLUMN_WIDTH$2 = 4 * 80 + 4 * 4; // w-80 + gap-4 = 336px
1802
1682
 
1803
- const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${BORDER_CLASSES$1} ${GRADIENT}`, role: "columnheader", children: [icon && !image?.src && (jsx(Img, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", image: icon, width: "63", height: "63" })), image?.src && jsx(Img, { className: "mb-[18px]", image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(Button, { href: link.href, target: link.target, className: "mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs-light font-medium py-[11px]", children: link.text }) }) }))] })));
1683
+ const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${BORDER_CLASSES$1} ${GRADIENT}`, role: "columnheader", children: [icon && !image?.src && (jsx(ImgInner, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", image: icon, width: "63", height: "63" })), image?.src && jsx(ImgInner, { className: "mb-[18px]", image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(Button, { href: link.href, target: link.target, className: "mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs-light font-medium py-[11px]", children: link.text }) }) }))] })));
1804
1684
 
1805
1685
  const carouselContainerClassesMap = {
1806
1686
  comparison: 'flex gap-4 duration-1000',
@@ -1870,12 +1750,12 @@
1870
1750
  : null] }));
1871
1751
  });
1872
1752
  const renderShowMoreToggleButton = ({ isShowAllRow, onClick, }) => {
1873
- return (jsx("div", { className: "pr-[50px]", children: jsxs("div", { className: "flex w-full", children: [jsx("div", { className: FIRST_CELL_CLASSES$1 }), jsx("button", { onClick: onClick, className: "mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main", children: jsx("div", { className: "font-sans text-xs-light font-medium py-[11px]", children: !isShowAllRow ? 'Показать все параметры' : 'Скрыть' }) })] }) }));
1753
+ return (jsx("div", { className: "pr-[50px]", children: jsxs("div", { className: "flex w-full", children: [jsx("div", { className: FIRST_CELL_CLASSES$1 }), jsx("button", { onClick: onClick, className: "mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main", children: jsx("div", { className: "font-sans text-xs-light font-medium py-3", children: !isShowAllRow ? 'Показать все параметры' : 'Скрыть' }) })] }) }));
1874
1754
  };
1875
1755
 
1876
1756
  const renderErrorContent = (error) => {
1877
1757
  if (error?.errorContentType === 'Image' && error?.image) {
1878
- return jsx(Img, { image: error.image });
1758
+ return jsx(ImgInner, { image: error.image });
1879
1759
  }
1880
1760
  if (error?.errorContentType === 'Code' && error.code) {
1881
1761
  return jsx("div", { className: "font-mohave text-title-extra gradient-color-text", children: error.code });
@@ -1885,7 +1765,7 @@
1885
1765
  const ErrorBlock = JSX(({ context, className = '', title, subtitle, error, button }) => {
1886
1766
  const { useRouter, handlerDecorator } = context;
1887
1767
  const router = useRouter();
1888
- return (jsxs("section", { className: `flex flex-col justify-center items-center mt-12 ${className}`, role: "listitem", children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), title ? jsx(Heading, { headingType: "h1", className: "text-left mb-4", title: title }) : null, subtitle ? (jsx("div", { className: "font-sans text-xl-light text-left mb-7 max-w-[613px] text-center", children: subtitle })) : null, button?.text ? (jsx(Button, { className: "py-4 px-9", version: button?.version, ...useLink({ router, handlerDecorator }, button), children: button.text })) : null] }));
1768
+ return (jsxs("section", { className: `flex flex-col justify-center items-center mt-12 ${className}`, role: "listitem", children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), title ? jsx(Heading, { headingType: "h1", className: "text-left mb-4", title: title }) : null, subtitle ? (jsx("div", { className: "font-sans text-xl-light mb-7 max-w-[613px] text-center", children: subtitle })) : null, button?.text ? (jsx(Button, { className: "py-4 px-9", version: button?.version, ...useLink({ router, handlerDecorator }, button), children: button.text })) : null] }));
1889
1769
  });
1890
1770
 
1891
1771
  const roundTo = (value, precision = 2) => {
@@ -1967,45 +1847,33 @@
1967
1847
  });
1968
1848
  const renderCurrencyRow = (exchangeCurrencyItem) => {
1969
1849
  const code = exchangeCurrencyItem?.code;
1970
- return (jsxs("tr", { className: "pb-1 text-h6", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [code ? jsx(Img, { image: { icon: CURRENCY_ICONS_MAP[code] }, width: "24", height: "24" }) : null, jsx("span", { className: "ml-2", children: code })] }) }), jsx("td", { className: "pt-4 pl-11", children: formatCurrency(exchangeCurrencyItem?.sell) }), jsx("td", { className: "pt-4 pl-11", children: formatCurrency(exchangeCurrencyItem?.buy) })] }, code));
1850
+ return (jsxs("tr", { className: "pb-1 text-h6", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [code ? jsx(ImgInner, { image: { icon: CURRENCY_ICONS_MAP[code] }, width: "24", height: "24" }) : null, jsx("span", { className: "ml-2", children: code })] }) }), jsx("td", { className: "pt-4 pl-11", children: formatCurrency(exchangeCurrencyItem?.sell) }), jsx("td", { className: "pt-4 pl-11", children: formatCurrency(exchangeCurrencyItem?.buy) })] }, code));
1971
1851
  };
1972
1852
 
1973
- const CurrentLocation = JSX(({ className = '', address, distance }) => (jsxs("div", { className: `flex ${className}`, children: [jsx(Img, { image: { icon: 'GpsIcon' }, width: "24", height: "24", asSVG: true }), jsxs("div", { className: "ml-3", children: [address ? jsx("p", { className: "text-primary-main m-0 mb-1 text-l", children: address }) : null, distance ? (jsxs("p", { className: "text-secondary-text m-0 text-m-light", children: ["\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043E \u043E\u0444\u0438\u0441\u0430 - ", distance] })) : null] })] })));
1974
-
1975
- const calculateResult = (value, rate, precision) => {
1976
- const result = Number(formatValue(value)) * Math.pow(rate, precision ? -1 : 1);
1977
- return Number.isInteger(result) ? result : roundTo(result);
1978
- };
1979
- const formatValue = (value) => value.replace(/[^\d.,]/g, '').replace(',', '.');
1853
+ const CurrentLocation = JSX(({ className = '', address, distance }) => (jsxs("div", { className: `flex ${className}`, children: [jsx(ImgInner, { image: { icon: 'GpsIcon' }, width: "24", height: "24", asSVG: true }), jsxs("div", { className: "ml-3", children: [address ? jsx("p", { className: "text-primary-main m-0 mb-1 text-l", children: address }) : null, distance ? (jsxs("p", { className: "text-secondary-text m-0 text-m-light", children: ["\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043E \u043E\u0444\u0438\u0441\u0430 - ", distance] })) : null] })] })));
1980
1854
 
1981
- const tableFunc = (table) => (input) => {
1982
- const [, output] = table.find(([predicate]) => predicate(input)) || [];
1983
- return output;
1984
- };
1985
-
1986
- const callbackCurrencySelect = (props) => tableFunc([
1987
- [
1988
- (_) => _.value !== Currency.RUB && _.oppositeValue !== Currency.RUB,
1989
- () => props.handleConvert(props.value, Currency.RUB),
1990
- ],
1991
- [
1992
- (_) => _.value === Currency.RUB && _.oppositeValue === Currency.RUB,
1993
- () => props.handleConvert(props.value, Currency.USD),
1994
- ],
1995
- [() => true, () => props.handleConvert(props.value)],
1996
- ])(props)?.();
1997
-
1998
- const Input = JSX(({ className = '', id, name, type = 'text', placeholder, pattern, value, onChange }) => {
1999
- const handleChange = (e) => {
2000
- const validInputValue = e.target.validity.valid ? e.target.value : value;
2001
- onChange(validInputValue);
2002
- };
2003
- return (jsx("input", { className: `border rounded-md border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text text-primary-text outline-none ${className}`, id: id, name: name || id, type: type, pattern: pattern, placeholder: placeholder, value: value, onChange: handleChange }));
2004
- });
1855
+ function useOutsideClick(wrapperRef, setIsOpen) {
1856
+ useEffect(() => {
1857
+ function handleClickOutside(event) {
1858
+ if (wrapperRef &&
1859
+ wrapperRef.current &&
1860
+ event.target instanceof HTMLElement &&
1861
+ !wrapperRef.current.contains(event.target)) {
1862
+ setIsOpen(false);
1863
+ }
1864
+ }
1865
+ document.addEventListener('click', handleClickOutside);
1866
+ return () => {
1867
+ document.removeEventListener('click', handleClickOutside);
1868
+ };
1869
+ }, []);
1870
+ }
2005
1871
 
2006
- const SelectCustom = JSX(({ className = '', isBorder = true, label, options = [], value, onChange }) => {
1872
+ const Select = JSX(({ className = '', isBorder = true, label, options = [], value, onChange, placeholder = '' }) => {
2007
1873
  const [selectedItem, setSelectedItem] = useState(options[0] || { key: '', text: '' });
2008
1874
  const [isOpen, setIsOpen] = useState(false);
1875
+ const wrapperRef = useRef(null);
1876
+ useOutsideClick(wrapperRef, setIsOpen);
2009
1877
  const choiceOption = (option) => {
2010
1878
  setSelectedItem(option);
2011
1879
  setIsOpen(false);
@@ -2015,25 +1883,47 @@
2015
1883
  useEffect(() => {
2016
1884
  setSelectedItem(value || { key: '', text: '' });
2017
1885
  }, [value]);
2018
- return (jsxs("div", { className: `${isOpen ? 'z-10' : ''} ${className}`, children: [label ? jsx("span", { className: "mb-2", children: label }) : null, jsxs("div", { className: `relative w-fit`, children: [jsxs("div", { className: `text-m-light flex justify-between items-center min-h-[56px] mb-0.5 p-4 pr-8 text-primary-text cursor-pointer
2019
- ${getBorderStyle(isBorder)}`, onClick: () => setIsOpen(!isOpen), children: [selectedItem.text, jsx(Icon, { name: "ArrowUpIcon", width: "16", height: "16", className: `absolute right-3 ${isOpen ? '' : 'rotate-180'}` })] }), options.length > 0 ? (jsx("div", { className: `h-0 ${isOpen ? '' : 'overflow-hidden'}`, children: jsx("div", { className: `bg-white text-l rounded-md`, children: options.map(renderOption(choiceOption, isOpen, isSelected)) }) })) : null] })] }));
1886
+ return (jsxs("div", { className: `${className}`, ref: wrapperRef, children: [label ? jsx("span", { className: "mb-2 flex", children: label }) : null, jsxs("div", { className: `relative ${isOpen ? 'z-20' : 'z-10'}`, children: [jsxs("div", { className: `text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer
1887
+ ${getBorderStyle(isBorder)}`, onClick: () => setIsOpen(!isOpen), children: [jsx("p", { className: "p-4 pr-8 h-[56px] overflow-hidden text-ellipsis whitespace-nowrap", children: selectedItem?.text || placeholder }), jsx(Icon, { name: "ArrowUpIcon", width: "16", height: "16", className: `absolute right-3 ${isOpen ? '' : 'rotate-180'}` })] }), options?.length ? (jsx("div", { className: `h-0 ${renderOptionsStyle(isOpen)}`, children: jsx("div", { className: `bg-white text-l max-h-[256px] overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]`, children: options.map(renderOption(choiceOption, isOpen, isSelected)) }) })) : null] })] }));
2020
1888
  });
1889
+ const renderOptionsStyle = (isOpen) => (isOpen ? '' : 'overflow-hidden');
2021
1890
  const renderOption = (choiceOption, isOpen, isSelected) => (option, i) => {
2022
1891
  return (jsxs("div", { onClick: () => {
2023
1892
  choiceOption(option);
2024
- }, className: "flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11", children: [jsx("span", { children: option.text }), jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: ['absolute right-4 pt-0.5', isSelected(option) && isOpen ? '' : 'hidden'].join(' ') })] }, String(i)));
1893
+ }, className: "flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative", children: [jsx("span", { className: "min-h-6", children: option.text }), jsx(Icon, { name: "DoneSimpleIcon", width: "16", height: "16", className: ['absolute right-4 pt-0.5', isSelected(option) && isOpen ? '' : 'hidden'].join(' ') })] }, String(i)));
2025
1894
  };
2026
- function getBorderStyle(isBorder) {
2027
- return isBorder ? 'border border-main-stroke rounded-md hover:border-primary-hover' : '';
2028
- }
1895
+ const getBorderStyle = (isBorder) => isBorder ? 'border border-main-stroke rounded-md hover:border-primary-hover' : '';
2029
1896
 
2030
1897
  function renderInput(props) {
2031
1898
  const { placeholder, rates, selected, value, setValue, setSelected } = props;
2032
1899
  const ratesOptions = rates.map((_) => ({ key: _.code ?? '', text: _.code ?? '' }));
2033
1900
  const selectedValue = { key: selected, text: selected };
2034
- return (jsxs("div", { className: "relative flex", children: [jsx(Input, { className: "shrink-0 h-14 pl-4 pt-4 pb-4 text-l w-full appearance-none mr-[-90px]", placeholder: placeholder, type: "text", value: value, onChange: setValue }), ratesOptions.length ? (jsx(SelectCustom, { isBorder: false, onChange: (_) => setSelected(_.key), options: ratesOptions, value: selectedValue })) : null] }));
1901
+ return (jsxs("div", { className: "relative flex", children: [jsx(Input, { className: "shrink-0 text-l w-full appearance-none mr-[-90px]", placeholder: placeholder, type: "text", value: value, onChange: setValue }), ratesOptions.length ? (jsx(Select, { isBorder: false, onChange: (_) => setSelected(_.key), options: ratesOptions, value: selectedValue })) : null] }));
2035
1902
  }
2036
1903
 
1904
+ const calculateResult = (value, rate, precision) => {
1905
+ const result = Number(formatValue(value)) * Math.pow(rate, precision ? -1 : 1);
1906
+ return Number.isInteger(result) ? result : roundTo(result);
1907
+ };
1908
+ const formatValue = (value) => value.replace(/[^\d.,]/g, '').replace(',', '.');
1909
+
1910
+ const tableFunc = (table) => (input) => {
1911
+ const [, output] = table.find(([predicate]) => predicate(input)) || [];
1912
+ return output;
1913
+ };
1914
+
1915
+ const callbackCurrencySelect = (props) => tableFunc([
1916
+ [
1917
+ (_) => _.value !== Currency.RUB && _.oppositeValue !== Currency.RUB,
1918
+ () => props.handleConvert(props.value, Currency.RUB),
1919
+ ],
1920
+ [
1921
+ (_) => _.value === Currency.RUB && _.oppositeValue === Currency.RUB,
1922
+ () => props.handleConvert(props.value, Currency.USD),
1923
+ ],
1924
+ [() => true, () => props.handleConvert(props.value)],
1925
+ ])(props)?.();
1926
+
2037
1927
  const ExchangeCurrencyCalculator = JSX(({ context, className = '', currencyRatesBuy, currencyRatesSell, button }) => {
2038
1928
  const { useRouter, handlerDecorator } = context;
2039
1929
  const router = useRouter();
@@ -2128,7 +2018,7 @@
2128
2018
  transparent: 'text-white',
2129
2019
  };
2130
2020
  const Logo = JSX(({ className = '', href, logo, children = logo?.title, targetBlank, bgColor = 'bg-white', showTitle = true, }) => {
2131
- return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [logo?.image?.src ? (jsx(Img, { image: logo.image, className: SVG_COLOR[bgColor], width: "40", height: "45", asSVG: true })) : (jsx(Img, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]} w-10`, width: "40", height: "45", asSVG: true })), showTitle ? renderTitle$1(children, bgColor, logo?.title) : null] }));
2021
+ return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [logo?.image?.src ? (jsx(ImgInner, { image: logo.image, className: SVG_COLOR[bgColor], width: "40", height: "45", asSVG: true })) : (jsx(ImgInner, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]} w-10`, width: "40", height: "45", asSVG: true })), showTitle ? renderTitle$1(children, bgColor, logo?.title) : null] }));
2132
2022
  });
2133
2023
  const renderTitle$1 = (children, bgColor, title) => {
2134
2024
  const text = children || title || 'Россельхозбанк';
@@ -2149,11 +2039,11 @@
2149
2039
  const SearchBarLabelClassName = isMobile ? 'text-s' : 'text-l-light';
2150
2040
  const SearchBarInputClassName = isMobile ? ' placeholder-transparent' : 'h-full';
2151
2041
  const inputPlaceholder = isMobile ? 'some search' : undefined;
2152
- return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [jsx("div", { className: LoupeIconClassName, children: jsx(Img, { image: "LoupeIcon", width: "24", height: "24" }) }), term ? null : (jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text ${SearchBarLabelClassName}`, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), jsx("input", { id: "search-bar-input", className: `h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border
2042
+ return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsxs("div", { className: "absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none", children: [jsx("div", { className: LoupeIconClassName, children: jsx(ImgInner, { image: "LoupeIcon", width: "24", height: "24" }) }), term ? null : (jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text ${SearchBarLabelClassName}`, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443" }))] }), jsx("input", { id: "search-bar-input", className: `h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border
2153
2043
  outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${SearchBarInputClassName}`, value: term, onChange: (e) => setTerm(e.target.value), type: "text", name: "search-bar-input", placeholder: inputPlaceholder }), isMobile ? (jsx("button", { className: "visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none", onClick: (e) => {
2154
2044
  e.preventDefault();
2155
2045
  setTerm('');
2156
- }, children: jsx(Img, { image: "CloseIcon", width: "24", height: "24" }) })) : (jsx(Button, { version: "primary", text: "\u041D\u0430\u0439\u0442\u0438", className: "invisible peer-focus:visible absolute top-[3px] right-1", onClick: (ev) => {
2046
+ }, children: jsx(ImgInner, { image: "CloseIcon", width: "24", height: "24" }) })) : (jsx(Button, { version: "primary", text: "\u041D\u0430\u0439\u0442\u0438", className: "invisible peer-focus:visible absolute top-[3px] right-1", onClick: (ev) => {
2157
2047
  ev?.preventDefault();
2158
2048
  console.log('click');
2159
2049
  }, children: jsx("div", { className: "text-s px-9 py-2.5", children: "\u041D\u0430\u0439\u0442\u0438" }) }))] }));
@@ -2170,7 +2060,7 @@
2170
2060
  text: 'Обратная связь',
2171
2061
  href: '/',
2172
2062
  target: '_blank',
2173
- }) })) : null] }));
2063
+ }), ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] }));
2174
2064
  });
2175
2065
  const renderContact = (item, index) => {
2176
2066
  const { type, text, description } = item;
@@ -2257,7 +2147,7 @@
2257
2147
  ? 'bg-white hover:bg-secondary-hover'
2258
2148
  : 'border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main';
2259
2149
  const isPrimary = version === 'primary';
2260
- return (jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? (jsx(Img, { image: icon, imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
2150
+ return (jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? (jsx(ImgInner, { image: icon, imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
2261
2151
  });
2262
2152
 
2263
2153
  const SocialMedia = JSX(({ className = '', media, version, context, children }) => {
@@ -2292,10 +2182,10 @@
2292
2182
  ..._,
2293
2183
  flexBasis: `${_.month.length * colSize}%`,
2294
2184
  }));
2295
- return (jsxs("div", { className: "w-full flex flex-col justify-center mt-[54px]", children: [jsx("div", { className: "flex w-full mb-3 text-h6 text-center", children: mappedCalendar.map((_) => renderMonthNames(_, colSize)) }), jsx("div", { className: "flex w-full", children: mappedCalendar.map((_, ind) => (jsxs("div", { className: "pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0", style: { flexBasis: _.flexBasis }, children: [jsx("div", { className: "flex", children: renderMonthImages(_) }), jsxs("div", { className: "text-s-light text-primary-text mt-3", children: [jsx("span", { children: _.text }), "\u2009", jsx("span", { className: "text-primary-main", children: _.greenText })] })] }, `monthItem-${ind}`))) })] }));
2185
+ return (jsxs("div", { className: "w-full flex flex-col justify-center mt-13", children: [jsx("div", { className: "flex w-full mb-3 text-h6 text-center", children: mappedCalendar.map((_) => renderMonthNames(_, colSize)) }), jsx("div", { className: "flex w-full", children: mappedCalendar.map((_, ind) => (jsxs("div", { className: "pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0", style: { flexBasis: _.flexBasis }, children: [jsx("div", { className: "flex", children: renderMonthImages(_) }), jsxs("div", { className: "text-s-light text-primary-text mt-3", children: [jsx("span", { children: _.text }), "\u2009", jsx("span", { className: "text-primary-main", children: _.greenText })] })] }, `monthItem-${ind}`))) })] }));
2296
2186
  };
2297
- const renderMonthNames = (item, colSize) => item.month.map((_, i) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.text }, `monthName-${i}`)));
2298
- const renderMonthImages = (item) => item.month.map((_) => _.image?.src ? (jsx("div", { className: "h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0", children: jsx(Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
2187
+ const renderMonthNames = (item, colSize) => item.month?.map((_, i) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.name }, `monthName-${i}`)));
2188
+ const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0", children: jsx(ImgInner, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
2299
2189
 
2300
2190
  const checkIsHrefSameOrigin = (href, router) => getOrigin(href) === getOrigin(router.href);
2301
2191
 
@@ -2359,7 +2249,7 @@
2359
2249
  };
2360
2250
  const HeaderSecondaryMenu = JSX(({ className, defaultLocation = '', bgColor = 'bg-white' }) => {
2361
2251
  const [city, getCity] = useGeolocation(defaultLocation);
2362
- return (jsxs("div", { className: `flex items-center ${className || ''}`, children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: city, ariaLabel: "\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435", onClick: getCity, bgColor: bgColor }), jsx(TopItem, { className: "mr-7", flat: true, href: "#", text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", ariaLabel: "\u0421\u043F\u0438\u0441\u043E\u043A \u0432\u0441\u0435\u0445 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043E\u0444\u0438\u0441\u043E\u0432 \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u043E\u0432", bgColor: bgColor }), jsx(HeaderSecondaryMenuButton, { className: `mr-5 group ${COLORS_MAP[bgColor]}`, ariaLabel: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", children: jsx(Img, { image: { icon: 'LoupeIcon', iconVersion: LINKS_ICON_VERSION_MAP[bgColor] }, className: "h-full pointer-events-none", imageClassName: "group-hover:text-primary-hover group-hover:invert-0 pointer-events-none", asSVG: true }) }), jsx(HeaderSecondaryMenuButton, { className: `${LINKS_COLORS_MAP[bgColor]} group min-w-[32px] min-h-[32px]`, ariaLabel: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0441\u0441\u044B\u043B\u043A\u0438", children: jsx(Img, { image: { icon: 'GridIcon', iconVersion: LINKS_ICON_VERSION_MAP[bgColor] }, className: "h-full bg-main-divider/20 rounded-full pointer-events-none", imageClassName: "group-hover:text-primary-hover group-hover:invert-0", asSVG: true }) })] }));
2252
+ return (jsxs("div", { className: `flex items-center ${className || ''}`, children: [jsx(TopItem, { className: "mr-5", flat: true, href: "#", text: city, ariaLabel: "\u041C\u0435\u0441\u0442\u043E\u043F\u043E\u043B\u043E\u0436\u0435\u043D\u0438\u0435", onClick: getCity, bgColor: bgColor }), jsx(TopItem, { className: "mr-7", flat: true, href: "#", text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", ariaLabel: "\u0421\u043F\u0438\u0441\u043E\u043A \u0432\u0441\u0435\u0445 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u043E\u0444\u0438\u0441\u043E\u0432 \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u043E\u0432", bgColor: bgColor }), jsx(HeaderSecondaryMenuButton, { className: `mr-5 group ${COLORS_MAP[bgColor]}`, ariaLabel: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", children: jsx(ImgInner, { image: { icon: 'LoupeIcon', iconVersion: LINKS_ICON_VERSION_MAP[bgColor] }, className: "h-full pointer-events-none", imageClassName: "group-hover:text-primary-hover group-hover:invert-0 pointer-events-none", asSVG: true }) }), jsx(HeaderSecondaryMenuButton, { className: `${LINKS_COLORS_MAP[bgColor]} group min-w-[32px] min-h-[32px]`, ariaLabel: "\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0441\u0441\u044B\u043B\u043A\u0438", children: jsx(ImgInner, { image: { icon: 'GridIcon', iconVersion: LINKS_ICON_VERSION_MAP[bgColor] }, className: "h-full bg-main-divider/20 rounded-full pointer-events-none", imageClassName: "group-hover:text-primary-hover group-hover:invert-0", asSVG: true }) })] }));
2363
2253
  });
2364
2254
 
2365
2255
  const maxBy = (discriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
@@ -2407,7 +2297,7 @@
2407
2297
  const HeaderSubMenu = JSX(({ context, subItems = [], bgColor }) => {
2408
2298
  const [menuVisible, setMenuVisible] = useState(false);
2409
2299
  const router = context.useRouter();
2410
- const { handlerDecorator, IntersectionObserverTag } = context;
2300
+ const { handlerDecorator } = context;
2411
2301
  const [visibleItemsCount, setVisibleItemsCount] = useState(subItems.length);
2412
2302
  const dropDownMenuItems = subItems.slice(visibleItemsCount);
2413
2303
  const activeSubItem = findActiveSubItem(router)(subItems);
@@ -2486,13 +2376,13 @@
2486
2376
  const btnClassName = isActiveBtn
2487
2377
  ? 'shadow-dark-blue/42 border-primary-main'
2488
2378
  : `ease-in duration-300 border-main-stroke`;
2489
- return (jsxs("button", { type: "button", onClick: onClick, className: `p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative ${btnClassName}`, children: [slide?.icon ? (jsx(Img, { className: "p-5 rounded-full bg-secondary-light mr-[30px]", image: slide.icon, width: "108", height: "108" })) : null, jsxs("div", { className: "flex gap-3.5", children: [slide?.sum ? renderValueBlock('страховая сумма', slide.sum) : null, slide?.fee ? renderValueBlock('страховой взнос', slide.fee) : null] }), renderDoneIcon(isActiveBtn)] }, String(i)));
2379
+ return (jsxs("button", { type: "button", onClick: onClick, className: `p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative ${btnClassName}`, children: [slide?.icon ? (jsx(ImgInner, { className: "p-5 rounded-full bg-secondary-light mr-[30px]", image: slide.icon, width: "108", height: "108" })) : null, jsxs("div", { className: "flex gap-3.5", children: [slide?.sum ? renderValueBlock('страховая сумма', slide.sum) : null, slide?.fee ? renderValueBlock('страховой взнос', slide.fee) : null] }), renderDoneIcon(isActiveBtn)] }, String(i)));
2490
2380
  }
2491
2381
  function renderValueBlock(title, sum) {
2492
2382
  return (jsxs("div", { className: "flex flex-col text-left whitespace-pre", children: [jsxs("span", { className: "text-h6", children: [addSpacesBetweenNumbers(sum), " \u20BD"] }), jsx("span", { className: "text-secondary-text text-l mt-1", children: title })] }));
2493
2383
  }
2494
2384
  function renderDoneIcon(isActive) {
2495
- return isActive ? (jsx(Img, { className: `h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4`, image: "DoneIcon", width: "24", height: "24" })) : null;
2385
+ return isActive ? (jsx(ImgInner, { className: `h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4`, image: "DoneIcon", width: "24", height: "24" })) : null;
2496
2386
  }
2497
2387
 
2498
2388
  const InsuranceAmountBlock = JSX(({ className = '', context, title, insuranceTabs = [], button, ...rest }) => {
@@ -2530,59 +2420,25 @@
2530
2420
  return (jsxs(BlockWrapper, { context: context, className: `flex justify-between font-sans p-9 box-border relative min-h-[320px]
2531
2421
  ${getTileMinHeight(className)}
2532
2422
  ${VersionStyleMap[version]}
2533
- ${className}`, ...rest, children: [jsx(BaseTile, { context: context, className: "z-[1]", title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[509px] mb-6
2534
- ${textColorClass}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttonsWithClass, className: "flex gap-4" })) : null, children: jsxs("div", { className: "flex flex-1 items-center", children: [qr?.src ? (jsx("div", { className: `flex justify-center mr-5 bg-white rounded-md ${containerStyle}`, children: jsx(Img, { className: "w-fit", image: qr }) })) : null, renderList(version, items)] }) }), image?.src ? (jsx("div", { className: "absolute right-0 bottom-0", children: jsx(Img, { image: image }) })) : null] }));
2423
+ ${className}`, ...rest, children: [jsx(BaseTile, { context: context, className: "z-10", title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[509px] mb-6
2424
+ ${textColorClass}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttonsWithClass, className: "flex gap-4" })) : null, children: jsxs("div", { className: "flex flex-1 items-center", children: [qr?.src ? (jsx("div", { className: `flex justify-center mr-5 bg-white rounded-md ${containerStyle}`, children: jsx(ImgInner, { className: "w-fit", image: qr, alt: "QR-\u043A\u043E\u0434" }) })) : null, renderList(version, items)] }) }), image?.src ? (jsx("div", { className: "absolute right-0 bottom-0", children: jsx(ImgInner, { image: image }) })) : null] }));
2535
2425
  });
2536
2426
  const renderList = (version, items) => {
2537
- return items?.length ? (jsx(List, { items: items, itemClassName: "text-l-light mb-2 last:mb-0", version: version === 'primary' ? 'tile' : 'tile-white' })) : (jsx("span", { className: "text-m-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
2427
+ return items?.length ? (jsx(List, { items: items, itemClassName: "text-l-light mb-2 last:mb-0", version: version })) : (jsx("span", { className: "text-m-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
2538
2428
  };
2539
2429
 
2540
2430
  const OfficeServicesBlock = JSX(({ className = '', context, title, servicesList, anchor = '', ...rest }) => {
2541
2431
  return (jsxs(BlockWrapper, { context: context, id: anchor, className: `font-sans bg-white p-8 flex flex-col ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h5", className: "mb-5", title: title }) : null, servicesList?.length ? servicesList.map(renderListItems) : null] }));
2542
2432
  });
2543
- const renderListItems = (itemList, i) => (jsxs("li", { className: "flex mb-5 last:mb-0 list-none", children: [itemList.icon ? (jsx(Img, { className: "mr-3 min-w-6 min-h-6 w-6 h-6", width: "24", height: "24", asSVG: true, image: itemList.icon })) : null, itemList.label ? jsx("span", { className: "text-l-light", children: itemList.label }) : null] }, `list_item_${String(i)}`));
2544
-
2545
- const foldableBlockClassNames = 'transition-all duration-300 max-h-0 overflow-hidden';
2546
- const useActiveHandler = ({ initialState = false }) => {
2547
- const [isActive, setIsActive] = useState(initialState);
2548
- const icon = isActive ? 'ArrowUpIcon' : 'ArrowDownIcon';
2549
- const handleToggle = (e) => {
2550
- const currentTarget = e.currentTarget;
2551
- if (!currentTarget) {
2552
- return;
2553
- }
2554
- setIsActive(!isActive);
2555
- const wrapperBlock = currentTarget.previousSibling;
2556
- const contentBlock = wrapperBlock.getElementsByClassName(foldableBlockClassNames)[0];
2557
- contentBlock.style.maxHeight = contentBlock.style.maxHeight
2558
- ? ''
2559
- : `${contentBlock.scrollHeight}px`;
2560
- };
2561
- return { icon, handleToggle, isActive };
2562
- };
2433
+ const renderListItems = (itemList, i) => (jsxs("li", { className: "flex mb-5 last:mb-0 list-none", children: [itemList.icon ? (jsx(ImgInner, { className: "mr-3 min-w-6 min-h-6 w-6 h-6", width: "24", height: "24", asSVG: true, image: itemList.icon })) : null, itemList.label ? jsx("span", { className: "text-l-light", children: itemList.label }) : null] }, `list_item_${String(i)}`));
2563
2434
 
2564
- const Foldable = JSX(({ blocks = [], hiddenBlocksNum = 0, foldButtonClasses, foldButtonLabel, foldButtonDataTheme, isUnfolded, containerClasses, render = (_) => _, }) => {
2565
- const blocksToHide = clamp(hiddenBlocksNum, 0, blocks.length);
2566
- const { icon, handleToggle, isActive } = useActiveHandler({
2567
- initialState: isUnfolded,
2568
- });
2569
- const buttonClassName = foldButtonClasses ||
2570
- 'border-none bg-primary-main hover:bg-primary-hover focus:bg-primary-main active:bg-primary-active px-0 py-5 mb-[1px] w-full font-sans text-white text-h4 flex justify-center cursor-pointer';
2571
- const getFoldButtonLabel = isActive ? 'Скрыть' : foldButtonLabel;
2572
- return blocks ? (jsxs("div", { children: [renderBlocks(blocks, render, { blocksToHide, isActive, containerClasses }), hiddenBlocksNum ? (jsxs("button", { className: buttonClassName, "data-theme": foldButtonDataTheme, onClick: handleToggle, children: [jsx("span", { className: "pr-3", children: getFoldButtonLabel }), icon ? (jsx(Icon, { className: "my-auto", name: icon, iconVersion: "white", width: "20", height: "20", asSVG: true })) : null] })) : null] })) : null;
2573
- });
2574
- const renderBlocks = (blocks, render, { blocksToHide, isActive, containerClasses = '' }) => {
2575
- const visibleBlocks = blocks.slice(0, blocks.length - blocksToHide);
2576
- const hiddenBlocks = blocksToHide > 0 ? blocks.slice(-blocksToHide) : [];
2577
- return render(jsxs("div", { children: [visibleBlocks, jsx("div", { className: `${foldableBlockClassNames} ${containerClasses}`, children: hiddenBlocks })] }), isActive);
2578
- };
2579
-
2580
- const OtherProductsItem = JSX(({ label, blocks, context, dataTheme, isUnfolded }) => {
2435
+ const icons = ['ArrowDownIcon', 'ArrowUpIcon'];
2436
+ const OtherProductsItem = JSX(({ label = '', blocks, context, dataTheme, isUnfolded }) => {
2581
2437
  const foldableBlocks = renderBlocksList$1({
2582
2438
  context,
2583
2439
  blocks,
2584
2440
  });
2585
- return (jsx("div", { className: "border-0 border-b border-solid border-main-divider", children: blocks?.length ? (jsx(Foldable, { foldButtonDataTheme: dataTheme, hiddenBlocksNum: blocks?.length, blocks: foldableBlocks, isUnfolded: isUnfolded, context: context, foldButtonLabel: label, containerClasses: "grid grid-cols-12 gap-1 border-box", render: (children) => jsx(Wrapper$1, { children: children }) })) : null }));
2441
+ return (jsx("div", { className: "\u02DDborder-0 border-b border-solid border-main-divider", children: blocks?.length ? (jsx(Foldable, { blocks: foldableBlocks, hiddenBlocksNum: blocks?.length, unfoldedByDefault: isUnfolded, containerClassName: "grid grid-cols-12 gap-1 border-box", blockWrapper: (children) => jsx(Wrapper$1, { children: children }), renderFoldButton: (props) => (jsx(DefaultButton, { icon: icons[Number(props.isUnfolded)], label: label, dataTheme: dataTheme, onClick: props.onToggle })) })) : null }));
2586
2442
  });
2587
2443
  const Wrapper$1 = JSX(({ children }) => {
2588
2444
  return jsx("div", { className: "box-border", children: children });
@@ -2640,14 +2496,14 @@
2640
2496
  function renderNavButton({ slide, i, activeSlideIndex, onClick, version }) {
2641
2497
  const isActiveBtn = i === activeSlideIndex;
2642
2498
  const btnClassName = isActiveBtn
2643
- ? 'bg-white shadow-dark-blue/42 min-w-[354px] border-none p-6'
2499
+ ? 'bg-white shadow-dark-blue/42 min-w-[350px] border-none p-6'
2644
2500
  : `min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur
2645
2501
  ${VersionStyleMap[version]}`;
2646
2502
  const btnTitleClassName = isActiveBtn
2647
2503
  ? 'text-primary-text !text-h6 p-2'
2648
2504
  : `text-l pb-1 ${productBlockStyleMap[version].title}`;
2649
2505
  const btnDescClassName = isActiveBtn
2650
- ? 'text-secondary-text text-l-light mt-2.5'
2506
+ ? 'text-secondary-text text-l-light'
2651
2507
  : `text-m-light ${productBlockStyleMap[version].text}`;
2652
2508
  const additionalBorder = version === 'secondary' ? 'border-white/50' : 'border-black/50';
2653
2509
  return (jsx("button", { type: "button", onClick: onClick, "aria-label": slide?.title, className: `box-border relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0
@@ -2670,7 +2526,7 @@
2670
2526
 
2671
2527
  const RecommendationCard = JSX(({ context, className = '', title, description, items, image, version, socialMedia }) => {
2672
2528
  const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
2673
- const tileImage = image?.src ? (jsx(Img, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
2529
+ const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
2674
2530
  return (jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${className}`, role: "listitem", children: jsx(BaseTile, { context: context, className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? jsx(Description, { className: "mb-2", description: description }) : null, items?.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items, version: version })) : null, socialMedia ? (jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia, version: version, context: context })) : null] }) }) }));
2675
2531
  });
2676
2532
 
@@ -2707,37 +2563,29 @@
2707
2563
  };
2708
2564
 
2709
2565
  const SAFEBOXES_URL = '/api/v1/safeboxes';
2710
- function useFetchSafeBoxes(regionCode) {
2566
+ const EMPTY_VALUE = [];
2567
+ function useSafeBoxes(regionCode) {
2711
2568
  const { data } = useAsyncData(regionCode ? `${SAFEBOXES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes);
2712
- return data || [];
2569
+ return data || EMPTY_VALUE;
2713
2570
  }
2714
- const fetchSafeBoxes = (url) => {
2715
- if (!url) {
2716
- return {};
2717
- }
2718
- return fetchJSON(url, { method: 'GET' });
2571
+ const fetchSafeBoxes = async (url) => {
2572
+ const result = await fetchJSON(url, { method: 'GET' });
2573
+ return result || EMPTY_VALUE;
2719
2574
  };
2720
2575
 
2721
- const selectStyle = {
2722
- background: `url('/icons/ArrowDownIcon.svg') right 16px top 50% / 21px no-repeat`,
2723
- };
2724
- const Select = JSX(({ className = '', id, name, children, value, onChange }) => {
2725
- return (jsx("select", { className: `appearance-none pl-0.5 ${className}`, style: selectStyle, id: id, name: name || id, value: value, onChange: (e) => onChange(e.target.value), placeholder: "", children: children }));
2726
- });
2727
-
2728
- const SelectOption = JSX(({ className = '', value, selected, disabled = false, children }) => {
2729
- return (jsx("option", { className: className, value: `${value}`, selected: selected, disabled: disabled, children: children }));
2730
- });
2731
-
2732
- const WrapperSelect = JSX(({ data, fieldLabel, fieldValue, selected, placeholder, setSelected, label }) => {
2733
- return (jsxs("div", { children: [jsx("span", { className: "block text-m-light mb-2", children: label }), jsxs(Select, { className: `h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer ${!selected ? 'text-secondary-text' : ''}`, value: selected, onChange: (_) => setSelected(_), children: [placeholder ? jsx(SelectOption, { value: "", children: placeholder }) : null, data.map((_, i) => (jsx(SelectOption, { value: _?.[fieldValue || fieldLabel], children: _?.[fieldLabel] }, String(i))))] })] }));
2576
+ const WrapperSelect = JSX(({ data, fieldLabel, fieldValue, selected, placeholder = '', setSelected, label }) => {
2577
+ const dataFormat = data
2578
+ .filter(Boolean)
2579
+ .map((_) => ({ key: _?.[fieldValue || fieldLabel], text: _?.[fieldLabel] }));
2580
+ const selectedObj = dataFormat.find((_) => _.key === selected);
2581
+ return (jsx(Select, { options: dataFormat, label: label, placeholder: placeholder || selected, onChange: (_) => setSelected(_.key), value: selectedObj }));
2734
2582
  });
2735
2583
 
2736
2584
  const RegionsAndBranches = JSX(({ regions = [], selectedRegion, onSelectedRegion: onSelectedRegion, branches = [], selectedBranch, onSelectedBranch, }) => {
2737
- return (jsxs("div", { className: "flex justify-between mb-6", children: [jsx("div", { className: "w-full mr-4", children: jsx(WrapperSelect, { data: regions, fieldValue: "code", fieldLabel: "name", selected: selectedRegion, setSelected: onSelectedRegion, label: "\u0413\u043E\u0440\u043E\u0434" }) }), jsx("div", { className: "w-full", children: jsx(WrapperSelect, { data: branches, fieldValue: "branchCode", fieldLabel: "address", selected: selectedBranch, setSelected: onSelectedBranch, label: "\u041E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435" }) })] }));
2585
+ return (jsxs("div", { className: "flex justify-between gap-4 mb-6", children: [jsx("div", { className: "max-w-[396px] w-1/2", children: jsx(WrapperSelect, { data: regions, fieldValue: "code", fieldLabel: "name", selected: selectedRegion, setSelected: onSelectedRegion, label: "\u0420\u0435\u0433\u0438\u043E\u043D" }) }), jsx("div", { className: "max-w-[396px] w-1/2", children: jsx(WrapperSelect, { data: branches, fieldValue: "branchCode", fieldLabel: "address", selected: selectedBranch, setSelected: onSelectedBranch, label: "\u041E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435" }) })] }));
2738
2586
  });
2739
2587
 
2740
- const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer", children: [jsx("input", { className: "appearance-none flex justify-center items-center shrink-0 w-5 h-5 border-2 border-primary-main\n rounded-full cursor-pointer after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main", type: "radio", value: value, name: name, checked: checked, onChange: onChange }), text ? jsx("span", { className: "font-sans ml-3 cursor-pointer", children: text }) : null] }) })));
2588
+ const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer", children: [jsx("input", { className: "appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-checkbox-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer", type: "radio", value: value, name: name, checked: checked, onChange: onChange }), text ? jsx("span", { className: "font-sans ml-3 cursor-pointer", children: text }) : null] }) })));
2741
2589
 
2742
2590
  const RenderRadioButtons = JSX(() => {
2743
2591
  const [selectedOption, setSelectedOption] = useState('option2');
@@ -2754,23 +2602,11 @@
2754
2602
  return (jsxs("div", { className: "flex justify-between mb-6", children: [jsx("div", { className: "mr-4 w-full", children: jsx(WrapperSelect, { data: caseVolumes, fieldLabel: "volume", selected: selectedCaseVolume, setSelected: onSelectedCaseVolume, label: "\u0420\u0430\u0437\u043C\u0435\u0440", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0430\u0437\u043C\u0435\u0440" }) }), jsx("div", { className: "w-full", children: jsx(WrapperSelect, { data: safeBoxCases, fieldLabel: "safeBoxCasesSize", selected: selectedBoxSize, setSelected: onSelectedBoxSize, label: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u044F\u0447\u0435\u0439\u043A\u0438, \u043C\u043C (\u0412\u0445\u0428\u0445\u0414)", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 \u044F\u0447\u0435\u0439\u043A\u0438" }) })] }));
2755
2603
  });
2756
2604
 
2757
- const getCoordinates = (data) => {
2758
- if (Array.isArray(data)) {
2759
- return data.map((_) => _.gpsLatitude && _.gpsLongitude ? [_.gpsLatitude, _.gpsLongitude] : []);
2760
- }
2761
- if (data?.gpsLatitude && data?.gpsLongitude) {
2762
- return [[data.gpsLatitude, data.gpsLongitude]];
2763
- }
2764
- return [];
2765
- };
2766
- const getBranch = (branches, selectedBranch) => branches.find((_) => _.branchCode === selectedBranch);
2767
-
2768
- const SafeDepositRentalFields = JSX(({ regions, selectedRegion, branches, selectedBranch, days, selectedCaseVolume, selectedBoxSize, safeBoxCases, caseVolumes, setPoints, onChange, toggleShowMap, }) => {
2769
- return (jsxs("div", { className: "flex-1 mr-9", children: [jsx(RegionsAndBranches, { regions: regions, selectedRegion: selectedRegion, onSelectedRegion: (value) => onChange({ selectedRegion: value }), branches: branches, selectedBranch: selectedBranch, onSelectedBranch: onSelectedBranch(onChange, setPoints, branches) }), jsx(RentalPeriod, { days: days, setDays: (value) => onChange({ days: value }) }), jsx(SafeBoxCases, { caseVolumes: caseVolumes, selectedCaseVolume: selectedCaseVolume, onSelectedCaseVolume: onSelectedCaseVolume(onChange), safeBoxCases: safeBoxCases, selectedBoxSize: selectedBoxSize, onSelectedBoxSize: (value) => onChange({ selectedBoxSize: value }) }), jsx("span", { className: "text-secondary-text text-l-light", children: "\u0422\u0438\u043F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430" }), jsxs("div", { className: "flex justify-between items-center mt-5", children: [jsx(RenderRadioButtons, {}), jsx(Button, { text: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435", version: "primary", onClick: toggleShowMap })] })] }));
2605
+ const SafeDepositRentalFields = JSX(({ regions, selectedRegion, branches, selectedBranch, days, selectedCaseVolume, selectedBoxSize, safeBoxCases, caseVolumes, onChange, onShowMapToggle, }) => {
2606
+ return (jsxs("div", { className: "flex-1 mr-9", children: [jsx(RegionsAndBranches, { regions: regions, selectedRegion: selectedRegion, onSelectedRegion: (value) => onChange({ selectedRegion: value }), branches: branches, selectedBranch: selectedBranch, onSelectedBranch: onSelectedBranch(onChange) }), jsx(RentalPeriod, { days: days, setDays: (value) => onChange({ days: value }) }), jsx(SafeBoxCases, { caseVolumes: caseVolumes, selectedCaseVolume: selectedCaseVolume, onSelectedCaseVolume: onSelectedCaseVolume(onChange), safeBoxCases: safeBoxCases, selectedBoxSize: selectedBoxSize, onSelectedBoxSize: (value) => onChange({ selectedBoxSize: value }) }), jsx("span", { className: "text-secondary-text text-l-light", children: "\u0422\u0438\u043F \u0434\u043E\u0433\u043E\u0432\u043E\u0440\u0430" }), jsxs("div", { className: "flex justify-between items-center mt-5", children: [jsx(RenderRadioButtons, {}), jsx(Button, { text: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435", version: "primary", onClick: onShowMapToggle })] })] }));
2770
2607
  });
2771
- const onSelectedBranch = (onChange, setPoints, branches) => (value) => {
2608
+ const onSelectedBranch = (onChange) => (value) => {
2772
2609
  onChange({ selectedBranch: value, selectedCaseVolume: '', selectedBoxSize: '' });
2773
- setPoints(getCoordinates(value ? getBranch(branches, value) : branches));
2774
2610
  };
2775
2611
  const onSelectedCaseVolume = (onChange) => (value) => {
2776
2612
  onChange({ selectedCaseVolume: value, selectedBoxSize: '' });
@@ -2778,10 +2614,10 @@
2778
2614
 
2779
2615
  const SafeDepositRentalTotal = JSX(({ days, tariffs = [] }) => {
2780
2616
  const price = calculatePrice(days, tariffs);
2781
- return (jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex", children: [renderTotal('Аренда за', days, 'mr-11'), renderTotal('Цена', price + ' ₽')] }), jsxs("div", { className: "bg-primary-main px-10 pt-10 pb-4 text-center", children: [jsx(Img, { image: { icon: 'PackA4Icon' }, width: "290", height: "257", asSVG: true }), jsxs("span", { className: "text-s-light text-white opacity-80 mt-2 inline-block", children: ["\u041D\u0430 \u0440\u0438\u0441\u0443\u043D\u043A\u0438 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0430 \u043F\u0430\u0447\u043A\u0430", jsx("br", {}), " \u043B\u0438\u0441\u0442\u043E\u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0430 \u04104"] })] })] }));
2617
+ return (jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex", children: [renderTotal('Аренда за', days, 'mr-11'), renderTotal('Цена', price + ' ₽')] }), jsxs("div", { className: "bg-primary-main px-10 pt-10 pb-4 text-center", children: [jsx(ImgInner, { image: { icon: 'PackA4Icon' }, width: "290", height: "257", asSVG: true }), jsxs("span", { className: "text-s-light text-white opacity-80 mt-2 inline-block", children: ["\u041D\u0430 \u0440\u0438\u0441\u0443\u043D\u043A\u0438 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0430 \u043F\u0430\u0447\u043A\u0430", jsx("br", {}), " \u043B\u0438\u0441\u0442\u043E\u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0430 \u04104"] })] })] }));
2782
2618
  });
2783
2619
  const renderTotal = (label, total, className = '') => {
2784
- return (jsxs("div", { className: className, children: [jsx("span", { className: "block text-m-light mb-1", children: label }), jsx("span", { className: "text-h3", children: total })] }));
2620
+ return (jsxs("div", { className: className, children: [jsx("div", { className: "text-m-light text-secondary-text mb-1", children: label }), jsx("span", { className: "text-h3 text-primary-text", children: total })] }));
2785
2621
  };
2786
2622
  const calculatePrice = (days, tariffs) => {
2787
2623
  const tariffType = getTariffType(days);
@@ -2804,41 +2640,32 @@
2804
2640
  return tariffType;
2805
2641
  };
2806
2642
 
2807
- const DEFAULT_DAYS = 26;
2643
+ const getCoordinates = (data) => {
2644
+ if (Array.isArray(data)) {
2645
+ return data.map((_) => _.gpsLatitude && _.gpsLongitude ? [_.gpsLatitude, _.gpsLongitude] : []);
2646
+ }
2647
+ if (data?.gpsLatitude && data?.gpsLongitude) {
2648
+ return [[data.gpsLatitude, data.gpsLongitude]];
2649
+ }
2650
+ return [];
2651
+ };
2652
+ const getBranch = (branches, selectedBranch) => branches.find((_) => _.branchCode === selectedBranch);
2653
+
2808
2654
  const SafeDepositRentalForm = JSX((props) => {
2809
- const [safeDepositState, setStateDepositState] = useState({
2810
- selectedRegion: '',
2811
- selectedBranch: '',
2812
- selectedCaseVolume: '',
2813
- selectedBoxSize: '',
2814
- days: DEFAULT_DAYS,
2815
- branches: [],
2816
- });
2817
- const resultBranches = useFetchSafeBoxes(safeDepositState.selectedRegion);
2818
- const handleChangeSafeDepositState = (state) => setStateDepositState((oldState) => ({ ...oldState, ...state }));
2819
- useEffect(() => handleChangeSafeDepositState({
2820
- selectedRegion: getInitialValueSelectedRegion(props.regions),
2821
- }), [props.regions]);
2655
+ const { regions, data, branches, onChange, onShowMapToggle } = props;
2822
2656
  useEffect(() => {
2823
- if (Array.isArray(resultBranches) && resultBranches.length) {
2824
- handleChangeSafeDepositState({ branches: resultBranches });
2825
- props.setPoints(getCoordinates(resultBranches));
2826
- }
2827
- }, [resultBranches]);
2828
- useEffect(() => {
2829
- handleChangeSafeDepositState({
2657
+ onChange({
2830
2658
  selectedBranch: '',
2831
2659
  selectedCaseVolume: '',
2832
2660
  selectedBoxSize: '',
2833
2661
  });
2834
- }, [safeDepositState.selectedRegion]);
2835
- const branch = getBranch(safeDepositState.branches, safeDepositState.selectedBranch);
2662
+ }, [data.selectedRegion, onChange]);
2663
+ const branch = getBranch(branches, data.selectedBranch);
2836
2664
  const caseVolumes = getCaseVolumes(branch?.safeBoxCaseVolumes);
2837
- const safeBoxCases = getCaseVolume(branch?.safeBoxCaseVolumes, safeDepositState.selectedCaseVolume)?.safeBoxCases;
2838
- const tariffs = getTariffs(safeBoxCases, safeDepositState.selectedBoxSize);
2839
- return (jsxs("div", { className: "flex justify-between align-top mb-6", children: [jsx(SafeDepositRentalFields, { ...safeDepositState, ...props, caseVolumes: caseVolumes, safeBoxCases: safeBoxCases, onChange: handleChangeSafeDepositState }), jsx(SafeDepositRentalTotal, { days: safeDepositState.days, tariffs: tariffs })] }));
2665
+ const safeBoxCases = getCaseVolume(branch?.safeBoxCaseVolumes, data.selectedCaseVolume)?.safeBoxCases;
2666
+ const tariffs = getTariffs(safeBoxCases, data.selectedBoxSize);
2667
+ return (jsxs("div", { className: "flex justify-between align-top mb-6", children: [jsx(SafeDepositRentalFields, { ...data, regions: regions, onShowMapToggle: onShowMapToggle, branches: branches, caseVolumes: caseVolumes, safeBoxCases: safeBoxCases, onChange: onChange }), jsx(SafeDepositRentalTotal, { days: data.days, tariffs: tariffs })] }));
2840
2668
  });
2841
- const getInitialValueSelectedRegion = (regions) => regions?.length && regions[0]?.code ? regions[0].code : '';
2842
2669
  const getCaseVolumes = (safeBoxCaseVolumes) => safeBoxCaseVolumes?.length ? safeBoxCaseVolumes?.filter((_) => _?.safeBoxCases?.length) : [];
2843
2670
  const getCaseVolume = (caseVolumes, selectedCaseVolume) => caseVolumes?.find((_) => _.volume === selectedCaseVolume);
2844
2671
  const getTariffs = (safeBoxCases, selectedBoxSize) => safeBoxCases?.find((_) => _.safeBoxCasesSize === selectedBoxSize)?.tariffs;
@@ -2945,18 +2772,32 @@
2945
2772
  return (jsxs("div", { className: "pt-12 mt-1 bg-white", children: [jsx(Heading, { title: "\u041E\u0444\u0438\u0441\u044B \u043D\u0430 \u043A\u0430\u0440\u0442\u0435", headingType: "h3", className: "mb-8 text-center" }), jsx("div", { id: "map", className: "h-[640px]" })] }));
2946
2773
  });
2947
2774
 
2775
+ const DEFAULT_DAYS = 26;
2948
2776
  const SafeDepositRental = JSX(({ title, footnote, context, className = '', ...rest }) => {
2949
- const [points, setPoints] = useState([]);
2950
2777
  const [showMap, setShowMap] = useState(false);
2778
+ const [safeDepositState, setStateDepositState] = useState({
2779
+ selectedRegion: '',
2780
+ selectedBranch: '',
2781
+ selectedCaseVolume: '',
2782
+ selectedBoxSize: '',
2783
+ days: DEFAULT_DAYS,
2784
+ });
2951
2785
  const regions = useGetRegions();
2952
- const toggleShowMap = () => {
2786
+ const selectedRegion = normalizeSelectedRegion(safeDepositState.selectedRegion, regions);
2787
+ const branches = useSafeBoxes(selectedRegion);
2788
+ const handleChangeSafeDepositState = useCallback((state) => setStateDepositState((oldState) => ({ ...oldState, ...state })), [setStateDepositState]);
2789
+ const onShowMapToggle = () => {
2953
2790
  setShowMap(!showMap);
2954
2791
  };
2955
- return (jsxs(BlockWrapper, { context: context, className: className, ...rest, children: [jsxs("div", { className: "bg-white px-8 py-12", children: [title ? (jsx(Heading, { title: title, headingType: "h3", as: "h2", className: "mb-2.5 text-center" })) : null, jsx(SafeDepositRentalForm, { regions: regions, setPoints: setPoints, toggleShowMap: toggleShowMap }), footnote ? jsx("p", { className: "text-s-light text-secondary-text", children: footnote }) : null] }), points.length && showMap ? jsx(YandexMap, { points: points }) : null] }));
2792
+ const points = getCoordinates(getBranch(branches, safeDepositState.selectedBranch) || branches);
2793
+ return (jsxs(BlockWrapper, { context: context, className: className, ...rest, children: [jsxs("div", { className: "font-sans bg-white px-8 py-12", children: [title ? (jsx(Heading, { title: title, headingType: "h3", as: "h2", className: "mb-2.5 text-center" })) : null, jsx(SafeDepositRentalForm, { regions: regions, branches: branches, data: { ...safeDepositState, selectedRegion }, onShowMapToggle: onShowMapToggle, onChange: handleChangeSafeDepositState }), footnote ? jsx("p", { className: "text-s-light text-secondary-text", children: footnote }) : null] }), points.length && showMap ? jsx(YandexMap, { points: points }) : null] }));
2956
2794
  });
2795
+ const normalizeSelectedRegion = (selectedRegion, regions) => !selectedRegion && regions?.length && regions[0]?.code ? regions[0].code : selectedRegion;
2957
2796
 
2958
2797
  const checkIsIconRenderable = (icon) => Boolean(icon?.icon || icon?.src);
2959
2798
 
2799
+ const renderItems = (items, styleMap, isDotted = true) => items ? (jsx("div", { className: `mt-4 ${styleMap?.description}`, role: "list", children: items.map((_) => (jsxs("div", { className: "items-start mt-1 first:mt-0", role: "listitem", children: [isDotted ? (jsx("div", { className: `rounded-full inline-block mr-3 mb-1 w-1.5 h-1.5 min-w-1.5 min-h-1.5 ${styleMap?.dot}` })) : null, jsx("span", { children: _ })] }))) })) : null;
2800
+
2960
2801
  const STEPS_BLOCK_STYLE_MAPS = {
2961
2802
  primary: {
2962
2803
  background: 'bg-white',
@@ -2965,6 +2806,7 @@
2965
2806
  iconText: 'text-secondary-text',
2966
2807
  iconBackground: 'bg-main-divider',
2967
2808
  iconConnector: 'bg-secondary-light',
2809
+ dot: 'bg-secondary-text',
2968
2810
  },
2969
2811
  secondary: {
2970
2812
  background: 'bg-primary-main',
@@ -2973,10 +2815,12 @@
2973
2815
  iconText: 'text-white',
2974
2816
  iconBackground: 'bg-white/30',
2975
2817
  iconConnector: 'bg-white',
2818
+ dot: 'bg-white/80',
2976
2819
  },
2977
2820
  };
2978
2821
 
2979
2822
  const getLineOpacity = (showLines) => (showLines ? '' : 'opacity-0');
2823
+ const getPaddingX = (steps) => (steps < 5 ? 'px-[88px]' : 'px-[55px]');
2980
2824
  const StepsBlock = JSX(({ className = '', showLines = true, steps = [], button, version = 'primary', context, ...rest }) => {
2981
2825
  const router = context.useRouter();
2982
2826
  const { handlerDecorator } = context;
@@ -2985,6 +2829,7 @@
2985
2829
  const shortGaps = steps.length > 3;
2986
2830
  const lineOpacity = getLineOpacity(showLines);
2987
2831
  const titleMargin = title ? 'mt-9' : '';
2832
+ const paddingX = getPaddingX(steps.length);
2988
2833
  return (jsxs(BlockWrapper, { className: [
2989
2834
  'box-border font-sans text-primary-text bg-white',
2990
2835
  shortGaps ? 'px-20' : 'px-[70px]',
@@ -2992,7 +2837,7 @@
2992
2837
  styleMap.background,
2993
2838
  styleMap.title,
2994
2839
  className,
2995
- ].join(' '), context: context, ...rest, children: [title ? (jsx(Heading, { headingType: "h2", className: "max-w-[752px] text-center", title: title })) : null, steps?.length ? (jsxs("div", { className: `box-border ${titleMargin}`, children: [jsx("div", { className: "flex items-center px-[88px]", children: joinList(jsx("div", { className: `h-0.5 w-full bg-secondary-light ${lineOpacity}` }))(steps.map(renderStepIcon(styleMap))) }), jsx("div", { className: `flex justify-between ${shortGaps ? 'gap-x-3' : 'gap-x-[101px]'}`, children: steps.map(renderStepTitle({
2840
+ ].join(' '), context: context, ...rest, children: [title ? (jsx(Heading, { headingType: "h2", className: "max-w-[752px] text-center", title: title })) : null, steps?.length ? (jsxs("div", { className: `box-border ${titleMargin}`, children: [jsx("div", { className: `flex items-center ${paddingX}`, children: joinList(jsx("div", { className: `h-0.5 w-full bg-secondary-light ${lineOpacity}` }))(steps.map(renderStepIcon(styleMap))) }), jsx("div", { className: `flex justify-between ${shortGaps ? 'gap-x-3' : 'gap-x-[101px]'}`, children: steps.map(renderStepTitle({
2996
2841
  styleMap,
2997
2842
  isMainButton: Boolean(button?.text),
2998
2843
  version,
@@ -3002,11 +2847,13 @@
3002
2847
  });
3003
2848
  const renderStepIcon = (styleMap) => ({ icon }, i) => {
3004
2849
  return (jsx("div", { className: "flex flex-col items-center text-center", children: jsx("div", { className: `h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center
3005
- ${styleMap.iconBackground} ${styleMap.title}`, children: checkIsIconRenderable(icon) ? (jsx(Img, { image: icon, width: "48", height: "48", asSVG: true })) : (jsx("span", { className: `text-h4 ${styleMap.iconText}`, children: i + 1 })) }) }, String(i)));
2850
+ ${styleMap.iconBackground} ${styleMap.title}`, children: checkIsIconRenderable(icon) ? (jsx(ImgInner, { image: icon, width: "48", height: "48", asSVG: true })) : (jsx("span", { className: `text-h4 ${styleMap.iconText}`, children: i + 1 })) }) }, String(i)));
3006
2851
  };
3007
- const renderStepTitle = ({ styleMap, isMainButton, version, router, handlerDecorator, }) => (step, i) => {
2852
+ const renderStepTitle = ({ styleMap, isMainButton, version, router, handlerDecorator, }) => (step, i, { length }) => {
3008
2853
  const additionalMarginClass = step?.label ? 'mt-2' : 'mt-4';
3009
- return (jsxs("div", { className: "flex flex-col items-center justify-between text-center relative w-[276px]\n whitespace-pre-line overflow-hidden", children: [step?.label ? jsx("div", { className: "text-xl m-0 mt-4", children: step.label }) : null, step?.description ? (jsx("div", { className: `text-l-light ${styleMap.description} ${additionalMarginClass}`, children: step.description })) : null, step.button?.text && !isMainButton ? (jsx(Button, { className: "box-border mt-8 py-3 h-12 w-full max-w-[240px]", ...useLink({ router, handlerDecorator }, step.button), version: version, children: step.button.text })) : null] }, String(i)));
2854
+ const widthContainer = length < 5 ? 'w-[276px]' : 'w-[210px]';
2855
+ return (jsxs("div", { className: `flex flex-col items-center text-center relative
2856
+ whitespace-pre-line overflow-hidden ${widthContainer}`, children: [step?.label ? jsx("div", { className: "text-xl m-0 mt-4", children: step.label }) : null, step?.description ? (jsx("div", { className: `text-l-light ${styleMap.description} ${additionalMarginClass}`, children: step.description })) : null, renderItems(step?.items, styleMap, step?.isDotted), step.button?.text && !isMainButton ? (jsx(Button, { className: "box-border mt-8 py-3 h-12 w-full max-w-[240px]", ...useLink({ router, handlerDecorator }, step.button), version: version, children: step.button.text })) : null] }, String(i)));
3010
2857
  };
3011
2858
 
3012
2859
  function assertUnreachable(x) {
@@ -3033,7 +2880,10 @@
3033
2880
  const renderTitle = (title, active) => (jsx("h3", { className: `${TEXT_CLASSES} ${active ? ACTIVE_TEXT_CLASSES : INACTIVE_TEXT_CLASSES}`, children: title }));
3034
2881
  const renderCount = (count, active) => (jsx("div", { className: `${BADGE_CLASSES} ${active ? ACTIVE_BADGE_CLASSES : INACTIVE_BADGE_CLASSES}`, children: count }));
3035
2882
 
3036
- const renderLinkTab = ({ text, onClick, href, target = '_self', i }) => (jsx("a", { className: `${LINK_CLASSES} ${INACTIVE_LINK_CLASSES}`, target: target, href: href, onClick: onClick, children: jsx("span", { className: `${TEXT_CLASSES} ${INACTIVE_TEXT_CLASSES}`, children: text }) }, String(i)));
2883
+ const renderLinkTab = ({ text, currentTab, onClick, href, target = '_self', i, }) => {
2884
+ const active = currentTab?.type === 'link' && currentTab.href === href;
2885
+ return (jsx("a", { className: `${LINK_CLASSES} ${active ? ACTIVE_LINK_CLASSES : INACTIVE_LINK_CLASSES}`, target: target, href: href, onClick: onClick, children: jsx("span", { className: `${TEXT_CLASSES} ${active ? ACTIVE_TEXT_CLASSES : INACTIVE_TEXT_CLASSES}`, children: text }) }, String(i)));
2886
+ };
3037
2887
 
3038
2888
  const renderTab = ({ onClick, currentTab, showCounter, page, context }) =>
3039
2889
  // Linter doesn't understand that switch processes all cases
@@ -3048,19 +2898,37 @@
3048
2898
  switch (type) {
3049
2899
  case 'group':
3050
2900
  return renderGroupTab({ onClick, currentTab, showCounter, page, context })(tab, i);
3051
- case 'link':
2901
+ case 'link': {
2902
+ const link = useLink({ router, handlerDecorator }, tab);
2903
+ const linkClick = link.onClick;
3052
2904
  return renderLinkTab({
3053
- ...useLink({ router, handlerDecorator }, tab),
2905
+ ...link,
2906
+ onClick: (ev) => {
2907
+ linkClick(ev);
2908
+ onClick(tab);
2909
+ EventBus.inst.fire('anchorClick', { isScrolling: true, label: tab.href });
2910
+ },
2911
+ currentTab,
3054
2912
  i,
3055
2913
  });
2914
+ }
3056
2915
  default:
3057
2916
  assertUnreachable(type);
3058
2917
  }
3059
2918
  };
3060
2919
 
3061
2920
  const Tabs = JSX((props) => {
3062
- const { context, className, tabs, page, showCounter } = props;
2921
+ const { context, className = '', tabs, page, showCounter, isSticky } = props;
3063
2922
  const [currentTab, setCurrentTab] = useState(tabs ? tabs[0] : undefined);
2923
+ useEffect(() => EventBus.inst.subscribe('tab', (event) => {
2924
+ if (!tabs) {
2925
+ return;
2926
+ }
2927
+ const tab = tabs.find(checkTab(event));
2928
+ if (event.type === 'link' && tab) {
2929
+ setCurrentTab(tab);
2930
+ }
2931
+ }), [tabs]);
3064
2932
  useEffect(() => {
3065
2933
  if (currentTab?.type === 'group') {
3066
2934
  return EventBus.inst.subject('tab', { label: currentTab.ref });
@@ -3070,11 +2938,12 @@
3070
2938
  const handleClick = (selectedTab) => {
3071
2939
  if (selectedTab?.type === 'group') {
3072
2940
  EventBus.inst.fire('tab', { type: selectedTab.type, label: selectedTab.ref });
3073
- setCurrentTab(selectedTab);
3074
2941
  }
2942
+ setCurrentTab(selectedTab);
3075
2943
  };
3076
- return (jsx(BlockWrapper, { context: context, className: `mb-2 box-border flex gap-x-1 ${className}`, role: "tablist", children: tabs?.map(renderTab({ onClick: handleClick, currentTab, page, showCounter, context })) }));
2944
+ return (jsx(BlockWrapper, { context: context, className: `${isSticky ? 'sticky top-1 z-20 ' : ''}box-border flex gap-x-1 ${className}`, role: "tablist", children: tabs?.map(renderTab({ onClick: handleClick, currentTab, page, showCounter, context })) }));
3077
2945
  });
2946
+ const checkTab = (event) => (_) => _.type === 'link' && _.href === `#${event.label}`;
3078
2947
 
3079
2948
  const DIVIDER_CLASSES = 'border-main-divider border border-t-0 border-x-0';
3080
2949
  const FIRST_CELL_CLASSES = 'w-[354px] flex-shrink-0';
@@ -3085,18 +2954,16 @@
3085
2954
  const handleClick = () => {
3086
2955
  EventBus.inst.fire('tariffInnerTable', { dataUrl, pdfUrl, rowIdx, cellIdx, fieldIdx });
3087
2956
  };
3088
- return (jsxs(Button, { version: "primary", onClick: handleClick, className: "w-full flex items-center justify-center rounded-none py-5 ", children: [jsx("div", { className: "text-h4", children: isOpen ? 'Скрыть' : 'Показать ставки по вкладу' }), jsx(Icon, { name: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon', className: "ml-3", iconVersion: "white", width: "20", height: "20", asSVG: true })] }));
2957
+ return (jsxs(Button, { version: "primary", onClick: handleClick, className: "w-full flex items-center justify-center rounded-none py-5", children: [jsx("div", { className: "text-h4", children: isOpen ? 'Скрыть' : 'Показать ставки по вкладу' }), jsx(Icon, { name: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon', className: "ml-3", iconVersion: "white", width: "20", height: "20", asSVG: true })] }));
3089
2958
  });
3090
2959
 
3091
- const getButtonAriaLabel = (icon) => icon?.alt || icon?.title || IconTitleMap[icon?.icon ? icon.icon : ''];
3092
-
3093
- const renderButtonsCellData = ({ buttons }) => buttons && buttons?.length ? (jsx("div", { children: buttons.map(({ icon, rounded, ...buttonProps }, idx) => (jsx(Button, { className: `${idx > 0 && rounded ? 'ml-3' : ''} w-12 h-12`, ariaLabel: getButtonAriaLabel(icon), rounded: rounded, appendLeft: icon?.src || icon?.icon ? jsx(Img, { image: icon, width: "24px", height: "24px", asSVG: true }) : null, ...buttonProps }, String(idx)))) })) : null;
2960
+ const renderButtonsCellData = ({ buttons }) => buttons && buttons?.length ? (jsx("div", { children: buttons.map(({ rounded, ...buttonProps }, idx) => (jsx(Button, { className: `${idx > 0 && rounded ? 'ml-3' : ''} w-12 h-12`, rounded: rounded, ...buttonProps }, String(idx)))) })) : null;
3094
2961
  const renderLabelDescriptionCellData = ({ label, description }) => {
3095
- const labelClassName = `text-h6 font-medium m-0 ${description ? 'mb-1' : ''}`;
3096
- return (jsxs("div", { children: [label ? jsx("div", { className: labelClassName, children: label }) : null, description ? jsx("div", { className: "text-s text-secondary-text", children: description }) : null] }));
2962
+ const labelClassName = `text-h6 m-0 ${description ? 'mb-1' : ''}`;
2963
+ return (jsxs("div", { children: [label ? jsx("div", { className: labelClassName, children: label }) : null, description ? jsx("div", { className: "text-secondary-text text-l-light", children: description }) : null] }));
3097
2964
  };
3098
- const renderImgCellData = ({ image }) => (image?.src ? jsx(Img, { image: image }) : null);
3099
- const renderListCellData = ({ isDotted, ...rest }) => (jsx(List, { className: "flex flex-col justify-between items-start text-sm", version: "gray", isDotted: isDotted ?? true, ...rest }));
2965
+ const renderImgCellData = ({ image }) => (image?.src ? jsx(ImgInner, { image: image }) : null);
2966
+ const renderListCellData = ({ isDotted, ...rest }) => (jsx(List, { className: "flex flex-col justify-between items-start text-h6", version: "primary", isDotted: isDotted ?? true, ...rest }));
3100
2967
  const renderTableCellData = JSX((props) => {
3101
2968
  const [showBtn, setShowBtn] = useState(true);
3102
2969
  console.log(props);
@@ -3120,7 +2987,7 @@
3120
2987
  return (jsx("div", { className: cellWrapperClasses, role: "cell", children: cells.map(renderCellInner(rowIdx, context, cellIdx)) }));
3121
2988
  });
3122
2989
  const renderCellInner = (rowIdx, context, cellIdx) => (cell, i) => {
3123
- return (jsxs("div", { className: cell?.tableCellType === 'Table' ? 'mx-0.5' : `first:pt-5 last:pb-5 pl-10`, children: [i > 0 ? jsx("div", { className: "h-5" }) : null, renderCell(cell, context, { rowIdx, cellIdx, fieldIdx: i })] }, String(i)));
2990
+ return (jsxs("div", { className: cell?.tableCellType === 'Table' ? 'ml-10' : `first:pt-5 last:pb-5 pl-10`, children: [i > 0 ? jsx("div", { className: "h-5" }) : null, renderCell(cell, context, { rowIdx, cellIdx, fieldIdx: i })] }, String(i)));
3124
2991
  };
3125
2992
  const renderCell = (cell, context, indexes) => {
3126
2993
  if (!cell) {
@@ -3167,11 +3034,15 @@
3167
3034
  }
3168
3035
  const [headerColumn, ...columns] = rowData;
3169
3036
  const transform = [...Array(activeColumnIndex).keys()].reduce((res, i) => (columns?.[i]?.cols?.length ?? 1) * COLUMN_WIDTH + res, 0);
3170
- return (jsxs("div", { className: "flex border-main-divider border border-t-0 border-x-0 border-solid", children: [jsx("div", { className: "text-xl-light min-w-[214px] w-[214px] pt-6 pb-5", children: headerColumn.data }), jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: "flex duration-1000 text-center", style: {
3037
+ const columnsClassName = [
3038
+ 'flex duration-1000 text-center',
3039
+ rowIdx !== 0 ? 'font-normal' : 'font-light',
3040
+ ].join(' ');
3041
+ return (jsxs("div", { className: "flex border-main-divider border border-t-0 border-x-0 border-solid", children: [headerColumn?.data ? (jsx("div", { className: `text-xl-light w-[214px] pb-5 ${rowIdx === 0 ? 'pt-8' : 'pt-6'}`, children: headerColumn.data })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsClassName, style: {
3171
3042
  transform: `translateX(-${transform}px)`,
3172
3043
  }, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider", children: [_?.data ? jsx("div", { className: "text-xl-light mb-3", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
3173
3044
  };
3174
- const renderCols = (cols, rowIndex) => cols ? (jsx("div", { className: `flex text-xl-light ${rowIndex === 0 ? 'text-secondary-text' : ''}`, children: cols.map((data, i) => (jsx("div", { className: "w-[76px] mx-8", children: data }, String(i)))) })) : null;
3045
+ const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: `flex ${rowIndex} ${rowIndex === 0 ? 'text-secondary-text' : ''} last:mr-3`, children: cols.map((data, i) => (jsx("div", { className: `w-[76px] text-h6 mr-5 first:ml-8`, children: data }, String(i)))) })) : null;
3175
3046
 
3176
3047
  const InnerTableBody = JSX(({ context, activeTabIndex, items }) => {
3177
3048
  const [hiddenTables, setHiddenTables] = useState({});
@@ -3180,11 +3051,11 @@
3180
3051
  };
3181
3052
  return (jsx("div", { children: items.map((_, tableIdx) => {
3182
3053
  const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
3183
- return (jsxs("div", { className: "w-full", children: [jsxs("div", { className: "flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative", onClick: () => toggleTable(key), children: [_.title, jsx(Img, { image: hiddenTables[key] ? 'PlusIcon' : 'MinusIcon', className: "absolute right-[22px]", width: "24", height: "24" })] }), jsx("div", { className: `w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out ${hiddenTables[key] ? 'h-0' : 'h-[243px]'}`, children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { context: context, rows: _.rowsData }) }) })] }, key));
3054
+ return (jsxs("div", { className: "w-full", children: [jsxs("div", { className: "flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative", onClick: () => toggleTable(key), children: [_.title, jsx(ImgInner, { image: hiddenTables[key] ? 'PlusIcon' : 'MinusIcon', className: "absolute right-[22px]", width: "24", height: "24" })] }), jsx("div", { className: `w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out ${hiddenTables[key] ? 'h-0' : ''}`, children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { context: context, rows: _.rowsData }) }) })] }, key));
3184
3055
  }) }));
3185
3056
  });
3186
3057
 
3187
- const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between w-full pt-2.5 pb-3", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-1 rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: `rounded-md text-xl-light px-4 py-3 cursor-pointer ${idx === activeTabIndex ? 'bg-primary-main text-white' : 'text-secondary-text'}`, onClick: () => setActiveTabIndex(idx), children: currency || idx + 1 }, currency))) })) : null, linkToPDF ? (jsxs(Button, { href: linkToPDF, version: "secondary", className: "flex justify-center items-center text-l-light text-primary-main px-8", children: [jsx(Img, { image: "DocDownloadIcon", className: "mr-[10px]", width: "24", height: "24", asSVG: true }), jsx("span", { children: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })] })) : null] })));
3058
+ const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between w-full pt-2.5 pb-3", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-1.5 rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: `rounded-md text-xl-light px-4 py-3 cursor-pointer ${idx === activeTabIndex ? 'bg-primary-main text-white' : 'text-secondary-text'}`, onClick: () => setActiveTabIndex(idx), children: currency || idx + 1 }, currency))) })) : null, linkToPDF ? (jsxs(Button, { href: linkToPDF, version: "secondary", className: "flex justify-center items-center text-l-light text-primary-main px-8 max-h-14", target: "_blank", children: [jsx(ImgInner, { image: "DocDownloadIcon", className: "mr-2.5", width: "20", height: "20", asSVG: true }), jsx("span", { children: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })] })) : null] })));
3188
3059
 
3189
3060
  const InnerTable = JSX(({ context, dataUrl, pdfUrl }) => {
3190
3061
  const { tableData } = useTariffsInnerTableData(dataUrl);
@@ -3203,7 +3074,7 @@
3203
3074
  });
3204
3075
 
3205
3076
  const TariffsTableRow = JSX(({ row: { header, data }, activeCardIndex, isLastRow, context, rowIdx }) => {
3206
- return (jsxs(TariffsTableRowContainer, { context: context, rowIdx: rowIdx, children: [jsx("div", { className: `text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: jsxs("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(Img, { className: "mr-[14px] max-w-6 max-h-6", image: header.icon, width: "24px", height: "24px", asSVG: true })) : null, header?.title ? (jsx(Heading, { headingType: header?.headingType || 'h6', as: "h6", title: header?.title })) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, isLastRow: isLastRow, rowIdx: rowIdx, cellIdx: i, context: context }, String(i)))) })) : null] }));
3077
+ return (jsxs(TariffsTableRowContainer, { context: context, rowIdx: rowIdx, children: [jsx("div", { className: `text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES} ${!isLastRow ? 'border-solid' : ''}`, children: jsxs("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(ImgInner, { className: "mr-[14px] max-w-6 max-h-6", image: header.icon, width: "24px", height: "24px", asSVG: true })) : null, header?.title ? jsx("div", { className: "text-m-light", children: header?.title }) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, isLastRow: isLastRow, rowIdx: rowIdx, cellIdx: i, context: context }, String(i)))) })) : null] }));
3207
3078
  });
3208
3079
 
3209
3080
  const TariffsTable = JSX(({ className = '', context, title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
@@ -3221,7 +3092,7 @@
3221
3092
  setActiveCardIndex,
3222
3093
  });
3223
3094
  const foldableBlocks = rowData?.map((row, i, { length }) => (jsx(TariffsTableRow, { context: context, row: row, isLastRow: i + 1 === length, activeCardIndex: activeCardIndex, rowIdx: i }, String(i))));
3224
- return (jsxs(BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${columnsLength > 1 ? 'pr-0' : ''} ${className}`, context: context, ...rest, children: [title ? (jsx(Heading, { headingType: "h2", className: `text-center ${description ? 'mb-2.5' : 'mb-9'}`, title: title })) : null, description ? jsx("div", { className: "mb-9 text-center text-l", children: description }) : null, rowData?.length ? (jsx(Foldable, { blocks: foldableBlocks, hiddenBlocksNum: hiddenRowsNum, context: context, render: (children) => (jsx(Wrapper, { tableArrowScrollControlProps: tableArrowScrollControlProps, children: children })), foldButtonLabel: "\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C" })) : null] }));
3095
+ return (jsxs(BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${columnsLength > 1 ? 'pr-0' : ''} ${className}`, context: context, ...rest, children: [title ? (jsx(Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2.5' : 'mb-8'}`, title: title })) : null, description ? jsx("div", { className: "mb-9 text-center text-l", children: description }) : null, rowData?.length ? (jsx(Foldable, { blocks: foldableBlocks, hiddenBlocksNum: hiddenRowsNum, blockWrapper: (children) => (jsx(Wrapper, { tableArrowScrollControlProps: tableArrowScrollControlProps, children: children })) })) : null] }));
3225
3096
  });
3226
3097
  const Wrapper = JSX(({ children, tableArrowScrollControlProps }) => {
3227
3098
  const { isScrollAvailable } = tableArrowScrollControlProps;