@redneckz/wildless-cms-uni-blocks 0.6.35 → 0.6.36

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 (494) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +160 -52
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  5. package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  6. package/bundle/components/Header/HeaderSubMenuItem.d.ts +2 -1
  7. package/bundle/hooks/useIntersectionObserver.d.ts +7 -1
  8. package/bundle/ui-kit/Button/ArrowButton.d.ts +2 -0
  9. package/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  10. package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  11. package/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  12. package/bundle/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  13. package/bundle/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  14. package/bundle/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  15. package/bundle/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  16. package/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  17. package/bundle/utils/areArraysEqual.d.ts +1 -0
  18. package/bundle/utils/mapChildren.d.ts +2 -0
  19. package/bundle/utils/maxBy.d.ts +2 -2
  20. package/bundle/utils/minBy.d.ts +1 -0
  21. package/dist/components/Blocks.js +3 -1
  22. package/dist/components/Blocks.js.map +1 -1
  23. package/dist/components/Carousel/Carousel.js +14 -15
  24. package/dist/components/Carousel/Carousel.js.map +1 -1
  25. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  26. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +12 -0
  27. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  28. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  29. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  30. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  31. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +7 -13
  32. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  33. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +1 -1
  34. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  35. package/dist/components/Gallery/Gallery.mobile.js +1 -1
  36. package/dist/components/Header/HeaderSubMenu.js +1 -1
  37. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  38. package/dist/components/Header/HeaderSubMenuItem.d.ts +2 -1
  39. package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  40. package/dist/components/RollupItem/RollupItem.js +10 -1
  41. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  42. package/dist/hooks/useIntersectionObserver.d.ts +7 -1
  43. package/dist/hooks/useIntersectionObserver.js +10 -1
  44. package/dist/hooks/useIntersectionObserver.js.map +1 -1
  45. package/dist/hooks/useLink.js +1 -1
  46. package/dist/hooks/useLink.js.map +1 -1
  47. package/dist/ui-kit/BlockWrapper.js +1 -11
  48. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  49. package/dist/ui-kit/Button/ArrowButton.d.ts +2 -0
  50. package/dist/ui-kit/Button/ArrowButton.js +3 -1
  51. package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  52. package/dist/ui-kit/Foldable/FoldableSection.js +1 -1
  53. package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  54. package/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  55. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +35 -0
  56. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  57. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  58. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  59. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  60. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  61. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  62. package/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  63. package/dist/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  64. package/dist/ui-kit/SwipeListControl/SwipeListItem.js +16 -0
  65. package/dist/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  66. package/dist/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  67. package/dist/ui-kit/SwipeListControl/scrollBy.js +8 -0
  68. package/dist/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  69. package/dist/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  70. package/dist/ui-kit/SwipeListControl/scrollToEnd.js +7 -0
  71. package/dist/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  72. package/dist/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  73. package/dist/ui-kit/SwipeListControl/scrollToStart.js +7 -0
  74. package/dist/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  75. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  76. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +57 -0
  77. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  78. package/dist/utils/areArraysEqual.d.ts +1 -0
  79. package/dist/utils/areArraysEqual.js +5 -0
  80. package/dist/utils/areArraysEqual.js.map +1 -0
  81. package/dist/utils/mapChildren.d.ts +2 -0
  82. package/dist/utils/mapChildren.js +10 -0
  83. package/dist/utils/mapChildren.js.map +1 -0
  84. package/dist/utils/maxBy.d.ts +2 -2
  85. package/dist/utils/maxBy.js +4 -4
  86. package/dist/utils/maxBy.js.map +1 -1
  87. package/dist/utils/minBy.d.ts +1 -0
  88. package/dist/utils/minBy.js +6 -0
  89. package/dist/utils/minBy.js.map +1 -0
  90. package/lib/common.css +1 -1
  91. package/lib/components/Blocks.js +3 -1
  92. package/lib/components/Blocks.js.map +1 -1
  93. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
  94. package/lib/components/Carousel/Carousel.js +14 -15
  95. package/lib/components/Carousel/Carousel.js.map +1 -1
  96. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  97. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +8 -0
  98. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +10 -0
  99. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  100. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  101. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  102. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  103. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.d.ts +1 -1
  104. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +7 -13
  105. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  106. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +1 -1
  107. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  108. package/lib/components/Gallery/Gallery.mobile.js +1 -1
  109. package/lib/components/Header/HeaderSubMenu.js +1 -1
  110. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  111. package/lib/components/Header/HeaderSubMenuItem.d.ts +2 -1
  112. package/lib/components/Header/HeaderSubMenuItem.js +1 -1
  113. package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  114. package/lib/components/RollupItem/RollupItem.js +10 -1
  115. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  116. package/lib/hooks/useIntersectionObserver.d.ts +7 -1
  117. package/lib/hooks/useIntersectionObserver.js +11 -2
  118. package/lib/hooks/useIntersectionObserver.js.map +1 -1
  119. package/lib/hooks/useLink.js +2 -2
  120. package/lib/hooks/useLink.js.map +1 -1
  121. package/lib/ui-kit/BlockWrapper.js +1 -11
  122. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  123. package/lib/ui-kit/Button/ArrowButton.d.ts +2 -0
  124. package/lib/ui-kit/Button/ArrowButton.js +2 -0
  125. package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  126. package/lib/ui-kit/Foldable/FoldableSection.js +1 -1
  127. package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  128. package/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  129. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +33 -0
  130. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  131. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  132. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  133. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  134. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  135. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  136. package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  137. package/lib/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  138. package/lib/ui-kit/SwipeListControl/SwipeListItem.js +14 -0
  139. package/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  140. package/lib/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  141. package/lib/ui-kit/SwipeListControl/scrollBy.js +5 -0
  142. package/lib/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  143. package/lib/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  144. package/lib/ui-kit/SwipeListControl/scrollToEnd.js +4 -0
  145. package/lib/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  146. package/lib/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  147. package/lib/ui-kit/SwipeListControl/scrollToStart.js +4 -0
  148. package/lib/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  149. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  150. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +54 -0
  151. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  152. package/lib/utils/areArraysEqual.d.ts +1 -0
  153. package/lib/utils/areArraysEqual.js +2 -0
  154. package/lib/utils/areArraysEqual.js.map +1 -0
  155. package/lib/utils/mapChildren.d.ts +2 -0
  156. package/lib/utils/mapChildren.js +7 -0
  157. package/lib/utils/mapChildren.js.map +1 -0
  158. package/lib/utils/maxBy.d.ts +2 -2
  159. package/lib/utils/maxBy.js +2 -2
  160. package/lib/utils/maxBy.js.map +1 -1
  161. package/lib/utils/minBy.d.ts +1 -0
  162. package/lib/utils/minBy.js +3 -0
  163. package/lib/utils/minBy.js.map +1 -0
  164. package/mobile/bundle/bundle.umd.js +141 -140
  165. package/mobile/bundle/bundle.umd.min.js +1 -1
  166. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  167. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  168. package/mobile/bundle/components/Header/HeaderSubMenuItem.d.ts +2 -1
  169. package/mobile/bundle/hooks/useIntersectionObserver.d.ts +7 -1
  170. package/mobile/bundle/ui-kit/Button/ArrowButton.d.ts +2 -0
  171. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  172. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  173. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  174. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  175. package/mobile/bundle/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  176. package/mobile/bundle/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  177. package/mobile/bundle/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  178. package/mobile/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  179. package/mobile/bundle/utils/areArraysEqual.d.ts +1 -0
  180. package/mobile/bundle/utils/mapChildren.d.ts +2 -0
  181. package/mobile/bundle/utils/maxBy.d.ts +2 -2
  182. package/mobile/bundle/utils/minBy.d.ts +1 -0
  183. package/mobile/dist/components/Carousel/Carousel.js +14 -15
  184. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  185. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  186. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +12 -0
  187. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  188. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  189. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  190. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  191. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +7 -13
  192. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  193. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +1 -1
  194. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  195. package/mobile/dist/components/Gallery/Gallery.js +1 -1
  196. package/mobile/dist/components/Header/HeaderSubMenu.js +1 -1
  197. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  198. package/mobile/dist/components/Header/HeaderSubMenuItem.d.ts +2 -1
  199. package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  200. package/mobile/dist/components/RollupItem/RollupItem.js +10 -1
  201. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  202. package/mobile/dist/hooks/useIntersectionObserver.d.ts +7 -1
  203. package/mobile/dist/hooks/useIntersectionObserver.js +10 -1
  204. package/mobile/dist/hooks/useIntersectionObserver.js.map +1 -1
  205. package/mobile/dist/hooks/useLink.js +1 -1
  206. package/mobile/dist/hooks/useLink.js.map +1 -1
  207. package/mobile/dist/ui-kit/BlockWrapper.js +1 -11
  208. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  209. package/mobile/dist/ui-kit/Button/ArrowButton.d.ts +2 -0
  210. package/mobile/dist/ui-kit/Button/ArrowButton.js +3 -1
  211. package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  212. package/mobile/dist/ui-kit/Foldable/FoldableSection.js +1 -1
  213. package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  214. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  215. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +35 -0
  216. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  217. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  218. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  219. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  220. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  221. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  222. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  223. package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  224. package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.js +16 -0
  225. package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  226. package/mobile/dist/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  227. package/mobile/dist/ui-kit/SwipeListControl/scrollBy.js +8 -0
  228. package/mobile/dist/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  229. package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  230. package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.js +7 -0
  231. package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  232. package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  233. package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.js +7 -0
  234. package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  235. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  236. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +57 -0
  237. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  238. package/mobile/dist/utils/areArraysEqual.d.ts +1 -0
  239. package/mobile/dist/utils/areArraysEqual.js +5 -0
  240. package/mobile/dist/utils/areArraysEqual.js.map +1 -0
  241. package/mobile/dist/utils/mapChildren.d.ts +2 -0
  242. package/mobile/dist/utils/mapChildren.js +10 -0
  243. package/mobile/dist/utils/mapChildren.js.map +1 -0
  244. package/mobile/dist/utils/maxBy.d.ts +2 -2
  245. package/mobile/dist/utils/maxBy.js +4 -4
  246. package/mobile/dist/utils/maxBy.js.map +1 -1
  247. package/mobile/dist/utils/minBy.d.ts +1 -0
  248. package/mobile/dist/utils/minBy.js +6 -0
  249. package/mobile/dist/utils/minBy.js.map +1 -0
  250. package/mobile/lib/components/Carousel/Carousel.js +14 -15
  251. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  252. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  253. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +10 -0
  254. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  255. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  256. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  257. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  258. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +7 -13
  259. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  260. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +1 -1
  261. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  262. package/mobile/lib/components/Gallery/Gallery.js +1 -1
  263. package/mobile/lib/components/Header/HeaderSubMenu.js +1 -1
  264. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  265. package/mobile/lib/components/Header/HeaderSubMenuItem.d.ts +2 -1
  266. package/mobile/lib/components/Header/HeaderSubMenuItem.js +1 -1
  267. package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  268. package/mobile/lib/components/RollupItem/RollupItem.js +10 -1
  269. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  270. package/mobile/lib/hooks/useIntersectionObserver.d.ts +7 -1
  271. package/mobile/lib/hooks/useIntersectionObserver.js +11 -2
  272. package/mobile/lib/hooks/useIntersectionObserver.js.map +1 -1
  273. package/mobile/lib/hooks/useLink.js +2 -2
  274. package/mobile/lib/hooks/useLink.js.map +1 -1
  275. package/mobile/lib/ui-kit/BlockWrapper.js +1 -11
  276. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  277. package/mobile/lib/ui-kit/Button/ArrowButton.d.ts +2 -0
  278. package/mobile/lib/ui-kit/Button/ArrowButton.js +2 -0
  279. package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  280. package/mobile/lib/ui-kit/Foldable/FoldableSection.js +1 -1
  281. package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  282. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  283. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +33 -0
  284. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  285. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  286. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  287. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  288. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  289. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  290. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  291. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  292. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js +14 -0
  293. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  294. package/mobile/lib/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  295. package/mobile/lib/ui-kit/SwipeListControl/scrollBy.js +5 -0
  296. package/mobile/lib/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  297. package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  298. package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.js +4 -0
  299. package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  300. package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  301. package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.js +4 -0
  302. package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  303. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  304. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +54 -0
  305. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  306. package/mobile/lib/utils/areArraysEqual.d.ts +1 -0
  307. package/mobile/lib/utils/areArraysEqual.js +2 -0
  308. package/mobile/lib/utils/areArraysEqual.js.map +1 -0
  309. package/mobile/lib/utils/mapChildren.d.ts +2 -0
  310. package/mobile/lib/utils/mapChildren.js +7 -0
  311. package/mobile/lib/utils/mapChildren.js.map +1 -0
  312. package/mobile/lib/utils/maxBy.d.ts +2 -2
  313. package/mobile/lib/utils/maxBy.js +2 -2
  314. package/mobile/lib/utils/maxBy.js.map +1 -1
  315. package/mobile/lib/utils/minBy.d.ts +1 -0
  316. package/mobile/lib/utils/minBy.js +3 -0
  317. package/mobile/lib/utils/minBy.js.map +1 -0
  318. package/mobile/src/common.css +0 -7
  319. package/mobile/src/components/Carousel/Carousel.tsx +41 -23
  320. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +25 -0
  321. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +36 -0
  322. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +1 -0
  323. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +13 -0
  324. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +44 -43
  325. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
  326. package/mobile/src/components/Gallery/Gallery.tsx +1 -1
  327. package/mobile/src/components/Header/HeaderSubMenu.tsx +2 -4
  328. package/mobile/src/components/Header/HeaderSubMenuItem.tsx +5 -2
  329. package/mobile/src/components/RollupItem/RollupItem.tsx +10 -1
  330. package/mobile/src/hooks/useIntersectionObserver.ts +23 -2
  331. package/mobile/src/hooks/useLink.ts +2 -2
  332. package/mobile/src/ui-kit/BlockWrapper.tsx +1 -16
  333. package/mobile/src/ui-kit/Button/ArrowButton.tsx +13 -0
  334. package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +3 -1
  335. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +97 -0
  336. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +31 -55
  337. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +25 -59
  338. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +3 -3
  339. package/mobile/src/ui-kit/SwipeListControl/SwipeListItem.tsx +44 -0
  340. package/mobile/src/ui-kit/SwipeListControl/scrollBy.ts +10 -0
  341. package/mobile/src/ui-kit/SwipeListControl/scrollToEnd.ts +3 -0
  342. package/mobile/src/ui-kit/SwipeListControl/scrollToStart.ts +3 -0
  343. package/mobile/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +84 -0
  344. package/mobile/src/utils/areArraysEqual.ts +2 -0
  345. package/mobile/src/utils/mapChildren.ts +11 -0
  346. package/mobile/src/utils/maxBy.ts +3 -4
  347. package/mobile/src/utils/minBy.ts +5 -0
  348. package/package.json +2 -2
  349. package/src/common.css +0 -7
  350. package/src/components/Blocks.ts +3 -1
  351. package/src/components/Carousel/Carousel.fixture.tsx +20 -0
  352. package/src/components/Carousel/Carousel.tsx +41 -23
  353. package/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +25 -0
  354. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +38 -0
  355. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +36 -0
  356. package/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +1 -0
  357. package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +13 -0
  358. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +2 -2
  359. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +44 -43
  360. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +1 -1
  361. package/src/components/Gallery/Gallery.mobile.tsx +1 -1
  362. package/src/components/Header/HeaderSubMenu.tsx +2 -4
  363. package/src/components/Header/HeaderSubMenuItem.tsx +5 -2
  364. package/src/components/RollupItem/RollupItem.tsx +10 -1
  365. package/src/hooks/useIntersectionObserver.ts +23 -2
  366. package/src/hooks/useLink.ts +2 -2
  367. package/src/ui-kit/BlockWrapper.tsx +1 -16
  368. package/src/ui-kit/Button/ArrowButton.tsx +13 -0
  369. package/src/ui-kit/Foldable/FoldableSection.tsx +3 -1
  370. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +97 -0
  371. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +31 -55
  372. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +25 -59
  373. package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +3 -3
  374. package/src/ui-kit/SwipeListControl/SwipeListItem.tsx +44 -0
  375. package/src/ui-kit/SwipeListControl/scrollBy.ts +10 -0
  376. package/src/ui-kit/SwipeListControl/scrollToEnd.ts +3 -0
  377. package/src/ui-kit/SwipeListControl/scrollToStart.ts +3 -0
  378. package/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +84 -0
  379. package/src/utils/areArraysEqual.ts +2 -0
  380. package/src/utils/mapChildren.ts +11 -0
  381. package/src/utils/maxBy.ts +3 -4
  382. package/src/utils/minBy.ts +5 -0
  383. package/bundle/components/Carousel/CarouselContainer.d.ts +0 -10
  384. package/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  385. package/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  386. package/bundle/ui-kit/SwipeListControl/constants.d.ts +0 -2
  387. package/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  388. package/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  389. package/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  390. package/dist/components/Carousel/CarouselContainer.d.ts +0 -10
  391. package/dist/components/Carousel/CarouselContainer.js +0 -14
  392. package/dist/components/Carousel/CarouselContainer.js.map +0 -1
  393. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  394. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -8
  395. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  396. package/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  397. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js +0 -11
  398. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  399. package/dist/ui-kit/SwipeListControl/constants.d.ts +0 -2
  400. package/dist/ui-kit/SwipeListControl/constants.js +0 -12
  401. package/dist/ui-kit/SwipeListControl/constants.js.map +0 -1
  402. package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  403. package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -13
  404. package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  405. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  406. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -19
  407. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  408. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  409. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -33
  410. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  411. package/lib/components/Carousel/CarouselContainer.d.ts +0 -10
  412. package/lib/components/Carousel/CarouselContainer.js +0 -12
  413. package/lib/components/Carousel/CarouselContainer.js.map +0 -1
  414. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  415. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -6
  416. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  417. package/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  418. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js +0 -9
  419. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  420. package/lib/ui-kit/SwipeListControl/constants.d.ts +0 -2
  421. package/lib/ui-kit/SwipeListControl/constants.js +0 -10
  422. package/lib/ui-kit/SwipeListControl/constants.js.map +0 -1
  423. package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  424. package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -10
  425. package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  426. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -7
  427. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -16
  428. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  429. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -11
  430. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -30
  431. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  432. package/mobile/bundle/components/Carousel/CarouselContainer.d.ts +0 -10
  433. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  434. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  435. package/mobile/bundle/ui-kit/SwipeListControl/constants.d.ts +0 -2
  436. package/mobile/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  437. package/mobile/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  438. package/mobile/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  439. package/mobile/dist/components/Carousel/CarouselContainer.d.ts +0 -10
  440. package/mobile/dist/components/Carousel/CarouselContainer.js +0 -14
  441. package/mobile/dist/components/Carousel/CarouselContainer.js.map +0 -1
  442. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  443. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -8
  444. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  445. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  446. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js +0 -11
  447. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  448. package/mobile/dist/ui-kit/SwipeListControl/constants.d.ts +0 -2
  449. package/mobile/dist/ui-kit/SwipeListControl/constants.js +0 -12
  450. package/mobile/dist/ui-kit/SwipeListControl/constants.js.map +0 -1
  451. package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  452. package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -13
  453. package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  454. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  455. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -19
  456. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  457. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  458. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -33
  459. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  460. package/mobile/lib/components/Carousel/CarouselContainer.d.ts +0 -10
  461. package/mobile/lib/components/Carousel/CarouselContainer.js +0 -12
  462. package/mobile/lib/components/Carousel/CarouselContainer.js.map +0 -1
  463. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  464. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -6
  465. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  466. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  467. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js +0 -9
  468. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  469. package/mobile/lib/ui-kit/SwipeListControl/constants.d.ts +0 -2
  470. package/mobile/lib/ui-kit/SwipeListControl/constants.js +0 -10
  471. package/mobile/lib/ui-kit/SwipeListControl/constants.js.map +0 -1
  472. package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  473. package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -10
  474. package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  475. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  476. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -16
  477. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  478. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  479. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -30
  480. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  481. package/mobile/src/components/Carousel/CarouselContainer.tsx +0 -34
  482. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +0 -24
  483. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +0 -50
  484. package/mobile/src/ui-kit/SwipeListControl/constants.ts +0 -10
  485. package/mobile/src/ui-kit/SwipeListControl/utils/getContainerStyle.ts +0 -9
  486. package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +0 -25
  487. package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +0 -49
  488. package/src/components/Carousel/CarouselContainer.tsx +0 -34
  489. package/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +0 -24
  490. package/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +0 -50
  491. package/src/ui-kit/SwipeListControl/constants.ts +0 -10
  492. package/src/ui-kit/SwipeListControl/utils/getContainerStyle.ts +0 -9
  493. package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +0 -25
  494. package/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +0 -49
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:i}=await e.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,a=i||l&&l();return e(Object.assign(r,a&&{children:a}),n)}return t.inheritAttrs=!1,t};function g(e){return e?e.filter(Boolean).join(" "):""}const b=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),f=[],N=["col-span-12"];function y(e,t){const{key:n,blockDecorator:i=b,blocksRegistry:r={},ancestors:l=f}=t,{type:a}=e;a&&a in r||console.warn(`No block with "${a}" is registered`);const s=a&&r[a];return i({blockClassName:`scroll-mt-12 ${g(e.style||N)}`,block:e,ancestors:l,render:({block:i,blockClassName:r})=>{const{content:l}=i;return s?h(s,{className:r,block:e,options:t,...l},n):null}},n)}const v=[],w=(e,{key:t,ancestors:n=v,slotName:i=null,renderChild:r=y,...l})=>(e||[]).map(((e,a)=>r(e,{...l,key:`${t||e.type}-${a}`,ancestors:l.parent?[...n||v,[l.parent,i]]:n})));function k({children:e,block:t,options:n,renderChild:i}){return e||(t&&n?w(t.blocks,{...n,parent:t,renderChild:i}):null)}class ${static inst=new $;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const C=100,S={threshold:new Array(18).fill(0).map((function(e,t){const n=(t+1)/C+.82;return Math.round(n*C)/C}))},T=p((({className:e,block:t,tag:n="section",role:l,children:o})=>{const c=n,{anchor:d,labels:m}=t||{},[u,p]=i(!0),x=s({}),g=a((()=>(({anchor:e,anchorClickRef:t})=>n=>{if(!n?.length)return;const[i]=n;!i.isIntersecting||i.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?($.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),$.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||$.inst.fire("tab",{type:"link",label:e}))})({anchor:d,anchorClickRef:x})),[d]),b=function(e,t){const n=s(null);return r((()=>{if(!n.current)return;const i=new IntersectionObserver(e,t);return i.observe(n.current),()=>{i.disconnect()}}),[e,t]),n}(g,S);return r((()=>$.inst.subscribe("anchorClick",(e=>{p(!0),x.current=e}))),[]),r((()=>$.inst.subscribe("tab",(e=>{if("group"===e.type){const n=m?.length||t?.anchor;p(!e.label||(!n||Boolean(m?.includes(e.label))))}else(n=e.label)&&(globalThis.document.location.hash=n),p(!0);var n}))),[]),u?h(c,{className:e,role:l,...d?{id:d,ref:b}:{},children:o}):null}));const _={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},I=p((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return h(r,{className:`font-sans font-medium m-0 ${_[n]} ${t||""}`,children:i})})),j=p((e=>{const{size:t="",color:n="",align:i="",font:r="",children:l}=e;return h("p",{className:`font-sans ${t} ${n} ${i} ${r}`,children:l})})),D=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),A=p((({title:e,description:t,className:n="",...i})=>u(T,{className:`py-6 px-4 bg-white text-primary-text ${n}`,...i,children:[e?h(I,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5",children:h(j,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,h(D,{children:k(i)})]})));A.childrenTypes=["AccordionItem"];const R=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[a,s]=i(t),o=l((()=>{s((e=>!e))}),[]),c=n({isUnfolded:a,onToggle:o}),d=r?r({isUnfolded:a,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),O=p((({className:e="",isUnfolded:t,children:n})=>{const i=s(null);return r((()=>{i.current&&(i.current.style.maxHeight=t?`${i.current.scrollHeight}px`:"")}),[t,n?.length]),h("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden max-h-0 ${e}`,children:n})})),M={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},L=p((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:l="color",asSVG:a,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return a&&"normal"!==l?h(E,{className:e,children:u("svg",{className:[V(e,s.width),M[l],t,B(l)].join(" "),...s,"aria-hidden":"true",children:[r?h("title",{children:r}):null,i?h("desc",{children:i}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:i,title:r,...s,"aria-hidden":"true"})})),B=e=>"white"===e?"invert":"",V=(e,t)=>t?`width: ${t}px `:"w-full h-full",E=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function F(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const P=(e,t)=>e.media&&t.media?e.media-t.media:0,z=p((({className:e="",image:t,imageClassName:n="",isMobile:i=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(P).map((({src:e,format:n,media:i},r)=>h("source",{srcSet:e,type:H(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,G(t,n,i)]})})),G=(e,t="",n=!1)=>{const i={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${a} ${t}`,alt:l,title:r,style:i,...e.size})};function H(e){return e?`image/${String(e)}`:void 0}const W=p((({className:e="",image:t,imageClassName:n="",isMobile:i,...r})=>{if(!t)return null;const l="string"==typeof t?t:t.icon;return l||""===l?l.length?h(L,{className:e,imageClassName:n,iconVersion:F(t),name:l,...r}):null:h(z,{className:e,imageClassName:n,image:t,isMobile:i})})),J=p((e=>h(W,{...e,isMobile:!0}))),U=p((e=>{const{size:t="",color:n="",align:i="",font:r="",children:l}=e;return h("span",{className:`font-sans ${t} ${n} ${i} ${r}`,children:l})})),Y=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),K=["PlusIcon","MinusIcon"],X=p((({className:e="",label:t="",labelIcon:n,isExpanded:i,...r})=>{const{bordered:l}=function(e,t){const{content:n}=function(e){return e?.parent||{}}(e);return n||t}(r.options,{});return h("li",{className:`${l?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:h(R,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>h(O,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:k(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>h(q,{className:l?"":"py-[14px] px-0",label:t,icon:K[Number(e)],primaryIcon:n,onClick:i})})})}));X.childrenTypes=[];const q=p((({className:e,icon:t,label:n,primaryIcon:i,onClick:r})=>u("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${e}`,onClick:r,children:[u("div",{className:"flex group-hover:text-primary-main",children:[i?h(J,{image:Y(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,h(U,{size:"text-m-title-xs",font:"font-medium",children:n})]}),h(J,{className:"flex-shrink-0",image:Y({icon:t}),width:"24",height:"24",asSVG:!0})]}))),Q="bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",Z=p((({children:e,activeIndex:t,indexFraction:n,showDots:i})=>{const r=l((e=>n=>{if(e===t)return;const i=n.currentTarget.parentElement?.previousElementSibling;i?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})}),[t]);return i&&e?h("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e.length&&e.map?e.map(((e,i)=>h("div",{onClick:r(i),className:Q,style:ee(i,t,n),"aria-hidden":!0},String(i)))):h("div",{className:Q,style:te(1)})}):null})),ee=(e,t,n)=>{if(e<t||e>t+1)return;return te(e===t?1-n:n)},te=e=>({opacity:""+(.3+.7*e),width:6+16*e+"px"}),ne=p((({className:e="",children:t,...n})=>h("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...n,children:t}))),ie=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),re=p((({className:e="",activeIndex:t=-1,gap:n=14,padding:i=16,children:r,onScroll:l})=>r?h("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...ie(i),gap:`${n}px`},role:"list",onScroll:l,children:r.length&&r.map?r.map(((e,n)=>h(ne,{style:ie(i/4),"aria-current":Boolean(t===n),children:e},String(n)))):h(ne,{style:ie(i/4),"aria-current":!0,children:r})}):null)),le=p((({className:e,gap:t=14,padding:n=16,showDots:r=!0,onSlideChange:a,children:s})=>{const[o,c]=i(0),[d,m]=i(0),p={activeIndex:o,indexFraction:d,showDots:r,children:s},x=l((e=>{const{scrollLeft:i,clientWidth:r,childElementCount:l,scrollWidth:s,children:d}=e?.currentTarget;if(!d[0])return;const h=d[0].offsetWidth-n/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:i,childElementCount:r,itemWidth:l})=>{const a=i-n;if(2===r)return[[0,a],[a,i]];const s=l+e,o=n-e-t,c=r-2,d=new Array(r).fill(0).map(((e,t)=>0===t||t===c?[t>0?a-o:0,t>0?a:o]:[(t-1)*s+o,t*s+o]));return d[r-1]=[a,i],d})({gap:t,padding:n,clientWidth:r,scrollWidth:s,childElementCount:l,itemWidth:h}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[i,r]=t[n];return{index:n,fraction:(e-i)/(r-i)}})(i,u);p!==o&&a&&a(),c(p),m(x)}),[t,n,o,a]);return u("div",{className:e,children:[h(re,{gap:t,padding:n,activeIndex:o,onScroll:x,children:s}),h(Z,{...p})]})})),ae=e=>e?.includes("//"),se=e=>(e||"").replace(/\/?\?.*/,""),oe=e=>{if(!e||!ae(e))return;const t=e,n=t.indexOf("//"),i=t.indexOf("/",n+"//".length);return-1!==i?t.substring(0,i):t};var ce=Object.freeze({__proto__:null,isURL:ae,withoutQuery:se,getOrigin:oe,getHash:e=>{if(!e||!ae(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const de=(e,t)=>de._impl(e,t);function me(){return me._impl()}function he(){const e=me();return t=>{const n=((e,t)=>{if(!e)return e;const n=oe(t?.href);return n?e.replace(n,"")||"/":e})(t.href,e);return{...t,href:n,"aria-label":t.text,onClick:de((i=>{t.onClick&&t.onClick(i);const r=n&&!ae(n),l=!t.target||"_self"===t.target;r&&l&&(i?.preventDefault(),e.push(n))}),t)}}}de._impl=e=>e,de.setup=e=>{de._impl=e},me._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),me.setup=e=>{me._impl=e};const ue={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:""},pe="bg-main-divider text-main-disabled",xe={primary:pe,secondary:pe,white:pe,link:""},ge="text-center font-sans select-none",be={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},fe=p((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return u("div",{className:Ne(e),children:[i?h("div",{className:be[l],children:i}):null,ye(e)?u("div",{children:[n?h("div",{className:"text-xs-light text-left",children:n}):null,h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?h("div",{className:be[l],children:r}):null]})})),Ne=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const r="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",ye(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},ye=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ve=({className:e,rounded:t,version:n})=>["inline-block",ge,n?xe[n]:"",t?"rounded-full":"rounded-md",e].join(" "),we=({className:e,rounded:t,version:n})=>[ge,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",n?ue[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ke=p((({disabled:e,children:t,...n})=>{const i=he()(n),r=t??h(fe,{...i});return h(e?Ce:$e,{...i,children:r})})),$e=p((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:a,onClick:s,children:o})=>h("a",{className:we({className:e,version:l,rounded:a}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Ce=p((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ve({className:e,rounded:i,version:n}),children:r}))),Se=(e=!1)=>e?"text-white":"",Te=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),_e=p((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>u("div",{role:"columnheader",children:[e?h(J,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&h("div",{className:"mb-3.5",children:h(J,{image:t})}),n?h(I,{headingType:"h4",className:Se(r),title:n}):null,i?h("div",{className:Te(r),children:i}):null]}))),Ie=p((({cell:e,rowHeader:t,isFillGradient:n=!1})=>h("div",{className:"box-border flex flex-col",role:"cell",children:h("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(je(n,t))})}))),je=(e,t)=>({label:n,description:i},r)=>u("div",{className:"flex justify-between text-s py-3.5",children:[h("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),u("div",{className:"basis-1/2",children:[n?h("div",{className:"text-right "+(e?"text-white":""),children:n}):null,i?h("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i}):null]})]},String(r)),De=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const a=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return u("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[h(_e,{...e,isFillGradient:i}),a?.length?a.map((({rowHeader:e,cell:t},n)=>h(Ie,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?h(ke,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Ae({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),Ae=({onToggleColumn:e,isFillGradient:t,showRow:n})=>h("div",{className:"mt-5",role:"cell",children:h("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Re=p((e=>{const{className:t,title:n}=e;return u("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?h(I,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h(Oe,{...e})})]})})),Oe=p((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:a,...s})=>{const[o,c]=i(new Array(e.length).fill(!r)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:i},l)=>{return h(De,{visibleRowLength:r,showRow:o[l],header:i,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...s},String(l));var a}));return"horizontal"===a?h(le,{onSlideChange:m,children:u}):u})),Me=new Map;function Le(e,t,{fallback:n}={}){const l=a((()=>Be(e)),[e]),[s,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>Me.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Be(e){return e?Array.isArray(e)?e:e instanceof Function?Be(e()):[e]:[e]}async function Ve(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function Ee(e,t={}){const{data:n}=Le(`/wcms-resources/${e}.json`,Ve,{fallback:t});return n||{}}const Fe=p((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(J,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${a}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),r("")},children:h(J,{image:"CloseIcon",width:"24",height:"24"})}):h(ke,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Pe=p((e=>h(Fe,{...e,isMobile:!0}))),ze=p((({className:e="",documents:t,...n})=>h(T,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?Ge(t):null})}))),Ge=e=>e.map(((e,t)=>{const{text:n,...i}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...i,children:n||null})},`list_item_${String(t)}`)})),He={"bg-white":"color",transparent:"white"},We={"bg-white":"text-primary-main",transparent:"text-white"},Je={"bg-white":"text-black",transparent:"text-white"},Ue=p((({className:e="",href:t,children:n,targetBlank:i,bgColor:r="bg-white",showTitle:l=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":"Россельхозбанк",children:[h(J,{image:{icon:"LogoIcon",iconVersion:He[r]},className:`${We[r]}`,width:"34",height:"34",asSVG:!0}),l?h("span",{className:`${Je[r]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"}):null]}))),Ye=p((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>h("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:i?u("div",{className:"flex",children:[h("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:h(Ue,{className:"w-8",bgColor:"transparent",showTitle:!0})}),u("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[h("div",{className:"text-s font-medium mb-[3px]",children:t}),h("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),Ke=p((({className:e="",items:t,hasButton:n})=>u("div",{className:e,children:[t?.length?t.map(Xe):null,n?h(ke,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Xe=(e,t)=>{const{type:n,text:i,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:qe(n,i)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},qe=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Qe(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},Qe=e=>e.replaceAll(/\D/g,""),Ze=p((({className:e="",index:t,text:n,...i})=>{const r=he(),{href:l,target:a,onClick:s}=r(i);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:s,children:n||`Документ ${t}`})})),et=p((({title:e,links:t,className:n=""})=>u("div",{className:n,children:[h("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?h("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>h(Ze,{index:t,className:"text-s",...e},String(t))))}):null]}))),tt=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],nt=p((({version:e="primary",...t})=>{const n=he(),{href:i,onClick:r}=n(t),{icon:l,label:a}=tt.find((({origins:e})=>e.some((e=>i?.includes(e)))))||{};if(!l)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:i,"aria-label":a,target:"_blank",rel:"noopener noreferrer",onClick:r,children:l?h(J,{image:Y(l),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),it=p((({className:e="",media:t,version:n})=>h("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e}`,children:t?.map(((e,t)=>h(nt,{version:n,...e},String(t))))}))),rt=p((({className:e="",index:t,...n})=>{const i=he(),{href:r,target:l,text:a,onClick:s}=i(n);return h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:s,children:a||`Документ ${t}`})})),lt=p((({className:e="",links:t})=>u("div",{className:e,children:[h("div",{className:"py-6",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>h(rt,{index:t,...e},String(t))))}):null]}))),at=p((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=Ee(c.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:a,socialMedia:s,horizontalNavigationTitle:o}=Ee(c.FOOTER||"footer",n);return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(Ke,{className:"overflow-hidden",items:a,hasButton:!0}),h(D,{children:i.topItems?.map(((e,t)=>h(X,{label:e.text,children:h(ze,{documents:e.items})},String(t))))}),h("div",{children:i?.dispositions?.map(st)}),h(Ye,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),h(Pe,{className:"grow"}),h(it,{className:"pb-4",media:s}),h(et,{title:o,links:l}),h(lt,{links:r})]})})),st=(e,t)=>{const{icon:n,href:i,text:r}=e;return u(ke,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?h(J,{className:"pr-1",image:Y(n),width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},ot={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ct=p((({title:e,description:t,cards:n=[],className:i,orientation:r="horizontal"})=>u("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[u("div",{className:"flex flex-col items-center mb-5",children:[e?h(I,{headingType:"h3",className:`text-center ${t?"mb-2":"mb-5"}`,title:e}):null,t?h("div",{className:"text-m max-w-[600px] text-center mb-5",children:t}):null]}),dt(r,n)]})));function dt(e,t){return"horizontal"===e?h(le,{children:t?.map(mt)}):h("div",{className:"grid gap-[14px]",children:t?.map(mt)})}function mt(e,t){return u("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${ot[e.version??"primary"]}`,children:[u("div",{children:[ht(e.icon),e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?ut(e):null,e.items?.length?xt(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(ke,{className:"mt-3",...n})):null]},t);var n}const ht=e=>e?.src||e?.icon?h("div",{className:"flex justify-center",children:h(J,{className:"mb-3.5",image:e})}):null;function ut(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const pt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function xt(e,t,n="primary"){return h("section",{className:"mt-3",children:e.map(((e,i)=>u("div",{children:[t?h("div",{className:`rounded-full inline-block mr-3 mt-2 w-2 h-2 min-w-2 min-h-2 ${pt[n]}`}):null,h("span",{className:"text-m font-medium",children:e.title}),h("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(i))))})}const gt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(se(e),se(ae(e)?t.href:t.pathname)),bt=e=>t=>gt(t.href,e),ft=e=>t=>t.items?.some(bt(e))||gt(t.href,e)||((e,t)=>oe(e)===oe(t.href))(t.href,e),Nt="absolute left-0 -bottom-3 w-full h-[2px]",yt=p((({className:e="",text:t,href:n,target:i,active:r,onClick:l,children:a,bgColor:s="bg-white"})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:i,onClick:l,children:[h("span",{className:vt(s,r),children:t||a}),r?h("div",{className:wt(s,r)}):null]}))),vt=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},wt=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Nt}`:Nt,kt=o("https://10.80.4.9");const $t=p((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:a})=>{const[s,o]=function(e){const[t,n]=i(e);return r((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,l((()=>{kt.getFetcherAddress().then((t=>{const i=t||e;globalThis?.localStorage.setItem("location",i),n(i)}))}),[e])]}(n);return u("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[h("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:h(J,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),u("button",{onClick:o,className:"flex items-center text-s text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[h(J,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),s]}),a,h("div",{className:"mb-7",children:e?.map(Ct)}),h(Pe,{className:"grow"})]})})),Ct=(e,t)=>{const{icon:n,href:i,text:r}=e;return u("a",{href:i,className:"flex text-s mb-4 hover:text-primary-main",children:[n?h(J,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,h("span",{className:"font-medium pl-0.5",children:r})]},`headerSubMenu-${t}`)},St=p((({onClick:e,bgColor:t})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[u("div",{className:"flex items-center",children:[h("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:h(J,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(Ue,{className:"mr-8",bgColor:t})]}),h("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Tt=p((({className:e="",bgColor:t="bg-white",...n})=>{const r=me(),l=n.options?.page?.fallback,{topItems:a,dispositions:s,defaultLocation:o}=Ee(c.SITEMAP||"sitemap",l),d=a?.find(ft(r)),m=d?.items,p=(e=>(t=[])=>{const n=t?.filter(bt(e));return n?.length?(i=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>i(e)>i(t)?e:t)))(n):void 0;var i})(r)(m),[x,g]=i(!1),b=()=>g(!x);return u("header",{className:`${t} ${e}`,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(St,{onClick:b,bgColor:t}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,n)=>h(yt,{className:"mr-8 whitespace-nowrap text-s",active:e===p,bgColor:t,...e},String(n))))})})]}),x?h($t,{onClick:b,burgerSubMenu:s,defaultLocation:o,children:h(D,{children:a?.map(((e,t)=>h(X,{label:e.text,children:h(ze,{documents:e.items})},String(t))))})}):null]})})),_t={left:"text-left",center:"text-center",right:"text-right"},It={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},jt=p((({bgColorHeadline:e="transparent",className:t="",title:n,description:i,image:r,align:l="left"})=>{const a=It[e];return u("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${a.background} ${t}`,children:[n?h(I,{headingType:"h2",className:`${a.text} ${_t[l]}`,title:n}):null,i?h("p",{className:`text-m ${a.description} ${_t[l]}`,children:i}):null,r?.src&&h("div",{className:"mt-2.5 mx-auto flex justify-center",children:h(J,{image:r})})]})})),Dt=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:l})=>{const{text:a,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[l?h(J,{className:t,image:Y(l),width:"24px",height:"24px",asSVG:!0}):null,a?u("span",{className:n,children:[a,h("span",{className:i,children:o?.href&&At(Rt(o.href),s)})]}):null]})})),At=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Rt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Ot=p((({className:e="",doc:t,icon:n})=>h(Dt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),Mt=p((({hasBorder:e=!0,documents:t,icon:n})=>h(le,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>h(Ot,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),Lt=p((({hasBorder:e=!0,documents:t,icon:n})=>h("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,i)=>h("div",{role:"listitem",children:h(Ot,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Bt=p((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:l="vertical",hasBorder:a=!0,...s})=>u("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[h(jt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:"center",...s}),h("vertical"===l?Lt:Mt,{hasBorder:a,documents:r,icon:i})]}))),Vt=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Et(e=""){const t=Vt(e);return t<=4?"S":t<=8?"M":"L"}function Ft(e=""){const t=Vt(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Pt(e=""){const t=Vt(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const zt=p((({className:e,title:t,description:n="Блок в разработке...",...i})=>u(T,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Pt(e)} ${Ft(e)} `,...i,children:[h(jt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Et(e),...i}),h("figure",{className:"m-0 min-w-[80%]",children:Gt()})]}))),Gt=(e=3)=>Wt(100,e).map((e=>Math.floor(e))).map(Ht),Ht=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Wt=(e,t)=>[e].concat(t>0?Wt(e/1.618,t-1):[]),Jt=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>Ut({button:e,index:t})))}):null));function Ut({button:e,buttonClassName:t,index:n}){const{icon:i,iconRight:r,version:l,...a}=e,s="secondary"===l?"color":"white",o=Yt({...i,iconVersion:s}),c=Yt({...r,iconVersion:s});return h(ke,{className:t,appendLeft:o,appendRight:c,version:l,...a},n?String(n):"")}const Yt=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(J,{image:{...e},width:t,height:"24",asSVG:!0})},Kt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},Xt={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},qt=p((({className:e="",isDotted:t=!0,children:n,version:i="primary",size:r="M"})=>u("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?h("div",{children:h("div",{className:`rounded-full align-middle inline-block ${Kt[i]} ${Xt[r]}`})}):null,h("span",{children:n})]}))),Qt={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},Zt={S:"text-l-light",M:"text-h6",L:"text-h5"},en={S:"ml-2",M:"ml-3",L:"ml-4"},tn=p((e=>{const{className:t="",hasIndent:n,isDotted:i,itemClassName:r="",items:l,listItemSize:a="M",version:s="primary"}=e;return l?.length?h("section",{className:`${Qt[s]} ${Zt[a]} ${t} ${n?en[a]:""}`,role:"list",children:l.map(((e,t)=>h(qt,{className:`${r} mb-1.5`,isDotted:i,version:s,size:a,children:e},String(t))))}):null})),nn=p((({className:e="",title:t="",buttons:n,image:i,children:r})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:r}),n?h("div",{className:"mt-auto pt-8",children:n}):null]}),i]})]}))),rn={primary:"text-primary-text",secondary:"text-white"},ln={primary:"text-secondary-text",secondary:"text-white"},an=p((e=>{const{className:t="",icon:n,label:i,description:r,version:l="primary",benefitsVersion:a="normal"}=e,s="white"===a?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:sn(l,a),children:h(J,{className:"w-6 h-6",image:Y(n,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[i?h("div",{className:`text-h6 ${rn[l]}`,children:i}):null,r?h("div",{className:`text-m-light ${ln[l]}`,children:r}):null]})]})}));function sn(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const on=(e="primary",t="normal")=>({icon:n,label:i,description:r},l)=>h(an,{icon:n,label:i,description:r,version:e,benefitsVersion:t},String(l)),cn=p((({className:e="",headlineVersion:t="L",benefits:n,benefitsVersion:i="normal",buttons:r,image:l,items:a,version:s="primary",isDotted:o=!0,label:c,...d})=>u("div",{className:`w-full ${e}`,children:[u("div",{children:[c?hn(c,s):null,h(jt,{className:"!p-0 max-w-[600px]",bgColorHeadline:s,headlineVersion:t,...d}),u(nn,{buttons:r?.length?h(Jt,{buttons:r,className:"flex flex-col mt-5 gap-2.5"}):null,children:[n?.filter((e=>e.label))?.length?h("div",{className:"mt-3",children:n.map(on(s,i))}):null,a?.length?h(tn,{className:"mt-3 text-m",items:a,version:s,isDotted:o}):null]})]}),dn(l)]})));function dn(e){return e?.src?h(J,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const mn={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},hn=(e,t)=>h("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${mn[t]}`,children:e}),un=p((e=>{const{className:t="",version:n="primary"}=e;return h("section",{className:`font-sans bg-white px-4 py-6 ${ot[n]} ${t}`,children:h(cn,{...e})})})),pn={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},xn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},gn={normal:"min-h-[70px]",small:"min-h-[50px]"},bn=p((({className:e,title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:a="primary"})=>{const s=pn[a];return u("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t?h(I,{headingType:"h3",className:`text-center ${s.title}`,title:t}):null,n?h("p",{className:`text-m-light text-center ${s.description} ${t?"mt-2":""}`,children:n}):null,r?.length?h("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:h("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map(fn(l,a,i))})}):null]})})),fn=(e,t,n)=>(i,r,l)=>{const a=l.length-1===r,s="normal"===e?"ml-[34px]":"ml-6",o=pn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[Nn(e,t)(i,r),a?null:h("div",{className:`min-h-8 h-full w-[2px] ${n?o.iconConnector:""} ${s}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${gn[e]}`,children:[i.label?h("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:i.label}):null,i.description?h("div",{className:`text-s ${o.description} text-left`,children:i.description}):null]})]})},String(r))},Nn=(e,t)=>(n,i)=>{const r=pn[t],l="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${xn[e]} ${r.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:h("span",{className:`font-medium flex self-center ${r.title} ${a}`,children:(s=n?.icon,Boolean(s?.icon||s?.src)?h(J,{image:Y({...n.icon},t),width:l,height:l,asSVG:!0}):h("span",{children:i+1}))})});var s},yn={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,icon:t,...n},i)=>Ut({button:{rounded:e,icon:t,...n},buttonClassName:`mt-3 ${i>0&&e?"ml-2.5":""} ${t?"w-12 h-12":""}`,index:i})))}):null,Img:({image:e})=>e?.src?h(J,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(tn,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-s text-secondary-text",children:t}):null]})},vn=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(I,{headingType:"h3",className:"font-medium",title:e}):null,t?h(J,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),wn=p((({tile:e,...t})=>u("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[h(vn,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,kn(e,t)]},String(n)))):null]})));function kn(e,t){if(!e||!e.tableCellType||!(e.tableCellType in yn))return null;const n=yn[e.tableCellType];return h(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const $n=p((({tiles:e,...t})=>e?.length?h(le,{...t,children:e.map(((e,n)=>h(wn,{tile:e,...t},String(n))))}):null)),Cn=p((({tiles:e,...t})=>e?.length?h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>h(wn,{tile:e,...t},String(n))))}):null)),Sn=p((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...a})=>{const s=Tn(i),o=_n(r,s);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?h(I,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?h("div",{className:"mb-5 text-center text-m",children:n}):null,h("vertical"===l?Cn:$n,{tiles:o,...a})]})})),Tn=e=>e?.[0]?.data?e[0].data:[],_n=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),In={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},jn=p((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:l="",items:a,isDotted:s=!0})=>{const o=In[n],c="secondary"===n?"secondary":"gray";return u("section",{className:`font-sans px-4 py-[18px] flex flex-col ${o.background} ${l}`,children:["small"===i?Dn(o.icon):null,"big"===i?An(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?h("div",{className:`text-s ${o.description}`,children:t}):null,a?.length?h(tn,{className:"mt-1 text-m",items:a,isDotted:s,version:c}):null]})]})}));function Dn(e){return h("div",{className:"mb-3",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function An(e){return e?.src?h(J,{className:"pb-3 mr-auto",image:e}):null}const Rn={Accordion:A,AccordionItem:X,ComparisonTable:Re,Footer:at,Gallery:ct,Header:Tt,Headline:jt,LinkDocs:Bt,LinkList:ze,MobileAppTile:Ye,ProductBlock:un,StepsBlock:bn,TariffsTable:Sn,TextBlock:jn,Placeholder:zt},On=m();const Mn=p((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Ln()}))),Ln=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),h("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Bn=p((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await On.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await On.like(e))}),[e]),dislike:l((async()=>{n(await On.dislike(e))}),[e])}}(me().pathname);return u("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[h(Mn,{onClick:de(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(Mn,{onClick:de(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),Vn=p((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return u("section",{className:`relative ${g(l)} ${t}`,"data-theme":c,children:[s?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(s?.header,{...d,slotName:"header"})}):null,u("div",{className:"container grid grid-cols-12 gap-1",children:[w(a,d),s?.footer?w(s?.footer,{...d,slotName:"footer"}):null]}),o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Bn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Vn.childrenTypes=[],Vn.slots=()=>["header","footer"];e.Blocks=Rn,e.ContentPage=Vn,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=de,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.6.35",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=ce,e.useRouter=me,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:i}=await e.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,a=i||l&&l();return e(Object.assign(r,a&&{children:a}),n)}return t.inheritAttrs=!1,t};function g(e){return e?e.filter(Boolean).join(" "):""}const b=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),f=[],N=["col-span-12"];function y(e,t){const{key:n,blockDecorator:i=b,blocksRegistry:r={},ancestors:l=f}=t,{type:a}=e;a&&a in r||console.warn(`No block with "${a}" is registered`);const s=a&&r[a];return i({blockClassName:`scroll-mt-12 ${g(e.style||N)}`,block:e,ancestors:l,render:({block:i,blockClassName:r})=>{const{content:l}=i;return s?h(s,{className:r,block:e,options:t,...l},n):null}},n)}const v=[],w=(e,{key:t,ancestors:n=v,slotName:i=null,renderChild:r=y,...l})=>(e||[]).map(((e,a)=>r(e,{...l,key:`${t||e.type}-${a}`,ancestors:l.parent?[...n||v,[l.parent,i]]:n})));function k({children:e,block:t,options:n,renderChild:i}){return e||(t&&n?w(t.blocks,{...n,parent:t,renderChild:i}):null)}class ${static inst=new $;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}function C(e,{sensitivity:t,rootRef:n}={}){const i=s(null),l=a((()=>({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=p((({className:e,block:t,tag:n="section",role:l,children:o})=>{const c=n,{anchor:d,labels:m}=t||{},[u,p]=i(!0),x=s({}),g=a((()=>(({anchor:e,anchorClickRef:t})=>n=>{if(!n?.length)return;const[i]=n;!i.isIntersecting||i.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?($.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),$.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||$.inst.fire("tab",{type:"link",label:e}))})({anchor:d,anchorClickRef:x})),[d]),b=C(g,{sensitivity:1});return r((()=>$.inst.subscribe("anchorClick",(e=>{p(!0),x.current=e}))),[]),r((()=>$.inst.subscribe("tab",(e=>{if("group"===e.type){const n=m?.length||t?.anchor;p(!e.label||(!n||Boolean(m?.includes(e.label))))}else(n=e.label)&&(globalThis.document.location.hash=n),p(!0);var n}))),[]),u?h(c,{className:e,role:l,...d?{id:d,ref:b}:{},children:o}):null}));const _={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},I=p((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return h(r,{className:`font-sans font-medium m-0 ${_[n]} ${t||""}`,children:i})})),R=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})})),j=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),A=p((({title:e,description:t,className:n="",...i})=>u(T,{className:`py-6 px-4 bg-white text-primary-text ${n}`,...i,children:[e?h(I,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?h("div",{className:"mb-5",children:h(R,{size:"text-m",font:"font-light",align:"text-center",children:t})}):null,h(j,{children:k(i)})]})));A.childrenTypes=["AccordionItem"];const D=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:n,renderFoldButton:r})=>{const[a,s]=i(t),o=l((()=>{s((e=>!e))}),[]),c=n({isUnfolded:a,onToggle:o}),d=r?r({isUnfolded:a,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),O=p((({className:e="",isUnfolded:t,children:n})=>{const i=s(null);return r((()=>{i.current&&(i.current.style.maxHeight=t?`${i.current.scrollHeight}px`:"")}),[t,n?.length]),h("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden ${i.current||!t?"max-h-0":""} ${e}`,children:n})})),V={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},M=p((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:l="color",asSVG:a,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return a&&"normal"!==l?h(P,{className:e,children:u("svg",{className:[B(e,s.width),V[l],t,L(l)].join(" "),...s,"aria-hidden":"true",children:[r?h("title",{children:r}):null,i?h("desc",{children:i}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:i,title:r,...s,"aria-hidden":"true"})})),L=e=>"white"===e?"invert":"",B=(e,t)=>t?`width: ${t}px `:"w-full h-full",P=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function F(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const E=(e,t)=>e.media&&t.media?e.media-t.media:0,z=p((({className:e="",image:t,imageClassName:n="",isMobile:i=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(E).map((({src:e,format:n,media:i},r)=>h("source",{srcSet:e,type:H(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,G(t,n,i)]})})),G=(e,t="",n=!1)=>{const i={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${a} ${t}`,alt:l,title:r,style:i,...e.size})};function H(e){return e?`image/${String(e)}`:void 0}const J=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(M,{className:e,imageClassName:n,iconVersion:F(t),name:l,...r}):null:h(z,{className:e,imageClassName:n,image:t,isMobile:i})})),U=p((e=>h(J,{...e,isMobile:!0}))),W=p((e=>{const{size:t="",color:n="",align:i="",font:r="",children:l}=e;return h("span",{className:`font-sans ${t} ${n} ${i} ${r}`,children:l})})),Y=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),K=["PlusIcon","MinusIcon"],X=p((({className:e="",label:t="",labelIcon:n,isExpanded:i,...r})=>{const{bordered:l}=function(e,t){const{content:n}=function(e){return e?.parent||{}}(e);return n||t}(r.options,{});return h("li",{className:`${l?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"} border-solid border-main-divider ${e}`,children:h(D,{isFoldButtonOnTop:!0,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>h(O,{className:"flex flex-wrap group-last:last:pb-0 gap-5 [&>*]:p-0",isUnfolded:e,children:k(r)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>h(q,{className:l?"":"py-[14px] px-0",label:t,icon:K[Number(e)],primaryIcon:n,onClick:i})})})}));X.childrenTypes=[];const q=p((({className:e,icon:t,label:n,primaryIcon:i,onClick:r})=>u("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text group cursor-pointer ${e}`,onClick:r,children:[u("div",{className:"flex group-hover:text-primary-main",children:[i?h(U,{image:Y(i),className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,h(W,{size:"text-m-title-xs",font:"font-medium",children:n})]}),h(U,{className:"flex-shrink-0",image:Y({icon:t}),width:"24",height:"24",asSVG:!0})]}))),Q=p((({className:e="",style:t,idx:n,activeIndex:i,observerOptions:r,children:a,onIntersection:s})=>{const o=C(l((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,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:a})})),Z=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]"],ee=p((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:i,gap:r=0,padding:a=0,snapAlign:o="snap-center",children:c,onVisibleItemsChange:d,onVisibleIndicesChange:m})=>{const u={sensitivity:1,rootRef:t},p=s([]),x=l(((e,t)=>{const n=[...p.current||[]];n[e]=t,p.current=n,d&&d(n),m&&m(ne(n))}),[d,m]);return h("div",{className:`box-border overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...te(a),gap:`${r}px`},role:"list",ref:t,children:(g=(e,t)=>h(Q,{className:`${o} ${i?Z[i-1]:""}`,style:te(a/4),activeIndex:n,idx:t,observerOptions:u,onIntersection:x,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(g):g(e,0))(c)});var g})),te=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),ne=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),ie=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)),re=e=>e,le=(e=re)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),ae=(e=re)=>le((t=>-e(t))),se=e=>t=>e.scrollWidth/t,oe=e=>(t,n)=>{e.scrollBy({left:n*se(e)(t),behavior:"smooth"})},ce=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const r=s(null),[a,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]=a.length?[ae()(a),le()(a)]:[-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"}):oe(r.current)(e,-1))}),[t,e,h]),x=l((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):oe(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},de=p((({className:e,gap:t=14,padding:n=16,showDots:i=!0,children:r,onVisibleIndicesChange:l})=>{const a=Array.isArray(r)?r.length:0,[s,o]=ce({itemCount:a,onVisibleIndicesChange:l}),[c]=o.visibleIndicesRange;return u("div",{className:e,children:[h(ee,{containerRef:s,activeIndex:c,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:o.handleVisibleIndicesChange,children:r}),i?h(ie,{containerRef:s,activeIndex:c,dotCount:a}):null]})})),me=e=>e?.includes("//"),he=e=>(e||"").replace(/\/?\?.*/,""),ue=e=>{if(!e||!me(e))return;const t=e,n=t.indexOf("//"),i=t.indexOf("/",n+"//".length);return-1!==i?t.substring(0,i):t},pe=e=>e?.startsWith("#");var xe=Object.freeze({__proto__:null,isURL:me,withoutQuery:he,getOrigin:ue,getHash:e=>{if(!e||!me(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:pe});const ge=(e,t)=>ge._impl(e,t);function be(){return be._impl()}function fe(){const e=be();return t=>{const n=((e,t)=>{if(!e)return e;const n=ue(t?.href);return n?e.replace(n,"")||"/":e})(t.href,e);return{...t,href:n,"aria-label":t.text,onClick:ge((i=>{t.onClick&&t.onClick(i);const r=n&&!me(n),l=!t.target||"_self"===t.target;r&&l&&!pe(n)&&(i?.preventDefault(),e.push(n))}),t)}}}ge._impl=e=>e,ge.setup=e=>{ge._impl=e},be._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),be.setup=e=>{be._impl=e};const Ne={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:""},ye="bg-main-divider text-main-disabled",ve={primary:ye,secondary:ye,white:ye,link:""},we="text-center font-sans select-none",ke={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:""},$e=p((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return u("div",{className:Ce(e),children:[i?h("div",{className:ke[l],children:i}):null,Se(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:ke[l],children:r}):null]})})),Ce=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",Se(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},Se=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Te=({className:e,rounded:t,version:n})=>["inline-block",we,n?ve[n]:"",t?"rounded-full":"rounded-md",e].join(" "),_e=({className:e,rounded:t,version:n})=>[we,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",n?Ne[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Ie=p((({disabled:e,children:t,...n})=>{const i=fe()(n),r=t??h($e,{...i});return h(e?je:Re,{...i,children:r})})),Re=p((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:a,onClick:s,children:o})=>h("a",{className:_e({className:e,version:l,rounded:a}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),je=p((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Te({className:e,rounded:i,version:n}),children:r}))),Ae=(e=!1)=>e?"text-white":"",De=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Oe=p((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>u("div",{role:"columnheader",children:[e?h(U,{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(U,{image:t})}),n?h(I,{headingType:"h4",className:Ae(r),title:n}):null,i?h("div",{className:De(r),children:i}):null]}))),Ve=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(Me(n,t))})}))),Me=(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)),Le=p((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const a=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return u("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[h(Oe,{...e,isFillGradient:i}),a?.length?a.map((({rowHeader:e,cell:t},n)=>h(Ve,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?h(Ie,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Be({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),Be=({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?"Скрыть":"Показать описание"})}),Pe=p((e=>{const{className:t,title:n}=e;return u("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?h(I,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,h("div",{role:"table",children:h(Fe,{...e})})]})})),Fe=p((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:a,...s})=>{const[o,c]=i(new Array(e.length).fill(!r)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),u=e?.map((({data:e,header:i},l)=>{return h(Le,{visibleRowLength:r,showRow:o[l],header:i,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...s},String(l));var a}));return"horizontal"===a?h(de,{onVisibleIndicesChange:m,children:u}):u})),Ee=new Map;function ze(e,t,{fallback:n}={}){const l=a((()=>Ge(e)),[e]),[s,o]=i(),[c,d]=i(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!l.every((e=>null===e)))try{const e=t(...l);"then"in e?(e=>{e.then((e=>Ee.get(l)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...l]);const u=l[0],p=n&&"string"==typeof u&&n[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function Ge(e){return e?Array.isArray(e)?e:e instanceof Function?Ge(e()):[e]:[e]}async function He(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function Je(e,t={}){const{data:n}=ze(`/wcms-resources/${e}.json`,He,{fallback:t});return n||{}}const Ue=p((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:r}=(()=>{const[e,t]=i("");return{term:e,setTerm:e=>t(e)}})(),l=t?"text-s":"text-l-light",a=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(U,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${l}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${a}`,value:n,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),r("")},children:h(U,{image:"CloseIcon",width:"24",height:"24"})}):h(Ie,{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:"Найти"})})]})})),We=p((e=>h(Ue,{...e,isMobile:!0}))),Ye=p((({className:e="",documents:t,...n})=>h(T,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?Ke(t):null})}))),Ke=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)}`)})),Xe={"bg-white":"color",transparent:"white"},qe={"bg-white":"text-primary-main",transparent:"text-white"},Qe={"bg-white":"text-black",transparent:"text-white"},Ze=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(U,{image:{icon:"LogoIcon",iconVersion:Xe[r]},className:`${qe[r]}`,width:"34",height:"34",asSVG:!0}),l?h("span",{className:`${Qe[r]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"}):null]}))),et=p((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>h("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:i?u("div",{className:"flex",children:[h("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:h(Ze,{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}))),tt=p((({className:e="",items:t,hasButton:n})=>u("div",{className:e,children:[t?.length?t.map(nt):null,n?h(Ie,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),nt=(e,t)=>{const{type:n,text:i,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:it(n,i)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},it=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${rt(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})}},rt=e=>e.replaceAll(/\D/g,""),lt=p((({className:e="",index:t,text:n,...i})=>{const r=fe(),{href:l,target:a,onClick:s}=r(i);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:s,children:n||`Документ ${t}`})})),at=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(lt,{index:t,className:"text-s",...e},String(t))))}):null]}))),st=[{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"}],ot=p((({version:e="primary",...t})=>{const n=fe(),{href:i,onClick:r}=n(t),{icon:l,label:a}=st.find((({origins:e})=>e.some((e=>i?.includes(e)))))||{};if(!l)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:i,"aria-label":a,target:"_blank",rel:"noopener noreferrer",onClick:r,children:l?h(U,{image:Y(l),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),ct=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(ot,{version:n,...e},String(t))))}))),dt=p((({className:e="",index:t,...n})=>{const i=fe(),{href:r,target:l,text:a,onClick:s}=i(n);return h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:s,children:a||`Документ ${t}`})})),mt=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(dt,{index:t,...e},String(t))))}):null]}))),ht=p((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=Je(c.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:a,socialMedia:s,horizontalNavigationTitle:o}=Je(c.FOOTER||"footer",n);return u("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[h(tt,{className:"overflow-hidden",items:a,hasButton:!0}),h(j,{children:i.topItems?.map(((e,t)=>h(X,{label:e.text,children:h(Ye,{documents:e.items})},String(t))))}),h("div",{children:i?.dispositions?.map(ut)}),h(et,{title:"Мобильное приложение",description:"Загрузить для IOS и Android",...t}),h(We,{className:"grow"}),h(ct,{className:"pb-4",media:s}),h(at,{title:o,links:l}),h(mt,{links:r})]})})),ut=(e,t)=>{const{icon:n,href:i,text:r}=e;return u(Ie,{version:"link",href:i,className:"flex text-s mb-4 w-6",children:[n?h(U,{className:"pr-1",image:Y(n),width:"24",height:"24",asSVG:!0}):null,h("span",{className:"pl-2.5 font-medium text-primary-text",children:r})]},`footer-${t}`)},pt={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(I,{headingType:"h3",className:`text-center ${t?"mb-2":"mb-5"}`,title:e}):null,t?h("div",{className:"text-m max-w-[600px] text-center mb-5",children:t}):null]}),gt(r,n)]})));function gt(e,t){return"horizontal"===e?h(de,{children:t?.map(bt)}):h("div",{className:"grid gap-[14px]",children:t?.map(bt)})}function bt(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 ${pt[e.version??"primary"]}`,children:[u("div",{children:[ft(e.icon),e.title?h("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?Nt(e):null,e.items?.length?vt(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,h(Ie,{className:"mt-3",...n})):null]},t);var n}const ft=e=>e?.src||e?.icon?h("div",{className:"flex justify-center",children:h(U,{className:"mb-3.5",image:e})}):null;function Nt(e){return h("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}const yt={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"};function vt(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 ${yt[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 wt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(he(e),he(me(e)?t.href:t.pathname)),kt=e=>t=>wt(t.href,e),$t=e=>t=>t.items?.some(kt(e))||wt(t.href,e)||((e,t)=>ue(e)===ue(t.href))(t.href,e),Ct="absolute left-0 -bottom-3 w-full h-[2px]",St=p((({className:e="",text:t,href:n,target:i,active:r,onClick:l,children:a,bgColor:s="bg-white"})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:i,onClick:l,children:[h("span",{className:Tt(s,r),children:t||a}),r?h("div",{className:_t(s,r)}):null]}))),Tt=(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`},_t=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Ct}`:Ct,It=o("https://10.80.4.9");const Rt=p((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:a})=>{const[s,o]=function(e){const[t,n]=i(e);return r((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,l((()=>{It.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(U,{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(U,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),s]}),a,h("div",{className:"mb-7",children:e?.map(jt)}),h(We,{className:"grow"})]})})),jt=(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(U,{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}`)},At=p((({onClick:e,bgColor:t})=>u("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[u("div",{className:"flex items-center",children:[h("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:h(U,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),h(Ze,{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:"Войти"})]}))),Dt=p((({className:e="",bgColor:t="bg-white",...n})=>{const r=be(),l=n.options?.page?.fallback,{topItems:a,dispositions:s,defaultLocation:o}=Je(c.SITEMAP||"sitemap",l),d=a?.find($t(r)),m=d?.items,p=(e=>(t=[])=>{const n=t?.filter(kt(e));return n?.length?le((e=>e.href?.length||0))(n):void 0})(r)(m),[x,g]=i(!1),b=()=>g(!x);return u("header",{className:`${t} ${e}`,children:[u("div",{className:"container px-4 py-0 box-border",children:[h(At,{onClick:b,bgColor:t}),h("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:h("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,n)=>h(St,{className:"mr-8 whitespace-nowrap text-s",active:e===p,bgColor:t,...e},String(n))))})})]}),x?h(Rt,{onClick:b,burgerSubMenu:s,defaultLocation:o,children:h(j,{children:a?.map(((e,t)=>h(X,{label:e.text,children:h(Ye,{documents:e.items})},String(t))))})}):null]})})),Ot={left:"text-left",center:"text-center",right:"text-right"},Vt={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"}},Mt=p((({bgColorHeadline:e="transparent",className:t="",title:n,description:i,image:r,align:l="left"})=>{const a=Vt[e];return u("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${a.background} ${t}`,children:[n?h(I,{headingType:"h2",className:`${a.text} ${Ot[l]}`,title:n}):null,i?h("p",{className:`text-m ${a.description} ${Ot[l]}`,children:i}):null,r?.src&&h("div",{className:"mt-2.5 mx-auto flex justify-center",children:h(U,{image:r})})]})})),Lt=p((({className:e,iconClassName:t,textClassName:n,suffixClassName:i,doc:r,icon:l})=>{const{text:a,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[l?h(U,{className:t,image:Y(l),width:"24px",height:"24px",asSVG:!0}):null,a?u("span",{className:n,children:[a,h("span",{className:i,children:o?.href&&Bt(Pt(o.href),s)})]}):null]})})),Bt=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Pt=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Ft=p((({className:e="",doc:t,icon:n})=>h(Lt,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),Et=p((({hasBorder:e=!0,documents:t,icon:n})=>h(de,{className:"text-s text-primary-main mt-5",children:t?.length?t.map(((t,i)=>h(Ft,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n},String(i)))):null}))),zt=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(Ft,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(i)))):null}))),Gt=p((({className:e="",title:t,description:n,icon:i={icon:"DocIconMonoColor"},documents:r,orientation:l="vertical",hasBorder:a=!0,...s})=>u("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[h(Mt,{className:"!p-0 "+(n?"gap-2":"gap-5"),title:t,description:n,align:"center",...s}),h("vertical"===l?zt:Et,{hasBorder:a,documents:r,icon:i})]}))),Ht=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Jt(e=""){const t=Ht(e);return t<=4?"S":t<=8?"M":"L"}function Ut(e=""){const t=Ht(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Wt(e=""){const t=Ht(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Yt=p((({className:e,title:t,description:n="Блок в разработке...",...i})=>u(T,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Wt(e)} ${Ut(e)} `,...i,children:[h(Mt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Jt(e),...i}),h("figure",{className:"m-0 min-w-[80%]",children:Kt()})]}))),Kt=(e=3)=>qt(100,e).map((e=>Math.floor(e))).map(Xt),Xt=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),qt=(e,t)=>[e].concat(t>0?qt(e/1.618,t-1):[]),Qt=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>Zt({button:e,index:t})))}):null));function Zt({button:e,buttonClassName:t,index:n}){const{icon:i,iconRight:r,version:l,...a}=e,s="secondary"===l?"color":"white",o=en({...i,iconVersion:s}),c=en({...r,iconVersion:s});return h(Ie,{className:t,appendLeft:o,appendRight:c,version:l,...a},n?String(n):"")}const en=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(U,{image:{...e},width:t,height:"24",asSVG:!0})},tn={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},nn={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"},rn=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 ${tn[i]} ${nn[r]}`})}):null,h("span",{children:n})]}))),ln={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},an={S:"text-l-light",M:"text-h6",L:"text-h5"},sn={S:"ml-2",M:"ml-3",L:"ml-4"},on=p((e=>{const{className:t="",hasIndent:n,isDotted:i,itemClassName:r="",items:l,listItemSize:a="M",version:s="primary"}=e;return l?.length?h("section",{className:`${ln[s]} ${an[a]} ${t} ${n?sn[a]:""}`,role:"list",children:l.map(((e,t)=>h(rn,{className:`${r} mb-1.5`,isDotted:i,version:s,size:a,children:e},String(t))))}):null})),cn=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]})]}))),dn={primary:"text-primary-text",secondary:"text-white"},mn={primary:"text-secondary-text",secondary:"text-white"},hn=p((e=>{const{className:t="",icon:n,label:i,description:r,version:l="primary",benefitsVersion:a="normal"}=e,s="white"===a?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:un(l,a),children:h(U,{className:"w-6 h-6",image:Y(n,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[i?h("div",{className:`text-h6 ${dn[l]}`,children:i}):null,r?h("div",{className:`text-m-light ${mn[l]}`,children:r}):null]})]})}));function un(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const pn=(e="primary",t="normal")=>({icon:n,label:i,description:r},l)=>h(hn,{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:a,version:s="primary",isDotted:o=!0,label:c,...d})=>u("div",{className:`w-full ${e}`,children:[u("div",{children:[c?fn(c,s):null,h(Mt,{className:"!p-0 max-w-[600px]",bgColorHeadline:s,headlineVersion:t,...d}),u(cn,{buttons:r?.length?h(Qt,{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(pn(s,i))}):null,a?.length?h(on,{className:"mt-3 text-m",items:a,version:s,isDotted:o}):null]})]}),gn(l)]})));function gn(e){return e?.src?h(U,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const bn={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},fn=(e,t)=>h("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${bn[t]}`,children:e}),Nn=p((e=>{const{className:t="",version:n="primary"}=e;return h("section",{className:`font-sans bg-white px-4 py-6 ${pt[n]} ${t}`,children:h(xn,{...e})})})),yn={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"}},vn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},wn={normal:"min-h-[70px]",small:"min-h-[50px]"},kn=p((({className:e,title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:a="primary"})=>{const s=yn[a];return u("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t?h(I,{headingType:"h3",className:`text-center ${s.title}`,title:t}):null,n?h("p",{className:`text-m-light text-center ${s.description} ${t?"mt-2":""}`,children:n}):null,r?.length?h("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:h("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map($n(l,a,i))})}):null]})})),$n=(e,t,n)=>(i,r,l)=>{const a=l.length-1===r,s="normal"===e?"ml-[34px]":"ml-6",o=yn[t];return h("div",{children:u("div",{className:"flex flex-row text-center relative",children:[u("div",{className:"overflow-hidden flex-shrink-0",children:[Cn(e,t)(i,r),a?null:h("div",{className:`min-h-8 h-full w-[2px] ${n?o.iconConnector:""} ${s}`})]}),u("div",{className:`flex flex-col justify-center h-fit ${wn[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))},Cn=(e,t)=>(n,i)=>{const r=yn[t],l="normal"===e?"38":"27",a="normal"===e?"text-m-title":"text-m-title-xs";return h("div",{className:`${vn[e]} ${r.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:h("span",{className:`font-medium flex self-center ${r.title} ${a}`,children:(s=n?.icon,Boolean(s?.icon||s?.src)?h(U,{image:Y({...n.icon},t),width:l,height:l,asSVG:!0}):h("span",{children:i+1}))})});var s},Sn={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,icon:t,...n},i)=>Zt({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(U,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>h(on,{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]})},Tn=p((({title:e,icon:t})=>u("div",{className:"flex gap-2.5 mb-2",children:[e?h(I,{headingType:"h3",className:"font-medium",title:e}):null,t?h(U,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),_n=p((({tile:e,...t})=>u("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[h(Tn,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>u("div",{children:[n>0?h("div",{className:"h-5"}):null,In(e,t)]},String(n)))):null]})));function In(e,t){if(!e||!e.tableCellType||!(e.tableCellType in Sn))return null;const n=Sn[e.tableCellType];return h(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const Rn=p((({tiles:e,...t})=>e?.length?h(de,{...t,children:e.map(((e,n)=>h(_n,{tile:e,...t},String(n))))}):null)),jn=p((({tiles:e,...t})=>e?.length?h("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>h(_n,{tile:e,...t},String(n))))}):null)),An=p((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...a})=>{const s=Dn(i),o=On(r,s);return u("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?h(I,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?h("div",{className:"mb-5 text-center text-m",children:n}):null,h("vertical"===l?jn:Rn,{tiles:o,...a})]})})),Dn=e=>e?.[0]?.data?e[0].data:[],On=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Vn={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"}},Mn=p((({title:e,description:t,blockVersion:n="primary",iconVersion:i,image:r,className:l="",items:a,isDotted:s=!0})=>{const o=Vn[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?Ln(o.icon):null,"big"===i?Bn(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${o.title}`,children:e}):null,t?h("div",{className:`text-s ${o.description}`,children:t}):null,a?.length?h(on,{className:"mt-1 text-m",items:a,isDotted:s,version:c}):null]})]})}));function Ln(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 Bn(e){return e?.src?h(U,{className:"pb-3 mr-auto",image:e}):null}const Pn={Accordion:A,AccordionItem:X,ComparisonTable:Pe,Footer:ht,Gallery:xt,Header:Dt,Headline:Mt,LinkDocs:Gt,LinkList:Ye,MobileAppTile:et,ProductBlock:Nn,StepsBlock:kn,TariffsTable:An,TextBlock:Mn,Placeholder:Yt},Fn=m();const En=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:zn()}))),zn=()=>{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"})]})},Gn=p((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await Fn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await Fn.like(e))}),[e]),dislike:l((async()=>{n(await Fn.dislike(e))}),[e])}}(be().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(En,{onClick:ge(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(En,{onClick:ge(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),Hn=p((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};return u("section",{className:`relative ${g(l)} ${t}`,"data-theme":c,children:[s?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(s?.header,{...d,slotName:"header"})}):null,u("div",{className:"container grid grid-cols-12 gap-1",children:[w(a,d),s?.footer?w(s?.footer,{...d,slotName:"footer"}):null]}),o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Gn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Hn.childrenTypes=[],Hn.slots=()=>["header","footer"];e.Blocks=Pn,e.ContentPage=Hn,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=ge,e.joinList=function(e){return t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:i},n):[n]),[])},e.packageVersion="0.6.36",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=xe,e.useRouter=be,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { CarouselProgramsCardContent } from './CarouselProgramsCardContent';
3
+ export interface CarouselTariffsCardProps extends CarouselProgramsCardContent, UniBlockProps {
4
+ }
5
+ export declare const CarouselProgramsCard: import("@redneckz/uni-jsx").UNIComponent<CarouselTariffsCardProps, any, any>;
@@ -0,0 +1,12 @@
1
+ import type { HeadlineCommonProps, TitleProps } from '../../model/HeadlineType';
2
+ import type { Picture } from '../../model/Picture';
3
+ import type { BlockVersion } from '../../model/BlockVersion';
4
+ /**
5
+ * @title Карточка программ карусели
6
+ */
7
+ export declare type CarouselProgramsCardContent = TitleProps & {
8
+ icon?: Picture;
9
+ /** @title Список */
10
+ list?: HeadlineCommonProps[];
11
+ version?: BlockVersion;
12
+ };
@@ -1,10 +1,11 @@
1
+ import { type IntersectionObserverOptions } from '../../hooks/useIntersectionObserver';
1
2
  import type { BgColorVersion } from '../../model/BgColorVersion';
2
3
  import type { LinkProps } from '../../model/LinkProps';
3
4
  export interface HeaderSubMenuItemProps extends LinkProps {
4
5
  className?: string;
5
6
  active?: boolean;
6
7
  bgColor?: BgColorVersion;
7
- observerOptions?: IntersectionObserverInit;
8
+ observerOptions?: IntersectionObserverOptions;
8
9
  onVisibilityChange?: (isIntersecting: boolean) => void;
9
10
  }
10
11
  export declare const HeaderSubMenuItem: import("@redneckz/uni-jsx").UNIComponent<HeaderSubMenuItemProps, any, any>;
@@ -1,3 +1,9 @@
1
- export declare function useIntersectionObserver<R extends Element>(observerCallback: IntersectionObserverCallback, observerOptions?: IntersectionObserverInit): {
1
+ export interface IntersectionObserverOptions<E extends Element = Element> {
2
+ sensitivity?: number;
3
+ rootRef?: {
4
+ current: E | null;
5
+ };
6
+ }
7
+ export declare function useIntersectionObserver<R extends Element>(observerCallback: IntersectionObserverCallback, { sensitivity, rootRef }?: IntersectionObserverOptions): {
2
8
  current: R | null;
3
9
  };
@@ -1,2 +1,4 @@
1
1
  import type { ButtonProps } from './ButtonProps';
2
2
  export declare const ArrowButton: import("@redneckz/uni-jsx").UNIComponent<ButtonProps, any, any>;
3
+ export declare const ScrollLeftButton: import("@redneckz/uni-jsx").UNIComponent<ButtonProps, any, any>;
4
+ export declare const ScrollRightButton: import("@redneckz/uni-jsx").UNIComponent<ButtonProps, any, any>;
@@ -0,0 +1,19 @@
1
+ import type { SwipeContainerProps } from './SwipeListControlProps';
2
+ declare type ItemsVisibilityList = Array<IntersectionObserverEntry | undefined>;
3
+ declare type SwipeListItemWidthAuto = 0;
4
+ /**
5
+ * @title Список
6
+ */
7
+ interface SwipeListContainerProps extends SwipeContainerProps {
8
+ className?: string;
9
+ containerRef?: {
10
+ current: HTMLDivElement | null;
11
+ };
12
+ activeIndex?: number;
13
+ visibleItemCount?: SwipeListItemWidthAuto | 1 | 2 | 3;
14
+ snapAlign?: 'snap-start' | 'snap-center' | 'snap-end';
15
+ onVisibleItemsChange?: (itemsVisibilityList: ItemsVisibilityList) => void;
16
+ onVisibleIndicesChange?: (indices: number[]) => void;
17
+ }
18
+ export declare const SwipeListContainer: import("@redneckz/uni-jsx").UNIComponent<SwipeListContainerProps, any, any>;
19
+ export {};
@@ -1,6 +1,9 @@
1
- export interface SwipeListControlDotsProps {
2
- activeIndex: number;
3
- indexFraction: number;
4
- showDots?: boolean;
1
+ interface SwipeListControlDotsProps {
2
+ containerRef?: {
3
+ current: HTMLDivElement | null;
4
+ };
5
+ activeIndex?: number;
6
+ dotCount?: number;
5
7
  }
6
8
  export declare const SwipeListControlDots: import("@redneckz/uni-jsx").UNIComponent<SwipeListControlDotsProps, any, any>;
9
+ export {};
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @title Контейнер
3
3
  */
4
- export interface SwipeContainer {
4
+ export interface SwipeContainerProps {
5
5
  /** @title Расстояние между элементами */
6
6
  gap?: number;
7
7
  /** @title Отступы */
@@ -10,9 +10,9 @@ export interface SwipeContainer {
10
10
  /**
11
11
  * @title Swipe-контроллер
12
12
  */
13
- export interface SwipeListControlProps extends SwipeContainer {
13
+ export interface SwipeListControlProps extends SwipeContainerProps {
14
14
  className?: string;
15
15
  /** @title Точки-индикаторы */
16
16
  showDots?: boolean;
17
- onSlideChange?: () => void;
17
+ onVisibleIndicesChange?: (indices: number[]) => void;
18
18
  }
@@ -0,0 +1,14 @@
1
+ import { type IntersectionObserverOptions } from '../../hooks/useIntersectionObserver';
2
+ /**
3
+ * @title Элемент списка
4
+ */
5
+ interface SwipeListControlItemProps {
6
+ className?: string;
7
+ style?: Record<string, string>;
8
+ idx?: number;
9
+ activeIndex?: number;
10
+ observerOptions?: IntersectionObserverOptions;
11
+ onIntersection?: (idx: number, entry: IntersectionObserverEntry) => void;
12
+ }
13
+ export declare const SwipeListItem: import("@redneckz/uni-jsx").UNIComponent<SwipeListControlItemProps, any, any>;
14
+ export {};
@@ -0,0 +1 @@
1
+ export declare const scrollBy: (container: HTMLElement) => (itemCount: number, delta: -1 | 1) => void;
@@ -0,0 +1 @@
1
+ export declare const scrollToEnd: (container: HTMLElement) => void;
@@ -0,0 +1 @@
1
+ export declare const scrollToStart: (container: HTMLElement) => void;
@@ -0,0 +1,17 @@
1
+ export interface SwipeListScroll {
2
+ scrollLeft: () => void;
3
+ scrollRight: () => void;
4
+ canScrollLeft: boolean;
5
+ canScrollRight: boolean;
6
+ visibleIndicesRange: [number, number];
7
+ handleVisibleIndicesChange: (indices: number[]) => void;
8
+ }
9
+ interface SwipeListScrollProps {
10
+ itemCount: number;
11
+ isCyclic?: boolean;
12
+ onVisibleIndicesChange?: (indices: number[]) => void;
13
+ }
14
+ export declare const useSwipeListScroll: <E extends HTMLElement>({ itemCount, isCyclic, onVisibleIndicesChange, }: SwipeListScrollProps) => [containerRef: {
15
+ current: E | null;
16
+ }, scroll: SwipeListScroll];
17
+ export {};
@@ -0,0 +1 @@
1
+ export declare const areArraysEqual: <T>(as?: T[] | undefined, bs?: T[] | undefined) => boolean;
@@ -0,0 +1,2 @@
1
+ import type { VNode } from '../model/VNode';
2
+ export declare const mapChildren: (mapper: (node: VNode, idx: number) => VNode) => (children: VNode) => VNode;
@@ -1,2 +1,2 @@
1
- export declare const maxBy: <Item, Value>(discriminator: (item: Item) => Value) => (list: Item[]) => Item;
2
- export declare const minBy: <Item, Value>(discriminator: (item: Item) => Value) => (list: Item[]) => Item;
1
+ export declare const defaultDiscriminator: <Item, Value>(_: Item) => Value;
2
+ export declare const maxBy: <Item, Value = Item>(discriminator?: (item: Item) => Value) => (list: Item[]) => Item;
@@ -0,0 +1 @@
1
+ export declare const minBy: <Item, Value = Item>(discriminator?: (item: Item) => Value) => (list: Item[]) => Item;
@@ -2,29 +2,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.Carousel = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
6
5
  const renderChildren_1 = require("../../BlockRenderer/renderChildren");
7
- const useCarouselControls_1 = require("../../hooks/useCarouselControls");
8
6
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
9
- const renderArrows_1 = require("../../ui-kit/Button/renderArrows");
10
- const CarouselContainer_1 = require("./CarouselContainer");
7
+ const ArrowButton_1 = require("../../ui-kit/Button/ArrowButton");
8
+ const SwipeListContainer_1 = require("../../ui-kit/SwipeListControl/SwipeListContainer");
9
+ const useSwipeListScroll_1 = require("../../ui-kit/SwipeListControl/useSwipeListScroll");
10
+ const ITEMS_GAP = 4;
11
11
  const blurBaseStyle = 'absolute top-0 bottom-0 z-50 w-[84px]';
12
+ const scrollButtonStyle = 'absolute top-1/2 z-50';
12
13
  exports.Carousel = (0, uni_jsx_1.JSX)(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, ...rest }) => {
13
14
  const { blocks: childBlocks } = rest.block || {};
14
15
  const count = itemCount || childBlocks?.length || 0;
15
- const containerRef = (0, hooks_1.useRef)(null);
16
- const [activeIndex, controls] = (0, useCarouselControls_1.useCarouselControls)({
16
+ const [containerRef, scroll] = (0, useSwipeListScroll_1.useSwipeListScroll)({
17
17
  itemCount: count,
18
- visibleItemCount,
19
18
  isCyclic,
20
- container: containerRef.current,
21
19
  });
22
- const { isScrollAvailable } = controls;
23
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `relative font-sans overflow-hidden ${className}`, ...rest, children: [(0, jsx_runtime_1.jsx)(CarouselContainer_1.CarouselContainer, { activeIndex: activeIndex, itemCount: count, visibleItemCount: visibleItemCount, containerRef: containerRef, children: (0, renderChildren_1.renderChildren)(rest) }), isScrollAvailable && isBlur ? ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: `${blurBaseStyle} left-0 bg-opacity-from-white` }), (0, jsx_runtime_1.jsx)("div", { className: `${blurBaseStyle} right-0 bg-opacity-to-white` })] })) : null, (0, renderArrows_1.renderArrows)({
24
- ...controls,
25
- btnClass: ['left-8', 'right-8'],
26
- className: 'top-1/2',
27
- })] }));
20
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `relative font-sans ${className}`, ...rest, children: [(0, jsx_runtime_1.jsx)(SwipeListContainer_1.SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: (0, renderChildren_1.renderChildren)(rest) }), (scroll.canScrollLeft || scroll.canScrollRight) && isBlur ? ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: `${blurBaseStyle} left-0 bg-opacity-from-white` }), (0, jsx_runtime_1.jsx)("div", { className: `${blurBaseStyle} right-0 bg-opacity-to-white` })] })) : null, renderScrollButtons(scroll)] }));
28
21
  });
