@redneckz/wildless-cms-uni-blocks 0.6.32 → 0.6.34

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 (1151) hide show
  1. package/bin/migration-scripts/0.6.34.js +51 -0
  2. package/bundle/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  3. package/bundle/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  4. package/bundle/BlockRenderer/getParentBlockContent.d.ts +2 -0
  5. package/bundle/BlockRenderer/getParentBlockDef.d.ts +3 -0
  6. package/bundle/BlockRenderer/renderBlock.d.ts +3 -0
  7. package/bundle/BlockRenderer/renderBlockList.d.ts +9 -0
  8. package/bundle/BlockRenderer/renderChildren.d.ts +10 -0
  9. package/bundle/blocks.schema.json +1 -1
  10. package/bundle/bundle.umd.js +382 -395
  11. package/bundle/bundle.umd.min.js +1 -1
  12. package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  13. package/bundle/components/Carousel/Carousel.d.ts +1 -0
  14. package/bundle/components/Carousel/CarouselContainer.d.ts +8 -5
  15. package/bundle/components/Carousel/CarouselContent.d.ts +5 -8
  16. package/bundle/components/CarouselCard/CarouselCard.d.ts +0 -2
  17. package/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  18. package/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  19. package/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  20. package/bundle/components/ComparisonTable/TableRow.d.ts +1 -1
  21. package/bundle/components/ComparisonTable/constants.d.ts +1 -1
  22. package/bundle/components/Gallery/GalleryContainer.d.ts +1 -1
  23. package/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  24. package/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  25. package/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  26. package/bundle/components/Video/Video.d.ts +6 -0
  27. package/bundle/components/Video/VideoContent.d.ts +8 -0
  28. package/bundle/components/Video/getPaddings.d.ts +1 -0
  29. package/bundle/hooks/useCarouselControls.d.ts +5 -3
  30. package/bundle/model/JSXBlock.d.ts +4 -5
  31. package/bundle/model/LinkProps.d.ts +1 -0
  32. package/bundle/model/Picture.d.ts +8 -2
  33. package/bundle/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  34. package/bundle/ui-kit/Button/renderArrows.d.ts +6 -4
  35. package/bundle/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  36. package/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  37. package/bundle/ui-kit/Text/Text.d.ts +34 -0
  38. package/dist/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  39. package/dist/BlockRenderer/BlockRendererOptions.js +2 -0
  40. package/dist/BlockRenderer/BlockRendererOptions.js.map +1 -0
  41. package/dist/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  42. package/dist/BlockRenderer/defaultBlockDecorator.js +5 -0
  43. package/dist/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  44. package/dist/BlockRenderer/getParentBlockContent.d.ts +2 -0
  45. package/{mobile/dist/model → dist/BlockRenderer}/getParentBlockContent.js +2 -2
  46. package/dist/BlockRenderer/getParentBlockContent.js.map +1 -0
  47. package/dist/BlockRenderer/getParentBlockDef.d.ts +3 -0
  48. package/dist/BlockRenderer/getParentBlockDef.js +7 -0
  49. package/dist/BlockRenderer/getParentBlockDef.js.map +1 -0
  50. package/dist/BlockRenderer/renderBlock.d.ts +3 -0
  51. package/dist/BlockRenderer/renderBlock.js +27 -0
  52. package/dist/BlockRenderer/renderBlock.js.map +1 -0
  53. package/dist/BlockRenderer/renderBlockList.d.ts +9 -0
  54. package/dist/BlockRenderer/renderBlockList.js +14 -0
  55. package/dist/BlockRenderer/renderBlockList.js.map +1 -0
  56. package/dist/BlockRenderer/renderChildren.d.ts +10 -0
  57. package/dist/BlockRenderer/renderChildren.js +13 -0
  58. package/dist/BlockRenderer/renderChildren.js.map +1 -0
  59. package/dist/components/Accordion/Accordion.js +3 -1
  60. package/dist/components/Accordion/Accordion.js.map +1 -1
  61. package/dist/components/Accordion/Accordion.mobile.js +3 -1
  62. package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
  63. package/dist/components/AccordionItem/AccordionItem.js +4 -2
  64. package/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  65. package/dist/components/AccordionItem/AccordionItem.mobile.js +7 -5
  66. package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  67. package/dist/components/Blocks.js +3 -1
  68. package/dist/components/Blocks.js.map +1 -1
  69. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  70. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  71. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  72. package/dist/components/Calculator/Calculator.js +22 -22
  73. package/dist/components/Calculator/Calculator.js.map +1 -1
  74. package/dist/components/Calculator/CalculatorValueBlock.js +1 -3
  75. package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  76. package/dist/components/CardTransfer/CardTransfer.js +2 -1
  77. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  78. package/dist/components/Carousel/Carousel.d.ts +1 -0
  79. package/dist/components/Carousel/Carousel.js +16 -14
  80. package/dist/components/Carousel/Carousel.js.map +1 -1
  81. package/dist/components/Carousel/CarouselContainer.d.ts +8 -5
  82. package/dist/components/Carousel/CarouselContainer.js +8 -5
  83. package/dist/components/Carousel/CarouselContainer.js.map +1 -1
  84. package/dist/components/Carousel/CarouselContent.d.ts +5 -8
  85. package/dist/components/Carousel/CarouselContent.js +0 -3
  86. package/dist/components/Carousel/CarouselContent.js.map +1 -1
  87. package/dist/components/CarouselCard/CarouselCard.d.ts +0 -2
  88. package/dist/components/CarouselCard/CarouselCard.js +4 -11
  89. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  90. package/dist/components/CarouselLinks/CarouselLinks.js +9 -9
  91. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  92. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  93. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  94. package/dist/components/Catalog/Catalog.js +8 -11
  95. package/dist/components/Catalog/Catalog.js.map +1 -1
  96. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +2 -2
  97. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  98. package/dist/components/ComparisonTable/ComparisonTableBody.js +4 -4
  99. package/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  100. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  101. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  102. package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  103. package/dist/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  104. package/dist/components/ComparisonTable/ComparisonTableRows.js +8 -7
  105. package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  106. package/dist/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  107. package/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
  108. package/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  109. package/dist/components/ComparisonTable/TableRow.d.ts +1 -1
  110. package/dist/components/ComparisonTable/TableRow.js +1 -1
  111. package/dist/components/ComparisonTable/TableRow.js.map +1 -1
  112. package/dist/components/ComparisonTable/constants.d.ts +1 -1
  113. package/dist/components/ComparisonTable/constants.js +1 -1
  114. package/dist/components/ContactsBlock/ContactsBlock.js +3 -5
  115. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  116. package/dist/components/ContentPage/ContentPage.js +13 -7
  117. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  118. package/dist/components/ExchangeRateTile/CurrencyTable.js +1 -3
  119. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  120. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -3
  121. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  122. package/dist/components/Footer/Footer.js +1 -1
  123. package/dist/components/Footer/Footer.js.map +1 -1
  124. package/dist/components/Footer/Footer.mobile.js +2 -2
  125. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  126. package/dist/components/Gallery/GalleryCardInner.js +2 -4
  127. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  128. package/dist/components/Gallery/GalleryContainer.d.ts +1 -1
  129. package/dist/components/Gallery/GalleryContainer.js +1 -3
  130. package/dist/components/Gallery/GalleryContainer.js.map +1 -1
  131. package/dist/components/Gallery/GalleryInner.js +9 -12
  132. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  133. package/dist/components/Header/Header.js +1 -1
  134. package/dist/components/Header/Header.js.map +1 -1
  135. package/dist/components/Header/Header.mobile.js +2 -3
  136. package/dist/components/Header/Header.mobile.js.map +1 -1
  137. package/dist/components/Headline/Headline.js +1 -2
  138. package/dist/components/Headline/Headline.js.map +1 -1
  139. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +23 -25
  140. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  141. package/dist/components/InvestmentGallery/InvestmentGallery.js +10 -20
  142. package/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  143. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
  144. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
  145. package/dist/components/MobileAppTile/MobileAppTile.js +4 -4
  146. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  147. package/dist/components/OtherProducts/OtherProducts.js +2 -1
  148. package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  149. package/dist/components/OtherProductsItem/OtherProductsItem.js +5 -4
  150. package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  151. package/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  152. package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
  153. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  154. package/dist/components/Recommendation/Recommendation.js +11 -21
  155. package/dist/components/Recommendation/Recommendation.js.map +1 -1
  156. package/dist/components/Recommendation/RecommendationCard.js +1 -2
  157. package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  158. package/dist/components/RollupItem/RollupItem.js +5 -3
  159. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  160. package/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  161. package/dist/components/StepsBlock/StepsBlock.js +1 -1
  162. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  163. package/dist/components/TariffsTable/TariffsTable.js +12 -14
  164. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  165. package/dist/components/TariffsTable/TariffsTable.mobile.js +1 -1
  166. package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  167. package/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  168. package/dist/components/TariffsTable/TariffsTableRow.js +2 -2
  169. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  170. package/dist/components/Tile/Tile.js +2 -2
  171. package/dist/components/Tile/Tile.js.map +1 -1
  172. package/dist/components/VerticalLayout/VerticalLayout.js +3 -2
  173. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  174. package/dist/components/Video/Video.d.ts +6 -0
  175. package/dist/components/Video/Video.js +12 -0
  176. package/dist/components/Video/Video.js.map +1 -0
  177. package/dist/components/Video/VideoContent.d.ts +8 -0
  178. package/dist/components/Video/VideoContent.js +2 -0
  179. package/dist/components/Video/VideoContent.js.map +1 -0
  180. package/dist/components/Video/getPaddings.d.ts +1 -0
  181. package/dist/components/Video/getPaddings.js +7 -0
  182. package/dist/components/Video/getPaddings.js.map +1 -0
  183. package/dist/hooks/useCarouselControls.d.ts +5 -3
  184. package/dist/hooks/useCarouselControls.js +19 -8
  185. package/dist/hooks/useCarouselControls.js.map +1 -1
  186. package/dist/model/JSXBlock.d.ts +4 -5
  187. package/dist/model/LinkProps.d.ts +1 -0
  188. package/dist/model/Picture.d.ts +8 -2
  189. package/dist/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  190. package/{mobile/dist/react → dist}/setup-fixture.js +4 -4
  191. package/dist/setup-fixture.js.map +1 -0
  192. package/dist/ui-kit/Button/renderArrows.d.ts +6 -4
  193. package/dist/ui-kit/Button/renderArrows.js +3 -2
  194. package/dist/ui-kit/Button/renderArrows.js.map +1 -1
  195. package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
  196. package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  197. package/dist/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  198. package/dist/ui-kit/Paragraph/Paragraph.js +10 -0
  199. package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -0
  200. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +5 -2
  201. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  202. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  203. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  204. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  205. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  206. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  207. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  208. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  209. package/dist/ui-kit/Text/Text.d.ts +34 -0
  210. package/dist/ui-kit/Text/Text.js +10 -0
  211. package/dist/ui-kit/Text/Text.js.map +1 -0
  212. package/lib/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  213. package/lib/BlockRenderer/BlockRendererOptions.js +2 -0
  214. package/lib/BlockRenderer/BlockRendererOptions.js.map +1 -0
  215. package/lib/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  216. package/lib/BlockRenderer/defaultBlockDecorator.js +2 -0
  217. package/lib/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  218. package/lib/BlockRenderer/getParentBlockContent.d.ts +2 -0
  219. package/lib/BlockRenderer/getParentBlockContent.js +6 -0
  220. package/lib/BlockRenderer/getParentBlockContent.js.map +1 -0
  221. package/lib/BlockRenderer/getParentBlockDef.d.ts +3 -0
  222. package/lib/BlockRenderer/getParentBlockDef.js +4 -0
  223. package/lib/BlockRenderer/getParentBlockDef.js.map +1 -0
  224. package/lib/BlockRenderer/renderBlock.d.ts +3 -0
  225. package/lib/BlockRenderer/renderBlock.js +24 -0
  226. package/lib/BlockRenderer/renderBlock.js.map +1 -0
  227. package/lib/BlockRenderer/renderBlockList.d.ts +9 -0
  228. package/lib/BlockRenderer/renderBlockList.js +11 -0
  229. package/lib/BlockRenderer/renderBlockList.js.map +1 -0
  230. package/lib/BlockRenderer/renderChildren.d.ts +10 -0
  231. package/lib/BlockRenderer/renderChildren.js +10 -0
  232. package/lib/BlockRenderer/renderChildren.js.map +1 -0
  233. package/lib/common.css +1 -1
  234. package/lib/components/Accordion/Accordion.fixture.d.ts +3 -2
  235. package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +3 -2
  236. package/lib/components/Accordion/Accordion.js +3 -1
  237. package/lib/components/Accordion/Accordion.js.map +1 -1
  238. package/lib/components/Accordion/Accordion.mobile.js +3 -1
  239. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  240. package/lib/components/AccordionItem/AccordionItem.js +4 -2
  241. package/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  242. package/lib/components/AccordionItem/AccordionItem.mobile.js +7 -5
  243. package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  244. package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +1 -1
  245. package/lib/components/Blocks.js +3 -1
  246. package/lib/components/Blocks.js.map +1 -1
  247. package/lib/components/Bonus/Bonus.fixture.d.ts +1 -1
  248. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.d.ts +2 -1
  249. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  250. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  251. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  252. package/lib/components/BusinessBlock/BusinessBlock.fixture.d.ts +1 -1
  253. package/lib/components/Calculator/Calculator.fixture.d.ts +1 -1
  254. package/lib/components/Calculator/Calculator.js +23 -23
  255. package/lib/components/Calculator/Calculator.js.map +1 -1
  256. package/lib/components/Calculator/CalculatorValueBlock.js +1 -3
  257. package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  258. package/lib/components/CardTransfer/CardTransfer.fixture.d.ts +1 -1
  259. package/lib/components/CardTransfer/CardTransfer.js +3 -2
  260. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  261. package/lib/components/Carousel/Carousel.d.ts +1 -0
  262. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -1
  263. package/lib/components/Carousel/Carousel.js +16 -14
  264. package/lib/components/Carousel/Carousel.js.map +1 -1
  265. package/lib/components/Carousel/CarouselContainer.d.ts +8 -5
  266. package/lib/components/Carousel/CarouselContainer.js +8 -5
  267. package/lib/components/Carousel/CarouselContainer.js.map +1 -1
  268. package/lib/components/Carousel/CarouselContent.d.ts +5 -8
  269. package/lib/components/Carousel/CarouselContent.js +0 -3
  270. package/lib/components/Carousel/CarouselContent.js.map +1 -1
  271. package/lib/components/CarouselCard/CarouselCard.d.ts +0 -2
  272. package/lib/components/CarouselCard/CarouselCard.fixture.d.ts +2 -1
  273. package/lib/components/CarouselCard/CarouselCard.js +4 -11
  274. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  275. package/lib/components/CarouselLinks/CarouselLinks.js +9 -9
  276. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  277. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  278. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  279. package/lib/components/Catalog/Catalog.fixture.d.ts +1 -1
  280. package/lib/components/Catalog/Catalog.js +8 -11
  281. package/lib/components/Catalog/Catalog.js.map +1 -1
  282. package/lib/components/ComparisonTable/ComparisonTable.fixture.d.ts +2 -2
  283. package/lib/components/ComparisonTable/ComparisonTable.fixture.mobile.d.ts +1 -1
  284. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +2 -2
  285. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  286. package/lib/components/ComparisonTable/ComparisonTableBody.js +4 -4
  287. package/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  288. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  289. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  290. package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  291. package/lib/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  292. package/lib/components/ComparisonTable/ComparisonTableRows.js +8 -7
  293. package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  294. package/lib/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  295. package/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
  296. package/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  297. package/lib/components/ComparisonTable/TableRow.d.ts +1 -1
  298. package/lib/components/ComparisonTable/TableRow.js +1 -1
  299. package/lib/components/ComparisonTable/TableRow.js.map +1 -1
  300. package/lib/components/ComparisonTable/constants.d.ts +1 -1
  301. package/lib/components/ComparisonTable/constants.js +1 -1
  302. package/lib/components/ContactsBlock/ContactsBlock.fixture.d.ts +1 -1
  303. package/lib/components/ContactsBlock/ContactsBlock.js +3 -5
  304. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  305. package/lib/components/ContentPage/ContentPage.fixture.d.ts +1 -1
  306. package/lib/components/ContentPage/ContentPage.fixture.mobile.d.ts +1 -1
  307. package/lib/components/ContentPage/ContentPage.js +13 -7
  308. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  309. package/lib/components/ErrorBlock/ErrorBlock.fixture.d.ts +1 -1
  310. package/lib/components/ExchangeRateTile/CurrencyTable.js +1 -3
  311. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  312. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -4
  313. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  314. package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.d.ts +1 -1
  315. package/lib/components/Footer/Footer.fixture.d.ts +1 -1
  316. package/lib/components/Footer/Footer.fixture.mobile.d.ts +1 -1
  317. package/lib/components/Footer/Footer.js +1 -1
  318. package/lib/components/Footer/Footer.js.map +1 -1
  319. package/lib/components/Footer/Footer.mobile.js +2 -2
  320. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  321. package/lib/components/Gallery/Gallery.fixture.d.ts +1 -1
  322. package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +1 -1
  323. package/lib/components/Gallery/GalleryCardInner.js +2 -4
  324. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  325. package/lib/components/Gallery/GalleryContainer.d.ts +1 -1
  326. package/lib/components/Gallery/GalleryContainer.js +1 -3
  327. package/lib/components/Gallery/GalleryContainer.js.map +1 -1
  328. package/lib/components/Gallery/GalleryInner.js +9 -12
  329. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  330. package/lib/components/GracePeriod/GracePeriod.fixture.d.ts +1 -1
  331. package/lib/components/Header/Header.fixture.d.ts +1 -1
  332. package/lib/components/Header/Header.fixture.mobile.d.ts +1 -1
  333. package/lib/components/Header/Header.js +1 -1
  334. package/lib/components/Header/Header.js.map +1 -1
  335. package/lib/components/Header/Header.mobile.js +2 -3
  336. package/lib/components/Header/Header.mobile.js.map +1 -1
  337. package/lib/components/Headline/Headline.fixture.d.ts +1 -1
  338. package/lib/components/Headline/Headline.fixture.mobile.d.ts +1 -1
  339. package/lib/components/Headline/Headline.js +1 -2
  340. package/lib/components/Headline/Headline.js.map +1 -1
  341. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +1 -1
  342. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +24 -26
  343. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  344. package/lib/components/InvestmentGallery/InvestmentGallery.fixture.d.ts +1 -1
  345. package/lib/components/InvestmentGallery/InvestmentGallery.js +10 -20
  346. package/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  347. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
  348. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
  349. package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +1 -1
  350. package/lib/components/LikeControl/LikeControl.fixture.d.ts +1 -1
  351. package/lib/components/LinkDocs/LinkDocs.fixture.d.ts +1 -1
  352. package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +1 -1
  353. package/lib/components/LinkList/LinkList.fixture.d.ts +1 -1
  354. package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +1 -1
  355. package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +1 -1
  356. package/lib/components/MobileAppTile/MobileAppTile.fixture.mobile.d.ts +1 -1
  357. package/lib/components/MobileAppTile/MobileAppTile.js +4 -4
  358. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  359. package/lib/components/OfficeMap/OfficeMap.fixture.d.ts +1 -1
  360. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.fixture.d.ts +1 -1
  361. package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +3 -2
  362. package/lib/components/OtherProducts/OtherProducts.js +2 -1
  363. package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  364. package/lib/components/OtherProductsItem/OtherProductsItem.js +5 -4
  365. package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  366. package/lib/components/PictureText/PictureText.fixture.d.ts +1 -1
  367. package/lib/components/Placeholder/Placeholder.fixture.d.ts +1 -1
  368. package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +1 -1
  369. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +2 -1
  370. package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +1 -1
  371. package/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  372. package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
  373. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  374. package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +1 -1
  375. package/lib/components/ProductTile/ProductTile.fixture.d.ts +1 -1
  376. package/lib/components/PromoTile/PromoTile.fixture.d.ts +1 -1
  377. package/lib/components/Recommendation/Recommendation.fixture.d.ts +1 -1
  378. package/lib/components/Recommendation/Recommendation.js +11 -21
  379. package/lib/components/Recommendation/Recommendation.js.map +1 -1
  380. package/lib/components/Recommendation/RecommendationCard.js +1 -2
  381. package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  382. package/lib/components/RollupItem/RollupItem.js +5 -3
  383. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  384. package/lib/components/SafeDepositRental/SafeDepositRental.fixture.d.ts +1 -1
  385. package/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  386. package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +1 -1
  387. package/lib/components/StepsBlock/StepsBlock.fixture.mobile.d.ts +1 -1
  388. package/lib/components/StepsBlock/StepsBlock.js +1 -1
  389. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  390. package/lib/components/Tabs/Tabs.fixture.d.ts +1 -1
  391. package/lib/components/TariffsTable/TariffsTable.fixture.d.ts +1 -1
  392. package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +1 -1
  393. package/lib/components/TariffsTable/TariffsTable.js +12 -14
  394. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  395. package/lib/components/TariffsTable/TariffsTable.mobile.js +1 -1
  396. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  397. package/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  398. package/lib/components/TariffsTable/TariffsTableRow.js +2 -2
  399. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  400. package/lib/components/TextBlock/TextBlock.fixture.d.ts +1 -1
  401. package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +1 -1
  402. package/lib/components/Tile/Tile.fixture.d.ts +1 -1
  403. package/lib/components/Tile/Tile.js +2 -2
  404. package/lib/components/Tile/Tile.js.map +1 -1
  405. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +1 -1
  406. package/lib/components/VerticalLayout/VerticalLayout.js +3 -2
  407. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  408. package/lib/components/Video/Video.d.ts +6 -0
  409. package/lib/components/Video/Video.fixture.d.ts +8 -0
  410. package/lib/components/Video/Video.js +10 -0
  411. package/lib/components/Video/Video.js.map +1 -0
  412. package/lib/components/Video/VideoContent.d.ts +8 -0
  413. package/lib/components/Video/VideoContent.js +2 -0
  414. package/lib/components/Video/VideoContent.js.map +1 -0
  415. package/lib/components/Video/getPaddings.d.ts +1 -0
  416. package/lib/components/Video/getPaddings.js +4 -0
  417. package/lib/components/Video/getPaddings.js.map +1 -0
  418. package/lib/hooks/useCarouselControls.d.ts +5 -3
  419. package/lib/hooks/useCarouselControls.js +19 -8
  420. package/lib/hooks/useCarouselControls.js.map +1 -1
  421. package/lib/model/JSXBlock.d.ts +4 -5
  422. package/lib/model/LinkProps.d.ts +1 -0
  423. package/lib/model/Picture.d.ts +8 -2
  424. package/lib/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  425. package/lib/{react/setup-fixture.js → setup-fixture.js} +4 -4
  426. package/lib/setup-fixture.js.map +1 -0
  427. package/lib/ui-kit/Button/Button.fixture.d.ts +1 -1
  428. package/lib/ui-kit/Button/renderArrows.d.ts +6 -4
  429. package/lib/ui-kit/Button/renderArrows.js +3 -2
  430. package/lib/ui-kit/Button/renderArrows.js.map +1 -1
  431. package/lib/ui-kit/HeaderItem/HeaderItem.fixture.d.ts +1 -1
  432. package/lib/ui-kit/Icon/Icon.fixture.d.ts +1 -1
  433. package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
  434. package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  435. package/lib/ui-kit/List/List.fixture.d.ts +1 -1
  436. package/lib/ui-kit/Logo/Logo.fixture.d.ts +1 -1
  437. package/lib/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  438. package/lib/ui-kit/Paragraph/Paragraph.js +8 -0
  439. package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -0
  440. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +1 -1
  441. package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +3 -1
  442. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +6 -3
  443. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  444. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  445. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  446. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  447. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  448. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  449. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  450. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  451. package/lib/ui-kit/Text/Text.d.ts +34 -0
  452. package/lib/ui-kit/Text/Text.js +8 -0
  453. package/lib/ui-kit/Text/Text.js.map +1 -0
  454. package/lib/ui-kit/TopItem/TopItem.fixture.d.ts +1 -1
  455. package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  456. package/mobile/bundle/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  457. package/mobile/bundle/BlockRenderer/getParentBlockContent.d.ts +2 -0
  458. package/mobile/bundle/BlockRenderer/getParentBlockDef.d.ts +3 -0
  459. package/mobile/bundle/BlockRenderer/renderBlock.d.ts +3 -0
  460. package/mobile/bundle/BlockRenderer/renderBlockList.d.ts +9 -0
  461. package/mobile/bundle/BlockRenderer/renderChildren.d.ts +10 -0
  462. package/mobile/bundle/bundle.umd.js +103 -88
  463. package/mobile/bundle/bundle.umd.min.js +1 -1
  464. package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  465. package/mobile/bundle/components/Carousel/Carousel.d.ts +1 -0
  466. package/mobile/bundle/components/Carousel/CarouselContainer.d.ts +8 -5
  467. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +5 -8
  468. package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +0 -2
  469. package/mobile/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  470. package/mobile/bundle/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  471. package/mobile/bundle/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  472. package/mobile/bundle/components/ComparisonTable/TableRow.d.ts +1 -1
  473. package/mobile/bundle/components/ComparisonTable/constants.d.ts +1 -1
  474. package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +1 -1
  475. package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  476. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  477. package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  478. package/mobile/bundle/components/Video/Video.d.ts +6 -0
  479. package/mobile/bundle/components/Video/VideoContent.d.ts +8 -0
  480. package/mobile/bundle/components/Video/getPaddings.d.ts +1 -0
  481. package/mobile/bundle/hooks/useCarouselControls.d.ts +5 -3
  482. package/mobile/bundle/model/JSXBlock.d.ts +4 -5
  483. package/mobile/bundle/model/LinkProps.d.ts +1 -0
  484. package/mobile/bundle/model/Picture.d.ts +8 -2
  485. package/mobile/bundle/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  486. package/mobile/bundle/ui-kit/Button/renderArrows.d.ts +6 -4
  487. package/mobile/bundle/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  488. package/mobile/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  489. package/mobile/bundle/ui-kit/Text/Text.d.ts +34 -0
  490. package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  491. package/mobile/dist/BlockRenderer/BlockRendererOptions.js +2 -0
  492. package/mobile/dist/BlockRenderer/BlockRendererOptions.js.map +1 -0
  493. package/mobile/dist/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  494. package/mobile/dist/BlockRenderer/defaultBlockDecorator.js +5 -0
  495. package/mobile/dist/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  496. package/mobile/dist/BlockRenderer/getParentBlockContent.d.ts +2 -0
  497. package/{dist/model → mobile/dist/BlockRenderer}/getParentBlockContent.js +2 -2
  498. package/mobile/dist/BlockRenderer/getParentBlockContent.js.map +1 -0
  499. package/mobile/dist/BlockRenderer/getParentBlockDef.d.ts +3 -0
  500. package/mobile/dist/BlockRenderer/getParentBlockDef.js +7 -0
  501. package/mobile/dist/BlockRenderer/getParentBlockDef.js.map +1 -0
  502. package/mobile/dist/BlockRenderer/renderBlock.d.ts +3 -0
  503. package/mobile/dist/BlockRenderer/renderBlock.js +27 -0
  504. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -0
  505. package/mobile/dist/BlockRenderer/renderBlockList.d.ts +9 -0
  506. package/mobile/dist/BlockRenderer/renderBlockList.js +14 -0
  507. package/mobile/dist/BlockRenderer/renderBlockList.js.map +1 -0
  508. package/mobile/dist/BlockRenderer/renderChildren.d.ts +10 -0
  509. package/mobile/dist/BlockRenderer/renderChildren.js +13 -0
  510. package/mobile/dist/BlockRenderer/renderChildren.js.map +1 -0
  511. package/mobile/dist/components/Accordion/Accordion.js +3 -1
  512. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  513. package/mobile/dist/components/AccordionItem/AccordionItem.js +7 -5
  514. package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  515. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  516. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  517. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  518. package/mobile/dist/components/Calculator/Calculator.js +22 -22
  519. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  520. package/mobile/dist/components/Calculator/CalculatorValueBlock.js +1 -3
  521. package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
  522. package/mobile/dist/components/CardTransfer/CardTransfer.js +2 -1
  523. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  524. package/mobile/dist/components/Carousel/Carousel.d.ts +1 -0
  525. package/mobile/dist/components/Carousel/Carousel.js +16 -14
  526. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  527. package/mobile/dist/components/Carousel/CarouselContainer.d.ts +8 -5
  528. package/mobile/dist/components/Carousel/CarouselContainer.js +8 -5
  529. package/mobile/dist/components/Carousel/CarouselContainer.js.map +1 -1
  530. package/mobile/dist/components/Carousel/CarouselContent.d.ts +5 -8
  531. package/mobile/dist/components/Carousel/CarouselContent.js +0 -3
  532. package/mobile/dist/components/Carousel/CarouselContent.js.map +1 -1
  533. package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +0 -2
  534. package/mobile/dist/components/CarouselCard/CarouselCard.js +4 -11
  535. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  536. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +9 -9
  537. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  538. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  539. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  540. package/mobile/dist/components/Catalog/Catalog.js +8 -11
  541. package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
  542. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +2 -2
  543. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  544. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js +4 -4
  545. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  546. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  547. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  548. package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  549. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  550. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +8 -7
  551. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  552. package/mobile/dist/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  553. package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
  554. package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  555. package/mobile/dist/components/ComparisonTable/TableRow.d.ts +1 -1
  556. package/mobile/dist/components/ComparisonTable/TableRow.js +1 -1
  557. package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
  558. package/mobile/dist/components/ComparisonTable/constants.d.ts +1 -1
  559. package/mobile/dist/components/ComparisonTable/constants.js +1 -1
  560. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +3 -5
  561. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  562. package/mobile/dist/components/ContentPage/ContentPage.js +13 -7
  563. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  564. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +1 -3
  565. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  566. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -3
  567. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  568. package/mobile/dist/components/Footer/Footer.js +2 -2
  569. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  570. package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -4
  571. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  572. package/mobile/dist/components/Gallery/GalleryContainer.d.ts +1 -1
  573. package/mobile/dist/components/Gallery/GalleryContainer.js +1 -3
  574. package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
  575. package/mobile/dist/components/Gallery/GalleryInner.js +9 -12
  576. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  577. package/mobile/dist/components/Header/Header.js +2 -3
  578. package/mobile/dist/components/Header/Header.js.map +1 -1
  579. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +23 -25
  580. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  581. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js +10 -20
  582. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  583. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
  584. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
  585. package/mobile/dist/components/OtherProducts/OtherProducts.js +2 -1
  586. package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
  587. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +5 -4
  588. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  589. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  590. package/mobile/dist/components/Recommendation/Recommendation.js +11 -21
  591. package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
  592. package/mobile/dist/components/Recommendation/RecommendationCard.js +1 -2
  593. package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  594. package/mobile/dist/components/RollupItem/RollupItem.js +5 -3
  595. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  596. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  597. package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
  598. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  599. package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  600. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +2 -2
  601. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  602. package/mobile/dist/components/Tile/Tile.js +2 -2
  603. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  604. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +3 -2
  605. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  606. package/mobile/dist/components/Video/Video.d.ts +6 -0
  607. package/mobile/dist/components/Video/Video.js +12 -0
  608. package/mobile/dist/components/Video/Video.js.map +1 -0
  609. package/mobile/dist/components/Video/VideoContent.d.ts +8 -0
  610. package/mobile/dist/components/Video/VideoContent.js +2 -0
  611. package/mobile/dist/components/Video/VideoContent.js.map +1 -0
  612. package/mobile/dist/components/Video/getPaddings.d.ts +1 -0
  613. package/mobile/dist/components/Video/getPaddings.js +7 -0
  614. package/mobile/dist/components/Video/getPaddings.js.map +1 -0
  615. package/mobile/dist/hooks/useCarouselControls.d.ts +5 -3
  616. package/mobile/dist/hooks/useCarouselControls.js +19 -8
  617. package/mobile/dist/hooks/useCarouselControls.js.map +1 -1
  618. package/mobile/dist/model/JSXBlock.d.ts +4 -5
  619. package/mobile/dist/model/LinkProps.d.ts +1 -0
  620. package/mobile/dist/model/Picture.d.ts +8 -2
  621. package/mobile/dist/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  622. package/{dist/react → mobile/dist}/setup-fixture.js +4 -4
  623. package/mobile/dist/setup-fixture.js.map +1 -0
  624. package/mobile/dist/ui-kit/Button/renderArrows.d.ts +6 -4
  625. package/mobile/dist/ui-kit/Button/renderArrows.js +3 -2
  626. package/mobile/dist/ui-kit/Button/renderArrows.js.map +1 -1
  627. package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
  628. package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  629. package/mobile/dist/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  630. package/mobile/dist/ui-kit/Paragraph/Paragraph.js +10 -0
  631. package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -0
  632. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +5 -2
  633. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  634. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  635. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  636. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  637. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  638. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  639. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  640. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  641. package/mobile/dist/ui-kit/Text/Text.d.ts +34 -0
  642. package/mobile/dist/ui-kit/Text/Text.js +10 -0
  643. package/mobile/dist/ui-kit/Text/Text.js.map +1 -0
  644. package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +11 -0
  645. package/mobile/lib/BlockRenderer/BlockRendererOptions.js +2 -0
  646. package/mobile/lib/BlockRenderer/BlockRendererOptions.js.map +1 -0
  647. package/mobile/lib/BlockRenderer/defaultBlockDecorator.d.ts +2 -0
  648. package/mobile/lib/BlockRenderer/defaultBlockDecorator.js +2 -0
  649. package/mobile/lib/BlockRenderer/defaultBlockDecorator.js.map +1 -0
  650. package/mobile/lib/BlockRenderer/getParentBlockContent.d.ts +2 -0
  651. package/mobile/lib/BlockRenderer/getParentBlockContent.js +6 -0
  652. package/mobile/lib/BlockRenderer/getParentBlockContent.js.map +1 -0
  653. package/mobile/lib/BlockRenderer/getParentBlockDef.d.ts +3 -0
  654. package/mobile/lib/BlockRenderer/getParentBlockDef.js +4 -0
  655. package/mobile/lib/BlockRenderer/getParentBlockDef.js.map +1 -0
  656. package/mobile/lib/BlockRenderer/renderBlock.d.ts +3 -0
  657. package/mobile/lib/BlockRenderer/renderBlock.js +24 -0
  658. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -0
  659. package/mobile/lib/BlockRenderer/renderBlockList.d.ts +9 -0
  660. package/mobile/lib/BlockRenderer/renderBlockList.js +11 -0
  661. package/mobile/lib/BlockRenderer/renderBlockList.js.map +1 -0
  662. package/mobile/lib/BlockRenderer/renderChildren.d.ts +10 -0
  663. package/mobile/lib/BlockRenderer/renderChildren.js +10 -0
  664. package/mobile/lib/BlockRenderer/renderChildren.js.map +1 -0
  665. package/mobile/lib/components/Accordion/Accordion.js +3 -1
  666. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  667. package/mobile/lib/components/AccordionItem/AccordionItem.js +7 -5
  668. package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  669. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +16 -4
  670. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  671. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +6 -3
  672. package/mobile/lib/components/Calculator/Calculator.js +23 -23
  673. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  674. package/mobile/lib/components/Calculator/CalculatorValueBlock.js +1 -3
  675. package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
  676. package/mobile/lib/components/CardTransfer/CardTransfer.js +3 -2
  677. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  678. package/mobile/lib/components/Carousel/Carousel.d.ts +1 -0
  679. package/mobile/lib/components/Carousel/Carousel.js +16 -14
  680. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  681. package/mobile/lib/components/Carousel/CarouselContainer.d.ts +8 -5
  682. package/mobile/lib/components/Carousel/CarouselContainer.js +8 -5
  683. package/mobile/lib/components/Carousel/CarouselContainer.js.map +1 -1
  684. package/mobile/lib/components/Carousel/CarouselContent.d.ts +5 -8
  685. package/mobile/lib/components/Carousel/CarouselContent.js +0 -3
  686. package/mobile/lib/components/Carousel/CarouselContent.js.map +1 -1
  687. package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +0 -2
  688. package/mobile/lib/components/CarouselCard/CarouselCard.js +4 -11
  689. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  690. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +9 -9
  691. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  692. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  693. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  694. package/mobile/lib/components/Catalog/Catalog.js +8 -11
  695. package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
  696. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +2 -2
  697. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  698. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js +4 -4
  699. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  700. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +1 -1
  701. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -1
  702. package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
  703. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.d.ts +1 -2
  704. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +8 -7
  705. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  706. package/mobile/lib/components/ComparisonTable/TableCarouselContainer.d.ts +1 -1
  707. package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
  708. package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js.map +1 -1
  709. package/mobile/lib/components/ComparisonTable/TableRow.d.ts +1 -1
  710. package/mobile/lib/components/ComparisonTable/TableRow.js +1 -1
  711. package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
  712. package/mobile/lib/components/ComparisonTable/constants.d.ts +1 -1
  713. package/mobile/lib/components/ComparisonTable/constants.js +1 -1
  714. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +3 -5
  715. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  716. package/mobile/lib/components/ContentPage/ContentPage.js +13 -7
  717. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  718. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +1 -3
  719. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  720. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -4
  721. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  722. package/mobile/lib/components/Footer/Footer.js +2 -2
  723. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  724. package/mobile/lib/components/Gallery/GalleryCardInner.js +2 -4
  725. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  726. package/mobile/lib/components/Gallery/GalleryContainer.d.ts +1 -1
  727. package/mobile/lib/components/Gallery/GalleryContainer.js +1 -3
  728. package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
  729. package/mobile/lib/components/Gallery/GalleryInner.js +9 -12
  730. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  731. package/mobile/lib/components/Header/Header.js +2 -3
  732. package/mobile/lib/components/Header/Header.js.map +1 -1
  733. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +24 -26
  734. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  735. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js +10 -20
  736. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
  737. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js +1 -2
  738. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
  739. package/mobile/lib/components/OtherProducts/OtherProducts.js +2 -1
  740. package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
  741. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +5 -4
  742. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  743. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +2 -1
  744. package/mobile/lib/components/Recommendation/Recommendation.js +11 -21
  745. package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
  746. package/mobile/lib/components/Recommendation/RecommendationCard.js +1 -2
  747. package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  748. package/mobile/lib/components/RollupItem/RollupItem.js +5 -3
  749. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  750. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -4
  751. package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
  752. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  753. package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
  754. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +2 -2
  755. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  756. package/mobile/lib/components/Tile/Tile.js +2 -2
  757. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  758. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +3 -2
  759. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  760. package/mobile/lib/components/Video/Video.d.ts +6 -0
  761. package/mobile/lib/components/Video/Video.js +10 -0
  762. package/mobile/lib/components/Video/Video.js.map +1 -0
  763. package/mobile/lib/components/Video/VideoContent.d.ts +8 -0
  764. package/mobile/lib/components/Video/VideoContent.js +2 -0
  765. package/mobile/lib/components/Video/VideoContent.js.map +1 -0
  766. package/mobile/lib/components/Video/getPaddings.d.ts +1 -0
  767. package/mobile/lib/components/Video/getPaddings.js +4 -0
  768. package/mobile/lib/components/Video/getPaddings.js.map +1 -0
  769. package/mobile/lib/hooks/useCarouselControls.d.ts +5 -3
  770. package/mobile/lib/hooks/useCarouselControls.js +19 -8
  771. package/mobile/lib/hooks/useCarouselControls.js.map +1 -1
  772. package/mobile/lib/model/JSXBlock.d.ts +4 -5
  773. package/mobile/lib/model/LinkProps.d.ts +1 -0
  774. package/mobile/lib/model/Picture.d.ts +8 -2
  775. package/mobile/lib/{react/setup-fixture.d.ts → setup-fixture.d.ts} +0 -0
  776. package/mobile/lib/{react/setup-fixture.js → setup-fixture.js} +4 -4
  777. package/mobile/lib/setup-fixture.js.map +1 -0
  778. package/mobile/lib/ui-kit/Button/renderArrows.d.ts +6 -4
  779. package/mobile/lib/ui-kit/Button/renderArrows.js +3 -2
  780. package/mobile/lib/ui-kit/Button/renderArrows.js.map +1 -1
  781. package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +9 -10
  782. package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
  783. package/mobile/lib/ui-kit/Paragraph/Paragraph.d.ts +9 -0
  784. package/mobile/lib/ui-kit/Paragraph/Paragraph.js +8 -0
  785. package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -0
  786. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +6 -3
  787. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  788. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +9 -12
  789. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  790. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js +2 -2
  791. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +1 -1
  792. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +5 -3
  793. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  794. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +2 -1
  795. package/mobile/lib/ui-kit/Text/Text.d.ts +34 -0
  796. package/mobile/lib/ui-kit/Text/Text.js +8 -0
  797. package/mobile/lib/ui-kit/Text/Text.js.map +1 -0
  798. package/mobile/src/BlockRenderer/BlockRendererOptions.ts +12 -0
  799. package/mobile/src/BlockRenderer/defaultBlockDecorator.ts +4 -0
  800. package/mobile/src/{model → BlockRenderer}/getParentBlockContent.ts +3 -3
  801. package/mobile/src/BlockRenderer/getParentBlockDef.ts +6 -0
  802. package/mobile/src/BlockRenderer/renderBlock.tsx +47 -0
  803. package/mobile/src/BlockRenderer/renderBlockList.tsx +33 -0
  804. package/mobile/src/BlockRenderer/renderChildren.ts +25 -0
  805. package/mobile/src/components/Accordion/Accordion.tsx +12 -7
  806. package/mobile/src/components/AccordionItem/AccordionItem.tsx +12 -8
  807. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -0
  808. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +31 -18
  809. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +6 -3
  810. package/mobile/src/components/Calculator/Calculator.tsx +32 -33
  811. package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +10 -12
  812. package/mobile/src/components/CardTransfer/CardTransfer.tsx +3 -2
  813. package/mobile/src/components/Carousel/Carousel.example.json +2 -2
  814. package/mobile/src/components/Carousel/Carousel.tsx +29 -40
  815. package/mobile/src/components/Carousel/CarouselContainer.tsx +19 -12
  816. package/mobile/src/components/Carousel/CarouselContent.ts +5 -9
  817. package/mobile/src/components/CarouselCard/CarouselCard.tsx +22 -34
  818. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +30 -24
  819. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -3
  820. package/mobile/src/components/Catalog/Catalog.tsx +8 -13
  821. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
  822. package/mobile/src/components/ComparisonTable/ComparisonTableBody.tsx +6 -7
  823. package/mobile/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +3 -3
  824. package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +10 -14
  825. package/mobile/src/components/ComparisonTable/TableCarouselContainer.tsx +3 -3
  826. package/mobile/src/components/ComparisonTable/TableRow.tsx +3 -3
  827. package/mobile/src/components/ComparisonTable/constants.ts +1 -1
  828. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +10 -13
  829. package/mobile/src/components/ContentPage/ContentPage.tsx +21 -20
  830. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +12 -14
  831. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -4
  832. package/mobile/src/components/Footer/Footer.tsx +3 -3
  833. package/mobile/src/components/Gallery/GalleryCardInner.tsx +12 -14
  834. package/mobile/src/components/Gallery/GalleryContainer.tsx +14 -16
  835. package/mobile/src/components/Gallery/GalleryInner.tsx +9 -22
  836. package/mobile/src/components/Header/Header.tsx +3 -4
  837. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +29 -42
  838. package/mobile/src/components/InvestmentGallery/InvestmentGallery.tsx +12 -34
  839. package/mobile/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +2 -3
  840. package/mobile/src/components/OtherProducts/OtherProducts.tsx +3 -2
  841. package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +6 -5
  842. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +3 -1
  843. package/mobile/src/components/Recommendation/Recommendation.tsx +12 -36
  844. package/mobile/src/components/Recommendation/RecommendationCard.tsx +1 -2
  845. package/mobile/src/components/RollupItem/RollupItem.tsx +9 -7
  846. package/mobile/src/components/SafeDepositRental/SafeDepositRentalContent.ts +1 -5
  847. package/mobile/src/components/TariffsTable/TariffsTable.tsx +1 -1
  848. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +3 -3
  849. package/mobile/src/components/Tile/Tile.tsx +4 -2
  850. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +3 -2
  851. package/mobile/src/components/Video/Video.tsx +29 -0
  852. package/mobile/src/components/Video/Video.ui.json +12 -0
  853. package/mobile/src/components/Video/VideoContent.ts +9 -0
  854. package/mobile/src/components/Video/getPaddings.ts +6 -0
  855. package/mobile/src/hooks/useCarouselControls.ts +33 -19
  856. package/mobile/src/model/JSXBlock.ts +4 -5
  857. package/mobile/src/model/LinkProps.ts +1 -0
  858. package/mobile/src/model/Picture.ts +8 -2
  859. package/{src/react → mobile/src}/setup-fixture.ts +4 -4
  860. package/mobile/src/ui-kit/Button/renderArrows.tsx +22 -17
  861. package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +9 -13
  862. package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +17 -0
  863. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +35 -28
  864. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +32 -27
  865. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +10 -8
  866. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +5 -3
  867. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +2 -1
  868. package/mobile/src/ui-kit/Text/Text.tsx +79 -0
  869. package/package.json +1 -1
  870. package/src/BlockRenderer/BlockRendererOptions.ts +12 -0
  871. package/src/BlockRenderer/defaultBlockDecorator.ts +4 -0
  872. package/src/{model → BlockRenderer}/getParentBlockContent.ts +3 -3
  873. package/src/BlockRenderer/getParentBlockDef.ts +6 -0
  874. package/src/BlockRenderer/renderBlock.tsx +47 -0
  875. package/src/BlockRenderer/renderBlockList.tsx +33 -0
  876. package/src/BlockRenderer/renderChildren.ts +25 -0
  877. package/src/components/Accordion/Accordion.fixture.mobile.tsx +40 -55
  878. package/src/components/Accordion/Accordion.fixture.tsx +79 -52
  879. package/src/components/Accordion/Accordion.mobile.tsx +12 -7
  880. package/src/components/Accordion/Accordion.tsx +10 -4
  881. package/src/components/AccordionItem/AccordionItem.fixture.mobile.tsx +13 -2
  882. package/src/components/AccordionItem/AccordionItem.fixture.tsx +12 -1
  883. package/src/components/AccordionItem/AccordionItem.mobile.tsx +12 -8
  884. package/src/components/AccordionItem/AccordionItem.tsx +7 -3
  885. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +1 -1
  886. package/src/components/Blocks.ts +3 -1
  887. package/src/components/Bonus/Bonus.fixture.tsx +1 -1
  888. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -0
  889. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +12 -1
  890. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +31 -18
  891. package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +6 -3
  892. package/src/components/BusinessBlock/BusinessBlock.fixture.tsx +1 -1
  893. package/src/components/Calculator/Calculator.fixture.tsx +1 -1
  894. package/src/components/Calculator/Calculator.tsx +32 -33
  895. package/src/components/Calculator/CalculatorValueBlock.tsx +10 -12
  896. package/src/components/CardTransfer/CardTransfer.fixture.tsx +1 -1
  897. package/src/components/CardTransfer/CardTransfer.tsx +3 -2
  898. package/src/components/Carousel/Carousel.example.json +2 -2
  899. package/src/components/Carousel/Carousel.fixture.tsx +38 -45
  900. package/src/components/Carousel/Carousel.tsx +29 -40
  901. package/src/components/Carousel/CarouselContainer.tsx +19 -12
  902. package/src/components/Carousel/CarouselContent.ts +5 -9
  903. package/src/components/CarouselCard/CarouselCard.fixture.tsx +9 -4
  904. package/src/components/CarouselCard/CarouselCard.tsx +22 -34
  905. package/src/components/CarouselLinks/CarouselLinks.tsx +30 -24
  906. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -3
  907. package/src/components/Catalog/Catalog.fixture.tsx +1 -1
  908. package/src/components/Catalog/Catalog.tsx +8 -13
  909. package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +1 -1
  910. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +2 -2
  911. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +2 -2
  912. package/src/components/ComparisonTable/ComparisonTableBody.tsx +6 -7
  913. package/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +3 -3
  914. package/src/components/ComparisonTable/ComparisonTableRows.tsx +10 -14
  915. package/src/components/ComparisonTable/TableCarouselContainer.tsx +3 -3
  916. package/src/components/ComparisonTable/TableRow.tsx +3 -3
  917. package/src/components/ComparisonTable/constants.ts +1 -1
  918. package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +1 -1
  919. package/src/components/ContactsBlock/ContactsBlock.tsx +10 -13
  920. package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +1 -1
  921. package/src/components/ContentPage/ContentPage.fixture.tsx +1 -1
  922. package/src/components/ContentPage/ContentPage.tsx +21 -20
  923. package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +1 -1
  924. package/src/components/ExchangeRateTile/CurrencyTable.tsx +12 -14
  925. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -4
  926. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
  927. package/src/components/Footer/Footer.fixture.mobile.tsx +1 -1
  928. package/src/components/Footer/Footer.fixture.tsx +1 -1
  929. package/src/components/Footer/Footer.mobile.tsx +3 -3
  930. package/src/components/Footer/Footer.tsx +1 -1
  931. package/src/components/Gallery/Gallery.fixture.mobile.tsx +1 -1
  932. package/src/components/Gallery/Gallery.fixture.tsx +1 -1
  933. package/src/components/Gallery/GalleryCardInner.tsx +12 -14
  934. package/src/components/Gallery/GalleryContainer.tsx +14 -16
  935. package/src/components/Gallery/GalleryInner.tsx +9 -22
  936. package/src/components/GracePeriod/GracePeriod.fixture.tsx +1 -1
  937. package/src/components/Header/Header.fixture.mobile.tsx +1 -1
  938. package/src/components/Header/Header.fixture.tsx +1 -1
  939. package/src/components/Header/Header.mobile.tsx +3 -4
  940. package/src/components/Header/Header.tsx +1 -1
  941. package/src/components/Headline/Headline.fixture.mobile.tsx +1 -1
  942. package/src/components/Headline/Headline.fixture.tsx +1 -1
  943. package/src/components/Headline/Headline.tsx +3 -5
  944. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +1 -1
  945. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +29 -42
  946. package/src/components/InvestmentGallery/InvestmentGallery.fixture.tsx +1 -1
  947. package/src/components/InvestmentGallery/InvestmentGallery.tsx +12 -34
  948. package/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +2 -3
  949. package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +1 -1
  950. package/src/components/LikeControl/LikeControl.fixture.tsx +1 -1
  951. package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -1
  952. package/src/components/LinkDocs/LinkDocs.fixture.tsx +1 -1
  953. package/src/components/LinkList/LinkList.fixture.tsx +1 -1
  954. package/src/components/MiniGallery/MiniGallery.fixture.tsx +1 -1
  955. package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +1 -1
  956. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -1
  957. package/src/components/MobileAppTile/MobileAppTile.tsx +5 -5
  958. package/src/components/OfficeMap/OfficeMap.fixture.tsx +1 -1
  959. package/src/components/OfficeServicesBlock/OfficeServicesBlock.fixture.tsx +1 -1
  960. package/src/components/OtherProducts/OtherProducts.fixture.tsx +86 -76
  961. package/src/components/OtherProducts/OtherProducts.tsx +3 -2
  962. package/src/components/OtherProductsItem/OtherProductsItem.fixture.tsx +16 -1
  963. package/src/components/OtherProductsItem/OtherProductsItem.tsx +6 -5
  964. package/src/components/PictureText/PictureText.fixture.tsx +1 -1
  965. package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +1 -1
  966. package/src/components/Placeholder/Placeholder.fixture.tsx +1 -1
  967. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +1 -1
  968. package/src/components/ProductBlock/ProductBlock.fixture.tsx +13 -1
  969. package/src/components/ProductBlock/ProductBlockContent.ts +3 -1
  970. package/src/components/ProductBlock/ProductBlockInner.tsx +26 -22
  971. package/src/components/ProductGallery/ProductGallery.fixture.tsx +1 -1
  972. package/src/components/ProductTile/ProductTile.fixture.tsx +1 -1
  973. package/src/components/PromoTile/PromoTile.fixture.tsx +1 -1
  974. package/src/components/Recommendation/Recommendation.fixture.tsx +1 -1
  975. package/src/components/Recommendation/Recommendation.tsx +12 -36
  976. package/src/components/Recommendation/RecommendationCard.tsx +1 -2
  977. package/src/components/RollupItem/RollupItem.fixture.tsx +44 -11
  978. package/src/components/RollupItem/RollupItem.tsx +9 -7
  979. package/src/components/SafeDepositRental/SafeDepositRental.fixture.tsx +1 -1
  980. package/src/components/SafeDepositRental/SafeDepositRentalContent.ts +1 -5
  981. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +1 -1
  982. package/src/components/StepsBlock/StepsBlock.fixture.tsx +1 -1
  983. package/src/components/StepsBlock/StepsBlock.tsx +1 -1
  984. package/src/components/Tabs/Tabs.fixture.tsx +1 -1
  985. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +1 -1
  986. package/src/components/TariffsTable/TariffsTable.fixture.tsx +1 -1
  987. package/src/components/TariffsTable/TariffsTable.mobile.tsx +1 -1
  988. package/src/components/TariffsTable/TariffsTable.tsx +21 -38
  989. package/src/components/TariffsTable/TariffsTableRow.tsx +3 -3
  990. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +1 -1
  991. package/src/components/TextBlock/TextBlock.fixture.tsx +1 -1
  992. package/src/components/Tile/Tile.fixture.tsx +1 -1
  993. package/src/components/Tile/Tile.tsx +4 -2
  994. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +126 -47
  995. package/src/components/VerticalLayout/VerticalLayout.tsx +3 -2
  996. package/src/components/Video/Video.fixture.tsx +33 -0
  997. package/src/components/Video/Video.tsx +29 -0
  998. package/src/components/Video/Video.ui.json +12 -0
  999. package/src/components/Video/VideoContent.ts +9 -0
  1000. package/src/components/Video/getPaddings.ts +6 -0
  1001. package/src/hooks/useCarouselControls.ts +33 -19
  1002. package/src/model/JSXBlock.ts +4 -5
  1003. package/src/model/LinkProps.ts +1 -0
  1004. package/src/model/Picture.ts +8 -2
  1005. package/{mobile/src/react → src}/setup-fixture.ts +4 -4
  1006. package/src/ui-kit/Button/Button.fixture.tsx +1 -1
  1007. package/src/ui-kit/Button/renderArrows.tsx +22 -17
  1008. package/src/ui-kit/HeaderItem/HeaderItem.fixture.tsx +1 -1
  1009. package/src/ui-kit/Icon/Icon.fixture.tsx +1 -1
  1010. package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +9 -13
  1011. package/src/ui-kit/List/List.fixture.tsx +1 -1
  1012. package/src/ui-kit/Logo/Logo.fixture.tsx +1 -1
  1013. package/src/ui-kit/Paragraph/Paragraph.tsx +17 -0
  1014. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +1 -1
  1015. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +24 -8
  1016. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +35 -28
  1017. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +32 -27
  1018. package/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +10 -8
  1019. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +5 -3
  1020. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +2 -1
  1021. package/src/ui-kit/Text/Text.tsx +79 -0
  1022. package/src/ui-kit/TopItem/TopItem.fixture.tsx +1 -1
  1023. package/bundle/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1024. package/bundle/components/ContentPage/renderBlock.d.ts +0 -15
  1025. package/bundle/components/ContentPage/renderBlockList.d.ts +0 -14
  1026. package/bundle/components/ContentPage/renderSlots.d.ts +0 -12
  1027. package/bundle/model/getParentBlockContent.d.ts +0 -2
  1028. package/bundle/model/getParentBlockDef.d.ts +0 -3
  1029. package/bundle/ui-kit/Description/Description.d.ts +0 -5
  1030. package/bundle/utils/sliceArray.d.ts +0 -1
  1031. package/dist/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1032. package/dist/components/Carousel/CarouselNavButtons.js +0 -36
  1033. package/dist/components/Carousel/CarouselNavButtons.js.map +0 -1
  1034. package/dist/components/ContentPage/renderBlock.d.ts +0 -15
  1035. package/dist/components/ContentPage/renderBlock.js +0 -29
  1036. package/dist/components/ContentPage/renderBlock.js.map +0 -1
  1037. package/dist/components/ContentPage/renderBlockList.d.ts +0 -14
  1038. package/dist/components/ContentPage/renderBlockList.js +0 -11
  1039. package/dist/components/ContentPage/renderBlockList.js.map +0 -1
  1040. package/dist/components/ContentPage/renderSlots.d.ts +0 -12
  1041. package/dist/components/ContentPage/renderSlots.js +0 -15
  1042. package/dist/components/ContentPage/renderSlots.js.map +0 -1
  1043. package/dist/model/getParentBlockContent.d.ts +0 -2
  1044. package/dist/model/getParentBlockContent.js.map +0 -1
  1045. package/dist/model/getParentBlockDef.d.ts +0 -3
  1046. package/dist/model/getParentBlockDef.js +0 -11
  1047. package/dist/model/getParentBlockDef.js.map +0 -1
  1048. package/dist/react/setup-fixture.js.map +0 -1
  1049. package/dist/ui-kit/Description/Description.d.ts +0 -5
  1050. package/dist/ui-kit/Description/Description.js +0 -9
  1051. package/dist/ui-kit/Description/Description.js.map +0 -1
  1052. package/dist/utils/sliceArray.d.ts +0 -1
  1053. package/dist/utils/sliceArray.js +0 -15
  1054. package/dist/utils/sliceArray.js.map +0 -1
  1055. package/lib/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1056. package/lib/components/Carousel/CarouselNavButtons.js +0 -34
  1057. package/lib/components/Carousel/CarouselNavButtons.js.map +0 -1
  1058. package/lib/components/ContentPage/renderBlock.d.ts +0 -15
  1059. package/lib/components/ContentPage/renderBlock.js +0 -26
  1060. package/lib/components/ContentPage/renderBlock.js.map +0 -1
  1061. package/lib/components/ContentPage/renderBlockList.d.ts +0 -14
  1062. package/lib/components/ContentPage/renderBlockList.js +0 -8
  1063. package/lib/components/ContentPage/renderBlockList.js.map +0 -1
  1064. package/lib/components/ContentPage/renderSlots.d.ts +0 -12
  1065. package/lib/components/ContentPage/renderSlots.js +0 -12
  1066. package/lib/components/ContentPage/renderSlots.js.map +0 -1
  1067. package/lib/model/getParentBlockContent.d.ts +0 -2
  1068. package/lib/model/getParentBlockContent.js +0 -6
  1069. package/lib/model/getParentBlockContent.js.map +0 -1
  1070. package/lib/model/getParentBlockDef.d.ts +0 -3
  1071. package/lib/model/getParentBlockDef.js +0 -8
  1072. package/lib/model/getParentBlockDef.js.map +0 -1
  1073. package/lib/react/setup-fixture.js.map +0 -1
  1074. package/lib/ui-kit/Description/Description.d.ts +0 -5
  1075. package/lib/ui-kit/Description/Description.js +0 -7
  1076. package/lib/ui-kit/Description/Description.js.map +0 -1
  1077. package/lib/utils/sliceArray.d.ts +0 -1
  1078. package/lib/utils/sliceArray.js +0 -12
  1079. package/lib/utils/sliceArray.js.map +0 -1
  1080. package/mobile/bundle/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1081. package/mobile/bundle/components/ContentPage/renderBlock.d.ts +0 -15
  1082. package/mobile/bundle/components/ContentPage/renderBlockList.d.ts +0 -14
  1083. package/mobile/bundle/components/ContentPage/renderSlots.d.ts +0 -12
  1084. package/mobile/bundle/model/getParentBlockContent.d.ts +0 -2
  1085. package/mobile/bundle/model/getParentBlockDef.d.ts +0 -3
  1086. package/mobile/bundle/ui-kit/Description/Description.d.ts +0 -5
  1087. package/mobile/bundle/utils/sliceArray.d.ts +0 -1
  1088. package/mobile/dist/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1089. package/mobile/dist/components/Carousel/CarouselNavButtons.js +0 -36
  1090. package/mobile/dist/components/Carousel/CarouselNavButtons.js.map +0 -1
  1091. package/mobile/dist/components/ContentPage/renderBlock.d.ts +0 -15
  1092. package/mobile/dist/components/ContentPage/renderBlock.js +0 -29
  1093. package/mobile/dist/components/ContentPage/renderBlock.js.map +0 -1
  1094. package/mobile/dist/components/ContentPage/renderBlockList.d.ts +0 -14
  1095. package/mobile/dist/components/ContentPage/renderBlockList.js +0 -11
  1096. package/mobile/dist/components/ContentPage/renderBlockList.js.map +0 -1
  1097. package/mobile/dist/components/ContentPage/renderSlots.d.ts +0 -12
  1098. package/mobile/dist/components/ContentPage/renderSlots.js +0 -15
  1099. package/mobile/dist/components/ContentPage/renderSlots.js.map +0 -1
  1100. package/mobile/dist/model/getParentBlockContent.d.ts +0 -2
  1101. package/mobile/dist/model/getParentBlockContent.js.map +0 -1
  1102. package/mobile/dist/model/getParentBlockDef.d.ts +0 -3
  1103. package/mobile/dist/model/getParentBlockDef.js +0 -11
  1104. package/mobile/dist/model/getParentBlockDef.js.map +0 -1
  1105. package/mobile/dist/react/setup-fixture.js.map +0 -1
  1106. package/mobile/dist/ui-kit/Description/Description.d.ts +0 -5
  1107. package/mobile/dist/ui-kit/Description/Description.js +0 -9
  1108. package/mobile/dist/ui-kit/Description/Description.js.map +0 -1
  1109. package/mobile/dist/utils/sliceArray.d.ts +0 -1
  1110. package/mobile/dist/utils/sliceArray.js +0 -15
  1111. package/mobile/dist/utils/sliceArray.js.map +0 -1
  1112. package/mobile/lib/components/Carousel/CarouselNavButtons.d.ts +0 -11
  1113. package/mobile/lib/components/Carousel/CarouselNavButtons.js +0 -34
  1114. package/mobile/lib/components/Carousel/CarouselNavButtons.js.map +0 -1
  1115. package/mobile/lib/components/ContentPage/renderBlock.d.ts +0 -15
  1116. package/mobile/lib/components/ContentPage/renderBlock.js +0 -26
  1117. package/mobile/lib/components/ContentPage/renderBlock.js.map +0 -1
  1118. package/mobile/lib/components/ContentPage/renderBlockList.d.ts +0 -14
  1119. package/mobile/lib/components/ContentPage/renderBlockList.js +0 -8
  1120. package/mobile/lib/components/ContentPage/renderBlockList.js.map +0 -1
  1121. package/mobile/lib/components/ContentPage/renderSlots.d.ts +0 -12
  1122. package/mobile/lib/components/ContentPage/renderSlots.js +0 -12
  1123. package/mobile/lib/components/ContentPage/renderSlots.js.map +0 -1
  1124. package/mobile/lib/model/getParentBlockContent.d.ts +0 -2
  1125. package/mobile/lib/model/getParentBlockContent.js +0 -6
  1126. package/mobile/lib/model/getParentBlockContent.js.map +0 -1
  1127. package/mobile/lib/model/getParentBlockDef.d.ts +0 -3
  1128. package/mobile/lib/model/getParentBlockDef.js +0 -8
  1129. package/mobile/lib/model/getParentBlockDef.js.map +0 -1
  1130. package/mobile/lib/react/setup-fixture.js.map +0 -1
  1131. package/mobile/lib/ui-kit/Description/Description.d.ts +0 -5
  1132. package/mobile/lib/ui-kit/Description/Description.js +0 -7
  1133. package/mobile/lib/ui-kit/Description/Description.js.map +0 -1
  1134. package/mobile/lib/utils/sliceArray.d.ts +0 -1
  1135. package/mobile/lib/utils/sliceArray.js +0 -12
  1136. package/mobile/lib/utils/sliceArray.js.map +0 -1
  1137. package/mobile/src/components/Carousel/CarouselNavButtons.tsx +0 -51
  1138. package/mobile/src/components/ContentPage/renderBlock.tsx +0 -61
  1139. package/mobile/src/components/ContentPage/renderBlockList.tsx +0 -28
  1140. package/mobile/src/components/ContentPage/renderSlots.tsx +0 -32
  1141. package/mobile/src/model/getParentBlockDef.ts +0 -12
  1142. package/mobile/src/ui-kit/Description/Description.tsx +0 -12
  1143. package/mobile/src/utils/sliceArray.ts +0 -15
  1144. package/src/components/Carousel/CarouselNavButtons.tsx +0 -51
  1145. package/src/components/ContentPage/renderBlock.tsx +0 -61
  1146. package/src/components/ContentPage/renderBlockList.tsx +0 -28
  1147. package/src/components/ContentPage/renderSlots.tsx +0 -32
  1148. package/src/model/.CarouselCardVersion.ts.icloud +0 -0
  1149. package/src/model/getParentBlockDef.ts +0 -12
  1150. package/src/ui-kit/Description/Description.tsx +0 -12
  1151. package/src/utils/sliceArray.ts +0 -15
