@redneckz/wildless-cms-uni-blocks 0.6.39 → 0.6.41

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 (416) hide show
  1. package/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +166 -122
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  6. package/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  7. package/bundle/components/Carousel/CarouselContent.d.ts +1 -1
  8. package/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  9. package/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  10. package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  11. package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  12. package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  13. package/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  14. package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  15. package/bundle/components/Header/HeaderTop.d.ts +2 -0
  16. package/bundle/components/ProductTile/ProductTileContent.d.ts +2 -0
  17. package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  18. package/bundle/model/BlockVersion.d.ts +1 -0
  19. package/bundle/model/LogoType.d.ts +5 -0
  20. package/bundle/services/sitemap/SitemapProps.d.ts +2 -4
  21. package/bundle/ui-kit/Button/ButtonSection.d.ts +1 -1
  22. package/bundle/ui-kit/Logo/Logo.d.ts +2 -5
  23. package/bundle/ui-kit/Logo/Logo.mobile.d.ts +2 -0
  24. package/bundle/ui-kit/Logo/renderImage.d.ts +6 -0
  25. package/bundle/ui-kit/Logo/renderTitle.d.ts +3 -0
  26. package/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  27. package/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  28. package/dist/BlockRenderer/renderBlock.js +2 -2
  29. package/dist/BlockRenderer/renderBlock.js.map +1 -1
  30. package/dist/components/Blocks.js +8 -2
  31. package/dist/components/Blocks.js.map +1 -1
  32. package/dist/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  33. package/dist/components/ButtonBlock/ButtonBlock.js +11 -0
  34. package/dist/components/ButtonBlock/ButtonBlock.js.map +1 -0
  35. package/dist/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  36. package/dist/components/ButtonBlock/ButtonBlockContent.js +2 -0
  37. package/dist/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
  38. package/dist/components/Calculator/constants.js +1 -1
  39. package/dist/components/Carousel/Carousel.js +3 -2
  40. package/dist/components/Carousel/Carousel.js.map +1 -1
  41. package/dist/components/Carousel/CarouselContent.d.ts +1 -1
  42. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  43. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +17 -0
  44. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  45. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  46. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  47. package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  48. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  49. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  50. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  51. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  52. package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  53. package/dist/components/CarouselProductCard/CarouselProductCard.js +32 -0
  54. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  55. package/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  56. package/dist/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  57. package/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  58. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  59. package/dist/components/Gallery/GalleryCardInner.js +3 -2
  60. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  61. package/dist/components/Header/Header.mobile.js +2 -2
  62. package/dist/components/Header/Header.mobile.js.map +1 -1
  63. package/dist/components/Header/HeaderTop.d.ts +2 -0
  64. package/dist/components/Header/HeaderTop.js +1 -1
  65. package/dist/components/Header/HeaderTop.js.map +1 -1
  66. package/dist/components/ProductTile/ProductTile.js +17 -23
  67. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  68. package/dist/components/ProductTile/ProductTileContent.d.ts +2 -0
  69. package/dist/components/VerticalLayout/VerticalLayout.js +18 -13
  70. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  71. package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  72. package/dist/model/BlockVersion.d.ts +1 -0
  73. package/dist/model/BlockVersion.js +5 -1
  74. package/dist/model/BlockVersion.js.map +1 -1
  75. package/dist/model/LogoType.d.ts +5 -0
  76. package/dist/model/LogoType.js +2 -0
  77. package/dist/model/LogoType.js.map +1 -0
  78. package/dist/services/sitemap/SitemapProps.d.ts +2 -4
  79. package/dist/ui-kit/Button/ButtonSection.d.ts +1 -1
  80. package/dist/ui-kit/Button/ButtonSection.js +2 -2
  81. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  82. package/dist/ui-kit/Logo/Logo.d.ts +2 -5
  83. package/dist/ui-kit/Logo/Logo.js +3 -21
  84. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  85. package/dist/ui-kit/Logo/Logo.mobile.d.ts +2 -0
  86. package/dist/ui-kit/Logo/Logo.mobile.js +4 -15
  87. package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
  88. package/dist/ui-kit/Logo/renderImage.d.ts +6 -0
  89. package/dist/ui-kit/Logo/renderImage.js +20 -0
  90. package/dist/ui-kit/Logo/renderImage.js.map +1 -0
  91. package/dist/ui-kit/Logo/renderTitle.d.ts +3 -0
  92. package/dist/ui-kit/Logo/renderTitle.js +12 -0
  93. package/dist/ui-kit/Logo/renderTitle.js.map +1 -0
  94. package/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  95. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  96. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  97. package/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  98. package/lib/BlockRenderer/renderBlock.js +2 -2
  99. package/lib/BlockRenderer/renderBlock.js.map +1 -1
  100. package/lib/common.css +1 -1
  101. package/lib/components/Blocks.js +8 -2
  102. package/lib/components/Blocks.js.map +1 -1
  103. package/lib/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  104. package/lib/components/ButtonBlock/ButtonBlock.fixture.d.ts +6 -0
  105. package/lib/components/ButtonBlock/ButtonBlock.js +9 -0
  106. package/lib/components/ButtonBlock/ButtonBlock.js.map +1 -0
  107. package/lib/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  108. package/lib/components/ButtonBlock/ButtonBlockContent.js +2 -0
  109. package/lib/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
  110. package/lib/components/Calculator/constants.js +1 -1
  111. package/lib/components/Carousel/Carousel.fixture.d.ts +4 -1
  112. package/lib/components/Carousel/Carousel.js +3 -2
  113. package/lib/components/Carousel/Carousel.js.map +1 -1
  114. package/lib/components/Carousel/CarouselContent.d.ts +1 -1
  115. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  116. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +16 -0
  117. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +15 -0
  118. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  119. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  120. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  121. package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  122. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  123. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  124. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  125. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  126. package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  127. package/lib/components/CarouselProductCard/CarouselProductCard.fixture.d.ts +8 -0
  128. package/lib/components/CarouselProductCard/CarouselProductCard.js +30 -0
  129. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  130. package/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  131. package/lib/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  132. package/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  133. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +1 -1
  134. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  135. package/lib/components/Gallery/GalleryCardInner.js +3 -2
  136. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  137. package/lib/components/Header/Header.mobile.js +2 -2
  138. package/lib/components/Header/Header.mobile.js.map +1 -1
  139. package/lib/components/Header/HeaderTop.d.ts +2 -0
  140. package/lib/components/Header/HeaderTop.js +1 -1
  141. package/lib/components/Header/HeaderTop.js.map +1 -1
  142. package/lib/components/ProductTile/ProductTile.fixture.d.ts +3 -1
  143. package/lib/components/ProductTile/ProductTile.js +18 -24
  144. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  145. package/lib/components/ProductTile/ProductTileContent.d.ts +2 -0
  146. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +2 -1
  147. package/lib/components/VerticalLayout/VerticalLayout.js +18 -13
  148. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  149. package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  150. package/lib/model/BlockVersion.d.ts +1 -0
  151. package/lib/model/BlockVersion.js +4 -0
  152. package/lib/model/BlockVersion.js.map +1 -1
  153. package/lib/model/LogoType.d.ts +5 -0
  154. package/lib/model/LogoType.js +2 -0
  155. package/lib/model/LogoType.js.map +1 -0
  156. package/lib/services/sitemap/SitemapProps.d.ts +2 -4
  157. package/lib/ui-kit/Button/ButtonSection.d.ts +1 -1
  158. package/lib/ui-kit/Button/ButtonSection.js +2 -2
  159. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  160. package/lib/ui-kit/Logo/Logo.d.ts +2 -5
  161. package/lib/ui-kit/Logo/Logo.js +4 -22
  162. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  163. package/lib/ui-kit/Logo/Logo.mobile.d.ts +2 -0
  164. package/lib/ui-kit/Logo/Logo.mobile.js +5 -16
  165. package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
  166. package/lib/ui-kit/Logo/renderImage.d.ts +5 -0
  167. package/lib/ui-kit/Logo/renderImage.js +17 -0
  168. package/lib/ui-kit/Logo/renderImage.js.map +1 -0
  169. package/lib/ui-kit/Logo/renderTitle.d.ts +2 -0
  170. package/lib/ui-kit/Logo/renderTitle.js +9 -0
  171. package/lib/ui-kit/Logo/renderTitle.js.map +1 -0
  172. package/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  173. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  174. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  175. package/mobile/bundle/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  176. package/mobile/bundle/bundle.umd.js +23 -12
  177. package/mobile/bundle/bundle.umd.min.js +1 -1
  178. package/mobile/bundle/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  179. package/mobile/bundle/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  180. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +1 -1
  181. package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  182. package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  183. package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  184. package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  185. package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  186. package/mobile/bundle/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  187. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  188. package/mobile/bundle/components/Header/HeaderTop.d.ts +2 -0
  189. package/mobile/bundle/components/ProductTile/ProductTileContent.d.ts +2 -0
  190. package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  191. package/mobile/bundle/model/BlockVersion.d.ts +1 -0
  192. package/mobile/bundle/model/LogoType.d.ts +5 -0
  193. package/mobile/bundle/services/sitemap/SitemapProps.d.ts +2 -4
  194. package/mobile/bundle/ui-kit/Button/ButtonSection.d.ts +1 -1
  195. package/mobile/bundle/ui-kit/Logo/Logo.d.ts +2 -0
  196. package/mobile/bundle/ui-kit/Logo/renderImage.d.ts +6 -0
  197. package/mobile/bundle/ui-kit/Logo/renderTitle.d.ts +3 -0
  198. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  199. package/mobile/dist/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  200. package/mobile/dist/BlockRenderer/renderBlock.js +2 -2
  201. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
  202. package/mobile/dist/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  203. package/mobile/dist/components/ButtonBlock/ButtonBlock.js +11 -0
  204. package/mobile/dist/components/ButtonBlock/ButtonBlock.js.map +1 -0
  205. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  206. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.js +2 -0
  207. package/mobile/dist/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
  208. package/mobile/dist/components/Calculator/constants.js +1 -1
  209. package/mobile/dist/components/Carousel/Carousel.js +3 -2
  210. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  211. package/mobile/dist/components/Carousel/CarouselContent.d.ts +1 -1
  212. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  213. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +17 -0
  214. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  215. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  216. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  217. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  218. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  219. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  220. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  221. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  222. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  223. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +32 -0
  224. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  225. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  226. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  227. package/mobile/dist/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  228. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  229. package/mobile/dist/components/Gallery/GalleryCardInner.js +3 -2
  230. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  231. package/mobile/dist/components/Header/Header.js +2 -2
  232. package/mobile/dist/components/Header/Header.js.map +1 -1
  233. package/mobile/dist/components/Header/HeaderTop.d.ts +2 -0
  234. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  235. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  236. package/mobile/dist/components/ProductTile/ProductTile.js +17 -23
  237. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  238. package/mobile/dist/components/ProductTile/ProductTileContent.d.ts +2 -0
  239. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +18 -13
  240. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  241. package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  242. package/mobile/dist/model/BlockVersion.d.ts +1 -0
  243. package/mobile/dist/model/BlockVersion.js +5 -1
  244. package/mobile/dist/model/BlockVersion.js.map +1 -1
  245. package/mobile/dist/model/LogoType.d.ts +5 -0
  246. package/mobile/dist/model/LogoType.js +2 -0
  247. package/mobile/dist/model/LogoType.js.map +1 -0
  248. package/mobile/dist/services/sitemap/SitemapProps.d.ts +2 -4
  249. package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +1 -1
  250. package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -2
  251. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  252. package/mobile/dist/ui-kit/Logo/Logo.d.ts +2 -0
  253. package/mobile/dist/ui-kit/Logo/Logo.js +4 -15
  254. package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
  255. package/mobile/dist/ui-kit/Logo/renderImage.d.ts +6 -0
  256. package/mobile/dist/ui-kit/Logo/renderImage.js +20 -0
  257. package/mobile/dist/ui-kit/Logo/renderImage.js.map +1 -0
  258. package/mobile/dist/ui-kit/Logo/renderTitle.d.ts +3 -0
  259. package/mobile/dist/ui-kit/Logo/renderTitle.js +12 -0
  260. package/mobile/dist/ui-kit/Logo/renderTitle.js.map +1 -0
  261. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  262. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  263. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  264. package/mobile/lib/BlockRenderer/BlockRendererOptions.d.ts +1 -0
  265. package/mobile/lib/BlockRenderer/renderBlock.js +2 -2
  266. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
  267. package/mobile/lib/components/ButtonBlock/ButtonBlock.d.ts +6 -0
  268. package/mobile/lib/components/ButtonBlock/ButtonBlock.js +9 -0
  269. package/mobile/lib/components/ButtonBlock/ButtonBlock.js.map +1 -0
  270. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.d.ts +8 -0
  271. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js +2 -0
  272. package/mobile/lib/components/ButtonBlock/ButtonBlockContent.js.map +1 -0
  273. package/mobile/lib/components/Calculator/constants.js +1 -1
  274. package/mobile/lib/components/Carousel/Carousel.js +3 -2
  275. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  276. package/mobile/lib/components/Carousel/CarouselContent.d.ts +1 -1
  277. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +7 -0
  278. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +15 -0
  279. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -0
  280. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +23 -0
  281. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js +2 -0
  282. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.js.map +1 -0
  283. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +1 -1
  284. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +12 -8
  285. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  286. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +4 -4
  287. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +5 -0
  288. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +30 -0
  289. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -0
  290. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.d.ts +49 -0
  291. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js +2 -0
  292. package/mobile/lib/components/CarouselProductCard/CarouselProductCardContent.js.map +1 -0
  293. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +1 -1
  294. package/mobile/lib/components/Gallery/GalleryCardInner.js +3 -2
  295. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  296. package/mobile/lib/components/Header/Header.js +2 -2
  297. package/mobile/lib/components/Header/Header.js.map +1 -1
  298. package/mobile/lib/components/Header/HeaderTop.d.ts +2 -0
  299. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  300. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  301. package/mobile/lib/components/ProductTile/ProductTile.js +18 -24
  302. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  303. package/mobile/lib/components/ProductTile/ProductTileContent.d.ts +2 -0
  304. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +18 -13
  305. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  306. package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +4 -0
  307. package/mobile/lib/model/BlockVersion.d.ts +1 -0
  308. package/mobile/lib/model/BlockVersion.js +4 -0
  309. package/mobile/lib/model/BlockVersion.js.map +1 -1
  310. package/mobile/lib/model/LogoType.d.ts +5 -0
  311. package/mobile/lib/model/LogoType.js +2 -0
  312. package/mobile/lib/model/LogoType.js.map +1 -0
  313. package/mobile/lib/services/sitemap/SitemapProps.d.ts +2 -4
  314. package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +1 -1
  315. package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -2
  316. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  317. package/mobile/lib/ui-kit/Logo/Logo.d.ts +2 -0
  318. package/mobile/lib/ui-kit/Logo/Logo.js +5 -16
  319. package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
  320. package/mobile/lib/ui-kit/Logo/renderImage.d.ts +6 -0
  321. package/mobile/lib/ui-kit/Logo/renderImage.js +17 -0
  322. package/mobile/lib/ui-kit/Logo/renderImage.js.map +1 -0
  323. package/mobile/lib/ui-kit/Logo/renderTitle.d.ts +3 -0
  324. package/mobile/lib/ui-kit/Logo/renderTitle.js +9 -0
  325. package/mobile/lib/ui-kit/Logo/renderTitle.js.map +1 -0
  326. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +1 -1
  327. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  328. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  329. package/mobile/src/BlockRenderer/BlockRendererOptions.ts +1 -0
  330. package/mobile/src/BlockRenderer/renderBlock.tsx +2 -1
  331. package/mobile/src/components/ButtonBlock/ButtonBlock.example.json +10 -0
  332. package/mobile/src/components/ButtonBlock/ButtonBlock.tsx +17 -0
  333. package/mobile/src/components/ButtonBlock/ButtonBlock.ui.json +12 -0
  334. package/mobile/src/components/ButtonBlock/ButtonBlockContent.ts +9 -0
  335. package/mobile/src/components/Calculator/constants.ts +1 -1
  336. package/mobile/src/components/Carousel/Carousel.example.json +0 -1
  337. package/mobile/src/components/Carousel/Carousel.tsx +21 -18
  338. package/mobile/src/components/Carousel/CarouselContent.ts +1 -1
  339. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +17 -0
  340. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +62 -0
  341. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.ui.json +10 -0
  342. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +25 -0
  343. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +33 -14
  344. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +5 -5
  345. package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +21 -0
  346. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +102 -0
  347. package/mobile/src/components/CarouselProductCard/CarouselProductCard.ui.json +18 -0
  348. package/mobile/src/components/CarouselProductCard/CarouselProductCardContent.ts +51 -0
  349. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +1 -1
  350. package/mobile/src/components/ContactsBlock/ContactsBlock.example.json +1 -1
  351. package/mobile/src/components/Gallery/GalleryCardInner.tsx +6 -3
  352. package/mobile/src/components/Header/Header.tsx +2 -2
  353. package/mobile/src/components/Header/HeaderTop.tsx +4 -2
  354. package/mobile/src/components/ProductTile/ProductTile.example.json +2 -1
  355. package/mobile/src/components/ProductTile/ProductTile.tsx +41 -43
  356. package/mobile/src/components/ProductTile/ProductTileContent.ts +2 -0
  357. package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +7 -4
  358. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +35 -20
  359. package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +4 -0
  360. package/mobile/src/model/BlockVersion.ts +5 -0
  361. package/mobile/src/model/LogoType.ts +6 -0
  362. package/mobile/src/services/sitemap/SitemapProps.ts +2 -4
  363. package/mobile/src/ui-kit/Button/ButtonSection.tsx +4 -4
  364. package/mobile/src/ui-kit/Logo/Logo.tsx +16 -31
  365. package/mobile/src/ui-kit/Logo/renderImage.tsx +40 -0
  366. package/mobile/src/ui-kit/Logo/renderTitle.tsx +15 -0
  367. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +2 -2
  368. package/package.json +1 -1
  369. package/src/BlockRenderer/BlockRendererOptions.ts +1 -0
  370. package/src/BlockRenderer/renderBlock.tsx +2 -1
  371. package/src/components/Blocks.ts +8 -2
  372. package/src/components/ButtonBlock/ButtonBlock.example.json +10 -0
  373. package/src/components/ButtonBlock/ButtonBlock.fixture.tsx +18 -0
  374. package/src/components/ButtonBlock/ButtonBlock.tsx +17 -0
  375. package/src/components/ButtonBlock/ButtonBlock.ui.json +12 -0
  376. package/src/components/ButtonBlock/ButtonBlockContent.ts +9 -0
  377. package/src/components/Calculator/constants.ts +1 -1
  378. package/src/components/Carousel/Carousel.example.json +0 -1
  379. package/src/components/Carousel/Carousel.fixture.tsx +64 -4
  380. package/src/components/Carousel/Carousel.tsx +21 -18
  381. package/src/components/Carousel/CarouselContent.ts +1 -1
  382. package/src/components/CarouselCatalogCard/CarouselCatalogCard.example.json +17 -0
  383. package/src/components/CarouselCatalogCard/CarouselCatalogCard.fixture.tsx +43 -0
  384. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +62 -0
  385. package/src/components/CarouselCatalogCard/CarouselCatalogCard.ui.json +10 -0
  386. package/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +25 -0
  387. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +33 -14
  388. package/src/components/CarouselInvestmentCard/CarouselInvestmentCardContent.ts +5 -5
  389. package/src/components/CarouselProductCard/CarouselProductCard.example.json +21 -0
  390. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +62 -0
  391. package/src/components/CarouselProductCard/CarouselProductCard.tsx +102 -0
  392. package/src/components/CarouselProductCard/CarouselProductCard.ui.json +18 -0
  393. package/src/components/CarouselProductCard/CarouselProductCardContent.ts +51 -0
  394. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +1 -1
  395. package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +1 -1
  396. package/src/components/ContactsBlock/ContactsBlock.example.json +1 -1
  397. package/src/components/Gallery/GalleryCardInner.tsx +6 -3
  398. package/src/components/Header/Header.mobile.tsx +2 -2
  399. package/src/components/Header/HeaderTop.tsx +4 -2
  400. package/src/components/ProductTile/ProductTile.example.json +2 -1
  401. package/src/components/ProductTile/ProductTile.fixture.tsx +15 -1
  402. package/src/components/ProductTile/ProductTile.tsx +41 -43
  403. package/src/components/ProductTile/ProductTileContent.ts +2 -0
  404. package/src/components/VerticalLayout/VerticalLayout.example.json +7 -4
  405. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +59 -2
  406. package/src/components/VerticalLayout/VerticalLayout.tsx +35 -20
  407. package/src/components/VerticalLayout/VerticalLayoutContent.ts +4 -0
  408. package/src/model/BlockVersion.ts +5 -0
  409. package/src/model/LogoType.ts +6 -0
  410. package/src/services/sitemap/SitemapProps.ts +2 -4
  411. package/src/ui-kit/Button/ButtonSection.tsx +4 -4
  412. package/src/ui-kit/Logo/Logo.mobile.tsx +16 -31
  413. package/src/ui-kit/Logo/Logo.tsx +6 -43
  414. package/src/ui-kit/Logo/renderImage.tsx +40 -0
  415. package/src/ui-kit/Logo/renderTitle.tsx +15 -0
  416. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +2 -2