29
- exports.Carousel.childrenTypes = ['CarouselCard', 'CarouselTariffsCard'];
22
+ exports.Carousel.childrenTypes = [
23
+ 'CarouselCard',
24
+ 'CarouselTariffsCard',
25
+ 'CarouselLinks',
26
+ 'CarouselProgramsCard',
27
+ ];
28
+ const renderScrollButtons = ({ scrollLeft, scrollRight, canScrollLeft, canScrollRight, }) => ((0, jsx_runtime_1.jsxs)("div", { children: [canScrollLeft ? ((0, jsx_runtime_1.jsx)(ArrowButton_1.ScrollLeftButton, { className: `${scrollButtonStyle} left-8`, onClick: scrollLeft })) : null, canScrollRight ? ((0, jsx_runtime_1.jsx)(ArrowButton_1.ScrollRightButton, { className: `${scrollButtonStyle} right-8`, onClick: scrollRight })) : null] }));
30
29
  //# sourceMappingURL=Carousel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAqD;AACrD,uEAAoE;AACpE,yEAAsE;AAEtE,4DAAyD;AACzD,mEAAgE;AAChE,2DAAwD;AAOxD,MAAM,aAAa,GAAG,uCAAuC,CAAC;AAEjD,QAAA,QAAQ,GAA4B,IAAA,aAAG,EAClD,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;IACjD,MAAM,KAAK,GAAG,SAAS,IAAI,WAAW,EAAE,MAAM,IAAI,CAAC,CAAC;IAEpD,MAAM,YAAY,GAAG,IAAA,cAAM,EAAwB,IAAI,CAAC,CAAC;IAEzD,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,GAAG,IAAA,yCAAmB,EAAC;QAClD,SAAS,EAAE,KAAK;QAChB,gBAAgB;QAChB,QAAQ;QACR,SAAS,EAAE,YAAY,CAAC,OAAO;KAChC,CAAC,CAAC;IACH,MAAM,EAAE,iBAAiB,EAAE,GAAG,QAAQ,CAAC;IAEvC,OAAO,CACL,wBAAC,2BAAY,IAAC,SAAS,EAAE,sCAAsC,SAAS,EAAE,KAAM,IAAI,aAClF,uBAAC,qCAAiB,IAChB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,KAAK,EAChB,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY,YAEzB,IAAA,+BAAc,EAAC,IAAI,CAAC,GACH,EACnB,iBAAiB,IAAI,MAAM,CAAC,CAAC,CAAC,CAC7B,4CACE,gCAAK,SAAS,EAAE,GAAG,aAAa,+BAA+B,GAAI,EACnE,gCAAK,SAAS,EAAE,GAAG,aAAa,8BAA8B,GAAI,IAC9D,CACP,CAAC,CAAC,CAAC,IAAI,EACP,IAAA,2BAAY,EAAC;gBACZ,GAAG,QAAQ;gBACX,QAAQ,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;gBAC/B,SAAS,EAAE,SAAS;aACrB,CAAC,IACW,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAQ,CAAC,aAAa,GAAG,CAAC,cAAc,EAAE,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/components/Carousel/Carousel.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uEAAoE;AAEpE,4DAAyD;AACzD,iEAAsF;AACtF,yFAAsF;AACtF,yFAG0D;AAO1D,MAAM,SAAS,GAAG,CAAC,CAAC;AAEpB,MAAM,aAAa,GAAG,uCAAuC,CAAC;AAC9D,MAAM,iBAAiB,GAAG,uBAAuB,CAAC;AAErC,QAAA,QAAQ,GAA4B,IAAA,aAAG,EAClD,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC5F,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;IACjD,MAAM,KAAK,GAAG,SAAS,IAAI,WAAW,EAAE,MAAM,IAAI,CAAC,CAAC;IAEpD,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,IAAA,uCAAkB,EAAiB;QAChE,SAAS,EAAE,KAAK;QAChB,QAAQ;KACT,CAAC,CAAC;IAEH,OAAO,CACL,wBAAC,2BAAY,IAAC,SAAS,EAAE,sBAAsB,SAAS,EAAE,KAAM,IAAI,aAClE,uBAAC,uCAAkB,IACjB,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAC,YAAY,EACtB,GAAG,EAAE,SAAS,EACd,sBAAsB,EAAE,MAAM,CAAC,0BAA0B,YAExD,IAAA,+BAAc,EAAC,IAAI,CAAC,GACF,EACpB,CAAC,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,cAAc,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAC3D,4CACE,gCAAK,SAAS,EAAE,GAAG,aAAa,+BAA+B,GAAI,EACnE,gCAAK,SAAS,EAAE,GAAG,aAAa,8BAA8B,GAAI,IAC9D,CACP,CAAC,CAAC,CAAC,IAAI,EACP,mBAAmB,CAAC,MAAM,CAAC,IACf,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAQ,CAAC,aAAa,GAAG;IACvB,cAAc;IACd,qBAAqB;IACrB,eAAe;IACf,sBAAsB;CACvB,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,EAC3B,UAAU,EACV,WAAW,EACX,aAAa,EACb,cAAc,GACE,EAAE,EAAE,CAAC,CACrB,4CACG,aAAa,CAAC,CAAC,CAAC,CACf,uBAAC,8BAAgB,IAAC,SAAS,EAAE,GAAG,iBAAiB,SAAS,EAAE,OAAO,EAAE,UAAU,GAAI,CACpF,CAAC,CAAC,CAAC,IAAI,EACP,cAAc,CAAC,CAAC,CAAC,CAChB,uBAAC,+BAAiB,IAAC,SAAS,EAAE,GAAG,iBAAiB,UAAU,EAAE,OAAO,EAAE,WAAW,GAAI,CACvF,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { UniBlockProps } from '../../model/JSXBlock';