@@ -231,6 +231,53 @@
231
231
  return JSXTmpl;
232
232
  };
233
233
 
234
+ const DEFAULT_SLOT_NAME = null;
235
+
236
+ function style2className(style) {
237
+ return style ? style.filter(Boolean).join(' ') : '';
238
+ }
239
+
240
+ const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
241
+
242
+ const DEFAULT_ANCESTORS = [];
243
+ const DEFAULT_STYLE = ['col-span-12'];
244
+ function renderBlock(block, options) {
245
+ const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, } = options;
246
+ const { type } = block;
247
+ if (!(type && type in blocksRegistry)) {
248
+ console.warn(`No block with "${type}" is registered`);
249
+ }
250
+ const BlockComponent = type && blocksRegistry[type];
251
+ return blockDecorator({
252
+ blockClassName: `scroll-mt-12 ${style2className(block.style || DEFAULT_STYLE)}`,
253
+ block,
254
+ ancestors,
255
+ // Adjusted by decorator block and blockClassName
256
+ render: ({ block: adjustedBlock, blockClassName: adjustedBlockClassName }) => {
257
+ const { content } = adjustedBlock;
258
+ return BlockComponent ? (jsx(BlockComponent, { className: adjustedBlockClassName, block: block, options: options, ...content }, key)) : null;
259
+ },
260
+ }, key);
261
+ }
262
+
263
+ const EMPTY_ANCESTORS = [];
264
+ const renderBlocksList = (blocks, { key, ancestors = EMPTY_ANCESTORS, slotName = DEFAULT_SLOT_NAME, renderChild = renderBlock, ...options }) => (blocks || []).map((_, j) => renderChild(_, {
265
+ ...options,
266
+ key: `${key ? key : _.type}-${j}`,
267
+ ancestors: options.parent
268
+ ? [...(ancestors || EMPTY_ANCESTORS), [options.parent, slotName]]
269
+ : ancestors,
270
+ }));
271
+
272
+ function renderChildren({ children, block, options, renderChild, }) {
273
+ if (children) {
274
+ return children;
275
+ }
276
+ return block && options
277
+ ? renderBlocksList(block.blocks, { ...options, parent: block, renderChild })
278
+ : null;
279
+ }
280
+
234
281
  class EventBus {
235
282
  static inst = new EventBus();
236
283
  subscribers = {};
@@ -343,21 +390,23 @@
343
390
  return (jsx(Tag, { className: `font-sans font-medium m-0 ${HeadingClass[headingType]} ${className || ''}`, children: title }));
344
391
  });
