@redneckz/wildless-cms-uni-blocks 0.6.34 → 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 (586) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +214 -71
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/Calculator/constants.d.ts +3 -0
  5. package/bundle/components/Calculator/useDepositCalculatorParams.d.ts +22 -0
  6. package/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  7. package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  8. package/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -0
  9. package/bundle/components/Header/HeaderSubMenuItem.d.ts +2 -1
  10. package/bundle/hooks/useIntersectionObserver.d.ts +7 -1
  11. package/bundle/services/sitemap/SitemapProps.d.ts +1 -2
  12. package/bundle/ui-kit/Button/ArrowButton.d.ts +2 -0
  13. package/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  14. package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  15. package/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  16. package/bundle/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  17. package/bundle/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  18. package/bundle/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  19. package/bundle/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  20. package/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  21. package/bundle/utils/areArraysEqual.d.ts +1 -0
  22. package/bundle/utils/mapChildren.d.ts +2 -0
  23. package/bundle/utils/maxBy.d.ts +2 -2
  24. package/bundle/utils/minBy.d.ts +1 -0
  25. package/dist/components/Blocks.js +3 -1
  26. package/dist/components/Blocks.js.map +1 -1
  27. package/dist/components/Calculator/DepositCalculatorForm.js +13 -11
  28. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  29. package/dist/components/Calculator/constants.d.ts +3 -0
  30. package/dist/components/Calculator/constants.js +10 -1
  31. package/dist/components/Calculator/constants.js.map +1 -1
  32. package/dist/components/Calculator/useDepositCalculatorParams.d.ts +22 -0
  33. package/dist/components/Calculator/useDepositCalculatorParams.js +28 -0
  34. package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -0
  35. package/dist/components/Carousel/Carousel.js +14 -15
  36. package/dist/components/Carousel/Carousel.js.map +1 -1
  37. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  38. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +12 -0
  39. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  40. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  41. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  42. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  43. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +7 -13
  44. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  45. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +1 -1
  46. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  47. package/dist/components/Gallery/Gallery.mobile.js +1 -1
  48. package/dist/components/Header/Header.js +2 -2
  49. package/dist/components/Header/Header.js.map +1 -1
  50. package/dist/components/Header/HeaderSecondaryMenu.d.ts +1 -0
  51. package/dist/components/Header/HeaderSecondaryMenu.js +2 -2
  52. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  53. package/dist/components/Header/HeaderSubMenu.js +1 -1
  54. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  55. package/dist/components/Header/HeaderSubMenuItem.d.ts +2 -1
  56. package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  57. package/dist/components/OtherProductsItem/OtherProductsItem.js +1 -1
  58. package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  59. package/dist/components/RollupItem/RollupItem.js +10 -1
  60. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  61. package/dist/components/VerticalLayout/VerticalLayout.js +5 -3
  62. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  63. package/dist/hooks/useIntersectionObserver.d.ts +7 -1
  64. package/dist/hooks/useIntersectionObserver.js +10 -1
  65. package/dist/hooks/useIntersectionObserver.js.map +1 -1
  66. package/dist/hooks/useLink.js +1 -1
  67. package/dist/hooks/useLink.js.map +1 -1
  68. package/dist/services/sitemap/SitemapProps.d.ts +1 -2
  69. package/dist/ui-kit/BlockWrapper.js +1 -11
  70. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  71. package/dist/ui-kit/Button/ArrowButton.d.ts +2 -0
  72. package/dist/ui-kit/Button/ArrowButton.js +3 -1
  73. package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  74. package/dist/ui-kit/Foldable/FoldableSection.js +1 -1
  75. package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  76. package/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  77. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +35 -0
  78. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  79. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  80. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  81. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  82. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  83. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  84. package/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  85. package/dist/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  86. package/dist/ui-kit/SwipeListControl/SwipeListItem.js +16 -0
  87. package/dist/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  88. package/dist/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  89. package/dist/ui-kit/SwipeListControl/scrollBy.js +8 -0
  90. package/dist/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  91. package/dist/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  92. package/dist/ui-kit/SwipeListControl/scrollToEnd.js +7 -0
  93. package/dist/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  94. package/dist/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  95. package/dist/ui-kit/SwipeListControl/scrollToStart.js +7 -0
  96. package/dist/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  97. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  98. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +57 -0
  99. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  100. package/dist/utils/areArraysEqual.d.ts +1 -0
  101. package/dist/utils/areArraysEqual.js +5 -0
  102. package/dist/utils/areArraysEqual.js.map +1 -0
  103. package/dist/utils/mapChildren.d.ts +2 -0
  104. package/dist/utils/mapChildren.js +10 -0
  105. package/dist/utils/mapChildren.js.map +1 -0
  106. package/dist/utils/maxBy.d.ts +2 -2
  107. package/dist/utils/maxBy.js +4 -4
  108. package/dist/utils/maxBy.js.map +1 -1
  109. package/dist/utils/minBy.d.ts +1 -0
  110. package/dist/utils/minBy.js +6 -0
  111. package/dist/utils/minBy.js.map +1 -0
  112. package/lib/common.css +1 -1
  113. package/lib/components/Blocks.js +3 -1
  114. package/lib/components/Blocks.js.map +1 -1
  115. package/lib/components/Calculator/DepositCalculatorForm.js +14 -12
  116. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  117. package/lib/components/Calculator/constants.d.ts +3 -0
  118. package/lib/components/Calculator/constants.js +9 -0
  119. package/lib/components/Calculator/constants.js.map +1 -1
  120. package/lib/components/Calculator/useDepositCalculatorParams.d.ts +22 -0
  121. package/lib/components/Calculator/useDepositCalculatorParams.js +25 -0
  122. package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -0
  123. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
  124. package/lib/components/Carousel/Carousel.js +14 -15
  125. package/lib/components/Carousel/Carousel.js.map +1 -1
  126. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  127. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +8 -0
  128. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +10 -0
  129. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  130. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  131. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  132. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  133. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.d.ts +1 -1
  134. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +7 -13
  135. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  136. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +1 -1
  137. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  138. package/lib/components/Gallery/Gallery.mobile.js +1 -1
  139. package/lib/components/Header/Header.js +2 -2
  140. package/lib/components/Header/Header.js.map +1 -1
  141. package/lib/components/Header/HeaderSecondaryMenu.d.ts +1 -0
  142. package/lib/components/Header/HeaderSecondaryMenu.js +2 -2
  143. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  144. package/lib/components/Header/HeaderSubMenu.js +1 -1
  145. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  146. package/lib/components/Header/HeaderSubMenuItem.d.ts +2 -1
  147. package/lib/components/Header/HeaderSubMenuItem.js +1 -1
  148. package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  149. package/lib/components/OtherProductsItem/OtherProductsItem.js +1 -1
  150. package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  151. package/lib/components/RollupItem/RollupItem.js +10 -1
  152. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  153. package/lib/components/VerticalLayout/VerticalLayout.js +5 -3
  154. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  155. package/lib/hooks/useIntersectionObserver.d.ts +7 -1
  156. package/lib/hooks/useIntersectionObserver.js +11 -2
  157. package/lib/hooks/useIntersectionObserver.js.map +1 -1
  158. package/lib/hooks/useLink.js +2 -2
  159. package/lib/hooks/useLink.js.map +1 -1
  160. package/lib/services/sitemap/SitemapProps.d.ts +1 -2
  161. package/lib/ui-kit/BlockWrapper.js +1 -11
  162. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  163. package/lib/ui-kit/Button/ArrowButton.d.ts +2 -0
  164. package/lib/ui-kit/Button/ArrowButton.js +2 -0
  165. package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  166. package/lib/ui-kit/Foldable/FoldableSection.js +1 -1
  167. package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  168. package/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  169. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +33 -0
  170. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  171. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  172. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  173. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  174. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  175. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  176. package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  177. package/lib/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  178. package/lib/ui-kit/SwipeListControl/SwipeListItem.js +14 -0
  179. package/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  180. package/lib/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  181. package/lib/ui-kit/SwipeListControl/scrollBy.js +5 -0
  182. package/lib/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  183. package/lib/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  184. package/lib/ui-kit/SwipeListControl/scrollToEnd.js +4 -0
  185. package/lib/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  186. package/lib/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  187. package/lib/ui-kit/SwipeListControl/scrollToStart.js +4 -0
  188. package/lib/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  189. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  190. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +54 -0
  191. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  192. package/lib/utils/areArraysEqual.d.ts +1 -0
  193. package/lib/utils/areArraysEqual.js +2 -0
  194. package/lib/utils/areArraysEqual.js.map +1 -0
  195. package/lib/utils/mapChildren.d.ts +2 -0
  196. package/lib/utils/mapChildren.js +7 -0
  197. package/lib/utils/mapChildren.js.map +1 -0
  198. package/lib/utils/maxBy.d.ts +2 -2
  199. package/lib/utils/maxBy.js +2 -2
  200. package/lib/utils/maxBy.js.map +1 -1
  201. package/lib/utils/minBy.d.ts +1 -0
  202. package/lib/utils/minBy.js +3 -0
  203. package/lib/utils/minBy.js.map +1 -0
  204. package/mobile/bundle/bundle.umd.js +141 -140
  205. package/mobile/bundle/bundle.umd.min.js +1 -1
  206. package/mobile/bundle/components/Calculator/constants.d.ts +3 -0
  207. package/mobile/bundle/components/Calculator/useDepositCalculatorParams.d.ts +22 -0
  208. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  209. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  210. package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +1 -0
  211. package/mobile/bundle/components/Header/HeaderSubMenuItem.d.ts +2 -1
  212. package/mobile/bundle/hooks/useIntersectionObserver.d.ts +7 -1
  213. package/mobile/bundle/services/sitemap/SitemapProps.d.ts +1 -2
  214. package/mobile/bundle/ui-kit/Button/ArrowButton.d.ts +2 -0
  215. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  216. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  217. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  218. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  219. package/mobile/bundle/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  220. package/mobile/bundle/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  221. package/mobile/bundle/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  222. package/mobile/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  223. package/mobile/bundle/utils/areArraysEqual.d.ts +1 -0
  224. package/mobile/bundle/utils/mapChildren.d.ts +2 -0
  225. package/mobile/bundle/utils/maxBy.d.ts +2 -2
  226. package/mobile/bundle/utils/minBy.d.ts +1 -0
  227. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +13 -11
  228. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  229. package/mobile/dist/components/Calculator/constants.d.ts +3 -0
  230. package/mobile/dist/components/Calculator/constants.js +10 -1
  231. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  232. package/mobile/dist/components/Calculator/useDepositCalculatorParams.d.ts +22 -0
  233. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +28 -0
  234. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -0
  235. package/mobile/dist/components/Carousel/Carousel.js +14 -15
  236. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  237. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  238. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +12 -0
  239. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  240. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  241. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  242. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  243. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +7 -13
  244. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  245. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +1 -1
  246. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  247. package/mobile/dist/components/Gallery/Gallery.js +1 -1
  248. package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +1 -0
  249. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +2 -2
  250. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  251. package/mobile/dist/components/Header/HeaderSubMenu.js +1 -1
  252. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  253. package/mobile/dist/components/Header/HeaderSubMenuItem.d.ts +2 -1
  254. package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  255. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +1 -1
  256. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  257. package/mobile/dist/components/RollupItem/RollupItem.js +10 -1
  258. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  259. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +5 -3
  260. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  261. package/mobile/dist/hooks/useIntersectionObserver.d.ts +7 -1
  262. package/mobile/dist/hooks/useIntersectionObserver.js +10 -1
  263. package/mobile/dist/hooks/useIntersectionObserver.js.map +1 -1
  264. package/mobile/dist/hooks/useLink.js +1 -1
  265. package/mobile/dist/hooks/useLink.js.map +1 -1
  266. package/mobile/dist/services/sitemap/SitemapProps.d.ts +1 -2
  267. package/mobile/dist/ui-kit/BlockWrapper.js +1 -11
  268. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  269. package/mobile/dist/ui-kit/Button/ArrowButton.d.ts +2 -0
  270. package/mobile/dist/ui-kit/Button/ArrowButton.js +3 -1
  271. package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  272. package/mobile/dist/ui-kit/Foldable/FoldableSection.js +1 -1
  273. package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  274. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  275. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +35 -0
  276. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  277. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  278. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  279. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  280. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  281. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  282. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  283. package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  284. package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.js +16 -0
  285. package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  286. package/mobile/dist/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  287. package/mobile/dist/ui-kit/SwipeListControl/scrollBy.js +8 -0
  288. package/mobile/dist/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  289. package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  290. package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.js +7 -0
  291. package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  292. package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  293. package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.js +7 -0
  294. package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  295. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  296. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +57 -0
  297. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  298. package/mobile/dist/utils/areArraysEqual.d.ts +1 -0
  299. package/mobile/dist/utils/areArraysEqual.js +5 -0
  300. package/mobile/dist/utils/areArraysEqual.js.map +1 -0
  301. package/mobile/dist/utils/mapChildren.d.ts +2 -0
  302. package/mobile/dist/utils/mapChildren.js +10 -0
  303. package/mobile/dist/utils/mapChildren.js.map +1 -0
  304. package/mobile/dist/utils/maxBy.d.ts +2 -2
  305. package/mobile/dist/utils/maxBy.js +4 -4
  306. package/mobile/dist/utils/maxBy.js.map +1 -1
  307. package/mobile/dist/utils/minBy.d.ts +1 -0
  308. package/mobile/dist/utils/minBy.js +6 -0
  309. package/mobile/dist/utils/minBy.js.map +1 -0
  310. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +14 -12
  311. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  312. package/mobile/lib/components/Calculator/constants.d.ts +3 -0
  313. package/mobile/lib/components/Calculator/constants.js +9 -0
  314. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  315. package/mobile/lib/components/Calculator/useDepositCalculatorParams.d.ts +22 -0
  316. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +25 -0
  317. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -0
  318. package/mobile/lib/components/Carousel/Carousel.js +14 -15
  319. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  320. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  321. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +10 -0
  322. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  323. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  324. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  325. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  326. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +7 -13
  327. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  328. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +1 -1
  329. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  330. package/mobile/lib/components/Gallery/Gallery.js +1 -1
  331. package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +1 -0
  332. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +2 -2
  333. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  334. package/mobile/lib/components/Header/HeaderSubMenu.js +1 -1
  335. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  336. package/mobile/lib/components/Header/HeaderSubMenuItem.d.ts +2 -1
  337. package/mobile/lib/components/Header/HeaderSubMenuItem.js +1 -1
  338. package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  339. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +1 -1
  340. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  341. package/mobile/lib/components/RollupItem/RollupItem.js +10 -1
  342. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  343. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +5 -3
  344. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  345. package/mobile/lib/hooks/useIntersectionObserver.d.ts +7 -1
  346. package/mobile/lib/hooks/useIntersectionObserver.js +11 -2
  347. package/mobile/lib/hooks/useIntersectionObserver.js.map +1 -1
  348. package/mobile/lib/hooks/useLink.js +2 -2
  349. package/mobile/lib/hooks/useLink.js.map +1 -1
  350. package/mobile/lib/services/sitemap/SitemapProps.d.ts +1 -2
  351. package/mobile/lib/ui-kit/BlockWrapper.js +1 -11
  352. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  353. package/mobile/lib/ui-kit/Button/ArrowButton.d.ts +2 -0
  354. package/mobile/lib/ui-kit/Button/ArrowButton.js +2 -0
  355. package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  356. package/mobile/lib/ui-kit/Foldable/FoldableSection.js +1 -1
  357. package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  358. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  359. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +33 -0
  360. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  361. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  362. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  363. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  364. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  365. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  366. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  367. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  368. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js +14 -0
  369. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  370. package/mobile/lib/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  371. package/mobile/lib/ui-kit/SwipeListControl/scrollBy.js +5 -0
  372. package/mobile/lib/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  373. package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  374. package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.js +4 -0
  375. package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  376. package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  377. package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.js +4 -0
  378. package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  379. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  380. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +54 -0
  381. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  382. package/mobile/lib/utils/areArraysEqual.d.ts +1 -0
  383. package/mobile/lib/utils/areArraysEqual.js +2 -0
  384. package/mobile/lib/utils/areArraysEqual.js.map +1 -0
  385. package/mobile/lib/utils/mapChildren.d.ts +2 -0
  386. package/mobile/lib/utils/mapChildren.js +7 -0
  387. package/mobile/lib/utils/mapChildren.js.map +1 -0
  388. package/mobile/lib/utils/maxBy.d.ts +2 -2
  389. package/mobile/lib/utils/maxBy.js +2 -2
  390. package/mobile/lib/utils/maxBy.js.map +1 -1
  391. package/mobile/lib/utils/minBy.d.ts +1 -0
  392. package/mobile/lib/utils/minBy.js +3 -0
  393. package/mobile/lib/utils/minBy.js.map +1 -0
  394. package/mobile/src/common.css +0 -7
  395. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +17 -22
  396. package/mobile/src/components/Calculator/constants.ts +11 -0
  397. package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +64 -0
  398. package/mobile/src/components/Carousel/Carousel.tsx +41 -23
  399. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +25 -0
  400. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +36 -0
  401. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +1 -0
  402. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +13 -0
  403. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +44 -43
  404. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
  405. package/mobile/src/components/Gallery/Gallery.tsx +1 -1
  406. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +12 -9
  407. package/mobile/src/components/Header/HeaderSubMenu.tsx +2 -4
  408. package/mobile/src/components/Header/HeaderSubMenuItem.tsx +5 -2
  409. package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +1 -1
  410. package/mobile/src/components/RollupItem/RollupItem.tsx +10 -1
  411. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +5 -3
  412. package/mobile/src/hooks/useIntersectionObserver.ts +23 -2
  413. package/mobile/src/hooks/useLink.ts +2 -2
  414. package/mobile/src/services/sitemap/SitemapProps.ts +1 -2
  415. package/mobile/src/ui-kit/BlockWrapper.tsx +1 -16
  416. package/mobile/src/ui-kit/Button/ArrowButton.tsx +13 -0
  417. package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +3 -1
  418. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +97 -0
  419. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +31 -55
  420. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +25 -59
  421. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +3 -3
  422. package/mobile/src/ui-kit/SwipeListControl/SwipeListItem.tsx +44 -0
  423. package/mobile/src/ui-kit/SwipeListControl/scrollBy.ts +10 -0
  424. package/mobile/src/ui-kit/SwipeListControl/scrollToEnd.ts +3 -0
  425. package/mobile/src/ui-kit/SwipeListControl/scrollToStart.ts +3 -0
  426. package/mobile/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +84 -0
  427. package/mobile/src/utils/areArraysEqual.ts +2 -0
  428. package/mobile/src/utils/mapChildren.ts +11 -0
  429. package/mobile/src/utils/maxBy.ts +3 -4
  430. package/mobile/src/utils/minBy.ts +5 -0
  431. package/package.json +2 -2
  432. package/src/common.css +0 -7
  433. package/src/components/Blocks.ts +3 -1
  434. package/src/components/Calculator/Calculator.fixture.tsx +0 -5
  435. package/src/components/Calculator/DepositCalculatorForm.tsx +17 -22
  436. package/src/components/Calculator/constants.ts +11 -0
  437. package/src/components/Calculator/useDepositCalculatorParams.ts +64 -0
  438. package/src/components/Carousel/Carousel.fixture.tsx +20 -0
  439. package/src/components/Carousel/Carousel.tsx +41 -23
  440. package/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +25 -0
  441. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +38 -0
  442. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +36 -0
  443. package/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +1 -0
  444. package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +13 -0
  445. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +2 -2
  446. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +44 -43
  447. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +1 -1
  448. package/src/components/Gallery/Gallery.mobile.tsx +1 -1
  449. package/src/components/Header/Header.tsx +2 -1
  450. package/src/components/Header/HeaderSecondaryMenu.tsx +12 -9
  451. package/src/components/Header/HeaderSubMenu.tsx +2 -4
  452. package/src/components/Header/HeaderSubMenuItem.tsx +5 -2
  453. package/src/components/OtherProductsItem/OtherProductsItem.tsx +1 -1
  454. package/src/components/RollupItem/RollupItem.tsx +10 -1
  455. package/src/components/VerticalLayout/VerticalLayout.tsx +5 -3
  456. package/src/hooks/useIntersectionObserver.ts +23 -2
  457. package/src/hooks/useLink.ts +2 -2
  458. package/src/services/sitemap/SitemapProps.ts +1 -2
  459. package/src/ui-kit/BlockWrapper.tsx +1 -16
  460. package/src/ui-kit/Button/ArrowButton.tsx +13 -0
  461. package/src/ui-kit/Foldable/FoldableSection.tsx +3 -1
  462. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +97 -0
  463. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +31 -55
  464. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +25 -59
  465. package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +3 -3
  466. package/src/ui-kit/SwipeListControl/SwipeListItem.tsx +44 -0
  467. package/src/ui-kit/SwipeListControl/scrollBy.ts +10 -0
  468. package/src/ui-kit/SwipeListControl/scrollToEnd.ts +3 -0
  469. package/src/ui-kit/SwipeListControl/scrollToStart.ts +3 -0
  470. package/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +84 -0
  471. package/src/utils/areArraysEqual.ts +2 -0
  472. package/src/utils/mapChildren.ts +11 -0
  473. package/src/utils/maxBy.ts +3 -4
  474. package/src/utils/minBy.ts +5 -0
  475. package/bundle/components/Carousel/CarouselContainer.d.ts +0 -10
  476. package/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  477. package/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  478. package/bundle/ui-kit/SwipeListControl/constants.d.ts +0 -2
  479. package/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  480. package/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  481. package/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  482. package/dist/components/Carousel/CarouselContainer.d.ts +0 -10
  483. package/dist/components/Carousel/CarouselContainer.js +0 -14
  484. package/dist/components/Carousel/CarouselContainer.js.map +0 -1
  485. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  486. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -8
  487. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  488. package/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  489. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js +0 -11
  490. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  491. package/dist/ui-kit/SwipeListControl/constants.d.ts +0 -2
  492. package/dist/ui-kit/SwipeListControl/constants.js +0 -12
  493. package/dist/ui-kit/SwipeListControl/constants.js.map +0 -1
  494. package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  495. package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -13
  496. package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  497. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  498. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -19
  499. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  500. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  501. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -33
  502. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  503. package/lib/components/Carousel/CarouselContainer.d.ts +0 -10
  504. package/lib/components/Carousel/CarouselContainer.js +0 -12
  505. package/lib/components/Carousel/CarouselContainer.js.map +0 -1
  506. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  507. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -6
  508. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  509. package/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  510. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js +0 -9
  511. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  512. package/lib/ui-kit/SwipeListControl/constants.d.ts +0 -2
  513. package/lib/ui-kit/SwipeListControl/constants.js +0 -10
  514. package/lib/ui-kit/SwipeListControl/constants.js.map +0 -1
  515. package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  516. package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -10
  517. package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  518. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -7
  519. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -16
  520. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  521. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -11
  522. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -30
  523. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  524. package/mobile/bundle/components/Carousel/CarouselContainer.d.ts +0 -10
  525. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  526. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  527. package/mobile/bundle/ui-kit/SwipeListControl/constants.d.ts +0 -2
  528. package/mobile/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  529. package/mobile/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  530. package/mobile/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  531. package/mobile/dist/components/Carousel/CarouselContainer.d.ts +0 -10
  532. package/mobile/dist/components/Carousel/CarouselContainer.js +0 -14
  533. package/mobile/dist/components/Carousel/CarouselContainer.js.map +0 -1
  534. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  535. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -8
  536. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  537. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  538. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js +0 -11
  539. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  540. package/mobile/dist/ui-kit/SwipeListControl/constants.d.ts +0 -2
  541. package/mobile/dist/ui-kit/SwipeListControl/constants.js +0 -12
  542. package/mobile/dist/ui-kit/SwipeListControl/constants.js.map +0 -1
  543. package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  544. package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -13
  545. package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  546. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  547. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -19
  548. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  549. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  550. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -33
  551. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  552. package/mobile/lib/components/Carousel/CarouselContainer.d.ts +0 -10
  553. package/mobile/lib/components/Carousel/CarouselContainer.js +0 -12
  554. package/mobile/lib/components/Carousel/CarouselContainer.js.map +0 -1
  555. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  556. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -6
  557. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  558. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  559. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js +0 -9
  560. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  561. package/mobile/lib/ui-kit/SwipeListControl/constants.d.ts +0 -2
  562. package/mobile/lib/ui-kit/SwipeListControl/constants.js +0 -10
  563. package/mobile/lib/ui-kit/SwipeListControl/constants.js.map +0 -1
  564. package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  565. package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -10
  566. package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  567. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  568. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -16
  569. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  570. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  571. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -30
  572. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  573. package/mobile/src/components/Carousel/CarouselContainer.tsx +0 -34
  574. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +0 -24
  575. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +0 -50
  576. package/mobile/src/ui-kit/SwipeListControl/constants.ts +0 -10
  577. package/mobile/src/ui-kit/SwipeListControl/utils/getContainerStyle.ts +0 -9
  578. package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +0 -25
  579. package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +0 -49
  580. package/src/components/Carousel/CarouselContainer.tsx +0 -34
  581. package/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +0 -24
  582. package/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +0 -50
  583. package/src/ui-kit/SwipeListControl/constants.ts +0 -10
  584. package/src/ui-kit/SwipeListControl/utils/getContainerStyle.ts +0 -9
  585. package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +0 -25
  586. 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).UniBlocks={})}(this,(function(e){"use strict";let t;const l=e=>(...l)=>t[e](...l),n=l("useState"),r=l("useEffect"),a=l("useCallback"),i=l("useMemo"),s=l("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))))))(),l=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await l.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:l}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:l})),{token:t,name:l}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:l}=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:l},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:n}=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:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{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:l,name:n}=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:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{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,l){const{children:n,...r}=t||{},a=l?.slots?.default,i=n||a&&a();return e(Object.assign(r,i&&{children:i}),l)}return t.inheritAttrs=!1,t};function b(e){return e?e.filter(Boolean).join(" "):""}const g=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),f=[],v=["col-span-12"];function N(e,t){const{key:l,blockDecorator:n=g,blocksRegistry:r={},ancestors:a=f}=t,{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const s=i&&r[i];return n({blockClassName:`scroll-mt-12 ${b(e.style||v)}`,block:e,ancestors:a,render:({block:n,blockClassName:r})=>{const{content:a}=n;return s?h(s,{className:r,block:e,options:t,...a},l):null}},l)}const y=[],w=(e,{key:t,ancestors:l=y,slotName:n=null,renderChild:r=N,...a})=>(e||[]).map(((e,i)=>r(e,{...a,key:`${t||e.type}-${i}`,ancestors:a.parent?[...l||y,[a.parent,n]]:l})));function k({children:e,block:t,options:l,renderChild:n}){return e||(t&&l?w(t.blocks,{...l,parent:t,renderChild:n}):null)}const C={left:"text-left",center:"text-center",right:"text-right"};class ${static inst=new $;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{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 S(e,t){const l=s(null);return r((()=>{if(!l.current)return;const n=new IntersectionObserver(e,t);return n.observe(l.current),()=>{n.disconnect()}}),[e,t]),l}const I=100,T={threshold:new Array(18).fill(0).map((function(e,t){const l=(t+1)/I+.82;return Math.round(l*I)/I}))},B=p((({className:e,block:t,tag:l="section",role:a,children:o})=>{const c=l,{anchor:d,labels:m}=t||{},[u,p]=n(!0),x=s({}),b=i((()=>(({anchor:e,anchorClickRef:t})=>l=>{if(!l?.length)return;const[n]=l;!n.isIntersecting||n.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]),g=S(b,T);return r((()=>$.inst.subscribe("anchorClick",(e=>{p(!0),x.current=e}))),[]),r((()=>$.inst.subscribe("tab",(e=>{if("group"===e.type){const l=m?.length||t?.anchor;p(!e.label||(!l||Boolean(m?.includes(e.label))))}else(l=e.label)&&(globalThis.document.location.hash=l),p(!0);var l}))),[]),u?h(c,{className:e,role:a,...d?{id:d,ref:g}:{},children:o}):null}));const R={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},j=p((e=>{const{className:t="",headingType:l="h3",title:n,as:r="h3"}=e;return h(r,{className:`font-sans m-0 ${R[l]} ${t}`,children:n})})),V=p((e=>{const{size:t="",color:l="",align:n="",font:r="",children:a}=e;return h("p",{className:`font-sans ${t} ${l} ${n} ${r}`,children:a})})),M=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),_=p((({className:e="",title:t,accordionAlignTitle:l="center",description:n,...r})=>u(B,{className:`p-[50px] mb-1 last:mb-0 bg-white text-primary-text ${e}`,...r,children:[t?h(j,{headingType:"h3",as:"h2",className:`mb-2.5 ${C[l]}`,title:t}):null,n?h("div",{className:"mb-2.5",children:h(V,{size:"text-l",children:n})}):null,h(M,{children:k(r)})]})));_.childrenTypes=["AccordionItem"];const D=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:l,renderFoldButton:r})=>{const[i,s]=n(t),o=a((()=>{s((e=>!e))}),[]),c=l({isUnfolded:i,onToggle:o}),d=r?r({isUnfolded:i,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),L=p((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return r((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),h("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden max-h-0 ${e}`,children:l})})),A={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},O=p((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:r=n,iconVersion:a="color",asSVG:i,...s})=>{const o=`${c.CDN||""}icons/${l}.svg`;return i&&"normal"!==a?h(z,{className:e,children:u("svg",{className:[F(e,s.width),A[a],t,E(a)].join(" "),...s,"aria-hidden":"true",children:[r?h("title",{children:r}):null,n?h("desc",{children:n}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:n,title:r,...s,"aria-hidden":"true"})})),E=e=>"white"===e?"invert":"",F=(e,t)=>t?`width: ${t}px `:"w-full h-full",z=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function U(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const P=(e,t)=>e.media&&t.media?e.media-t.media:0,X=p((({className:e="",image:t,imageClassName:l="",isMobile:n=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${n?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(P).map((({src:e,format:l,media:n},r)=>h("source",{srcSet:e,type:G(l),media:n?`(max-width: ${n}px)`:"",...t.size},`${r}_${e}`))):null,H(t,l,n)]})})),H=(e,t="",l=!1)=>{const n={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",a=e.alt||e.title,i=l?"m-auto":"m-0";return h("img",{src:e.src,className:`${i} ${t}`,alt:a,title:r,style:n,...e.size})};function G(e){return e?`image/${String(e)}`:void 0}const W=p((({className:e="",image:t,imageClassName:l="",isMobile:n,...r})=>{if(!t)return null;const a="string"==typeof t?t:t.icon;return a||""===a?a.length?h(O,{className:e,imageClassName:l,iconVersion:U(t),name:a,...r}):null:h(X,{className:e,imageClassName:l,image:t,isMobile:n})})),J=p((e=>{const{size:t="",color:l="",align:n="",font:r="",children:a}=e;return h("span",{className:`font-sans ${t} ${l} ${n} ${r}`,children:a})})),Y=["PlusIcon","MinusIcon"],Z=p((({className:e="",label:t="",isExpanded:l,...n})=>h("li",{className:`border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,children:h(D,{isFoldButtonOnTop:!0,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h(L,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:k(n)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>h(K,{label:t,icon:Y[Number(e)],onClick:l})})})));Z.childrenTypes=[];const K=p((({label:e,icon:t,onClick:l})=>u("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer",onClick:l,children:[h(J,{size:"text-xl",font:"font-medium",children:e}),h(W,{image:t,className:"text-primary-main flex-shrink-0",width:"24",height:"24",asSVG:!0})]}))),q={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Q=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),ee={primary:"",secondary:"text-white"},te={primary:"text-secondary-text",secondary:"text-white opacity-80"},le={primary:"bg-main-divider text-primary-main",secondary:"bg-white/30 text-black"},ne=p((({className:e="",title:t,benefitList:l,version:n="primary",...r})=>u(B,{className:`font-sans text-primary-text p-12 flex flex-col items-center ${e} ${q[n]}`,...r,children:[t?h(j,{headingType:"h3",as:"h2",className:`max-w-[47rem] text-center ${ee[n]}`,title:t}):null,l?.length?h("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map(re(n))}):null]}))),re=e=>(t,l)=>{const n=t.description;return u("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[t?.icon?.icon?h(W,{className:`w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${le[e]}`,image:Q(t.icon,e),asSVG:!0}):null,t?.icon?.src?h(W,{image:t.icon}):null,u("div",{className:"ml-5",children:[t?.label?h("h3",{className:`text-h6 m-0 ${ee[e]}`,children:t.label}):null,ae(n,e)]})]},String(l))},ae=(e,t)=>{const l=e?.benefitType||null;return e&&l?h("div",{className:`text-l-light mt-2 ${te[t]}`,children:"list"===l?se(e):ie(e)}):null},ie=e=>e?.name||null,se=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?h("ul",{className:t,children:e.items.map(((e,t)=>h("li",{children:e},`benefitListItem-${t}`)))}):null},oe=e=>e?.includes("//"),ce=e=>(e||"").replace(/\/?\?.*/,""),de=e=>{if(!e||!oe(e))return;const t=e,l=t.indexOf("//"),n=t.indexOf("/",l+"//".length);return-1!==n?t.substring(0,n):t};var me=Object.freeze({__proto__:null,isURL:oe,withoutQuery:ce,getOrigin:de,getHash:e=>{if(!e||!oe(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const he=(e,t)=>he._impl(e,t);function ue(){return ue._impl()}function pe(){const e=ue();return t=>{const l=((e,t)=>{if(!e)return e;const l=de(t?.href);return l?e.replace(l,"")||"/":e})(t.href,e);return{...t,href:l,"aria-label":t.text,onClick:he((n=>{t.onClick&&t.onClick(n);const r=l&&!oe(l),a=!t.target||"_self"===t.target;r&&a&&(n?.preventDefault(),e.push(l))}),t)}}}he._impl=e=>e,he.setup=e=>{he._impl=e},ue._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),ue.setup=e=>{ue._impl=e};const xe={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:""},be="bg-main-divider text-main-disabled",ge={primary:be,secondary:be,white:be,link:""},fe="text-center font-sans select-none",ve={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:""},Ne=p((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:r,version:a="primary"}=e;return u("div",{className:ye(e),children:[n?h("div",{className:ve[a],children:n}):null,we(e)?u("div",{children:[l?h("div",{className:"text-xs-light text-left",children:l}):null,h("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?h("div",{className:ve[a],children:r}):null]})})),ye=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const r="gap-2 "+(l?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",we(e)?r:"h-12 w-12",n?"rounded-full":""].join(" ")},we=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),ke=({className:e,rounded:t,version:l})=>["inline-block",fe,l?ge[l]:"",t?"rounded-full":"rounded-md",e].join(" "),Ce=({className:e,rounded:t,version:l})=>[fe,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",l?xe[l]:"",t?"rounded-full":"rounded-md",e].join(" "),$e=p((({disabled:e,children:t,...l})=>{const n=pe()(l),r=t??h(Ne,{...n});return h(e?Ie:Se,{...n,children:r})})),Se=p((({className:e="",href:t,rel:l,target:n,ariaLabel:r,version:a,rounded:i,onClick:s,children:o})=>h("a",{className:Ce({className:e,version:a,rounded:i}),href:t,rel:l,target:n,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Ie=p((({className:e,ariaLabel:t,version:l,rounded:n,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ke({className:e,rounded:n,version:l}),children:r}))),Te=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>Be({button:e,index:t})))}):null));function Be({button:e,buttonClassName:t,index:l}){const{icon:n,iconRight:r,version:a,...i}=e,s="secondary"===a?"color":"white",o=Re({...n,iconVersion:s}),c=Re({...r,iconVersion:s});return h($e,{className:t,appendLeft:o,appendRight:c,version:a,...i},l?String(l):"")}const Re=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(W,{image:{...e},width:t,height:"24",asSVG:!0})},je={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"}},Ve={XXL:{descriptionFont:"text-h5",gap:"gap-[18px]",headingType:"h0",as:"h1"},XL:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h1",as:"h1"},L:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h2",as:"h2"},M:{descriptionFont:"text-xl-light",gap:"gap-3",headingType:"h3",as:"h3"},S:{descriptionFont:"text-xl-light",gap:"gap-2",headingType:"h4",as:"h4"},XS:{descriptionFont:"text-l-light",gap:"gap-2",headingType:"h5",as:"h5"}},Me={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},_e=p((({className:e="",bgColorHeadline:t="transparent",align:l="center",title:n,description:r,headlineVersion:a="XL",as:i,...s})=>{const o=je[t],c=Ve[a];return u(B,{className:`font-sans flex flex-col p-[50px] ${c.gap} ${o.background} ${e}`,...s,children:[n?h(j,{headingType:c?.headingType,as:i||c?.as,className:`whitespace-pre-wrap ${o.text} ${C[l]}`,title:n}):null,r?h("p",{className:`${c.descriptionFont} ${o.text} ${C[l]}`,children:r}):null]})})),De=p((e=>{const{className:t="",title:l,description:n,bonusItems:r,...a}=e;return h(B,{className:`font-sans bg-white p-[50px] pb-9 ${t}`,...a,children:u("div",{className:"container",children:[h(_e,{className:"!p-0",title:l,description:n,headlineVersion:"M",align:"center",...a}),h("div",{className:"flex flex-wrap w-full mt-9",children:r?.length?r.map(((e,t)=>h("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:u("div",{className:"flex justify-between w-full",children:[u("div",{className:"flex flex-col justify-between mr-4",children:[u("div",{children:[h("div",{className:"text-h4",children:e.title}),h("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),e?.buttons?.length?h(Te,{buttons:e?.buttons}):null]}),e.bonusItemContent?.bonusType?Le(e.bonusItemContent):null]})},String(t)))):null})]})})})),Le=e=>h("div",{children:"count"===e.bonusType?Ae(e):Oe(e)}),Ae=e=>u("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?h("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?h("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),Oe=e=>e.image?h(W,{className:"w-[50px] h-[50px] min-w-[50px] p-3 rounded-full",image:e.image}):null,Ee=p((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:n="4",subtitle:r,title:a,...i})=>u(B,{className:`font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${l}`,...i,children:[h(_e,{className:"!p-0 mb-8",title:a,description:r,headlineVersion:"M",align:"center",...i}),e?.length?h("div",{className:`grid gap-1 ${C[t]} ${ze(n)}`,children:e.map(Fe)}):null]}))),Fe=({icon:e,label:t,description:l},n)=>u("div",{className:"flex flex-col items-center text-h6",children:[l?h("span",{children:l}):null,e?h(W,{image:e,height:"180",width:"auto",className:"h-[180px] w-auto"}):null,h("div",{children:t?h("span",{children:t}):null})]},String(n)),ze=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},Ue=p((e=>{const{title:t,image:l,cardItems:n,button:r}=e;return u("div",{className:"border-color-stroke border p-9 w-1/2",children:[l?u("div",{className:"flex justify-center",children:[l?.src?h(W,{className:"mb-5",image:l}):null,l?.icon?h(W,{image:l,asSVG:!0}):null]}):null,t?h(j,{headingType:"h4",title:t,className:"mb-6"}):null,n?.length?h("ul",{children:n.map(((e,t)=>Pe(e,String(t))))}):null,r?.text?Be({button:r,buttonClassName:"mt-6"}):null]})})),Pe=(e,t)=>{const{icon:l,text:n}=e;return u("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?h(W,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",image:l.icon,asSVG:!0}):null,l?.src?h(W,{image:l.icon}):null,h("span",{className:"text-xl-light",children:n})]},t)},Xe=p((({className:e="",title:t,cards:l,...n})=>u(B,{className:`font-sans bg-white p-[50px] pb-9 ${e}`,...n,children:[h(j,{headingType:"h3",title:t,className:"text-center mb-8"}),h("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>h(Ue,{...e},String(t)))):null})]}))),He=e=>{const{itemCount:t,visibleItemCount:l,isCyclic:r}=e,[i,s]=n(0),o=a((()=>s((e=>r?(e+1)%t:Math.min(e+1,t-1)))),[r,t]),c=a((()=>s((e=>r?(t+e-1)%t:Math.max(e-1,0)))),[r,t]),d=r||function(e,{itemCount:t,visibleItemCount:l,container:n}){if(l)return t>l;if(n){return n.scrollWidth*e/t+n.clientWidth<n.scrollWidth}return!1}(i,e)&&i<t-(l||1),m=r||i>0;return[i,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]};const Ge=p((({className:e,disabled:t,...l})=>h($e,{rounded:!0,className:`group shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...l,children:h(W,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"16",height:"16",asSVG:!0})})));function We({dec:e,inc:t,canDec:l,canInc:n,btnClass:r,className:a=""}){return l||n?u("div",{children:[l?h(Ge,{className:`absolute z-50 ${r[0]} ${a}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?h(Ge,{className:`absolute z-50 rotate-180 ${r[1]} ${a}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const Je=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),Ye=p((({title:e,value:t,postfix:l="",prefix:n,className:r=""})=>u("div",{className:`mb-7 ${r}`,children:[e?h("div",{className:"text-l-light text-secondary-text",children:e}):null,t?u("div",{className:"text-h3",children:[n," ",Je(Math.round(t))," ",l]}):null]}))),Ze=6e4,Ke=2e6,qe=97e4,Qe=Math.round(23.5),et={minSum:Ze,maxSum:Ke,minMonths:13,maxMonths:60,rateBottomRange:10,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},tt={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},lt=p((({rate:e,title:t="Ставка",unit:l,rateBlockClassName:n})=>u("div",{children:[h("div",{className:"text-l-light text-secondary-text",children:t}),u("div",{className:"flex justify-start",children:[h("span",{className:`block gradient-color-text font-mohave text-title-huge pr-6 -mt-4 ${n}`,children:String(e).replace(".",",")}),l?h("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:l}):""]})]})));function nt(e){return e?.length?h(Te,{buttons:e,className:"flex flex-col mt-7 gap-2"}):null}const rt=e=>e?h("p",{className:"text-s-light text-secondary-text mt-7",children:e}):null,at=(e,t,l)=>Math.max(t,Math.min(e,l)),it=e=>e.split(/\s+/).join(""),st=p((({className:e,title:t,items:l=[],min:n=1,max:r=100,step:a=1,value:i=n,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(at(Number(it(e.target.value)),n,r))},d={backgroundSize:`${(100*(i-n)/(r-n)).toFixed(2)}% 100%`};return u("div",{className:e,children:[u("label",{className:"block relative",children:[t?h("span",{className:"text-m-light text-primary-text",children:t}):null,h("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-focus disabled:border-main-stroke disabled:bg-main-divider",value:Je(i),disabled:s,onChange:c,onBlur:c}),h("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:h("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:n,max:r,step:a,value:i,disabled:s,onChange:c,style:d})})]}),ot(l)]})}));function ot(e){return h("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>h("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const ct=1e3;function dt(e,t,l){const{moneyValue:n,minSum:r,maxSum:a,step:i=ct,isShowItems:s=!0}=t,o=[`От ${Je(r)} ₽`,`До ${Je(a)} ₽`];return h(st,{title:e,items:s?o:[],min:r,max:a,step:i,value:at(n,r,a),onChange:l})}const mt=new Map;function ht(e,t,{fallback:l}={}){const a=i((()=>ut(e)),[e]),[s,o]=n(),[c,d]=n(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!a.every((e=>null===e)))try{const e=t(...a);"then"in e?(e=>{e.then((e=>mt.get(a)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...a]);const u=a[0],p=l&&"string"==typeof u&&l[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function ut(e){return e?Array.isArray(e)?e:e instanceof Function?ut(e()):[e]:[e]}async function pt(e,t){try{return await xt(e,t)}catch(e){console.error(e)}return null}async function xt(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}function bt(e){const{data:t}=ht(`/wcms-resources/${e}.json`,xt);return t}const gt=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,r=bt(t||"bonus-calculator-data")||tt,[a,i]=((e,t,l)=>{const{minSumTravel:n,minSumOther:r,maxBonus:a,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===r)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),a);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*l),a)*(12-i)]})(r,l,n);return{...r,...e,monthBonus:a,yearBonus:i}},ft=p((({className:e="",sourceBookDir:t="",buttons:l,footnote:r})=>{const[a,i]=n(6e3),[s,o]=n(6e3),c={travelExpenseValue:a,restExpenseValue:s},{minSumTravel:d,maxSumTravel:m,minSumOther:p,maxSumOther:x,monthBonus:b,yearBonus:g}=gt(c,t);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[dt("Сумма покупок в категории путешествия, ₽",{minSum:d,maxSum:m,moneyValue:a,step:500,isShowItems:!1},i),dt("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:p,maxSum:x,moneyValue:s,step:500,isShowItems:!1},o)]}),h("div",{children:b>=0?h(lt,{title:"Баллов за месяц",rate:b,rateBlockClassName:"tracking-[-14px]"}):null}),u("div",{className:"w-full max-w-[350px]",children:[g>=0?h(Ye,{title:"Баллов за год",value:g}):null,nt(l),rt(r)]})]})})),vt=p((({className:e,viewBox:t,fill:l="none",width:n,height:r,paths:a,...i})=>h("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:r,children:a.map((({d:e,fill:t,...l},n)=>h("path",{d:e,fill:t||"currentColor",...i,...l},n)))}))),Nt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],yt=p((({className:e,text:t,checked:l,isRadio:n,onChange:r})=>h("div",{className:e,children:u("label",{className:"flex items-center relative cursor-pointer group",children:[h("input",{className:`peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover:border-checkbox-hover\n ${n?"rounded-full border-2":"rounded checked:bg-primary-main border"}\n ${l?"border-black":"border-main-stroke"}\n checked:border-primary-main m-0`,type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:l}),n?h("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):h(vt,{paths:Nt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?h("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),wt=p((({items:e,checkedItem:t,onChange:l})=>h("div",{className:"flex flex-col gap-3",children:e?.map((({id:e,text:n})=>h(yt,{isRadio:!0,text:n,checked:t===e,onChange:()=>l&&l(e)},String(e))))})));function kt(e,t,l){const{minMonths:n,maxMonths:r,monthsValue:a}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return h(st,{className:"mt-7",title:e,items:[`От ${i(n)}`,`До ${i(r)}`],min:n,max:r,step:1,value:at(a,n,r),onChange:l})}const Ct=(e,t)=>{const{isInsurance:l,isSalaryClient:n,isStateEmployee:r,moneyValue:a}=e,i=bt(t||"credit-calculator-data")?.rows?.find((e=>l===e.isInsurance&&n===e.isSalaryClient&&r===e.isStateEmployee))||et,{rateBottomRange:s,rateTopRange:o,sumBorder:c}=i,d=a<=c?s:o,m=((e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:r}=t;if(l){const t=e/1200;return n*(t+t/(Math.pow(1+t,r)-1))}return Math.round(n/r)+n*(e/1200)})(d,e);return{...i,...e,finalRate:d,monthlyPayment:m}},$t="annuity",St="differential",It=[{id:$t,text:"Аннуитетный"},{id:St,text:"Дифференцированный"}],Tt=p((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[a,i]=n(!1),[s,o]=n(!0),[c,d]=n(!1),[m,p]=n(!1),[x,b]=n(qe),[g,f]=n(Qe),v=Ct({isAnnuity:a,isInsurance:s,isSalaryClient:c,isStateEmployee:m,moneyValue:x,monthsValue:g},t);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[dt("Сумма кредита, ₽",{...v,step:500},b),kt("Срок кредита, месяцев",v,f),u("div",{className:"mt-7",children:[h(yt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:c,onChange:d}),h(yt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:m,onChange:p}),h(yt,{className:"mt-3",text:"Комплексная страховая защита",checked:s,onChange:o})]})]}),h(lt,{title:"Ставка",rate:v.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Ye,{title:a?"Ежемесячный платеж":"Платёж в первый месяц",value:v.monthlyPayment,postfix:"₽"}),h(wt,{items:It,checkedItem:a?$t:St,onChange:e=>i(e===$t)}),nt(l),rt(r)]})]})})),Bt="everyMonth",Rt="atEndTerm",jt=[{id:Bt,text:"Ежемесячно"},{id:Rt,text:"В конце срока"}],Vt={CreditCalculatorForm:Tt,DepositCalculatorForm:p((({className:e="",rate:t,buttons:l,footnote:r})=>{const[a,i]=n(qe),[s,o]=n(Qe),[c,d]=n(!1);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[dt("Сумма вклада, ₽",{moneyValue:a,minSum:Ze,maxSum:Ke},i),kt("Срок вклада, месяцев",{minMonths:13,maxMonths:60,monthsValue:s},o)]}),h(lt,{rate:t||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Ye,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),h(Ye,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),h(wt,{items:jt,checkedItem:c?Bt:Rt,onChange:e=>d(e===Bt)}),nt(l),rt(r)]})]})})),BonusCalculatorForm:ft},Mt=(e,t)=>{const l=e?.calcType;if(!l||!(l in Vt))return null;const n=Vt[l];return h("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:u("div",{className:"box-border p-9 w-full",children:[e?.title?h(j,{className:"text-center mb-6",title:e.title}):null,h(n,{...e,className:"flex justify-between"})]})},String(t))},_t=p((({className:e="",calculatorTabs:t=[],...l})=>{const r=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=n(0),c=a((e=>o(e)),[]),[d,m]=He({itemCount:t?.length,visibleItemCount:3});return u(B,{className:`box-border overflow-hidden relative font-sans w-100 text-primary-text bg-white ${e}`,...l,children:[u("div",{className:"bg-white",children:[r.length>1?Dt({activeIndex:d,tabsNav:r,slideIndexShift:s,onClick:c}):null,We({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(Mt):null})]})}));function Dt({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:n}){return u("div",{children:[h("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:h("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:n}){const r=l?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",a=l?"text-xl mb-1.5":"text-l mb-[3px]",i=l?"text-l-light text-white":"text-m-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return u("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${r}`,children:[h(W,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24",asSVG:!0}),u("div",{className:"border-0",children:[h("div",{className:`${a}`,children:e?.title}),h("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})}),h("div",{className:"w-full h-2 bg-primary-main"})]})}const Lt=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,At=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},Ot=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),Et=p((({className:e="",inputClassName:t="",id:l,name:n,type:r="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:m,...p})=>{const x=a((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),b=a((e=>{if(!m)return;const t=e.target.validity.valid?e.target.value:s;m(t)}),[m]),g=c?"pr-8":"",f=o?"border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return u("div",{className:`relative ${e}`,children:[i?h("label",{className:"block text-m-light mb-2",children:i}):null,h("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${g} ${f} ${t}`,id:l,name:n||l,type:r,value:s,onChange:x,onBlur:b,...p}),c]})})),Ft=p((({className:e="",onChange:t,minValue:l=0,maxValue:n=3e5,...r})=>{const i=a((e=>{if(!t)return;const r=Lt(At(Ot(it(e))));const a=zt(r,at(Number(r),l,n));t(String(a))}),[t]),s=a((e=>{var l;t&&t((l=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(it(l))).replace(",",".")))}),[t]);return h(Et,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...r,children:h("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),zt=(e,t)=>Number(e)===t?e:String(t),Ut=p((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:r="1500",button:i,...s})=>{const[o,c]=n(""),d=a((e=>c(e)),[]),m=!Number(it(o)),p=m?ke({version:i?.version}):Ce({className:"text-white",version:i?.version}),x=pe();return u(B,{className:`p-[50px] flex flex-col items-center font-sans bg-white ${e}`,...s,children:[t?h(j,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,u("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[h(Ft,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:r,label:l}),i?.text?h("button",{type:"submit",className:`w-full p-4 mt-6 ${p} `,disabled:m,...x(i),children:i.text}):null]})]})})),Pt=["[&>*]:min-w-[100%]","[&>*]:min-w-[50%]","[&>*]:min-w-[33.33%]"],Xt=p((({activeIndex:e,itemCount:t,visibleItemCount:l,containerRef:n,children:r})=>{const a=n?.current?.scrollWidth||0,i=a-(n?.current?.clientWidth||0),s=l?-Math.round(100*e/l)+"%":-Math.round(Math.min(a*e/(t||1),i))+"px";return h("div",{className:`flex gap-1 duration-1000 ${l?Pt[l-1]:""}`,style:{transform:`translateX(${s})`},role:"list",ref:n,children:r})})),Ht="absolute top-0 bottom-0 z-50 w-[84px]",Gt=p((({className:e="",itemCount:t,visibleItemCount:l,isBlur:n=!0,isCyclic:r=!1,...a})=>{const{blocks:i}=a.block||{},o=t||i?.length||0,c=s(null),[d,m]=He({itemCount:o,visibleItemCount:l,isCyclic:r,container:c.current}),{isScrollAvailable:p}=m;return u(B,{className:`relative font-sans overflow-hidden ${e}`,...a,children:[h(Xt,{activeIndex:d,itemCount:o,visibleItemCount:l,containerRef:c,children:k(a)}),p&&n?u("div",{children:[h("div",{className:`${Ht} left-0 bg-opacity-from-white`}),h("div",{className:`${Ht} right-0 bg-opacity-to-white`})]}):null,We({...m,btnClass:["left-8","right-8"],className:"top-1/2"})]})}));Gt.childrenTypes=["CarouselCard","CarouselTariffsCard"];const Wt="absolute border border-solid border-main-stroke w-full h-full",Jt={normal:"w-[1055px]",mini:"w-[398px]"},Yt=p((({className:e="",button:t,description:l,title:n,version:r="normal"})=>h("section",{className:`flex pb-9 pl-12 ${Jt[r]} ${e}`,children:u("div",{className:"relative w-full",children:[h("div",{className:`${Wt} z-10 top-9 right-12 bg-green-dark`}),h("div",{className:`${Wt} z-10 top-6 right-8 bg-green`}),h("div",{className:`${Wt} z-10 top-3 right-4 bg-green-light`}),u("div",{className:"relative bg-white z-10 py-6 px-10 border border-solid border-green-light",children:[h(_e,{className:"!p-0",title:n,description:l,headlineVersion:"M",align:"center"}),t?h("div",{className:"mt-6",children:Be({button:t})}):null]})]})}))),Zt="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",Kt=p((({text:e,href:t="",target:l="",className:n=""})=>e?u("div",{className:`relative group cursor-pointer w-[328px] h-[82px] ${n}`,children:[u("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover:text-primary-main z-10",role:"link",href:t,target:l,children:[h("div",{className:"p-0.5",children:e}),h("div",{className:"w-6 h-6",children:h(W,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"24",height:"24",asSVG:!0})})]}),h("div",{className:`${Zt} mx-1.5 mt-1.5`}),h("div",{className:`${Zt} mt-3 mr-3`})]}):null)),qt=p((({className:e="",additionalDescription:t,description:l,links:n,title:r,...a})=>u(B,{className:`bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${e}`,...a,children:[u("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[h(_e,{title:r,as:"h1",description:l,align:"left",className:"p-0",bgColorHeadline:"secondary"}),t?h("div",{className:"pt-6",children:h(V,{children:t})}):null]}),n?.length?Qt(n):null]}))),Qt=e=>{const t=Math.ceil(e.length/12);return h(Gt,{className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,children:new Array(t).fill(null).map(((t,l)=>h("div",{className:"w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start",children:e.slice(12*l,12*(l+1)).map(((e,t)=>h(Kt,{className:"m-1",...e},String(t))))},String(l))))})},el=p((({className:e="",title:t,icon:l,isHighlighting:n,button:r,rows:a=[],...i})=>{const s=tl(Boolean(n)),o=a.map(nl),[c,d]=[o.slice(0,1),o.slice(1)];return u(B,{className:`font-sans bg-white p-8 border border-main-stroke relative w-[322px] min-w-[322px] -ml-[1px] ${s} ${e}`,...i,children:[n?rl():null,l?.src?h(W,{className:"flex justify-center",image:l}):null,t?h(j,{className:"text-primary-text text-center pt-2",headingType:"h5",title:t}):null,r?h($e,{className:"w-full mt-4",...r}):null,a?.length?h(D,{renderFoldableSection:({isUnfolded:e})=>u("div",{children:[c,h(L,{isUnfolded:e,children:d})]}),renderFoldButton:a.length>1?ll:null}):null]})})),tl=e=>e?"mt-9 pt-[71px]":"mt-[70px] pt-9",ll=({isUnfolded:e,onToggle:t})=>u("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[h("div",{children:e?"Скрыть":"Подробнее о тарифе"}),h(O,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),nl=(e,t)=>u("div",{className:"py-5 border-b border-main-divider flex flex-col gap-1",children:[e?.title?h("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,e?.description?h("div",{className:"text-primary-text text-h6",children:e.description}):null]},String(t)),rl=()=>u("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)] absolute -top-7 -right-4",children:[h(O,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),h("div",{className:"text-center",children:"Хит"})]}),al={black:"bg-black",white:"bg-white"},il=p((({className:e="",title:t,description:l,image:n,price:r,button:a,colors:i})=>u("section",{className:`border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[n?.src?h(W,{className:"mb-5 flex justify-center",image:n}):null,t?h(j,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?h("div",{className:"text-m-light text-left mb-4",children:l}):null,i?.length?u("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[h("div",{className:"mr-1.5",children:"Доступные цвета: "}),i.map(sl)]}):null,r?u("div",{className:"text-h3 text-left",children:[r," ₽"]}):null,a?Be({button:a,buttonClassName:"mt-5 w-full"}):null]}))),sl=(e,t)=>h("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${al[e]}`},String(t)),ol="absolute top-0 bottom-0 w-[84px]",cl=p((({cards:e=[],className:t="",title:l,description:n,...r})=>{const[a,i]=He({itemCount:e?.length,visibleItemCount:3});return u(B,{className:`bg-white relative font-sans p-[50px] overflow-hidden text-center ${t}`,...r,children:[h(_e,{className:"!p-0",title:l,description:n,headlineVersion:"M",align:"center",...r}),h("div",{className:"flex duration-1000 gap-3.5 mt-8",style:{transform:`translateX(-${430*a}px)`},role:"list",children:e?.length?e.map(((e,t)=>h(il,{...e},String(t)))):null}),We({...i,btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"}),h("div",{className:`${ol} left-0 bg-opacity-from-white`}),h("div",{className:`${ol} right-0 bg-opacity-to-white`})]})})),dl="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",ml="border-main-stroke border-solid border",hl="border-main-divider border border-t-0 border-x-0",ul="w-[200px] mr-6",pl=p((({icon:e,image:t,title:l,link:n})=>u("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${ml} ${dl}`,role:"columnheader",children:[e&&!t?.src&&h(W,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:Q(e),width:"63",height:"63",asSVG:!0}),t?.src&&h(W,{className:"mb-[18px]",image:t}),l?h(j,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&h("div",{className:"mt-auto w-full",children:h($e,{href:n.href,target:n.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:h("div",{className:"text-xs-light font-medium py-[11px]",children:n.text})})})]}))),xl={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},bl=p((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>h("div",{className:"flex flex-1 overflow-hidden",children:h("div",{className:xl[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),gl=p((({children:e})=>h("div",{className:"self-start flex flex-col",role:"row",children:h("div",{className:"flex",children:e})}))),fl=p((({colHeaders:e,activeIndex:t})=>u(gl,{children:[h("div",{className:ul,role:"columnheader"}),h(bl,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>h(pl,{...e},String(t))))})]}))),vl=p((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>h("div",{className:`w-80 box-border flex flex-col ${ml} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?dl:""}`,role:"cell",children:h("div",{className:`mx-7 h-full ${hl} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>wl(e,t,n)))})}))),Nl=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),yl=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),wl=({label:e,description:t},l,n)=>u("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?h("h4",{className:Nl(n),children:e}):null,t?h("div",{className:yl(n),children:t}):null]},String(l)),kl=(e=!1)=>`text-s py-7 ${hl} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,Cl=p((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:r,isLastRow:a})=>u(gl,{children:[e?.title?h("div",{className:kl(a),children:e.title}):null,t?.length?h(bl,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>h(vl,{cell:e,isFirstRow:r,isLastRow:a,isFillGradient:n&&0===t},String(t))))}):null]}))),$l=p((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:n})=>{const{isScrollAvailable:r}=n;return u("div",{className:"relative",children:[e.map(((e,n,{length:r})=>h(Cl,{row:e,isFirstRow:0===n,isLastRow:n+1===r,activeIndex:l,isColoredFirstColumn:t},String(n)))),r?We({...n,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),Sl=p((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:r})=>{const a=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),[o,c]=He({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return u("div",{children:[u("div",{role:"table",children:[a?.length?h(fl,{colHeaders:a,activeIndex:o}):null,s?.length?h($l,{rowData:s,isColoredFirstColumn:r,activeIndex:o,controls:c}):null]}),d?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Il=p((({className:e="",title:t,rowHeaders:l,columns:r,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!i),m=a((()=>d((e=>!e))),[]);return u(B,{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e}`,...o,children:[h(j,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),h(Sl,{columns:r,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?Tl({isShowAllRow:c,onClick:m}):null]})})),Tl=({isShowAllRow:e,onClick:t})=>h("div",{className:"pr-[50px]",children:u("div",{className:"flex w-full",children:[h("div",{className:ul}),h("button",{onClick:t,className:"mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:h("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),Bl=p((({className:e="",contacts:t,info:l,version:n="secondary",...r})=>u(B,{className:`${q[n]} flex p-[50px] ${e}`,...r,children:[l?.length?Rl(l,n):null,t?.length?Rl(t,n):null]}))),Rl=(e,t)=>h("div",{className:"flex grow basis-0",children:e.map(((e,l)=>jl({column:e,index:l,version:t})))}),jl=({column:e,index:t,version:l})=>e?h("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:n,button:r},a)=>u("div",{className:"mt-6 first:mt-0",children:[h(_e,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"left",bgColorHeadline:l}),n?h("div",{className:"mt-1.5 opacity-80",children:h(V,{size:"text-m-light",children:n})}):null,r?h($e,{className:"mt-6",...r}):null]},String(a))))},`col-${String(t)}`):null,Vl=e=>"Image"===e?.errorContentType&&e?.image?h(W,{image:e.image}):"Code"===e?.errorContentType&&e.code?h("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,Ml=p((({className:e="",title:t,subtitle:l,error:n,button:r})=>u("section",{className:`flex flex-col justify-center items-center mt-12 ${e}`,children:[h("div",{className:"flex justify-center py-20",children:Vl(n)}),t?h(j,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?h("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,r?.text?h($e,{className:"py-4 px-9",version:r?.version,...r,children:r.text}):null]}))),_l=p((({className:e="",title:t="",buttons:l,image:n,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}),l?h("div",{className:"mt-auto pt-8",children:l}):null]}),n]})]})));var Dl;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(Dl||(Dl={}));const Ll=new Intl.NumberFormat("ru",{style:"currency",currency:Dl.RUB}),Al=e=>e?Ll.format(e):"",Ol="text-left text-m-light text-secondary-text",El={USD:"DollarIcon",EUR:"EuroIcon"},Fl=p((({className:e,exchangeCurrencyItems:t})=>u("table",{className:`h-fit w-fit ${e}`,children:[h("thead",{children:u("tr",{children:[h("th",{className:Ol,children:"Валюта"}),h("th",{className:`${Ol} pl-11`,children:"Купить"}),h("th",{className:`${Ol} pl-11`,children:"Продать"})]})}),h("tbody",{children:t.map(zl)})]}))),zl=e=>{const t=e?.currency?.currency;return u("tr",{className:"pb-1 text-h6",children:[h("td",{className:"pt-4",children:u("div",{className:"flex items-center",children:[t?h(W,{image:{icon:El[t]},width:"24",height:"24"}):null,h("span",{className:"ml-2",children:t})]})}),h("td",{className:"pt-4 pl-11",children:Al(e?.saleExchangeRate)}),h("td",{className:"pt-4 pl-11",children:Al(e?.buyExchangeRate)})]},t)},Ul=p((({className:e="",address:t})=>u("div",{className:`flex ${e}`,children:[h(W,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),u("div",{className:"ml-3",children:[t?h("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,h("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),Pl=(e,t,l)=>{const n=Number(Xl(e))*Math.pow(t,l?-1:1);return Number.isInteger(n)?n:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(n)},Xl=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Hl=e=>{return(t=[[e=>e.value!==Dl.RUB&&e.oppositeValue!==Dl.RUB,()=>e.handleConvert(e.value,Dl.RUB)],[e=>e.value===Dl.RUB&&e.oppositeValue===Dl.RUB,()=>e.handleConvert(e.value,Dl.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function Gl(e){const t=s(null);return r((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const Wl=p((({className:e="",isBorder:t=!0,label:l,options:i=[],value:s,onChange:o,placeholder:c=""})=>{const[d,m]=n(i[0]||{key:"",text:""}),[p,x]=n(!1),b=Gl(a((()=>x(!1)),[]));return r((()=>{m(s||{key:"",text:""})}),[s]),u("div",{className:`${e}`,ref:b,children:[l?h("span",{className:"mb-2 flex text-primary-text",children:l}):null,u("div",{className:"relative "+(p?"z-20":"z-10"),children:[u("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${Zl(t)}`,onClick:()=>x(!p),children:[h("p",{className:"p-4 pr-8 h-[56px] overflow-hidden text-ellipsis whitespace-nowrap",children:d?.text||c}),h(O,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(p?"":"rotate-180")})]}),i?.length?h("div",{className:`h-0 ${Jl(p)}`,children:h("div",{className:"bg-white text-l max-h-[256px] overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:i.map(Yl((e=>{m(e),x(!1),o(e)}),p,(e=>Boolean(e.key===d.key))))})}):null]})]})})),Jl=e=>e?"":"overflow-hidden",Yl=(e,t,l)=>(n,r)=>u("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[h("span",{className:"min-h-6",children:n.text}),h(O,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",l(n)&&t?"":"hidden"].join(" ")})]},String(r)),Zl=e=>e?"border border-main-stroke rounded-md hover:border-primary-hover":"";function Kl(e){const{placeholder:t,rates:l,selected:n,value:r,setValue:a,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return u("div",{className:"relative flex",children:[h(Et,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:r,onChange:a}),s.length?h(Wl,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const ql=p((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:r})=>{const[i,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Dl.RUB,selectBuy:l?.[0]?.currency?.currency||Dl.USD}),o=a((e=>s((t=>({...t,...e})))),[]);return u("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[Kl({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:Ql(i,o,l),value:i.inputSell,setValue:e=>tn(o,l)(e,i.selectSell,i.selectBuy)}),Kl({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:en(i,o,t),value:i.inputBuy,setValue:e=>ln(o,t)(e,i.selectBuy,i.selectSell)}),r?.text?h($e,{className:"py-4 mr-1",version:r?.version,...r,children:r.text}):null]})})),Ql=(e,t,l)=>n=>{t({selectSell:n}),Hl({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,r=e.selectBuy)=>{tn(t,l)(e.inputSell,n,r)}})},en=(e,t,l)=>n=>{t({selectBuy:n}),Hl({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,r=e.selectSell)=>ln(t,l)(e.inputBuy,n,r)})},tn=(e,t)=>(l,n,r)=>{e({inputSell:Xl(l),selectBuy:r});const a=t.find((e=>e.currency?.currency===r))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;a&&e({inputBuy:String(Pl(l,a,n===Dl.RUB)||"")})},ln=(e,t)=>(l,n,r)=>{e({inputBuy:Xl(l),selectSell:r});const a=t.find((e=>e.currency?.currency===r))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;a&&e({inputSell:String(Pl(l,a,n===Dl.RUB)||"")})};const nn=async e=>{const t=await rn(),l=t?.code||"000";return{region:t,exchangeRates:await an(e,l)}},rn=async()=>{try{return await xt("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},an=async(e,t)=>{try{return await xt(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},sn=p((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:r}=function(){const{data:e}=ht("/api/v1/exchangerates",nn);return e||{}}(),a=on(r?.exchangeRate?.currencies),i=a.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:Dl.RUB}});const s=a.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Dl.RUB}}),h(B,{className:`bg-white text-primary-text font-sans p-9 box-border min-h-[320px] ${e}`,...n,children:h(_l,{title:h(j,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:u("div",{className:"flex",children:[u("div",{className:"mr-14 pt-4",children:[a?h(Fl,{className:"mb-[30px]",exchangeCurrencyItems:a}):null,h(Ul,{address:r?.address})]}),a.length&&i.length&&s.length?h(ql,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),on=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[];function cn(e,t={}){const{data:l}=ht(`/wcms-resources/${e}.json`,xt,{fallback:t});return l||{}}const dn={"bg-white":"color",transparent:"white"},mn={"bg-white":"text-primary-main",transparent:"text-white"},hn={"bg-white":"text-primary-text",transparent:"text-white"},un=p((({className:e="",href:t,logo:l,children:n=l?.title,targetBlank:r,bgColor:a="bg-white",showTitle:i=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:r?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[h(W,l?.image?.src?{image:l.image,className:mn[a],width:"40",height:"45",asSVG:!0}:{image:{icon:l?.image?.icon||"LogoIcon",iconVersion:dn[a]},className:`${mn[a]} w-10`,width:"40",height:"45",asSVG:!0}),i?pn(n,a,l?.title):null]}))),pn=(e,t,l)=>h("span",{className:`${hn[t]} font-medium ml-2.5`,children:e||l||"Россельхозбанк"}),xn=p((({className:e,isMobile:t=!1})=>{const{term:l,setTerm:r}=(()=>{const[e,t]=n("");return{term:e,setTerm:e=>t(e)}})(),a=t?"text-s":"text-l-light",i=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(W,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${a}`,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 ${i}`,value:l,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(W,{image:"CloseIcon",width:"24",height:"24"})}):h($e,{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:"Найти"})})]})})),bn=p((e=>h(xn,{...e}))),gn=p((({className:e="",items:t,hasButton:l})=>u("div",{className:e,children:[t?.length?t.map(fn):null,l?h($e,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),fn=(e,t)=>{const{type:l,text:n,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:vn(l,n)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},vn=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Nn(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})}},Nn=e=>e.replaceAll(/\D/g,""),yn=p((({className:e="",index:t,text:l,...n})=>{const r=pe(),{href:a,target:i,onClick:s}=r(n);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:i,onClick:s,children:l||`Документ ${t}`})})),wn=p((({className:e="",links:t})=>h("div",{className:e,children:t?.length?h("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>h(yn,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),kn=e=>t=>e?.href===t?.href,Cn=(e,t)=>{return(n=e,r=t,(n||[]).map((e=>r?.find(kn(e))||e))).concat((l=e,(t||[]).filter((e=>!l?.find(kn(e))))));var l,n,r},$n=p((({className:e="",items:t,fallback:l})=>{const n=pe(),r=cn(c.SITEMAP||"sitemap",l),a=Cn(r.topItems,t);return h("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:a?.map(((e,t)=>Sn(n(e),t)))})})),Sn=(e,t)=>{const{text:l,items:n,href:r,target:a,onClick:i}=e;return u("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[h("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:r,target:a||"_self",onClick:i,children:l||`Раздел ${t}`}),n?.map(((e,t)=>h(In,{...e,index:t},String(t))))]},String(t))},In=p((({text:e,index:t,...l})=>{const n=pe(),{href:r,target:a,onClick:i}=n(l);return h("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:r,target:a||"_self",onClick:i,children:e||`Раздел ${t}`})})),Tn=[{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"}],Bn=p((({version:e="primary",...t})=>{const l=pe(),{href:n,onClick:r}=l(t),{icon:a,label:i}=Tn.find((({origins:e})=>e.some((e=>n?.includes(e)))))||{};if(!a)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:n,"aria-label":i,target:"_blank",rel:"noopener noreferrer",onClick:r,children:a?h(W,{image:Q(a),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Rn=p((({className:e="",media:t,version:l,children:n})=>u("div",{className:"font-sans",children:[h("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>h(Bn,{version:l,...e},String(t))))}),h("span",{className:"text-s-light text-secondary-text",children:n})]}))),jn=p((({className:e="",index:t,...l})=>{const n=pe(),{href:r,target:a,text:i,onClick:s}=n(l);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:a,onClick:s,children:i||`Документ ${t}`})})),Vn=p((({className:e="",links:t})=>u("div",{className:e,children:[h("div",{className:"pt-5",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 justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>h(jn,{index:t,...e},String(t))))}):null]}))),Mn="w-[204px]",_n=p((({className:e,...t})=>{const l=t.options?.page?.fallback,{documents:n,relatedEnterprises:r,contacts:a,socialMedia:i,mobileApps:s,topItems:o}=cn(c.FOOTER||"footer",l);return u(B,{tag:"footer",className:`p-9 bg-white font-sans ${e||""}`,...t,children:[u("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[h(un,{className:Mn}),h(bn,{className:"grow"})]}),u("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[u("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[h(gn,{items:a,hasButton:!0}),h(Rn,{media:i,children:"Соцсети"}),h(Rn,{className:"mt-6",media:s,children:"Мобильное приложение"})]}),h($n,{className:"pt-[3px]",items:o,fallback:l})]}),h(wn,{className:"mt-[98px]",links:r}),h(Vn,{links:n})]})})),Dn={normal:3,mini:4},Ln={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},An={normal:380,mini:276},On={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},En={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"},Fn=p((({className:e="",isDotted:t=!0,children:l,version:n="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 ${On[n]} ${En[r]}`})}):null,h("span",{children:l})]}))),zn={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},Un={S:"text-l-light",M:"text-h6",L:"text-h5"},Pn={S:"ml-2",M:"ml-3",L:"ml-4"},Xn=p((e=>{const{className:t="",hasIndent:l,isDotted:n,itemClassName:r="",items:a,listItemSize:i="M",version:s="primary"}=e;return a?.length?h("section",{className:`${zn[s]} ${Un[i]} ${t} ${l?Pn[i]:""}`,role:"list",children:a.map(((e,t)=>h(Fn,{className:`${r} mb-1.5`,isDotted:n,version:s,size:i,children:e},String(t))))}):null})),Hn=p((({title:e,headlineSmallVersion:t="H6",description:l,additionalDescription:n,icon:r,items:a,button:i,version:s,isDotted:o=!0,align:c="center"})=>u("div",{className:`h-full flex flex-col justify-between ${C[c]}`,children:[u("div",{className:"flex flex-col h-full",children:[Gn(r,s),Wn(t,e),Jn(l,e),a?.length?Zn(a,o,s):null,Yn(n)]}),i?.text?Be({button:i,buttonClassName:"mt-6"}):null]}))),Gn=(e,t)=>u("div",{className:"flex justify-center",children:[e?.src?h(W,{className:"mb-5",image:e}):null,e?.icon?h(W,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:Q(e,t),asSVG:!0}):null]}),Wn=(e,t)=>t?h("div",{className:Me[e],children:t}):null,Jn=(e,t)=>e?h("div",{className:"text-l "+(t?"mt-2":""),children:e}):null,Yn=e=>e?h("div",{className:"text-m-light text-secondary-text mt-auto",children:e}):null,Zn=(e,t,l="primary")=>h(Xn,{className:"max-w-[308px] mt-2 text-s "+("primary"===l?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:l}),Kn=p((({headlineVersion:e="M",cards:t=[],version:l="normal",activeIndex:n,...r})=>u("div",{children:[h(_e,{...r,className:"!p-0",headlineVersion:e,align:"center"}),h("div",{className:`flex mt-8 ${t?.length<=Dn[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${n*An[l]}px)`},role:"list",children:t?.map(((e,t)=>function({card:e,version:t},l){return h("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${Ln[t]} ${q[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:h(Hn,{...e})},String(l))}({card:e,version:l},t)))})]})));const qn=p((({cards:e=[],className:t="",version:l="normal",button:n,...r})=>{const[a,i]=He({itemCount:e?.length,visibleItemCount:Dn[l]}),{isScrollAvailable:s}=i;return u(B,{className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden flex flex-col ${t}`,...r,children:[h(Kn,{cards:e,version:l,activeIndex:a,...r}),We({...i,btnClass:["left-8","right-8"],className:"top-1/2"}),s?u("div",{children:[h("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),h("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]}):null,n?Be({button:n,buttonClassName:"mt-8 mx-auto"}):null]})})),Qn=p((e=>h(qn,{...e,version:"normal"}))),er=p((({className:e="",title:t,description:l,calendar:n,...r})=>u(B,{className:`font-sans bg-white p-[50px] ${e}`,...r,children:[h(_e,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M",align:"center",...r}),n?tr(n):null]}))),tr=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return u("div",{className:"w-full flex flex-col justify-center mt-13",children:[h("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>lr(e,t)))}),h("div",{className:"flex w-full",children:l.map(((e,t)=>u("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[h("div",{className:"flex",children:nr(e)}),u("div",{className:"text-s-light text-primary-text mt-3",children:[h("span",{children:e.text})," ",h("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},lr=(e,t)=>e.month?.map(((e,l)=>h("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),nr=e=>e.month?.map((e=>e.image?.src?h("div",{className:"h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:h(W,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),rr=(e,t,l=((e,t)=>t.startsWith(e)))=>l(ce(e),ce(oe(e)?t.href:t.pathname)),ar=e=>t=>rr(t.href,e),ir=e=>t=>t.items?.some(ar(e))||rr(t.href,e)||((e,t)=>de(e)===de(t.href))(t.href,e),sr="font-sans text-s-light",or=p((({className:e="",active:t,flat:l,ariaLabel:n,bgColor:r="bg-white",children:a,...i})=>{const s=pe(),{href:o,target:c,text:d,onClick:m}=s(i);return h("a",{className:`${cr(r,t,l)} ${e}`,href:o,target:c,onClick:m,rel:"noopener noreferrer","aria-label":n,children:h("span",{className:dr(r,t,l),children:d||a})})})),cr=(e,t=!1,l=!1)=>{let n="border-transparent";return t&&(n="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${n} inline-block border border-solid bg-transparent text-center no-underline ${l?"":"px-4 py-2"}`},dr=(e,t=!1,l=!1)=>{if("transparent"===e)return`text-white hover:text-primary-hover ${sr}`;return`${t?"text-primary-main":(l?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${sr}`},mr=o("https://10.80.4.9");const hr=p((({className:e="",children:t,ariaLabel:l})=>h("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":l,children:t}))),ur={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},pr={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},xr={"bg-white":"black",transparent:"white"},br=p((({className:e,defaultLocation:t="Москва",bgColor:l="bg-white"})=>{const[i,s]=function(e){const[t,l]=n(e);return r((()=>{l(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,a((()=>{mr.getFetcherAddress().then((t=>{const n=t||e;globalThis?.localStorage.setItem("location",n),l(n)}))}),[e])]}(t);return u("div",{className:`flex items-center ${e||""}`,children:[h(or,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:l}),h(or,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:l}),h(hr,{className:`mr-5 group ${ur[l]}`,ariaLabel:"Поиск по сайту",children:h(W,{image:{icon:"LoupeIcon",iconVersion:xr[l]},className:"h-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0 pointer-events-none",asSVG:!0})}),h(hr,{className:`${pr[l]} group min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:h(W,{image:{icon:"GridIcon",iconVersion:xr[l]},className:"h-full bg-main-divider/20 rounded-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0",asSVG:!0})})]})})),gr={"bg-white":"bg-primary-text",transparent:"bg-white"},fr=p((({className:e,items:t,activeItem:l,bgColor:r})=>{const i=pe(),[s,o]=n(!1),c=a((()=>o((e=>!e))),[]),d=Gl(a((()=>o(!1)),[]));return u("div",{className:`${s?"bg-white rounded-md shadow-blue-gray/24":""} ${e||""}`,ref:d,children:[h("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6","aria-label":""+(s?"Скрыть другие разделы":"Показать другие разделы"),onClick:c,children:Array(3).fill(r).map(vr)}),h("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(s?"":"hidden"),"aria-hidden":!s,children:t?.map(((e,t)=>h("a",{className:"text-l-light pb-4 hover:text-primary-main "+(e===l?"text-primary-main":""),...i(e),children:e.text},e.href||String(t))))})]})})),vr=(e,t)=>h("div",{className:`w-[3px] h-[3px] rounded mr-1 ${gr[e]}`},String(t)),Nr="absolute left-0 -bottom-3 w-full h-[2px]",yr=p((({className:e="",active:t,bgColor:l="bg-white",dataItemName:n,children:r,...a})=>{const i=pe(),{href:s,target:o,text:c,onClick:d}=i(a);return u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:s,target:o,"data-item-name":n,onClick:d,children:[h("span",{className:wr(l,t),children:c||r}),t?h("div",{className:kr(l,t)}):null]})})),wr=(e,t=!1)=>{let l="text-white";return"bg-white"===e&&(l=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${l} font-sans text-l-light`},kr=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Nr}`:Nr,Cr=p((({className:e,active:t,bgColor:l,observerOptions:n,onVisibilityChange:r,children:i,...s})=>{const o=S(a((e=>{if(!e.length||!r)return;const t=e[e.length-1];r(t.isIntersecting)}),[r]),n);return h("span",{ref:o,children:h(yr,{className:e,active:t,bgColor:l,...s,children:i})})})),$r=p((({subItems:e=[],bgColor:t})=>{const l=(e=>(t=[])=>{const l=t?.filter(ar(e));return l?.length?(n=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>n(e)>n(t)?e:t)))(l):void 0;var n})(ue())(e),[r,a]=n(e.length),o=e.slice(r),c=s(null),d=i((()=>({threshold:1,root:c.current})),[c.current]),m=i((()=>e.map(((e,t)=>e=>{a(e?Sr(t):Ir(t))}))),[e]);return u("nav",{className:"relative mt-6",children:[h("div",{ref:c,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,n)=>h(Cr,{className:"mr-8 "+(r-1<n?"invisible":""),active:e===l,bgColor:t,observerOptions:d,onVisibilityChange:m[n],...e},String(n))))}),o.length?h(fr,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:o,activeItem:l,bgColor:t}):null]})})),Sr=e=>t=>Math.max(t,e+1),Ir=e=>t=>Math.min(t,e),Tr={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Br=p((({bgColor:e="bg-white",className:t="",showSubMenu:l=!0,...n})=>{const r=ue(),{topItems:a,logo:i,defaultLocation:s}=cn(c.SITEMAP||"sitemap",n.options?.page?.fallback),o=l?Rr(a,r):null,d=a?.map(((t,l)=>h(or,{active:t===o,"aria-label":t.text,bgColor:e,...t},String(l))));return h(B,{tag:"header",className:`pt-6 px-20 ${e} ${t} ${l&&o?.items?.length?"pb-4":"pb-5"}`,...n,children:u("div",{className:"container",children:[u("div",{className:"flex items-center",children:[h(un,{className:"mr-8",bgColor:e,logo:i}),d,h(br,{className:"ml-auto",defaultLocation:s,bgColor:e})]}),h("div",{className:`mt-6 h-[1px] ${Tr[e]}`}),l&&o?.items?.length?h($r,{subItems:o.items,bgColor:e}):null]})})})),Rr=(e,t)=>{const[l]=e||[];return e?.find(ir(t))||l},jr=p((({className:e="",cards:t=[],button:l})=>{const[r,i]=n(0),s=a((e=>i(e)),[]),o=t.length,[c,d]=He({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:p}=d,x=t[c]?.href;return u("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[u("div",{className:"relative overflow-hidden",children:[o?Vr({activeIndex:c,cards:t,selectedCardIndex:r,onClick:s}):null,We({...d,btnClass:["left-[50px]","right-[50px]"],className:"top-[62px]"}),m?h("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,p?h("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),h($e,{className:"w-[240px] text-center",version:"primary",...l,href:x})]})}));function Vr({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const r=460*e,a=t.length>2?"justify-start":"justify-center";return h("div",{style:{transform:`translateX(-${r}px)`},className:"duration-1000 px-[50px]",children:h("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${a}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return u("button",{type:"button",onClick:n,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue/42 border-primary-main":"ease-in duration-300 border-main-stroke"),children:[e?.icon?h(W,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,u("div",{className:"flex gap-3.5",children:[e?.sum?Mr("страховая сумма",e.sum):null,e?.fee?Mr("страховой взнос",e.fee):null]}),_r(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function Mr(e,t){return u("div",{className:"flex flex-col text-left whitespace-pre",children:[u("span",{className:"text-h6",children:[Je(t)," ₽"]}),h("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function _r(e){return e?h(W,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:"DoneIcon",width:"24",height:"24"}):null}const Dr=p((({className:e="",title:t,insuranceTabs:l=[],button:r,...a})=>{const[i,s]=n(0);return u(B,{className:`box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${e}`,...a,children:[t?h(j,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?h("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,activeSlideIndex:l,onClick:n}){return h("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(t===l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,activeSlideIndex:i,onClick:()=>s(t)})))}):null,h("div",{className:"flex",style:{transform:`translateX(-${i}00%)`},role:"list",children:Lr({insuranceTabs:l,button:r})})]})})),Lr=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>h(jr,{button:t,cards:e},String(l)))):null};const Ar={primary:"border-main-stroke",secondary:"border-white/50"},Or={double:"flex gap-y-2 gap-x-10 flex-wrap",single:"flex gap-y-2 flex-col"},Er=p((({className:e="",columnsMode:t="double",description:l,additionalDescription:n,image:r,cardList:a,title:i,version:s="primary"})=>{const o=i?h(j,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=r?.src?h(W,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return h("section",{className:`relative overflow-hidden text-left border border-solid box-border\n p-9 min-w-[697px] min-h-[319px]\n ${Ar[s]}\n ${e}`,role:"listitem",children:h(_l,{className:"flex justify-between",title:o,image:c,children:u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex itens-center justify-between mb-4",children:[l?h("span",{className:"text-h6",children:l}):null,n?u("span",{className:"text-m-light text-secondary-text",children:[" ",n," "]}):null]}),a?.length?h("div",{className:`${Or[t]}`,role:"list",children:Fr(a,t)}):null]})})})})),Fr=(e,t)=>e.map(((e,l)=>{return u("div",{className:"double"===t?"basis-[calc(50%-20px)]":"",role:"listitem",children:[e?.parameter?h("span",{className:"pr-2.5 "+(n=t,"single"===n?"text-h6":"text-l"),children:e.parameter}):null,e?.parameterDesccription?h("span",{className:"text-m-light text-secondary-text",children:e.parameterDesccription}):null]},String(l));var n})),zr="absolute top-0 bottom-0 w-[84px]",Ur=p((({cards:e=[],className:t="",title:l,version:n="primary",...r})=>{const[a,i]=He({itemCount:e.length,visibleItemCount:1});return u(B,{className:`relative font-sans p-9 overflow-hidden text-center ${q[n]} ${t}`,...r,children:[l?h(j,{headingType:"h3",className:"mb-9",title:l}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${710*a}px)`},role:"list",children:e?.length?e.map(Pr(t,n)):null}),We({...i,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),h("div",{className:`${zr} left-0 ${"secondary"===n?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${zr} right-0 ${"secondary"===n?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Pr=(e,t)=>(l,n)=>h(Er,{className:e,version:t,...l},String(n));function Xr(e){return t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:n},l):[l]),[])}const Hr={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},Gr={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Wr=p((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:r,investmentColumns:a,...i}=e,s=a?[...a]:[];return r&&s.unshift(r),h(B,{className:`font-sans bg-white px-9 py-12 ${t}`,...i,children:u("div",{className:"container text-m-light",children:[s?.length?u("div",{children:[u("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[Xr(h("div",{className:"w-px h-4 bg-main-stroke"}))(s.map(Jr)),h("div",{className:"absolute right-[30px] w-px h-4 bg-main-stroke"})]}),h("div",{className:"border-t border-main-stroke -mt-2 ml-9 mr-8"}),h("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(Kr)})]}):null,l?.length?h(Xn,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:n}):null]})})})),Jr=(e,t,l)=>{const n=1===t,r=t===l.length-1;return h("div",{className:`${Yr(n,r,e.cells)}`,children:e.cells?.length?h("div",{className:"w-full "+(r?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(Zr)}):null},`column_${t}`)},Yr=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-2.5",l.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),Zr=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?h("div",{className:`flex-1 flex items-center justify-center relative py-2 ${Gr[l]} ${Hr[n]} ${"XS"===l?"px-3":"px-11"}`,children:h("div",{className:"text-center",children:e.text})},`cell_${t}`):null},Kr=(e,t,l)=>{const n=0===t,r=t===l.length-1;return h("div",{className:`flex-1 max-w-[180px] text-center px-2 ${n?"pl-9":""} ${r?"mr-3.5":" "}`,children:e.title},`title_${t}`)},qr=p((({className:e,iconClassName:t,textClassName:l,suffixClassName:n,doc:r,icon:a})=>{const{text:i,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[a?h(W,{className:t,image:Q(a),width:"24px",height:"24px",asSVG:!0}):null,i?u("span",{className:l,children:[i,h("span",{className:n,children:o?.href&&Qr(ea(o.href),s)})]}):null]})})),Qr=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),ea=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},ta=p((({className:e="",doc:t,icon:l})=>h(qr,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:l}))),la=p((({className:e,documents:t,columnsMode:l="double",icon:n})=>t?.length?h("div",{className:e,role:"list",children:t.map(((e,t)=>h("div",{className:"double"===l?"basis-[calc(50%-20px)]":"",role:"listitem",children:h(ta,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:n})},String(t))))}):null)),na={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},ra=p((({className:e="",title:t,description:l,align:n="center",documents:r,icon:a={icon:"DocIcon"},columnsMode:i="double",...s})=>u(B,{className:`font-sans text-primary-text p-[50px] bg-white ${e}`,...s,children:[h(_e,{className:"!p-0",title:t,description:l,align:n,headlineVersion:"M",as:"h2",...s}),h(la,{className:`mt-8 ${na[i]}`,columnsMode:i,documents:r,icon:a})]}))),aa=p((e=>h(qn,{...e,version:"mini"}))),ia=e=>{const t="col-span-",l=e.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function sa(e=""){const t=ia(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const oa=p((({className:e="",title:t="Мобильное приложение",qr:l,buttons:n,version:r="primary",items:a,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="primary"===r?"text-primary-text":"",p="secondary"===r?"p-3.5 min-w-[120px]":"min-w-[92px]",x=n?.map((e=>({...e,className:"min-w-[168px]"})));return u(B,{className:`flex justify-between font-sans p-[50px] box-border relative min-h-[320px]\n ${sa(e)}\n ${q[r]}\n ${e}`,...d,children:[u(_l,{className:"z-10",title:t?h(j,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full\n ${m} ${C[o]}`}):null,buttons:n?.length?h(Te,{buttons:x,className:"flex gap-4 mt-8",...d}):null,children:[da(c),u("div",{className:"flex flex-1 items-center mb-3",children:[l?.src?h("div",{className:`flex justify-center mr-5 bg-white rounded-md ${p}`,children:h(W,{className:"w-fit",image:l})}):null,ca(r,a)]})]}),i?.src?h("div",{className:"absolute right-0 bottom-0",children:h(W,{image:i})}):null]})})),ca=(e,t)=>t?.length?h(Xn,{items:t,itemClassName:"text-l-light mb-2 last:mb-0",version:e}):h("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),da=e=>e?h("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null;function ma(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),r=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),a=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));r.add(a),t.geoObjects.add(r),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const ha={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},ua=e=>h("a",{className:`select-none cursor-pointer px-9 h-12 bg-white bg-primary-main text-white ${Object.values(ha).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),pa={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},xa=(e,t,l)=>u("div",{className:`${Object.values(pa).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[h(O,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),h("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const n=t.target?.value?t.target?.value.toLowerCase():"";if(n){const t=e.filter((e=>e.text.toLowerCase().indexOf(n)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),ba={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},ga=(e,t,l)=>h("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(ba).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:h(O,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),fa=e=>globalThis[e];const va=()=>function(e,t){const[l,i]=n(),s=a((()=>i(fa(e))),[e]);return r((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!fa(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY}&lang=ru_RU`),Na={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},ya=p((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return h("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(Na).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:h(O,{name:l,width:"20",height:"16"})})})),wa=[{coords:[55.77,37.46],text:"Трактир"},{coords:[55.66,37.48],text:"Трактор"},{coords:[55.65,37.42],text:"Ресторан"},{coords:[55.64,37.54],text:"Музей"},{coords:[55.54,37.52],text:"Библиотека"},{coords:[55.53,37.56],text:"Школа"},{coords:[55.61,37.61],text:"Аптека"},{coords:[55.8,37.58],text:"Бар"},{coords:[55.71,37.35],text:"Институт"},{coords:[55.74,37.57],text:"Университет"},{coords:[55.58,37.69],text:"Больница"},{coords:[55.57,37.7],text:"Цирк"},{coords:[55.55,37.64],text:"Магазин"},{coords:[55.5,37.75],text:"Булочная"},{coords:[55.81,37.73],text:"Полиция"},{coords:[55.73,37.68],text:"Салон красоты"},{coords:[55.86,37.76],text:"Баня"},{coords:[55.38,37.69],text:"Гараж"},{coords:[55.91,37.5],text:"Дом"},{coords:[55.62,37.32],text:"Прачечная"},{coords:[55.85,37.41],text:"Стадион"},{coords:[55.67,37.24],text:"Вокзал"},{coords:[55.79,37.41],text:"Кафе"}],ka={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-focus focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},Ca=p((({points:e,className:t="",zoom:l=5,showSearchField:a=!1})=>{const i=s(null),o=va(),[c,d]=n(),[m,p]=n(Ta(wa)),x=$a(e);if(r((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:x,zoom:l,controls:[],suppressMapOpenBlock:!0}),ma(o,i.current,m)}))}),[o,i,m]),r((()=>{if(i.current&&m&&o){const e=m.length<1?Ta(wa):m;ma(o,i.current,e)}}),[i,m,o]),!o)return null;const b=c?"z-[100000]":"z-10";return u("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[h("div",{className:`absolute flex left-2 top-4 w-[50%] ${b}`,children:a?xa(wa,0,(e=>{if(e){const t=Ta(e);p(t)}})):ua(x)}),h("div",{className:`${Object.values(ka).join(" ")} ${b} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;c?e.exitFullscreen():e.enterFullscreen(),d(e.isFullscreen())},children:h(O,{name:"FullScreenIcon",width:"16",height:"16"})}),u("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${b}`,children:[h(ya,{yandexMaps:i}),h(ya,{yandexMaps:i,direction:"out"})]}),ga(i.current,o,`right-2 top-80 ${b}`)]})})),$a=e=>[Ia(Sa(e,0)),Ia(Sa(e,1))],Sa=(e,t)=>e.map((e=>e[t])),Ia=e=>e.reduce(((e,t)=>e+t))/e.length,Ta=e=>e?e.map((e=>e.coords)):null,Ba=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],Ra=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?u("div",{className:"flex",children:[h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-golden border-golden",children:e?n:null})]}):h("div",{className:"flex",children:h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},ja=({icon:e,title:t,distance:l,time:n},r)=>u("div",{className:"flex mr-4",children:[h(O,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?u("span",{className:"text-m",children:[t," "]}):null,u("span",{className:"text-m-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${r}`),Va=({title:e,status:t,workTime:l,lunchHour:n,description:r},a)=>u("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[u("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[h("div",{children:e}),t?null:h("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?h("div",{children:l}):null]}),t&&n?Ma(n):null,r?h("div",{className:"pb-1 text-s-light text-secondary-text",children:r}):null]},`day${a}`),Ma=e=>/\d+/gi.test(e)?u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[h("div",{children:"Перерыв"}),h("div",{children:e})]}):h("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:h("div",{children:e})}),_a={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};const Da=e=>e?pt(e,{method:"GET"}):{},La=p((({className:e=""})=>{const t=function(e){const{data:t}=ht(e?`/api/v1/branches?regionCode=${e}`:void 0,Da);return console.warn("WARNING!!! Hook useOfficeMap RETURN MOCK object for testing!"),console.log("Hook useOfficeMap get this data:",t),_a}("000"),{name:l,address:n,gpsLatitude:r,gpsLongitude:a,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:p,workingSunday:x}=i,{workTime:b,lunchHour:g,workTimeSaturday:f,lunchHourSaturday:v}=i,N=r&&a?[r,a]:null,y=[{title:"Понедельник",status:s,workTime:b,lunchHour:g},{title:"Вторник",status:o,workTime:b,lunchHour:g},{title:"Среда",status:c,workTime:b,lunchHour:g},{title:"Четверг",status:d,workTime:b,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:b,lunchHour:g},{title:"Суббота",status:p,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),k=w>0?y[w-1]:y[6];return u("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[u("div",{className:"flex flex-col px-12 pt-12",children:[u("div",{className:"flex justify-between",children:[h("div",{className:"text-h2",children:l}),Ra(k)]}),u("div",{className:"flex text-l-light pt-4",children:[h(O,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),n]}),h("div",{className:"flex pt-4",children:Ba.map(ja)})]}),u("div",{className:"flex justify-between pt-8",children:[h("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?h(Ca,{points:[N],className:"h-full"}):null}),h("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(Va)})]})]})})),Aa=p((({className:e="",title:t,servicesList:l,...n})=>u(B,{className:`font-sans bg-white p-8 flex flex-col ${e}`,...n,children:[t?h(j,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?h("ul",{className:"list-none m-0 p-0",children:l.map(Oa)}):null]}))),Oa=(e,t)=>u("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?h(W,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:Q(e.icon)}):null,e.label?h("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),Ea=p((({className:e="",...t})=>h(B,{className:`font-sans text-primary-text ${e}`,...t,children:k(t)})));Ea.childrenTypes=["OtherProductsItem"];const Fa=p((({className:e="",label:t,icon:l,dataTheme:n="",onClick:r})=>u("button",{className:["border border-transparent bg-primary-main font-sans text-white cursor-pointer","hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none","flex justify-center w-full px-0 py-5",e].join(" "),"data-theme":n,onClick:r,children:[h("span",{className:"text-h4 pr-3",children:t}),l?h(W,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),za=({isUnfolded:e,onToggle:t})=>h(Fa,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Ua=["ArrowDownIcon","ArrowUpIcon"],Pa=p((({className:e,label:t="",isUnfolded:l,...n})=>{const{colorPalette:r}=function(e,t){const{content:l}=function(e){return e?.parent||{}}(e);return l||t}(n.options,{});return h("div",{className:`border-0 border-b border-solid border-main-divider ${e}`,children:h(D,{unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(L,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:k(n)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>h(Fa,{label:t,icon:Ua[Number(e)],dataTheme:n.options?.page?.colorPalette||r,onClick:l})})})}));Pa.childrenTypes=[];const Xa={primary:"text-primary-text",secondary:"text-white"},Ha={primary:"text-secondary-text",secondary:"text-white"},Ga=p((e=>{const{className:t="",icon:l,label:n,description:r,version:a="primary",benefitsVersion:i="normal"}=e,s="white"===i?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[l?h("div",{className:Wa(a,i),children:h(W,{className:"w-6 h-6",image:Q(l,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[n?h("div",{className:`text-h6 ${Xa[a]}`,children:n}):null,r?h("div",{className:`text-m-light ${Ha[a]}`,children:r}):null]})]})}));function Wa(e,t){let l="bg-primary-main text-black";return"secondary"===e?l="bg-white/30 text-black":"normal"===t&&(l="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 ${l}`}const Ja=p((({className:e="",title:t,description:l,image:n,benefits:r,version:a="primary",sum:i,monthLimit:s,directionRight:o=!1,...c})=>u(B,{className:`relative font-sans py-12 px-24 ${q[a]} ${e}`,...c,children:[h(_e,{className:"!p-0",title:t,description:l,headlineVersion:"M",bgColorHeadline:a,align:"center",...c}),u("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[n?.src?h(W,{className:o?"order-2":"",image:n}):null,u("div",{className:"w-[558px] m-auto",children:[r?.length?h("div",{className:"flex flex-col gap-4",children:r.map(Ya(a))}):null,Za(Number(i),Number(s))]})]})]}))),Ya=e=>(t,l)=>h(Ga,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));function Za(e,t){return e||t?u("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?Ka("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?Ka("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function Ka(e,t=0,l=!1){return u("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[h("span",{className:"text-secondary-text text-l-light",children:e}),u("span",{className:"text-primary-main text-h6",children:[Je(t)," ₽"]})]})}function qa(e=""){const t=ia(e);return t<=4?"S":t<=8?"M":"L"}function Qa(e=""){const t=ia(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ei=p((({className:e,title:t,description:l="Блок в разработке...",...n})=>u(B,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Qa(e)} ${sa(e)} `,...n,children:[h(_e,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:qa(e),...n}),h("figure",{className:"m-0 min-w-[80%]",children:ti()})]}))),ti=(e=3)=>ni(100,e).map((e=>Math.floor(e))).map(li),li=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),ni=(e,t)=>[e].concat(t>0?ni(e/1.618,t-1):[]),ri=p((({className:e="",children:t,...l})=>{const n=pe(),{text:r,href:a,target:i,onClick:s}=n(l);return a?h("a",{className:`no-underline ${e}`,href:a,target:i,onClick:s,children:h("span",{className:e,children:r||t})}):h("span",{className:e,children:r||t})})),ai=(e="primary",t="normal")=>({icon:l,label:n,description:r},a)=>h(Ga,{icon:l,label:n,description:r,version:e,benefitsVersion:t},String(a)),ii=p((({className:e="",title:t,headlineVersion:l="L",description:n,benefitsCountOfRow:r=3,benefits:a,benefitsVersion:i,buttons:s,footnote:o,image:c,items:d,version:m="primary",isDotted:p=!0,textBlockClassName:x="",...b})=>{const g=a?.filter((e=>e.label))?.length,f=si(r);return u("div",{className:`flex grow justify-between items-stretch h-full ${e}`,children:[u("div",{className:`flex flex-col ${x}`,children:[h(_e,{title:t,description:n,className:"!p-0 max-w-[600px]",bgColorHeadline:m,headlineVersion:l,align:"left",...b}),u("div",{className:"flex flex-col justify-between h-full",children:[u(_l,{buttons:s?.length?h(Te,{buttons:s,className:"flex gap-4",...b}):null,children:[g?h("div",{className:f,children:a.map(ai(m,i))}):null,d?.length?h(Xn,{className:"mt-5 text-h6",items:d,itemClassName:"mb-[7px]",version:m,isDotted:p}):null]}),o?h("p",{className:"text-m-light pt-12",children:o}):null]})]}),c?.src&&h(W,{className:"mt-[-50px]",image:c})]})})),si=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function oi(e,t,l){const{text:n,href:r,target:a,onClick:i}=e,s="primary"===t?"white":"black",o=e?.icon||{icon:"ArrowLeftIcon"};return u("div",{className:`flex items-center cursor-pointer ${l}`,onClick:i,children:[h($e,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:n,href:r,target:a,children:h(W,{className:"w-4 h-4",image:{...o,iconVersion:o.iconVersion||s},asSVG:!0})}),n?h("span",{className:"text-m",children:n}):null]})}const ci={primary:"text-secondary-text",secondary:"text-white/80"},di=p((e=>{const{className:t="",breadcrumbs:l,backwardButton:n,version:r="primary",...a}=e,i="primary"===r?r:"white";return u(B,{className:`font-sans overflow-hidden p-[50px] flex flex-col box-border min-h-[454px] ${q[r]} ${t}`,...a,children:[n?.text?oi(n,i,"mb-10 -mt-2.5"):null,l?.length?h("div",{className:"text-xs-light mb-6",children:Xr(h("span",{className:`mx-2 ${ci[r]}`,children:"/"}))(l.map(((e,t)=>h(ri,{className:ci[r],...e},String(t)))))}):null,h(ii,{version:r,...a})]})})),mi={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},hi=p((({className:e="",slides:t=[],version:l="primary",...r})=>{const a=t.map((e=>e.nav)),i=t.map((e=>e.productBlock)),[s,o]=n(0);return u(B,{className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 mb-6 ${e}\n ${q[l]}`,...r,children:[h("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${s}00%)`},role:"list",children:i.map(((e,t)=>function(e,t){const{version:l}=e,n=l?mi[l].title:"";return h("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:h("div",{className:"flex grow",children:h(ii,{className:`pl-[50px] z-10 ${n}`,textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...r,version:l},t)))}),h("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:a.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:l,onClick:n,version:r}){const a=t===l,i=a?"bg-white shadow-dark-blue/42 min-w-[350px] border-none p-6":`min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur\n ${q[r]}`,s=a?"text-primary-text !text-h6 p-2":`text-l pb-1 ${mi[r].title}`,o=a?"text-secondary-text text-l-light":`text-m-light ${mi[r].text}`;return h("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${i} ${Ar[r]}\n `,children:u("div",{className:"border-0 px-6",children:[h("div",{className:`last:pb-0 ${s}`,children:e?.title}),h("div",{className:`text-secondary-text ${o}`,children:e?.description})]})},String(t))}({slide:e,i:t,activeSlideIndex:s,onClick:()=>o(t),version:l})))})]})}));const ui=p((({className:e="",title:t,headlineVersion:l="S",description:n,additionalDescription:r,benefits:a=[],buttons:i,image:s,version:o="primary",...c})=>u(B,{className:`overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]\n ${e} ${q[o]} ${Qa(e)}`,...c,children:[h(_e,{className:"!p-0 !bg-transparent z-10 "+(t||n?"mb-3.5":""),as:"h2",title:t,description:n,headlineVersion:l,bgColorHeadline:o,align:"left",...c}),pi(a,o,s),r?bi(r,s,o):null,i?.length?h(Te,{buttons:i,className:"flex self-end mt-5 gap-4 z-10 text-l"}):null,s?.src?h(W,{className:"absolute right-0 bottom-0",image:s}):null]})));function pi(e,t,l){return h("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline\n ${l?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(xi(t)):null})}function xi(e="primary"){const t={primary:"text-secondary-text",secondary:"text-white"};return function(l,n){const{label:r="",description:a=""}=l;return[h("div",{className:"text-h6",children:r},`label-${n}`),h("div",{className:`text-m-light ${t[e]}`,children:a},`desc-${n}`)]}}function bi(e,t,l="primary"){return h("div",{className:`text-m-light mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"} ${{primary:"text-secondary-text",secondary:"text-white"}[l]}`,children:e})}const gi=p((({className:e="",title:t="Акции и спецпредложения",date:l,description:n,buttons:r=[],version:a="primary",...i})=>h(B,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${q[a]} ${Qa(e)} ${sa(e)} `,...i,children:h(_l,{title:t?h(_e,{title:t,className:"!p-0 max-w-[600px]",headlineVersion:qa(e),bgColorHeadline:a,align:"left",as:"h2",...i}):null,buttons:r?.length?h(Te,{buttons:r,className:"flex gap-3"}):null,children:u("div",{className:"mt-1.5",children:[l?h("div",{className:"text-s mb-2",children:fi(l)}):null,h("div",{className:"text-l",children:n})]})})})));function fi(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const vi=p((({className:e="",title:t,description:l,items:n,image:r,version:a,socialMedia:i,button:s})=>{const o=t?h(j,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:t}):null,c=r?.src?h(W,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return h("section",{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${e}`,role:"listitem",children:h(_l,{className:"flex justify-between",title:o,image:c,children:u("div",{className:"h-full flex flex-col justify-between",children:[l?h("span",{className:"mb-2",children:l}):null,n?.length?h(Xn,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:n,version:a}):null,i?h(Rn,{className:"pt-10 pb-0",media:i,version:a}):null,s?.text?h("div",{className:"pt-2",children:Be({button:s,buttonClassName:"mt-16"})}):null]})})})})),Ni="absolute top-0 bottom-0 w-[84px]",yi=p((({recommendations:e=[],className:t="",title:l,version:n="primary",...r})=>{const[a,i]=He({itemCount:e.length,visibleItemCount:2});return u(B,{className:`relative font-sans p-9 overflow-hidden text-center ${q[n]} ${t}`,...r,children:[l?h(j,{headingType:"h3",className:"mb-6",title:l}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*a}px)`},role:"list",children:e.length?e.map(((e,t)=>h(vi,{version:n,className:Ar[n],...e},String(t)))):null}),We({...i,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),h("div",{className:`${Ni} left-0 ${"secondary"===n?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${Ni} right-0 ${"secondary"===n?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),wi=p((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:n=!0,version:r="primary",...a})=>h("div",{className:`border-b border-solid border-main-divider w-full ${e}`,children:h(D,{isFoldButtonOnTop:n,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(L,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:k(a)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>ki({isUnfolded:e,onToggle:l,label:t,version:r})})})));wi.childrenTypes=[];const ki=({isUnfolded:e,onToggle:t,label:l,version:n})=>{const r=l?[l,l]:["Развернуть","Скрыть"];return"primary"===n?h(Ci,{icon:["PlusIcon","MinusIcon"][Number(e)],label:r[Number(e)],onClick:t}):h(Fa,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:r[Number(e)],onClick:t})},Ci=p((({label:e,icon:t,onClick:l})=>u("button",{className:"border-none bg-transparent px-9 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer",onClick:l,children:[h("span",{className:"text-xl font-medium pr-2.5",children:e}),t?h(W,{image:Q({icon:t}),width:"24",height:"24",asSVG:!0}):null]}))),$i=[];const Si=async e=>await pt(e,{method:"GET"})||$i,Ii=p((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:r="",setSelected:a,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return h(Wl,{options:s,label:i,placeholder:r||n,onChange:e=>a(e.key),value:o})})),Ti=p((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:r,onSelectedBranch:a})=>u("div",{className:"flex justify-between gap-4 mb-6",children:[h("div",{className:"max-w-[396px] w-1/2",children:h(Ii,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),h("div",{className:"max-w-[396px] w-1/2",children:h(Ii,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:r,setSelected:a,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Bi=p((({name:e,text:t,value:l,checked:n,onChange:r,className:a})=>h("div",{className:a,children:u("label",{className:"font-sans flex items-center relative cursor-pointer",children:[h("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-checkbox-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:n,onChange:r}),t?h("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),Ri=p((()=>{const[e,t]=n("option2"),l=e=>t(e.target.value);return u("div",{children:[h(Bi,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),h(Bi,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),ji=["От 1 дня","До 365 дней"],Vi=p((({days:e,setDays:t})=>u("div",{className:"mb-6",children:[h("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),h(st,{min:1,max:365,value:e,items:ji,onChange:t})]}))),Mi=p((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:r,onSelectedBoxSize:a})=>u("div",{className:"flex justify-between mb-6",children:[h("div",{className:"mr-4 w-full",children:h(Ii,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),h("div",{className:"w-full",children:h(Ii,{data:n,fieldLabel:"safeBoxCasesSize",selected:r,setSelected:a,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),_i=p((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:r,selectedCaseVolume:a,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onShowMapToggle:d})=>u("div",{className:"flex-1 mr-9",children:[h(Ti,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:Di(c)}),h(Vi,{days:r,setDays:e=>c({days:e})}),h(Mi,{caseVolumes:o,selectedCaseVolume:a,onSelectedCaseVolume:Li(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),h("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),u("div",{className:"flex justify-between items-center mt-5",children:[h(Ri,{}),h($e,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Di=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Li=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Ai=p((({days:e,tariffs:t=[]})=>{const l=Ei(e,t);return u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex",children:[Oi("Аренда за",e,"mr-11"),Oi("Цена",l+" ₽")]}),u("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[h(W,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),u("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",h("br",{})," листов формата А4"]})]})]})})),Oi=(e,t,l="")=>u("div",{className:l,children:[h("div",{className:"text-m-light text-secondary-text mb-1",children:e}),h("span",{className:"text-h3 text-primary-text",children:t})]}),Ei=(e,t)=>{const l=Fi(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},Fi=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},zi=(e,t)=>e.find((e=>e.branchCode===t)),Ui=p((e=>{const{regions:t,data:l,branches:n,onChange:a,onShowMapToggle:i}=e;r((()=>{a({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,a]);const s=zi(n,l.selectedBranch),o=Pi(s?.safeBoxCaseVolumes),c=Xi(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=Hi(c,l.selectedBoxSize);return u("div",{className:"flex justify-between align-top mb-6",children:[h(_i,{...l,regions:t,onShowMapToggle:i,branches:n,caseVolumes:o,safeBoxCases:c,onChange:a}),h(Ai,{days:l.days,tariffs:d})]})})),Pi=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Xi=(e,t)=>e?.find((e=>e.volume===t)),Hi=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;const Gi=p((({title:e,footnote:t,className:l="",...r})=>{const[i,s]=n(!1),[o,c]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),d=function(){const{data:e}=ht("/api/v1/regions",xt);return e||[]}(),m=Wi(o.selectedRegion,d),p=function(e){const{data:t}=ht(e?`/api/v1/safeboxes?regionCode=${e}`:null,Si);return t||$i}(m),x=a((e=>c((t=>({...t,...e})))),[c]),b=(g=zi(p,o.selectedBranch)||p,Array.isArray(g)?g.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):g?.gpsLatitude&&g?.gpsLongitude?[[g.gpsLatitude,g.gpsLongitude]]:[]);var g;return u(B,{className:l,...r,children:[u("div",{className:"font-sans bg-white px-8 py-12",children:[e?h(j,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,h(Ui,{regions:d,branches:p,data:{...o,selectedRegion:m},onShowMapToggle:()=>{s(!i)},onChange:x}),t?h("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?h(Ca,{points:b,className:"h-[640px]"}):null]})})),Wi=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Ji=e=>Boolean(e?.icon||e?.src),Yi=({items:e,isDotted:t=!0,version:l="primary",className:n=""})=>e?h(Xn,{className:n,version:l,items:e,listItemSize:"M",isDotted:t}):null,Zi=({styleMap:e,isMainButton:t,version:l})=>(n,r,{length:a})=>{const{label:i,description:s,button:o,items:c,isDotted:d}=n,m=i&&(s||c)?"mt-2":"";return u("div",{className:`relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden ${es(a)}`,children:[u("div",{className:(o?.text?"mb-8":"")+" text-center",children:[Ki(i),u("div",{className:`${m} flex flex-col items-center`,children:[qi({description:s,className:e.description}),Yi({items:c,isDotted:d,version:l,className:Qi({className:"text-left",description:s,styleMap:e})})]})]}),o?.text&&!t?h($e,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(r))},Ki=e=>e?h("div",{className:"text-h6",children:e}):null,qi=({description:e,className:t=""})=>e?h("div",{className:t,children:e}):null,Qi=({className:e,description:t,styleMap:l})=>[t?l.description:"text-h6",t?"mt-0.5":"",e].join(" "),es=e=>e<5?"w-[276px]":"w-[210px]",ts={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"}},ls=p((({className:e="",showLines:t=!0,steps:l=[],button:n,version:r="primary",...a})=>{const{title:i}=a,s=ts[r],o=l.length>3,c=(e=>e?"":"opacity-0")(t),d=i?"mt-9":"",m=(e=>e<5?"px-[88px]":"px-[55px]")(l.length);return u(B,{className:["box-border py-[50px] font-sans",o?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",s.background,s.title,e].join(" "),...a,children:[i?h(j,{headingType:"h3",className:"max-w-[752px] text-center",title:i}):null,l?.length?u("div",{className:`box-border ${d}`,children:[h("div",{className:`flex items-center ${m}`,children:Xr(h("div",{className:`h-0.5 w-full bg-secondary-light ${c}`}))(l.map(ns(s,r)))}),h("div",{className:"flex justify-between mt-4 "+(o?"gap-x-3":"gap-x-[101px]"),children:l.map(Zi({styleMap:s,isMainButton:Boolean(n?.text),version:r}))})]}):null,n?.text?h($e,{className:"mt-8 min-w-[240px]",version:"primary",...n}):null]})})),ns=(e,t)=>({icon:l},n)=>h("div",{className:"flex flex-col items-center text-center",children:h("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center\n ${e.iconBackground} ${e.title}`,children:Ji(l)?h(W,{image:Q(l||{},t),width:"48",height:"48",asSVG:!0}):h("span",{className:`text-h4 ${e.iconText}`,children:n+1})})},String(n));const rs="h-12 flex-1 flex items-center justify-center cursor-pointer",as="bg-primary-main",is="group bg-white",ss="font-sans text-m",os="text-white",cs="text-secondary-text group-hover:text-primary-main",ds=p((e=>{const{tab:t,currentTab:l,onClick:n}=e,r="link"===l?.type&&l.href===t.href,i=a((()=>{n&&n(t),$.inst.fire("anchorClick",{isScrolling:!0,label:t.href})}),[t,n]),s=pe()({...t,onClick:i});return h("a",{role:"tab",className:`${rs} ${r?as:is}`,target:t.target,href:s.href,onClick:s.onClick,children:h("span",{className:`${ss} ${r?os:cs}`,children:t.text})})})),ms=(e,t)=>h("h3",{className:`${ss} ${t?os:cs}`,children:e}),hs=(e,t)=>h("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(t?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover:text-primary-main"),children:e}),us=({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,a)=>{const i=r.type;if("group"!==i&&"link"!==i)return null;switch(i){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,a)=>{const i=t===r,s=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return h("div",{className:`${rs} ${i?as:is}`,role:"tab","aria-selected":i,onClick:()=>n(r),children:u("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?ms(r.title,i):null,l&&s?hs(s,i):null]})},String(a))})({page:e,currentTab:t,showCounter:l,onClick:n})(r,a);case"link":return h(ds,{tab:r,currentTab:t},String(a));default:!function(e){throw new Error(e)}(i)}},ps=p((e=>{const{className:t="",tabs:l,showCounter:a,isSticky:i,...s}=e,[o,c]=n(l?l[0]:void 0);r((()=>$.inst.subscribe("tab",(e=>{if(!l)return;const t=l.find(xs(e));"link"===e.type&&t&&c(t)}))),[l]),r((()=>{if("group"===o?.type)return $.inst.subject("tab",{label:o.ref})}),[o]);return h(B,{className:`${i?"sticky top-1 z-20 ":""}box-border flex gap-x-1 ${t}`,role:"tablist",...s,children:l?.map(us({onClick:e=>{"group"===e?.type&&$.inst.fire("tab",{type:e.type,label:e.ref}),c(e)},currentTab:o,showCounter:a,...s}))})})),xs=e=>t=>"link"===t.type&&t.href===`#${e.label}`,bs=p((({isOpen:e,onClick:t})=>u($e,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[h("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),h(O,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),gs={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,...t},l)=>Be({button:{rounded:e,...t},buttonClassName:(l>0&&e?"ml-3":"")+" w-12 h-12"})))}):null,Img:({image:e})=>e?.src?h(W,{image:e}):null,List:({isDotted:e,...t})=>h(Xn,{className:"flex flex-col justify-between items-start text-h6",version:"primary",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:p((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:r})=>e?h(bs,{isOpen:r,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},fs=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=n(!0);r((()=>{t===i&&a||m(!0)}),[a,i]);return u("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?h("div",{className:"h-5"}):null,vs({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},vs=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in gs))return null;return h(gs[l],{...t,...n})},Ns=p((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})=>h("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(fs({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})):null})));async function ys(e){const t=await fetch(e);return await t.json()}const ws=p((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=He({itemCount:t,visibleItemCount:5});return u("div",{children:[e?.map(ks(l)),We({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),ks=e=>(t,l)=>{if(!t?.length)return null;const[n,...r]=t,a=[...Array(e).keys()].reduce(((e,t)=>140*(r?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return u("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?h("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:n.data}):null,h("div",{className:"flex flex-grow overflow-hidden",children:h("div",{className:i,style:{transform:`translateX(-${a}px)`},children:r?.map(((t,l)=>u("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?h("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?Cs(t.cols,e):null]},`row${l}`)))})})]},String(l))},Cs=(e,t)=>e?.length>0?h("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>h("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,$s=p((({activeTabIndex:e,items:t})=>{const[l,r]=n({});return h("div",{children:t.map(((t,n)=>{const a=`activeTabIdx:${e}-tableIdx:${n}`;return u("div",{className:"w-full",children:[u("div",{className:"flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>(e=>{r((t=>({...t,[e]:!t[e]})))})(a),children:[t.title,h(W,{image:l[a]?"PlusIcon":"MinusIcon",className:"absolute right-[22px]",width:"24",height:"24"})]}),h("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[a]?"h-0":""),children:h("div",{className:"relative",children:h(ws,{rows:t.rowsData})})})]},a)}))})})),Ss=p((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>u("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?h("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>h("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?h($e,{href:t,version:"secondary",target:"_blank",appendLeft:h(O,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20",asSVG:!0}),text:"Скачать в PDF"}):null]}))),Is=p((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:r}=function(e){const{data:t}=ht(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),ys);return t||{}}(e),[a,i]=n(0),s=r?.[a]?.items??[],o=r?.map((e=>e.currency??""));return u("div",r?{className:"bg-white z-10",children:[h(Ss,{currencies:o,activeTabIndex:a,setActiveTabIndex:i,linkToPDF:t}),h($s,{activeTabIndex:a,items:s}),h(bs,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[h("p",{children:"Данных нет"}),h(bs,{onClick:l,isOpen:!0})]})})),Ts=p((({children:e,tableInner:t,onHideContentClick:l})=>u("div",{className:"self-start flex flex-col",role:"row",children:[h("div",{className:"flex",children:e}),t?h("div",{className:"origin-top animate-expansion",children:h(Is,{...t,onClick:l})}):null]}))),Bs=p((({row:{header:e,data:t},activeIndex:l,rowIdx:r,...a})=>{const[i,s]=n(void 0),[o,c]=n(void 0);return u(Ts,{onHideContentClick:()=>s(void 0),tableInner:i,...a,children:[h("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:u("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?h(W,{className:"mr-[14px] max-w-6 max-h-6",image:Q(e.icon),width:"24px",height:"24px",asSVG:!0}):null,e?.title?h("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?h(bl,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>h(Ns,{cells:e,rowIdx:r,cellIdx:t,setTableInner:s,tableInner:i,openTableInnerIdx:o,setOpenTableInnerIdx:c,...a},String(t))))}):null]})})),Rs=p((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:r,hiddenRowsNum:a=0,...i})=>{const s=r?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=He({itemCount:c,visibleItemCount:2}),{isScrollAvailable:p}=m,x=(o||[]).map(((e,t)=>h(Bs,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[b,g]=a>0?[x.slice(0,-a),x.slice(-a)]:[x,[]];return u(B,{className:`bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${c>1?"pr-0":""} ${e}`,...i,children:[js({title:t,description:l}),Vs(l),a>0?h(D,{renderFoldableSection:({isUnfolded:e})=>u(Ms,{controls:m,isScrollAvailable:p,children:[b,h(L,{isUnfolded:e,children:g})]}),renderFoldButton:za}):h(Ms,{controls:m,isScrollAvailable:p,children:x})]})}));function js({title:e,description:t}){return e?h(j,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function Vs(e){return e?h("div",{className:"mb-9 text-center text-l",children:e}):null}const Ms=p((({children:e,controls:t,isScrollAvailable:l})=>u("div",{role:"table",children:[u("div",{className:"relative",children:[e,l?We({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"}):null]}),l?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]}))),_s={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"}},Ds=p((({title:e,description:t,blockVersion:l="primary",iconVersion:n,image:r,className:a,...i})=>{const s=_s[l];return u(B,{className:`font-sans px-9 py-4 flex ${s.background} ${a||""}`,...i,children:["small"===n?Ls(s.icon):null,"big"===n?As(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${s.title}`,children:e}):null,t?h("div",{className:`text-s ${s.description}`,children:t}):null]})]})}));function Ls(e){return h("div",{className:"pt-1.5 pl-1 pr-4",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function As(e){return e?.src?h(W,{className:"pt-0.5 pr-3",image:e}):null}const Os=p((e=>{const{tags:t,className:l=""}=e;return t?.length?h("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(Es)}):null})),Es=(e,t)=>h("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-color-stroke",children:e},String(t)),Fs=p((e=>{const{title:t,headingType:l="h3",description:n,items:r,buttons:a,image:i,isDotted:s=!0,listItemSize:o="M",className:c="",version:d="primary",tags:m,children:p,...x}=e,b="primary"===d?"text-primary-text":"";return h(B,{className:`overflow-hidden font-sans p-9 pr-3 box-border ${c} ${q[d]} ${Qa(c)} ${sa(c)} `,...x,children:u(_l,{title:t?h(j,{headingType:l,as:"h2",title:t,className:`whitespace-pre-wrap max-w-[600px] ${b}`}):null,buttons:a?.length?h(Te,{buttons:a.map((e=>({...e,className:"min-w-[158px]"}))),className:"flex mt-8 gap-3",...x}):null,image:i?.src?h(W,{className:"mt-auto ml-7",image:i}):null,children:[n?h("div",{className:"max-w-[600px] mt-2.5",children:h(V,{size:"text-xl-light",children:n})}):null,p,zs({version:d,isDotted:s,listItemSize:o},r),m?.length?h(Os,{tags:m,className:"mt-5"}):null]})})}));function zs({version:e,isDotted:t,listItemSize:l},n){return n?.length?h(Xn,{items:n,isDotted:t,className:"mt-2.5",listItemSize:l,itemClassName:"mb-1.5",version:e}):null}const Us={left:"items-start",center:"items-center",right:"items-end"},Ps={XXL:"gap-10",XL:"gap-8",L:"gap-4",M:"gap-3",S:"gap-2",XS:"gap-1","":""},Xs={transparent:"",primary:"bg-white",secondary:"bg-primary-main"},Hs=p((({className:e="",gap:t="",align:l="left",version:n="transparent",...r})=>h(B,{className:["flex flex-col",Ps[t],Us[l],Xs[n],e].join(" "),...r,children:k(r)})));Hs.childrenTypes={exclude:["VerticalLayout"]};const Gs=e=>ia(e)<10?"py-6 px-11":"py-12 px-32",Ws=p((e=>{const{title:t,src:l,previewImg:n,className:r="",...a}=e;return u(B,{className:`bg-white ${Gs(r)} ${r}`,...a,children:[h(_e,{title:t,headlineVersion:"M"}),l?h("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:n?.src,style:{maxHeight:524},controls:!0,children:h("source",{src:l})}):null]})})),Js={Accordion:_,AccordionItem:Z,CarouselLinks:qt,BenefitsBlock:ne,BusinessBlock:Xe,Bonus:De,BonusBenefitsBlock:Ee,CardTransfer:Ut,Calculator:_t,Carousel:Gt,CarouselCard:Yt,CarouselTariffsCard:el,Catalog:cl,ContactsBlock:Bl,ComparisonTable:Il,ErrorBlock:Ml,ExchangeRateTile:sn,Footer:_n,Gallery:Qn,GracePeriod:er,Header:Br,Headline:_e,InsuranceAmountBlock:Dr,InvestmentInfo:Wr,InvestmentGallery:Ur,LinkDocs:ra,MiniGallery:aa,MobileAppTile:oa,PictureText:Ja,Placeholder:ei,ProductBlock:di,ProductGallery:hi,ProductTile:ui,PromoTile:gi,OfficeMap:La,OfficeServicesBlock:Aa,OtherProducts:Ea,OtherProductsItem:Pa,Recommendation:yi,RollupItem:wi,SafeDepositRental:Gi,StepsBlock:ls,Tabs:ps,TariffsTable:Rs,TextBlock:Ds,Tile:Fs,VerticalLayout:Hs,Video:Ws},Ys=m();const Zs=p((({className:e,onClick:t,ariaLabel:l})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:Ks()}))),Ks=()=>{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"})]})},qs=p((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return r((()=>{(async()=>{const[t]=await Ys.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{l(await Ys.like(e))}),[e]),dislike:a((async()=>{l(await Ys.dislike(e))}),[e])}}(ue().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(Zs,{onClick:he(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(Zs,{onClick:he(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),Qs=p((e=>{const{className:t="",blocksRegistry:l,blockDecorator:n,data:r={}}=e,{style:a,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:l,blockDecorator:n,parent:r};return u("section",{className:`relative ${b(a)} ${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(i,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(qs,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Qs.childrenTypes=[],Qs.slots=()=>["header","footer"];e.Blocks=Js,e.ContentPage=Qs,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=he,e.joinList=Xr,e.packageVersion="0.6.34",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=me,e.useRouter=ue,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).UniBlocks={})}(this,(function(e){"use strict";let t;const l=e=>(...l)=>t[e](...l),n=l("useState"),r=l("useEffect"),a=l("useCallback"),i=l("useMemo"),s=l("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))))))(),l=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await l.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:l}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:l})),{token:t,name:l}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:l}=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:l},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:n}=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:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{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:l,name:n}=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:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{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,l){const{children:n,...r}=t||{},a=l?.slots?.default,i=n||a&&a();return e(Object.assign(r,i&&{children:i}),l)}return t.inheritAttrs=!1,t};function g(e){return e?e.filter(Boolean).join(" "):""}const b=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),f=[],v=["col-span-12"];function N(e,t){const{key:l,blockDecorator:n=b,blocksRegistry:r={},ancestors:a=f}=t,{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const s=i&&r[i];return n({blockClassName:`scroll-mt-12 ${g(e.style||v)}`,block:e,ancestors:a,render:({block:n,blockClassName:r})=>{const{content:a}=n;return s?h(s,{className:r,block:e,options:t,...a},l):null}},l)}const y=[],w=(e,{key:t,ancestors:l=y,slotName:n=null,renderChild:r=N,...a})=>(e||[]).map(((e,i)=>r(e,{...a,key:`${t||e.type}-${i}`,ancestors:a.parent?[...l||y,[a.parent,n]]:l})));function k({children:e,block:t,options:l,renderChild:n}){return e||(t&&l?w(t.blocks,{...l,parent:t,renderChild:n}):null)}const C={left:"text-left",center:"text-center",right:"text-right"};class ${static inst=new $;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{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 S(e,{sensitivity:t,rootRef:l}={}){const n=s(null),a=i((()=>({threshold:I(t),root:l?.current})),[t,l?.current]);return r((()=>{if(!n.current)return;const t=new IntersectionObserver(e,a);return t.observe(n.current),()=>{t.disconnect()}}),[e,a]),n}function I(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,l)=>Math.min(l/t)),1).concat(1)}const T=p((({className:e,block:t,tag:l="section",role:a,children:o})=>{const c=l,{anchor:d,labels:m}=t||{},[u,p]=n(!0),x=s({}),g=i((()=>(({anchor:e,anchorClickRef:t})=>l=>{if(!l?.length)return;const[n]=l;!n.isIntersecting||n.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=S(g,{sensitivity:1});return r((()=>$.inst.subscribe("anchorClick",(e=>{p(!0),x.current=e}))),[]),r((()=>$.inst.subscribe("tab",(e=>{if("group"===e.type){const l=m?.length||t?.anchor;p(!e.label||(!l||Boolean(m?.includes(e.label))))}else(l=e.label)&&(globalThis.document.location.hash=l),p(!0);var l}))),[]),u?h(c,{className:e,role:a,...d?{id:d,ref:b}:{},children:o}):null}));const B={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},R=p((e=>{const{className:t="",headingType:l="h3",title:n,as:r="h3"}=e;return h(r,{className:`font-sans m-0 ${B[l]} ${t}`,children:n})})),j=p((e=>{const{size:t="",color:l="",align:n="",font:r="",children:a}=e;return h("p",{className:`font-sans ${t} ${l} ${n} ${r}`,children:a})})),V=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),M=p((({className:e="",title:t,accordionAlignTitle:l="center",description:n,...r})=>u(T,{className:`p-[50px] mb-1 last:mb-0 bg-white text-primary-text ${e}`,...r,children:[t?h(R,{headingType:"h3",as:"h2",className:`mb-2.5 ${C[l]}`,title:t}):null,n?h("div",{className:"mb-2.5",children:h(j,{size:"text-l",children:n})}):null,h(V,{children:k(r)})]})));M.childrenTypes=["AccordionItem"];const L=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:l,renderFoldButton:r})=>{const[i,s]=n(t),o=a((()=>{s((e=>!e))}),[]),c=l({isUnfolded:i,onToggle:o}),d=r?r({isUnfolded:i,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),_=p((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return r((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),h("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:l})})),D={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},A=p((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:r=n,iconVersion:a="color",asSVG:i,...s})=>{const o=`${c.CDN||""}icons/${l}.svg`;return i&&"normal"!==a?h(E,{className:e,children:u("svg",{className:[z(e,s.width),D[a],t,O(a)].join(" "),...s,"aria-hidden":"true",children:[r?h("title",{children:r}):null,n?h("desc",{children:n}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:n,title:r,...s,"aria-hidden":"true"})})),O=e=>"white"===e?"invert":"",z=(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,U=p((({className:e="",image:t,imageClassName:l="",isMobile:n=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${n?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(P).map((({src:e,format:l,media:n},r)=>h("source",{srcSet:e,type:G(l),media:n?`(max-width: ${n}px)`:"",...t.size},`${r}_${e}`))):null,X(t,l,n)]})})),X=(e,t="",l=!1)=>{const n={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",a=e.alt||e.title,i=l?"m-auto":"m-0";return h("img",{src:e.src,className:`${i} ${t}`,alt:a,title:r,style:n,...e.size})};function G(e){return e?`image/${String(e)}`:void 0}const H=p((({className:e="",image:t,imageClassName:l="",isMobile:n,...r})=>{if(!t)return null;const a="string"==typeof t?t:t.icon;return a||""===a?a.length?h(A,{className:e,imageClassName:l,iconVersion:F(t),name:a,...r}):null:h(U,{className:e,imageClassName:l,image:t,isMobile:n})})),W=p((e=>{const{size:t="",color:l="",align:n="",font:r="",children:a}=e;return h("span",{className:`font-sans ${t} ${l} ${n} ${r}`,children:a})})),J=["PlusIcon","MinusIcon"],Y=p((({className:e="",label:t="",isExpanded:l,...n})=>h("li",{className:`border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,children:h(L,{isFoldButtonOnTop:!0,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h(_,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:k(n)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>h(Z,{label:t,icon:J[Number(e)],onClick:l})})})));Y.childrenTypes=[];const Z=p((({label:e,icon:t,onClick:l})=>u("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer",onClick:l,children:[h(W,{size:"text-xl",font:"font-medium",children:e}),h(H,{image:t,className:"text-primary-main flex-shrink-0",width:"24",height:"24",asSVG:!0})]}))),K={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},q=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),Q={primary:"",secondary:"text-white"},ee={primary:"text-secondary-text",secondary:"text-white opacity-80"},te={primary:"bg-main-divider text-primary-main",secondary:"bg-white/30 text-black"},le=p((({className:e="",title:t,benefitList:l,version:n="primary",...r})=>u(T,{className:`font-sans text-primary-text p-12 flex flex-col items-center ${e} ${K[n]}`,...r,children:[t?h(R,{headingType:"h3",as:"h2",className:`max-w-[47rem] text-center ${Q[n]}`,title:t}):null,l?.length?h("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map(ne(n))}):null]}))),ne=e=>(t,l)=>{const n=t.description;return u("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[t?.icon?.icon?h(H,{className:`w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${te[e]}`,image:q(t.icon,e),asSVG:!0}):null,t?.icon?.src?h(H,{image:t.icon}):null,u("div",{className:"ml-5",children:[t?.label?h("h3",{className:`text-h6 m-0 ${Q[e]}`,children:t.label}):null,re(n,e)]})]},String(l))},re=(e,t)=>{const l=e?.benefitType||null;return e&&l?h("div",{className:`text-l-light mt-2 ${ee[t]}`,children:"list"===l?ie(e):ae(e)}):null},ae=e=>e?.name||null,ie=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?h("ul",{className:t,children:e.items.map(((e,t)=>h("li",{children:e},`benefitListItem-${t}`)))}):null},se=e=>e?.includes("//"),oe=e=>(e||"").replace(/\/?\?.*/,""),ce=e=>{if(!e||!se(e))return;const t=e,l=t.indexOf("//"),n=t.indexOf("/",l+"//".length);return-1!==n?t.substring(0,n):t},de=e=>e?.startsWith("#");var me=Object.freeze({__proto__:null,isURL:se,withoutQuery:oe,getOrigin:ce,getHash:e=>{if(!e||!se(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:de});const he=(e,t)=>he._impl(e,t);function ue(){return ue._impl()}function pe(){const e=ue();return t=>{const l=((e,t)=>{if(!e)return e;const l=ce(t?.href);return l?e.replace(l,"")||"/":e})(t.href,e);return{...t,href:l,"aria-label":t.text,onClick:he((n=>{t.onClick&&t.onClick(n);const r=l&&!se(l),a=!t.target||"_self"===t.target;r&&a&&!de(l)&&(n?.preventDefault(),e.push(l))}),t)}}}he._impl=e=>e,he.setup=e=>{he._impl=e},ue._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),ue.setup=e=>{ue._impl=e};const xe={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:""},ge="bg-main-divider text-main-disabled",be={primary:ge,secondary:ge,white:ge,link:""},fe="text-center font-sans select-none",ve={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:""},Ne=p((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:r,version:a="primary"}=e;return u("div",{className:ye(e),children:[n?h("div",{className:ve[a],children:n}):null,we(e)?u("div",{children:[l?h("div",{className:"text-xs-light text-left",children:l}):null,h("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?h("div",{className:ve[a],children:r}):null]})})),ye=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const r="gap-2 "+(l?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",we(e)?r:"h-12 w-12",n?"rounded-full":""].join(" ")},we=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),ke=({className:e,rounded:t,version:l})=>["inline-block",fe,l?be[l]:"",t?"rounded-full":"rounded-md",e].join(" "),Ce=({className:e,rounded:t,version:l})=>[fe,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",l?xe[l]:"",t?"rounded-full":"rounded-md",e].join(" "),$e=p((({disabled:e,children:t,...l})=>{const n=pe()(l),r=t??h(Ne,{...n});return h(e?Ie:Se,{...n,children:r})})),Se=p((({className:e="",href:t,rel:l,target:n,ariaLabel:r,version:a,rounded:i,onClick:s,children:o})=>h("a",{className:Ce({className:e,version:a,rounded:i}),href:t,rel:l,target:n,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Ie=p((({className:e,ariaLabel:t,version:l,rounded:n,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ke({className:e,rounded:n,version:l}),children:r}))),Te=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>Be({button:e,index:t})))}):null));function Be({button:e,buttonClassName:t,index:l}){const{icon:n,iconRight:r,version:a,...i}=e,s="secondary"===a?"color":"white",o=Re({...n,iconVersion:s}),c=Re({...r,iconVersion:s});return h($e,{className:t,appendLeft:o,appendRight:c,version:a,...i},l?String(l):"")}const Re=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(H,{image:{...e},width:t,height:"24",asSVG:!0})},je={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"}},Ve={XXL:{descriptionFont:"text-h5",gap:"gap-[18px]",headingType:"h0",as:"h1"},XL:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h1",as:"h1"},L:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h2",as:"h2"},M:{descriptionFont:"text-xl-light",gap:"gap-3",headingType:"h3",as:"h3"},S:{descriptionFont:"text-xl-light",gap:"gap-2",headingType:"h4",as:"h4"},XS:{descriptionFont:"text-l-light",gap:"gap-2",headingType:"h5",as:"h5"}},Me={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},Le=p((({className:e="",bgColorHeadline:t="transparent",align:l="center",title:n,description:r,headlineVersion:a="XL",as:i,...s})=>{const o=je[t],c=Ve[a];return u(T,{className:`font-sans flex flex-col p-[50px] ${c.gap} ${o.background} ${e}`,...s,children:[n?h(R,{headingType:c?.headingType,as:i||c?.as,className:`whitespace-pre-wrap ${o.text} ${C[l]}`,title:n}):null,r?h("p",{className:`${c.descriptionFont} ${o.text} ${C[l]}`,children:r}):null]})})),_e=p((e=>{const{className:t="",title:l,description:n,bonusItems:r,...a}=e;return h(T,{className:`font-sans bg-white p-[50px] pb-9 ${t}`,...a,children:u("div",{className:"container",children:[h(Le,{className:"!p-0",title:l,description:n,headlineVersion:"M",align:"center",...a}),h("div",{className:"flex flex-wrap w-full mt-9",children:r?.length?r.map(((e,t)=>h("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:u("div",{className:"flex justify-between w-full",children:[u("div",{className:"flex flex-col justify-between mr-4",children:[u("div",{children:[h("div",{className:"text-h4",children:e.title}),h("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),e?.buttons?.length?h(Te,{buttons:e?.buttons}):null]}),e.bonusItemContent?.bonusType?De(e.bonusItemContent):null]})},String(t)))):null})]})})})),De=e=>h("div",{children:"count"===e.bonusType?Ae(e):Oe(e)}),Ae=e=>u("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?h("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?h("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),Oe=e=>e.image?h(H,{className:"w-[50px] h-[50px] min-w-[50px] p-3 rounded-full",image:e.image}):null,ze=p((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:n="4",subtitle:r,title:a,...i})=>u(T,{className:`font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${l}`,...i,children:[h(Le,{className:"!p-0 mb-8",title:a,description:r,headlineVersion:"M",align:"center",...i}),e?.length?h("div",{className:`grid gap-1 ${C[t]} ${Fe(n)}`,children:e.map(Ee)}):null]}))),Ee=({icon:e,label:t,description:l},n)=>u("div",{className:"flex flex-col items-center text-h6",children:[l?h("span",{children:l}):null,e?h(H,{image:e,height:"180",width:"auto",className:"h-[180px] w-auto"}):null,h("div",{children:t?h("span",{children:t}):null})]},String(n)),Fe=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},Pe=p((e=>{const{title:t,image:l,cardItems:n,button:r}=e;return u("div",{className:"border-color-stroke border p-9 w-1/2",children:[l?u("div",{className:"flex justify-center",children:[l?.src?h(H,{className:"mb-5",image:l}):null,l?.icon?h(H,{image:l,asSVG:!0}):null]}):null,t?h(R,{headingType:"h4",title:t,className:"mb-6"}):null,n?.length?h("ul",{children:n.map(((e,t)=>Ue(e,String(t))))}):null,r?.text?Be({button:r,buttonClassName:"mt-6"}):null]})})),Ue=(e,t)=>{const{icon:l,text:n}=e;return u("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?h(H,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",image:l.icon,asSVG:!0}):null,l?.src?h(H,{image:l.icon}):null,h("span",{className:"text-xl-light",children:n})]},t)},Xe=p((({className:e="",title:t,cards:l,...n})=>u(T,{className:`font-sans bg-white p-[50px] pb-9 ${e}`,...n,children:[h(R,{headingType:"h3",title:t,className:"text-center mb-8"}),h("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>h(Pe,{...e},String(t)))):null})]}))),Ge=e=>{const{itemCount:t,visibleItemCount:l,isCyclic:r}=e,[i,s]=n(0),o=a((()=>s((e=>r?(e+1)%t:Math.min(e+1,t-1)))),[r,t]),c=a((()=>s((e=>r?(t+e-1)%t:Math.max(e-1,0)))),[r,t]),d=r||function(e,{itemCount:t,visibleItemCount:l,container:n}){if(l)return t>l;if(n){return n.scrollWidth*e/t+n.clientWidth<n.scrollWidth}return!1}(i,e)&&i<t-(l||1),m=r||i>0;return[i,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]};const He=p((({className:e,disabled:t,...l})=>h($e,{rounded:!0,className:`group shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...l,children:h(H,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"16",height:"16",asSVG:!0})}))),We=p((e=>h(He,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Je=p((e=>h(He,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Ye({dec:e,inc:t,canDec:l,canInc:n,btnClass:r,className:a=""}){return l||n?u("div",{children:[l?h(He,{className:`absolute z-50 ${r[0]} ${a}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?h(He,{className:`absolute z-50 rotate-180 ${r[1]} ${a}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const Ze=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),Ke=p((({title:e,value:t,postfix:l="",prefix:n,className:r=""})=>u("div",{className:`mb-7 ${r}`,children:[e?h("div",{className:"text-l-light text-secondary-text",children:e}):null,t?u("div",{className:"text-h3",children:[n," ",Ze(Math.round(t))," ",l]}):null]}))),qe=2e6,Qe=97e4,et=Math.round(23.5),tt={minSum:6e4,maxSum:qe,minMonths:13,maxMonths:60,rateBottomRange:10,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},lt={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},nt={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:120,rate:5.9,isMonthlyInterestPayment:!0},rt=p((({rate:e,title:t="Ставка",unit:l,rateBlockClassName:n})=>u("div",{children:[h("div",{className:"text-l-light text-secondary-text",children:t}),u("div",{className:"flex justify-start",children:[h("span",{className:`block gradient-color-text font-mohave text-title-huge pr-6 -mt-4 ${n}`,children:String(e).replace(".",",")}),l?h("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:l}):""]})]})));function at(e){return e?.length?h(Te,{buttons:e,className:"flex flex-col mt-7 gap-2"}):null}const it=e=>e?h("p",{className:"text-s-light text-secondary-text mt-7",children:e}):null,st=(e,t,l)=>Math.max(t,Math.min(e,l)),ot=e=>e.split(/\s+/).join(""),ct=p((({className:e,title:t,items:l=[],min:n=1,max:r=100,step:a=1,value:i=n,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(st(Number(ot(e.target.value)),n,r))},d={backgroundSize:`${(100*(i-n)/(r-n)).toFixed(2)}% 100%`};return u("div",{className:e,children:[u("label",{className:"block relative",children:[t?h("span",{className:"text-m-light text-primary-text",children:t}):null,h("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-focus disabled:border-main-stroke disabled:bg-main-divider",value:Ze(i),disabled:s,onChange:c,onBlur:c}),h("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:h("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:n,max:r,step:a,value:i,disabled:s,onChange:c,style:d})})]}),dt(l)]})}));function dt(e){return h("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>h("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const mt=1e3;function ht(e,t,l){const{moneyValue:n,minSum:r,maxSum:a,step:i=mt,isShowItems:s=!0}=t,o=[`От ${Ze(r)} ₽`,`До ${Ze(a)} ₽`];return h(ct,{title:e,items:s?o:[],min:r,max:a,step:i,value:st(n,r,a),onChange:l})}const ut=new Map;function pt(e,t,{fallback:l}={}){const a=i((()=>xt(e)),[e]),[s,o]=n(),[c,d]=n(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!a.every((e=>null===e)))try{const e=t(...a);"then"in e?(e=>{e.then((e=>ut.get(a)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...a]);const u=a[0],p=l&&"string"==typeof u&&l[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function xt(e){return e?Array.isArray(e)?e:e instanceof Function?xt(e()):[e]:[e]}async function gt(e,t){try{return await bt(e,t)}catch(e){console.error(e)}return null}async function bt(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}function ft(e){const{data:t}=pt(`/wcms-resources/${e}.json`,bt);return t}const vt=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,r=ft(t||"bonus-calculator-data")||lt,[a,i]=((e,t,l)=>{const{minSumTravel:n,minSumOther:r,maxBonus:a,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===r)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),a);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*l),a)*(12-i)]})(r,l,n);return{...r,...e,monthBonus:a,yearBonus:i}},Nt=p((({className:e="",sourceBookDir:t="",buttons:l,footnote:r})=>{const[a,i]=n(6e3),[s,o]=n(6e3),c={travelExpenseValue:a,restExpenseValue:s},{minSumTravel:d,maxSumTravel:m,minSumOther:p,maxSumOther:x,monthBonus:g,yearBonus:b}=vt(c,t);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[ht("Сумма покупок в категории путешествия, ₽",{minSum:d,maxSum:m,moneyValue:a,step:500,isShowItems:!1},i),ht("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:p,maxSum:x,moneyValue:s,step:500,isShowItems:!1},o)]}),h("div",{children:g>=0?h(rt,{title:"Баллов за месяц",rate:g,rateBlockClassName:"tracking-[-14px]"}):null}),u("div",{className:"w-full max-w-[350px]",children:[b>=0?h(Ke,{title:"Баллов за год",value:b}):null,at(l),it(r)]})]})})),yt=p((({className:e,viewBox:t,fill:l="none",width:n,height:r,paths:a,...i})=>h("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:r,children:a.map((({d:e,fill:t,...l},n)=>h("path",{d:e,fill:t||"currentColor",...i,...l},n)))}))),wt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],kt=p((({className:e,text:t,checked:l,isRadio:n,onChange:r})=>h("div",{className:e,children:u("label",{className:"flex items-center relative cursor-pointer group",children:[h("input",{className:`peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover:border-checkbox-hover\n ${n?"rounded-full border-2":"rounded checked:bg-primary-main border"}\n ${l?"border-black":"border-main-stroke"}\n checked:border-primary-main m-0`,type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:l}),n?h("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):h(yt,{paths:wt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?h("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),Ct=p((({items:e,checkedItem:t,onChange:l})=>h("div",{className:"flex flex-col gap-3",children:e?.map((({id:e,text:n})=>h(kt,{isRadio:!0,text:n,checked:t===e,onChange:()=>l&&l(e)},String(e))))})));function $t(e,t,l){const{minMonths:n,maxMonths:r,monthsValue:a}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return h(ct,{className:"mt-7",title:e,items:[`От ${i(n)}`,`До ${i(r)}`],min:n,max:r,step:1,value:st(a,n,r),onChange:l})}const St=(e,t)=>{const{isInsurance:l,isSalaryClient:n,isStateEmployee:r,moneyValue:a}=e,i=ft(t||"credit-calculator-data")?.rows?.find((e=>l===e.isInsurance&&n===e.isSalaryClient&&r===e.isStateEmployee))||tt,{rateBottomRange:s,rateTopRange:o,sumBorder:c}=i,d=a<=c?s:o,m=((e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:r}=t;if(l){const t=e/1200;return n*(t+t/(Math.pow(1+t,r)-1))}return Math.round(n/r)+n*(e/1200)})(d,e);return{...i,...e,finalRate:d,monthlyPayment:m}},It="annuity",Tt="differential",Bt=[{id:It,text:"Аннуитетный"},{id:Tt,text:"Дифференцированный"}],Rt=p((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[a,i]=n(!1),[s,o]=n(!0),[c,d]=n(!1),[m,p]=n(!1),[x,g]=n(Qe),[b,f]=n(et),v=St({isAnnuity:a,isInsurance:s,isSalaryClient:c,isStateEmployee:m,moneyValue:x,monthsValue:b},t);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[ht("Сумма кредита, ₽",{...v,step:500},g),$t("Срок кредита, месяцев",v,f),u("div",{className:"mt-7",children:[h(kt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:c,onChange:d}),h(kt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:m,onChange:p}),h(kt,{className:"mt-3",text:"Комплексная страховая защита",checked:s,onChange:o})]})]}),h(rt,{title:"Ставка",rate:v.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Ke,{title:a?"Ежемесячный платеж":"Платёж в первый месяц",value:v.monthlyPayment,postfix:"₽"}),h(Ct,{items:Bt,checkedItem:a?It:Tt,onChange:e=>i(e===It)}),at(l),it(r)]})]})})),jt=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,monthsValue:r}=t;return l?Math.round(n*Math.pow((1200+e)/1200,r)-n):Math.round(n*e*30*r/365/100)},Vt="everyMonth",Mt="atEndTerm",Lt=[{id:Vt,text:"Ежемесячно"},{id:Mt,text:"В конце срока"}],_t={CreditCalculatorForm:Rt,DepositCalculatorForm:p((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[a,i]=n(Qe),[s,o]=n(et),[c,d]=n(!1),m=((e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n}=e,r=ft(t||"deposit-calculator-data")?.rows.find((e=>l===e.isMonthlyInterestPayment))||nt,{rate:a}=r,i=jt(a,e),s=n+i;return{...r,...e,income:i,finalSum:s}})({moneyValue:a,monthsValue:s,isMonthlyInterestPayment:c},t),{income:p,finalSum:x,rate:g}=m;return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[ht("Сумма вклада, ₽",{...m},i),$t("Срок вклада, месяцев",{...m},o)]}),h(rt,{rate:g||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[p?h(Ke,{title:"Доход по вкладу",value:p,postfix:"₽",prefix:"+"}):null,x?h(Ke,{title:"Сумма в конце срока",value:x,postfix:"₽"}):null,h(Ct,{items:Lt,checkedItem:c?Vt:Mt,onChange:e=>d(e===Vt)}),at(l),it(r)]})]})})),BonusCalculatorForm:Nt},Dt=(e,t)=>{const l=e?.calcType;if(!l||!(l in _t))return null;const n=_t[l];return h("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:u("div",{className:"box-border p-9 w-full",children:[e?.title?h(R,{className:"text-center mb-6",title:e.title}):null,h(n,{...e,className:"flex justify-between"})]})},String(t))},At=p((({className:e="",calculatorTabs:t=[],...l})=>{const r=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=n(0),c=a((e=>o(e)),[]),[d,m]=Ge({itemCount:t?.length,visibleItemCount:3});return u(T,{className:`box-border overflow-hidden relative font-sans w-100 text-primary-text bg-white ${e}`,...l,children:[u("div",{className:"bg-white",children:[r.length>1?Ot({activeIndex:d,tabsNav:r,slideIndexShift:s,onClick:c}):null,Ye({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(Dt):null})]})}));function Ot({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:n}){return u("div",{children:[h("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:h("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:n}){const r=l?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",a=l?"text-xl mb-1.5":"text-l mb-[3px]",i=l?"text-l-light text-white":"text-m-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return u("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${r}`,children:[h(H,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24",asSVG:!0}),u("div",{className:"border-0",children:[h("div",{className:`${a}`,children:e?.title}),h("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})}),h("div",{className:"w-full h-2 bg-primary-main"})]})}const zt=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,Et=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},Ft=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),Pt=p((({className:e="",inputClassName:t="",id:l,name:n,type:r="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:m,...p})=>{const x=a((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),g=a((e=>{if(!m)return;const t=e.target.validity.valid?e.target.value:s;m(t)}),[m]),b=c?"pr-8":"",f=o?"border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return u("div",{className:`relative ${e}`,children:[i?h("label",{className:"block text-m-light mb-2",children:i}):null,h("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${b} ${f} ${t}`,id:l,name:n||l,type:r,value:s,onChange:x,onBlur:g,...p}),c]})})),Ut=p((({className:e="",onChange:t,minValue:l=0,maxValue:n=3e5,...r})=>{const i=a((e=>{if(!t)return;const r=zt(Et(Ft(ot(e))));const a=Xt(r,st(Number(r),l,n));t(String(a))}),[t]),s=a((e=>{var l;t&&t((l=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(ot(l))).replace(",",".")))}),[t]);return h(Pt,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...r,children:h("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Xt=(e,t)=>Number(e)===t?e:String(t),Gt=p((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:r="1500",button:i,...s})=>{const[o,c]=n(""),d=a((e=>c(e)),[]),m=!Number(ot(o)),p=m?ke({version:i?.version}):Ce({className:"text-white",version:i?.version}),x=pe();return u(T,{className:`p-[50px] flex flex-col items-center font-sans bg-white ${e}`,...s,children:[t?h(R,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,u("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[h(Ut,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:r,label:l}),i?.text?h("button",{type:"submit",className:`w-full p-4 mt-6 ${p} `,disabled:m,...x(i),children:i.text}):null]})]})})),Ht=p((({className:e="",style:t,idx:l,activeIndex:n,observerOptions:r,children:i,onIntersection:s})=>{const o=S(a((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),r);return h("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(l===n),ref:o,children:i})})),Wt=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]"],Jt=p((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:n,gap:r=0,padding:i=0,snapAlign:o="snap-center",children:c,onVisibleItemsChange:d,onVisibleIndicesChange:m})=>{const u={sensitivity:1,rootRef:t},p=s([]),x=a(((e,t)=>{const l=[...p.current||[]];l[e]=t,p.current=l,d&&d(l),m&&m(Zt(l))}),[d,m]);return h("div",{className:`box-border overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...Yt(i),gap:`${r}px`},role:"list",ref:t,children:(g=(e,t)=>h(Ht,{className:`${o} ${n?Wt[n-1]:""}`,style:Yt(i/4),activeIndex:l,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})),Yt=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),Zt=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Kt=e=>e,qt=(e=Kt)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),Qt=(e=Kt)=>qt((t=>-e(t))),el=e=>t=>e.scrollWidth/t,tl=e=>(t,l)=>{e.scrollBy({left:l*el(e)(t),behavior:"smooth"})},ll=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const r=s(null),[i,o]=n([]),c=a((e=>{o((t=>{return(l=t)===(n=e)||Boolean(l&&n&&l?.length===n?.length&&l.every(((e,t)=>e===n[t])))?t:e;var l,n})),l&&l(e)}),[e]),[d,m]=i.length?[Qt()(i),qt()(i)]:[-1,-1],h=d>0,u=m<e-1,p=a((()=>{var l;r.current&&(t&&!h?(l=r.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):tl(r.current)(e,-1))}),[t,e,h]),x=a((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):tl(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},nl="absolute top-0 bottom-0 z-50 w-[84px]",rl="absolute top-1/2 z-50",al=p((({className:e="",itemCount:t,visibleItemCount:l,isBlur:n=!0,isCyclic:r=!1,...a})=>{const{blocks:i}=a.block||{},s=t||i?.length||0,[o,c]=ll({itemCount:s,isCyclic:r});return u(T,{className:`relative font-sans ${e}`,...a,children:[h(Jt,{containerRef:o,visibleItemCount:l,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:c.handleVisibleIndicesChange,children:k(a)}),(c.canScrollLeft||c.canScrollRight)&&n?u("div",{children:[h("div",{className:`${nl} left-0 bg-opacity-from-white`}),h("div",{className:`${nl} right-0 bg-opacity-to-white`})]}):null,il(c)]})}));al.childrenTypes=["CarouselCard","CarouselTariffsCard","CarouselLinks","CarouselProgramsCard"];const il=({scrollLeft:e,scrollRight:t,canScrollLeft:l,canScrollRight:n})=>u("div",{children:[l?h(We,{className:`${rl} left-8`,onClick:e}):null,n?h(Je,{className:`${rl} right-8`,onClick:t}):null]}),sl=p((({className:e="",title:t,icon:l,list:n=[],version:r="primary",...a})=>u(T,{className:`font-sans border border-main-stroke flex min-w-[536px] ${K[r]} ${e}`,...a,children:[u("div",{className:"w-[200px] min-w-[200px] self-end",children:[l?.icon?h(H,{image:q(l),asSVG:!0}):null,l?.src?h(H,{image:l}):null]}),u("div",{className:"p-8 pl-3 w-full",children:[t?h(R,{className:" mb-3.5",headingType:"h5",title:t}):null,n.length?h("div",{className:"flex flex-col gap-3",children:n?.map(ol)}):null]})]}))),ol=(e,t)=>u("div",{className:"break-words",children:[e.title?h("div",{className:"text-h6",children:e.title}):null,e.description?h("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),cl="absolute border border-solid border-main-stroke w-full h-full",dl={normal:"w-[1055px]",mini:"w-[398px]"},ml=p((({className:e="",button:t,description:l,title:n,version:r="normal"})=>h("section",{className:`flex pb-9 pl-12 ${dl[r]} ${e}`,children:u("div",{className:"relative w-full",children:[h("div",{className:`${cl} z-10 top-9 right-12 bg-green-dark`}),h("div",{className:`${cl} z-10 top-6 right-8 bg-green`}),h("div",{className:`${cl} z-10 top-3 right-4 bg-green-light`}),u("div",{className:"relative bg-white z-10 py-6 px-10 border border-solid border-green-light",children:[h(Le,{className:"!p-0",title:n,description:l,headlineVersion:"M",align:"center"}),t?h("div",{className:"mt-6",children:Be({button:t})}):null]})]})}))),hl="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",ul=p((({text:e,href:t="",target:l="",className:n=""})=>e?u("div",{className:`relative group cursor-pointer w-[328px] h-[82px] ${n}`,children:[u("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover:text-primary-main z-10",role:"link",href:t,target:l,children:[h("div",{className:"p-0.5",children:e}),h("div",{className:"w-6 h-6",children:h(H,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"24",height:"24",asSVG:!0})})]}),h("div",{className:`${hl} mx-1.5 mt-1.5`}),h("div",{className:`${hl} mt-3 mr-3`})]}):null)),pl=p((({className:e="",additionalDescription:t,description:l,links:n,title:r,...a})=>u(T,{className:`bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${e}`,...a,children:[u("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[h(Le,{title:r,as:"h1",description:l,align:"left",className:"p-0",bgColorHeadline:"secondary"}),t?h("div",{className:"pt-6",children:h(j,{children:t})}):null]}),n?.length?xl(n):null]}))),xl=e=>{const t=Math.ceil(e.length/12);return h(al,{className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,children:new Array(t).fill(null).map(((t,l)=>h("div",{className:"w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start",children:e.slice(12*l,12*(l+1)).map(((e,t)=>h(ul,{className:"m-1",...e},String(t))))},String(l))))})},gl=p((({className:e="",title:t,icon:l,isHighlighting:n,button:r,rows:a=[],...i})=>{const s=a.map(vl),o=s.slice(0,1),c=s.slice(1);return h(T,{className:`font-sans ${e}`,...i,children:u("div",{className:`relative bg-white border border-main-stroke min-w-[322px] p-8 ${bl(n)}`,children:[n?Nl():null,l?.src?h(H,{image:l}):null,t?h(R,{className:"text-primary-text text-center pt-2",headingType:"h5",title:t}):null,r?h($e,{className:"w-full mt-4",...r}):null,a?.length?h(L,{renderFoldableSection:({isUnfolded:e})=>u("div",{children:[o,h(_,{isUnfolded:e,children:c})]}),renderFoldButton:a.length>1?fl:null}):null]})})})),bl=e=>e?"mt-9 pt-[70px]":"mt-[70px] pt-9",fl=({isUnfolded:e,onToggle:t})=>u("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[h("div",{children:e?"Скрыть":"Подробнее о тарифе"}),h(A,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),vl=(e,t)=>u("div",{className:"py-5 border-b border-main-divider",children:[e?.title?h("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,e?.description?h("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null]},String(t)),Nl=()=>u("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:[h(A,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),h("div",{className:"text-center",children:"Хит"})]}),yl={black:"bg-black",white:"bg-white"},wl=p((({className:e="",title:t,description:l,image:n,price:r,button:a,colors:i})=>u("section",{className:`border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[n?.src?h(H,{className:"mb-5 flex justify-center",image:n}):null,t?h(R,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?h("div",{className:"text-m-light text-left mb-4",children:l}):null,i?.length?u("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[h("div",{className:"mr-1.5",children:"Доступные цвета: "}),i.map(kl)]}):null,r?u("div",{className:"text-h3 text-left",children:[r," ₽"]}):null,a?Be({button:a,buttonClassName:"mt-5 w-full"}):null]}))),kl=(e,t)=>h("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${yl[e]}`},String(t)),Cl="absolute top-0 bottom-0 w-[84px]",$l=p((({cards:e=[],className:t="",title:l,description:n,...r})=>{const[a,i]=Ge({itemCount:e?.length,visibleItemCount:3});return u(T,{className:`bg-white relative font-sans p-[50px] overflow-hidden text-center ${t}`,...r,children:[h(Le,{className:"!p-0",title:l,description:n,headlineVersion:"M",align:"center",...r}),h("div",{className:"flex duration-1000 gap-3.5 mt-8",style:{transform:`translateX(-${430*a}px)`},role:"list",children:e?.length?e.map(((e,t)=>h(wl,{...e},String(t)))):null}),Ye({...i,btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"}),h("div",{className:`${Cl} left-0 bg-opacity-from-white`}),h("div",{className:`${Cl} right-0 bg-opacity-to-white`})]})})),Sl="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Il="border-main-stroke border-solid border",Tl="border-main-divider border border-t-0 border-x-0",Bl="w-[200px] mr-6",Rl=p((({icon:e,image:t,title:l,link:n})=>u("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${Il} ${Sl}`,role:"columnheader",children:[e&&!t?.src&&h(H,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:q(e),width:"63",height:"63",asSVG:!0}),t?.src&&h(H,{className:"mb-[18px]",image:t}),l?h(R,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&h("div",{className:"mt-auto w-full",children:h($e,{href:n.href,target:n.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:h("div",{className:"text-xs-light font-medium py-[11px]",children:n.text})})})]}))),jl={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},Vl=p((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>h("div",{className:"flex flex-1 overflow-hidden",children:h("div",{className:jl[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),Ml=p((({children:e})=>h("div",{className:"self-start flex flex-col",role:"row",children:h("div",{className:"flex",children:e})}))),Ll=p((({colHeaders:e,activeIndex:t})=>u(Ml,{children:[h("div",{className:Bl,role:"columnheader"}),h(Vl,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>h(Rl,{...e},String(t))))})]}))),_l=p((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>h("div",{className:`w-80 box-border flex flex-col ${Il} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?Sl:""}`,role:"cell",children:h("div",{className:`mx-7 h-full ${Tl} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>Ol(e,t,n)))})}))),Dl=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),Al=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),Ol=({label:e,description:t},l,n)=>u("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?h("h4",{className:Dl(n),children:e}):null,t?h("div",{className:Al(n),children:t}):null]},String(l)),zl=(e=!1)=>`text-s py-7 ${Tl} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,El=p((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:r,isLastRow:a})=>u(Ml,{children:[e?.title?h("div",{className:zl(a),children:e.title}):null,t?.length?h(Vl,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>h(_l,{cell:e,isFirstRow:r,isLastRow:a,isFillGradient:n&&0===t},String(t))))}):null]}))),Fl=p((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:n})=>{const{isScrollAvailable:r}=n;return u("div",{className:"relative",children:[e.map(((e,n,{length:r})=>h(El,{row:e,isFirstRow:0===n,isLastRow:n+1===r,activeIndex:l,isColoredFirstColumn:t},String(n)))),r?Ye({...n,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),Pl=p((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:r})=>{const a=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),[o,c]=Ge({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return u("div",{children:[u("div",{role:"table",children:[a?.length?h(Ll,{colHeaders:a,activeIndex:o}):null,s?.length?h(Fl,{rowData:s,isColoredFirstColumn:r,activeIndex:o,controls:c}):null]}),d?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Ul=p((({className:e="",title:t,rowHeaders:l,columns:r,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!i),m=a((()=>d((e=>!e))),[]);return u(T,{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e}`,...o,children:[h(R,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),h(Pl,{columns:r,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?Xl({isShowAllRow:c,onClick:m}):null]})})),Xl=({isShowAllRow:e,onClick:t})=>h("div",{className:"pr-[50px]",children:u("div",{className:"flex w-full",children:[h("div",{className:Bl}),h("button",{onClick:t,className:"mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:h("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),Gl=p((({className:e="",contacts:t,info:l,version:n="secondary",...r})=>u(T,{className:`${K[n]} flex p-[50px] ${e}`,...r,children:[l?.length?Hl(l,n):null,t?.length?Hl(t,n):null]}))),Hl=(e,t)=>h("div",{className:"flex grow basis-0",children:e.map(((e,l)=>Wl({column:e,index:l,version:t})))}),Wl=({column:e,index:t,version:l})=>e?h("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:n,button:r},a)=>u("div",{className:"mt-6 first:mt-0",children:[h(Le,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"left",bgColorHeadline:l}),n?h("div",{className:"mt-1.5 opacity-80",children:h(j,{size:"text-m-light",children:n})}):null,r?h($e,{className:"mt-6",...r}):null]},String(a))))},`col-${String(t)}`):null,Jl=e=>"Image"===e?.errorContentType&&e?.image?h(H,{image:e.image}):"Code"===e?.errorContentType&&e.code?h("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,Yl=p((({className:e="",title:t,subtitle:l,error:n,button:r})=>u("section",{className:`flex flex-col justify-center items-center mt-12 ${e}`,children:[h("div",{className:"flex justify-center py-20",children:Jl(n)}),t?h(R,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?h("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,r?.text?h($e,{className:"py-4 px-9",version:r?.version,...r,children:r.text}):null]}))),Zl=p((({className:e="",title:t="",buttons:l,image:n,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}),l?h("div",{className:"mt-auto pt-8",children:l}):null]}),n]})]})));var Kl;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(Kl||(Kl={}));const ql=new Intl.NumberFormat("ru",{style:"currency",currency:Kl.RUB}),Ql=e=>e?ql.format(e):"",en="text-left text-m-light text-secondary-text",tn={USD:"DollarIcon",EUR:"EuroIcon"},ln=p((({className:e,exchangeCurrencyItems:t})=>u("table",{className:`h-fit w-fit ${e}`,children:[h("thead",{children:u("tr",{children:[h("th",{className:en,children:"Валюта"}),h("th",{className:`${en} pl-11`,children:"Купить"}),h("th",{className:`${en} pl-11`,children:"Продать"})]})}),h("tbody",{children:t.map(nn)})]}))),nn=e=>{const t=e?.currency?.currency;return u("tr",{className:"pb-1 text-h6",children:[h("td",{className:"pt-4",children:u("div",{className:"flex items-center",children:[t?h(H,{image:{icon:tn[t]},width:"24",height:"24"}):null,h("span",{className:"ml-2",children:t})]})}),h("td",{className:"pt-4 pl-11",children:Ql(e?.saleExchangeRate)}),h("td",{className:"pt-4 pl-11",children:Ql(e?.buyExchangeRate)})]},t)},rn=p((({className:e="",address:t})=>u("div",{className:`flex ${e}`,children:[h(H,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),u("div",{className:"ml-3",children:[t?h("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,h("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),an=(e,t,l)=>{const n=Number(sn(e))*Math.pow(t,l?-1:1);return Number.isInteger(n)?n:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(n)},sn=e=>e.replace(/[^\d.,]/g,"").replace(",","."),on=e=>{return(t=[[e=>e.value!==Kl.RUB&&e.oppositeValue!==Kl.RUB,()=>e.handleConvert(e.value,Kl.RUB)],[e=>e.value===Kl.RUB&&e.oppositeValue===Kl.RUB,()=>e.handleConvert(e.value,Kl.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function cn(e){const t=s(null);return r((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const dn=p((({className:e="",isBorder:t=!0,label:l,options:i=[],value:s,onChange:o,placeholder:c=""})=>{const[d,m]=n(i[0]||{key:"",text:""}),[p,x]=n(!1),g=cn(a((()=>x(!1)),[]));return r((()=>{m(s||{key:"",text:""})}),[s]),u("div",{className:`${e}`,ref:g,children:[l?h("span",{className:"mb-2 flex text-primary-text",children:l}):null,u("div",{className:"relative "+(p?"z-20":"z-10"),children:[u("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${un(t)}`,onClick:()=>x(!p),children:[h("p",{className:"p-4 pr-8 h-[56px] overflow-hidden text-ellipsis whitespace-nowrap",children:d?.text||c}),h(A,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(p?"":"rotate-180")})]}),i?.length?h("div",{className:`h-0 ${mn(p)}`,children:h("div",{className:"bg-white text-l max-h-[256px] overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:i.map(hn((e=>{m(e),x(!1),o(e)}),p,(e=>Boolean(e.key===d.key))))})}):null]})]})})),mn=e=>e?"":"overflow-hidden",hn=(e,t,l)=>(n,r)=>u("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[h("span",{className:"min-h-6",children:n.text}),h(A,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",l(n)&&t?"":"hidden"].join(" ")})]},String(r)),un=e=>e?"border border-main-stroke rounded-md hover:border-primary-hover":"";function pn(e){const{placeholder:t,rates:l,selected:n,value:r,setValue:a,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return u("div",{className:"relative flex",children:[h(Pt,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:r,onChange:a}),s.length?h(dn,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const xn=p((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:r})=>{const[i,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Kl.RUB,selectBuy:l?.[0]?.currency?.currency||Kl.USD}),o=a((e=>s((t=>({...t,...e})))),[]);return u("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[pn({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:gn(i,o,l),value:i.inputSell,setValue:e=>fn(o,l)(e,i.selectSell,i.selectBuy)}),pn({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:bn(i,o,t),value:i.inputBuy,setValue:e=>vn(o,t)(e,i.selectBuy,i.selectSell)}),r?.text?h($e,{className:"py-4 mr-1",version:r?.version,...r,children:r.text}):null]})})),gn=(e,t,l)=>n=>{t({selectSell:n}),on({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,r=e.selectBuy)=>{fn(t,l)(e.inputSell,n,r)}})},bn=(e,t,l)=>n=>{t({selectBuy:n}),on({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,r=e.selectSell)=>vn(t,l)(e.inputBuy,n,r)})},fn=(e,t)=>(l,n,r)=>{e({inputSell:sn(l),selectBuy:r});const a=t.find((e=>e.currency?.currency===r))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;a&&e({inputBuy:String(an(l,a,n===Kl.RUB)||"")})},vn=(e,t)=>(l,n,r)=>{e({inputBuy:sn(l),selectSell:r});const a=t.find((e=>e.currency?.currency===r))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;a&&e({inputSell:String(an(l,a,n===Kl.RUB)||"")})};const Nn=async e=>{const t=await yn(),l=t?.code||"000";return{region:t,exchangeRates:await wn(e,l)}},yn=async()=>{try{return await bt("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},wn=async(e,t)=>{try{return await bt(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},kn=p((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:r}=function(){const{data:e}=pt("/api/v1/exchangerates",Nn);return e||{}}(),a=Cn(r?.exchangeRate?.currencies),i=a.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:Kl.RUB}});const s=a.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Kl.RUB}}),h(T,{className:`bg-white text-primary-text font-sans p-9 box-border min-h-[320px] ${e}`,...n,children:h(Zl,{title:h(R,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:u("div",{className:"flex",children:[u("div",{className:"mr-14 pt-4",children:[a?h(ln,{className:"mb-[30px]",exchangeCurrencyItems:a}):null,h(rn,{address:r?.address})]}),a.length&&i.length&&s.length?h(xn,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),Cn=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[];function $n(e,t={}){const{data:l}=pt(`/wcms-resources/${e}.json`,bt,{fallback:t});return l||{}}const Sn={"bg-white":"color",transparent:"white"},In={"bg-white":"text-primary-main",transparent:"text-white"},Tn={"bg-white":"text-primary-text",transparent:"text-white"},Bn=p((({className:e="",href:t,logo:l,children:n=l?.title,targetBlank:r,bgColor:a="bg-white",showTitle:i=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:r?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[h(H,l?.image?.src?{image:l.image,className:In[a],width:"40",height:"45",asSVG:!0}:{image:{icon:l?.image?.icon||"LogoIcon",iconVersion:Sn[a]},className:`${In[a]} w-10`,width:"40",height:"45",asSVG:!0}),i?Rn(n,a,l?.title):null]}))),Rn=(e,t,l)=>h("span",{className:`${Tn[t]} font-medium ml-2.5`,children:e||l||"Россельхозбанк"}),jn=p((({className:e,isMobile:t=!1})=>{const{term:l,setTerm:r}=(()=>{const[e,t]=n("");return{term:e,setTerm:e=>t(e)}})(),a=t?"text-s":"text-l-light",i=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(H,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${a}`,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 ${i}`,value:l,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(H,{image:"CloseIcon",width:"24",height:"24"})}):h($e,{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:"Найти"})})]})})),Vn=p((e=>h(jn,{...e}))),Mn=p((({className:e="",items:t,hasButton:l})=>u("div",{className:e,children:[t?.length?t.map(Ln):null,l?h($e,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Ln=(e,t)=>{const{type:l,text:n,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:_n(l,n)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},_n=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Dn(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})}},Dn=e=>e.replaceAll(/\D/g,""),An=p((({className:e="",index:t,text:l,...n})=>{const r=pe(),{href:a,target:i,onClick:s}=r(n);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:i,onClick:s,children:l||`Документ ${t}`})})),On=p((({className:e="",links:t})=>h("div",{className:e,children:t?.length?h("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>h(An,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),zn=e=>t=>e?.href===t?.href,En=(e,t)=>{return(n=e,r=t,(n||[]).map((e=>r?.find(zn(e))||e))).concat((l=e,(t||[]).filter((e=>!l?.find(zn(e))))));var l,n,r},Fn=p((({className:e="",items:t,fallback:l})=>{const n=pe(),r=$n(c.SITEMAP||"sitemap",l),a=En(r.topItems,t);return h("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:a?.map(((e,t)=>Pn(n(e),t)))})})),Pn=(e,t)=>{const{text:l,items:n,href:r,target:a,onClick:i}=e;return u("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[h("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:r,target:a||"_self",onClick:i,children:l||`Раздел ${t}`}),n?.map(((e,t)=>h(Un,{...e,index:t},String(t))))]},String(t))},Un=p((({text:e,index:t,...l})=>{const n=pe(),{href:r,target:a,onClick:i}=n(l);return h("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:r,target:a||"_self",onClick:i,children:e||`Раздел ${t}`})})),Xn=[{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"}],Gn=p((({version:e="primary",...t})=>{const l=pe(),{href:n,onClick:r}=l(t),{icon:a,label:i}=Xn.find((({origins:e})=>e.some((e=>n?.includes(e)))))||{};if(!a)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:n,"aria-label":i,target:"_blank",rel:"noopener noreferrer",onClick:r,children:a?h(H,{image:q(a),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Hn=p((({className:e="",media:t,version:l,children:n})=>u("div",{className:"font-sans",children:[h("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>h(Gn,{version:l,...e},String(t))))}),h("span",{className:"text-s-light text-secondary-text",children:n})]}))),Wn=p((({className:e="",index:t,...l})=>{const n=pe(),{href:r,target:a,text:i,onClick:s}=n(l);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:a,onClick:s,children:i||`Документ ${t}`})})),Jn=p((({className:e="",links:t})=>u("div",{className:e,children:[h("div",{className:"pt-5",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 justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>h(Wn,{index:t,...e},String(t))))}):null]}))),Yn="w-[204px]",Zn=p((({className:e,...t})=>{const l=t.options?.page?.fallback,{documents:n,relatedEnterprises:r,contacts:a,socialMedia:i,mobileApps:s,topItems:o}=$n(c.FOOTER||"footer",l);return u(T,{tag:"footer",className:`p-9 bg-white font-sans ${e||""}`,...t,children:[u("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[h(Bn,{className:Yn}),h(Vn,{className:"grow"})]}),u("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[u("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[h(Mn,{items:a,hasButton:!0}),h(Hn,{media:i,children:"Соцсети"}),h(Hn,{className:"mt-6",media:s,children:"Мобильное приложение"})]}),h(Fn,{className:"pt-[3px]",items:o,fallback:l})]}),h(On,{className:"mt-[98px]",links:r}),h(Jn,{links:n})]})})),Kn={normal:3,mini:4},qn={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Qn={normal:380,mini:276},er={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},tr={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"},lr=p((({className:e="",isDotted:t=!0,children:l,version:n="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 ${er[n]} ${tr[r]}`})}):null,h("span",{children:l})]}))),nr={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},rr={S:"text-l-light",M:"text-h6",L:"text-h5"},ar={S:"ml-2",M:"ml-3",L:"ml-4"},ir=p((e=>{const{className:t="",hasIndent:l,isDotted:n,itemClassName:r="",items:a,listItemSize:i="M",version:s="primary"}=e;return a?.length?h("section",{className:`${nr[s]} ${rr[i]} ${t} ${l?ar[i]:""}`,role:"list",children:a.map(((e,t)=>h(lr,{className:`${r} mb-1.5`,isDotted:n,version:s,size:i,children:e},String(t))))}):null})),sr=p((({title:e,headlineSmallVersion:t="H6",description:l,additionalDescription:n,icon:r,items:a,button:i,version:s,isDotted:o=!0,align:c="center"})=>u("div",{className:`h-full flex flex-col justify-between ${C[c]}`,children:[u("div",{className:"flex flex-col h-full",children:[or(r,s),cr(t,e),dr(l,e),a?.length?hr(a,o,s):null,mr(n)]}),i?.text?Be({button:i,buttonClassName:"mt-6"}):null]}))),or=(e,t)=>u("div",{className:"flex justify-center",children:[e?.src?h(H,{className:"mb-5",image:e}):null,e?.icon?h(H,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:q(e,t),asSVG:!0}):null]}),cr=(e,t)=>t?h("div",{className:Me[e],children:t}):null,dr=(e,t)=>e?h("div",{className:"text-l "+(t?"mt-2":""),children:e}):null,mr=e=>e?h("div",{className:"text-m-light text-secondary-text mt-auto",children:e}):null,hr=(e,t,l="primary")=>h(ir,{className:"max-w-[308px] mt-2 text-s "+("primary"===l?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:l}),ur=p((({headlineVersion:e="M",cards:t=[],version:l="normal",activeIndex:n,...r})=>u("div",{children:[h(Le,{...r,className:"!p-0",headlineVersion:e,align:"center"}),h("div",{className:`flex mt-8 ${t?.length<=Kn[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${n*Qn[l]}px)`},role:"list",children:t?.map(((e,t)=>function({card:e,version:t},l){return h("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${qn[t]} ${K[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:h(sr,{...e})},String(l))}({card:e,version:l},t)))})]})));const pr=p((({cards:e=[],className:t="",version:l="normal",button:n,...r})=>{const[a,i]=Ge({itemCount:e?.length,visibleItemCount:Kn[l]}),{isScrollAvailable:s}=i;return u(T,{className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden flex flex-col ${t}`,...r,children:[h(ur,{cards:e,version:l,activeIndex:a,...r}),Ye({...i,btnClass:["left-8","right-8"],className:"top-1/2"}),s?u("div",{children:[h("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),h("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]}):null,n?Be({button:n,buttonClassName:"mt-8 mx-auto"}):null]})})),xr=p((e=>h(pr,{...e,version:"normal"}))),gr=p((({className:e="",title:t,description:l,calendar:n,...r})=>u(T,{className:`font-sans bg-white p-[50px] ${e}`,...r,children:[h(Le,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M",align:"center",...r}),n?br(n):null]}))),br=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return u("div",{className:"w-full flex flex-col justify-center mt-13",children:[h("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>fr(e,t)))}),h("div",{className:"flex w-full",children:l.map(((e,t)=>u("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[h("div",{className:"flex",children:vr(e)}),u("div",{className:"text-s-light text-primary-text mt-3",children:[h("span",{children:e.text})," ",h("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},fr=(e,t)=>e.month?.map(((e,l)=>h("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),vr=e=>e.month?.map((e=>e.image?.src?h("div",{className:"h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:h(H,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Nr=(e,t,l=((e,t)=>t.startsWith(e)))=>l(oe(e),oe(se(e)?t.href:t.pathname)),yr=e=>t=>Nr(t.href,e),wr=e=>t=>t.items?.some(yr(e))||Nr(t.href,e)||((e,t)=>ce(e)===ce(t.href))(t.href,e),kr="font-sans text-s-light",Cr=p((({className:e="",active:t,flat:l,ariaLabel:n,bgColor:r="bg-white",children:a,...i})=>{const s=pe(),{href:o,target:c,text:d,onClick:m}=s(i);return h("a",{className:`${$r(r,t,l)} ${e}`,href:o,target:c,onClick:m,rel:"noopener noreferrer","aria-label":n,children:h("span",{className:Sr(r,t,l),children:d||a})})})),$r=(e,t=!1,l=!1)=>{let n="border-transparent";return t&&(n="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${n} inline-block border border-solid bg-transparent text-center no-underline ${l?"":"px-4 py-2"}`},Sr=(e,t=!1,l=!1)=>{if("transparent"===e)return`text-white hover:text-primary-hover ${kr}`;return`${t?"text-primary-main":(l?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${kr}`},Ir=o("https://10.80.4.9");const Tr=p((({className:e="",children:t,ariaLabel:l})=>h("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":l,children:t}))),Br={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},Rr={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},jr={"bg-white":"black",transparent:"white"},Vr=p((({className:e,officesLink:t,defaultLocation:l="Москва",bgColor:i="bg-white"})=>{const[s,o]=function(e){const[t,l]=n(e);return r((()=>{l(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,a((()=>{Ir.getFetcherAddress().then((t=>{const n=t||e;globalThis?.localStorage.setItem("location",n),l(n)}))}),[e])]}(l);return u("div",{className:`flex items-center ${e||""}`,children:[h(Cr,{className:"mr-5",flat:!0,href:"#",text:s,ariaLabel:"Местоположение",onClick:o,bgColor:i}),t?h(Cr,{className:"mr-7",flat:!0,href:t,text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:i}):null,h(Tr,{className:`mr-5 group ${Br[i]}`,ariaLabel:"Поиск по сайту",children:h(H,{image:{icon:"LoupeIcon",iconVersion:jr[i]},className:"h-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0 pointer-events-none",asSVG:!0})}),h(Tr,{className:`${Rr[i]} group min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:h(H,{image:{icon:"GridIcon",iconVersion:jr[i]},className:"h-full bg-main-divider/20 rounded-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0",asSVG:!0})})]})})),Mr={"bg-white":"bg-primary-text",transparent:"bg-white"},Lr=p((({className:e,items:t,activeItem:l,bgColor:r})=>{const i=pe(),[s,o]=n(!1),c=a((()=>o((e=>!e))),[]),d=cn(a((()=>o(!1)),[]));return u("div",{className:`${s?"bg-white rounded-md shadow-blue-gray/24":""} ${e||""}`,ref:d,children:[h("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6","aria-label":""+(s?"Скрыть другие разделы":"Показать другие разделы"),onClick:c,children:Array(3).fill(r).map(_r)}),h("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(s?"":"hidden"),"aria-hidden":!s,children:t?.map(((e,t)=>h("a",{className:"text-l-light pb-4 hover:text-primary-main "+(e===l?"text-primary-main":""),...i(e),children:e.text},e.href||String(t))))})]})})),_r=(e,t)=>h("div",{className:`w-[3px] h-[3px] rounded mr-1 ${Mr[e]}`},String(t)),Dr="absolute left-0 -bottom-3 w-full h-[2px]",Ar=p((({className:e="",active:t,bgColor:l="bg-white",dataItemName:n,children:r,...a})=>{const i=pe(),{href:s,target:o,text:c,onClick:d}=i(a);return u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:s,target:o,"data-item-name":n,onClick:d,children:[h("span",{className:Or(l,t),children:c||r}),t?h("div",{className:zr(l,t)}):null]})})),Or=(e,t=!1)=>{let l="text-white";return"bg-white"===e&&(l=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${l} font-sans text-l-light`},zr=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Dr}`:Dr,Er=p((({className:e,active:t,bgColor:l,observerOptions:n,onVisibilityChange:r,children:i,...s})=>{const o=S(a((e=>{if(!e.length||!r)return;const t=e[e.length-1];r(t.isIntersecting)}),[r]),n);return h("span",{ref:o,children:h(Ar,{className:e,active:t,bgColor:l,...s,children:i})})})),Fr=p((({subItems:e=[],bgColor:t})=>{const l=(e=>(t=[])=>{const l=t?.filter(yr(e));return l?.length?qt((e=>e.href?.length||0))(l):void 0})(ue())(e),[r,a]=n(e.length),o=e.slice(r),c=s(null),d={rootRef:c},m=i((()=>e.map(((e,t)=>e=>{a(e?Pr(t):Ur(t))}))),[e]);return u("nav",{className:"relative mt-6",children:[h("div",{ref:c,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,n)=>h(Er,{className:"mr-8 "+(r-1<n?"invisible":""),active:e===l,bgColor:t,observerOptions:d,onVisibilityChange:m[n],...e},String(n))))}),o.length?h(Lr,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:o,activeItem:l,bgColor:t}):null]})})),Pr=e=>t=>Math.max(t,e+1),Ur=e=>t=>Math.min(t,e),Xr={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Gr=p((({bgColor:e="bg-white",className:t="",showSubMenu:l=!0,...n})=>{const r=ue(),{topItems:a,logo:i,defaultLocation:s,officesLink:o}=$n(c.SITEMAP||"sitemap",n.options?.page?.fallback),d=l?Hr(a,r):null,m=a?.map(((t,l)=>h(Cr,{active:t===d,"aria-label":t.text,bgColor:e,...t},String(l))));return h(T,{tag:"header",className:`pt-6 px-20 ${e} ${t} ${l&&d?.items?.length?"pb-4":"pb-5"}`,...n,children:u("div",{className:"container",children:[u("div",{className:"flex items-center",children:[h(Bn,{className:"mr-8",bgColor:e,logo:i}),m,h(Vr,{className:"ml-auto",defaultLocation:s,officesLink:o,bgColor:e})]}),h("div",{className:`mt-6 h-[1px] ${Xr[e]}`}),l&&d?.items?.length?h(Fr,{subItems:d.items,bgColor:e}):null]})})})),Hr=(e,t)=>{const[l]=e||[];return e?.find(wr(t))||l},Wr=p((({className:e="",cards:t=[],button:l})=>{const[r,i]=n(0),s=a((e=>i(e)),[]),o=t.length,[c,d]=Ge({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:p}=d,x=t[c]?.href;return u("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[u("div",{className:"relative overflow-hidden",children:[o?Jr({activeIndex:c,cards:t,selectedCardIndex:r,onClick:s}):null,Ye({...d,btnClass:["left-[50px]","right-[50px]"],className:"top-[62px]"}),m?h("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,p?h("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),h($e,{className:"w-[240px] text-center",version:"primary",...l,href:x})]})}));function Jr({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const r=460*e,a=t.length>2?"justify-start":"justify-center";return h("div",{style:{transform:`translateX(-${r}px)`},className:"duration-1000 px-[50px]",children:h("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${a}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return u("button",{type:"button",onClick:n,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue/42 border-primary-main":"ease-in duration-300 border-main-stroke"),children:[e?.icon?h(H,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,u("div",{className:"flex gap-3.5",children:[e?.sum?Yr("страховая сумма",e.sum):null,e?.fee?Yr("страховой взнос",e.fee):null]}),Zr(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function Yr(e,t){return u("div",{className:"flex flex-col text-left whitespace-pre",children:[u("span",{className:"text-h6",children:[Ze(t)," ₽"]}),h("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Zr(e){return e?h(H,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:"DoneIcon",width:"24",height:"24"}):null}const Kr=p((({className:e="",title:t,insuranceTabs:l=[],button:r,...a})=>{const[i,s]=n(0);return u(T,{className:`box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${e}`,...a,children:[t?h(R,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?h("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,activeSlideIndex:l,onClick:n}){return h("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(t===l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,activeSlideIndex:i,onClick:()=>s(t)})))}):null,h("div",{className:"flex",style:{transform:`translateX(-${i}00%)`},role:"list",children:qr({insuranceTabs:l,button:r})})]})})),qr=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>h(Wr,{button:t,cards:e},String(l)))):null};const Qr={primary:"border-main-stroke",secondary:"border-white/50"},ea={double:"flex gap-y-2 gap-x-10 flex-wrap",single:"flex gap-y-2 flex-col"},ta=p((({className:e="",columnsMode:t="double",description:l,additionalDescription:n,image:r,cardList:a,title:i,version:s="primary"})=>{const o=i?h(R,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=r?.src?h(H,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return h("section",{className:`relative overflow-hidden text-left border border-solid box-border\n p-9 min-w-[697px] min-h-[319px]\n ${Qr[s]}\n ${e}`,role:"listitem",children:h(Zl,{className:"flex justify-between",title:o,image:c,children:u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex itens-center justify-between mb-4",children:[l?h("span",{className:"text-h6",children:l}):null,n?u("span",{className:"text-m-light text-secondary-text",children:[" ",n," "]}):null]}),a?.length?h("div",{className:`${ea[t]}`,role:"list",children:la(a,t)}):null]})})})})),la=(e,t)=>e.map(((e,l)=>{return u("div",{className:"double"===t?"basis-[calc(50%-20px)]":"",role:"listitem",children:[e?.parameter?h("span",{className:"pr-2.5 "+(n=t,"single"===n?"text-h6":"text-l"),children:e.parameter}):null,e?.parameterDesccription?h("span",{className:"text-m-light text-secondary-text",children:e.parameterDesccription}):null]},String(l));var n})),na="absolute top-0 bottom-0 w-[84px]",ra=p((({cards:e=[],className:t="",title:l,version:n="primary",...r})=>{const[a,i]=Ge({itemCount:e.length,visibleItemCount:1});return u(T,{className:`relative font-sans p-9 overflow-hidden text-center ${K[n]} ${t}`,...r,children:[l?h(R,{headingType:"h3",className:"mb-9",title:l}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${710*a}px)`},role:"list",children:e?.length?e.map(aa(t,n)):null}),Ye({...i,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),h("div",{className:`${na} left-0 ${"secondary"===n?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${na} right-0 ${"secondary"===n?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),aa=(e,t)=>(l,n)=>h(ta,{className:e,version:t,...l},String(n));function ia(e){return t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:n},l):[l]),[])}const sa={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},oa={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},ca=p((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:r,investmentColumns:a,...i}=e,s=a?[...a]:[];return r&&s.unshift(r),h(T,{className:`font-sans bg-white px-9 py-12 ${t}`,...i,children:u("div",{className:"container text-m-light",children:[s?.length?u("div",{children:[u("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[ia(h("div",{className:"w-px h-4 bg-main-stroke"}))(s.map(da)),h("div",{className:"absolute right-[30px] w-px h-4 bg-main-stroke"})]}),h("div",{className:"border-t border-main-stroke -mt-2 ml-9 mr-8"}),h("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(ua)})]}):null,l?.length?h(ir,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:n}):null]})})})),da=(e,t,l)=>{const n=1===t,r=t===l.length-1;return h("div",{className:`${ma(n,r,e.cells)}`,children:e.cells?.length?h("div",{className:"w-full "+(r?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(ha)}):null},`column_${t}`)},ma=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-2.5",l.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),ha=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?h("div",{className:`flex-1 flex items-center justify-center relative py-2 ${oa[l]} ${sa[n]} ${"XS"===l?"px-3":"px-11"}`,children:h("div",{className:"text-center",children:e.text})},`cell_${t}`):null},ua=(e,t,l)=>{const n=0===t,r=t===l.length-1;return h("div",{className:`flex-1 max-w-[180px] text-center px-2 ${n?"pl-9":""} ${r?"mr-3.5":" "}`,children:e.title},`title_${t}`)},pa=p((({className:e,iconClassName:t,textClassName:l,suffixClassName:n,doc:r,icon:a})=>{const{text:i,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[a?h(H,{className:t,image:q(a),width:"24px",height:"24px",asSVG:!0}):null,i?u("span",{className:l,children:[i,h("span",{className:n,children:o?.href&&xa(ga(o.href),s)})]}):null]})})),xa=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),ga=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},ba=p((({className:e="",doc:t,icon:l})=>h(pa,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:l}))),fa=p((({className:e,documents:t,columnsMode:l="double",icon:n})=>t?.length?h("div",{className:e,role:"list",children:t.map(((e,t)=>h("div",{className:"double"===l?"basis-[calc(50%-20px)]":"",role:"listitem",children:h(ba,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:n})},String(t))))}):null)),va={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},Na=p((({className:e="",title:t,description:l,align:n="center",documents:r,icon:a={icon:"DocIcon"},columnsMode:i="double",...s})=>u(T,{className:`font-sans text-primary-text p-[50px] bg-white ${e}`,...s,children:[h(Le,{className:"!p-0",title:t,description:l,align:n,headlineVersion:"M",as:"h2",...s}),h(fa,{className:`mt-8 ${va[i]}`,columnsMode:i,documents:r,icon:a})]}))),ya=p((e=>h(pr,{...e,version:"mini"}))),wa=e=>{const t="col-span-",l=e.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function ka(e=""){const t=wa(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Ca=p((({className:e="",title:t="Мобильное приложение",qr:l,buttons:n,version:r="primary",items:a,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="primary"===r?"text-primary-text":"",p="secondary"===r?"p-3.5 min-w-[120px]":"min-w-[92px]",x=n?.map((e=>({...e,className:"min-w-[168px]"})));return u(T,{className:`flex justify-between font-sans p-[50px] box-border relative min-h-[320px]\n ${ka(e)}\n ${K[r]}\n ${e}`,...d,children:[u(Zl,{className:"z-10",title:t?h(R,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full\n ${m} ${C[o]}`}):null,buttons:n?.length?h(Te,{buttons:x,className:"flex gap-4 mt-8",...d}):null,children:[Sa(c),u("div",{className:"flex flex-1 items-center mb-3",children:[l?.src?h("div",{className:`flex justify-center mr-5 bg-white rounded-md ${p}`,children:h(H,{className:"w-fit",image:l})}):null,$a(r,a)]})]}),i?.src?h("div",{className:"absolute right-0 bottom-0",children:h(H,{image:i})}):null]})})),$a=(e,t)=>t?.length?h(ir,{items:t,itemClassName:"text-l-light mb-2 last:mb-0",version:e}):h("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Sa=e=>e?h("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null;function Ia(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),r=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),a=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));r.add(a),t.geoObjects.add(r),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Ta={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},Ba=e=>h("a",{className:`select-none cursor-pointer px-9 h-12 bg-white bg-primary-main text-white ${Object.values(Ta).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Ra={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},ja=(e,t,l)=>u("div",{className:`${Object.values(Ra).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[h(A,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),h("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const n=t.target?.value?t.target?.value.toLowerCase():"";if(n){const t=e.filter((e=>e.text.toLowerCase().indexOf(n)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),Va={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},Ma=(e,t,l)=>h("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(Va).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:h(A,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),La=e=>globalThis[e];const _a=()=>function(e,t){const[l,i]=n(),s=a((()=>i(La(e))),[e]);return r((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!La(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY}&lang=ru_RU`),Da={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},Aa=p((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return h("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(Da).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:h(A,{name:l,width:"20",height:"16"})})})),Oa=[{coords:[55.77,37.46],text:"Трактир"},{coords:[55.66,37.48],text:"Трактор"},{coords:[55.65,37.42],text:"Ресторан"},{coords:[55.64,37.54],text:"Музей"},{coords:[55.54,37.52],text:"Библиотека"},{coords:[55.53,37.56],text:"Школа"},{coords:[55.61,37.61],text:"Аптека"},{coords:[55.8,37.58],text:"Бар"},{coords:[55.71,37.35],text:"Институт"},{coords:[55.74,37.57],text:"Университет"},{coords:[55.58,37.69],text:"Больница"},{coords:[55.57,37.7],text:"Цирк"},{coords:[55.55,37.64],text:"Магазин"},{coords:[55.5,37.75],text:"Булочная"},{coords:[55.81,37.73],text:"Полиция"},{coords:[55.73,37.68],text:"Салон красоты"},{coords:[55.86,37.76],text:"Баня"},{coords:[55.38,37.69],text:"Гараж"},{coords:[55.91,37.5],text:"Дом"},{coords:[55.62,37.32],text:"Прачечная"},{coords:[55.85,37.41],text:"Стадион"},{coords:[55.67,37.24],text:"Вокзал"},{coords:[55.79,37.41],text:"Кафе"}],za={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-focus focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},Ea=p((({points:e,className:t="",zoom:l=5,showSearchField:a=!1})=>{const i=s(null),o=_a(),[c,d]=n(),[m,p]=n(Xa(Oa)),x=Fa(e);if(r((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:x,zoom:l,controls:[],suppressMapOpenBlock:!0}),Ia(o,i.current,m)}))}),[o,i,m]),r((()=>{if(i.current&&m&&o){const e=m.length<1?Xa(Oa):m;Ia(o,i.current,e)}}),[i,m,o]),!o)return null;const g=c?"z-[100000]":"z-10";return u("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[h("div",{className:`absolute flex left-2 top-4 w-[50%] ${g}`,children:a?ja(Oa,0,(e=>{if(e){const t=Xa(e);p(t)}})):Ba(x)}),h("div",{className:`${Object.values(za).join(" ")} ${g} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;c?e.exitFullscreen():e.enterFullscreen(),d(e.isFullscreen())},children:h(A,{name:"FullScreenIcon",width:"16",height:"16"})}),u("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${g}`,children:[h(Aa,{yandexMaps:i}),h(Aa,{yandexMaps:i,direction:"out"})]}),Ma(i.current,o,`right-2 top-80 ${g}`)]})})),Fa=e=>[Ua(Pa(e,0)),Ua(Pa(e,1))],Pa=(e,t)=>e.map((e=>e[t])),Ua=e=>e.reduce(((e,t)=>e+t))/e.length,Xa=e=>e?e.map((e=>e.coords)):null,Ga=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],Ha=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?u("div",{className:"flex",children:[h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-golden border-golden",children:e?n:null})]}):h("div",{className:"flex",children:h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},Wa=({icon:e,title:t,distance:l,time:n},r)=>u("div",{className:"flex mr-4",children:[h(A,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?u("span",{className:"text-m",children:[t," "]}):null,u("span",{className:"text-m-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${r}`),Ja=({title:e,status:t,workTime:l,lunchHour:n,description:r},a)=>u("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[u("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[h("div",{children:e}),t?null:h("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?h("div",{children:l}):null]}),t&&n?Ya(n):null,r?h("div",{className:"pb-1 text-s-light text-secondary-text",children:r}):null]},`day${a}`),Ya=e=>/\d+/gi.test(e)?u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[h("div",{children:"Перерыв"}),h("div",{children:e})]}):h("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:h("div",{children:e})}),Za={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};const Ka=e=>e?gt(e,{method:"GET"}):{},qa=p((({className:e=""})=>{const t=function(e){const{data:t}=pt(e?`/api/v1/branches?regionCode=${e}`:void 0,Ka);return console.warn("WARNING!!! Hook useOfficeMap RETURN MOCK object for testing!"),console.log("Hook useOfficeMap get this data:",t),Za}("000"),{name:l,address:n,gpsLatitude:r,gpsLongitude:a,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:p,workingSunday:x}=i,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:v}=i,N=r&&a?[r,a]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:b},{title:"Суббота",status:p,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),k=w>0?y[w-1]:y[6];return u("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[u("div",{className:"flex flex-col px-12 pt-12",children:[u("div",{className:"flex justify-between",children:[h("div",{className:"text-h2",children:l}),Ha(k)]}),u("div",{className:"flex text-l-light pt-4",children:[h(A,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),n]}),h("div",{className:"flex pt-4",children:Ga.map(Wa)})]}),u("div",{className:"flex justify-between pt-8",children:[h("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?h(Ea,{points:[N],className:"h-full"}):null}),h("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(Ja)})]})]})})),Qa=p((({className:e="",title:t,servicesList:l,...n})=>u(T,{className:`font-sans bg-white p-8 flex flex-col ${e}`,...n,children:[t?h(R,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?h("ul",{className:"list-none m-0 p-0",children:l.map(ei)}):null]}))),ei=(e,t)=>u("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?h(H,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:q(e.icon)}):null,e.label?h("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),ti=p((({className:e="",...t})=>h(T,{className:`font-sans text-primary-text ${e}`,...t,children:k(t)})));ti.childrenTypes=["OtherProductsItem"];const li=p((({className:e="",label:t,icon:l,dataTheme:n="",onClick:r})=>u("button",{className:["border border-transparent bg-primary-main font-sans text-white cursor-pointer","hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none","flex justify-center w-full px-0 py-5",e].join(" "),"data-theme":n,onClick:r,children:[h("span",{className:"text-h4 pr-3",children:t}),l?h(H,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),ni=({isUnfolded:e,onToggle:t})=>h(li,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),ri=["ArrowDownIcon","ArrowUpIcon"],ai=p((({className:e,label:t="",isUnfolded:l,...n})=>{const{colorPalette:r}=function(e,t){const{content:l}=function(e){return e?.parent||{}}(e);return l||t}(n.options,{});return h("div",{className:`border-0 border-b border-solid border-main-divider ${e}`,children:h(L,{unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(_,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:k(n)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>h(li,{label:t,icon:ri[Number(e)],dataTheme:r||n.options?.page?.colorPalette,onClick:l})})})}));ai.childrenTypes=[];const ii={primary:"text-primary-text",secondary:"text-white"},si={primary:"text-secondary-text",secondary:"text-white"},oi=p((e=>{const{className:t="",icon:l,label:n,description:r,version:a="primary",benefitsVersion:i="normal"}=e,s="white"===i?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[l?h("div",{className:ci(a,i),children:h(H,{className:"w-6 h-6",image:q(l,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[n?h("div",{className:`text-h6 ${ii[a]}`,children:n}):null,r?h("div",{className:`text-m-light ${si[a]}`,children:r}):null]})]})}));function ci(e,t){let l="bg-primary-main text-black";return"secondary"===e?l="bg-white/30 text-black":"normal"===t&&(l="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 ${l}`}const di=p((({className:e="",title:t,description:l,image:n,benefits:r,version:a="primary",sum:i,monthLimit:s,directionRight:o=!1,...c})=>u(T,{className:`relative font-sans py-12 px-24 ${K[a]} ${e}`,...c,children:[h(Le,{className:"!p-0",title:t,description:l,headlineVersion:"M",bgColorHeadline:a,align:"center",...c}),u("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[n?.src?h(H,{className:o?"order-2":"",image:n}):null,u("div",{className:"w-[558px] m-auto",children:[r?.length?h("div",{className:"flex flex-col gap-4",children:r.map(mi(a))}):null,hi(Number(i),Number(s))]})]})]}))),mi=e=>(t,l)=>h(oi,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));function hi(e,t){return e||t?u("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?ui("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?ui("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function ui(e,t=0,l=!1){return u("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[h("span",{className:"text-secondary-text text-l-light",children:e}),u("span",{className:"text-primary-main text-h6",children:[Ze(t)," ₽"]})]})}function pi(e=""){const t=wa(e);return t<=4?"S":t<=8?"M":"L"}function xi(e=""){const t=wa(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const gi=p((({className:e,title:t,description:l="Блок в разработке...",...n})=>u(T,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${xi(e)} ${ka(e)} `,...n,children:[h(Le,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:pi(e),...n}),h("figure",{className:"m-0 min-w-[80%]",children:bi()})]}))),bi=(e=3)=>vi(100,e).map((e=>Math.floor(e))).map(fi),fi=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),vi=(e,t)=>[e].concat(t>0?vi(e/1.618,t-1):[]),Ni=p((({className:e="",children:t,...l})=>{const n=pe(),{text:r,href:a,target:i,onClick:s}=n(l);return a?h("a",{className:`no-underline ${e}`,href:a,target:i,onClick:s,children:h("span",{className:e,children:r||t})}):h("span",{className:e,children:r||t})})),yi=(e="primary",t="normal")=>({icon:l,label:n,description:r},a)=>h(oi,{icon:l,label:n,description:r,version:e,benefitsVersion:t},String(a)),wi=p((({className:e="",title:t,headlineVersion:l="L",description:n,benefitsCountOfRow:r=3,benefits:a,benefitsVersion:i,buttons:s,footnote:o,image:c,items:d,version:m="primary",isDotted:p=!0,textBlockClassName:x="",...g})=>{const b=a?.filter((e=>e.label))?.length,f=ki(r);return u("div",{className:`flex grow justify-between items-stretch h-full ${e}`,children:[u("div",{className:`flex flex-col ${x}`,children:[h(Le,{title:t,description:n,className:"!p-0 max-w-[600px]",bgColorHeadline:m,headlineVersion:l,align:"left",...g}),u("div",{className:"flex flex-col justify-between h-full",children:[u(Zl,{buttons:s?.length?h(Te,{buttons:s,className:"flex gap-4",...g}):null,children:[b?h("div",{className:f,children:a.map(yi(m,i))}):null,d?.length?h(ir,{className:"mt-5 text-h6",items:d,itemClassName:"mb-[7px]",version:m,isDotted:p}):null]}),o?h("p",{className:"text-m-light pt-12",children:o}):null]})]}),c?.src&&h(H,{className:"mt-[-50px]",image:c})]})})),ki=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function Ci(e,t,l){const{text:n,href:r,target:a,onClick:i}=e,s="primary"===t?"white":"black",o=e?.icon||{icon:"ArrowLeftIcon"};return u("div",{className:`flex items-center cursor-pointer ${l}`,onClick:i,children:[h($e,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:n,href:r,target:a,children:h(H,{className:"w-4 h-4",image:{...o,iconVersion:o.iconVersion||s},asSVG:!0})}),n?h("span",{className:"text-m",children:n}):null]})}const $i={primary:"text-secondary-text",secondary:"text-white/80"},Si=p((e=>{const{className:t="",breadcrumbs:l,backwardButton:n,version:r="primary",...a}=e,i="primary"===r?r:"white";return u(T,{className:`font-sans overflow-hidden p-[50px] flex flex-col box-border min-h-[454px] ${K[r]} ${t}`,...a,children:[n?.text?Ci(n,i,"mb-10 -mt-2.5"):null,l?.length?h("div",{className:"text-xs-light mb-6",children:ia(h("span",{className:`mx-2 ${$i[r]}`,children:"/"}))(l.map(((e,t)=>h(Ni,{className:$i[r],...e},String(t)))))}):null,h(wi,{version:r,...a})]})})),Ii={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},Ti=p((({className:e="",slides:t=[],version:l="primary",...r})=>{const a=t.map((e=>e.nav)),i=t.map((e=>e.productBlock)),[s,o]=n(0);return u(T,{className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 mb-6 ${e}\n ${K[l]}`,...r,children:[h("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${s}00%)`},role:"list",children:i.map(((e,t)=>function(e,t){const{version:l}=e,n=l?Ii[l].title:"";return h("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:h("div",{className:"flex grow",children:h(wi,{className:`pl-[50px] z-10 ${n}`,textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...r,version:l},t)))}),h("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:a.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:l,onClick:n,version:r}){const a=t===l,i=a?"bg-white shadow-dark-blue/42 min-w-[350px] border-none p-6":`min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur\n ${K[r]}`,s=a?"text-primary-text !text-h6 p-2":`text-l pb-1 ${Ii[r].title}`,o=a?"text-secondary-text text-l-light":`text-m-light ${Ii[r].text}`;return h("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${i} ${Qr[r]}\n `,children:u("div",{className:"border-0 px-6",children:[h("div",{className:`last:pb-0 ${s}`,children:e?.title}),h("div",{className:`text-secondary-text ${o}`,children:e?.description})]})},String(t))}({slide:e,i:t,activeSlideIndex:s,onClick:()=>o(t),version:l})))})]})}));const Bi=p((({className:e="",title:t,headlineVersion:l="S",description:n,additionalDescription:r,benefits:a=[],buttons:i,image:s,version:o="primary",...c})=>u(T,{className:`overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]\n ${e} ${K[o]} ${xi(e)}`,...c,children:[h(Le,{className:"!p-0 !bg-transparent z-10 "+(t||n?"mb-3.5":""),as:"h2",title:t,description:n,headlineVersion:l,bgColorHeadline:o,align:"left",...c}),Ri(a,o,s),r?Vi(r,s,o):null,i?.length?h(Te,{buttons:i,className:"flex self-end mt-5 gap-4 z-10 text-l"}):null,s?.src?h(H,{className:"absolute right-0 bottom-0",image:s}):null]})));function Ri(e,t,l){return h("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline\n ${l?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(ji(t)):null})}function ji(e="primary"){const t={primary:"text-secondary-text",secondary:"text-white"};return function(l,n){const{label:r="",description:a=""}=l;return[h("div",{className:"text-h6",children:r},`label-${n}`),h("div",{className:`text-m-light ${t[e]}`,children:a},`desc-${n}`)]}}function Vi(e,t,l="primary"){return h("div",{className:`text-m-light mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"} ${{primary:"text-secondary-text",secondary:"text-white"}[l]}`,children:e})}const Mi=p((({className:e="",title:t="Акции и спецпредложения",date:l,description:n,buttons:r=[],version:a="primary",...i})=>h(T,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${K[a]} ${xi(e)} ${ka(e)} `,...i,children:h(Zl,{title:t?h(Le,{title:t,className:"!p-0 max-w-[600px]",headlineVersion:pi(e),bgColorHeadline:a,align:"left",as:"h2",...i}):null,buttons:r?.length?h(Te,{buttons:r,className:"flex gap-3"}):null,children:u("div",{className:"mt-1.5",children:[l?h("div",{className:"text-s mb-2",children:Li(l)}):null,h("div",{className:"text-l",children:n})]})})})));function Li(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const _i=p((({className:e="",title:t,description:l,items:n,image:r,version:a,socialMedia:i,button:s})=>{const o=t?h(R,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:t}):null,c=r?.src?h(H,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return h("section",{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${e}`,role:"listitem",children:h(Zl,{className:"flex justify-between",title:o,image:c,children:u("div",{className:"h-full flex flex-col justify-between",children:[l?h("span",{className:"mb-2",children:l}):null,n?.length?h(ir,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:n,version:a}):null,i?h(Hn,{className:"pt-10 pb-0",media:i,version:a}):null,s?.text?h("div",{className:"pt-2",children:Be({button:s,buttonClassName:"mt-16"})}):null]})})})})),Di="absolute top-0 bottom-0 w-[84px]",Ai=p((({recommendations:e=[],className:t="",title:l,version:n="primary",...r})=>{const[a,i]=Ge({itemCount:e.length,visibleItemCount:2});return u(T,{className:`relative font-sans p-9 overflow-hidden text-center ${K[n]} ${t}`,...r,children:[l?h(R,{headingType:"h3",className:"mb-6",title:l}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*a}px)`},role:"list",children:e.length?e.map(((e,t)=>h(_i,{version:n,className:Qr[n],...e},String(t)))):null}),Ye({...i,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),h("div",{className:`${Di} left-0 ${"secondary"===n?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${Di} right-0 ${"secondary"===n?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Oi=p((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:n=!0,version:r="primary",...a})=>h("div",{className:`border-b border-solid border-main-divider w-full ${e}`,children:h(L,{isFoldButtonOnTop:n,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(_,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:k(a)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>zi({isUnfolded:e,onToggle:l,label:t,version:r})})})));Oi.childrenTypes={exclude:["RollupItem","Accordion","AccordionItem","OtherProducts","OtherProductsItem","VerticalLayout"]};const zi=({isUnfolded:e,onToggle:t,label:l,version:n})=>{const r=l?[l,l]:["Развернуть","Скрыть"];return"primary"===n?h(Ei,{icon:["PlusIcon","MinusIcon"][Number(e)],label:r[Number(e)],onClick:t}):h(li,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:r[Number(e)],onClick:t})},Ei=p((({label:e,icon:t,onClick:l})=>u("button",{className:"border-none bg-transparent px-9 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer",onClick:l,children:[h("span",{className:"text-xl font-medium pr-2.5",children:e}),t?h(H,{image:q({icon:t}),width:"24",height:"24",asSVG:!0}):null]}))),Fi=[];const Pi=async e=>await gt(e,{method:"GET"})||Fi,Ui=p((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:r="",setSelected:a,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return h(dn,{options:s,label:i,placeholder:r||n,onChange:e=>a(e.key),value:o})})),Xi=p((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:r,onSelectedBranch:a})=>u("div",{className:"flex justify-between gap-4 mb-6",children:[h("div",{className:"max-w-[396px] w-1/2",children:h(Ui,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),h("div",{className:"max-w-[396px] w-1/2",children:h(Ui,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:r,setSelected:a,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Gi=p((({name:e,text:t,value:l,checked:n,onChange:r,className:a})=>h("div",{className:a,children:u("label",{className:"font-sans flex items-center relative cursor-pointer",children:[h("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-checkbox-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:n,onChange:r}),t?h("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),Hi=p((()=>{const[e,t]=n("option2"),l=e=>t(e.target.value);return u("div",{children:[h(Gi,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),h(Gi,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),Wi=["От 1 дня","До 365 дней"],Ji=p((({days:e,setDays:t})=>u("div",{className:"mb-6",children:[h("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),h(ct,{min:1,max:365,value:e,items:Wi,onChange:t})]}))),Yi=p((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:r,onSelectedBoxSize:a})=>u("div",{className:"flex justify-between mb-6",children:[h("div",{className:"mr-4 w-full",children:h(Ui,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),h("div",{className:"w-full",children:h(Ui,{data:n,fieldLabel:"safeBoxCasesSize",selected:r,setSelected:a,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Zi=p((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:r,selectedCaseVolume:a,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onShowMapToggle:d})=>u("div",{className:"flex-1 mr-9",children:[h(Xi,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:Ki(c)}),h(Ji,{days:r,setDays:e=>c({days:e})}),h(Yi,{caseVolumes:o,selectedCaseVolume:a,onSelectedCaseVolume:qi(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),h("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),u("div",{className:"flex justify-between items-center mt-5",children:[h(Hi,{}),h($e,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Ki=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},qi=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Qi=p((({days:e,tariffs:t=[]})=>{const l=ts(e,t);return u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex",children:[es("Аренда за",e,"mr-11"),es("Цена",l+" ₽")]}),u("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[h(H,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),u("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",h("br",{})," листов формата А4"]})]})]})})),es=(e,t,l="")=>u("div",{className:l,children:[h("div",{className:"text-m-light text-secondary-text mb-1",children:e}),h("span",{className:"text-h3 text-primary-text",children:t})]}),ts=(e,t)=>{const l=ls(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},ls=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},ns=(e,t)=>e.find((e=>e.branchCode===t)),rs=p((e=>{const{regions:t,data:l,branches:n,onChange:a,onShowMapToggle:i}=e;r((()=>{a({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,a]);const s=ns(n,l.selectedBranch),o=as(s?.safeBoxCaseVolumes),c=is(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=ss(c,l.selectedBoxSize);return u("div",{className:"flex justify-between align-top mb-6",children:[h(Zi,{...l,regions:t,onShowMapToggle:i,branches:n,caseVolumes:o,safeBoxCases:c,onChange:a}),h(Qi,{days:l.days,tariffs:d})]})})),as=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],is=(e,t)=>e?.find((e=>e.volume===t)),ss=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;const os=p((({title:e,footnote:t,className:l="",...r})=>{const[i,s]=n(!1),[o,c]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),d=function(){const{data:e}=pt("/api/v1/regions",bt);return e||[]}(),m=cs(o.selectedRegion,d),p=function(e){const{data:t}=pt(e?`/api/v1/safeboxes?regionCode=${e}`:null,Pi);return t||Fi}(m),x=a((e=>c((t=>({...t,...e})))),[c]),g=(b=ns(p,o.selectedBranch)||p,Array.isArray(b)?b.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):b?.gpsLatitude&&b?.gpsLongitude?[[b.gpsLatitude,b.gpsLongitude]]:[]);var b;return u(T,{className:l,...r,children:[u("div",{className:"font-sans bg-white px-8 py-12",children:[e?h(R,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,h(rs,{regions:d,branches:p,data:{...o,selectedRegion:m},onShowMapToggle:()=>{s(!i)},onChange:x}),t?h("p",{className:"text-s-light text-secondary-text",children:t}):null]}),g.length&&i?h(Ea,{points:g,className:"h-[640px]"}):null]})})),cs=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,ds=e=>Boolean(e?.icon||e?.src),ms=({items:e,isDotted:t=!0,version:l="primary",className:n=""})=>e?h(ir,{className:n,version:l,items:e,listItemSize:"M",isDotted:t}):null,hs=({styleMap:e,isMainButton:t,version:l})=>(n,r,{length:a})=>{const{label:i,description:s,button:o,items:c,isDotted:d}=n,m=i&&(s||c)?"mt-2":"";return u("div",{className:`relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden ${gs(a)}`,children:[u("div",{className:(o?.text?"mb-8":"")+" text-center",children:[us(i),u("div",{className:`${m} flex flex-col items-center`,children:[ps({description:s,className:e.description}),ms({items:c,isDotted:d,version:l,className:xs({className:"text-left",description:s,styleMap:e})})]})]}),o?.text&&!t?h($e,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(r))},us=e=>e?h("div",{className:"text-h6",children:e}):null,ps=({description:e,className:t=""})=>e?h("div",{className:t,children:e}):null,xs=({className:e,description:t,styleMap:l})=>[t?l.description:"text-h6",t?"mt-0.5":"",e].join(" "),gs=e=>e<5?"w-[276px]":"w-[210px]",bs={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"}},fs=p((({className:e="",showLines:t=!0,steps:l=[],button:n,version:r="primary",...a})=>{const{title:i}=a,s=bs[r],o=l.length>3,c=(e=>e?"":"opacity-0")(t),d=i?"mt-9":"",m=(e=>e<5?"px-[88px]":"px-[55px]")(l.length);return u(T,{className:["box-border py-[50px] font-sans",o?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",s.background,s.title,e].join(" "),...a,children:[i?h(R,{headingType:"h3",className:"max-w-[752px] text-center",title:i}):null,l?.length?u("div",{className:`box-border ${d}`,children:[h("div",{className:`flex items-center ${m}`,children:ia(h("div",{className:`h-0.5 w-full bg-secondary-light ${c}`}))(l.map(vs(s,r)))}),h("div",{className:"flex justify-between mt-4 "+(o?"gap-x-3":"gap-x-[101px]"),children:l.map(hs({styleMap:s,isMainButton:Boolean(n?.text),version:r}))})]}):null,n?.text?h($e,{className:"mt-8 min-w-[240px]",version:"primary",...n}):null]})})),vs=(e,t)=>({icon:l},n)=>h("div",{className:"flex flex-col items-center text-center",children:h("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center\n ${e.iconBackground} ${e.title}`,children:ds(l)?h(H,{image:q(l||{},t),width:"48",height:"48",asSVG:!0}):h("span",{className:`text-h4 ${e.iconText}`,children:n+1})})},String(n));const Ns="h-12 flex-1 flex items-center justify-center cursor-pointer",ys="bg-primary-main",ws="group bg-white",ks="font-sans text-m",Cs="text-white",$s="text-secondary-text group-hover:text-primary-main",Ss=p((e=>{const{tab:t,currentTab:l,onClick:n}=e,r="link"===l?.type&&l.href===t.href,i=a((()=>{n&&n(t),$.inst.fire("anchorClick",{isScrolling:!0,label:t.href})}),[t,n]),s=pe()({...t,onClick:i});return h("a",{role:"tab",className:`${Ns} ${r?ys:ws}`,target:t.target,href:s.href,onClick:s.onClick,children:h("span",{className:`${ks} ${r?Cs:$s}`,children:t.text})})})),Is=(e,t)=>h("h3",{className:`${ks} ${t?Cs:$s}`,children:e}),Ts=(e,t)=>h("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(t?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover:text-primary-main"),children:e}),Bs=({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,a)=>{const i=r.type;if("group"!==i&&"link"!==i)return null;switch(i){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,a)=>{const i=t===r,s=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return h("div",{className:`${Ns} ${i?ys:ws}`,role:"tab","aria-selected":i,onClick:()=>n(r),children:u("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?Is(r.title,i):null,l&&s?Ts(s,i):null]})},String(a))})({page:e,currentTab:t,showCounter:l,onClick:n})(r,a);case"link":return h(Ss,{tab:r,currentTab:t},String(a));default:!function(e){throw new Error(e)}(i)}},Rs=p((e=>{const{className:t="",tabs:l,showCounter:a,isSticky:i,...s}=e,[o,c]=n(l?l[0]:void 0);r((()=>$.inst.subscribe("tab",(e=>{if(!l)return;const t=l.find(js(e));"link"===e.type&&t&&c(t)}))),[l]),r((()=>{if("group"===o?.type)return $.inst.subject("tab",{label:o.ref})}),[o]);return h(T,{className:`${i?"sticky top-1 z-20 ":""}box-border flex gap-x-1 ${t}`,role:"tablist",...s,children:l?.map(Bs({onClick:e=>{"group"===e?.type&&$.inst.fire("tab",{type:e.type,label:e.ref}),c(e)},currentTab:o,showCounter:a,...s}))})})),js=e=>t=>"link"===t.type&&t.href===`#${e.label}`,Vs=p((({isOpen:e,onClick:t})=>u($e,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[h("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),h(A,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),Ms={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,...t},l)=>Be({button:{rounded:e,...t},buttonClassName:(l>0&&e?"ml-3":"")+" w-12 h-12"})))}):null,Img:({image:e})=>e?.src?h(H,{image:e}):null,List:({isDotted:e,...t})=>h(ir,{className:"flex flex-col justify-between items-start text-h6",version:"primary",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:p((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:r})=>e?h(Vs,{isOpen:r,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},Ls=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=n(!0);r((()=>{t===i&&a||m(!0)}),[a,i]);return u("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?h("div",{className:"h-5"}):null,_s({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},_s=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in Ms))return null;return h(Ms[l],{...t,...n})},Ds=p((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})=>h("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(Ls({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})):null})));async function As(e){const t=await fetch(e);return await t.json()}const Os=p((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=Ge({itemCount:t,visibleItemCount:5});return u("div",{children:[e?.map(zs(l)),Ye({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),zs=e=>(t,l)=>{if(!t?.length)return null;const[n,...r]=t,a=[...Array(e).keys()].reduce(((e,t)=>140*(r?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return u("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?h("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:n.data}):null,h("div",{className:"flex flex-grow overflow-hidden",children:h("div",{className:i,style:{transform:`translateX(-${a}px)`},children:r?.map(((t,l)=>u("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?h("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?Es(t.cols,e):null]},`row${l}`)))})})]},String(l))},Es=(e,t)=>e?.length>0?h("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>h("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,Fs=p((({activeTabIndex:e,items:t})=>{const[l,r]=n({});return h("div",{children:t.map(((t,n)=>{const a=`activeTabIdx:${e}-tableIdx:${n}`;return u("div",{className:"w-full",children:[u("div",{className:"flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>(e=>{r((t=>({...t,[e]:!t[e]})))})(a),children:[t.title,h(H,{image:l[a]?"PlusIcon":"MinusIcon",className:"absolute right-[22px]",width:"24",height:"24"})]}),h("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[a]?"h-0":""),children:h("div",{className:"relative",children:h(Os,{rows:t.rowsData})})})]},a)}))})})),Ps=p((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>u("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?h("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>h("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?h($e,{href:t,version:"secondary",target:"_blank",appendLeft:h(A,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20",asSVG:!0}),text:"Скачать в PDF"}):null]}))),Us=p((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:r}=function(e){const{data:t}=pt(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),As);return t||{}}(e),[a,i]=n(0),s=r?.[a]?.items??[],o=r?.map((e=>e.currency??""));return u("div",r?{className:"bg-white z-10",children:[h(Ps,{currencies:o,activeTabIndex:a,setActiveTabIndex:i,linkToPDF:t}),h(Fs,{activeTabIndex:a,items:s}),h(Vs,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[h("p",{children:"Данных нет"}),h(Vs,{onClick:l,isOpen:!0})]})})),Xs=p((({children:e,tableInner:t,onHideContentClick:l})=>u("div",{className:"self-start flex flex-col",role:"row",children:[h("div",{className:"flex",children:e}),t?h("div",{className:"origin-top animate-expansion",children:h(Us,{...t,onClick:l})}):null]}))),Gs=p((({row:{header:e,data:t},activeIndex:l,rowIdx:r,...a})=>{const[i,s]=n(void 0),[o,c]=n(void 0);return u(Xs,{onHideContentClick:()=>s(void 0),tableInner:i,...a,children:[h("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:u("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?h(H,{className:"mr-[14px] max-w-6 max-h-6",image:q(e.icon),width:"24px",height:"24px",asSVG:!0}):null,e?.title?h("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?h(Vl,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>h(Ds,{cells:e,rowIdx:r,cellIdx:t,setTableInner:s,tableInner:i,openTableInnerIdx:o,setOpenTableInnerIdx:c,...a},String(t))))}):null]})})),Hs=p((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:r,hiddenRowsNum:a=0,...i})=>{const s=r?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=Ge({itemCount:c,visibleItemCount:2}),{isScrollAvailable:p}=m,x=(o||[]).map(((e,t)=>h(Gs,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[g,b]=a>0?[x.slice(0,-a),x.slice(-a)]:[x,[]];return u(T,{className:`bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${c>1?"pr-0":""} ${e}`,...i,children:[Ws({title:t,description:l}),Js(l),a>0?h(L,{renderFoldableSection:({isUnfolded:e})=>u(Ys,{controls:m,isScrollAvailable:p,children:[g,h(_,{isUnfolded:e,children:b})]}),renderFoldButton:ni}):h(Ys,{controls:m,isScrollAvailable:p,children:x})]})}));function Ws({title:e,description:t}){return e?h(R,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function Js(e){return e?h("div",{className:"mb-9 text-center text-l",children:e}):null}const Ys=p((({children:e,controls:t,isScrollAvailable:l})=>u("div",{role:"table",children:[u("div",{className:"relative",children:[e,l?Ye({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"}):null]}),l?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]}))),Zs={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"}},Ks=p((({title:e,description:t,blockVersion:l="primary",iconVersion:n,image:r,className:a,...i})=>{const s=Zs[l];return u(T,{className:`font-sans px-9 py-4 flex ${s.background} ${a||""}`,...i,children:["small"===n?qs(s.icon):null,"big"===n?Qs(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${s.title}`,children:e}):null,t?h("div",{className:`text-s ${s.description}`,children:t}):null]})]})}));function qs(e){return h("div",{className:"pt-1.5 pl-1 pr-4",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Qs(e){return e?.src?h(H,{className:"pt-0.5 pr-3",image:e}):null}const eo=p((e=>{const{tags:t,className:l=""}=e;return t?.length?h("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(to)}):null})),to=(e,t)=>h("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-color-stroke",children:e},String(t)),lo=p((e=>{const{title:t,headingType:l="h3",description:n,items:r,buttons:a,image:i,isDotted:s=!0,listItemSize:o="M",className:c="",version:d="primary",tags:m,children:p,...x}=e,g="primary"===d?"text-primary-text":"";return h(T,{className:`overflow-hidden font-sans p-9 pr-3 box-border ${c} ${K[d]} ${xi(c)} ${ka(c)} `,...x,children:u(Zl,{title:t?h(R,{headingType:l,as:"h2",title:t,className:`whitespace-pre-wrap max-w-[600px] ${g}`}):null,buttons:a?.length?h(Te,{buttons:a.map((e=>({...e,className:"min-w-[158px]"}))),className:"flex mt-8 gap-3",...x}):null,image:i?.src?h(H,{className:"mt-auto ml-7",image:i}):null,children:[n?h("div",{className:"max-w-[600px] mt-2.5",children:h(j,{size:"text-xl-light",children:n})}):null,p,no({version:d,isDotted:s,listItemSize:o},r),m?.length?h(eo,{tags:m,className:"mt-5"}):null]})})}));function no({version:e,isDotted:t,listItemSize:l},n){return n?.length?h(ir,{items:n,isDotted:t,className:"mt-2.5",listItemSize:l,itemClassName:"mb-1.5",version:e}):null}const ro={left:"items-start",center:"items-center",right:"items-end"},ao={XXL:"gap-10",XL:"gap-8",L:"gap-4",M:"gap-3",S:"gap-2",XS:"gap-1","":""},io={transparent:"",primary:"bg-white",secondary:"bg-primary-main"},so=p((({className:e="",gap:t="",align:l,version:n="transparent",...r})=>h(T,{className:["flex flex-col",ao[t],l&&ro[l],io[n],e].filter(Boolean).join(" "),...r,children:k(r)})));so.childrenTypes={exclude:["VerticalLayout"]};const oo=e=>wa(e)<10?"py-6 px-11":"py-12 px-32",co=p((e=>{const{title:t,src:l,previewImg:n,className:r="",...a}=e;return u(T,{className:`bg-white ${oo(r)} ${r}`,...a,children:[h(Le,{title:t,headlineVersion:"M"}),l?h("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:n?.src,style:{maxHeight:524},controls:!0,children:h("source",{src:l})}):null]})})),mo={Accordion:M,AccordionItem:Y,BenefitsBlock:le,BusinessBlock:Xe,Bonus:_e,BonusBenefitsBlock:ze,CardTransfer:Gt,Calculator:At,Carousel:al,CarouselCard:ml,CarouselLinks:pl,CarouselProgramsCard:sl,CarouselTariffsCard:gl,Catalog:$l,ContactsBlock:Gl,ComparisonTable:Ul,ErrorBlock:Yl,ExchangeRateTile:kn,Footer:Zn,Gallery:xr,GracePeriod:gr,Header:Gr,Headline:Le,InsuranceAmountBlock:Kr,InvestmentInfo:ca,InvestmentGallery:ra,LinkDocs:Na,MiniGallery:ya,MobileAppTile:Ca,PictureText:di,Placeholder:gi,ProductBlock:Si,ProductGallery:Ti,ProductTile:Bi,PromoTile:Mi,OfficeMap:qa,OfficeServicesBlock:Qa,OtherProducts:ti,OtherProductsItem:ai,Recommendation:Ai,RollupItem:Oi,SafeDepositRental:os,StepsBlock:fs,Tabs:Rs,TariffsTable:Hs,TextBlock:Ks,Tile:lo,VerticalLayout:so,Video:co},ho=m();const uo=p((({className:e,onClick:t,ariaLabel:l})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:po()}))),po=()=>{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"})]})},xo=p((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return r((()=>{(async()=>{const[t]=await ho.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{l(await ho.like(e))}),[e]),dislike:a((async()=>{l(await ho.dislike(e))}),[e])}}(ue().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(uo,{onClick:he(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(uo,{onClick:he(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),go=p((e=>{const{className:t="",blocksRegistry:l,blockDecorator:n,data:r={}}=e,{style:a,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:l,blockDecorator:n,parent:r};return u("section",{className:`relative ${g(a)} ${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(i,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(xo,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));go.childrenTypes=[],go.slots=()=>["header","footer"];e.Blocks=mo,e.ContentPage=go,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=he,e.joinList=ia,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=me,e.useRouter=ue,Object.defineProperty(e,"__esModule",{value:!0})}));