@@ -1,13 +1,10 @@
1
- import type { Picture } from '../../model/Picture';
1
+ import type { LogoType } from '../../model/LogoType';
2
2
  export interface LogoProps {
3
3
  className: string;
4
4
  href: string;
5
5
  targetBlank: boolean;
6
6
  bgColor?: string;
7
7
  showTitle?: boolean;
8
- logo?: {
9
- image?: Picture;
10
- title?: string;
11
- };
8
+ logo?: LogoType;
12
9
  }
13
10
  export declare const Logo: import("@redneckz/uni-jsx").UNIComponent<Partial<LogoProps>, any, any>;
@@ -1,26 +1,8 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
1
+ import { jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { Img } from '../Img/Img.js';
4
- const ICON_VERSION_MAP = {
5
- 'bg-white': 'color',
6
- transparent: 'white',
7
- };
8
- const SVG_COLOR = {
9
- 'bg-white': 'text-primary-main',
10
- transparent: 'text-white',
11
- };
12
- const TEXT_COLOR = {
13
- 'bg-white': 'text-primary-text',
14
- transparent: 'text-white',
15
- };
3
+ import { renderImage } from './renderImage.js';
4
+ import { renderTitle } from './renderTitle.js';
16
5
  export const Logo = JSX(({ className = '', href, logo, children = logo?.title, targetBlank, bgColor = 'bg-white', showTitle = true, }) => {
17
- return (_jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [logo?.image?.src ? (_jsx(Img, { image: logo.image, className: SVG_COLOR[bgColor], width: "40", height: "45", asSVG: true })) : (_jsx(Img, { image: {
18
- icon: logo?.image?.icon || 'LogoIcon',
19
- iconVersion: ICON_VERSION_MAP[bgColor],
20
- }, className: `${SVG_COLOR[bgColor]} w-10`, width: "40", height: "45", asSVG: true })), showTitle ? renderTitle(children, bgColor, logo?.title) : null] }));
6
+ return (_jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage(bgColor, logo?.image, { width: '40', height: '45' }), showTitle ? renderTitle(children || logo?.title, bgColor) : null] }));
21
7
  });
22
- const renderTitle = (children, bgColor, title) => {
23
- const text = children || title || 'Россельхозбанк';
24
- return _jsx("span", { className: `${TEXT_COLOR[bgColor]} font-medium ml-2.5`, children: text });
25
- };
26
8
  //# sourceMappingURL=Logo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAIxC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAcjC,MAAM,gBAAgB,GAAmC;IACvD,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,OAAO;CACrB,CAAC;AAEF,MAAM,SAAS,GAAmC;IAChD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AACF,MAAM,UAAU,GAAmC;IACjD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,IAAI,EACJ,QAAQ,GAAG,IAAI,EAAE,KAAK,EACtB,WAAW,EACX,OAAO,GAAG,UAAU,EACpB,SAAS,GAAG,IAAI,GACjB,EAAE,EAAE;IACH,OAAO,CACL,aACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,GAAG,EACjB,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC5B,IAAI,EAAE,KAAK,IAAI,gBAAgB,aAE1C,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAClB,KAAC,GAAG,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CACvF,CAAC,CAAC,CAAC,CACF,KAAC,GAAG,IACF,KAAK,EAAE;oBACL,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,IAAI,UAAU;oBACrC,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC;iBACvC,EACD,SAAS,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,OAAO,EACvC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,CACH,EACA,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,IAC7D,CACL,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,QAAe,EAAE,OAAe,EAAE,KAAc,EAAE,EAAE;IACvE,MAAM,IAAI,GAAG,QAAQ,IAAI,KAAK,IAAI,gBAAgB,CAAC;IAEnD,OAAO,eAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,qBAAqB,YAAG,IAAI,GAAQ,CAAC;AACrF,CAAC,CAAC"}