345
392
 
393
+ const Paragraph = JSX((props) => {
394
+ const { size = '', color = '', align = '', font = '', children } = props;
395
+ const textClasses = `font-sans ${size} ${color} ${align} ${font}`;
396
+ return jsx("p", { className: textClasses, children: children });
397
+ });
398
+
346
399
  const AccordionItemsList = JSX(({ children }) => (jsx("ul", { className: "list-none m-0 p-0", children: children })));
347
400
 
348
- const Accordion = JSX(({ title, description, className = '', children, ...rest }) => (jsxs(BlockWrapper, { className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? jsx("div", { className: "mb-5 text-m-light text-center", children: description }) : null, jsx(AccordionItemsList, { children: children })] })));
401
+ const Accordion = JSX(({ title, description, className = '', ...rest }) => (jsxs(BlockWrapper, { className: `py-6 px-4 bg-white text-primary-text ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? (jsx("div", { className: "mb-5", children: jsx(Paragraph, { size: "text-m", font: "font-light", align: "text-center", children: description }) })) : null, jsx(AccordionItemsList, { children: renderChildren(rest) })] })));
349
402
  Accordion.childrenTypes = ['AccordionItem'];
350
403
 
351
- function getParentBlockDef(ancestors, type) {
352
- const [block] = (ancestors || [])
353
- .map((item) => item)
354
- .reverse()
355
- .find(([_]) => _ && 'type' in _ && (!type || type === _.type)) || [];
356
- return block || {};
404
+ function getParentBlockDef(options) {
405
+ return options?.parent || {};
357
406
  }
358
407
 
359
- function getParentBlockContent(ancestors, defaultContent) {
360
- const { content } = getParentBlockDef(ancestors);
408
+ function getParentBlockContent(options, defaultContent) {
409
+ const { content } = getParentBlockDef(options);
361
410
  return content || defaultContent;
362
411
  }
363
412
 
@@ -454,18 +503,24 @@
454
503
 
455
504
  const Img = JSX((props) => jsx(ImgInner, { ...props, isMobile: true }));
456
505
 
506
+ const Text = JSX((props) => {
507
+ const { size = '', color = '', align = '', font = '', children } = props;
508
+ const textClasses = `font-sans ${size} ${color} ${align} ${font}`;
509
+ return jsx("span", { className: textClasses, children: children });
510
+ });
511
+
457
512
  const getIconWithVersion = (icon, version = 'primary') => ({
458
513
  ...icon,
459
514
  iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
460
515
  });
461
516
 
462
517
  const icons = ['PlusIcon', 'MinusIcon'];
463
- const AccordionItem = JSX(({ className = '', ancestors, label = '', labelIcon, isExpanded, children }) => {
464
- const { bordered } = getParentBlockContent(ancestors, {});
465
- return (jsx("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider ${className}`, children: jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: "flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: children })), renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(FoldButton, { className: bordered ? '' : 'py-[14px] px-0', label: label, icon: icons[Number(isUnfolded)], primaryIcon: labelIcon, onClick: onToggle })) }) }));
518
+ const AccordionItem = JSX(({ className = '', label = '', labelIcon, isExpanded, ...rest }) => {
519
+ const { bordered } = getParentBlockContent(rest.options, {});
520
+ return (jsx("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider ${className}`, children: jsx(Foldable, { isFoldButtonOnTop: true, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: "flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0", isUnfolded: isUnfolded, children: renderChildren(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => (jsx(FoldButton, { className: bordered ? '' : 'py-[14px] px-0', label: label, icon: icons[Number(isUnfolded)], primaryIcon: labelIcon, onClick: onToggle })) }) }));
466
521
  });
467
522
  AccordionItem.childrenTypes = [];
468
- const FoldButton = JSX(({ className, icon, label, primaryIcon, onClick }) => (jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`, onClick: onClick, children: [jsxs("span", { className: "text-m-title-xs font-medium pr-2.5 flex group-hover:text-primary-main", children: [primaryIcon ? (jsx(Img, { image: getIconWithVersion(primaryIcon), className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, label] }), jsx(Img, { className: "flex-shrink-0", image: getIconWithVersion({ icon: icon }), width: "24", height: "24", asSVG: true })] })));
523
+ const FoldButton = JSX(({ className, icon, label, primaryIcon, onClick }) => (jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${className}`, onClick: onClick, children: [jsxs("div", { className: "flex group-hover:text-primary-main", children: [primaryIcon ? (jsx(Img, { image: getIconWithVersion(primaryIcon), className: "mr-3 flex-shrink-0", width: "24", height: "24", asSVG: true })) : null, jsx(Text, { size: "text-m-title-xs", font: "font-medium", children: label })] }), jsx(Img, { className: "flex-shrink-0", image: getIconWithVersion({ icon: icon }), width: "24", height: "24", asSVG: true })] })));
469
524
 
470
525
  // column-gap between children of SwipeListControl container
471
526
  const DEFAULT_GAP = 14;
@@ -483,15 +538,15 @@
483
538
  const BASE_DOT_OPACITY = 0.3;
484
539
  const ACTIVE_DOT_OPACITY_CHANGE = 0.7;
485
540
  const SwipeListControlDots = JSX(({ children, activeIndex, indexFraction, showDots }) => {
486
- const handleClick = (idx) => (e) => {
541
+ const handleClick = useCallback((idx) => (e) => {
487
542
  if (idx === activeIndex) {
488
543
  return;
489
544
  }
490
545
  const contentContainer = e.currentTarget.parentElement
491
546
  ?.previousElementSibling;
492
547
  contentContainer?.children[idx]?.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
493
- };
494
- return showDots && children?.length ? (jsx("div", { className: "flex gap-2 mx-auto mt-5 w-fit", children: children?.map((_, idx) => (jsx("div", { onClick: handleClick(idx), className: `${DOT_STYLES}`, style: getDotStyles(idx, activeIndex, indexFraction), "aria-hidden": true }, String(idx)))) })) : null;
548
+ }, [activeIndex]);
549
+ return showDots && children ? (jsx("div", { className: "flex gap-2 mx-auto mt-5 w-fit", children: children.length && children.map ? (children.map((_, idx) => (jsx("div", { onClick: handleClick(idx), className: DOT_STYLES, style: getDotStyles(idx, activeIndex, indexFraction), "aria-hidden": true }, String(idx))))) : (jsx("div", { className: DOT_STYLES, style: createDotStyle(1) })) })) : null;
495
550
  });
496
551
  const getDotStyles = (currentIdx, activeIndex, indexFraction) => {
497
552
  if (currentIdx < activeIndex || currentIdx > activeIndex + 1) {
@@ -499,16 +554,12 @@
499
554
  }
500
555
  const leftIndexMod = 1 - indexFraction;
501
556
  const rightIndexMod = indexFraction;
502
- return currentIdx === activeIndex
503
- ? {
504
- opacity: `${BASE_DOT_OPACITY + ACTIVE_DOT_OPACITY_CHANGE * leftIndexMod}`,
505
- width: `${BASE_DOT_WIDTH + ACTIVE_DOT_WIDTH_CHANGE * leftIndexMod}px`,
506
- }
507
- : {
508
- opacity: `${BASE_DOT_OPACITY + ACTIVE_DOT_OPACITY_CHANGE * rightIndexMod}`,
509
- width: `${BASE_DOT_WIDTH + ACTIVE_DOT_WIDTH_CHANGE * rightIndexMod}px`,
510
- };
557
+ return createDotStyle(currentIdx === activeIndex ? leftIndexMod : rightIndexMod);
511
558
  };
559
+ const createDotStyle = (indexModifier) => ({
560
+ opacity: `${BASE_DOT_OPACITY + ACTIVE_DOT_OPACITY_CHANGE * indexModifier}`,
561
+ width: `${BASE_DOT_WIDTH + ACTIVE_DOT_WIDTH_CHANGE * indexModifier}px`,
562
+ });
512
563
 
513
564
  const SwipeListControlItem = JSX(({ className = '', children, ...rest }) => {
514
565
  return (jsx("div", { className: `snap-center snap-always min-w-full box-border ${className}`, role: "listitem", ...rest, children: children }));
@@ -524,8 +575,8 @@
524
575
  };
525
576
  };
526
577
 
527
- const SwipeListControlList = JSX(({ className = '', children, activeIndex, onScroll, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, }) => {
528
- return (jsx("div", { className: `overflow-auto flex horizontal-list no-scrollbar ${className}`, style: { ...getContainerStyle(padding), gap: `${gap}px` }, role: "list", onScroll: onScroll, children: children?.length ? (children?.map((child, idx) => (jsx(SwipeListControlItem, { style: getContainerStyle(padding / 4), "aria-current": Boolean(activeIndex === idx), children: child }, String(idx))))) : (jsx(SwipeListControlItem, { children: children })) }));
578
+ const SwipeListControlList = JSX(({ className = '', activeIndex = -1, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, children, onScroll, }) => {
579
+ return children ? (jsx("div", { className: `overflow-auto flex horizontal-list no-scrollbar ${className}`, style: { ...getContainerStyle(padding), gap: `${gap}px` }, role: "list", onScroll: onScroll, children: children.length && children.map ? (children.map((child, idx) => (jsx(SwipeListControlItem, { style: getContainerStyle(padding / 4), "aria-current": Boolean(activeIndex === idx), children: child }, String(idx))))) : (jsx(SwipeListControlItem, { style: getContainerStyle(padding / 4), "aria-current": true, children: children })) })) : null;
529
580
  });
530
581
 
531
582
  /*
@@ -583,8 +634,11 @@
583
634
  showDots,
584
635
  children,
585
636
  };
586
- const handleScroll = (e) => {
637
+ const handleScroll = useCallback((e) => {
587
638
  const { scrollLeft, clientWidth, childElementCount, scrollWidth, children: childrenCollection, } = e?.currentTarget;
639
+ if (!childrenCollection[0]) {
640
+ return;
641
+ }
588
642
  // horizontal PADDING / 2 to compensate padding-margin combo of child container
589
643
  // without CSS calc function, as wrapper element gets bigger in the DOM, remaining same visually
590
644
  const itemWidth = childrenCollection[0].offsetWidth - padding / 2;
@@ -602,7 +656,7 @@
602
656
  }
603
657
  setActiveIndex(index);
604
658
  setIndexFraction(fraction);
605
- };
659
+ }, [gap, padding, activeIndex, onSlideChange]);
606
660
  return (jsxs("div", { className: className, children: [jsx(SwipeListControlList, { gap: gap, padding: padding, activeIndex: activeIndex, onScroll: handleScroll, children: children }), jsx(SwipeListControlDots, { ...dotsProps })] }));
607
661
  });
608
662
 
@@ -785,8 +839,8 @@
785
839
  const { className, title } = props;
786
840
  return (jsxs("section", { className: `bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${className || ''}`, children: [title ? (jsx(Heading, { headingType: "h3", className: "font-medium text-center m-0 mb-5", title: title })) : null, jsx("div", { role: "table", children: jsx(TableInner, { ...props }) })] }));
787
841
  });
788
- const TableInner = JSX(({ columns, rowHeaders, isColoredFirstColumn, visibleRowLength, orientation, ...rest }) => {
789
- const [columnsViewState, setColumnsViewState] = useState(new Array(columns?.length || 0).fill(!visibleRowLength));
842
+ const TableInner = JSX(({ columns = [], rowHeaders, isColoredFirstColumn, visibleRowLength, orientation, ...rest }) => {
843
+ const [columnsViewState, setColumnsViewState] = useState(new Array(columns.length).fill(!visibleRowLength));
790
844
  const handleToggleColumn = useCallback((colIndex) => {
791
845
  const toggleColState = (colState, i) => i === colIndex ? !colState : colState;
792
846
  setColumnsViewState((_) => _.map(toggleColState));
@@ -1008,10 +1062,10 @@
1008
1062
  });
1009
1063
 
1010
1064
  const Footer = JSX(({ className = '', ...rest }) => {
1011
- const fallback = rest.page?.fallback;
1065
+ const fallback = rest.options?.page?.fallback;
1012
1066
  const sitemap = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
1013
1067
  const { documents, relatedEnterprises, contacts, socialMedia, horizontalNavigationTitle } = useSWRResource(projectSettings.FOOTER || 'footer', fallback);
1014
- return (jsxs("footer", { className: `font-sans px-4 py-[26px] bg-white ${className}`, children: [jsx(Contacts, { className: "overflow-hidden", items: contacts, hasButton: true }), jsx(AccordionItemsList, { children: sitemap.topItems?.map((item, i) => (jsx(AccordionItem, { label: item.text, ...rest, children: jsx(LinkList, { documents: item.items, ...rest }) }, String(i)))) }), jsx("div", { children: sitemap?.dispositions?.map(renderSubMenuItem) }), jsx(MobileAppTile, { title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android", ...rest }), jsx(SearchBar, { className: "grow" }), jsx(SocialMedia, { className: "pb-4", media: socialMedia }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
1068
+ return (jsxs("footer", { className: `font-sans px-4 py-[26px] bg-white ${className}`, children: [jsx(Contacts, { className: "overflow-hidden", items: contacts, hasButton: true }), jsx(AccordionItemsList, { children: sitemap.topItems?.map((item, i) => (jsx(AccordionItem, { label: item.text, children: jsx(LinkList, { documents: item.items }) }, String(i)))) }), jsx("div", { children: sitemap?.dispositions?.map(renderSubMenuItem) }), jsx(MobileAppTile, { title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android", ...rest }), jsx(SearchBar, { className: "grow" }), jsx(SocialMedia, { className: "pb-4", media: socialMedia }), jsx(HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
1015
1069
  });
1016
1070
  const renderSubMenuItem = (menu, i) => {
1017
1071
  const { icon, href, text } = menu;
@@ -1119,15 +1173,14 @@
1119
1173
 
1120
1174
  const Header = JSX(({ className = '', bgColor = 'bg-white', ...rest }) => {
1121
1175
  const router = useRouter();
1122
- const { page } = rest;
1123
- const fallback = page?.fallback;
1176
+ const fallback = rest.options?.page?.fallback;
1124
1177
  const { topItems, dispositions, defaultLocation } = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
1125
1178
  const activeTopItem = topItems?.find(isTopItemActive(router));
1126
1179
  const subItems = activeTopItem?.items;
1127
1180
  const activeSubItem = findActiveSubItem(router)(subItems);
1128
1181
  const [burgerMenuShow, setBurgerMenuShow] = useState(false);
1129
1182
  const toggleBurgerMenu = () => setBurgerMenuShow(!burgerMenuShow);
1130
- return (jsxs("header", { className: `${bgColor} ${className}`, children: [jsxs("div", { className: "container px-4 py-0 box-border", children: [jsx(HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), jsx("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]", children: jsx("div", { className: "flex no-scrollbar horizontal-list h-full items-center", children: subItems?.map((_, i) => (jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-s", active: _ === activeSubItem, bgColor: bgColor, ..._ }, String(i)))) }) })] }), burgerMenuShow ? (jsx(HeaderBurger, { onClick: toggleBurgerMenu, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: jsx(AccordionItemsList, { children: topItems?.map((item, i) => (jsx(AccordionItem, { label: item.text, ...rest, children: jsx(LinkList, { documents: item.items, ...rest }) }, String(i)))) }) })) : null] }));
1183
+ return (jsxs("header", { className: `${bgColor} ${className}`, children: [jsxs("div", { className: "container px-4 py-0 box-border", children: [jsx(HeaderTop, { onClick: toggleBurgerMenu, bgColor: bgColor }), jsx("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]", children: jsx("div", { className: "flex no-scrollbar horizontal-list h-full items-center", children: subItems?.map((_, i) => (jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-s", active: _ === activeSubItem, bgColor: bgColor, ..._ }, String(i)))) }) })] }), burgerMenuShow ? (jsx(HeaderBurger, { onClick: toggleBurgerMenu, burgerSubMenu: dispositions, defaultLocation: defaultLocation, children: jsx(AccordionItemsList, { children: topItems?.map((item, i) => (jsx(AccordionItem, { label: item.text, children: jsx(LinkList, { documents: item.items }) }, String(i)))) }) })) : null] }));
1131
1184
  });
1132
1185
 
1133
1186
  const AlignText = {
@@ -1438,7 +1491,7 @@
1438
1491
  const headingMargin = description ? 'mb-2' : 'mb-5';
1439
1492
  return (jsxs("section", { className: `px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${className}`, children: [title ? (jsx(Heading, { headingType: "h2", className: `text-center ${headingMargin}`, title: title })) : null, description ? jsx("div", { className: "mb-5 text-center text-m", children: description }) : null, orientation === 'vertical' ? (jsx(TariffsTableVertical, { tiles: tiles, ...rest })) : (jsx(TariffsTableHorizontal, { tiles: tiles, ...rest }))] }));
1440
1493
  });
1441
- const getColData = (columns) => columns?.[0].data ? columns[0].data : [];
1494
+ const getColData = (columns) => columns?.[0]?.data ? columns[0].data : [];
1442
1495
  const getTiles = (rowHeaders, colData) => rowHeaders?.map((header, i) => ({
1443
1496
  header,
1444
1497
  data: colData?.[i] || [{}],
@@ -1494,10 +1547,6 @@
1494
1547
  Placeholder,
1495
1548
  };
1496
1549
 
1497
- function style2className(style) {
1498
- return style ? style.filter(Boolean).join(' ') : '';
1499
- }
1500
-
1501
1550
  const api = LikeAPI();
1502
1551
  function useLikeService(pagePath) {
1503
1552
  const [likeCount, setLikeCount] = useState(0);
@@ -1539,59 +1588,25 @@
1539
1588
  return (jsxs("div", { className: `border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${className}`, children: [jsx(LikeButton, { onClick: handlerDecorator(likeService.like), ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u043B\u0430\u0439\u043A\u00BB" }), jsx(LikeButton, { onClick: handlerDecorator(likeService.dislike), className: "rotate-180", ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u0434\u0438\u0437\u043B\u0430\u0439\u043A\u00BB" }), jsx("span", { className: "select-none", children: likeService.likeCount })] }));
1540
1589
  });
1541
1590
 
1542
- const DEFAULT_SLOT_NAME = null;
1543
-
1544
- const renderSlots = ({ slots, parent, options, ancestors = [], }) => Object.entries(slots || {}).reduce((res, [slotName, slotBlocks]) => ({
1545
- ...res,
1546
- [slotName]: renderBlocksList({
1547
- blocks: slotBlocks,
1548
- parent,
1549
- slotName,
1550
- options,
1551
- ancestors,
1552
- }),
1553
- }), {});
1554
-
1555
- function renderBlock({ block = {}, options, ancestors = [] }) {
1556
- const { key, page, blockDecorator, blocksRegistry = {} } = options;
1557
- const { type, slots, blocks: childBlocks } = block;
1558
- if (!(type && type in blocksRegistry)) {
1559
- console.warn(`No block with "${type}" is registered`);
1560
- }
1561
- const BlockComponent = type && blocksRegistry[type];
1562
- const subBlockRenderProps = { parent: block, options, ancestors };
1563
- const children = renderBlocksList({ ...subBlockRenderProps, blocks: childBlocks });
1564
- const blockSlots = slots ? renderSlots({ ...subBlockRenderProps, slots }) : {};
1565
- return blockDecorator({
1566
- blockClassName: `scroll-mt-12 ${style2className(block.style)}`,
1567
- block,
1568
- ancestors,
1569
- // Adjusted by decorator block and blockClassName
1570
- render: ({ block: adjustedBlock, blockClassName: adjustedBlockClassName }) => {
1571
- const { content } = adjustedBlock;
1572
- return BlockComponent ? (jsx(BlockComponent, { page: page, block: adjustedBlock, className: adjustedBlockClassName, ancestors: ancestors, slots: blockSlots, ...content, children: children }, key)) : null;
1573
- },
1574
- }, key);
1575
- }
1576
-
1577
- const renderBlocksList = ({ blocks, parent, slotName = DEFAULT_SLOT_NAME, options, ancestors = [], }) => (blocks || []).map((_, j) => renderBlock({
1578
- block: _,
1579
- options: { ...options, key: `${options.key ? options.key : _.type}-${j}` },
1580
- ancestors: [...ancestors, [parent, slotName]],
1581
- }));
1582
-
1583
- const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
1584
1591
  const ContentPage = JSX((props) => {
1585
1592
  const { className = '', blocksRegistry, blockDecorator, data = {} } = props;
1586
1593
  const { style: pageStyle, blocks, slots, likeControl, colorPalette = 'pc' } = data;
1587
1594
  const options = {
1588
1595
  key: '',
1589
- blocksRegistry,
1590
1596
  page: data,
1591
- blockDecorator: blockDecorator || defaultBlockDecorator,
1597
+ blocksRegistry,
1598
+ blockDecorator,
1599
+ parent: data,
1592
1600
  };
1593
- const pageSlots = renderSlots({ slots, parent: data, options });
1594
- return (jsxs("section", { className: `relative ${style2className(pageStyle)} ${className}`, "data-theme": colorPalette, children: [pageSlots?.header ? (jsx("div", { className: "mb-5 shadow-[0_8px_32px_0px_#00000014]", children: pageSlots.header })) : null, blocks?.length ? (jsxs("div", { className: "container grid grid-cols-12 gap-1", children: [renderBlocksList({ blocks, parent: data, options }), pageSlots?.footer ? pageSlots.footer : null] })) : null, likeControl ? renderLikeControl() : null] }));
1601
+ return (jsxs("section", { className: `relative ${style2className(pageStyle)} ${className}`, "data-theme": colorPalette, children: [slots?.header ? (jsx("div", { className: "mb-5 shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.header, {
1602
+ ...options,
1603
+ slotName: 'header',
1604
+ }) })) : null, jsxs("div", { className: "container grid grid-cols-12 gap-1", children: [renderBlocksList(blocks, options), slots?.footer
1605
+ ? renderBlocksList(slots?.footer, {
1606
+ ...options,
1607
+ slotName: 'footer',
1608
+ })
1609
+ : null] }), likeControl ? renderLikeControl() : null] }));
1595
1610
  });
1596
1611
  ContentPage.childrenTypes = [];
1597
1612
  ContentPage.slots = () => ['header', 'footer'];
@@ -1603,7 +1618,7 @@
1603
1618
  return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
1604
1619
  }
1605
1620
 
1606
- const packageVersion = "0.6.32";
1621
+ const packageVersion = "0.6.34";
1607
1622
 
1608
1623
  exports.Blocks = Blocks;
1609
1624
  exports.ContentPage = ContentPage;
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:i}=await e.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,a=i||l&&l();return e(Object.assign(r,a&&{children:a}),n)}return t.inheritAttrs=!1,t};class g{static inst=new g;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const b=100,f={threshold:new Array(18).fill(0).map((function(e,t){const n=(t+1)/b+.82;return Math.round(n*b)/b}))},N=p((({className:e,block:t,tag:n="section",role:l,children:o})=>{const c=n,{anchor:d,labels:m}=t||{},[u,p]=i(!0),x=s({}),b=a((()=>(({anchor:e,anchorClickRef:t})=>n=>{if(!n?.length)return;const[i]=n;!i.isIntersecting||i.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?(g.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),g.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||g.inst.fire("tab",{type:"link",label:e}))})({anchor:d,anchorClickRef:x})),[d]),N=function(e,t){const n=s(null);return r((()=>{if(!n.current)return;const i=new IntersectionObserver(e,t);return i.observe(n.current),()=>{i.disconnect()}}),[e,t]),n}(b,f);return r((()=>g.inst.subscribe("anchorClick",(e=>{p(!0),x.current=e}))),[]),r((()=>g.inst.subscribe("tab",(e=>{if("group"===e.type){const n=m?.length||t?.anchor;p(!e.label||(!n||Boolean(m?.includes(e.label))))}else(n=e.label)&&(globalThis.document.location.hash=n),p(!0);var n}))),[]),u?h(c,{className:e,role:l,...d?{id:d,ref:N}:{},children:o}):null}));const y={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},v=p((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return h(r,{className:`font-sans font-medium m-0 ${y[n]} ${t||""}`,children:i})})),w=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),k=p((({title:e,description:t,className:n="",children:i,...r})=>u(N,{className:`py-6 px-4 font-sans bg-white text-primary-text ${n}`,...r,children:[e?h(v,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5 text-m-light text-center",children:t}):null,h(w,{children:i})]})));k.childrenTypes=["AccordionItem"];const $=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[a,s]=i(t),o=l((()=>{s((e=>!e))}),[]),c=n({isUnfolded:a,onToggle:o}),d=r?r({isUnfolded:a,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),C=p((({className:e="",isUnfolded:t,children:n})=>{const i=s(null);return r((()=>{i.current&&(i.current.style.maxHeight=t?`${i.current.scrollHeight}px`:"")}),[t,n?.length]),h("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden max-h-0 ${e}`,children:n})})),S={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},T=p((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:l="color",asSVG:a,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return a&&"normal"!==l?h(j,{className:e,children:u("svg",{className:[I(e,s.width),S[l],t,_(l)].join(" "),...s,"aria-hidden":"true",children:[r?h("title",{children:r}):null,i?h("desc",{children:i}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:i,title:r,...s,"aria-hidden":"true"})})),_=e=>"white"===e?"invert":"",I=(e,t)=>t?`width: ${t}px `:"w-full h-full",j=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function D(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const A=(e,t)=>e.media&&t.media?e.media-t.media:0,R=p((({className:e="",image:t,imageClassName:n="",isMobile:i=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(A).map((({src:e,format:n,media:i},r)=>h("source",{srcSet:e,type:M(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,O(t,n,i)]})})),O=(e,t="",n=!1)=>{const i={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${a} ${t}`,alt:l,title:r,style:i,...e.size})};function M(e){return e?`image/${String(e)}`:void 0}const L=p((({className:e="",image:t,imageClassName:n="",isMobile:i,...r})=>{if(!t)return null;const l="string"==typeof t?t:t.icon;return l||""===l?l.length?h(T,{className:e,imageClassName:n,iconVersion:D(t),name:l,...r}):null:h(R,{className:e,imageClassName:n,image:t,isMobile:i})})),B=p((e=>h(L,{...e,isMobile:!0}))),V=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),E=["PlusIcon","MinusIcon"],F=p((({className:e="",ancestors:t,label:n="",labelIcon:i,isExpanded:r,children:l})=>{const{bordered:a}=function(e,t){const{content:n}=function(e,t){const[n]=(e||[]).map((e=>e)).reverse().find((([e])=>e&&"type"in e&&(!t||t===e.type)))||[];return n||{}}(e);return n||t}(t,{});return h("li",{className:`${a?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:h($,{isFoldButtonOnTop:!0,unfoldedByDefault:r,renderFoldableSection:({isUnfolded:e})=>h(C,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:l}),renderFoldButton:({isUnfolded:e,onToggle:t})=>h(P,{className:a?"":"py-[14px] px-0",label:n,icon:E[Number(e)],primaryIcon:i,onClick:t})})})}));F.childrenTypes=[];const P=p((({className:e,icon:t,label:n,primaryIcon:i,onClick:r})=>u("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${e}`,onClick:r,children:[u("span",{className:"text-m-title-xs font-medium pr-2.5 flex group-hover:text-primary-main",children:[i?h(B,{image:V(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,n]}),h(B,{className:"flex-shrink-0",image:V({icon:t}),width:"24",height:"24",asSVG:!0})]}))),z=p((({children:e,activeIndex:t,indexFraction:n,showDots:i})=>{const r=e=>n=>{if(e===t)return;const i=n.currentTarget.parentElement?.previousElementSibling;i?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return i&&e?.length?h("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,i)=>h("div",{onClick:r(i),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:G(i,t,n),"aria-hidden":!0},String(i))))}):null})),G=(e,t,n)=>{if(e<t||e>t+1)return;const i=1-n;return e===t?{opacity:""+(.3+.7*i),width:6+16*i+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},H=p((({className:e="",children:t,...n})=>h("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...n,children:t}))),W=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),J=p((({className:e="",children:t,activeIndex:n,onScroll:i,gap:r=14,padding:l=16})=>h("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...W(l),gap:`${r}px`},role:"list",onScroll:i,children:t?.length?t?.map(((e,t)=>h(H,{style:W(l/4),"aria-current":Boolean(n===t),children:e},String(t)))):h(H,{children:t})}))),U=p((({className:e,gap:t=14,padding:n=16,showDots:r=!0,onSlideChange:l,children:a})=>{const[s,o]=i(0),[c,d]=i(0),m={activeIndex:s,indexFraction:c,showDots:r,children:a};return u("div",{className:e,children:[h(J,{gap:t,padding:n,activeIndex:s,onScroll:e=>{const{scrollLeft:i,clientWidth:r,childElementCount:a,scrollWidth:c,children:m}=e?.currentTarget,h=m[0].offsetWidth-n/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:i,childElementCount:r,itemWidth:l})=>{const a=i-n;if(2===r)return[[0,a],[a,i]];const s=l+e,o=n-e-t,c=r-2,d=new Array(r).fill(0).map(((e,t)=>0===t||t===c?[t>0?a-o:0,t>0?a:o]:[(t-1)*s+o,t*s+o]));return d[r-1]=[a,i],d})({gap:t,padding:n,clientWidth:r,scrollWidth:c,childElementCount:a,itemWidth:h}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[i,r]=t[n];return{index:n,fraction:(e-i)/(r-i)}})(i,u);p!==s&&l&&l(),o(p),d(x)},children:a}),h(z,{...m})]})})),Y=e=>e?.includes("//"),K=e=>(e||"").replace(/\/?\?.*/,""),X=e=>{if(!e||!Y(e))return;const t=e,n=t.indexOf("//"),i=t.indexOf("/",n+"//".length);return-1!==i?t.substring(0,i):t};var q=Object.freeze({__proto__:null,isURL:Y,withoutQuery:K,getOrigin:X,getHash:e=>{if(!e||!Y(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const Q=(e,t)=>Q._impl(e,t);function Z(){return Z._impl()}function ee(){const e=Z();return t=>{const n=((e,t)=>{if(!e)return e;const n=X(t?.href);return n?e.replace(n,"")||"/":e})(t.href,e);return{...t,href:n,"aria-label":t.text,onClick:Q((i=>{t.onClick&&t.onClick(i);const r=n&&!Y(n),l=!t.target||"_self"===t.target;r&&l&&(i?.preventDefault(),e.push(n))}),t)}}}Q._impl=e=>e,Q.setup=e=>{Q._impl=e},Z._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),Z.setup=e=>{Z._impl=e};const te={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:""},ne="bg-main-divider text-main-disabled",ie={primary:ne,secondary:ne,white:ne,link:""},re="text-center font-sans select-none",le={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},ae=p((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return u("div",{className:se(e),children:[i?h("div",{className:le[l],children:i}):null,oe(e)?u("div",{children:[n?h("div",{className:"text-xs-light text-left",children:n}):null,h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?h("div",{className:le[l],children:r}):null]})})),se=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const r="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",oe(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},oe=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ce=({className:e,rounded:t,version:n})=>["inline-block",re,n?ie[n]:"",t?"rounded-full":"rounded-md",e].join(" "),de=({className:e,rounded:t,version:n})=>[re,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",n?te[n]:"",t?"rounded-full":"rounded-md",e].join(" "),me=p((({disabled:e,children:t,...n})=>{const i=ee()(n),r=t??h(ae,{...i});return h(e?ue:he,{...i,children:r})})),he=p((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:a,onClick:s,children:o})=>h("a",{className:de({className:e,version:l,rounded:a}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),ue=p((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ce({className:e,rounded:i,version:n}),children:r}))),pe=(e=!1)=>e?"text-white":"",xe=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),ge=p((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>u("div",{role:"columnheader",children:[e?h(B,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&h("div",{className:"mb-3.5",children:h(B,{image:t})}),n?h(v,{headingType:"h4",className:pe(r),title:n}):null,i?h("div",{className:xe(r),children:i}):null]}))),be=p((({cell:e,rowHeader:t,isFillGradient:n=!1})=>h("div",{className:"box-border flex flex-col",role:"cell",children:h("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(fe(n,t))})}))),fe=(e,t)=>({label:n,description:i},r)=>u("div",{className:"flex justify-between text-s py-3.5",children:[h("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),u("div",{className:"basis-1/2",children:[n?h("div",{className:"text-right "+(e?"text-white":""),children:n}):null,i?h("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i}):null]})]},String(r)),Ne=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const a=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return u("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[h(ge,{...e,isFillGradient:i}),a?.length?a.map((({rowHeader:e,cell:t},n)=>h(be,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?h(me,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,ye({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),ye=({onToggleColumn:e,isFillGradient:t,showRow:n})=>h("div",{className:"mt-5",role:"cell",children:h("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),ve=p((e=>{const{className:t,title:n}=e;return u("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?h(v,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h(we,{...e})})]})})),we=p((({columns:e,rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:a,...s})=>{const[o,c]=i(new Array(e?.length||0).fill(!r)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:i},l)=>{return h(Ne,{visibleRowLength:r,showRow:o[l],header:i,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...s},String(l));var a}));return"horizontal"===a?h(U,{onSlideChange:m,children:u}):u})),ke=new Map;function $e(e,t,{fallback:n}={}){const l=a((()=>Ce(e)),[e]),[s,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>ke.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Ce(e){return e?Array.isArray(e)?e:e instanceof Function?Ce(e()):[e]:[e]}async function Se(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function Te(e,t={}){const{data:n}=$e(`/wcms-resources/${e}.json`,Se,{fallback:t});return n||{}}const _e=p((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(B,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${a}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("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=>{e.preventDefault(),r("")},children:h(B,{image:"CloseIcon",width:"24",height:"24"})}):h(me,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Ie=p((e=>h(_e,{...e,isMobile:!0}))),je=p((({className:e="",documents:t,...n})=>h(N,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?De(t):null})}))),De=e=>e.map(((e,t)=>{const{text:n,...i}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...i,children:n||null})},`list_item_${String(t)}`)})),Ae={"bg-white":"color",transparent:"white"},Re={"bg-white":"text-primary-main",transparent:"text-white"},Oe={"bg-white":"text-black",transparent:"text-white"},Me=p((({className:e="",href:t,children:n,targetBlank:i,bgColor:r="bg-white",showTitle:l=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":"Россельхозбанк",children:[h(B,{image:{icon:"LogoIcon",iconVersion:Ae[r]},className:`${Re[r]}`,width:"34",height:"34",asSVG:!0}),l?h("span",{className:`${Oe[r]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"}):null]}))),Le=p((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>h("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:i?u("div",{className:"flex",children:[h("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:h(Me,{className:"w-8",bgColor:"transparent",showTitle:!0})}),u("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[h("div",{className:"text-s font-medium mb-[3px]",children:t}),h("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),Be=p((({className:e="",items:t,hasButton:n})=>u("div",{className:e,children:[t?.length?t.map(Ve):null,n?h(me,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Ve=(e,t)=>{const{type:n,text:i,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:Ee(n,i)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},Ee=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Fe(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},Fe=e=>e.replaceAll(/\D/g,""),Pe=p((({className:e="",index:t,text:n,...i})=>{const r=ee(),{href:l,target:a,onClick:s}=r(i);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:s,children:n||`Документ ${t}`})})),ze=p((({title:e,links:t,className:n=""})=>u("div",{className:n,children:[h("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?h("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>h(Pe,{index:t,className:"text-s",...e},String(t))))}):null]}))),Ge=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],He=p((({version:e="primary",...t})=>{const n=ee(),{href:i,onClick:r}=n(t),{icon:l,label:a}=Ge.find((({origins:e})=>e.some((e=>i?.includes(e)))))||{};if(!l)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:i,"aria-label":a,target:"_blank",rel:"noopener noreferrer",onClick:r,children:l?h(B,{image:V(l),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),We=p((({className:e="",media:t,version:n})=>h("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>h(He,{version:n,...e},String(t))))}))),Je=p((({className:e="",index:t,...n})=>{const i=ee(),{href:r,target:l,text:a,onClick:s}=i(n);return h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:s,children:a||`Документ ${t}`})})),Ue=p((({className:e="",links:t})=>u("div",{className:e,children:[h("div",{className:"py-6",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>h(Je,{index:t,...e},String(t))))}):null]}))),Ye=p((({className:e="",...t})=>{const n=t.page?.fallback,i=Te(c.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:a,socialMedia:s,horizontalNavigationTitle:o}=Te(c.FOOTER||"footer",n);return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(Be,{className:"overflow-hidden",items:a,hasButton:!0}),h(w,{children:i.topItems?.map(((e,n)=>h(F,{label:e.text,...t,children:h(je,{documents:e.items,...t})},String(n))))}),h("div",{children:i?.dispositions?.map(Ke)}),h(Le,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),h(Ie,{className:"grow"}),h(We,{className:"pb-4",media:s}),h(ze,{title:o,links:l}),h(Ue,{links:r})]})})),Ke=(e,t)=>{const{icon:n,href:i,text:r}=e;return u(me,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?h(B,{className:"pr-1",image:V(n),width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},Xe={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},qe=p((({title:e,description:t,cards:n=[],className:i,orientation:r="horizontal"})=>u("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[u("div",{className:"flex flex-col items-center mb-5",children:[e?h(v,{headingType:"h3",className:`text-center ${t?"mb-2":"mb-5"}`,title:e}):null,t?h("div",{className:"text-m max-w-[600px] text-center mb-5",children:t}):null]}),Qe(r,n)]})));function Qe(e,t){return"horizontal"===e?h(U,{children:t?.map(Ze)}):h("div",{className:"grid gap-[14px]",children:t?.map(Ze)})}function Ze(e,t){return u("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${Xe[e.version??"primary"]}`,children:[u("div",{children:[et(e.icon),e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?tt(e):null,e.items?.length?it(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(me,{className:"mt-3",...n})):null]},t);var n}const et=e=>e?.src||e?.icon?h("div",{className:"flex justify-center",children:h(B,{className:"mb-3.5",image:e})}):null;function tt(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const nt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function it(e,t,n="primary"){return h("section",{className:"mt-3",children:e.map(((e,i)=>u("div",{children:[t?h("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${nt[n]}`}):null,h("span",{className:"text-m font-medium",children:e.title}),h("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(i))))})}const rt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(K(e),K(Y(e)?t.href:t.pathname)),lt=e=>t=>rt(t.href,e),at=e=>t=>t.items?.some(lt(e))||rt(t.href,e)||((e,t)=>X(e)===X(t.href))(t.href,e),st="absolute left-0 -bottom-3 w-full h-[2px]",ot=p((({className:e="",text:t,href:n,target:i,active:r,onClick:l,children:a,bgColor:s="bg-white"})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:i,onClick:l,children:[h("span",{className:ct(s,r),children:t||a}),r?h("div",{className:dt(s,r)}):null]}))),ct=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},dt=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${st}`:st,mt=o("https://10.80.4.9");const ht=p((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:a})=>{const[s,o]=function(e){const[t,n]=i(e);return r((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,l((()=>{mt.getFetcherAddress().then((t=>{const i=t||e;globalThis?.localStorage.setItem("location",i),n(i)}))}),[e])]}(n);return u("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[h("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:h(B,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),u("button",{onClick:o,className:"flex items-center text-s text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[h(B,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),s]}),a,h("div",{className:"mb-7",children:e?.map(ut)}),h(Ie,{className:"grow"})]})})),ut=(e,t)=>{const{icon:n,href:i,text:r}=e;return u("a",{href:i,className:"flex text-s mb-4 hover:text-primary-main",children:[n?h(B,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"font-medium pl-0.5",children:r})]},`headerSubMenu-${t}`)},pt=p((({onClick:e,bgColor:t})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[u("div",{className:"flex items-center",children:[h("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:h(B,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(Me,{className:"mr-8",bgColor:t})]}),h("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),xt=p((({className:e="",bgColor:t="bg-white",...n})=>{const r=Z(),{page:l}=n,a=l?.fallback,{topItems:s,dispositions:o,defaultLocation:d}=Te(c.SITEMAP||"sitemap",a),m=s?.find(at(r)),p=m?.items,x=(e=>(t=[])=>{const n=t?.filter(lt(e));return n?.length?(i=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>i(e)>i(t)?e:t)))(n):void 0;var i})(r)(p),[g,b]=i(!1),f=()=>b(!g);return u("header",{className:`${t} ${e}`,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(pt,{onClick:f,bgColor:t}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:p?.map(((e,n)=>h(ot,{className:"mr-8 whitespace-nowrap text-s",active:e===x,bgColor:t,...e},String(n))))})})]}),g?h(ht,{onClick:f,burgerSubMenu:o,defaultLocation:d,children:h(w,{children:s?.map(((e,t)=>h(F,{label:e.text,...n,children:h(je,{documents:e.items,...n})},String(t))))})}):null]})})),gt={left:"text-left",center:"text-center",right:"text-right"},bt={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},ft=p((({bgColorHeadline:e="transparent",className:t="",title:n,description:i,image:r,align:l="left"})=>{const a=bt[e];return u("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${a.background} ${t}`,children:[n?h(v,{headingType:"h2",className:`${a.text} ${gt[l]}`,title:n}):null,i?h("p",{className:`text-m ${a.description} ${gt[l]}`,children:i}):null,r?.src&&h("div",{className:"mt-2.5 mx-auto flex justify-center",children:h(B,{image:r})})]})})),Nt=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:l})=>{const{text:a,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[l?h(B,{className:t,image:V(l),width:"24px",height:"24px",asSVG:!0}):null,a?u("span",{className:n,children:[a,h("span",{className:i,children:o?.href&&yt(vt(o.href),s)})]}):null]})})),yt=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),vt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},wt=p((({className:e="",doc:t,icon:n})=>h(Nt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),kt=p((({hasBorder:e=!0,documents:t,icon:n})=>h(U,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>h(wt,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),$t=p((({hasBorder:e=!0,documents:t,icon:n})=>h("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,i)=>h("div",{role:"listitem",children:h(wt,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Ct=p((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:l="vertical",hasBorder:a=!0,...s})=>u("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[h(ft,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:"center",...s}),h("vertical"===l?$t:kt,{hasBorder:a,documents:r,icon:i})]}))),St=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Tt(e=""){const t=St(e);return t<=4?"S":t<=8?"M":"L"}function _t(e=""){const t=St(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function It(e=""){const t=St(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const jt=p((({className:e,title:t,description:n="Блок в разработке...",...i})=>u(N,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${It(e)} ${_t(e)} `,...i,children:[h(ft,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Tt(e),...i}),h("figure",{className:"m-0 min-w-[80%]",children:Dt()})]}))),Dt=(e=3)=>Rt(100,e).map((e=>Math.floor(e))).map(At),At=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Rt=(e,t)=>[e].concat(t>0?Rt(e/1.618,t-1):[]),Ot=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>Mt({button:e,index:t})))}):null));function Mt({button:e,buttonClassName:t,index:n}){const{icon:i,iconRight:r,version:l,...a}=e,s="secondary"===l?"color":"white",o=Lt({...i,iconVersion:s}),c=Lt({...r,iconVersion:s});return h(me,{className:t,appendLeft:o,appendRight:c,version:l,...a},n?String(n):"")}const Lt=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(B,{image:{...e},width:t,height:"24",asSVG:!0})},Bt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},Vt={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},Et=p((({className:e="",isDotted:t=!0,children:n,version:i="primary",size:r="M"})=>u("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?h("div",{children:h("div",{className:`rounded-full align-middle inline-block ${Bt[i]} ${Vt[r]}`})}):null,h("span",{children:n})]}))),Ft={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},Pt={S:"text-l-light",M:"text-h6",L:"text-h5"},zt={S:"ml-2",M:"ml-3",L:"ml-4"},Gt=p((e=>{const{className:t="",hasIndent:n,isDotted:i,itemClassName:r="",items:l,listItemSize:a="M",version:s="primary"}=e;return l?.length?h("section",{className:`${Ft[s]} ${Pt[a]} ${t} ${n?zt[a]:""}`,role:"list",children:l.map(((e,t)=>h(Et,{className:`${r} mb-1.5`,isDotted:i,version:s,size:a,children:e},String(t))))}):null})),Ht=p((({className:e="",title:t="",buttons:n,image:i,children:r})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:r}),n?h("div",{className:"mt-auto pt-8",children:n}):null]}),i]})]}))),Wt={primary:"text-primary-text",secondary:"text-white"},Jt={primary:"text-secondary-text",secondary:"text-white"},Ut=p((e=>{const{className:t="",icon:n,label:i,description:r,version:l="primary",benefitsVersion:a="normal"}=e,s="white"===a?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:Yt(l,a),children:h(B,{className:"w-6 h-6",image:V(n,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[i?h("div",{className:`text-h6 ${Wt[l]}`,children:i}):null,r?h("div",{className:`text-m-light ${Jt[l]}`,children:r}):null]})]})}));function Yt(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const Kt=(e="primary",t="normal")=>({icon:n,label:i,description:r},l)=>h(Ut,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(l)),Xt=p((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:l,items:a,version:s="primary",isDotted:o=!0,label:c,...d})=>u("div",{className:`w-full ${e}`,children:[u("div",{children:[c?Zt(c,s):null,h(ft,{className:"!p-0 max-w-[600px]",bgColorHeadline:s,headlineVersion:t,...d}),u(Ht,{buttons:r?.length?h(Ot,{buttons:r,className:"flex flex-col mt-5 gap-2.5"}):null,children:[n?.filter((e=>e.label))?.length?h("div",{className:"mt-3",children:n.map(Kt(s,i))}):null,a?.length?h(Gt,{className:"mt-3 text-m",items:a,version:s,isDotted:o}):null]})]}),qt(l)]})));function qt(e){return e?.src?h(B,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const Qt={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},Zt=(e,t)=>h("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${Qt[t]}`,children:e}),en=p((e=>{const{className:t="",version:n="primary"}=e;return h("section",{className:`font-sans bg-white px-4 py-6 ${Xe[n]} ${t}`,children:h(Xt,{...e})})})),tn={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},nn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},rn={normal:"min-h-[70px]",small:"min-h-[50px]"},ln=p((({className:e,title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:a="primary"})=>{const s=tn[a];return u("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t?h(v,{headingType:"h3",className:`text-center ${s.title}`,title:t}):null,n?h("p",{className:`text-m-light text-center ${s.description} ${t?"mt-2":""}`,children:n}):null,r?.length?h("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:h("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map(an(l,a,i))})}):null]})})),an=(e,t,n)=>(i,r,l)=>{const a=l.length-1===r,s="normal"===e?"ml-[34px]":"ml-6",o=tn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[sn(e,t)(i,r),a?null:h("div",{className:`min-h-8 h-full w-[2px] ${n?o.iconConnector:""} ${s}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${rn[e]}`,children:[i.label?h("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:i.label}):null,i.description?h("div",{className:`text-s ${o.description} text-left`,children:i.description}):null]})]})},String(r))},sn=(e,t)=>(n,i)=>{const r=tn[t],l="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${nn[e]} ${r.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:h("span",{className:`font-medium flex self-center ${r.title} ${a}`,children:(s=n?.icon,Boolean(s?.icon||s?.src)?h(B,{image:V({...n.icon},t),width:l,height:l,asSVG:!0}):h("span",{children:i+1}))})});var s},on={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,icon:t,...n},i)=>Mt({button:{rounded:e,icon:t,...n},buttonClassName:`mt-3 ${i>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`,index:i})))}):null,Img:({image:e})=>e?.src?h(B,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(Gt,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-s text-secondary-text",children:t}):null]})},cn=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(v,{headingType:"h3",className:"font-medium",title:e}):null,t?h(B,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),dn=p((({tile:e,...t})=>u("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[h(cn,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,mn(e,t)]},String(n)))):null]})));function mn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in on))return null;const n=on[e.tableCellType];return h(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const hn=p((({tiles:e,...t})=>e?.length?h(U,{...t,children:e.map(((e,n)=>h(dn,{tile:e,...t},String(n))))}):null)),un=p((({tiles:e,...t})=>e?.length?h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>h(dn,{tile:e,...t},String(n))))}):null)),pn=p((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...a})=>{const s=xn(i),o=gn(r,s);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?h(v,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?h("div",{className:"mb-5 text-center text-m",children:n}):null,h("vertical"===l?un:hn,{tiles:o,...a})]})})),xn=e=>e?.[0].data?e[0].data:[],gn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),bn={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},fn=p((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:l="",items:a,isDotted:s=!0})=>{const o=bn[n],c="secondary"===n?"secondary":"gray";return u("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===i?Nn(o.icon):null,"big"===i?yn(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?h("div",{className:`text-s ${o.description}`,children:t}):null,a?.length?h(Gt,{className:"mt-1 text-m",items:a,isDotted:s,version:c}):null]})]})}));function Nn(e){return h("div",{className:"mb-3",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function yn(e){return e?.src?h(B,{className:"pb-3 mr-auto",image:e}):null}const vn={Accordion:k,AccordionItem:F,ComparisonTable:ve,Footer:Ye,Gallery:qe,Header:xt,Headline:ft,LinkDocs:Ct,LinkList:je,MobileAppTile:Le,ProductBlock:en,StepsBlock:ln,TariffsTable:pn,TextBlock:fn,Placeholder:jt};function wn(e){return e?e.filter(Boolean).join(" "):""}const kn=m();const $n=p((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Cn()}))),Cn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),h("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Sn=p((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await kn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await kn.like(e))}),[e]),dislike:l((async()=>{n(await kn.dislike(e))}),[e])}}(Z().pathname);return u("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[h($n,{onClick:Q(t.like),ariaLabel:"Поставить отметку «лайк»"}),h($n,{onClick:Q(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),Tn=({slots:e,parent:t,options:n,ancestors:i=[]})=>Object.entries(e||{}).reduce(((e,[r,l])=>({...e,[r]:_n({blocks:l,parent:t,slotName:r,options:n,ancestors:i})})),{});const _n=({blocks:e,parent:t,slotName:n=null,options:i,ancestors:r=[]})=>(e||[]).map(((e,l)=>function({block:e={},options:t,ancestors:n=[]}){const{key:i,page:r,blockDecorator:l,blocksRegistry:a={}}=t,{type:s,slots:o,blocks:c}=e;s&&s in a||console.warn(`No block with "${s}" is registered`);const d=s&&a[s],m={parent:e,options:t,ancestors:n},u=_n({...m,blocks:c}),p=o?Tn({...m,slots:o}):{};return l({blockClassName:`scroll-mt-12 ${wn(e.style)}`,block:e,ancestors:n,render:({block:e,blockClassName:t})=>{const{content:l}=e;return d?h(d,{page:r,block:e,className:t,ancestors:n,slots:p,...l,children:u},i):null}},i)}({block:e,options:{...i,key:`${i.key?i.key:e.type}-${l}`},ancestors:[...r,[t,n]]}))),In=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),jn=p((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",blocksRegistry:n,page:r,blockDecorator:i||In},m=Tn({slots:s,parent:r,options:d});return u("section",{className:`relative ${wn(l)} ${t}`,"data-theme":c,children:[m?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:m.header}):null,a?.length?u("div",{className:"container grid grid-cols-12 gap-1",children:[_n({blocks:a,parent:r,options:d}),m?.footer?m.footer:null]}):null,o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Sn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));jn.childrenTypes=[],jn.slots=()=>["header","footer"];e.Blocks=vn,e.ContentPage=jn,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=Q,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.6.32",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=q,e.useRouter=Z,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:i}=await e.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,a=i||l&&l();return e(Object.assign(r,a&&{children:a}),n)}return t.inheritAttrs=!1,t};function g(e){return e?e.filter(Boolean).join(" "):""}const b=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),f=[],N=["col-span-12"];function y(e,t){const{key:n,blockDecorator:i=b,blocksRegistry:r={},ancestors:l=f}=t,{type:a}=e;a&&a in r||console.warn(`No block with "${a}" is registered`);const s=a&&r[a];return i({blockClassName:`scroll-mt-12 ${g(e.style||N)}`,block:e,ancestors:l,render:({block:i,blockClassName:r})=>{const{content:l}=i;return s?h(s,{className:r,block:e,options:t,...l},n):null}},n)}const v=[],w=(e,{key:t,ancestors:n=v,slotName:i=null,renderChild:r=y,...l})=>(e||[]).map(((e,a)=>r(e,{...l,key:`${t||e.type}-${a}`,ancestors:l.parent?[...n||v,[l.parent,i]]:n})));function k({children:e,block:t,options:n,renderChild:i}){return e||(t&&n?w(t.blocks,{...n,parent:t,renderChild:i}):null)}class ${static inst=new $;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const C=100,S={threshold:new Array(18).fill(0).map((function(e,t){const n=(t+1)/C+.82;return Math.round(n*C)/C}))},T=p((({className:e,block:t,tag:n="section",role:l,children:o})=>{const c=n,{anchor:d,labels:m}=t||{},[u,p]=i(!0),x=s({}),g=a((()=>(({anchor:e,anchorClickRef:t})=>n=>{if(!n?.length)return;const[i]=n;!i.isIntersecting||i.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?($.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),$.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||$.inst.fire("tab",{type:"link",label:e}))})({anchor:d,anchorClickRef:x})),[d]),b=function(e,t){const n=s(null);return r((()=>{if(!n.current)return;const i=new IntersectionObserver(e,t);return i.observe(n.current),()=>{i.disconnect()}}),[e,t]),n}(g,S);return r((()=>$.inst.subscribe("anchorClick",(e=>{p(!0),x.current=e}))),[]),r((()=>$.inst.subscribe("tab",(e=>{if("group"===e.type){const n=m?.length||t?.anchor;p(!e.label||(!n||Boolean(m?.includes(e.label))))}else(n=e.label)&&(globalThis.document.location.hash=n),p(!0);var n}))),[]),u?h(c,{className:e,role:l,...d?{id:d,ref:b}:{},children:o}):null}));const _={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},I=p((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return h(r,{className:`font-sans font-medium m-0 ${_[n]} ${t||""}`,children:i})})),j=p((e=>{const{size:t="",color:n="",align:i="",font:r="",children:l}=e;return h("p",{className:`font-sans ${t} ${n} ${i} ${r}`,children:l})})),D=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),A=p((({title:e,description:t,className:n="",...i})=>u(T,{className:`py-6 px-4 bg-white text-primary-text ${n}`,...i,children:[e?h(I,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5",children:h(j,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,h(D,{children:k(i)})]})));A.childrenTypes=["AccordionItem"];const R=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[a,s]=i(t),o=l((()=>{s((e=>!e))}),[]),c=n({isUnfolded:a,onToggle:o}),d=r?r({isUnfolded:a,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),O=p((({className:e="",isUnfolded:t,children:n})=>{const i=s(null);return r((()=>{i.current&&(i.current.style.maxHeight=t?`${i.current.scrollHeight}px`:"")}),[t,n?.length]),h("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden max-h-0 ${e}`,children:n})})),M={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},L=p((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:l="color",asSVG:a,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return a&&"normal"!==l?h(E,{className:e,children:u("svg",{className:[V(e,s.width),M[l],t,B(l)].join(" "),...s,"aria-hidden":"true",children:[r?h("title",{children:r}):null,i?h("desc",{children:i}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:i,title:r,...s,"aria-hidden":"true"})})),B=e=>"white"===e?"invert":"",V=(e,t)=>t?`width: ${t}px `:"w-full h-full",E=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function F(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const P=(e,t)=>e.media&&t.media?e.media-t.media:0,z=p((({className:e="",image:t,imageClassName:n="",isMobile:i=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(P).map((({src:e,format:n,media:i},r)=>h("source",{srcSet:e,type:H(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,G(t,n,i)]})})),G=(e,t="",n=!1)=>{const i={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${a} ${t}`,alt:l,title:r,style:i,...e.size})};function H(e){return e?`image/${String(e)}`:void 0}const W=p((({className:e="",image:t,imageClassName:n="",isMobile:i,...r})=>{if(!t)return null;const l="string"==typeof t?t:t.icon;return l||""===l?l.length?h(L,{className:e,imageClassName:n,iconVersion:F(t),name:l,...r}):null:h(z,{className:e,imageClassName:n,image:t,isMobile:i})})),J=p((e=>h(W,{...e,isMobile:!0}))),U=p((e=>{const{size:t="",color:n="",align:i="",font:r="",children:l}=e;return h("span",{className:`font-sans ${t} ${n} ${i} ${r}`,children:l})})),Y=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),K=["PlusIcon","MinusIcon"],X=p((({className:e="",label:t="",labelIcon:n,isExpanded:i,...r})=>{const{bordered:l}=function(e,t){const{content:n}=function(e){return e?.parent||{}}(e);return n||t}(r.options,{});return h("li",{className:`${l?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:h(R,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>h(O,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:k(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>h(q,{className:l?"":"py-[14px] px-0",label:t,icon:K[Number(e)],primaryIcon:n,onClick:i})})})}));X.childrenTypes=[];const q=p((({className:e,icon:t,label:n,primaryIcon:i,onClick:r})=>u("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${e}`,onClick:r,children:[u("div",{className:"flex group-hover:text-primary-main",children:[i?h(J,{image:Y(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,h(U,{size:"text-m-title-xs",font:"font-medium",children:n})]}),h(J,{className:"flex-shrink-0",image:Y({icon:t}),width:"24",height:"24",asSVG:!0})]}))),Q="bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",Z=p((({children:e,activeIndex:t,indexFraction:n,showDots:i})=>{const r=l((e=>n=>{if(e===t)return;const i=n.currentTarget.parentElement?.previousElementSibling;i?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})}),[t]);return i&&e?h("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e.length&&e.map?e.map(((e,i)=>h("div",{onClick:r(i),className:Q,style:ee(i,t,n),"aria-hidden":!0},String(i)))):h("div",{className:Q,style:te(1)})}):null})),ee=(e,t,n)=>{if(e<t||e>t+1)return;return te(e===t?1-n:n)},te=e=>({opacity:""+(.3+.7*e),width:6+16*e+"px"}),ne=p((({className:e="",children:t,...n})=>h("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...n,children:t}))),ie=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),re=p((({className:e="",activeIndex:t=-1,gap:n=14,padding:i=16,children:r,onScroll:l})=>r?h("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...ie(i),gap:`${n}px`},role:"list",onScroll:l,children:r.length&&r.map?r.map(((e,n)=>h(ne,{style:ie(i/4),"aria-current":Boolean(t===n),children:e},String(n)))):h(ne,{style:ie(i/4),"aria-current":!0,children:r})}):null)),le=p((({className:e,gap:t=14,padding:n=16,showDots:r=!0,onSlideChange:a,children:s})=>{const[o,c]=i(0),[d,m]=i(0),p={activeIndex:o,indexFraction:d,showDots:r,children:s},x=l((e=>{const{scrollLeft:i,clientWidth:r,childElementCount:l,scrollWidth:s,children:d}=e?.currentTarget;if(!d[0])return;const h=d[0].offsetWidth-n/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:i,childElementCount:r,itemWidth:l})=>{const a=i-n;if(2===r)return[[0,a],[a,i]];const s=l+e,o=n-e-t,c=r-2,d=new Array(r).fill(0).map(((e,t)=>0===t||t===c?[t>0?a-o:0,t>0?a:o]:[(t-1)*s+o,t*s+o]));return d[r-1]=[a,i],d})({gap:t,padding:n,clientWidth:r,scrollWidth:s,childElementCount:l,itemWidth:h}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[i,r]=t[n];return{index:n,fraction:(e-i)/(r-i)}})(i,u);p!==o&&a&&a(),c(p),m(x)}),[t,n,o,a]);return u("div",{className:e,children:[h(re,{gap:t,padding:n,activeIndex:o,onScroll:x,children:s}),h(Z,{...p})]})})),ae=e=>e?.includes("//"),se=e=>(e||"").replace(/\/?\?.*/,""),oe=e=>{if(!e||!ae(e))return;const t=e,n=t.indexOf("//"),i=t.indexOf("/",n+"//".length);return-1!==i?t.substring(0,i):t};var ce=Object.freeze({__proto__:null,isURL:ae,withoutQuery:se,getOrigin:oe,getHash:e=>{if(!e||!ae(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const de=(e,t)=>de._impl(e,t);function me(){return me._impl()}function he(){const e=me();return t=>{const n=((e,t)=>{if(!e)return e;const n=oe(t?.href);return n?e.replace(n,"")||"/":e})(t.href,e);return{...t,href:n,"aria-label":t.text,onClick:de((i=>{t.onClick&&t.onClick(i);const r=n&&!ae(n),l=!t.target||"_self"===t.target;r&&l&&(i?.preventDefault(),e.push(n))}),t)}}}de._impl=e=>e,de.setup=e=>{de._impl=e},me._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),me.setup=e=>{me._impl=e};const ue={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:""},pe="bg-main-divider text-main-disabled",xe={primary:pe,secondary:pe,white:pe,link:""},ge="text-center font-sans select-none",be={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},fe=p((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return u("div",{className:Ne(e),children:[i?h("div",{className:be[l],children:i}):null,ye(e)?u("div",{children:[n?h("div",{className:"text-xs-light text-left",children:n}):null,h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?h("div",{className:be[l],children:r}):null]})})),Ne=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const r="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",ye(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},ye=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ve=({className:e,rounded:t,version:n})=>["inline-block",ge,n?xe[n]:"",t?"rounded-full":"rounded-md",e].join(" "),we=({className:e,rounded:t,version:n})=>[ge,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",n?ue[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ke=p((({disabled:e,children:t,...n})=>{const i=he()(n),r=t??h(fe,{...i});return h(e?Ce:$e,{...i,children:r})})),$e=p((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:a,onClick:s,children:o})=>h("a",{className:we({className:e,version:l,rounded:a}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Ce=p((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ve({className:e,rounded:i,version:n}),children:r}))),Se=(e=!1)=>e?"text-white":"",Te=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),_e=p((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>u("div",{role:"columnheader",children:[e?h(J,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&h("div",{className:"mb-3.5",children:h(J,{image:t})}),n?h(I,{headingType:"h4",className:Se(r),title:n}):null,i?h("div",{className:Te(r),children:i}):null]}))),Ie=p((({cell:e,rowHeader:t,isFillGradient:n=!1})=>h("div",{className:"box-border flex flex-col",role:"cell",children:h("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(je(n,t))})}))),je=(e,t)=>({label:n,description:i},r)=>u("div",{className:"flex justify-between text-s py-3.5",children:[h("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),u("div",{className:"basis-1/2",children:[n?h("div",{className:"text-right "+(e?"text-white":""),children:n}):null,i?h("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i}):null]})]},String(r)),De=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const a=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return u("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[h(_e,{...e,isFillGradient:i}),a?.length?a.map((({rowHeader:e,cell:t},n)=>h(Ie,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?h(ke,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Ae({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),Ae=({onToggleColumn:e,isFillGradient:t,showRow:n})=>h("div",{className:"mt-5",role:"cell",children:h("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Re=p((e=>{const{className:t,title:n}=e;return u("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?h(I,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h(Oe,{...e})})]})})),Oe=p((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:a,...s})=>{const[o,c]=i(new Array(e.length).fill(!r)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:i},l)=>{return h(De,{visibleRowLength:r,showRow:o[l],header:i,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...s},String(l));var a}));return"horizontal"===a?h(le,{onSlideChange:m,children:u}):u})),Me=new Map;function Le(e,t,{fallback:n}={}){const l=a((()=>Be(e)),[e]),[s,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>Me.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Be(e){return e?Array.isArray(e)?e:e instanceof Function?Be(e()):[e]:[e]}async function Ve(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function Ee(e,t={}){const{data:n}=Le(`/wcms-resources/${e}.json`,Ve,{fallback:t});return n||{}}const Fe=p((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(J,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${a}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("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=>{e.preventDefault(),r("")},children:h(J,{image:"CloseIcon",width:"24",height:"24"})}):h(ke,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Pe=p((e=>h(Fe,{...e,isMobile:!0}))),ze=p((({className:e="",documents:t,...n})=>h(T,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?Ge(t):null})}))),Ge=e=>e.map(((e,t)=>{const{text:n,...i}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...i,children:n||null})},`list_item_${String(t)}`)})),He={"bg-white":"color",transparent:"white"},We={"bg-white":"text-primary-main",transparent:"text-white"},Je={"bg-white":"text-black",transparent:"text-white"},Ue=p((({className:e="",href:t,children:n,targetBlank:i,bgColor:r="bg-white",showTitle:l=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":"Россельхозбанк",children:[h(J,{image:{icon:"LogoIcon",iconVersion:He[r]},className:`${We[r]}`,width:"34",height:"34",asSVG:!0}),l?h("span",{className:`${Je[r]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"}):null]}))),Ye=p((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>h("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:i?u("div",{className:"flex",children:[h("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:h(Ue,{className:"w-8",bgColor:"transparent",showTitle:!0})}),u("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[h("div",{className:"text-s font-medium mb-[3px]",children:t}),h("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),Ke=p((({className:e="",items:t,hasButton:n})=>u("div",{className:e,children:[t?.length?t.map(Xe):null,n?h(ke,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Xe=(e,t)=>{const{type:n,text:i,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:qe(n,i)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},qe=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Qe(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},Qe=e=>e.replaceAll(/\D/g,""),Ze=p((({className:e="",index:t,text:n,...i})=>{const r=he(),{href:l,target:a,onClick:s}=r(i);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:s,children:n||`Документ ${t}`})})),et=p((({title:e,links:t,className:n=""})=>u("div",{className:n,children:[h("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?h("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>h(Ze,{index:t,className:"text-s",...e},String(t))))}):null]}))),tt=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],nt=p((({version:e="primary",...t})=>{const n=he(),{href:i,onClick:r}=n(t),{icon:l,label:a}=tt.find((({origins:e})=>e.some((e=>i?.includes(e)))))||{};if(!l)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:i,"aria-label":a,target:"_blank",rel:"noopener noreferrer",onClick:r,children:l?h(J,{image:Y(l),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),it=p((({className:e="",media:t,version:n})=>h("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>h(nt,{version:n,...e},String(t))))}))),rt=p((({className:e="",index:t,...n})=>{const i=he(),{href:r,target:l,text:a,onClick:s}=i(n);return h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:s,children:a||`Документ ${t}`})})),lt=p((({className:e="",links:t})=>u("div",{className:e,children:[h("div",{className:"py-6",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>h(rt,{index:t,...e},String(t))))}):null]}))),at=p((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=Ee(c.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:a,socialMedia:s,horizontalNavigationTitle:o}=Ee(c.FOOTER||"footer",n);return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(Ke,{className:"overflow-hidden",items:a,hasButton:!0}),h(D,{children:i.topItems?.map(((e,t)=>h(X,{label:e.text,children:h(ze,{documents:e.items})},String(t))))}),h("div",{children:i?.dispositions?.map(st)}),h(Ye,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),h(Pe,{className:"grow"}),h(it,{className:"pb-4",media:s}),h(et,{title:o,links:l}),h(lt,{links:r})]})})),st=(e,t)=>{const{icon:n,href:i,text:r}=e;return u(ke,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?h(J,{className:"pr-1",image:Y(n),width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},ot={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ct=p((({title:e,description:t,cards:n=[],className:i,orientation:r="horizontal"})=>u("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[u("div",{className:"flex flex-col items-center mb-5",children:[e?h(I,{headingType:"h3",className:`text-center ${t?"mb-2":"mb-5"}`,title:e}):null,t?h("div",{className:"text-m max-w-[600px] text-center mb-5",children:t}):null]}),dt(r,n)]})));function dt(e,t){return"horizontal"===e?h(le,{children:t?.map(mt)}):h("div",{className:"grid gap-[14px]",children:t?.map(mt)})}function mt(e,t){return u("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${ot[e.version??"primary"]}`,children:[u("div",{children:[ht(e.icon),e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?ut(e):null,e.items?.length?xt(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(ke,{className:"mt-3",...n})):null]},t);var n}const ht=e=>e?.src||e?.icon?h("div",{className:"flex justify-center",children:h(J,{className:"mb-3.5",image:e})}):null;function ut(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const pt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function xt(e,t,n="primary"){return h("section",{className:"mt-3",children:e.map(((e,i)=>u("div",{children:[t?h("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${pt[n]}`}):null,h("span",{className:"text-m font-medium",children:e.title}),h("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(i))))})}const gt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(se(e),se(ae(e)?t.href:t.pathname)),bt=e=>t=>gt(t.href,e),ft=e=>t=>t.items?.some(bt(e))||gt(t.href,e)||((e,t)=>oe(e)===oe(t.href))(t.href,e),Nt="absolute left-0 -bottom-3 w-full h-[2px]",yt=p((({className:e="",text:t,href:n,target:i,active:r,onClick:l,children:a,bgColor:s="bg-white"})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:i,onClick:l,children:[h("span",{className:vt(s,r),children:t||a}),r?h("div",{className:wt(s,r)}):null]}))),vt=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},wt=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Nt}`:Nt,kt=o("https://10.80.4.9");const $t=p((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:a})=>{const[s,o]=function(e){const[t,n]=i(e);return r((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,l((()=>{kt.getFetcherAddress().then((t=>{const i=t||e;globalThis?.localStorage.setItem("location",i),n(i)}))}),[e])]}(n);return u("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[h("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:h(J,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),u("button",{onClick:o,className:"flex items-center text-s text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[h(J,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),s]}),a,h("div",{className:"mb-7",children:e?.map(Ct)}),h(Pe,{className:"grow"})]})})),Ct=(e,t)=>{const{icon:n,href:i,text:r}=e;return u("a",{href:i,className:"flex text-s mb-4 hover:text-primary-main",children:[n?h(J,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"font-medium pl-0.5",children:r})]},`headerSubMenu-${t}`)},St=p((({onClick:e,bgColor:t})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[u("div",{className:"flex items-center",children:[h("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:h(J,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(Ue,{className:"mr-8",bgColor:t})]}),h("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Tt=p((({className:e="",bgColor:t="bg-white",...n})=>{const r=me(),l=n.options?.page?.fallback,{topItems:a,dispositions:s,defaultLocation:o}=Ee(c.SITEMAP||"sitemap",l),d=a?.find(ft(r)),m=d?.items,p=(e=>(t=[])=>{const n=t?.filter(bt(e));return n?.length?(i=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>i(e)>i(t)?e:t)))(n):void 0;var i})(r)(m),[x,g]=i(!1),b=()=>g(!x);return u("header",{className:`${t} ${e}`,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(St,{onClick:b,bgColor:t}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,n)=>h(yt,{className:"mr-8 whitespace-nowrap text-s",active:e===p,bgColor:t,...e},String(n))))})})]}),x?h($t,{onClick:b,burgerSubMenu:s,defaultLocation:o,children:h(D,{children:a?.map(((e,t)=>h(X,{label:e.text,children:h(ze,{documents:e.items})},String(t))))})}):null]})})),_t={left:"text-left",center:"text-center",right:"text-right"},It={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},jt=p((({bgColorHeadline:e="transparent",className:t="",title:n,description:i,image:r,align:l="left"})=>{const a=It[e];return u("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${a.background} ${t}`,children:[n?h(I,{headingType:"h2",className:`${a.text} ${_t[l]}`,title:n}):null,i?h("p",{className:`text-m ${a.description} ${_t[l]}`,children:i}):null,r?.src&&h("div",{className:"mt-2.5 mx-auto flex justify-center",children:h(J,{image:r})})]})})),Dt=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:l})=>{const{text:a,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[l?h(J,{className:t,image:Y(l),width:"24px",height:"24px",asSVG:!0}):null,a?u("span",{className:n,children:[a,h("span",{className:i,children:o?.href&&At(Rt(o.href),s)})]}):null]})})),At=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Rt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Ot=p((({className:e="",doc:t,icon:n})=>h(Dt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),Mt=p((({hasBorder:e=!0,documents:t,icon:n})=>h(le,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>h(Ot,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),Lt=p((({hasBorder:e=!0,documents:t,icon:n})=>h("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,i)=>h("div",{role:"listitem",children:h(Ot,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Bt=p((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:l="vertical",hasBorder:a=!0,...s})=>u("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[h(jt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:"center",...s}),h("vertical"===l?Lt:Mt,{hasBorder:a,documents:r,icon:i})]}))),Vt=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Et(e=""){const t=Vt(e);return t<=4?"S":t<=8?"M":"L"}function Ft(e=""){const t=Vt(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Pt(e=""){const t=Vt(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const zt=p((({className:e,title:t,description:n="Блок в разработке...",...i})=>u(T,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Pt(e)} ${Ft(e)} `,...i,children:[h(jt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Et(e),...i}),h("figure",{className:"m-0 min-w-[80%]",children:Gt()})]}))),Gt=(e=3)=>Wt(100,e).map((e=>Math.floor(e))).map(Ht),Ht=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Wt=(e,t)=>[e].concat(t>0?Wt(e/1.618,t-1):[]),Jt=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>Ut({button:e,index:t})))}):null));function Ut({button:e,buttonClassName:t,index:n}){const{icon:i,iconRight:r,version:l,...a}=e,s="secondary"===l?"color":"white",o=Yt({...i,iconVersion:s}),c=Yt({...r,iconVersion:s});return h(ke,{className:t,appendLeft:o,appendRight:c,version:l,...a},n?String(n):"")}const Yt=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(J,{image:{...e},width:t,height:"24",asSVG:!0})},Kt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},Xt={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},qt=p((({className:e="",isDotted:t=!0,children:n,version:i="primary",size:r="M"})=>u("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?h("div",{children:h("div",{className:`rounded-full align-middle inline-block ${Kt[i]} ${Xt[r]}`})}):null,h("span",{children:n})]}))),Qt={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},Zt={S:"text-l-light",M:"text-h6",L:"text-h5"},en={S:"ml-2",M:"ml-3",L:"ml-4"},tn=p((e=>{const{className:t="",hasIndent:n,isDotted:i,itemClassName:r="",items:l,listItemSize:a="M",version:s="primary"}=e;return l?.length?h("section",{className:`${Qt[s]} ${Zt[a]} ${t} ${n?en[a]:""}`,role:"list",children:l.map(((e,t)=>h(qt,{className:`${r} mb-1.5`,isDotted:i,version:s,size:a,children:e},String(t))))}):null})),nn=p((({className:e="",title:t="",buttons:n,image:i,children:r})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:r}),n?h("div",{className:"mt-auto pt-8",children:n}):null]}),i]})]}))),rn={primary:"text-primary-text",secondary:"text-white"},ln={primary:"text-secondary-text",secondary:"text-white"},an=p((e=>{const{className:t="",icon:n,label:i,description:r,version:l="primary",benefitsVersion:a="normal"}=e,s="white"===a?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:sn(l,a),children:h(J,{className:"w-6 h-6",image:Y(n,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[i?h("div",{className:`text-h6 ${rn[l]}`,children:i}):null,r?h("div",{className:`text-m-light ${ln[l]}`,children:r}):null]})]})}));function sn(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const on=(e="primary",t="normal")=>({icon:n,label:i,description:r},l)=>h(an,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(l)),cn=p((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:l,items:a,version:s="primary",isDotted:o=!0,label:c,...d})=>u("div",{className:`w-full ${e}`,children:[u("div",{children:[c?hn(c,s):null,h(jt,{className:"!p-0 max-w-[600px]",bgColorHeadline:s,headlineVersion:t,...d}),u(nn,{buttons:r?.length?h(Jt,{buttons:r,className:"flex flex-col mt-5 gap-2.5"}):null,children:[n?.filter((e=>e.label))?.length?h("div",{className:"mt-3",children:n.map(on(s,i))}):null,a?.length?h(tn,{className:"mt-3 text-m",items:a,version:s,isDotted:o}):null]})]}),dn(l)]})));function dn(e){return e?.src?h(J,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const mn={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},hn=(e,t)=>h("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${mn[t]}`,children:e}),un=p((e=>{const{className:t="",version:n="primary"}=e;return h("section",{className:`font-sans bg-white px-4 py-6 ${ot[n]} ${t}`,children:h(cn,{...e})})})),pn={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},xn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},gn={normal:"min-h-[70px]",small:"min-h-[50px]"},bn=p((({className:e,title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:a="primary"})=>{const s=pn[a];return u("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t?h(I,{headingType:"h3",className:`text-center ${s.title}`,title:t}):null,n?h("p",{className:`text-m-light text-center ${s.description} ${t?"mt-2":""}`,children:n}):null,r?.length?h("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:h("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map(fn(l,a,i))})}):null]})})),fn=(e,t,n)=>(i,r,l)=>{const a=l.length-1===r,s="normal"===e?"ml-[34px]":"ml-6",o=pn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[Nn(e,t)(i,r),a?null:h("div",{className:`min-h-8 h-full w-[2px] ${n?o.iconConnector:""} ${s}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${gn[e]}`,children:[i.label?h("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:i.label}):null,i.description?h("div",{className:`text-s ${o.description} text-left`,children:i.description}):null]})]})},String(r))},Nn=(e,t)=>(n,i)=>{const r=pn[t],l="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${xn[e]} ${r.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:h("span",{className:`font-medium flex self-center ${r.title} ${a}`,children:(s=n?.icon,Boolean(s?.icon||s?.src)?h(J,{image:Y({...n.icon},t),width:l,height:l,asSVG:!0}):h("span",{children:i+1}))})});var s},yn={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,icon:t,...n},i)=>Ut({button:{rounded:e,icon:t,...n},buttonClassName:`mt-3 ${i>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`,index:i})))}):null,Img:({image:e})=>e?.src?h(J,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(tn,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-s text-secondary-text",children:t}):null]})},vn=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(I,{headingType:"h3",className:"font-medium",title:e}):null,t?h(J,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),wn=p((({tile:e,...t})=>u("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[h(vn,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,kn(e,t)]},String(n)))):null]})));function kn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in yn))return null;const n=yn[e.tableCellType];return h(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const $n=p((({tiles:e,...t})=>e?.length?h(le,{...t,children:e.map(((e,n)=>h(wn,{tile:e,...t},String(n))))}):null)),Cn=p((({tiles:e,...t})=>e?.length?h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>h(wn,{tile:e,...t},String(n))))}):null)),Sn=p((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...a})=>{const s=Tn(i),o=_n(r,s);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?h(I,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?h("div",{className:"mb-5 text-center text-m",children:n}):null,h("vertical"===l?Cn:$n,{tiles:o,...a})]})})),Tn=e=>e?.[0]?.data?e[0].data:[],_n=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),In={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},jn=p((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:l="",items:a,isDotted:s=!0})=>{const o=In[n],c="secondary"===n?"secondary":"gray";return u("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===i?Dn(o.icon):null,"big"===i?An(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?h("div",{className:`text-s ${o.description}`,children:t}):null,a?.length?h(tn,{className:"mt-1 text-m",items:a,isDotted:s,version:c}):null]})]})}));function Dn(e){return h("div",{className:"mb-3",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function An(e){return e?.src?h(J,{className:"pb-3 mr-auto",image:e}):null}const Rn={Accordion:A,AccordionItem:X,ComparisonTable:Re,Footer:at,Gallery:ct,Header:Tt,Headline:jt,LinkDocs:Bt,LinkList:ze,MobileAppTile:Ye,ProductBlock:un,StepsBlock:bn,TariffsTable:Sn,TextBlock:jn,Placeholder:zt},On=m();const Mn=p((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Ln()}))),Ln=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),h("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Bn=p((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await On.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await On.like(e))}),[e]),dislike:l((async()=>{n(await On.dislike(e))}),[e])}}(me().pathname);return u("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[h(Mn,{onClick:de(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(Mn,{onClick:de(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),Vn=p((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return u("section",{className:`relative ${g(l)} ${t}`,"data-theme":c,children:[s?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(s?.header,{...d,slotName:"header"})}):null,u("div",{className:"container grid grid-cols-12 gap-1",children:[w(a,d),s?.footer?w(s?.footer,{...d,slotName:"footer"}):null]}),o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Bn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Vn.childrenTypes=[],Vn.slots=()=>["header","footer"];e.Blocks=Rn,e.ContentPage=Vn,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=de,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.6.34",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=ce,e.useRouter=me,Object.defineProperty(e,"__esModule",{value:!0})}));