2
+ import type { CarouselProgramsCardContent } from './CarouselProgramsCardContent';
3
+ export interface CarouselTariffsCardProps extends CarouselProgramsCardContent, UniBlockProps {
4
+ }
5
+ export declare const CarouselProgramsCard: import("@redneckz/uni-jsx").UNIComponent<CarouselTariffsCardProps, any, any>;
@@ -0,0 +1,12 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.CarouselProgramsCard = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const BlockVersion_1 = require("../../model/BlockVersion");
6
+ const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
7
+ const Heading_1 = require("../../ui-kit/Heading/Heading");
8
+ const Img_1 = require("../../ui-kit/Img/Img");
9
+ const getIconWithVersion_1 = require("../../utils/getIconWithVersion");
10
+ exports.CarouselProgramsCard = (0, uni_jsx_1.JSX)(({ className = '', title, icon, list = [], version = 'primary', ...rest }) => ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `font-sans border border-main-stroke flex min-w-[536px] ${BlockVersion_1.VersionStyleMap[version]} ${className}`, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[200px] min-w-[200px] self-end", children: [icon?.icon ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: (0, getIconWithVersion_1.getIconWithVersion)(icon), asSVG: true }) : null, icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null] }), (0, jsx_runtime_1.jsxs)("div", { className: "p-8 pl-3 w-full", children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: " mb-3.5", headingType: "h5", title: title }) : null, list.length ? (0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-3", children: list?.map(renderList) }) : null] })] })));
11
+ const renderList = (_, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "break-words", children: [_.title ? (0, jsx_runtime_1.jsx)("div", { className: `text-h6`, children: _.title }) : null, _.description ? (0, jsx_runtime_1.jsx)("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
12
+ //# sourceMappingURL=CarouselProgramsCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarouselProgramsCard.js","sourceRoot":"","sources":["../../../src/components/CarouselProgramsCard/CarouselProgramsCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,2DAA2D;AAG3D,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAC3C,uEAAoE;AAKvD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5E,wBAAC,2BAAY,IACX,SAAS,EAAE,0DAA0D,8BAAe,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,KACxG,IAAI,aAER,iCAAK,SAAS,EAAC,kCAAkC,aAC9C,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAA,uCAAkB,EAAC,IAAI,CAAC,EAAE,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EAClE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,IACpC,EACN,iCAAK,SAAS,EAAC,iBAAiB,aAC7B,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,SAAS,EAAC,SAAS,EAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC7E,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,qBAAqB,YAAE,IAAI,EAAE,GAAG,CAAC,UAAU,CAAC,GAAO,CAAC,CAAC,CAAC,IAAI,IACpF,IACO,CAChB,CACF,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,CAAsB,EAAE,CAAS,EAAE,EAAE,CAAC,CACxD,iCAAqB,SAAS,EAAC,aAAa,aACzC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,SAAS,YAAG,CAAC,CAAC,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EAC3D,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,mBAAmB,YAAE,CAAC,CAAC,WAAW,GAAQ,CAAC,CAAC,CAAC,IAAI,KAF1E,MAAM,CAAC,CAAC,CAAC,CAGb,CACP,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { HeadlineCommonProps, TitleProps } from '../../model/HeadlineType';
2
+ import type { Picture } from '../../model/Picture';
3
+ import type { BlockVersion } from '../../model/BlockVersion';
4
+ /**
5
+ * @title Карточка программ карусели
6
+ */
7
+ export declare type CarouselProgramsCardContent = TitleProps & {
8
+ icon?: Picture;
9
+ /** @title Список */
10
+ list?: HeadlineCommonProps[];
11
+ version?: BlockVersion;
12
+ };
@@ -0,0 +1,2 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ //# sourceMappingURL=CarouselProgramsCardContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarouselProgramsCardContent.js","sourceRoot":"","sources":["../../../src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts"],"names":[],"mappings":""}
@@ -9,21 +9,15 @@ const FoldableSection_1 = require("../../ui-kit/Foldable/FoldableSection");
9
9
  const Heading_1 = require("../../ui-kit/Heading/Heading");
10
10
  const Icon_1 = require("../../ui-kit/Icon/Icon");
11
11
  const Img_1 = require("../../ui-kit/Img/Img");
12
+ const VISIBLE_ROWS_COUNT = 1;
12
13
  exports.CarouselTariffsCard = (0, uni_jsx_1.JSX)(({ className = '', title, icon, isHighlighting, button, rows = [], ...rest }) => {
13
- const hitStyle = getHitStyle(Boolean(isHighlighting));
14
14
  const rowsNode = rows.map(renderCardInfo);
15
- const VISIBLE_ROWS_COUNT = 1;
16
- const [visibleRows, hiddenRows] = [
17
- rowsNode.slice(0, VISIBLE_ROWS_COUNT),
18
- rowsNode.slice(VISIBLE_ROWS_COUNT),
19
- ];
20
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { className: `font-sans bg-white p-8 border border-main-stroke relative w-[322px] min-w-[322px] -ml-[1px] ${hitStyle} ${className}`, ...rest, children: [isHighlighting ? renderHitIcon() : null, icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "flex justify-center", image: icon }) : null, title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "text-primary-text text-center pt-2", headingType: "h5", title: title })) : null, button ? (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "w-full mt-4", ...button }) : null, rows?.length ? ((0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsxs)("div", { children: [visibleRows, (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: rows.length > 1 ? renderFoldButton : null })) : null] }));
15
+ const visibleRows = rowsNode.slice(0, VISIBLE_ROWS_COUNT);
16
+ const hiddenRows = rowsNode.slice(VISIBLE_ROWS_COUNT);
17
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { className: `font-sans ${className}`, ...rest, children: (0, jsx_runtime_1.jsxs)("div", { className: `relative bg-white border border-main-stroke min-w-[322px] p-8 ${getHitStyle(isHighlighting)}`, children: [isHighlighting ? renderHitIcon() : null, icon?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon }) : null, title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "text-primary-text text-center pt-2", headingType: "h5", title: title })) : null, button ? (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "w-full mt-4", ...button }) : null, rows?.length ? ((0, jsx_runtime_1.jsx)(Foldable_1.Foldable, { renderFoldableSection: ({ isUnfolded }) => ((0, jsx_runtime_1.jsxs)("div", { children: [visibleRows, (0, jsx_runtime_1.jsx)(FoldableSection_1.FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: rows.length > 1 ? renderFoldButton : null })) : null] }) }));
21
18
  });
