@redneckz/wildless-cms-uni-blocks 0.3.28 → 0.3.31

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 (504) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +132 -107
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Accordion/Accordion.js +2 -6
  5. package/dist/components/Accordion/Accordion.js.map +1 -1
  6. package/dist/components/Accordion/AccordionContent.d.ts +3 -3
  7. package/dist/components/Accordion/AccordionItem.js +4 -11
  8. package/dist/components/Accordion/AccordionItem.js.map +1 -1
  9. package/dist/components/Accordion/AccordionItem.mobile.js +6 -3
  10. package/dist/components/Accordion/AccordionItem.mobile.js.map +1 -1
  11. package/dist/components/Accordion/AccordionItemInner.js +2 -2
  12. package/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  13. package/dist/components/Accordion/AccordionItemInner.mobile.js +2 -3
  14. package/dist/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  15. package/dist/components/BaseTile/BaseTile.js +2 -2
  16. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  17. package/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
  18. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  19. package/dist/components/BlockContent.d.ts +3 -2
  20. package/dist/components/Blocks.d.ts +1 -0
  21. package/dist/components/Blocks.js +2 -0
  22. package/dist/components/Blocks.js.map +1 -1
  23. package/dist/components/ComparisonTable/ComparisonTable.js +3 -3
  24. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  25. package/dist/components/ContentPage/ContentPage.js +3 -3
  26. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  27. package/dist/components/ContentPage/ContentPageContext.d.ts +2 -1
  28. package/dist/components/ContentPage/normalizeBlock.d.ts +1 -0
  29. package/dist/components/CreditCalculator/CreditCalculator.js +2 -2
  30. package/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
  31. package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  32. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  33. package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  34. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  35. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -2
  36. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  37. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -2
  38. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  39. package/dist/components/Footer/Footer.js +2 -2
  40. package/dist/components/Footer/Footer.js.map +1 -1
  41. package/dist/components/Footer/MediaButton.js +1 -1
  42. package/dist/components/Footer/MediaButton.js.map +1 -1
  43. package/dist/components/Gallery/GalleryInner.js +2 -2
  44. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  45. package/dist/components/Header/Header.js +2 -2
  46. package/dist/components/Header/Header.js.map +1 -1
  47. package/dist/components/Headline/Headline.js +2 -2
  48. package/dist/components/Headline/Headline.js.map +1 -1
  49. package/dist/components/LikeControl/LikeControl.js +2 -2
  50. package/dist/components/LikeControl/LikeControl.js.map +1 -1
  51. package/dist/components/LinkDocs/LinkDocs.js +2 -2
  52. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  53. package/dist/components/LinkList/LinkList.js +2 -2
  54. package/dist/components/LinkList/LinkList.js.map +1 -1
  55. package/dist/components/MobileAppTile/MobileAppTile.js +2 -2
  56. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  57. package/dist/components/Navigation/Navigation.js +2 -2
  58. package/dist/components/Navigation/Navigation.js.map +1 -1
  59. package/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +7 -0
  60. package/dist/components/NavigatorTabs/NavigatorTabItem.js +16 -0
  61. package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -0
  62. package/dist/components/NavigatorTabs/NavigatorTabs.d.ts +5 -0
  63. package/dist/components/NavigatorTabs/NavigatorTabs.js +17 -0
  64. package/dist/components/NavigatorTabs/NavigatorTabs.js.map +1 -0
  65. package/dist/components/NavigatorTabs/NavigatorTabsContent.d.ts +19 -0
  66. package/dist/components/NavigatorTabs/NavigatorTabsContent.js +2 -0
  67. package/dist/components/NavigatorTabs/NavigatorTabsContent.js.map +1 -0
  68. package/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -12
  69. package/dist/components/PictureText/PictureText.js +2 -2
  70. package/dist/components/PictureText/PictureText.js.map +1 -1
  71. package/dist/components/Placeholder/Placeholder.js +2 -2
  72. package/dist/components/Placeholder/Placeholder.js.map +1 -1
  73. package/dist/components/ProductBlock/ProductBlock.js +2 -2
  74. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  75. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  76. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  77. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  78. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  79. package/dist/components/ProductGallery/ProductGallery.js +2 -2
  80. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  81. package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +10 -6
  82. package/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
  83. package/dist/components/ProductTile/ProductTile.js +2 -2
  84. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  85. package/dist/components/PromoTile/PromoTile.js +2 -2
  86. package/dist/components/PromoTile/PromoTile.js.map +1 -1
  87. package/dist/components/Recommendation/Recommendation.js +2 -2
  88. package/dist/components/Recommendation/Recommendation.js.map +1 -1
  89. package/dist/components/StepsBlock/StepsBlock.js +2 -2
  90. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  91. package/dist/components/TariffsTable/TariffsTable.js +2 -2
  92. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  93. package/dist/components/TextBlock/TextBlock.js +2 -2
  94. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  95. package/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
  96. package/dist/components/Tile/Tile.js +2 -2
  97. package/dist/components/Tile/Tile.js.map +1 -1
  98. package/dist/setup-fixture.js +22 -6
  99. package/dist/setup-fixture.js.map +1 -1
  100. package/dist/types.d.ts +2 -0
  101. package/dist/ui-kit/BlocksList/EmbeddableBlocks.mobile.d.ts +8 -0
  102. package/dist/ui-kit/BlocksList/EmbeddableBlocks.mobile.js +17 -0
  103. package/dist/ui-kit/BlocksList/EmbeddableBlocks.mobile.js.map +1 -0
  104. package/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
  105. package/dist/ui-kit/BlocksList/renderBlocksList.js +3 -3
  106. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  107. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  108. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  109. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
  110. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
  111. package/dist/ui-kit/Tabs/Tabs.js +1 -1
  112. package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  113. package/dist/utils/url.d.ts +1 -0
  114. package/dist/utils/url.js +9 -1
  115. package/dist/utils/url.js.map +1 -1
  116. package/lib/common.css +1 -1
  117. package/lib/components/Accordion/Accordion.js +2 -6
  118. package/lib/components/Accordion/Accordion.js.map +1 -1
  119. package/lib/components/Accordion/AccordionContent.d.ts +3 -3
  120. package/lib/components/Accordion/AccordionItem.js +4 -11
  121. package/lib/components/Accordion/AccordionItem.js.map +1 -1
  122. package/lib/components/Accordion/AccordionItem.mobile.js +6 -3
  123. package/lib/components/Accordion/AccordionItem.mobile.js.map +1 -1
  124. package/lib/components/Accordion/AccordionItemInner.js +2 -2
  125. package/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  126. package/lib/components/Accordion/AccordionItemInner.mobile.js +2 -3
  127. package/lib/components/Accordion/AccordionItemInner.mobile.js.map +1 -1
  128. package/lib/components/BaseTile/BaseTile.js +2 -2
  129. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  130. package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
  131. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  132. package/lib/components/BlockContent.d.ts +3 -2
  133. package/lib/components/Blocks.d.ts +1 -0
  134. package/lib/components/Blocks.js +2 -0
  135. package/lib/components/Blocks.js.map +1 -1
  136. package/lib/components/ComparisonTable/ComparisonTable.js +3 -3
  137. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  138. package/lib/components/ContentPage/ContentPage.js +3 -3
  139. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  140. package/lib/components/ContentPage/ContentPageContext.d.ts +2 -1
  141. package/lib/components/ContentPage/normalizeBlock.d.ts +1 -0
  142. package/lib/components/CreditCalculator/CreditCalculator.js +2 -2
  143. package/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
  144. package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  145. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  146. package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  147. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  148. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -2
  149. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  150. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -2
  151. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  152. package/lib/components/Footer/Footer.js +2 -2
  153. package/lib/components/Footer/Footer.js.map +1 -1
  154. package/lib/components/Footer/MediaButton.js +1 -1
  155. package/lib/components/Footer/MediaButton.js.map +1 -1
  156. package/lib/components/Gallery/GalleryInner.js +2 -2
  157. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  158. package/lib/components/Header/Header.js +2 -2
  159. package/lib/components/Header/Header.js.map +1 -1
  160. package/lib/components/Headline/Headline.js +2 -2
  161. package/lib/components/Headline/Headline.js.map +1 -1
  162. package/lib/components/LikeControl/LikeControl.js +2 -2
  163. package/lib/components/LikeControl/LikeControl.js.map +1 -1
  164. package/lib/components/LinkDocs/LinkDocs.js +2 -2
  165. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  166. package/lib/components/LinkList/LinkList.js +2 -2
  167. package/lib/components/LinkList/LinkList.js.map +1 -1
  168. package/lib/components/MobileAppTile/MobileAppTile.js +2 -2
  169. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  170. package/lib/components/Navigation/Navigation.js +2 -2
  171. package/lib/components/Navigation/Navigation.js.map +1 -1
  172. package/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +7 -0
  173. package/lib/components/NavigatorTabs/NavigatorTabItem.js +14 -0
  174. package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -0
  175. package/lib/components/NavigatorTabs/NavigatorTabs.d.ts +5 -0
  176. package/lib/components/NavigatorTabs/NavigatorTabs.fixture.d.ts +4 -0
  177. package/lib/components/NavigatorTabs/NavigatorTabs.js +15 -0
  178. package/lib/components/NavigatorTabs/NavigatorTabs.js.map +1 -0
  179. package/lib/components/NavigatorTabs/NavigatorTabsContent.d.ts +19 -0
  180. package/lib/components/NavigatorTabs/NavigatorTabsContent.js +2 -0
  181. package/lib/components/NavigatorTabs/NavigatorTabsContent.js.map +1 -0
  182. package/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -12
  183. package/lib/components/PictureText/PictureText.js +2 -2
  184. package/lib/components/PictureText/PictureText.js.map +1 -1
  185. package/lib/components/Placeholder/Placeholder.js +2 -2
  186. package/lib/components/Placeholder/Placeholder.js.map +1 -1
  187. package/lib/components/ProductBlock/ProductBlock.js +2 -2
  188. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  189. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  190. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  191. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  192. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  193. package/lib/components/ProductGallery/ProductGallery.js +2 -2
  194. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  195. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +10 -6
  196. package/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
  197. package/lib/components/ProductTile/ProductTile.js +2 -2
  198. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  199. package/lib/components/PromoTile/PromoTile.js +2 -2
  200. package/lib/components/PromoTile/PromoTile.js.map +1 -1
  201. package/lib/components/Recommendation/Recommendation.js +2 -2
  202. package/lib/components/Recommendation/Recommendation.js.map +1 -1
  203. package/lib/components/StepsBlock/StepsBlock.js +2 -2
  204. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  205. package/lib/components/TariffsTable/TariffsTable.js +2 -2
  206. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  207. package/lib/components/TextBlock/TextBlock.js +2 -2
  208. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  209. package/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
  210. package/lib/components/Tile/Tile.js +2 -2
  211. package/lib/components/Tile/Tile.js.map +1 -1
  212. package/lib/setup-fixture.js +22 -6
  213. package/lib/setup-fixture.js.map +1 -1
  214. package/lib/types.d.ts +2 -0
  215. package/lib/ui-kit/BlocksList/EmbeddableBlocks.mobile.d.ts +8 -0
  216. package/lib/ui-kit/BlocksList/EmbeddableBlocks.mobile.js +15 -0
  217. package/lib/ui-kit/BlocksList/EmbeddableBlocks.mobile.js.map +1 -0
  218. package/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
  219. package/lib/ui-kit/BlocksList/renderBlocksList.js +3 -3
  220. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  221. package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +3 -0
  222. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  223. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  224. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +4 -1
  225. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
  226. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
  227. package/lib/ui-kit/Tabs/Tabs.js +1 -1
  228. package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  229. package/lib/utils/url.d.ts +1 -0
  230. package/lib/utils/url.js +7 -0
  231. package/lib/utils/url.js.map +1 -1
  232. package/mobile/bundle/bundle.umd.js +104 -204
  233. package/mobile/bundle/bundle.umd.min.js +1 -1
  234. package/mobile/dist/components/Accordion/AccordionContent.d.ts +3 -3
  235. package/mobile/dist/components/Accordion/AccordionItem.js +6 -3
  236. package/mobile/dist/components/Accordion/AccordionItem.js.map +1 -1
  237. package/mobile/dist/components/Accordion/AccordionItemInner.js +2 -3
  238. package/mobile/dist/components/Accordion/AccordionItemInner.js.map +1 -1
  239. package/mobile/dist/components/BaseTile/BaseTile.js +2 -2
  240. package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
  241. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +2 -2
  242. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  243. package/mobile/dist/components/BlockContent.d.ts +3 -2
  244. package/mobile/dist/components/ContentPage/ContentPage.js +3 -3
  245. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  246. package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +2 -1
  247. package/mobile/dist/components/CreditCalculator/CreditCalculator.js +2 -2
  248. package/mobile/dist/components/CreditCalculator/CreditCalculator.js.map +1 -1
  249. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  250. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  251. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  252. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  253. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -2
  254. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  255. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -2
  256. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  257. package/mobile/dist/components/Footer/MediaButton.js +1 -1
  258. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  259. package/mobile/dist/components/Gallery/GalleryInner.js +2 -2
  260. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  261. package/mobile/dist/components/LikeControl/LikeControl.js +2 -2
  262. package/mobile/dist/components/LikeControl/LikeControl.js.map +1 -1
  263. package/mobile/dist/components/LinkList/LinkList.js +2 -2
  264. package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
  265. package/mobile/dist/components/Navigation/Navigation.js +2 -2
  266. package/mobile/dist/components/Navigation/Navigation.js.map +1 -1
  267. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.d.ts +7 -0
  268. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +16 -0
  269. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -0
  270. package/mobile/dist/components/NavigatorTabs/NavigatorTabs.d.ts +5 -0
  271. package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js +17 -0
  272. package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js.map +1 -0
  273. package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.d.ts +19 -0
  274. package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.js +2 -0
  275. package/mobile/dist/components/NavigatorTabs/NavigatorTabsContent.js.map +1 -0
  276. package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +3 -12
  277. package/mobile/dist/components/PictureText/PictureText.js +2 -2
  278. package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
  279. package/mobile/dist/components/Placeholder/Placeholder.js +2 -2
  280. package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
  281. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  282. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  283. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js +10 -6
  284. package/mobile/dist/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
  285. package/mobile/dist/components/ProductTile/ProductTile.js +2 -2
  286. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  287. package/mobile/dist/components/PromoTile/PromoTile.js +2 -2
  288. package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
  289. package/mobile/dist/components/Recommendation/Recommendation.js +2 -2
  290. package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
  291. package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
  292. package/mobile/dist/components/Tile/Tile.js +2 -2
  293. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  294. package/mobile/dist/setup-fixture.js +22 -6
  295. package/mobile/dist/setup-fixture.js.map +1 -1
  296. package/mobile/dist/types.d.ts +2 -0
  297. package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.d.ts +0 -4
  298. package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.js +0 -8
  299. package/mobile/dist/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -1
  300. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
  301. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +3 -3
  302. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  303. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  304. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  305. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
  306. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
  307. package/mobile/dist/ui-kit/Tabs/Tabs.js +1 -1
  308. package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  309. package/mobile/dist/utils/url.d.ts +1 -0
  310. package/mobile/dist/utils/url.js +9 -1
  311. package/mobile/dist/utils/url.js.map +1 -1
  312. package/mobile/lib/components/Accordion/AccordionContent.d.ts +3 -3
  313. package/mobile/lib/components/Accordion/AccordionItem.js +6 -3
  314. package/mobile/lib/components/Accordion/AccordionItem.js.map +1 -1
  315. package/mobile/lib/components/Accordion/AccordionItemInner.js +2 -3
  316. package/mobile/lib/components/Accordion/AccordionItemInner.js.map +1 -1
  317. package/mobile/lib/components/BaseTile/BaseTile.js +2 -2
  318. package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
  319. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +2 -2
  320. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  321. package/mobile/lib/components/BlockContent.d.ts +3 -2
  322. package/mobile/lib/components/ContentPage/ContentPage.js +3 -3
  323. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  324. package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +2 -1
  325. package/mobile/lib/components/CreditCalculator/CreditCalculator.js +2 -2
  326. package/mobile/lib/components/CreditCalculator/CreditCalculator.js.map +1 -1
  327. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  328. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  329. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  330. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  331. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -2
  332. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  333. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -2
  334. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  335. package/mobile/lib/components/Footer/MediaButton.js +1 -1
  336. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  337. package/mobile/lib/components/Gallery/GalleryInner.js +2 -2
  338. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  339. package/mobile/lib/components/LikeControl/LikeControl.js +2 -2
  340. package/mobile/lib/components/LikeControl/LikeControl.js.map +1 -1
  341. package/mobile/lib/components/LinkList/LinkList.js +2 -2
  342. package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
  343. package/mobile/lib/components/Navigation/Navigation.js +2 -2
  344. package/mobile/lib/components/Navigation/Navigation.js.map +1 -1
  345. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.d.ts +7 -0
  346. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +14 -0
  347. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -0
  348. package/mobile/lib/components/NavigatorTabs/NavigatorTabs.d.ts +5 -0
  349. package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js +15 -0
  350. package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js.map +1 -0
  351. package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.d.ts +19 -0
  352. package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.js +2 -0
  353. package/mobile/lib/components/NavigatorTabs/NavigatorTabsContent.js.map +1 -0
  354. package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +3 -12
  355. package/mobile/lib/components/PictureText/PictureText.js +2 -2
  356. package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
  357. package/mobile/lib/components/Placeholder/Placeholder.js +2 -2
  358. package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
  359. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  360. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  361. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js +10 -6
  362. package/mobile/lib/components/ProductGalleryGreen/ProductGalleryGreen.js.map +1 -1
  363. package/mobile/lib/components/ProductTile/ProductTile.js +2 -2
  364. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  365. package/mobile/lib/components/PromoTile/PromoTile.js +2 -2
  366. package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
  367. package/mobile/lib/components/Recommendation/Recommendation.js +2 -2
  368. package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
  369. package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
  370. package/mobile/lib/components/Tile/Tile.js +2 -2
  371. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  372. package/mobile/lib/setup-fixture.js +22 -6
  373. package/mobile/lib/setup-fixture.js.map +1 -1
  374. package/mobile/lib/types.d.ts +2 -0
  375. package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.d.ts +0 -4
  376. package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.js +0 -8
  377. package/mobile/lib/ui-kit/BlocksList/EmbeddableBlocks.js.map +1 -1
  378. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.d.ts +2 -4
  379. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +3 -3
  380. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  381. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  382. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  383. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +7 -1
  384. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +1 -1
  385. package/mobile/lib/ui-kit/Tabs/Tabs.js +1 -1
  386. package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  387. package/mobile/lib/utils/url.d.ts +1 -0
  388. package/mobile/lib/utils/url.js +7 -0
  389. package/mobile/lib/utils/url.js.map +1 -1
  390. package/mobile/src/common.css +4 -0
  391. package/mobile/src/components/Accordion/Accordion.example.json +3 -0
  392. package/mobile/src/components/Accordion/AccordionContent.ts +4 -5
  393. package/mobile/src/components/Accordion/AccordionItem.tsx +32 -27
  394. package/mobile/src/components/Accordion/AccordionItemInner.tsx +8 -11
  395. package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
  396. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +19 -16
  397. package/mobile/src/components/BlockContent.ts +3 -1
  398. package/mobile/src/components/ContentPage/ContentPage.page.json +30 -0
  399. package/mobile/src/components/ContentPage/ContentPage.tsx +3 -3
  400. package/mobile/src/components/ContentPage/ContentPageContext.tsx +2 -1
  401. package/mobile/src/components/CreditCalculator/CreditCalculator.tsx +2 -2
  402. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +9 -5
  403. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +2 -2
  404. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +4 -4
  405. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +11 -5
  406. package/mobile/src/components/Footer/MediaButton.tsx +1 -1
  407. package/mobile/src/components/Gallery/GalleryInner.tsx +2 -1
  408. package/mobile/src/components/Header/Header.example.json +3 -0
  409. package/mobile/src/components/LikeControl/LikeControl.tsx +3 -2
  410. package/mobile/src/components/LinkList/LinkList.tsx +2 -2
  411. package/mobile/src/components/Navigation/Navigation.tsx +31 -28
  412. package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +29 -0
  413. package/mobile/src/components/NavigatorTabs/NavigatorTabs.example.json +7 -0
  414. package/mobile/src/components/NavigatorTabs/NavigatorTabs.tsx +36 -0
  415. package/mobile/src/components/NavigatorTabs/NavigatorTabsContent.ts +20 -0
  416. package/mobile/src/components/OtherProducts/OtherProductsContent.ts +3 -12
  417. package/mobile/src/components/PictureText/PictureText.tsx +18 -13
  418. package/mobile/src/components/Placeholder/Placeholder.tsx +2 -1
  419. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +3 -1
  420. package/mobile/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +11 -6
  421. package/mobile/src/components/ProductTile/ProductTile.tsx +2 -0
  422. package/mobile/src/components/PromoTile/PromoTile.tsx +2 -0
  423. package/mobile/src/components/Recommendation/Recommendation.tsx +2 -1
  424. package/mobile/src/components/TextBlock/TextBlockContent.ts +1 -1
  425. package/mobile/src/components/Tile/Tile.tsx +2 -0
  426. package/mobile/src/services/sitemap/isTopItemActive.spec.ts +1 -0
  427. package/mobile/src/setup-fixture.ts +23 -8
  428. package/mobile/src/types.ts +2 -0
  429. package/mobile/src/ui-kit/BlocksList/EmbeddableBlocks.tsx +0 -8
  430. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +4 -12
  431. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  432. package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +18 -0
  433. package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +10 -2
  434. package/mobile/src/ui-kit/Tabs/Tabs.tsx +1 -1
  435. package/mobile/src/utils/url.ts +9 -0
  436. package/package.json +1 -1
  437. package/src/common.css +4 -0
  438. package/src/components/Accordion/Accordion.example.json +3 -0
  439. package/src/components/Accordion/Accordion.fixture.mobile.tsx +1 -0
  440. package/src/components/Accordion/Accordion.fixture.tsx +2 -0
  441. package/src/components/Accordion/Accordion.tsx +4 -14
  442. package/src/components/Accordion/AccordionContent.ts +4 -5
  443. package/src/components/Accordion/AccordionItem.mobile.tsx +32 -27
  444. package/src/components/Accordion/AccordionItem.tsx +23 -49
  445. package/src/components/Accordion/AccordionItemInner.mobile.tsx +8 -11
  446. package/src/components/Accordion/AccordionItemInner.tsx +8 -10
  447. package/src/components/BaseTile/BaseTile.tsx +2 -2
  448. package/src/components/BenefitsBlock/BenefitsBlock.tsx +19 -16
  449. package/src/components/BlockContent.ts +3 -1
  450. package/src/components/Blocks.ts +2 -0
  451. package/src/components/ComparisonTable/ComparisonTable.tsx +4 -2
  452. package/src/components/ContentPage/ContentPage.page.json +30 -0
  453. package/src/components/ContentPage/ContentPage.tsx +3 -3
  454. package/src/components/ContentPage/ContentPageContext.tsx +2 -1
  455. package/src/components/CreditCalculator/CreditCalculator.tsx +2 -2
  456. package/src/components/ExchangeRateTile/CurrencyTable.tsx +9 -5
  457. package/src/components/ExchangeRateTile/CurrentLocation.tsx +2 -2
  458. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +4 -4
  459. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
  460. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +11 -5
  461. package/src/components/Footer/Footer.tsx +11 -2
  462. package/src/components/Footer/MediaButton.tsx +1 -1
  463. package/src/components/Gallery/GalleryInner.tsx +2 -1
  464. package/src/components/Header/Header.example.json +3 -0
  465. package/src/components/Header/Header.tsx +9 -2
  466. package/src/components/Headline/Headline.tsx +9 -2
  467. package/src/components/LikeControl/LikeControl.tsx +3 -2
  468. package/src/components/LinkDocs/LinkDocs.tsx +2 -1
  469. package/src/components/LinkList/LinkList.tsx +2 -2
  470. package/src/components/MobileAppTile/MobileAppTile.tsx +9 -1
  471. package/src/components/Navigation/Navigation.tsx +31 -28
  472. package/src/components/NavigatorTabs/NavigatorTabItem.tsx +29 -0
  473. package/src/components/NavigatorTabs/NavigatorTabs.example.json +7 -0
  474. package/src/components/NavigatorTabs/NavigatorTabs.fixture.tsx +11 -0
  475. package/src/components/NavigatorTabs/NavigatorTabs.tsx +36 -0
  476. package/src/components/NavigatorTabs/NavigatorTabsContent.ts +20 -0
  477. package/src/components/OtherProducts/OtherProducts.fixture.tsx +61 -6
  478. package/src/components/OtherProducts/OtherProductsContent.ts +3 -12
  479. package/src/components/PictureText/PictureText.tsx +18 -13
  480. package/src/components/Placeholder/Placeholder.tsx +2 -1
  481. package/src/components/ProductBlock/ProductBlock.tsx +10 -1
  482. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +3 -1
  483. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  484. package/src/components/ProductGallery/ProductGallery.tsx +5 -2
  485. package/src/components/ProductGalleryGreen/ProductGalleryGreen.tsx +11 -6
  486. package/src/components/ProductTile/ProductTile.tsx +2 -0
  487. package/src/components/PromoTile/PromoTile.tsx +2 -0
  488. package/src/components/Recommendation/Recommendation.tsx +2 -1
  489. package/src/components/StepsBlock/StepsBlock.tsx +25 -22
  490. package/src/components/TariffsTable/TariffsTable.tsx +2 -1
  491. package/src/components/TextBlock/TextBlock.tsx +10 -1
  492. package/src/components/TextBlock/TextBlockContent.ts +1 -1
  493. package/src/components/Tile/Tile.tsx +2 -0
  494. package/src/services/sitemap/isTopItemActive.spec.ts +1 -0
  495. package/src/setup-fixture.ts +23 -8
  496. package/src/types.ts +2 -0
  497. package/src/ui-kit/BlocksList/EmbeddableBlocks.mobile.tsx +15 -0
  498. package/src/ui-kit/BlocksList/renderBlocksList.tsx +4 -12
  499. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +24 -6
  500. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  501. package/src/ui-kit/SwipeListControl/utils/getScrollPoints.spec.ts +18 -0
  502. package/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +10 -2
  503. package/src/ui-kit/Tabs/Tabs.tsx +1 -1
  504. package/src/utils/url.ts +9 -0