1
+ {"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAW5C,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,IAAI,EACJ,QAAQ,GAAG,IAAI,EAAE,KAAK,EACtB,WAAW,EACX,OAAO,GAAG,UAAU,EACpB,SAAS,GAAG,IAAI,GACjB,EAAE,EAAE;IACH,OAAO,CACL,aACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,GAAG,EACjB,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC5B,IAAI,EAAE,KAAK,IAAI,gBAAgB,aAE1C,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAChE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,IAAI,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,IAC/D,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,8 +1,10 @@
1
+ import type { LogoType } from '../../model/LogoType';
1
2
  export interface LogoProps {
2
3
  className: string;
3
4
  href: string;
4
5
  targetBlank: boolean;
5
6
  bgColor?: string;
6
7
  showTitle?: boolean;
8
+ logo?: LogoType;
7
9
  }
8
10
  export declare const Logo: import("@redneckz/uni-jsx").UNIComponent<Partial<LogoProps>, any, any>;
@@ -1,19 +1,8 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
1
+ import { jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { JSX } from '@redneckz/uni-jsx';
3
- import { Img } from '../Img/Img.js';
4
- const ICON_VERSION_MAP = {
5
- 'bg-white': 'color',
6
- transparent: 'white',
7
- };
8
- const SVG_COLOR = {
9
- 'bg-white': 'text-primary-main',
10
- transparent: 'text-white',
11
- };
12
- const TEXT_COLOR = {
13
- 'bg-white': 'text-black',
14
- transparent: 'text-white',
15
- };
16
- export const Logo = JSX(({ className = '', href, children, targetBlank, bgColor = 'bg-white', showTitle = true }) => {
17
- return (_jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [_jsx(Img, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]}`, width: "34", height: "34", asSVG: true }), showTitle ? (_jsx("span", { className: `${TEXT_COLOR[bgColor]} text-s font-medium ml-2.5`, children: children || 'Россельхозбанк' })) : null] }));
3
+ import { renderImage } from './renderImage.js';
4
+ import { renderTitle } from './renderTitle.js';
5
+ export const Logo = JSX(({ bgColor = 'bg-white', children, className = '', href, logo, showTitle = true, targetBlank, }) => {
6
+ return (_jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage(bgColor, logo?.image, { width: '34', height: '34' }), showTitle ? renderTitle(children || logo?.title, bgColor, 'text-s') : null] }));
18
7
  });
19
8
  //# sourceMappingURL=Logo.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAUjC,MAAM,gBAAgB,GAAmC;IACvD,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,OAAO;CACrB,CAAC;AAEF,MAAM,SAAS,GAAmC;IAChD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,UAAU,GAAmC;IACjD,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,GAAG,UAAU,EAAE,SAAS,GAAG,IAAI,EAAE,EAAE,EAAE;IAC1F,OAAO,CACL,aACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,kBAAkB,EAChC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC7B,sFAAgB,aAE3B,KAAC,GAAG,IACF,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAAE,EACnE,SAAS,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,EAAE,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,KAAK,SACL,EACD,SAAS,CAAC,CAAC,CAAC,CACX,eAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,4BAA4B,YAChE,QAAQ,IAAI,gBAAgB,GACxB,CACR,CAAC,CAAC,CAAC,IAAI,IACN,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"Logo.mobile.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/Logo.mobile.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAW5C,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CACrB,CAAC,EACC,OAAO,GAAG,UAAU,EACpB,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,IAAI,EACJ,SAAS,GAAG,IAAI,EAChB,WAAW,GACZ,EAAE,EAAE;IACH,OAAO,CACL,aACE,SAAS,EAAE,mDAAmD,SAAS,EAAE,EACzE,IAAI,EAAE,IAAI,IAAI,kBAAkB,EAChC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,gBAC5B,IAAI,EAAE,KAAK,IAAI,gBAAgB,aAE1C,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAChE,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,IAAI,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,IACzE,CACL,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Picture } from '../../model/Picture';
2
+ export declare const renderImage: (bgColor: string, image?: Picture, size?: {
3
+ width: string;
4
+ height: string;
5
+ }) => JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { Img } from '../Img/Img.js';
3
+ const ICON_VERSION_MAP = {
4
+ 'bg-white': 'color',
5
+ transparent: 'white',
6
+ };
7
+ const SVG_COLOR = {
8
+ 'bg-white': 'text-primary-main',
9
+ transparent: 'text-white',
10
+ };
11
+ export const renderImage = (bgColor, image, size) => {
12
+ return image?.src ? (_jsx(Img, { image: image, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, asSVG: true })) : (_jsx(Img, { image: {
13
+ icon: image?.icon || 'LogoIcon',
14
+ iconVersion: ICON_VERSION_MAP[bgColor],
15
+ }, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, asSVG: true }));
16
+ };
17
+ //# sourceMappingURL=renderImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderImage.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/renderImage.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,MAAM,gBAAgB,GAAmC;IACvD,UAAU,EAAE,OAAO;IACnB,WAAW,EAAE,OAAO;CACrB,CAAC;AAEF,MAAM,SAAS,GAAmC;IAChD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,OAAe,EACf,KAAe,EACf,IAAwC,EACxC,EAAE;IACF,OAAO,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAClB,KAAC,GAAG,IACF,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,IAAI,EAAE,KAAK,EAClB,MAAM,EAAE,IAAI,EAAE,MAAM,EACpB,KAAK,SACL,CACH,CAAC,CAAC,CAAC,CACF,KAAC,GAAG,IACF,KAAK,EAAE;YACL,IAAI,EAAE,KAAK,EAAE,IAAI,IAAI,UAAU;YAC/B,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC;SACvC,EACD,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,IAAI,EAAE,KAAK,EAClB,MAAM,EAAE,IAAI,EAAE,MAAM,EACpB,KAAK,SACL,CACH,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { VNode } from '../../model/VNode';
2
+ export declare const renderTitle: (title: VNode, bgColor: string, className?: string) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ const TEXT_COLOR = {
3
+ 'bg-white': 'text-primary-text',
4
+ transparent: 'text-white',
5
+ };
6
+ export const renderTitle = (title, bgColor, className) => {
7
+ return (_jsx("span", { className: `${TEXT_COLOR[bgColor]} ml-2.5 font-medium ${className || ''}`, children: title || 'Россельхозбанк' }));
8
+ };
9
+ //# sourceMappingURL=renderTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderTitle.js","sourceRoot":"","sources":["../../../src/ui-kit/Logo/renderTitle.tsx"],"names":[],"mappings":";AAGA,MAAM,UAAU,GAAmC;IACjD,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAY,EAAE,OAAe,EAAE,SAAkB,EAAE,EAAE;IAC/E,OAAO,CACL,eAAM,SAAS,EAAE,GAAG,UAAU,CAAC,OAAO,CAAC,uBAAuB,SAAS,IAAI,EAAE,EAAE,YAC5E,KAAK,IAAI,gBAAgB,GACrB,CACR,CAAC;AACJ,CAAC,CAAC"}
@@ -10,7 +10,7 @@ interface SwipeListContainerProps extends SwipeContainerProps {
10
10
  current: HTMLDivElement | null;
11
11
  };
12
12
  activeIndex?: number;
13
- visibleItemCount?: SwipeListItemWidthAuto | 1 | 2 | 3;
13
+ visibleItemCount?: SwipeListItemWidthAuto | 1 | 2 | 3 | 4;
14
14
  snapAlign?: 'snap-start' | 'snap-center' | 'snap-end';
15
15
  onVisibleItemsChange?: (itemsVisibilityList: ItemsVisibilityList) => void;
16
16
  onVisibleIndicesChange?: (indices: number[]) => void;
@@ -3,7 +3,7 @@ import { JSX } from '@redneckz/uni-jsx';
3
3
  import { useCallback, useRef } from '@redneckz/uni-jsx/lib/hooks';
4
4
  import { mapChildren } from '../../utils/mapChildren.js';
5
5
  import { SwipeListItem } from './SwipeListItem.js';
6
- const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]'];
6
+ const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]', 'min-w-[25%]'];
7
7
  export const SwipeListContainer = JSX(({ className = '', containerRef, activeIndex, visibleItemCount, gap = 0, padding = 0, snapAlign = 'snap-center', children, onVisibleItemsChange, onVisibleIndicesChange, }) => {
8
8
  const observerOptions = {
9
9
  sensitivity: 1,
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeListContainer.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListContainer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAmBhD,MAAM,aAAa,GAAG,CAAC,cAAc,EAAE,aAAa,EAAE,gBAAgB,CAAC,CAAC;AAExE,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CACnC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,GAAG,GAAG,CAAC,EACP,OAAO,GAAG,CAAC,EACX,SAAS,GAAG,aAAa,EACzB,QAAQ,EACR,oBAAoB,EACpB,sBAAsB,GACvB,EAAE,EAAE;IACH,MAAM,eAAe,GAAgC;QACnD,WAAW,EAAE,CAAC;QACd,OAAO,EAAE,YAAY;KACtB,CAAC;IAEF,MAAM,sBAAsB,GAAG,MAAM,CAAsB,EAAE,CAAC,CAAC;IAC/D,MAAM,kBAAkB,GAAG,WAAW,CACpC,CAAC,GAAW,EAAE,KAAgC,EAAE,EAAE;QAChD,MAAM,mBAAmB,GAAG,CAAC,GAAG,CAAC,sBAAsB,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;QACxE,mBAAmB,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACjC,sBAAsB,CAAC,OAAO,GAAG,mBAAmB,CAAC;QAErD,oBAAoB,IAAI,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;QAClE,sBAAsB,IAAI,sBAAsB,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAC3F,CAAC,EACD,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAC/C,CAAC;IAEF,OAAO,CACL,cACE,SAAS,EAAE,8DAA8D,SAAS,EAAE,EACpF,KAAK,EAAE,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG,IAAI,EAAE,EACzD,IAAI,EAAC,MAAM,EACX,GAAG,EAAE,YAAY,YAEhB,WAAW,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,CAC3B,KAAC,aAAa,IAEZ,SAAS,EAAE,GAAG,SAAS,IACrB,gBAAgB,CAAC,CAAC,CAAC,aAAa,CAAC,gBAAgB,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAC3D,EAAE,EACF,KAAK,EAAE,iBAAiB,CAAC,OAAO,GAAG,CAAC,CAAC,EACrC,WAAW,EAAE,WAAW,EACxB,GAAG,EAAE,GAAG,EACR,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,kBAAkB,YAEjC,KAAK,IAVD,MAAM,CAAC,GAAG,CAAC,CAWF,CACjB,CAAC,CAAC,QAAQ,CAAC,GACR,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kFAAkF;AAClF,MAAM,iBAAiB,GAAG,CAAC,OAAe,EAA0B,EAAE,CAAC,CAAC;IACtE,UAAU,EAAE,GAAG,CAAC,OAAO,IAAI;IAC3B,WAAW,EAAE,GAAG,CAAC,OAAO,IAAI;IAC5B,WAAW,EAAE,GAAG,OAAO,IAAI;IAC3B,YAAY,EAAE,GAAG,OAAO,IAAI;CAC7B,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,CAAC,mBAAwC,EAAE,EAAE,CACrE,mBAAmB;KAChB,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAmD,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KACtE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,iBAAiB,IAAI,GAAG,CAAC;KAChD,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"SwipeListContainer.js","sourceRoot":"","sources":["../../../src/ui-kit/SwipeListControl/SwipeListContainer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAmBhD,MAAM,aAAa,GAAG,CAAC,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,CAAC,CAAC;AAEvF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CACnC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,GAAG,GAAG,CAAC,EACP,OAAO,GAAG,CAAC,EACX,SAAS,GAAG,aAAa,EACzB,QAAQ,EACR,oBAAoB,EACpB,sBAAsB,GACvB,EAAE,EAAE;IACH,MAAM,eAAe,GAAgC;QACnD,WAAW,EAAE,CAAC;QACd,OAAO,EAAE,YAAY;KACtB,CAAC;IAEF,MAAM,sBAAsB,GAAG,MAAM,CAAsB,EAAE,CAAC,CAAC;IAC/D,MAAM,kBAAkB,GAAG,WAAW,CACpC,CAAC,GAAW,EAAE,KAAgC,EAAE,EAAE;QAChD,MAAM,mBAAmB,GAAG,CAAC,GAAG,CAAC,sBAAsB,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;QACxE,mBAAmB,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACjC,sBAAsB,CAAC,OAAO,GAAG,mBAAmB,CAAC;QAErD,oBAAoB,IAAI,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;QAClE,sBAAsB,IAAI,sBAAsB,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAC3F,CAAC,EACD,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAC/C,CAAC;IAEF,OAAO,CACL,cACE,SAAS,EAAE,8DAA8D,SAAS,EAAE,EACpF,KAAK,EAAE,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG,IAAI,EAAE,EACzD,IAAI,EAAC,MAAM,EACX,GAAG,EAAE,YAAY,YAEhB,WAAW,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,CAC3B,KAAC,aAAa,IAEZ,SAAS,EAAE,GAAG,SAAS,IACrB,gBAAgB,CAAC,CAAC,CAAC,aAAa,CAAC,gBAAgB,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAC3D,EAAE,EACF,KAAK,EAAE,iBAAiB,CAAC,OAAO,GAAG,CAAC,CAAC,EACrC,WAAW,EAAE,WAAW,EACxB,GAAG,EAAE,GAAG,EACR,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,kBAAkB,YAEjC,KAAK,IAVD,MAAM,CAAC,GAAG,CAAC,CAWF,CACjB,CAAC,CAAC,QAAQ,CAAC,GACR,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kFAAkF;AAClF,MAAM,iBAAiB,GAAG,CAAC,OAAe,EAA0B,EAAE,CAAC,CAAC;IACtE,UAAU,EAAE,GAAG,CAAC,OAAO,IAAI;IAC3B,WAAW,EAAE,GAAG,CAAC,OAAO,IAAI;IAC5B,WAAW,EAAE,GAAG,OAAO,IAAI;IAC3B,YAAY,EAAE,GAAG,OAAO,IAAI;CAC7B,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,CAAC,mBAAwC,EAAE,EAAE,CACrE,mBAAmB;KAChB,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAmD,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KACtE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,iBAAiB,IAAI,GAAG,CAAC;KAChD,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC"}
@@ -8,4 +8,5 @@ export interface BlockRendererOptions {
8
8
  blocksRegistry?: BlocksRegistry;
9
9
  parent?: Slot;
10
10
  ancestors?: BlockAncestors;
11
+ className?: string;
11
12
  }
@@ -242,14 +242,14 @@
242
242
  const DEFAULT_ANCESTORS = [];
243
243
  const DEFAULT_STYLE = ['col-span-12'];
244
244
  function renderBlock(block, options) {
245
- const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, } = options;
245
+ const { key, blockDecorator = defaultBlockDecorator, blocksRegistry = {}, ancestors = DEFAULT_ANCESTORS, className = '', } = options;
246
246
  const { type } = block;
247
247
  if (!(type && type in blocksRegistry)) {
248
248
  console.warn(`No block with "${type}" is registered`);
249
249
  }
250
250
  const BlockComponent = type && blocksRegistry[type];
251
251
  return blockDecorator({
252
- blockClassName: `scroll-mt-12 ${style2className(block.style || DEFAULT_STYLE)}`,
252
+ blockClassName: `scroll-mt-12 ${className} ${style2className(block.style || DEFAULT_STYLE)}`,
253
253
  block,
254
254
  ancestors,
255
255
  // Adjusted by decorator block and blockClassName
@@ -560,7 +560,7 @@
560
560
  return (jsx("div", { className: `inline-block snap-always box-border ${className}`, style: style, role: "listitem", "aria-current": Boolean(idx === activeIndex), ref: ref, children: children }));
561
561
  });
562
562
 
563
- const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]'];
563
+ const childStyleMap = ['min-w-[100%]', 'min-w-[50%]', 'min-w-[33.33%]', 'min-w-[25%]'];
564
564
  const SwipeListContainer = JSX(({ className = '', containerRef, activeIndex, visibleItemCount, gap = 0, padding = 0, snapAlign = 'snap-center', children, onVisibleItemsChange, onVisibleIndicesChange, }) => {
565
565
  const observerOptions = {
566
566
  sensitivity: 1,
@@ -1008,12 +1008,23 @@
1008
1008
  'bg-white': 'text-primary-main',
1009
1009
  transparent: 'text-white',
1010
1010
  };
1011
+ const renderImage$3 = (bgColor, image, size) => {
1012
+ return image?.src ? (jsx(Img, { image: image, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, asSVG: true })) : (jsx(Img, { image: {
1013
+ icon: image?.icon || 'LogoIcon',
1014
+ iconVersion: ICON_VERSION_MAP[bgColor],
1015
+ }, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, asSVG: true }));
1016
+ };
1017
+
1011
1018
  const TEXT_COLOR = {
1012
- 'bg-white': 'text-black',
1019
+ 'bg-white': 'text-primary-text',
1013
1020
  transparent: 'text-white',
1014
1021
  };
1015
- const Logo = JSX(({ className = '', href, children, targetBlank, bgColor = 'bg-white', showTitle = true }) => {
1016
- return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A", children: [jsx(Img, { image: { icon: 'LogoIcon', iconVersion: ICON_VERSION_MAP[bgColor] }, className: `${SVG_COLOR[bgColor]}`, width: "34", height: "34", asSVG: true }), showTitle ? (jsx("span", { className: `${TEXT_COLOR[bgColor]} text-s font-medium ml-2.5`, children: children || 'Россельхозбанк' })) : null] }));
1022
+ const renderTitle = (title, bgColor, className) => {
1023
+ return (jsx("span", { className: `${TEXT_COLOR[bgColor]} ml-2.5 font-medium ${className || ''}`, children: title || 'Россельхозбанк' }));
1024
+ };
1025
+
1026
+ const Logo = JSX(({ bgColor = 'bg-white', children, className = '', href, logo, showTitle = true, targetBlank, }) => {
1027
+ return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || 'https://rshb.ru/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage$3(bgColor, logo?.image, { width: '34', height: '34' }), showTitle ? renderTitle(children || logo?.title, bgColor, 'text-s') : null] }));
1017
1028
  });
1018
1029
 
1019
1030
  const MobileAppTile = JSX(({ className = '', title = 'Мобильное приложение', description, href = '#' }) => {
@@ -1204,18 +1215,18 @@
1204
1215
  return (jsxs("a", { href: href, className: "flex text-s mb-4 hover:text-primary-main", children: [icon ? (jsx(Img, { className: "text-primary-main pr-1", image: icon, width: "24", height: "24", asSVG: true })) : null, jsx("span", { className: "font-medium pl-0.5", children: text })] }, `headerSubMenu-${i}`));
1205
1216
  };
1206
1217
 
1207
- const HeaderTop = JSX(({ onClick, bgColor }) => (jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-12", children: [jsxs("div", { className: "flex items-center", children: [jsx("button", { className: "pl-0 pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: jsx(Img, { image: { icon: 'BurgerIcon', iconVersion: bgColor === 'bg-white' ? 'black' : 'white' }, className: "text-primary-text w-6 h-6", width: "24", height: "24", asSVG: true }) }), jsx(Logo, { className: "mr-8", bgColor: bgColor })] }), jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-s border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
1218
+ const HeaderTop = JSX(({ onClick, bgColor, logo }) => (jsxs("div", { className: "flex items-center justify-between border-0 border-b border-main-divider h-12", children: [jsxs("div", { className: "flex items-center", children: [jsx("button", { className: "pl-0 pr-4 border-0 bg-transparent cursor-pointer", onClick: onClick, "aria-label": "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E", children: jsx(Img, { image: { icon: 'BurgerIcon', iconVersion: bgColor === 'bg-white' ? 'black' : 'white' }, className: "text-primary-text w-6 h-6", width: "24", height: "24", asSVG: true }) }), jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo })] }), jsx("button", { className: `${bgColor === 'bg-white' ? 'text-primary-main' : 'text-white'} text-s border-0 bg-transparent cursor-pointer`, children: "\u0412\u043E\u0439\u0442\u0438" })] })));
1208
1219
 
1209
1220
  const Header = JSX(({ className = '', bgColor = 'bg-white', ...rest }) => {
1210
1221
  const router = useRouter();
1211
1222
  const fallback = rest.options?.page?.fallback;
1212
- const { topItems, dispositions, defaultLocation } = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
1223
+ const { topItems, dispositions, defaultLocation, logo } = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
1213
1224
  const activeTopItem = topItems?.find(isTopItemActive(router));
1214
1225
  const subItems = activeTopItem?.items;
1215
1226
  const activeSubItem = findActiveSubItem(router)(subItems);
1216
1227
  const [burgerMenuShow, setBurgerMenuShow] = useState(false);
1217
1228
  const handleBurgerMenuShow = useCallback(() => setBurgerMenuShow((_) => !_), []);
1218
- return (jsxs("header", { className: `${bgColor} ${className}`, children: [jsxs("div", { className: "container px-4 py-0 box-border", children: [jsx(HeaderTop, { onClick: handleBurgerMenuShow, bgColor: bgColor }), jsx("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-12", 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: handleBurgerMenuShow, 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] }));
1229
+ return (jsxs("header", { className: `${bgColor} ${className}`, children: [jsxs("div", { className: "container px-4 py-0 box-border", children: [jsx(HeaderTop, { onClick: handleBurgerMenuShow, bgColor: bgColor, logo: logo }), jsx("nav", { className: "flex items-center m-0 p-0 overflow-y-hidden w-full h-12", 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: handleBurgerMenuShow, 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] }));
1219
1230
  });
1220
1231
 
1221
1232
  const AlignText = {
@@ -1336,11 +1347,11 @@
1336
1347
 
1337
1348
  const ButtonSection = JSX(({ className = '', buttons }) => buttons && buttons?.length ? (jsx("div", { className: className, children: buttons.map((button, index) => renderButton({ button, index })) })) : null);
1338
1349
  function renderButton({ button, buttonClassName, index }) {
1339
- const { icon, iconRight, version, ...rest } = button;
1350
+ const { icon, iconRight, version, text, ...rest } = button;
1340
1351
  const iconVersion = version === 'secondary' ? 'color' : 'white';
1341
1352
  const leftIcon = renderButtonIcon({ ...icon, iconVersion: iconVersion });
1342
1353
  const rightIcon = renderButtonIcon({ ...iconRight, iconVersion: iconVersion });
1343
- return (jsx(Button, { className: buttonClassName, appendLeft: leftIcon, appendRight: rightIcon, version: version, ...rest }, index ? String(index) : ''));
1354
+ return text ? (jsx(Button, { className: buttonClassName, appendLeft: leftIcon, appendRight: rightIcon, version: version, text: text, ...rest }, index ? String(index) : '')) : null;
1344
1355
  }
1345
1356
  const renderButtonIcon = (icon) => {
1346
1357
  if (!icon?.icon && !icon?.src) {
@@ -1709,7 +1720,7 @@
1709
1720
  return (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: i }, el) : [el]), []);
1710
1721
  }
1711
1722
 
1712
- const packageVersion = "0.6.39";
1723
+ const packageVersion = "0.6.41";
1713
1724
 
1714
1725
  exports.Blocks = Blocks;
1715
1726
  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"),s=n("useMemo"),a=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:g(e)),t._tmpl},g=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,s=i||l&&l();return e(Object.assign(r,s&&{children:s}),n)}return t.inheritAttrs=!1,t};function b(e){return e?e.filter(Boolean).join(" "):""}const x=({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=x,blocksRegistry:r={},ancestors:l=f}=t,{type:s}=e;s&&s in r||console.warn(`No block with "${s}" is registered`);const a=s&&r[s];return i({blockClassName:`scroll-mt-12 ${b(e.style||N)}`,block:e,ancestors:l,render:({block:i,blockClassName:r})=>{const{content:l}=i;return a?h(a,{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,s)=>r(e,{...l,key:`${t||e.type}-${s}`,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]||[]).concat(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){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}function C(e,{sensitivity:t,rootRef:n}={}){const i=a(null),l=s((()=>({threshold:S(t),root:n?.current})),[t,n?.current]);return r((()=>{if(!i.current)return;const t=new IntersectionObserver(e,l);return t.observe(i.current),()=>{t.disconnect()}}),[e,l]),i}function S(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const T=e=>e?.replace("#","");class _{static inst=new _;eventBus=new $;constructor(){const e=T(globalThis.location?.hash);e&&this.eventBus.subject("goto",{anchor:e})}goto(e){const t=T(e);t&&(this.push(t),this.eventBus.fire("goto",{anchor:t}))}push(e){globalThis.history?.pushState(null,"",`#${T(e)}`)}replace(e){globalThis.history?.replaceState(null,"",`#${T(e)}`)}reset(){globalThis.history?.replaceState(null,"","#")}}const I=p((({className:e,block:t,tag:n="section",role:s,children:a})=>{const o=n,c=function(e,t=_.inst){const n=C(l((n=>{if(!e||!n?.length)return;const i=n[n.length-1];t.eventBus.fire("intersection",{block:e,intersection:i})}),[e,t]),{sensitivity:1});return r((()=>{if(n.current)return t.eventBus.subscribe("goto",(({anchor:t})=>{n.current&&e?.anchor===t&&n.current.scrollIntoView({behavior:"smooth",block:"start"})}))}),[e,t]),n}(t),[d,m]=i(!0);return r((()=>$.inst.subscribe("tab",(e=>{if("group"===e.type){const n=t?.labels?.length||t?.anchor;m(!e.label||(!n||Boolean(t?.labels?.includes(e.label))))}else m(!0)}))),[t]),d?h(o,{className:e,role:s,...t?.anchor?{id:t.anchor,ref:c}:{},children:a}):null})),R={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"},j=p((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return h(r,{className:`font-sans font-medium m-0 ${R[n]} ${t||""}`,children:i})})),A=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}))),O=p((({title:e,description:t,className:n="",...i})=>u(I,{className:`py-6 px-4 bg-white text-primary-text ${n}`,...i,children:[e?h(j,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5",children:h(A,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,h(D,{children:k(i)})]})));O.childrenTypes=["AccordionItem"];const M=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[s,a]=i(t),o=l((()=>{a((e=>!e))}),[]),c=n({isUnfolded:s,onToggle:o}),d=r?r({isUnfolded:s,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),V=p((({className:e="",isUnfolded:t,children:n})=>{const i=a(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 ${i.current||!t?"max-h-0":""} ${e}`,children:n})})),B={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:s,...a})=>{const o=`${c.CDN||""}icons/${n}.svg`;return s&&"normal"!==l?h(E,{className:e,children:u("svg",{className:[P(e,a.width),B[l],t,F(l)].join(" "),...a,"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,...a,"aria-hidden":"true"})})),F=e=>"white"===e?"invert":"",P=(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 z(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const G=(e,t)=>e.media&&t.media?e.media-t.media:0,H=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(G).map((({src:e,format:n,media:i},r)=>h("source",{srcSet:e,type:U(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,J(t,n,i)]})})),J=(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,s=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${s} ${t}`,alt:l,title:r,style:i,...e.size})};function U(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:z(t),name:l,...r}):null:h(H,{className:e,imageClassName:n,image:t,isMobile:i})})),Y=p((e=>h(W,{...e,isMobile:!0}))),K=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})})),X=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),q=["PlusIcon","MinusIcon"],Q=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(M,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>h(V,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:k(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>h(Z,{className:l?"":"py-3.5 px-0",label:t,icon:q[Number(e)],primaryIcon:n,onClick:i})})})}));Q.childrenTypes=[];const Z=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(Y,{image:X(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,h(K,{size:"text-m-title-xs",font:"font-medium",children:n})]}),h(Y,{className:"flex-shrink-0",image:X({icon:t}),width:"24",height:"24",asSVG:!0})]}))),ee=p((({className:e="",style:t,idx:n,activeIndex:i,observerOptions:r,children:s,onIntersection:a})=>{const o=C(l((e=>{e.length&&a&&a(n||0,e[e.length-1])}),[a,n]),r);return h("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(n===i),ref:o,children:s})})),te=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]"],ne=p((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:i,gap:r=0,padding:s=0,snapAlign:o="snap-center",children:c,onVisibleItemsChange:d,onVisibleIndicesChange:m})=>{const u={sensitivity:1,rootRef:t},p=a([]),g=l(((e,t)=>{const n=[...p.current||[]];n[e]=t,p.current=n,d&&d(n),m&&m(re(n))}),[d,m]);return h("div",{className:`box-border overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...ie(s),gap:`${r}px`},role:"list",ref:t,children:(b=(e,t)=>h(ee,{className:`${o} ${i?te[i-1]:""}`,style:ie(s/4),activeIndex:n,idx:t,observerOptions:u,onIntersection:g,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(b):b(e,0))(c)});var b})),ie=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),re=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),le=p((({containerRef:e,activeIndex:t,dotCount:n=0})=>n?h("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:new Array(n).fill(null).map(((n,i)=>h("div",{className:"cursor-pointer bg-primary-main h-2 rounded-full transition-width duration-300 "+(i===t?"w-6":"w-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(i)},String(i))))}):null)),se=e=>e,ae=(e=se)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),oe=(e=se)=>ae((t=>-e(t))),ce=e=>t=>e.scrollWidth/t,de=e=>(t,n)=>{e.scrollBy({left:n*ce(e)(t),behavior:"smooth"})},me=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const r=a(null),[s,o]=i([]),c=l((e=>{o((t=>{return(n=t)===(i=e)||Boolean(n&&i&&n?.length===i?.length&&n.every(((e,t)=>e===i[t])))?t:e;var n,i})),n&&n(e)}),[e]),[d,m]=s.length?[oe()(s),ae()(s)]:[-1,-1],h=d>0,u=m<e-1,p=l((()=>{var n;r.current&&(t&&!h?(n=r.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):de(r.current)(e,-1))}),[t,e,h]),g=l((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):de(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:g,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},he=p((({className:e,gap:t=14,padding:n=16,showDots:i=!0,children:r,onVisibleIndicesChange:l})=>{const s=Array.isArray(r)?r.length:0,[a,o]=me({itemCount:s,onVisibleIndicesChange:l}),[c]=o.visibleIndicesRange;return u("div",{className:e,children:[h(ne,{containerRef:a,activeIndex:c,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:o.handleVisibleIndicesChange,children:r}),i?h(le,{containerRef:a,activeIndex:c,dotCount:s}):null]})}));const ue=e=>e?.includes("//"),pe=e=>(e||"").replace(/\/?\?.*/,""),ge=e=>{if(!e||!ue(e))return;const t=e,n=t.indexOf("//"),i=t.indexOf("/",n+"//".length);return-1!==i?t.substring(0,i):t},be=e=>e?.startsWith("#");var xe=Object.freeze({__proto__:null,isURL:ue,withoutQuery:pe,getOrigin:ge,getHash:e=>{if(!e||!ue(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:be});const fe=(e,t)=>fe._impl(e,t);function Ne(){return Ne._impl()}function ye(){const e=Ne(),t=_.inst;return n=>{const i=((e,t)=>{if(!e)return e;const n=ge(t?.href);return n?e.replace(n,"")||"/":e})(n.href,e);return{...n,href:i,"aria-label":n.text,onClick:fe((r=>{n.onClick&&n.onClick(r);const l=i&&!ue(i),s=!n.target||"_self"===n.target;l&&s&&(r?.preventDefault(),be(i)?t.goto(i):e.push(i))}),n)}}}fe._impl=e=>e,fe.setup=e=>{fe._impl=e},Ne._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),Ne.setup=e=>{Ne._impl=e};const ve={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:""},we="bg-main-divider text-main-disabled",ke={primary:we,secondary:we,white:we,link:""},$e="text-center font-sans select-none",Ce={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:""},Se=p((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return u("div",{className:Te(e),children:[i?h("div",{className:Ce[l],children:i}):null,_e(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:Ce[l],children:r}):null]})})),Te=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",_e(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},_e=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Ie=({className:e,rounded:t,version:n})=>["inline-block",$e,n?ke[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Re=({className:e,rounded:t,version:n})=>[$e,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",n?ve[n]:"",t?"rounded-full":"rounded-md",e].join(" "),je=p((({disabled:e,children:t,...n})=>{const i=ye()(n),r=t??h(Se,{...i});return h(e?De:Ae,{...i,children:r})})),Ae=p((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:s,onClick:a,children:o})=>h("a",{className:Re({className:e,version:l,rounded:s}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:a,children:o}))),De=p((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Ie({className:e,rounded:i,version:n}),children:r}))),Oe=(e=!1)=>e?"text-white":"",Me=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Ve=p((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>u("div",{role:"columnheader",children:[e?h(Y,{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(Y,{image:t})}),n?h(j,{headingType:"h4",className:Oe(r),title:n}):null,i?h("div",{className:Me(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(Le(n,t))})}))),Le=(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)),Fe=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const s=t?.slice(0,r?t.length:n),a=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(Ve,{...e,isFillGradient:i}),s?.length?s.map((({rowHeader:e,cell:t},n)=>h(Be,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?h(je,{href:e.link.href,target:e.link.target,version:a,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Pe({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),Pe=({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?"Скрыть":"Показать описание"})}),Ee=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(j,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h(ze,{...e})})]})})),ze=p((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:s,...a})=>{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(Fe,{visibleRowLength:r,showRow:o[l],header:i,columnData:(s=e,s?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...a},String(l));var s}));return"horizontal"===s?h(he,{onVisibleIndicesChange:m,children:u}):u})),Ge=new Map;function He(e,t,{fallback:n}={}){const l=s((()=>Je(e)),[e]),[a,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=>Ge.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:a||c||!p?a:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Je(e){return e?Array.isArray(e)?e:e instanceof Function?Je(e()):[e]:[e]}async function Ue(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function We(e,t={}){const{data:n}=He(`/wcms-resources/${e}.json`,Ue,{fallback:t});return n||{}}const Ye=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",s=t?" placeholder-transparent":"h-full",a=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(Y,{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 ${s}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:a}),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(Y,{image:"CloseIcon",width:"24",height:"24"})}):h(je,{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:"Найти"})})]})})),Ke=p((e=>h(Ye,{...e,isMobile:!0}))),Xe=p((({className:e="",documents:t,...n})=>h(I,{className:`font-sans bg-white mt-2.5 ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?qe(t):null})}))),qe=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)}`)})),Qe={"bg-white":"color",transparent:"white"},Ze={"bg-white":"text-primary-main",transparent:"text-white"},et={"bg-white":"text-black",transparent:"text-white"},tt=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(Y,{image:{icon:"LogoIcon",iconVersion:Qe[r]},className:`${Ze[r]}`,width:"34",height:"34",asSVG:!0}),l?h("span",{className:`${et[r]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"}):null]}))),nt=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-12 h-12",children:h(tt,{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}))),it=p((({className:e="",items:t,hasButton:n})=>u("div",{className:e,children:[t?.length?t.map(rt):null,n?h(je,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),rt=(e,t)=>{const{type:n,text:i,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:lt(n,i)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},lt=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${st(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})}},st=e=>e.replaceAll(/\D/g,""),at=p((({className:e="",index:t,text:n,...i})=>{const r=ye(),{href:l,target:s,onClick:a}=r(i);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:s,onClick:a,children:n||`Документ ${t}`})})),ot=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(at,{index:t,className:"text-s",...e},String(t))))}):null]}))),ct=[{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"}],dt=p((({version:e="primary",...t})=>{const n=ye(),{href:i,onClick:r}=n(t),{icon:l,label:s}=ct.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 border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:i,"aria-label":s,target:"_blank",rel:"noopener noreferrer",onClick:r,children:l?h(Y,{image:X(l),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),mt=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(dt,{version:n,...e},String(t))))}))),ht=p((({className:e="",index:t,...n})=>{const i=ye(),{href:r,target:l,text:s,onClick:a}=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:a,children:s||`Документ ${t}`})})),ut=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(ht,{index:t,...e},String(t))))}):null]}))),pt=p((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=We(c.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:s,socialMedia:a,horizontalNavigationTitle:o}=We(c.FOOTER||"footer",n);return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(it,{className:"overflow-hidden",items:s,hasButton:!0}),h(D,{children:i.topItems?.map(((e,t)=>h(Q,{label:e.text,children:h(Xe,{documents:e.items})},String(t))))}),h("div",{children:i?.dispositions?.map(gt)}),h(nt,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),h(Ke,{className:"grow"}),h(mt,{className:"pb-4",media:a}),h(ot,{title:o,links:l}),h(ut,{links:r})]})})),gt=(e,t)=>{const{icon:n,href:i,text:r}=e;return u(je,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?h(Y,{className:"pr-1",image:X(n),width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},bt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},xt=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(j,{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]}),ft(r,n)]})));function ft(e,t){return"horizontal"===e?h(he,{children:t?.map(Nt)}):h("div",{className:"grid gap-3.5",children:t?.map(Nt)})}function Nt(e,t){return u("div",{className:`w-full h-full flex flex-col justify-between shrink-0 box-border snap-start snap-always border-solid border rounded-md border-main-stroke p-4\n ${bt[e.version??"primary"]}`,children:[u("div",{children:[yt(e.icon),e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?vt(e):null,e.items?.length?kt(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(je,{className:"mt-3",...n})):null]},t);var n}const yt=e=>e?.src||e?.icon?h("div",{className:"flex justify-center",children:h(Y,{className:"mb-3.5",image:e})}):null;function vt(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const wt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function kt(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 ${wt[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 $t=(e,t,n=((e,t)=>t.startsWith(e)))=>n(pe(e),pe(ue(e)?t.href:t.pathname)),Ct=e=>t=>$t(t.href,e),St=e=>t=>t.items?.some(Ct(e))||$t(t.href,e)||((e,t)=>ge(e)===ge(t.href))(t.href,e),Tt="absolute left-0 -bottom-3 w-full h-0.5",_t=p((({className:e="",text:t,href:n,target:i,active:r,onClick:l,children:s,bgColor:a="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:It(a,r),children:t||s}),r?h("div",{className:Rt(a,r)}):null]}))),It=(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`},Rt=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Tt}`:Tt,jt=o("https://10.80.4.9");const At=p((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:s})=>{const[a,o]=function(e){const[t,n]=i(e);return r((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,l((()=>{jt.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(Y,{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(Y,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),a]}),s,h("div",{className:"mb-7",children:e?.map(Dt)}),h(Ke,{className:"grow"})]})})),Dt=(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(Y,{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}`)},Ot=p((({onClick:e,bgColor:t})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-12",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(Y,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(tt,{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:"Войти"})]}))),Mt=p((({className:e="",bgColor:t="bg-white",...n})=>{const r=Ne(),s=n.options?.page?.fallback,{topItems:a,dispositions:o,defaultLocation:d}=We(c.SITEMAP||"sitemap",s),m=a?.find(St(r)),p=m?.items,g=(e=>(t=[])=>{const n=t?.filter(Ct(e));return n?.length?ae((e=>e.href?.length||0))(n):void 0})(r)(p),[b,x]=i(!1),f=l((()=>x((e=>!e))),[]);return u("header",{className:`${t} ${e}`,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(Ot,{onClick:f,bgColor:t}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-12",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:p?.map(((e,n)=>h(_t,{className:"mr-8 whitespace-nowrap text-s",active:e===g,bgColor:t,...e},String(n))))})})]}),b?h(At,{onClick:f,burgerSubMenu:o,defaultLocation:d,children:h(D,{children:a?.map(((e,t)=>h(Q,{label:e.text,children:h(Xe,{documents:e.items})},String(t))))})}):null]})})),Vt={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"}},Lt=p((({bgColorHeadline:e="transparent",className:t="",title:n,description:i,image:r,align:l="left"})=>{const s=Bt[e];return u("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${s.background} ${t}`,children:[n?h(j,{headingType:"h2",className:`${s.text} ${Vt[l]}`,title:n}):null,i?h("p",{className:`text-m ${s.description} ${Vt[l]}`,children:i}):null,r?.src&&h("div",{className:"mt-2.5 mx-auto flex justify-center",children:h(Y,{image:r})})]})})),Ft=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:l})=>{const{text:s,fileSize:a,...o}=r;return u("a",{className:e,role:"link",...o,children:[l?h(Y,{className:t,image:X(l),width:"24px",height:"24px",asSVG:!0}):null,s?u("span",{className:n,children:[s,h("span",{className:i,children:o?.href&&Pt(Et(o.href),a)})]}):null]})})),Pt=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Et=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},zt=p((({className:e="",doc:t,icon:n})=>h(Ft,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),Gt=p((({hasBorder:e=!0,documents:t,icon:n})=>h(he,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>h(zt,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),Ht=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(zt,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Jt=p((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:l="vertical",hasBorder:s=!0,...a})=>u("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[h(Lt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:"center",...a}),h("vertical"===l?Ht:Gt,{hasBorder:s,documents:r,icon:i})]}))),Ut=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Wt(e=""){const t=Ut(e);return t<=4?"S":t<=8?"M":"L"}function Yt(e=""){const t=Ut(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Kt(e=""){const t=Ut(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Xt=p((({className:e,title:t,description:n="Блок в разработке...",...i})=>u(I,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Kt(e)} ${Yt(e)} `,...i,children:[h(Lt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Wt(e),...i}),h("figure",{className:"m-0 min-w-[80%]",children:qt()})]}))),qt=(e=3)=>Zt(100,e).map((e=>Math.floor(e))).map(Qt),Qt=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Zt=(e,t)=>[e].concat(t>0?Zt(e/1.618,t-1):[]),en=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>tn({button:e,index:t})))}):null));function tn({button:e,buttonClassName:t,index:n}){const{icon:i,iconRight:r,version:l,...s}=e,a="secondary"===l?"color":"white",o=nn({...i,iconVersion:a}),c=nn({...r,iconVersion:a});return h(je,{className:t,appendLeft:o,appendRight:c,version:l,...s},n?String(n):"")}const nn=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(Y,{image:{...e},width:t,height:"24",asSVG:!0})},rn={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},ln={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"},sn=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 ${rn[i]} ${ln[r]}`})}):null,h("span",{children:n})]}))),an={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},on={S:"text-l-light",M:"text-h6",L:"text-h5"},cn={S:"ml-2",M:"ml-3",L:"ml-4"},dn=p((e=>{const{className:t="",hasIndent:n,isDotted:i,itemClassName:r="",items:l,listItemSize:s="M",version:a="primary"}=e;return l?.length?h("section",{className:`${an[a]} ${on[s]} ${t} ${n?cn[s]:""}`,role:"list",children:l.map(((e,t)=>h(sn,{className:`${r} mb-1.5`,isDotted:i,version:a,size:s,children:e},String(t))))}):null})),mn=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]})]}))),hn={primary:"text-primary-text",secondary:"text-white"},un={primary:"text-secondary-text",secondary:"text-white"},pn=p((e=>{const{className:t="",icon:n,label:i,description:r,version:l="primary",benefitsVersion:s="normal"}=e,a="white"===s?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:gn(l,s),children:h(Y,{className:"w-6 h-6",image:X(n,a),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[i?h("div",{className:`text-h6 ${hn[l]}`,children:i}):null,r?h("div",{className:`text-m-light ${un[l]}`,children:r}):null]})]})}));function gn(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-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const bn=(e="primary",t="normal")=>({icon:n,label:i,description:r},l)=>h(pn,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(l)),xn=p((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:l,items:s,version:a="primary",isDotted:o=!0,label:c,...d})=>u("div",{className:`w-full ${e}`,children:[u("div",{children:[c?yn(c,a):null,h(Lt,{className:"!p-0 max-w-[600px]",bgColorHeadline:a,headlineVersion:t,...d}),u(mn,{buttons:r?.length?h(en,{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(bn(a,i))}):null,s?.length?h(dn,{className:"mt-3 text-m",items:s,version:a,isDotted:o}):null]})]}),fn(l)]})));function fn(e){return e?.src?h(Y,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const Nn={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},yn=(e,t)=>h("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${Nn[t]}`,children:e}),vn=p((e=>{const{className:t="",version:n="primary"}=e;return h("section",{className:`font-sans bg-white px-4 py-6 ${bt[n]} ${t}`,children:h(xn,{...e})})})),wn={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"}},kn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},$n={normal:"min-h-[70px]",small:"min-h-12"},Cn=p((({className:e,title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:s="primary"})=>{const a=wn[s];return u("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${a.background} ${a.title} ${e||""}`,children:[t?h(j,{headingType:"h3",className:`text-center ${a.title}`,title:t}):null,n?h("p",{className:`text-m-light text-center ${a.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(Sn(l,s,i))})}):null]})})),Sn=(e,t,n)=>(i,r,l)=>{const s=l.length-1===r,a="normal"===e?"ml-[34px]":"ml-6",o=wn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[Tn(e,t)(i,r),s?null:h("div",{className:`min-h-8 h-full w-0.5 ${n?o.iconConnector:""} ${a}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${$n[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))},Tn=(e,t)=>(n,i)=>{const r=wn[t],l="normal"===e?"38":"27",s="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${kn[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} ${s}`,children:(a=n?.icon,Boolean(a?.icon||a?.src)?h(Y,{image:X({...n.icon},t),width:l,height:l,asSVG:!0}):h("span",{children:i+1}))})});var a},_n={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,icon:t,...n},i)=>tn({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(Y,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(dn,{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]})},In=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(j,{headingType:"h3",className:"font-medium",title:e}):null,t?h(Y,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Rn=p((({tile:e,...t})=>u("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[h(In,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,jn(e,t)]},String(n)))):null]})));function jn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in _n))return null;const n=_n[e.tableCellType];return h(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const An=p((({tiles:e,...t})=>e?.length?h(he,{...t,children:e.map(((e,n)=>h(Rn,{tile:e,...t},String(n))))}):null)),Dn=p((({tiles:e,...t})=>e?.length?h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>h(Rn,{tile:e,...t},String(n))))}):null)),On=p((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...s})=>{const a=Mn(i),o=Vn(r,a);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?h(j,{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?Dn:An,{tiles:o,...s})]})})),Mn=e=>e?.[0]?.data?e[0].data:[],Vn=(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"}},Ln=p((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:l="",items:s,isDotted:a=!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?Fn(o.icon):null,"big"===i?Pn(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,s?.length?h(dn,{className:"mt-1 text-m",items:s,isDotted:a,version:c}):null]})]})}));function Fn(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 Pn(e){return e?.src?h(Y,{className:"pb-3 mr-auto",image:e}):null}const En={Accordion:O,AccordionItem:Q,ComparisonTable:Ee,Footer:pt,Gallery:xt,Header:Mt,Headline:Lt,LinkDocs:Jt,LinkList:Xe,MobileAppTile:nt,ProductBlock:vn,StepsBlock:Cn,TariffsTable:On,TextBlock:Ln,Placeholder:Xt},zn=["Header","Footer"],Gn=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Hn(e=_.inst,t=globalThis){const n=a(new Map);r((()=>e.eventBus.subscribe("intersection",(({block:e,intersection:t})=>{n.current&&n.current.set(e,t)}))),[e]),r((()=>{const i=((e,t=600)=>{let n;const i=(...r)=>{i.dispose(),n=setTimeout((()=>{e(...r)}),t)};return i.dispose=()=>{n&&clearTimeout(n)},i})((()=>{if(!(globalThis.scrollY>3*globalThis.innerHeight/4))return void e.reset();const t=function(e){const t=e.filter((([e])=>!zn.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?oe(Gn)(t):[];return n}([...n.current||[]]);t?.anchor?e.replace(t.anchor):t||e.reset()}),100);return t.addEventListener("scroll",i),()=>{i.dispose(),t.removeEventListener("scroll",i)}}),[e,t])}const Jn=m();const Un=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:Wn()}))),Wn=()=>{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"})]})},Yn=p((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await Jn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await Jn.like(e))}),[e]),dislike:l((async()=>{n(await Jn.dislike(e))}),[e])}}(Ne().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(Un,{onClick:fe(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(Un,{onClick:fe(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),Kn=p((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:s,slots:a,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return Hn(),u("section",{className:`relative ${b(l)} ${t}`,"data-theme":c,children:[a?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(a?.header,{...d,slotName:"header"})}):null,u("div",{className:"container grid grid-cols-12 gap-1",children:[w(s,d),a?.footer?w(a?.footer,{...d,slotName:"footer"}):null]}),o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Yn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Kn.childrenTypes=[],Kn.slots=()=>["header","footer"];e.Blocks=En,e.ContentPage=Kn,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=fe,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.6.39",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=xe,e.useRouter=Ne,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"),s=n("useMemo"),a=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:g(e)),t._tmpl},g=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,s=i||l&&l();return e(Object.assign(r,s&&{children:s}),n)}return t.inheritAttrs=!1,t};function b(e){return e?e.filter(Boolean).join(" "):""}const x=({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=x,blocksRegistry:r={},ancestors:l=f,className:s=""}=t,{type:a}=e;a&&a in r||console.warn(`No block with "${a}" is registered`);const o=a&&r[a];return i({blockClassName:`scroll-mt-12 ${s} ${b(e.style||N)}`,block:e,ancestors:l,render:({block:i,blockClassName:r})=>{const{content:l}=i;return o?h(o,{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,s)=>r(e,{...l,key:`${t||e.type}-${s}`,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]||[]).concat(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){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}function C(e,{sensitivity:t,rootRef:n}={}){const i=a(null),l=s((()=>({threshold:S(t),root:n?.current})),[t,n?.current]);return r((()=>{if(!i.current)return;const t=new IntersectionObserver(e,l);return t.observe(i.current),()=>{t.disconnect()}}),[e,l]),i}function S(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const T=e=>e?.replace("#","");class _{static inst=new _;eventBus=new $;constructor(){const e=T(globalThis.location?.hash);e&&this.eventBus.subject("goto",{anchor:e})}goto(e){const t=T(e);t&&(this.push(t),this.eventBus.fire("goto",{anchor:t}))}push(e){globalThis.history?.pushState(null,"",`#${T(e)}`)}replace(e){globalThis.history?.replaceState(null,"",`#${T(e)}`)}reset(){globalThis.history?.replaceState(null,"","#")}}const I=p((({className:e,block:t,tag:n="section",role:s,children:a})=>{const o=n,c=function(e,t=_.inst){const n=C(l((n=>{if(!e||!n?.length)return;const i=n[n.length-1];t.eventBus.fire("intersection",{block:e,intersection:i})}),[e,t]),{sensitivity:1});return r((()=>{if(n.current)return t.eventBus.subscribe("goto",(({anchor:t})=>{n.current&&e?.anchor===t&&n.current.scrollIntoView({behavior:"smooth",block:"start"})}))}),[e,t]),n}(t),[d,m]=i(!0);return r((()=>$.inst.subscribe("tab",(e=>{if("group"===e.type){const n=t?.labels?.length||t?.anchor;m(!e.label||(!n||Boolean(t?.labels?.includes(e.label))))}else m(!0)}))),[t]),d?h(o,{className:e,role:s,...t?.anchor?{id:t.anchor,ref:c}:{},children:a}):null})),R={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"},j=p((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return h(r,{className:`font-sans font-medium m-0 ${R[n]} ${t||""}`,children:i})})),A=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}))),O=p((({title:e,description:t,className:n="",...i})=>u(I,{className:`py-6 px-4 bg-white text-primary-text ${n}`,...i,children:[e?h(j,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5",children:h(A,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,h(D,{children:k(i)})]})));O.childrenTypes=["AccordionItem"];const V=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[s,a]=i(t),o=l((()=>{a((e=>!e))}),[]),c=n({isUnfolded:s,onToggle:o}),d=r?r({isUnfolded:s,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),M=p((({className:e="",isUnfolded:t,children:n})=>{const i=a(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 ${i.current||!t?"max-h-0":""} ${e}`,children:n})})),B={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:s,...a})=>{const o=`${c.CDN||""}icons/${n}.svg`;return s&&"normal"!==l?h(E,{className:e,children:u("svg",{className:[P(e,a.width),B[l],t,F(l)].join(" "),...a,"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,...a,"aria-hidden":"true"})})),F=e=>"white"===e?"invert":"",P=(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 z(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const G=(e,t)=>e.media&&t.media?e.media-t.media:0,H=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(G).map((({src:e,format:n,media:i},r)=>h("source",{srcSet:e,type:U(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,J(t,n,i)]})})),J=(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,s=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${s} ${t}`,alt:l,title:r,style:i,...e.size})};function U(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:z(t),name:l,...r}):null:h(H,{className:e,imageClassName:n,image:t,isMobile:i})})),Y=p((e=>h(W,{...e,isMobile:!0}))),K=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})})),X=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),q=["PlusIcon","MinusIcon"],Q=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(V,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>h(M,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:k(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>h(Z,{className:l?"":"py-3.5 px-0",label:t,icon:q[Number(e)],primaryIcon:n,onClick:i})})})}));Q.childrenTypes=[];const Z=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(Y,{image:X(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,h(K,{size:"text-m-title-xs",font:"font-medium",children:n})]}),h(Y,{className:"flex-shrink-0",image:X({icon:t}),width:"24",height:"24",asSVG:!0})]}))),ee=p((({className:e="",style:t,idx:n,activeIndex:i,observerOptions:r,children:s,onIntersection:a})=>{const o=C(l((e=>{e.length&&a&&a(n||0,e[e.length-1])}),[a,n]),r);return h("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(n===i),ref:o,children:s})})),te=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],ne=p((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:i,gap:r=0,padding:s=0,snapAlign:o="snap-center",children:c,onVisibleItemsChange:d,onVisibleIndicesChange:m})=>{const u={sensitivity:1,rootRef:t},p=a([]),g=l(((e,t)=>{const n=[...p.current||[]];n[e]=t,p.current=n,d&&d(n),m&&m(re(n))}),[d,m]);return h("div",{className:`box-border overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...ie(s),gap:`${r}px`},role:"list",ref:t,children:(b=(e,t)=>h(ee,{className:`${o} ${i?te[i-1]:""}`,style:ie(s/4),activeIndex:n,idx:t,observerOptions:u,onIntersection:g,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(b):b(e,0))(c)});var b})),ie=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),re=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),le=p((({containerRef:e,activeIndex:t,dotCount:n=0})=>n?h("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:new Array(n).fill(null).map(((n,i)=>h("div",{className:"cursor-pointer bg-primary-main h-2 rounded-full transition-width duration-300 "+(i===t?"w-6":"w-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(i)},String(i))))}):null)),se=e=>e,ae=(e=se)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),oe=(e=se)=>ae((t=>-e(t))),ce=e=>t=>e.scrollWidth/t,de=e=>(t,n)=>{e.scrollBy({left:n*ce(e)(t),behavior:"smooth"})},me=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const r=a(null),[s,o]=i([]),c=l((e=>{o((t=>{return(n=t)===(i=e)||Boolean(n&&i&&n?.length===i?.length&&n.every(((e,t)=>e===i[t])))?t:e;var n,i})),n&&n(e)}),[e]),[d,m]=s.length?[oe()(s),ae()(s)]:[-1,-1],h=d>0,u=m<e-1,p=l((()=>{var n;r.current&&(t&&!h?(n=r.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):de(r.current)(e,-1))}),[t,e,h]),g=l((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):de(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:g,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},he=p((({className:e,gap:t=14,padding:n=16,showDots:i=!0,children:r,onVisibleIndicesChange:l})=>{const s=Array.isArray(r)?r.length:0,[a,o]=me({itemCount:s,onVisibleIndicesChange:l}),[c]=o.visibleIndicesRange;return u("div",{className:e,children:[h(ne,{containerRef:a,activeIndex:c,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:o.handleVisibleIndicesChange,children:r}),i?h(le,{containerRef:a,activeIndex:c,dotCount:s}):null]})}));const ue=e=>e?.includes("//"),pe=e=>(e||"").replace(/\/?\?.*/,""),ge=e=>{if(!e||!ue(e))return;const t=e,n=t.indexOf("//"),i=t.indexOf("/",n+"//".length);return-1!==i?t.substring(0,i):t},be=e=>e?.startsWith("#");var xe=Object.freeze({__proto__:null,isURL:ue,withoutQuery:pe,getOrigin:ge,getHash:e=>{if(!e||!ue(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:be});const fe=(e,t)=>fe._impl(e,t);function Ne(){return Ne._impl()}function ye(){const e=Ne(),t=_.inst;return n=>{const i=((e,t)=>{if(!e)return e;const n=ge(t?.href);return n?e.replace(n,"")||"/":e})(n.href,e);return{...n,href:i,"aria-label":n.text,onClick:fe((r=>{n.onClick&&n.onClick(r);const l=i&&!ue(i),s=!n.target||"_self"===n.target;l&&s&&(r?.preventDefault(),be(i)?t.goto(i):e.push(i))}),n)}}}fe._impl=e=>e,fe.setup=e=>{fe._impl=e},Ne._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),Ne.setup=e=>{Ne._impl=e};const ve={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:""},we="bg-main-divider text-main-disabled",ke={primary:we,secondary:we,white:we,link:""},$e="text-center font-sans select-none",Ce={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:""},Se=p((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return u("div",{className:Te(e),children:[i?h("div",{className:Ce[l],children:i}):null,_e(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:Ce[l],children:r}):null]})})),Te=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",_e(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},_e=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Ie=({className:e,rounded:t,version:n})=>["inline-block",$e,n?ke[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Re=({className:e,rounded:t,version:n})=>[$e,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",n?ve[n]:"",t?"rounded-full":"rounded-md",e].join(" "),je=p((({disabled:e,children:t,...n})=>{const i=ye()(n),r=t??h(Se,{...i});return h(e?De:Ae,{...i,children:r})})),Ae=p((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:s,onClick:a,children:o})=>h("a",{className:Re({className:e,version:l,rounded:s}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:a,children:o}))),De=p((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Ie({className:e,rounded:i,version:n}),children:r}))),Oe=(e=!1)=>e?"text-white":"",Ve=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Me=p((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>u("div",{role:"columnheader",children:[e?h(Y,{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(Y,{image:t})}),n?h(j,{headingType:"h4",className:Oe(r),title:n}):null,i?h("div",{className:Ve(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(Le(n,t))})}))),Le=(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)),Fe=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const s=t?.slice(0,r?t.length:n),a=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(Me,{...e,isFillGradient:i}),s?.length?s.map((({rowHeader:e,cell:t},n)=>h(Be,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?h(je,{href:e.link.href,target:e.link.target,version:a,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Pe({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),Pe=({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?"Скрыть":"Показать описание"})}),Ee=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(j,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h(ze,{...e})})]})})),ze=p((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:s,...a})=>{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(Fe,{visibleRowLength:r,showRow:o[l],header:i,columnData:(s=e,s?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...a},String(l));var s}));return"horizontal"===s?h(he,{onVisibleIndicesChange:m,children:u}):u})),Ge=new Map;function He(e,t,{fallback:n}={}){const l=s((()=>Je(e)),[e]),[a,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=>Ge.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:a||c||!p?a:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Je(e){return e?Array.isArray(e)?e:e instanceof Function?Je(e()):[e]:[e]}async function Ue(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function We(e,t={}){const{data:n}=He(`/wcms-resources/${e}.json`,Ue,{fallback:t});return n||{}}const Ye=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",s=t?" placeholder-transparent":"h-full",a=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(Y,{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 ${s}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:a}),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(Y,{image:"CloseIcon",width:"24",height:"24"})}):h(je,{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:"Найти"})})]})})),Ke=p((e=>h(Ye,{...e,isMobile:!0}))),Xe=p((({className:e="",documents:t,...n})=>h(I,{className:`font-sans bg-white mt-2.5 ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?qe(t):null})}))),qe=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)}`)})),Qe={"bg-white":"color",transparent:"white"},Ze={"bg-white":"text-primary-main",transparent:"text-white"},et=(e,t,n)=>h(Y,t?.src?{image:t,className:Ze[e],width:n?.width,height:n?.height,asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:Qe[e]},className:Ze[e],width:n?.width,height:n?.height,asSVG:!0}),tt={"bg-white":"text-primary-text",transparent:"text-white"},nt=(e,t,n)=>h("span",{className:`${tt[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),it=p((({bgColor:e="bg-white",children:t,className:n="",href:i,logo:r,showTitle:l=!0,targetBlank:s})=>u("a",{className:`inline-flex items-center font-sans no-underline ${n}`,href:i||"https://rshb.ru/",target:s?"_blank":"_self","aria-label":r?.title||"Россельхозбанк",children:[et(e,r?.image,{width:"34",height:"34"}),l?nt(t||r?.title,e,"text-s"):null]}))),rt=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-12 h-12",children:h(it,{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}))),lt=p((({className:e="",items:t,hasButton:n})=>u("div",{className:e,children:[t?.length?t.map(st):null,n?h(je,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),st=(e,t)=>{const{type:n,text:i,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:at(n,i)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},at=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${ot(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})}},ot=e=>e.replaceAll(/\D/g,""),ct=p((({className:e="",index:t,text:n,...i})=>{const r=ye(),{href:l,target:s,onClick:a}=r(i);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:s,onClick:a,children:n||`Документ ${t}`})})),dt=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(ct,{index:t,className:"text-s",...e},String(t))))}):null]}))),mt=[{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"}],ht=p((({version:e="primary",...t})=>{const n=ye(),{href:i,onClick:r}=n(t),{icon:l,label:s}=mt.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 border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:i,"aria-label":s,target:"_blank",rel:"noopener noreferrer",onClick:r,children:l?h(Y,{image:X(l),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),ut=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(ht,{version:n,...e},String(t))))}))),pt=p((({className:e="",index:t,...n})=>{const i=ye(),{href:r,target:l,text:s,onClick:a}=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:a,children:s||`Документ ${t}`})})),gt=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(pt,{index:t,...e},String(t))))}):null]}))),bt=p((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=We(c.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:s,socialMedia:a,horizontalNavigationTitle:o}=We(c.FOOTER||"footer",n);return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(lt,{className:"overflow-hidden",items:s,hasButton:!0}),h(D,{children:i.topItems?.map(((e,t)=>h(Q,{label:e.text,children:h(Xe,{documents:e.items})},String(t))))}),h("div",{children:i?.dispositions?.map(xt)}),h(rt,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),h(Ke,{className:"grow"}),h(ut,{className:"pb-4",media:a}),h(dt,{title:o,links:l}),h(gt,{links:r})]})})),xt=(e,t)=>{const{icon:n,href:i,text:r}=e;return u(je,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?h(Y,{className:"pr-1",image:X(n),width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},ft={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Nt=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(j,{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]}),yt(r,n)]})));function yt(e,t){return"horizontal"===e?h(he,{children:t?.map(vt)}):h("div",{className:"grid gap-3.5",children:t?.map(vt)})}function vt(e,t){return u("div",{className:`w-full h-full flex flex-col justify-between shrink-0 box-border snap-start snap-always border-solid border rounded-md border-main-stroke p-4\n ${ft[e.version??"primary"]}`,children:[u("div",{children:[wt(e.icon),e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?kt(e):null,e.items?.length?Ct(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(je,{className:"mt-3",...n})):null]},t);var n}const wt=e=>e?.src||e?.icon?h("div",{className:"flex justify-center",children:h(Y,{className:"mb-3.5",image:e})}):null;function kt(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const $t={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function Ct(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 ${$t[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 St=(e,t,n=((e,t)=>t.startsWith(e)))=>n(pe(e),pe(ue(e)?t.href:t.pathname)),Tt=e=>t=>St(t.href,e),_t=e=>t=>t.items?.some(Tt(e))||St(t.href,e)||((e,t)=>ge(e)===ge(t.href))(t.href,e),It="absolute left-0 -bottom-3 w-full h-0.5",Rt=p((({className:e="",text:t,href:n,target:i,active:r,onClick:l,children:s,bgColor:a="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:jt(a,r),children:t||s}),r?h("div",{className:At(a,r)}):null]}))),jt=(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`},At=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${It}`:It,Dt=o("https://10.80.4.9");const Ot=p((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:s})=>{const[a,o]=function(e){const[t,n]=i(e);return r((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,l((()=>{Dt.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(Y,{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(Y,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),a]}),s,h("div",{className:"mb-7",children:e?.map(Vt)}),h(Ke,{className:"grow"})]})})),Vt=(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(Y,{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}`)},Mt=p((({onClick:e,bgColor:t,logo:n})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-12",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(Y,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(it,{className:"mr-8",bgColor:t,logo:n})]}),h("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Bt=p((({className:e="",bgColor:t="bg-white",...n})=>{const r=Ne(),s=n.options?.page?.fallback,{topItems:a,dispositions:o,defaultLocation:d,logo:m}=We(c.SITEMAP||"sitemap",s),p=a?.find(_t(r)),g=p?.items,b=(e=>(t=[])=>{const n=t?.filter(Tt(e));return n?.length?ae((e=>e.href?.length||0))(n):void 0})(r)(g),[x,f]=i(!1),N=l((()=>f((e=>!e))),[]);return u("header",{className:`${t} ${e}`,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(Mt,{onClick:N,bgColor:t,logo:m}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-12",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:g?.map(((e,n)=>h(Rt,{className:"mr-8 whitespace-nowrap text-s",active:e===b,bgColor:t,...e},String(n))))})})]}),x?h(Ot,{onClick:N,burgerSubMenu:o,defaultLocation:d,children:h(D,{children:a?.map(((e,t)=>h(Q,{label:e.text,children:h(Xe,{documents:e.items})},String(t))))})}):null]})})),Lt={left:"text-left",center:"text-center",right:"text-right"},Ft={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"}},Pt=p((({bgColorHeadline:e="transparent",className:t="",title:n,description:i,image:r,align:l="left"})=>{const s=Ft[e];return u("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${s.background} ${t}`,children:[n?h(j,{headingType:"h2",className:`${s.text} ${Lt[l]}`,title:n}):null,i?h("p",{className:`text-m ${s.description} ${Lt[l]}`,children:i}):null,r?.src&&h("div",{className:"mt-2.5 mx-auto flex justify-center",children:h(Y,{image:r})})]})})),Et=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:l})=>{const{text:s,fileSize:a,...o}=r;return u("a",{className:e,role:"link",...o,children:[l?h(Y,{className:t,image:X(l),width:"24px",height:"24px",asSVG:!0}):null,s?u("span",{className:n,children:[s,h("span",{className:i,children:o?.href&&zt(Gt(o.href),a)})]}):null]})})),zt=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Gt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Ht=p((({className:e="",doc:t,icon:n})=>h(Et,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),Jt=p((({hasBorder:e=!0,documents:t,icon:n})=>h(he,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>h(Ht,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),Ut=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(Ht,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Wt=p((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:l="vertical",hasBorder:s=!0,...a})=>u("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[h(Pt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:"center",...a}),h("vertical"===l?Ut:Jt,{hasBorder:s,documents:r,icon:i})]}))),Yt=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Kt(e=""){const t=Yt(e);return t<=4?"S":t<=8?"M":"L"}function Xt(e=""){const t=Yt(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function qt(e=""){const t=Yt(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Qt=p((({className:e,title:t,description:n="Блок в разработке...",...i})=>u(I,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${qt(e)} ${Xt(e)} `,...i,children:[h(Pt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Kt(e),...i}),h("figure",{className:"m-0 min-w-[80%]",children:Zt()})]}))),Zt=(e=3)=>tn(100,e).map((e=>Math.floor(e))).map(en),en=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),tn=(e,t)=>[e].concat(t>0?tn(e/1.618,t-1):[]),nn=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>rn({button:e,index:t})))}):null));function rn({button:e,buttonClassName:t,index:n}){const{icon:i,iconRight:r,version:l,text:s,...a}=e,o="secondary"===l?"color":"white",c=ln({...i,iconVersion:o}),d=ln({...r,iconVersion:o});return s?h(je,{className:t,appendLeft:c,appendRight:d,version:l,text:s,...a},n?String(n):""):null}const ln=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(Y,{image:{...e},width:t,height:"24",asSVG:!0})},sn={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},an={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"},on=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 ${sn[i]} ${an[r]}`})}):null,h("span",{children:n})]}))),cn={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},dn={S:"text-l-light",M:"text-h6",L:"text-h5"},mn={S:"ml-2",M:"ml-3",L:"ml-4"},hn=p((e=>{const{className:t="",hasIndent:n,isDotted:i,itemClassName:r="",items:l,listItemSize:s="M",version:a="primary"}=e;return l?.length?h("section",{className:`${cn[a]} ${dn[s]} ${t} ${n?mn[s]:""}`,role:"list",children:l.map(((e,t)=>h(on,{className:`${r} mb-1.5`,isDotted:i,version:a,size:s,children:e},String(t))))}):null})),un=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]})]}))),pn={primary:"text-primary-text",secondary:"text-white"},gn={primary:"text-secondary-text",secondary:"text-white"},bn=p((e=>{const{className:t="",icon:n,label:i,description:r,version:l="primary",benefitsVersion:s="normal"}=e,a="white"===s?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:xn(l,s),children:h(Y,{className:"w-6 h-6",image:X(n,a),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[i?h("div",{className:`text-h6 ${pn[l]}`,children:i}):null,r?h("div",{className:`text-m-light ${gn[l]}`,children:r}):null]})]})}));function xn(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-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const fn=(e="primary",t="normal")=>({icon:n,label:i,description:r},l)=>h(bn,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(l)),Nn=p((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:l,items:s,version:a="primary",isDotted:o=!0,label:c,...d})=>u("div",{className:`w-full ${e}`,children:[u("div",{children:[c?wn(c,a):null,h(Pt,{className:"!p-0 max-w-[600px]",bgColorHeadline:a,headlineVersion:t,...d}),u(un,{buttons:r?.length?h(nn,{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(fn(a,i))}):null,s?.length?h(hn,{className:"mt-3 text-m",items:s,version:a,isDotted:o}):null]})]}),yn(l)]})));function yn(e){return e?.src?h(Y,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const vn={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},wn=(e,t)=>h("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${vn[t]}`,children:e}),kn=p((e=>{const{className:t="",version:n="primary"}=e;return h("section",{className:`font-sans bg-white px-4 py-6 ${ft[n]} ${t}`,children:h(Nn,{...e})})})),$n={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"}},Cn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},Sn={normal:"min-h-[70px]",small:"min-h-12"},Tn=p((({className:e,title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:s="primary"})=>{const a=$n[s];return u("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${a.background} ${a.title} ${e||""}`,children:[t?h(j,{headingType:"h3",className:`text-center ${a.title}`,title:t}):null,n?h("p",{className:`text-m-light text-center ${a.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(_n(l,s,i))})}):null]})})),_n=(e,t,n)=>(i,r,l)=>{const s=l.length-1===r,a="normal"===e?"ml-[34px]":"ml-6",o=$n[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[In(e,t)(i,r),s?null:h("div",{className:`min-h-8 h-full w-0.5 ${n?o.iconConnector:""} ${a}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${Sn[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))},In=(e,t)=>(n,i)=>{const r=$n[t],l="normal"===e?"38":"27",s="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${Cn[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} ${s}`,children:(a=n?.icon,Boolean(a?.icon||a?.src)?h(Y,{image:X({...n.icon},t),width:l,height:l,asSVG:!0}):h("span",{children:i+1}))})});var a},Rn={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,icon:t,...n},i)=>rn({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(Y,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(hn,{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]})},jn=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(j,{headingType:"h3",className:"font-medium",title:e}):null,t?h(Y,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),An=p((({tile:e,...t})=>u("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[h(jn,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,Dn(e,t)]},String(n)))):null]})));function Dn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in Rn))return null;const n=Rn[e.tableCellType];return h(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const On=p((({tiles:e,...t})=>e?.length?h(he,{...t,children:e.map(((e,n)=>h(An,{tile:e,...t},String(n))))}):null)),Vn=p((({tiles:e,...t})=>e?.length?h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>h(An,{tile:e,...t},String(n))))}):null)),Mn=p((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...s})=>{const a=Bn(i),o=Ln(r,a);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?h(j,{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?Vn:On,{tiles:o,...s})]})})),Bn=e=>e?.[0]?.data?e[0].data:[],Ln=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Fn={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"}},Pn=p((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:l="",items:s,isDotted:a=!0})=>{const o=Fn[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?En(o.icon):null,"big"===i?zn(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,s?.length?h(hn,{className:"mt-1 text-m",items:s,isDotted:a,version:c}):null]})]})}));function En(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 zn(e){return e?.src?h(Y,{className:"pb-3 mr-auto",image:e}):null}const Gn={Accordion:O,AccordionItem:Q,ComparisonTable:Ee,Footer:bt,Gallery:Nt,Header:Bt,Headline:Pt,LinkDocs:Wt,LinkList:Xe,MobileAppTile:rt,ProductBlock:kn,StepsBlock:Tn,TariffsTable:Mn,TextBlock:Pn,Placeholder:Qt},Hn=["Header","Footer"],Jn=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Un(e=_.inst,t=globalThis){const n=a(new Map);r((()=>e.eventBus.subscribe("intersection",(({block:e,intersection:t})=>{n.current&&n.current.set(e,t)}))),[e]),r((()=>{const i=((e,t=600)=>{let n;const i=(...r)=>{i.dispose(),n=setTimeout((()=>{e(...r)}),t)};return i.dispose=()=>{n&&clearTimeout(n)},i})((()=>{if(!(globalThis.scrollY>3*globalThis.innerHeight/4))return void e.reset();const t=function(e){const t=e.filter((([e])=>!Hn.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?oe(Jn)(t):[];return n}([...n.current||[]]);t?.anchor?e.replace(t.anchor):t||e.reset()}),100);return t.addEventListener("scroll",i),()=>{i.dispose(),t.removeEventListener("scroll",i)}}),[e,t])}const Wn=m();const Yn=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:Kn()}))),Kn=()=>{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"})]})},Xn=p((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await Wn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await Wn.like(e))}),[e]),dislike:l((async()=>{n(await Wn.dislike(e))}),[e])}}(Ne().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(Yn,{onClick:fe(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(Yn,{onClick:fe(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),qn=p((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:s,slots:a,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return Un(),u("section",{className:`relative ${b(l)} ${t}`,"data-theme":c,children:[a?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(a?.header,{...d,slotName:"header"})}):null,u("div",{className:"container grid grid-cols-12 gap-1",children:[w(s,d),a?.footer?w(a?.footer,{...d,slotName:"footer"}):null]}),o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Xn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));qn.childrenTypes=[],qn.slots=()=>["header","footer"];e.Blocks=Gn,e.ContentPage=qn,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=fe,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.6.41",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=xe,e.useRouter=Ne,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,6 @@
1
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { ButtonBlockContent } from './ButtonBlockContent';
3
+ interface ButtonBlockProps extends ButtonBlockContent, UniBlockProps {
4
+ }
5
+ export declare const ButtonBlock: import("@redneckz/uni-jsx").UNIComponent<ButtonBlockProps, any, any>;
6
+ export {};