22
- const getHitStyle = (isHighlighting) => isHighlighting ? 'mt-9 pt-[71px]' : 'mt-[70px] pt-9';
19
+ const getHitStyle = (isHighlighting) => isHighlighting ? 'mt-9 pt-[70px]' : 'mt-[70px] pt-9';
23
20
  const renderFoldButton = ({ isUnfolded, onToggle }) => ((0, jsx_runtime_1.jsxs)("button", { className: "w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center", onClick: onToggle, children: [(0, jsx_runtime_1.jsx)("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), (0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16", asSVG: true })] }));
24
- const renderCardInfo = (cell, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "py-5 border-b border-main-divider flex flex-col gap-1", children: [cell?.title ? ((0, jsx_runtime_1.jsx)("div", { className: "text-secondary-text text-m-light opacity-80", children: cell.title })) : null, cell?.description ? (0, jsx_runtime_1.jsx)("div", { className: "text-primary-text text-h6", children: cell.description }) : null] }, String(i)));
25
- const renderHitIcon = () => {
26
- const POSITION_STYLE = 'absolute -top-7 -right-4';
27
- return ((0, jsx_runtime_1.jsxs)("div", { className: `h-[60px] w-[60px] bg-white flex flex-col items-center justify-center shadow-[0_4px_25px_rgba(0,0,0,0.07)] ${POSITION_STYLE}`, children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { iconVersion: "black", name: "HeartIcon", width: "23", height: "22", asSVG: true }), (0, jsx_runtime_1.jsx)("div", { className: "text-center", children: "\u0425\u0438\u0442" })] }));
28
- };
21
+ const renderCardInfo = (cell, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "py-5 border-b border-main-divider", children: [cell?.title ? ((0, jsx_runtime_1.jsx)("div", { className: "text-secondary-text text-m-light opacity-80", children: cell.title })) : null, cell?.description ? ((0, jsx_runtime_1.jsx)("div", { className: "text-primary-text text-h6 mt-1", children: cell.description })) : null] }, String(i)));
22
+ const renderHitIcon = () => ((0, jsx_runtime_1.jsxs)("div", { className: "absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center shadow-[0_4px_25px_rgba(0,0,0,0.07)]", children: [(0, jsx_runtime_1.jsx)(Icon_1.Icon, { iconVersion: "black", name: "HeartIcon", width: "23", height: "22", asSVG: true }), (0, jsx_runtime_1.jsx)("div", { className: "text-center", children: "\u0425\u0438\u0442" })] }));
29
23
  //# sourceMappingURL=CarouselTariffsCard.js.map