@@ -477,7 +477,7 @@
477
477
  }
478
478
  const contentContainer = e.currentTarget.parentElement
479
479
  ?.previousElementSibling;
480
- contentContainer?.children[idx]?.scrollIntoView({ behavior: 'smooth' });
480
+ contentContainer?.children[idx]?.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
481
481
  };
482
482
  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;
483
483
  });
@@ -535,8 +535,14 @@
535
535
  Returns array of tuples consisting of [start, end] boundary scrollLeft values.
536
536
  */
537
537
  const getScrollPoints = ({ gap, padding, clientWidth, scrollWidth, childElementCount, itemWidth, }) => {
538
- const scrollItemWidth = itemWidth + gap;
539
538
  const scrollableDistance = scrollWidth - clientWidth;
539
+ if (childElementCount === 2) {
540
+ return [
541
+ [0, scrollableDistance],
542
+ [scrollableDistance, scrollWidth],
543
+ ];
544
+ }
545
+ const scrollItemWidth = itemWidth + gap;
540
546
  const edgeScrollDistance = clientWidth - gap - padding;
541
547
  const lastScrollableIdx = childElementCount - 2;
542
548
  const scrollPoints = new Array(childElementCount)
@@ -621,13 +627,6 @@
621
627
  return (jsxs("section", { className: `font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${className}`, children: [title ? (jsx(Heading, { headingType: "h2", className: `text-center ${subtitle ? 'mb-2' : 'mb-5'}`, title: title })) : null, subtitle ? (jsx("h3", { className: "mt-0 font-normal mb-5 text-center text-m-md", children: subtitle })) : null, orientation === 'vertical' ? (jsx(LinkDocsVerticalList, { hasBorder: hasBorder, documents: documents, icon: icon })) : (jsx(LinkDocsHorizontalList, { context: context, hasBorder: hasBorder, documents: documents, icon: icon }))] }));
622
628
  });
623
629
 
624
- const PictureText = JSX(({ className = '', title, image, benefits }) => {
625
- return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-14 ${className}`, children: [jsx(Heading, { headingType: "h2", className: "text-center", title: title }), jsxs("div", { className: 'flex justify-center mt-9', children: [image?.src && jsx(Img, { className: "mr-6", image: image }), benefits?.length ? (jsx("div", { className: "flex flex-col", children: benefits.map(renderBenefit$1) })) : null] })] }));
626
- });
627
- function renderBenefit$1(benefit, i) {
628
- return (jsxs("div", { className: "flex flex-row mb-8", children: [benefit.icon && (jsx(Icon, { className: "w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]", name: benefit.icon, width: "48", height: "48", asSVG: true })), jsxs("div", { className: "flex gap-1 flex-col h-full ml-5 max-w-[490px]", children: [benefit.label && (jsx("div", { className: "font-medium text-primary-text text-xl m-0", children: benefit.label })), benefit.description && (jsx("div", { className: "font-normal text-sm text-secondary-text", children: benefit.description }))] })] }, String(i)));
629
- }
630
-
631
630
  const isURL = (href) => href?.includes('//');
632
631
  const withoutQuery = (href) => (href || '').replace(/\/?\?.*/, '');
633
632
  const getOrigin = (href) => {
@@ -640,12 +639,20 @@
640
639
  const endOfOrigin = url.indexOf('/', endOfProto + protoSeparator.length);
641
640
  return endOfOrigin !== -1 ? url.substring(0, endOfOrigin) : url;
642
641
  };
642
+ const getHash = (href) => {
643
+ if (!href || !isURL(href)) {
644
+ return undefined;
645
+ }
646
+ const hashIndex = href.indexOf('#');
647
+ return hashIndex !== -1 ? href.substring(hashIndex, href.length) : undefined;
648
+ };
643
649
 
644
650
  var url = /*#__PURE__*/Object.freeze({
645
651
  __proto__: null,
646
652
  isURL: isURL,
647
653
  withoutQuery: withoutQuery,
648
- getOrigin: getOrigin
654
+ getOrigin: getOrigin,
655
+ getHash: getHash
649
656
  });
650
657
 
651
658
  const MOBILE_URL_PATH = '/mobile';
@@ -725,9 +732,9 @@
725
732
  const ButtonSection = JSX(({ context, className = '', buttons }) => {
726
733
  const { handlerDecorator } = context;
727
734
  const router = context.useRouter();
728
- return buttons?.length ? (jsx("div", { className: `${className}`, children: buttons.map((button, index) => renderButton$3(useLink({ router, handlerDecorator }, button), index)) })) : null;
735
+ return buttons?.length ? (jsx("div", { className: `${className}`, children: buttons.map((button, index) => renderButton$2(useLink({ router, handlerDecorator }, button), index)) })) : null;
729
736
  });
730
- function renderButton$3({ icon, ...button }, i) {
737
+ function renderButton$2({ icon, ...button }, i) {
731
738
  if (!button?.text)
732
739
  return;
733
740
  return icon ? (jsx(Button, { appendLeft: jsx(Icon, { name: icon, width: "24", height: "24", asSVG: true }), ...button }, String(i))) : (jsx(Button, { ...button }, String(i)));
@@ -764,8 +771,8 @@
764
771
  : null }));
765
772
  });
766
773
 
767
- const BaseTile = JSX(({ className = '', title, children, buttons, image }) => {
768
- return (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { children: children }), buttons ? jsx("div", { children: buttons }) : null] }), image] })] }));
774
+ const BaseTile = JSX(({ className = '', title, children, buttons, image, anchor = null }) => {
775
+ return (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, id: anchor, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { children: children }), buttons ? jsx("div", { children: buttons }) : null] }), image] })] }));
769
776
  });
770
777
 
771
778
  const benefitTitleStyleMap = {
@@ -790,7 +797,7 @@
790
797
  primary: 'text-primary-main border-secondary-hover',
791
798
  secondary: 'text-white/80',
792
799
  };
793
- const renderLabel = (label, version) => (jsx("div", { className: `m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 w-fit ${labelStyleMap[version]}`, children: label }));
800
+ const renderLabel = (label, version) => (jsx("div", { className: `m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${labelStyleMap[version]}`, children: label }));
794
801
 
795
802
  const productBlockStyleMap = {
796
803
  primary: 'bg-white text-primary-text',
@@ -832,82 +839,6 @@
832
839
  return image?.src ? jsx(Img, { className: "pb-3 mr-auto", image: image }) : null;
833
840
  }
834
841
 
835
- const getColSpan = (className) => {
836
- const colSpanPrefix = 'col-span-';
837
- const colSpanStr = className.split(/\s+/).find((_) => _.startsWith(colSpanPrefix));
838
- return colSpanStr ? parseInt(colSpanStr.substring(colSpanPrefix.length), 10) : 12;
839
- };
840
-
841
- function getTileHeadingType(className = '') {
842
- const colSpan = getColSpan(className);
843
- if (colSpan <= 4) {
844
- return 'h4';
845
- }
846
- else if (colSpan <= 8) {
847
- return 'h3';
848
- }
849
- else {
850
- return 'h2';
851
- }
852
- }
853
-
854
- function getTileMinHeight(className = '') {
855
- const colSpan = getColSpan(className);
856
- if (colSpan <= 6) {
857
- return 'min-h-[300px]';
858
- }
859
- else if (colSpan <= 8) {
860
- return 'min-h-[320px]';
861
- }
862
- else {
863
- return 'min-h-[360px]';
864
- }
865
- }
866
-
867
- function getTileRightPadding(className = '') {
868
- const colSpan = getColSpan(className);
869
- if (colSpan <= 6) {
870
- return 'pr-9';
871
- }
872
- else if (colSpan <= 8) {
873
- return 'pr-[4.75rem]';
874
- }
875
- else {
876
- return 'pr-[9.4rem]';
877
- }
878
- }
879
-
880
- const tileStyleMap = {
881
- primary: 'bg-white text-primary-text',
882
- secondary: 'bg-primary-main text-white',
883
- };
884
- const Tile = JSX((props) => {
885
- const { context, title, description, items, children, buttons, image, className = '', version = 'primary', role, } = props;
886
- return (jsx("section", { className: `overflow-hidden font-sans p-9 box-border ${className} ${tileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, role: role, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px] ${title ? 'mb-3' : ''}
887
- ${version === 'primary' ? 'text-primary-text' : ''}` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && jsx(Description, { className: "mt-4 max-w-[600px]", description: description }), children, renderList$1(items, version)] }) }));
888
- });
889
- function renderList$1(items, version) {
890
- return items?.length ? (jsx(List, { items: items, itemClassName: "mt-2.5 first:mt-0", version: version })) : null;
891
- }
892
-
893
- const productTileStyleMap = {
894
- primary: 'bg-white text-primary-text',
895
- secondary: 'bg-primary-main text-white',
896
- };
897
- const ProductTile = JSX(({ context, className = '', title, description, benefits, buttons, image, version = 'primary', }) => {
898
- return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${productTileStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, children: jsxs(BaseTile, { context: context, title: title && (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px]` })), buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex mt-9 gap-3" })) : null, image: image?.src && jsx(Img, { className: "mt-auto ml-7", image: image }), children: [description && jsx(Description, { className: "mt-4 max-w-[600px]", description: description }), jsxs("div", { className: "flex mt-5 mb-1", children: [benefits?.length ? (jsx("div", { className: "mr-8", children: benefits.map(renderBenefitLabel) })) : null, benefits?.length ? (jsx("div", { className: "pt-1", children: benefits.map((_, i) => renderBenefitDescription(_, i, version)) })) : null] })] }) }));
899
- });
900
- function renderBenefitLabel(benefit, i) {
901
- return (jsx("div", { className: `text-xl font-medium ${i ? 'mt-2.5' : ''}`, children: benefit.label }, String(i)));
902
- }
903
- function renderBenefitDescription(benefit, i, version = 'primary') {
904
- const labelStyleMap = {
905
- primary: 'text-secondary-text',
906
- secondary: 'text-white',
907
- };
908
- return (jsx("div", { className: `text-sm ${i ? 'mt-4' : ''} ${labelStyleMap[version]}`, children: benefit.description }, String(i)));
909
- }
910
-
911
842
  const blockStyle = {
912
843
  primary: 'bg-white',
913
844
  secondary: 'bg-primary-main text-white',
@@ -916,102 +847,24 @@
916
847
  return (jsxs("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [jsxs("div", { className: "flex flex-col items-center mb-5", children: [title ? (jsx(Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2' : 'mb-5'}`, title: title })) : null, description ? (jsx("div", { className: "font-normal text-m-md max-w-[600px] text-center mb-5", children: description })) : null] }), renderCardsLayout(orientation, cards, context)] }));
917
848
  });
918
849
  function renderCardsLayout(orientation, cards, context) {
919
- return orientation === 'horizontal' ? (jsx(SwipeListControl, { context: context, children: cards?.map(renderCard$1) })) : (jsx("div", { className: "grid gap-[14px]", children: cards?.map(renderCard$1) }));
850
+ return orientation === 'horizontal' ? (jsx(SwipeListControl, { context: context, children: cards?.map(renderCard) })) : (jsx("div", { className: "grid gap-[14px]", children: cards?.map(renderCard) }));
920
851
  }
921
- function renderCard$1(card, key) {
852
+ function renderCard(card, key) {
922
853
  return (jsxs("div", { className: `h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
923
- ${blockStyle[card.version ?? 'primary']}`, children: [jsxs("div", { children: [card.image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-3.5", image: card.image }) })) : null, card.title ? jsx("h3", { className: `font-medium text-m-title-xs m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems$1(card.items, card.version) : null] }), card?.button?.text ? renderButton$2(card.button) : null] }, key));
854
+ ${blockStyle[card.version ?? 'primary']}`, children: [jsxs("div", { children: [card.image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-3.5", image: card.image }) })) : null, card.title ? jsx("h3", { className: `font-medium text-m-title-xs m-0`, children: card.title }) : null, card.description ? renderDescription(card) : null, card.items?.length ? renderItems(card.items, card.version) : null] }), card?.button?.text ? renderButton$1(card.button) : null] }, key));
924
855
  }
925
- function renderButton$2(button) {
856
+ function renderButton$1(button) {
926
857
  return (jsx(Button, { className: "mt-3", appendLeft: button?.icon && jsx(Icon, { name: button?.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
927
858
  }
928
859
  function renderDescription(card) {
929
860
  return (jsx("div", { className: `text-secondary-text mt-1 text-m-sm ${card.version === 'secondary' ? 'text-white opacity-80' : ''}`, children: card.description }));
930
861
  }
931
- function renderItems$1(items, version = 'primary') {
932
- return (jsx("section", { className: "mt-3", children: items.map((item, i) => (jsxs("div", { children: [jsx("span", { className: "text-m-md font-medium", children: item.title }), jsx("span", { className: `text-m-sm pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
933
- }
934
-
935
- const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
936
- return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill, ...options }, i) => (jsx("path", { d: d, fill: fill || 'currentColor', ...commonOptions, ...options }, i))) }));
937
- });
938
-
939
- const ARROW_PATHS = [
940
- {
941
- d: 'm9 12 4-4-4-4',
942
- stroke: 'currentColor',
943
- strokeWidth: '2',
944
- strokeLinecap: 'round',
945
- fill: 'none',
946
- },
947
- {
948
- d: 'M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z',
949
- },
950
- ];
951
- const ArrowButton = JSX(({ className, disabled, ...rest }) => (jsx(Button, { rounded: true, className: `shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${disabled
952
- ? 'bg-secondary-light text-secondary-text'
953
- : 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(SVG, { paths: ARROW_PATHS, viewBox: "0 0 16 16", fill: "none", width: "16", height: "16" }) })));
954
-
955
- const cardVersionMap = {
956
- primary: 'bg-white text-secondary-text',
957
- secondary: 'bg-primary-main text-white',
958
- };
959
- const galleryLengthForScrollMap = {
960
- normal: 3,
961
- mini: 4,
962
- };
963
- const cardStyleMap = {
964
- normal: 'min-w-[364px] w-[364px]',
965
- mini: 'min-w-[260px] w-[260px]',
966
- };
967
- const cardWidthMap = {
968
- normal: 380,
969
- mini: 276,
970
- };
971
-
972
- const GalleryCardInner = JSX(({ title, description, image, items, button, version }) => {
973
- const titleStyleClasses = getTitleStyle(version, description, items);
974
- return (jsxs("div", { className: "h-full flex flex-col justify-between", children: [jsxs("div", { children: [image?.src ? (jsx("div", { className: "flex justify-center", children: jsx(Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? (jsx("div", { className: `font-normal text-sm ${title ? 'mt-2' : ''}`, children: description })) : null, items?.length ? renderItems(items, version) : null] }), button?.text ? renderButton$1(button) : null] }));
975
- });
976
- function renderButton$1(button) {
977
- return (jsx(Button, { className: "mt-6 w-full", appendLeft: button.icon && jsx(Icon, { name: button.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
978
- }
979
- function renderCardTitle(title, className) {
980
- return jsx("div", { className: `font-medium text-xl m-0 ${className}`, children: title });
981
- }
982
862
  function renderItems(items, version = 'primary') {
983
- return (jsx(List, { className: `max-w-[308px] mt-2 text-sm ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "mt-1 first:mt-0", items: items.filter((item) => item?.text).map((item) => item.text), version: version }));
984
- }
985
- function getTitleStyle(version, description, items) {
986
- return `font-medium text-xl m-0
987
- ${version !== 'secondary' ? 'text-primary-text' : ''}
988
- ${!description && !items?.length ? 'text-center' : ''}
989
- `;
990
- }
991
-
992
- const GalleryContainer = JSX(({ context, title, description, cards = [], version = 'normal', activeCardIndex }) => {
993
- return (jsxs("div", { children: [jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent" }), jsxs("div", { className: "flex flex-col items-center mb-8", children: [title ? jsx(Heading, { headingType: "h2", className: "text-center", title: title }) : null, description ? (jsx("div", { className: "font-normal text-base max-w-[600px] mt-2.5", children: description })) : null] }), jsx("div", { className: `flex ${cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeCardIndex * cardWidthMap[version]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, version, context }, i)) })] }));
994
- });
995
- function renderCard({ card, version }, i) {
996
- return (jsx("section", { className: `box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between
997
- items-stretch ${cardStyleMap[version]} ${cardVersionMap[card.version ?? 'primary']} w-full col-span-4`, role: "listitem", children: jsx(GalleryCardInner, { ...card }) }, String(i)));
863
+ return (jsx("section", { className: "mt-3", children: items.map((item, i) => (jsxs("div", { children: [jsx("span", { className: "text-m-md font-medium", children: item.title }), jsx("span", { className: `text-m-sm pl-2 ${version === 'primary' ? 'text-secondary-text' : ''}`, children: item.text })] }, String(i)))) }));
998
864
  }
999
865
 
1000
- const GalleryInner = JSX(({ context, cards = [], className = '', version = 'normal', ...rest }) => {
1001
- const [activeCardIndex, setActiveCardIndex] = context.useState(0);
1002
- const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
1003
- const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
1004
- const isGalleryScrollAvailable = cards?.length > galleryLengthForScrollMap[version];
1005
- const showNextButton = isGalleryScrollAvailable &&
1006
- cards?.length - activeCardIndex > galleryLengthForScrollMap[version];
1007
- const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
1008
- return (jsxs("section", { className: `relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${className}`, children: [jsx(GalleryContainer, { context: context, cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), showPrevButton && (jsx(ArrowButton, { className: "absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]", onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left" })), showNextButton && (jsx(ArrowButton, { className: "absolute top-1/2 right-8 z-10 mt-[25px]", onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" })), jsx("div", { className: "absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white" }), jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white" })] }));
1009
- });
1010
-
1011
- const MiniGallery = JSX((props) => (jsx(GalleryInner, { ...props, version: "mini" })));
1012
-
1013
- const LinkList = JSX(({ className = '', documents }) => {
1014
- return (jsx("section", { className: `font-sans bg-white mt-[10px] ${className}`, children: jsx("ul", { className: "flex flex-col text-sm text-secondary-text p-0", children: documents?.length ? renderLinkListItem(documents) : null }) }));
866
+ const LinkList = JSX(({ className = '', documents, anchor = null }) => {
867
+ return (jsx("section", { className: `font-sans bg-white mt-[10px] ${className}`, id: anchor, children: jsx("ul", { className: "flex flex-col text-sm text-secondary-text p-0", children: documents?.length ? renderLinkListItem(documents) : null }) }));
1015
868
  });
1016
869
  const renderLinkListItem = (documents) => {
1017
870
  return documents.map((doc, i) => {
@@ -1024,30 +877,25 @@
1024
877
  Headline,
1025
878
  LinkDocs,
1026
879
  TextBlock,
1027
- PictureText,
1028
880
  ProductBlock,
1029
- Tile,
1030
- ProductTile,
1031
881
  Gallery,
1032
- MiniGallery,
1033
882
  LinkList,
1034
883
  };
1035
884
 
1036
- const renderBlocksList = ({ blocks, context, className, columns, version, }) => blocks?.length ? blocks.map(renderBlock$1({ context, className, columns, version })) : null;
1037
- const renderBlock$1 = ({ context, columns, className, version }) => (block, i) => {
885
+ const renderBlocksList = ({ blocks, context, className, columns }) => blocks?.length ? blocks.map(renderBlock$1({ context, className, columns })) : null;
886
+ const renderBlock$1 = ({ context, columns, className }) => (block, i) => {
1038
887
  const type = block?.blockListType;
1039
888
  if (!type || !(type in EmbeddableBlocks)) {
1040
889
  return null;
1041
890
  }
1042
891
  const columnsCountClass = columns === 2 ? 'w-1/2' : '';
1043
892
  const EmbeddedBlock = EmbeddableBlocks[type];
1044
- return (jsx("div", { className: `${className} ${columnsCountClass}`, children: jsx(EmbeddedBlock, { context: context, ...block, blockVersion: version, className: "!p-0" }) }, `block_${i}`));
893
+ return (jsx("div", { className: `${className} ${columnsCountClass}`, children: jsx(EmbeddedBlock, { context: context, ...block, className: "!p-0" }) }, `block_${i}`));
1045
894
  };
1046
895
 
1047
- const AccordionItemInner = JSX(({ blocks, context, version = 'primary' }) => {
896
+ const AccordionItemInner = JSX(({ blocks, context }) => {
1048
897
  const className = 'mb-5 last:mb-0 first:mt-2';
1049
- const columns = 1;
1050
- return (jsx("div", { className: "transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0", children: renderBlocksList({ context, className, columns, blocks, version }) }));
898
+ return (jsx("div", { className: "transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0", children: renderBlocksList({ context, className, blocks }) }));
1051
899
  });
1052
900
 
1053
901
  const useActiveHandler = ({ context, blocks, initialState = false }) => {
@@ -1068,15 +916,18 @@
1068
916
  return { isActive, hasContent, icon, handleToggle };
1069
917
  };
1070
918
 
1071
- const AccordionItem = JSX(({ label, blocks, bordered, context }) => {
919
+ const AccordionItem = JSX(({ label, labelIcon, blocks, bordered, context }) => {
1072
920
  const { hasContent, icon, handleToggle } = useActiveHandler({
1073
921
  context,
1074
922
  blocks,
1075
923
  });
1076
- return (jsxs("li", { className: `${bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0'} border-solid border-main-divider`, children: [jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
924
+ return (jsxs("li", { className: `${borderedLiClass(bordered)} border-solid border-main-divider`, children: [jsxs("button", { className: `border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text
1077
925
  ${bordered ? '' : 'py-[14px] px-0'}
1078
- ${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [jsx("span", { className: `text-m-title-xs pr-2.5 font-medium ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: label }), hasContent ? jsx(Icon, { name: icon, width: "24", height: "24", asSVG: true }) : null] }), hasContent ? jsx(AccordionItemInner, { blocks: blocks, context: context }) : null] }));
926
+ ${hasContent ? 'group cursor-pointer' : ''}`, onClick: handleToggle, children: [jsxs("span", { className: `text-m-title-xs pr-2.5 font-medium flex ${hasContent ? 'group-hover:text-primary-main' : ''}`, children: [labelIcon ? (jsx(Icon, { name: labelIcon, width: "24", height: "24", asSVG: true, className: "mr-3" })) : null, label] }), hasContent ? jsx(Icon, { name: icon, width: "24", height: "24", asSVG: true }) : null] }), hasContent ? jsx(AccordionItemInner, { blocks: blocks, context: context }) : null] }));
1079
927
  });
928
+ function borderedLiClass(bordered) {
929
+ return bordered ? 'border p-4 rounded mb-4' : 'border-0 border-b last:border-b-0';
930
+ }
1080
931
 
1081
932
  const Accordion = JSX(({ title, description, accordionItems, context, className = '', bordered }) => {
1082
933
  return (jsxs("section", { className: `py-6 px-4 font-sans bg-white text-primary-text ${className}`, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-2 text-center", title: title }) : null, description ? jsx("div", { className: "mb-5 text-m-md text-center", children: description }) : null, accordionItems?.length ? (jsx("ul", { className: "list-none m-0 p-0", children: accordionItems.map((item, i) => (jsx(AccordionItem, { ...item, context: context, bordered: bordered }, `AccordionItem${i}`))) })) : null] }));
@@ -1171,10 +1022,29 @@
1171
1022
  }
1172
1023
  const EXCHANGE_RATES_URL = '/api/v1/exchangerates.json';
1173
1024
 
1025
+ const getColSpan = (className) => {
1026
+ const colSpanPrefix = 'col-span-';
1027
+ const colSpanStr = className.split(/\s+/).find((_) => _.startsWith(colSpanPrefix));
1028
+ return colSpanStr ? parseInt(colSpanStr.substring(colSpanPrefix.length), 10) : 12;
1029
+ };
1030
+
1031
+ function getTileHeadingType(className = '') {
1032
+ const colSpan = getColSpan(className);
1033
+ if (colSpan <= 4) {
1034
+ return 'h4';
1035
+ }
1036
+ else if (colSpan <= 8) {
1037
+ return 'h3';
1038
+ }
1039
+ else {
1040
+ return 'h2';
1041
+ }
1042
+ }
1043
+
1174
1044
  const currencyNumberFormat = new Intl.NumberFormat('ru', { style: 'currency', currency: 'RUB' });
1175
1045
  const formatCurrency = (value) => (value ? currencyNumberFormat.format(value) : '');
1176
1046
 
1177
- const TABLE_HEAD_STYLE = 'text-left font-normal text-sm text-secondary-text';
1047
+ const TABLE_HEAD_STYLE = 'font-light text-left font-normal text-sm text-secondary-text';
1178
1048
  const CURRENCY_ICONS_MAP = {
1179
1049
  USD: 'DollarIcon',
1180
1050
  EUR: 'EuroIcon',
@@ -1184,10 +1054,10 @@
1184
1054
  });
1185
1055
  const renderCurrencyRow = (exchangeCurrencyItem) => {
1186
1056
  const code = exchangeCurrencyItem?.currency?.currency;
1187
- return (jsxs("tr", { children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [code ? jsx(Icon, { name: CURRENCY_ICONS_MAP[code], width: "24", height: "24" }) : null, jsx("span", { className: "ml-2", children: code })] }) }), jsx("td", { className: "pt-4 pl-11", children: formatCurrency(exchangeCurrencyItem.buyExchangeRate) }), jsx("td", { className: "pt-4 pl-11", children: formatCurrency(exchangeCurrencyItem.saleExchangeRate) })] }, code));
1057
+ return (jsxs("tr", { className: "pb-1", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [code ? jsx(Icon, { name: CURRENCY_ICONS_MAP[code], width: "24", height: "24" }) : null, jsx("span", { className: "text-m-title-md ml-2", children: code })] }) }), jsx("td", { className: "pt-4 pl-11 m-title-md font-light", children: formatCurrency(exchangeCurrencyItem.buyExchangeRate) }), jsx("td", { className: "pt-4 pl-11 m-title-md font-light", children: formatCurrency(exchangeCurrencyItem.saleExchangeRate) })] }, code));
1188
1058
  };
1189
1059
 
1190
- const CurrentLocation = JSX(({ className = '', address, distance }) => (jsxs("div", { className: `flex text-sm ${className}`, children: [jsx(Icon, { className: "min-w-fit", name: "GpsIcon", width: "24", height: "24", asSVG: true }), jsxs("div", { className: "ml-1.5", children: [address ? jsx("p", { className: "m-0", children: address }) : null, distance ? (jsxs("p", { className: "text-secondary-text m-0", children: ["\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043E \u043E\u0444\u0438\u0441\u0430 - ", distance] })) : null] })] })));
1060
+ const CurrentLocation = JSX(({ className = '', address, distance }) => (jsxs("div", { className: `flex text-sm ${className}`, children: [jsx(Icon, { className: "min-w-fit", name: "GpsIcon", width: "24", height: "24", asSVG: true }), jsxs("div", { className: "ml-3 font-light", children: [address ? jsx("p", { className: "m-0 mb-[3px]", children: address }) : null, distance ? (jsxs("p", { className: "text-secondary-text m-0", children: ["\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043E \u043E\u0444\u0438\u0441\u0430 - ", distance] })) : null] })] })));
1191
1061
 
1192
1062
  const Input = JSX(({ className = '', id, name, type = 'text', placeholder }) => {
1193
1063
  return (jsx("input", { className: className, id: id, name: name || id, type: type, placeholder: placeholder }));
@@ -1202,10 +1072,10 @@
1202
1072
  });
1203
1073
 
1204
1074
  const ExchangeCurrencyCalculator = JSX(({ codes, className = '' }) => {
1205
- return (jsxs("div", { className: `grid gap-3.5 ${className}`, children: [renderInput('Хочу продать', codes), renderInput('Получу', codes), jsx(Button, { className: "box-border mt-3.5 py-3 h-12 w-44", version: "primary", href: "#", children: "\u041A\u0443\u043F\u0438\u0442\u044C \u0432\u0430\u043B\u044E\u0442\u0443" })] }));
1075
+ return (jsxs("div", { className: `grid gap-3.5 ${className}`, children: [renderInput('Хочу продать', codes), renderInput('Получу', codes), jsx(Button, { className: "box-border mt-3.5 py-3 h-12 w-full", version: "primary", href: "#", children: "\u041A\u0443\u043F\u0438\u0442\u044C \u0432\u0430\u043B\u044E\u0442\u0443" })] }));
1206
1076
  });
1207
1077
  function renderInput(placeholder, codes) {
1208
- return (jsxs("div", { className: "flex items-center", children: [jsx(Input, { className: "h-10 border pl-2.5 rounded-md text-m-sm w-full appearance-none", type: "number", placeholder: `${placeholder}` }), codes.length ? (jsx(Select, { className: "h-9 -translate-x-16", children: codes.map((code, i) => (jsx(SelectOption, { value: code, children: code }, String(i)))) })) : null] }));
1078
+ return (jsxs("div", { className: "relative flex items-center", children: [jsx(Input, { className: "h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12", type: "number", placeholder: `${placeholder}` }), codes.length ? (jsx(Select, { className: "h-9 -translate-x-4", children: codes.map((code, i) => (jsx(SelectOption, { value: code, children: code }, String(i)))) })) : null] }));
1209
1079
  }
1210
1080
 
1211
1081
  const CURRENCY_CODES = ['USD', 'EUR'];
@@ -1226,12 +1096,16 @@
1226
1096
  address: 'Москва, ул.Ленина д.28',
1227
1097
  distance: '6км',
1228
1098
  };
1229
- const ExchangeRateTile = JSX(({ className = '', context, title = 'Курсы обмена валют' }) => {
1099
+ const ExchangeRateTile = JSX(({ className = '', context, title = 'Курсы обмена валют', anchor = null }) => {
1230
1100
  const data = useExchangeRates(context.useAsyncData);
1231
1101
  const exchangeCurrencyItems = data?.exchangeRate?.currencies?.filter((item) => {
1232
1102
  return CURRENCY_CODES.indexOf(item?.currency?.currency || '') !== -1;
1233
1103
  }) || DEFAULT_CURRENCY_ITEMS;
1234
- return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className}`, children: jsx(BaseTile, { context: context, title: jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: "whitespace-pre-wrap mb-3" }), children: jsxs("div", { className: "flex", children: [jsxs("div", { className: "mr-20 pt-3", children: [exchangeCurrencyItems ? (jsx(CurrencyTable, { className: "mb-7", exchangeCurrencyItems: exchangeCurrencyItems })) : null, jsx(CurrentLocation, { ...DEFAULT_LOCATION })] }), exchangeCurrencyItems?.length ? (jsx(ExchangeCurrencyCalculator, { className: "grow", exchangeCurrencyItems: exchangeCurrencyItems, codes: EXCHANGE_CODES })) : null] }) }) }));
1104
+ return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className}`, id: anchor, children: jsx(BaseTile, { context: context, title: jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: "whitespace-pre-wrap" }), children: jsxs("div", { className: "flex", children: [jsxs("div", { className: "mr-[43px] pt-4", children: [exchangeCurrencyItems ? (jsx(CurrencyTable, { className: "mb-[31px]", exchangeCurrencyItems: exchangeCurrencyItems })) : null, jsx(CurrentLocation, { ...DEFAULT_LOCATION })] }), exchangeCurrencyItems?.length ? (jsx(ExchangeCurrencyCalculator, { className: "grow", exchangeCurrencyItems: exchangeCurrencyItems, codes: EXCHANGE_CODES })) : null] }) }) }));
1105
+ });
1106
+
1107
+ const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
1108
+ return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill, ...options }, i) => (jsx("path", { d: d, fill: fill || 'currentColor', ...commonOptions, ...options }, i))) }));
1235
1109
  });
1236
1110
 
1237
1111
  const LOGO_PATHS = [
@@ -1304,7 +1178,7 @@
1304
1178
  const { icon, width, height, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
1305
1179
  if (!icon)
1306
1180
  return null;
1307
- return (jsx("a", { className: "flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:text-primary-main", href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: Icon && (jsx(Icon, { name: icon, width: width, height: height, asSVG: true, className: "block", color: "none" })) }));
1181
+ return (jsx("a", { className: "flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[40px] h-[40px] box-border hover:text-primary-main", href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: Icon && (jsx(Icon, { name: icon, width: width, height: height, asSVG: true, className: "block", color: "none" })) }));
1308
1182
  });
1309
1183
 
1310
1184
  const SocialMedia = JSX(({ className, media, context }) => {
@@ -1436,9 +1310,35 @@
1436
1310
  });
1437
1311
  const renderSubItem = (item, i) => (jsx(HeaderItem, { className: "mr-8 whitespace-nowrap text-sm", ...item }, String(i)));
1438
1312
 
1313
+ function getTileMinHeight(className = '') {
1314
+ const colSpan = getColSpan(className);
1315
+ if (colSpan <= 6) {
1316
+ return 'min-h-[300px]';
1317
+ }
1318
+ else if (colSpan <= 8) {
1319
+ return 'min-h-[320px]';
1320
+ }
1321
+ else {
1322
+ return 'min-h-[360px]';
1323
+ }
1324
+ }
1325
+
1326
+ function getTileRightPadding(className = '') {
1327
+ const colSpan = getColSpan(className);
1328
+ if (colSpan <= 6) {
1329
+ return 'pr-9';
1330
+ }
1331
+ else if (colSpan <= 8) {
1332
+ return 'pr-[4.75rem]';
1333
+ }
1334
+ else {
1335
+ return 'pr-[9.4rem]';
1336
+ }
1337
+ }
1338
+
1439
1339
  const GOLDEN_RATIO = 1.618;
1440
- const Placeholder = JSX(({ className, context, title, description = 'Блок в разработке...' }) => {
1441
- return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, children: jsxs(BaseTile, { context: context, title: title ? (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, children: [description ? (jsx(Description, { className: "mt-4 max-w-[600px]", description: description })) : null, jsx("figure", { className: "m-0 min-w-[600px]", children: renderShimmer() })] }) }));
1340
+ const Placeholder = JSX(({ className, context, title, description = 'Блок в разработке...', anchor = null }) => {
1341
+ return (jsx("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, id: anchor, children: jsxs(BaseTile, { context: context, title: title ? (jsx(Heading, { headingType: getTileHeadingType(className), title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, children: [description ? (jsx(Description, { className: "mt-4 max-w-[600px]", description: description })) : null, jsx("figure", { className: "m-0 min-w-[600px]", children: renderShimmer() })] }) }));
1442
1342
  });
1443
1343
  const renderShimmer = (size = 3) => goldenSequence(100, size)
1444
1344
  .map((_) => Math.floor(_))
@@ -1554,9 +1454,9 @@
1554
1454
  return (jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [jsx("path", { ...params, 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" }), jsx("path", { ...params, 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" })] }));
1555
1455
  };
1556
1456
 
1557
- const LikeControl = JSX(({ className, context }) => {
1457
+ const LikeControl = JSX(({ className, context, anchor = null }) => {
1558
1458
  const likeService = context.useLikeService();
1559
- 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: 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: 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 })] }));
1459
+ 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 || ''}`, id: anchor, children: [jsx(LikeButton, { onClick: 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: 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 })] }));
1560
1460
  });
1561
1461
 
1562
1462
  const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
@@ -1571,11 +1471,11 @@
1571
1471
  }
1572
1472
  const BlockComponent = blocksRegistry[type || 'Placeholder'] || Placeholder;
1573
1473
  return blockDecorator({
1574
- blockClassName: style2className(block.style),
1474
+ blockClassName: `scroll-mt-12 ${style2className(block.style)}`,
1575
1475
  block,
1576
1476
  render: (props) => {
1577
- const { version, content } = props.block;
1578
- return (jsx(BlockComponent, { className: props.blockClassName, version: version, context: context, ...content }, `${type}-${i}`));
1477
+ const { version, content, anchor } = props.block;
1478
+ return (jsx(BlockComponent, { className: props.blockClassName, version: version, context: context, anchor: anchor, ...content }));
1579
1479
  },
1580
1480
  }, `block-${i}`);
1581
1481
  }