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

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 (970) hide show
  1. package/bin/migration-scripts/0.6.32.js +6 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +276 -160
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  6. package/{lib/components/InvestmentGallery/InvestmentGalleryContent.d.ts → bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  7. package/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  8. package/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  9. package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  10. package/bundle/components/Gallery/GalleryContent.d.ts +5 -0
  11. package/bundle/components/Header/HeaderSubMenuItem.d.ts +2 -1
  12. package/bundle/components/ImgBlock/ImgBlock.d.ts +6 -0
  13. package/bundle/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  14. package/bundle/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  15. package/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  16. package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  17. package/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  18. package/bundle/components/Video/VideoContent.d.ts +1 -0
  19. package/bundle/hooks/useIntersectionObserver.d.ts +7 -1
  20. package/bundle/ui-kit/Button/ArrowButton.d.ts +2 -0
  21. package/bundle/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  22. package/bundle/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  23. package/bundle/ui-kit/Radio/RadioProps.d.ts +1 -2
  24. package/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  25. package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  26. package/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  27. package/bundle/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  28. package/bundle/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  29. package/bundle/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  30. package/bundle/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  31. package/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  32. package/bundle/ui-kit/Text/Text.d.ts +1 -26
  33. package/bundle/ui-kit/Text/TextProps.d.ts +26 -0
  34. package/bundle/utils/areArraysEqual.d.ts +1 -0
  35. package/bundle/utils/mapChildren.d.ts +2 -0
  36. package/bundle/utils/maxBy.d.ts +2 -2
  37. package/bundle/utils/minBy.d.ts +1 -0
  38. package/dist/components/Blocks.js +9 -3
  39. package/dist/components/Blocks.js.map +1 -1
  40. package/dist/components/Calculator/BonusCalculatorForm.js +4 -2
  41. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  42. package/dist/components/Calculator/CreditCalculatorForm.js +3 -1
  43. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  44. package/dist/components/Calculator/DepositCalculatorForm.js +5 -2
  45. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  46. package/dist/components/Carousel/Carousel.js +15 -15
  47. package/dist/components/Carousel/Carousel.js.map +1 -1
  48. package/dist/components/CarouselCard/CarouselCard.js +2 -2
  49. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  50. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  51. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +28 -0
  52. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  53. package/dist/components/{InvestmentGallery/InvestmentGalleryContent.d.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  54. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  55. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  56. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  57. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +12 -0
  58. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  59. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  60. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  61. package/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  62. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  63. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +10 -14
  64. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  65. package/dist/components/ComparisonTable/ComparisonTable.js +2 -2
  66. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  67. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +1 -1
  68. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  69. package/dist/components/Gallery/Gallery.mobile.js +1 -1
  70. package/dist/components/Gallery/GalleryCardInner.js +6 -1
  71. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  72. package/dist/components/Gallery/GalleryContent.d.ts +5 -0
  73. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  74. package/dist/components/Header/Header.mobile.js +2 -2
  75. package/dist/components/Header/Header.mobile.js.map +1 -1
  76. package/dist/components/Header/HeaderSubMenu.js +1 -1
  77. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  78. package/dist/components/Header/HeaderSubMenuItem.d.ts +2 -1
  79. package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  80. package/dist/components/ImgBlock/ImgBlock.d.ts +6 -0
  81. package/dist/components/ImgBlock/ImgBlock.js +11 -0
  82. package/dist/components/ImgBlock/ImgBlock.js.map +1 -0
  83. package/dist/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  84. package/dist/components/{InvestmentGallery/InvestmentGalleryContent.js → ImgBlock/ImgBlockContent.js} +1 -1
  85. package/dist/components/ImgBlock/ImgBlockContent.js.map +1 -0
  86. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -7
  87. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  88. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  89. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  90. package/dist/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  91. package/dist/components/ParagraphBlock/ParagraphBlock.js +11 -0
  92. package/dist/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  93. package/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  94. package/{mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.js → dist/components/ParagraphBlock/ParagraphBlockContent.js} +1 -1
  95. package/dist/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  96. package/dist/components/ProductGallery/ProductGallery.js +7 -7
  97. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  98. package/dist/components/RollupItem/RollupItem.js +10 -1
  99. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  100. package/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  101. package/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  102. package/dist/components/SafeDepositRental/RenderRadioButtons.js +1 -1
  103. package/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  104. package/dist/components/SafeDepositRental/SafeDepositRental.js +2 -4
  105. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  106. package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  107. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  108. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  109. package/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  110. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  111. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  112. package/dist/components/StepsBlock/StepsBlock.js +1 -3
  113. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  114. package/dist/components/TariffsTable/TableTileHeader.js +1 -3
  115. package/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
  116. package/dist/components/TariffsTable/TariffsTable.js +6 -6
  117. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  118. package/dist/components/TariffsTable/TariffsTableRow.js +3 -1
  119. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  120. package/dist/components/Video/VideoContent.d.ts +1 -0
  121. package/dist/hooks/useIntersectionObserver.d.ts +7 -1
  122. package/dist/hooks/useIntersectionObserver.js +10 -1
  123. package/dist/hooks/useIntersectionObserver.js.map +1 -1
  124. package/dist/hooks/useLink.js +1 -1
  125. package/dist/hooks/useLink.js.map +1 -1
  126. package/dist/ui-kit/BlockWrapper.js +1 -11
  127. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  128. package/dist/ui-kit/Button/ArrowButton.d.ts +2 -0
  129. package/dist/ui-kit/Button/ArrowButton.js +3 -1
  130. package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  131. package/dist/ui-kit/Foldable/FoldableSection.js +1 -1
  132. package/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  133. package/dist/ui-kit/InnerTable/InnerTable.js +3 -2
  134. package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  135. package/dist/ui-kit/InnerTable/InnerTableBody.js +2 -4
  136. package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  137. package/dist/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  138. package/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
  139. package/dist/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  140. package/dist/ui-kit/Paragraph/ParagraphProps.js +2 -0
  141. package/dist/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  142. package/dist/ui-kit/Radio/Radio.js +1 -1
  143. package/dist/ui-kit/Radio/Radio.js.map +1 -1
  144. package/dist/ui-kit/Radio/RadioProps.d.ts +1 -2
  145. package/dist/ui-kit/Select/Select.js.map +1 -1
  146. package/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  147. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +35 -0
  148. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  149. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  150. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  151. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  152. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  153. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  154. package/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  155. package/dist/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  156. package/dist/ui-kit/SwipeListControl/SwipeListItem.js +16 -0
  157. package/dist/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  158. package/dist/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  159. package/dist/ui-kit/SwipeListControl/scrollBy.js +8 -0
  160. package/dist/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  161. package/dist/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  162. package/dist/ui-kit/SwipeListControl/scrollToEnd.js +7 -0
  163. package/dist/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  164. package/dist/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  165. package/dist/ui-kit/SwipeListControl/scrollToStart.js +7 -0
  166. package/dist/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  167. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  168. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +57 -0
  169. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  170. package/dist/ui-kit/Text/Text.d.ts +1 -26
  171. package/dist/ui-kit/Text/Text.js.map +1 -1
  172. package/dist/ui-kit/Text/TextProps.d.ts +26 -0
  173. package/dist/ui-kit/Text/TextProps.js +2 -0
  174. package/dist/ui-kit/Text/TextProps.js.map +1 -0
  175. package/dist/utils/areArraysEqual.d.ts +1 -0
  176. package/dist/utils/areArraysEqual.js +5 -0
  177. package/dist/utils/areArraysEqual.js.map +1 -0
  178. package/dist/utils/mapChildren.d.ts +2 -0
  179. package/dist/utils/mapChildren.js +10 -0
  180. package/dist/utils/mapChildren.js.map +1 -0
  181. package/dist/utils/maxBy.d.ts +2 -2
  182. package/dist/utils/maxBy.js +4 -4
  183. package/dist/utils/maxBy.js.map +1 -1
  184. package/dist/utils/minBy.d.ts +1 -0
  185. package/dist/utils/minBy.js +6 -0
  186. package/dist/utils/minBy.js.map +1 -0
  187. package/lib/common.css +1 -1
  188. package/lib/components/Blocks.js +9 -3
  189. package/lib/components/Blocks.js.map +1 -1
  190. package/lib/components/Calculator/BonusCalculatorForm.js +5 -3
  191. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  192. package/lib/components/Calculator/CreditCalculatorForm.js +4 -2
  193. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  194. package/lib/components/Calculator/DepositCalculatorForm.js +6 -3
  195. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  196. package/lib/components/Carousel/Carousel.fixture.d.ts +2 -0
  197. package/lib/components/Carousel/Carousel.js +15 -15
  198. package/lib/components/Carousel/Carousel.js.map +1 -1
  199. package/lib/components/CarouselCard/CarouselCard.js +2 -2
  200. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  201. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  202. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.fixture.d.ts +10 -0
  203. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +26 -0
  204. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  205. package/{mobile/bundle/components/InvestmentGallery/InvestmentGalleryContent.d.ts → lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  206. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  207. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  208. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  209. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.fixture.d.ts +8 -0
  210. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +10 -0
  211. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  212. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  213. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  214. package/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  215. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  216. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.d.ts +1 -1
  217. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +10 -14
  218. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  219. package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
  220. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  221. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +1 -1
  222. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  223. package/lib/components/Gallery/Gallery.mobile.js +1 -1
  224. package/lib/components/Gallery/GalleryCardInner.js +6 -1
  225. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  226. package/lib/components/Gallery/GalleryContent.d.ts +5 -0
  227. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  228. package/lib/components/Header/Header.mobile.js +3 -3
  229. package/lib/components/Header/Header.mobile.js.map +1 -1
  230. package/lib/components/Header/HeaderSubMenu.js +1 -1
  231. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  232. package/lib/components/Header/HeaderSubMenuItem.d.ts +2 -1
  233. package/lib/components/Header/HeaderSubMenuItem.js +1 -1
  234. package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  235. package/lib/components/ImgBlock/ImgBlock.d.ts +6 -0
  236. package/lib/components/{InvestmentGallery/InvestmentGallery.fixture.d.ts → ImgBlock/ImgBlock.fixture.d.ts} +0 -2
  237. package/lib/components/ImgBlock/ImgBlock.js +9 -0
  238. package/lib/components/ImgBlock/ImgBlock.js.map +1 -0
  239. package/lib/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  240. package/lib/components/ImgBlock/ImgBlockContent.js +2 -0
  241. package/lib/components/ImgBlock/ImgBlockContent.js.map +1 -0
  242. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -8
  243. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  244. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  245. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  246. package/lib/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  247. package/lib/components/ParagraphBlock/ParagraphBlock.fixture.d.ts +9 -0
  248. package/lib/components/ParagraphBlock/ParagraphBlock.js +9 -0
  249. package/lib/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  250. package/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  251. package/lib/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
  252. package/lib/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  253. package/lib/components/ProductGallery/ProductGallery.js +8 -8
  254. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  255. package/lib/components/RollupItem/RollupItem.js +10 -1
  256. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  257. package/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  258. package/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  259. package/lib/components/SafeDepositRental/RenderRadioButtons.js +2 -2
  260. package/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  261. package/lib/components/SafeDepositRental/SafeDepositRental.js +2 -4
  262. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  263. package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  264. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  265. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  266. package/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  267. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  268. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  269. package/lib/components/StepsBlock/StepsBlock.js +1 -3
  270. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  271. package/lib/components/TariffsTable/TableTileHeader.js +1 -3
  272. package/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
  273. package/lib/components/TariffsTable/TariffsTable.js +6 -6
  274. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  275. package/lib/components/TariffsTable/TariffsTableRow.js +4 -2
  276. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  277. package/lib/components/Video/VideoContent.d.ts +1 -0
  278. package/lib/hooks/useIntersectionObserver.d.ts +7 -1
  279. package/lib/hooks/useIntersectionObserver.js +11 -2
  280. package/lib/hooks/useIntersectionObserver.js.map +1 -1
  281. package/lib/hooks/useLink.js +2 -2
  282. package/lib/hooks/useLink.js.map +1 -1
  283. package/lib/ui-kit/BlockWrapper.js +1 -11
  284. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  285. package/lib/ui-kit/Button/ArrowButton.d.ts +2 -0
  286. package/lib/ui-kit/Button/ArrowButton.js +2 -0
  287. package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  288. package/lib/ui-kit/Foldable/FoldableSection.js +1 -1
  289. package/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  290. package/lib/ui-kit/InnerTable/InnerTable.js +4 -3
  291. package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  292. package/lib/ui-kit/InnerTable/InnerTableBody.js +3 -5
  293. package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  294. package/lib/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  295. package/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
  296. package/lib/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  297. package/lib/ui-kit/Paragraph/ParagraphProps.js +2 -0
  298. package/lib/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  299. package/lib/ui-kit/Radio/Radio.js +1 -1
  300. package/lib/ui-kit/Radio/Radio.js.map +1 -1
  301. package/lib/ui-kit/Radio/RadioProps.d.ts +1 -2
  302. package/lib/ui-kit/Select/Select.js.map +1 -1
  303. package/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  304. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +33 -0
  305. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  306. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  307. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  308. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  309. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  310. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  311. package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  312. package/lib/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  313. package/lib/ui-kit/SwipeListControl/SwipeListItem.js +14 -0
  314. package/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  315. package/lib/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  316. package/lib/ui-kit/SwipeListControl/scrollBy.js +5 -0
  317. package/lib/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  318. package/lib/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  319. package/lib/ui-kit/SwipeListControl/scrollToEnd.js +4 -0
  320. package/lib/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  321. package/lib/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  322. package/lib/ui-kit/SwipeListControl/scrollToStart.js +4 -0
  323. package/lib/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  324. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  325. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +54 -0
  326. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  327. package/lib/ui-kit/Text/Text.d.ts +1 -26
  328. package/lib/ui-kit/Text/Text.js.map +1 -1
  329. package/lib/ui-kit/Text/TextProps.d.ts +26 -0
  330. package/lib/ui-kit/Text/TextProps.js +2 -0
  331. package/lib/ui-kit/Text/TextProps.js.map +1 -0
  332. package/lib/utils/areArraysEqual.d.ts +1 -0
  333. package/lib/utils/areArraysEqual.js +2 -0
  334. package/lib/utils/areArraysEqual.js.map +1 -0
  335. package/lib/utils/mapChildren.d.ts +2 -0
  336. package/lib/utils/mapChildren.js +7 -0
  337. package/lib/utils/mapChildren.js.map +1 -0
  338. package/lib/utils/maxBy.d.ts +2 -2
  339. package/lib/utils/maxBy.js +2 -2
  340. package/lib/utils/maxBy.js.map +1 -1
  341. package/lib/utils/minBy.d.ts +1 -0
  342. package/lib/utils/minBy.js +3 -0
  343. package/lib/utils/minBy.js.map +1 -0
  344. package/mobile/bundle/bundle.umd.js +144 -145
  345. package/mobile/bundle/bundle.umd.min.js +1 -1
  346. package/mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  347. package/{bundle/components/InvestmentGallery/InvestmentGalleryContent.d.ts → mobile/bundle/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts} +19 -23
  348. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  349. package/mobile/bundle/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  350. package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  351. package/mobile/bundle/components/Gallery/GalleryContent.d.ts +5 -0
  352. package/mobile/bundle/components/Header/HeaderSubMenuItem.d.ts +2 -1
  353. package/mobile/bundle/components/ImgBlock/ImgBlock.d.ts +6 -0
  354. package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  355. package/mobile/bundle/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  356. package/mobile/bundle/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  357. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  358. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  359. package/mobile/bundle/components/Video/VideoContent.d.ts +1 -0
  360. package/mobile/bundle/hooks/useIntersectionObserver.d.ts +7 -1
  361. package/mobile/bundle/ui-kit/Button/ArrowButton.d.ts +2 -0
  362. package/mobile/bundle/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  363. package/mobile/bundle/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  364. package/mobile/bundle/ui-kit/Radio/RadioProps.d.ts +1 -2
  365. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  366. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  367. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  368. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  369. package/mobile/bundle/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  370. package/mobile/bundle/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  371. package/mobile/bundle/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  372. package/mobile/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  373. package/mobile/bundle/ui-kit/Text/Text.d.ts +1 -26
  374. package/mobile/bundle/ui-kit/Text/TextProps.d.ts +26 -0
  375. package/mobile/bundle/utils/areArraysEqual.d.ts +1 -0
  376. package/mobile/bundle/utils/mapChildren.d.ts +2 -0
  377. package/mobile/bundle/utils/maxBy.d.ts +2 -2
  378. package/mobile/bundle/utils/minBy.d.ts +1 -0
  379. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +4 -2
  380. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  381. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +3 -1
  382. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  383. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +5 -2
  384. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  385. package/mobile/dist/components/Carousel/Carousel.js +15 -15
  386. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  387. package/mobile/dist/components/CarouselCard/CarouselCard.js +2 -2
  388. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  389. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  390. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +28 -0
  391. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  392. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +46 -0
  393. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  394. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  395. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  396. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +12 -0
  397. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  398. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  399. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  400. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  401. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  402. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +10 -14
  403. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  404. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +1 -1
  405. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  406. package/mobile/dist/components/Gallery/Gallery.js +1 -1
  407. package/mobile/dist/components/Gallery/GalleryCardInner.js +6 -1
  408. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  409. package/mobile/dist/components/Gallery/GalleryContent.d.ts +5 -0
  410. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  411. package/mobile/dist/components/Header/Header.js +2 -2
  412. package/mobile/dist/components/Header/Header.js.map +1 -1
  413. package/mobile/dist/components/Header/HeaderSubMenu.js +1 -1
  414. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  415. package/mobile/dist/components/Header/HeaderSubMenuItem.d.ts +2 -1
  416. package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  417. package/mobile/dist/components/ImgBlock/ImgBlock.d.ts +6 -0
  418. package/mobile/dist/components/ImgBlock/ImgBlock.js +11 -0
  419. package/mobile/dist/components/ImgBlock/ImgBlock.js.map +1 -0
  420. package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  421. package/mobile/dist/components/ImgBlock/ImgBlockContent.js +2 -0
  422. package/mobile/dist/components/ImgBlock/ImgBlockContent.js.map +1 -0
  423. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +5 -7
  424. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  425. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  426. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  427. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  428. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js +11 -0
  429. package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  430. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  431. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
  432. package/mobile/dist/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  433. package/mobile/dist/components/ProductGallery/ProductGallery.js +7 -7
  434. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  435. package/mobile/dist/components/RollupItem/RollupItem.js +10 -1
  436. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  437. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  438. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  439. package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js +1 -1
  440. package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  441. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +2 -4
  442. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  443. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  444. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  445. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  446. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  447. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  448. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  449. package/mobile/dist/components/TariffsTable/TableTileHeader.js +1 -3
  450. package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
  451. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +3 -1
  452. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  453. package/mobile/dist/components/Video/VideoContent.d.ts +1 -0
  454. package/mobile/dist/hooks/useIntersectionObserver.d.ts +7 -1
  455. package/mobile/dist/hooks/useIntersectionObserver.js +10 -1
  456. package/mobile/dist/hooks/useIntersectionObserver.js.map +1 -1
  457. package/mobile/dist/hooks/useLink.js +1 -1
  458. package/mobile/dist/hooks/useLink.js.map +1 -1
  459. package/mobile/dist/ui-kit/BlockWrapper.js +1 -11
  460. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  461. package/mobile/dist/ui-kit/Button/ArrowButton.d.ts +2 -0
  462. package/mobile/dist/ui-kit/Button/ArrowButton.js +3 -1
  463. package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  464. package/mobile/dist/ui-kit/Foldable/FoldableSection.js +1 -1
  465. package/mobile/dist/ui-kit/Foldable/FoldableSection.js.map +1 -1
  466. package/mobile/dist/ui-kit/InnerTable/InnerTable.js +3 -2
  467. package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
  468. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +2 -4
  469. package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  470. package/mobile/dist/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  471. package/mobile/dist/ui-kit/Paragraph/Paragraph.js.map +1 -1
  472. package/mobile/dist/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  473. package/mobile/dist/ui-kit/Paragraph/ParagraphProps.js +2 -0
  474. package/mobile/dist/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  475. package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
  476. package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
  477. package/mobile/dist/ui-kit/Radio/RadioProps.d.ts +1 -2
  478. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  479. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  480. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +35 -0
  481. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  482. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  483. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  484. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  485. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  486. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  487. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  488. package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  489. package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.js +16 -0
  490. package/mobile/dist/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  491. package/mobile/dist/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  492. package/mobile/dist/ui-kit/SwipeListControl/scrollBy.js +8 -0
  493. package/mobile/dist/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  494. package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  495. package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.js +7 -0
  496. package/mobile/dist/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  497. package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  498. package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.js +7 -0
  499. package/mobile/dist/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  500. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  501. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +57 -0
  502. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  503. package/mobile/dist/ui-kit/Text/Text.d.ts +1 -26
  504. package/mobile/dist/ui-kit/Text/Text.js.map +1 -1
  505. package/mobile/dist/ui-kit/Text/TextProps.d.ts +26 -0
  506. package/mobile/dist/ui-kit/Text/TextProps.js +2 -0
  507. package/mobile/dist/ui-kit/Text/TextProps.js.map +1 -0
  508. package/mobile/dist/utils/areArraysEqual.d.ts +1 -0
  509. package/mobile/dist/utils/areArraysEqual.js +5 -0
  510. package/mobile/dist/utils/areArraysEqual.js.map +1 -0
  511. package/mobile/dist/utils/mapChildren.d.ts +2 -0
  512. package/mobile/dist/utils/mapChildren.js +10 -0
  513. package/mobile/dist/utils/mapChildren.js.map +1 -0
  514. package/mobile/dist/utils/maxBy.d.ts +2 -2
  515. package/mobile/dist/utils/maxBy.js +4 -4
  516. package/mobile/dist/utils/maxBy.js.map +1 -1
  517. package/mobile/dist/utils/minBy.d.ts +1 -0
  518. package/mobile/dist/utils/minBy.js +6 -0
  519. package/mobile/dist/utils/minBy.js.map +1 -0
  520. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +5 -3
  521. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  522. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +4 -2
  523. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  524. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +6 -3
  525. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  526. package/mobile/lib/components/Carousel/Carousel.js +15 -15
  527. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  528. package/mobile/lib/components/CarouselCard/CarouselCard.js +2 -2
  529. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  530. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.d.ts +5 -0
  531. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +26 -0
  532. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -0
  533. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.d.ts +46 -0
  534. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js +2 -0
  535. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCardContent.js.map +1 -0
  536. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.d.ts +5 -0
  537. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +10 -0
  538. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -0
  539. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.d.ts +12 -0
  540. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js +2 -0
  541. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCardContent.js.map +1 -0
  542. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
  543. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +10 -14
  544. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  545. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +1 -1
  546. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  547. package/mobile/lib/components/Gallery/Gallery.js +1 -1
  548. package/mobile/lib/components/Gallery/GalleryCardInner.js +6 -1
  549. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  550. package/mobile/lib/components/Gallery/GalleryContent.d.ts +5 -0
  551. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  552. package/mobile/lib/components/Header/Header.js +3 -3
  553. package/mobile/lib/components/Header/Header.js.map +1 -1
  554. package/mobile/lib/components/Header/HeaderSubMenu.js +1 -1
  555. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  556. package/mobile/lib/components/Header/HeaderSubMenuItem.d.ts +2 -1
  557. package/mobile/lib/components/Header/HeaderSubMenuItem.js +1 -1
  558. package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  559. package/mobile/lib/components/ImgBlock/ImgBlock.d.ts +6 -0
  560. package/mobile/lib/components/ImgBlock/ImgBlock.js +9 -0
  561. package/mobile/lib/components/ImgBlock/ImgBlock.js.map +1 -0
  562. package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +7 -0
  563. package/mobile/lib/components/ImgBlock/ImgBlockContent.js +2 -0
  564. package/mobile/lib/components/ImgBlock/ImgBlockContent.js.map +1 -0
  565. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -8
  566. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  567. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +2 -2
  568. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  569. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.d.ts +6 -0
  570. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js +9 -0
  571. package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js.map +1 -0
  572. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.d.ts +8 -0
  573. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.js +2 -0
  574. package/mobile/lib/components/ParagraphBlock/ParagraphBlockContent.js.map +1 -0
  575. package/mobile/lib/components/ProductGallery/ProductGallery.js +8 -8
  576. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  577. package/mobile/lib/components/RollupItem/RollupItem.js +10 -1
  578. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  579. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -3
  580. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  581. package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js +2 -2
  582. package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js.map +1 -1
  583. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +2 -4
  584. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  585. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +1 -1
  586. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  587. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  588. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +1 -1
  589. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +2 -2
  590. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  591. package/mobile/lib/components/TariffsTable/TableTileHeader.js +1 -3
  592. package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
  593. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +4 -2
  594. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  595. package/mobile/lib/components/Video/VideoContent.d.ts +1 -0
  596. package/mobile/lib/hooks/useIntersectionObserver.d.ts +7 -1
  597. package/mobile/lib/hooks/useIntersectionObserver.js +11 -2
  598. package/mobile/lib/hooks/useIntersectionObserver.js.map +1 -1
  599. package/mobile/lib/hooks/useLink.js +2 -2
  600. package/mobile/lib/hooks/useLink.js.map +1 -1
  601. package/mobile/lib/ui-kit/BlockWrapper.js +1 -11
  602. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  603. package/mobile/lib/ui-kit/Button/ArrowButton.d.ts +2 -0
  604. package/mobile/lib/ui-kit/Button/ArrowButton.js +2 -0
  605. package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  606. package/mobile/lib/ui-kit/Foldable/FoldableSection.js +1 -1
  607. package/mobile/lib/ui-kit/Foldable/FoldableSection.js.map +1 -1
  608. package/mobile/lib/ui-kit/InnerTable/InnerTable.js +4 -3
  609. package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
  610. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +3 -5
  611. package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
  612. package/mobile/lib/ui-kit/Paragraph/Paragraph.d.ts +1 -8
  613. package/mobile/lib/ui-kit/Paragraph/Paragraph.js.map +1 -1
  614. package/mobile/lib/ui-kit/Paragraph/ParagraphProps.d.ts +7 -0
  615. package/mobile/lib/ui-kit/Paragraph/ParagraphProps.js +2 -0
  616. package/mobile/lib/ui-kit/Paragraph/ParagraphProps.js.map +1 -0
  617. package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
  618. package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
  619. package/mobile/lib/ui-kit/Radio/RadioProps.d.ts +1 -2
  620. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  621. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +19 -0
  622. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +33 -0
  623. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -0
  624. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +17 -38
  625. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  626. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +7 -4
  627. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +10 -27
  628. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  629. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +3 -3
  630. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.d.ts +14 -0
  631. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js +14 -0
  632. package/mobile/lib/ui-kit/SwipeListControl/SwipeListItem.js.map +1 -0
  633. package/mobile/lib/ui-kit/SwipeListControl/scrollBy.d.ts +1 -0
  634. package/mobile/lib/ui-kit/SwipeListControl/scrollBy.js +5 -0
  635. package/mobile/lib/ui-kit/SwipeListControl/scrollBy.js.map +1 -0
  636. package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.d.ts +1 -0
  637. package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.js +4 -0
  638. package/mobile/lib/ui-kit/SwipeListControl/scrollToEnd.js.map +1 -0
  639. package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.d.ts +1 -0
  640. package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.js +4 -0
  641. package/mobile/lib/ui-kit/SwipeListControl/scrollToStart.js.map +1 -0
  642. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +17 -0
  643. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +54 -0
  644. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -0
  645. package/mobile/lib/ui-kit/Text/Text.d.ts +1 -26
  646. package/mobile/lib/ui-kit/Text/Text.js.map +1 -1
  647. package/mobile/lib/ui-kit/Text/TextProps.d.ts +26 -0
  648. package/mobile/lib/ui-kit/Text/TextProps.js +2 -0
  649. package/mobile/lib/ui-kit/Text/TextProps.js.map +1 -0
  650. package/mobile/lib/utils/areArraysEqual.d.ts +1 -0
  651. package/mobile/lib/utils/areArraysEqual.js +2 -0
  652. package/mobile/lib/utils/areArraysEqual.js.map +1 -0
  653. package/mobile/lib/utils/mapChildren.d.ts +2 -0
  654. package/mobile/lib/utils/mapChildren.js +7 -0
  655. package/mobile/lib/utils/mapChildren.js.map +1 -0
  656. package/mobile/lib/utils/maxBy.d.ts +2 -2
  657. package/mobile/lib/utils/maxBy.js +2 -2
  658. package/mobile/lib/utils/maxBy.js.map +1 -1
  659. package/mobile/lib/utils/minBy.d.ts +1 -0
  660. package/mobile/lib/utils/minBy.js +3 -0
  661. package/mobile/lib/utils/minBy.js.map +1 -0
  662. package/mobile/src/common.css +0 -7
  663. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +5 -3
  664. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +5 -3
  665. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +6 -3
  666. package/mobile/src/components/Carousel/Carousel.tsx +42 -23
  667. package/mobile/src/components/CarouselCard/CarouselCard.tsx +2 -2
  668. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +28 -0
  669. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +83 -0
  670. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.ui.json +9 -0
  671. package/mobile/src/components/{InvestmentGallery/InvestmentGalleryContent.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.ts} +20 -25
  672. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +25 -0
  673. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +36 -0
  674. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +1 -0
  675. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +13 -0
  676. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +25 -29
  677. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
  678. package/mobile/src/components/Gallery/Gallery.tsx +1 -1
  679. package/mobile/src/components/Gallery/GalleryCardInner.tsx +7 -1
  680. package/mobile/src/components/Gallery/GalleryContent.ts +5 -0
  681. package/mobile/src/components/Gallery/GalleryInner.tsx +0 -1
  682. package/mobile/src/components/Header/Header.tsx +4 -6
  683. package/mobile/src/components/Header/HeaderSubMenu.tsx +3 -4
  684. package/mobile/src/components/Header/HeaderSubMenuItem.tsx +5 -2
  685. package/mobile/src/components/ImgBlock/ImgBlock.example.json +11 -0
  686. package/mobile/src/components/ImgBlock/ImgBlock.tsx +17 -0
  687. package/mobile/src/components/ImgBlock/ImgBlock.ui.json +7 -0
  688. package/mobile/src/components/ImgBlock/ImgBlockContent.ts +8 -0
  689. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -11
  690. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -3
  691. package/mobile/src/components/ParagraphBlock/ParagraphBlock.example.json +5 -0
  692. package/mobile/src/components/ParagraphBlock/ParagraphBlock.tsx +19 -0
  693. package/mobile/src/components/ParagraphBlock/ParagraphBlock.ui.json +1 -0
  694. package/mobile/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -0
  695. package/mobile/src/components/ProductGallery/ProductGallery.tsx +13 -13
  696. package/mobile/src/components/RollupItem/RollupItem.tsx +10 -1
  697. package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +24 -26
  698. package/mobile/src/components/SafeDepositRental/RenderRadioButtons.tsx +2 -3
  699. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -5
  700. package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +3 -3
  701. package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +3 -3
  702. package/mobile/src/components/TariffsTable/TableTileHeader.tsx +8 -10
  703. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +11 -4
  704. package/mobile/src/components/Video/VideoContent.ts +1 -0
  705. package/mobile/src/hooks/useIntersectionObserver.ts +23 -2
  706. package/mobile/src/hooks/useLink.ts +2 -2
  707. package/mobile/src/ui-kit/BlockWrapper.tsx +1 -16
  708. package/mobile/src/ui-kit/Button/ArrowButton.tsx +13 -0
  709. package/mobile/src/ui-kit/Foldable/FoldableSection.tsx +3 -1
  710. package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +4 -5
  711. package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +6 -5
  712. package/mobile/src/ui-kit/Paragraph/Paragraph.tsx +1 -8
  713. package/mobile/src/ui-kit/Paragraph/ParagraphProps.ts +8 -0
  714. package/mobile/src/ui-kit/Radio/Radio.tsx +1 -1
  715. package/mobile/src/ui-kit/Radio/RadioProps.ts +1 -1
  716. package/mobile/src/ui-kit/Select/Select.tsx +0 -1
  717. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +97 -0
  718. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +31 -55
  719. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +25 -59
  720. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +3 -3
  721. package/mobile/src/ui-kit/SwipeListControl/SwipeListItem.tsx +44 -0
  722. package/mobile/src/ui-kit/SwipeListControl/scrollBy.ts +10 -0
  723. package/mobile/src/ui-kit/SwipeListControl/scrollToEnd.ts +3 -0
  724. package/mobile/src/ui-kit/SwipeListControl/scrollToStart.ts +3 -0
  725. package/mobile/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +84 -0
  726. package/mobile/src/ui-kit/Text/Text.tsx +1 -63
  727. package/mobile/src/ui-kit/Text/TextProps.ts +63 -0
  728. package/mobile/src/utils/areArraysEqual.ts +2 -0
  729. package/mobile/src/utils/mapChildren.ts +11 -0
  730. package/mobile/src/utils/maxBy.ts +3 -4
  731. package/mobile/src/utils/minBy.ts +5 -0
  732. package/package.json +2 -2
  733. package/src/common.css +0 -7
  734. package/src/components/Blocks.ts +9 -3
  735. package/src/components/Calculator/BonusCalculatorForm.tsx +5 -3
  736. package/src/components/Calculator/CreditCalculatorForm.tsx +5 -3
  737. package/src/components/Calculator/DepositCalculatorForm.tsx +6 -3
  738. package/src/components/Carousel/Carousel.fixture.tsx +40 -1
  739. package/src/components/Carousel/Carousel.tsx +42 -23
  740. package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
  741. package/src/components/CarouselCard/CarouselCard.tsx +2 -2
  742. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.example.json +28 -0
  743. package/src/components/{InvestmentGallery/InvestmentGallery.fixture.tsx → CarouselInvestmentCard/CarouselInvestmentCard.fixture.tsx} +21 -27
  744. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +83 -0
  745. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.ui.json +9 -0
  746. package/src/components/{InvestmentGallery/InvestmentGalleryContent.ts → CarouselInvestmentCard/CarouselInvestmentCardContent.ts} +20 -25
  747. package/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +25 -0
  748. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +38 -0
  749. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +36 -0
  750. package/src/components/CarouselProgramsCard/CarouselProgramsCard.ui.json +1 -0
  751. package/src/components/CarouselProgramsCard/CarouselProgramsCardContent.ts +13 -0
  752. package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +2 -2
  753. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +25 -29
  754. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +1 -1
  755. package/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
  756. package/src/components/Gallery/Gallery.mobile.tsx +1 -1
  757. package/src/components/Gallery/GalleryCardInner.tsx +7 -1
  758. package/src/components/Gallery/GalleryContent.ts +5 -0
  759. package/src/components/Gallery/GalleryInner.tsx +0 -1
  760. package/src/components/Header/Header.mobile.tsx +4 -6
  761. package/src/components/Header/HeaderSubMenu.tsx +3 -4
  762. package/src/components/Header/HeaderSubMenuItem.tsx +5 -2
  763. package/src/components/ImgBlock/ImgBlock.example.json +11 -0
  764. package/src/components/ImgBlock/ImgBlock.fixture.tsx +21 -0
  765. package/src/components/ImgBlock/ImgBlock.tsx +17 -0
  766. package/src/components/ImgBlock/ImgBlock.ui.json +7 -0
  767. package/src/components/ImgBlock/ImgBlockContent.ts +8 -0
  768. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +8 -11
  769. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -3
  770. package/src/components/ParagraphBlock/ParagraphBlock.example.json +5 -0
  771. package/src/components/ParagraphBlock/ParagraphBlock.fixture.tsx +45 -0
  772. package/src/components/ParagraphBlock/ParagraphBlock.tsx +19 -0
  773. package/src/components/ParagraphBlock/ParagraphBlock.ui.json +1 -0
  774. package/src/components/ParagraphBlock/ParagraphBlockContent.ts +9 -0
  775. package/src/components/ProductGallery/ProductGallery.tsx +13 -13
  776. package/src/components/RollupItem/RollupItem.tsx +10 -1
  777. package/src/components/SafeDepositRental/RegionsAndBranches.tsx +24 -26
  778. package/src/components/SafeDepositRental/RenderRadioButtons.tsx +2 -3
  779. package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -5
  780. package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +3 -3
  781. package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +3 -3
  782. package/src/components/StepsBlock/StepsBlock.tsx +2 -3
  783. package/src/components/TariffsTable/TableTileHeader.tsx +8 -10
  784. package/src/components/TariffsTable/TariffsTable.tsx +20 -22
  785. package/src/components/TariffsTable/TariffsTableRow.tsx +11 -4
  786. package/src/components/Video/VideoContent.ts +1 -0
  787. package/src/hooks/useIntersectionObserver.ts +23 -2
  788. package/src/hooks/useLink.ts +2 -2
  789. package/src/ui-kit/BlockWrapper.tsx +1 -16
  790. package/src/ui-kit/Button/ArrowButton.tsx +13 -0
  791. package/src/ui-kit/Foldable/FoldableSection.tsx +3 -1
  792. package/src/ui-kit/InnerTable/InnerTable.tsx +4 -5
  793. package/src/ui-kit/InnerTable/InnerTableBody.tsx +6 -5
  794. package/src/ui-kit/Paragraph/Paragraph.tsx +1 -8
  795. package/src/ui-kit/Paragraph/ParagraphProps.ts +8 -0
  796. package/src/ui-kit/Radio/Radio.tsx +1 -1
  797. package/src/ui-kit/Radio/RadioProps.ts +1 -1
  798. package/src/ui-kit/Select/Select.tsx +0 -1
  799. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +97 -0
  800. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +31 -55
  801. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +25 -59
  802. package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +3 -3
  803. package/src/ui-kit/SwipeListControl/SwipeListItem.tsx +44 -0
  804. package/src/ui-kit/SwipeListControl/scrollBy.ts +10 -0
  805. package/src/ui-kit/SwipeListControl/scrollToEnd.ts +3 -0
  806. package/src/ui-kit/SwipeListControl/scrollToStart.ts +3 -0
  807. package/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +84 -0
  808. package/src/ui-kit/Text/Text.tsx +1 -63
  809. package/src/ui-kit/Text/TextProps.ts +63 -0
  810. package/src/utils/areArraysEqual.ts +2 -0
  811. package/src/utils/mapChildren.ts +11 -0
  812. package/src/utils/maxBy.ts +3 -4
  813. package/src/utils/minBy.ts +5 -0
  814. package/tailwind.config.cjs +8 -0
  815. package/bundle/components/Carousel/CarouselContainer.d.ts +0 -10
  816. package/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  817. package/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  818. package/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  819. package/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  820. package/bundle/ui-kit/SwipeListControl/constants.d.ts +0 -2
  821. package/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  822. package/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  823. package/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  824. package/dist/components/Carousel/CarouselContainer.d.ts +0 -10
  825. package/dist/components/Carousel/CarouselContainer.js +0 -14
  826. package/dist/components/Carousel/CarouselContainer.js.map +0 -1
  827. package/dist/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  828. package/dist/components/InvestmentGallery/InvestmentGallery.js +0 -26
  829. package/dist/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  830. package/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  831. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js +0 -23
  832. package/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  833. package/dist/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  834. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  835. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -8
  836. package/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  837. package/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  838. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js +0 -11
  839. package/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  840. package/dist/ui-kit/SwipeListControl/constants.d.ts +0 -2
  841. package/dist/ui-kit/SwipeListControl/constants.js +0 -12
  842. package/dist/ui-kit/SwipeListControl/constants.js.map +0 -1
  843. package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  844. package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -13
  845. package/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  846. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  847. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -19
  848. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  849. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  850. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -33
  851. package/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  852. package/lib/components/Carousel/CarouselContainer.d.ts +0 -10
  853. package/lib/components/Carousel/CarouselContainer.js +0 -12
  854. package/lib/components/Carousel/CarouselContainer.js.map +0 -1
  855. package/lib/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  856. package/lib/components/InvestmentGallery/InvestmentGallery.js +0 -24
  857. package/lib/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  858. package/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  859. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js +0 -21
  860. package/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  861. package/lib/components/InvestmentGallery/InvestmentGalleryContent.js +0 -2
  862. package/lib/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  863. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  864. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -6
  865. package/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  866. package/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  867. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js +0 -9
  868. package/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  869. package/lib/ui-kit/SwipeListControl/constants.d.ts +0 -2
  870. package/lib/ui-kit/SwipeListControl/constants.js +0 -10
  871. package/lib/ui-kit/SwipeListControl/constants.js.map +0 -1
  872. package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  873. package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -10
  874. package/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  875. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -7
  876. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -16
  877. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  878. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -11
  879. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -30
  880. package/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  881. package/mobile/bundle/components/Carousel/CarouselContainer.d.ts +0 -10
  882. package/mobile/bundle/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  883. package/mobile/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  884. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  885. package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  886. package/mobile/bundle/ui-kit/SwipeListControl/constants.d.ts +0 -2
  887. package/mobile/bundle/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  888. package/mobile/bundle/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  889. package/mobile/bundle/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  890. package/mobile/dist/components/Carousel/CarouselContainer.d.ts +0 -10
  891. package/mobile/dist/components/Carousel/CarouselContainer.js +0 -14
  892. package/mobile/dist/components/Carousel/CarouselContainer.js.map +0 -1
  893. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  894. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js +0 -26
  895. package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  896. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  897. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js +0 -23
  898. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  899. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.d.ts +0 -50
  900. package/mobile/dist/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  901. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  902. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -8
  903. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  904. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  905. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js +0 -11
  906. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  907. package/mobile/dist/ui-kit/SwipeListControl/constants.d.ts +0 -2
  908. package/mobile/dist/ui-kit/SwipeListControl/constants.js +0 -12
  909. package/mobile/dist/ui-kit/SwipeListControl/constants.js.map +0 -1
  910. package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  911. package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -13
  912. package/mobile/dist/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  913. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  914. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -19
  915. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  916. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  917. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -33
  918. package/mobile/dist/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  919. package/mobile/lib/components/Carousel/CarouselContainer.d.ts +0 -10
  920. package/mobile/lib/components/Carousel/CarouselContainer.js +0 -12
  921. package/mobile/lib/components/Carousel/CarouselContainer.js.map +0 -1
  922. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.d.ts +0 -5
  923. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js +0 -24
  924. package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js.map +0 -1
  925. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +0 -7
  926. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js +0 -21
  927. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +0 -1
  928. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.d.ts +0 -50
  929. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.js +0 -2
  930. package/mobile/lib/components/InvestmentGallery/InvestmentGalleryContent.js.map +0 -1
  931. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.d.ts +0 -9
  932. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js +0 -6
  933. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlItem.js.map +0 -1
  934. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.d.ts +0 -11
  935. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js +0 -9
  936. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlList.js.map +0 -1
  937. package/mobile/lib/ui-kit/SwipeListControl/constants.d.ts +0 -2
  938. package/mobile/lib/ui-kit/SwipeListControl/constants.js +0 -10
  939. package/mobile/lib/ui-kit/SwipeListControl/constants.js.map +0 -1
  940. package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.d.ts +0 -1
  941. package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js +0 -10
  942. package/mobile/lib/ui-kit/SwipeListControl/utils/getContainerStyle.js.map +0 -1
  943. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.d.ts +0 -4
  944. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +0 -16
  945. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +0 -1
  946. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.d.ts +0 -8
  947. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js +0 -30
  948. package/mobile/lib/ui-kit/SwipeListControl/utils/getScrollPoints.js.map +0 -1
  949. package/mobile/src/components/Carousel/CarouselContainer.tsx +0 -34
  950. package/mobile/src/components/InvestmentGallery/InvestmentGallery.example.json +0 -64
  951. package/mobile/src/components/InvestmentGallery/InvestmentGallery.tsx +0 -66
  952. package/mobile/src/components/InvestmentGallery/InvestmentGallery.ui.json +0 -11
  953. package/mobile/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +0 -84
  954. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +0 -24
  955. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +0 -50
  956. package/mobile/src/ui-kit/SwipeListControl/constants.ts +0 -10
  957. package/mobile/src/ui-kit/SwipeListControl/utils/getContainerStyle.ts +0 -9
  958. package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +0 -25
  959. package/mobile/src/ui-kit/SwipeListControl/utils/getScrollPoints.ts +0 -49
  960. package/src/components/Carousel/CarouselContainer.tsx +0 -34
  961. package/src/components/InvestmentGallery/InvestmentGallery.example.json +0 -64
  962. package/src/components/InvestmentGallery/InvestmentGallery.tsx +0 -66
  963. package/src/components/InvestmentGallery/InvestmentGallery.ui.json +0 -11
  964. package/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +0 -84
  965. package/src/ui-kit/SwipeListControl/SwipeListControlItem.tsx +0 -24
  966. package/src/ui-kit/SwipeListControl/SwipeListControlList.tsx +0 -50
  967. package/src/ui-kit/SwipeListControl/constants.ts +0 -10
  968. package/src/ui-kit/SwipeListControl/utils/getContainerStyle.ts +0 -9
  969. package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +0 -25
  970. 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=2e6,Ke=97e4,qe=Math.round(23.5),Qe={minSum:6e4,maxSum:Ze,minMonths:13,maxMonths:60,rateBottomRange:10,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},et={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},tt={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:120,rate:5.9,isMonthlyInterestPayment:!0},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")||et,[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))||Qe,{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(Ke),[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=(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)},Rt="everyMonth",jt="atEndTerm",Vt=[{id:Rt,text:"Ежемесячно"},{id:jt,text:"В конце срока"}],Mt={CreditCalculatorForm:Tt,DepositCalculatorForm:p((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[a,i]=n(Ke),[s,o]=n(qe),[c,d]=n(!1),m=((e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n}=e,r=bt(t||"deposit-calculator-data")?.rows.find((e=>l===e.isMonthlyInterestPayment))||tt,{rate:a}=r,i=Bt(a,e),s=n+i;return{...r,...e,income:i,finalSum:s}})({moneyValue:a,monthsValue:s,isMonthlyInterestPayment:c},t),{income:p,finalSum:x,rate:b}=m;return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[dt("Сумма вклада, ₽",{...m},i),kt("Срок вклада, месяцев",{...m},o)]}),h(lt,{rate:b||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[p?h(Ye,{title:"Доход по вкладу",value:p,postfix:"₽",prefix:"+"}):null,x?h(Ye,{title:"Сумма в конце срока",value:x,postfix:"₽"}):null,h(wt,{items:Vt,checkedItem:c?Rt:jt,onChange:e=>d(e===Rt)}),nt(l),rt(r)]})]})})),BonusCalculatorForm:ft},_t=(e,t)=>{const l=e?.calcType;if(!l||!(l in Mt))return null;const n=Mt[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))},Dt=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?Lt({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(_t):null})]})}));function Lt({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 At=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,Ot=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},Et=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),Ft=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]})})),zt=p((({className:e="",onChange:t,minValue:l=0,maxValue:n=3e5,...r})=>{const i=a((e=>{if(!t)return;const r=At(Ot(Et(it(e))));const a=Ut(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(Ft,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...r,children:h("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Ut=(e,t)=>Number(e)===t?e:String(t),Pt=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(zt,{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]})]})})),Xt=["[&>*]:min-w-[100%]","[&>*]:min-w-[50%]","[&>*]:min-w-[33.33%]"],Ht=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?Xt[l-1]:""}`,style:{transform:`translateX(${s})`},role:"list",ref:n,children:r})})),Gt="absolute top-0 bottom-0 z-50 w-[84px]",Wt=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(Ht,{activeIndex:d,itemCount:o,visibleItemCount:l,containerRef:c,children:k(a)}),p&&n?u("div",{children:[h("div",{className:`${Gt} left-0 bg-opacity-from-white`}),h("div",{className:`${Gt} right-0 bg-opacity-to-white`})]}):null,We({...m,btnClass:["left-8","right-8"],className:"top-1/2"})]})}));Wt.childrenTypes=["CarouselCard","CarouselTariffsCard"];const Jt="absolute border border-solid border-main-stroke w-full h-full",Yt={normal:"w-[1055px]",mini:"w-[398px]"},Zt=p((({className:e="",button:t,description:l,title:n,version:r="normal"})=>h("section",{className:`flex pb-9 pl-12 ${Yt[r]} ${e}`,children:u("div",{className:"relative w-full",children:[h("div",{className:`${Jt} z-10 top-9 right-12 bg-green-dark`}),h("div",{className:`${Jt} z-10 top-6 right-8 bg-green`}),h("div",{className:`${Jt} 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]})]})}))),Kt="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",qt=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:`${Kt} mx-1.5 mt-1.5`}),h("div",{className:`${Kt} 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?el(n):null]}))),el=e=>{const t=Math.ceil(e.length/12);return h(Wt,{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(qt,{className:"m-1",...e},String(t))))},String(l))))})},tl=p((({className:e="",title:t,icon:l,isHighlighting:n,button:r,rows:a=[],...i})=>{const s=ll(Boolean(n)),o=a.map(rl),[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?al():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?nl:null}):null]})})),ll=e=>e?"mt-9 pt-[71px]":"mt-[70px] pt-9",nl=({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})]}),rl=(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)),al=()=>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:"Хит"})]}),il={black:"bg-black",white:"bg-white"},sl=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(ol)]}):null,r?u("div",{className:"text-h3 text-left",children:[r," ₽"]}):null,a?Be({button:a,buttonClassName:"mt-5 w-full"}):null]}))),ol=(e,t)=>h("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${il[e]}`},String(t)),cl="absolute top-0 bottom-0 w-[84px]",dl=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(sl,{...e},String(t)))):null}),We({...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`})]})})),ml="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",hl="border-main-stroke border-solid border",ul="border-main-divider border border-t-0 border-x-0",pl="w-[200px] mr-6",xl=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] ${hl} ${ml}`,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})})})]}))),bl={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},gl=p((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>h("div",{className:"flex flex-1 overflow-hidden",children:h("div",{className:bl[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),fl=p((({children:e})=>h("div",{className:"self-start flex flex-col",role:"row",children:h("div",{className:"flex",children:e})}))),vl=p((({colHeaders:e,activeIndex:t})=>u(fl,{children:[h("div",{className:pl,role:"columnheader"}),h(gl,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>h(xl,{...e},String(t))))})]}))),Nl=p((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>h("div",{className:`w-80 box-border flex flex-col ${hl} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?ml:""}`,role:"cell",children:h("div",{className:`mx-7 h-full ${ul} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>kl(e,t,n)))})}))),yl=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),wl=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),kl=({label:e,description:t},l,n)=>u("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?h("h4",{className:yl(n),children:e}):null,t?h("div",{className:wl(n),children:t}):null]},String(l)),Cl=(e=!1)=>`text-s py-7 ${ul} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,$l=p((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:r,isLastRow:a})=>u(fl,{children:[e?.title?h("div",{className:Cl(a),children:e.title}):null,t?.length?h(gl,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>h(Nl,{cell:e,isFirstRow:r,isLastRow:a,isFillGradient:n&&0===t},String(t))))}):null]}))),Sl=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($l,{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]})})),Il=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(vl,{colHeaders:a,activeIndex:o}):null,s?.length?h(Sl,{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]})})),Tl=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(Il,{columns:r,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?Bl({isShowAllRow:c,onClick:m}):null]})})),Bl=({isShowAllRow:e,onClick:t})=>h("div",{className:"pr-[50px]",children:u("div",{className:"flex w-full",children:[h("div",{className:pl}),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?"Скрыть":"Показать все параметры"})})]})}),Rl=p((({className:e="",contacts:t,info:l,version:n="secondary",...r})=>u(B,{className:`${q[n]} flex p-[50px] ${e}`,...r,children:[l?.length?jl(l,n):null,t?.length?jl(t,n):null]}))),jl=(e,t)=>h("div",{className:"flex grow basis-0",children:e.map(((e,l)=>Vl({column:e,index:l,version:t})))}),Vl=({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,Ml=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,_l=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:Ml(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]}))),Dl=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 Ll;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(Ll||(Ll={}));const Al=new Intl.NumberFormat("ru",{style:"currency",currency:Ll.RUB}),Ol=e=>e?Al.format(e):"",El="text-left text-m-light text-secondary-text",Fl={USD:"DollarIcon",EUR:"EuroIcon"},zl=p((({className:e,exchangeCurrencyItems:t})=>u("table",{className:`h-fit w-fit ${e}`,children:[h("thead",{children:u("tr",{children:[h("th",{className:El,children:"Валюта"}),h("th",{className:`${El} pl-11`,children:"Купить"}),h("th",{className:`${El} pl-11`,children:"Продать"})]})}),h("tbody",{children:t.map(Ul)})]}))),Ul=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:Fl[t]},width:"24",height:"24"}):null,h("span",{className:"ml-2",children:t})]})}),h("td",{className:"pt-4 pl-11",children:Ol(e?.saleExchangeRate)}),h("td",{className:"pt-4 pl-11",children:Ol(e?.buyExchangeRate)})]},t)},Pl=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:"Курс указан для заданного офиса"})]})]}))),Xl=(e,t,l)=>{const n=Number(Hl(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)},Hl=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Gl=e=>{return(t=[[e=>e.value!==Ll.RUB&&e.oppositeValue!==Ll.RUB,()=>e.handleConvert(e.value,Ll.RUB)],[e=>e.value===Ll.RUB&&e.oppositeValue===Ll.RUB,()=>e.handleConvert(e.value,Ll.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function Wl(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 Jl=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=Wl(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 ${Kl(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 ${Yl(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(Zl((e=>{m(e),x(!1),o(e)}),p,(e=>Boolean(e.key===d.key))))})}):null]})]})})),Yl=e=>e?"":"overflow-hidden",Zl=(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)),Kl=e=>e?"border border-main-stroke rounded-md hover:border-primary-hover":"";function ql(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(Ft,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:r,onChange:a}),s.length?h(Jl,{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||Ll.RUB,selectBuy:l?.[0]?.currency?.currency||Ll.USD}),o=a((e=>s((t=>({...t,...e})))),[]);return u("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[ql({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:en(i,o,l),value:i.inputSell,setValue:e=>ln(o,l)(e,i.selectSell,i.selectBuy)}),ql({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:tn(i,o,t),value:i.inputBuy,setValue:e=>nn(o,t)(e,i.selectBuy,i.selectSell)}),r?.text?h($e,{className:"py-4 mr-1",version:r?.version,...r,children:r.text}):null]})})),en=(e,t,l)=>n=>{t({selectSell:n}),Gl({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,r=e.selectBuy)=>{ln(t,l)(e.inputSell,n,r)}})},tn=(e,t,l)=>n=>{t({selectBuy:n}),Gl({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,r=e.selectSell)=>nn(t,l)(e.inputBuy,n,r)})},ln=(e,t)=>(l,n,r)=>{e({inputSell:Hl(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(Xl(l,a,n===Ll.RUB)||"")})},nn=(e,t)=>(l,n,r)=>{e({inputBuy:Hl(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(Xl(l,a,n===Ll.RUB)||"")})};const rn=async e=>{const t=await an(),l=t?.code||"000";return{region:t,exchangeRates:await sn(e,l)}},an=async()=>{try{return await xt("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},sn=async(e,t)=>{try{return await xt(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},on=p((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:r}=function(){const{data:e}=ht("/api/v1/exchangerates",rn);return e||{}}(),a=cn(r?.exchangeRate?.currencies),i=a.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:Ll.RUB}});const s=a.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Ll.RUB}}),h(B,{className:`bg-white text-primary-text font-sans p-9 box-border min-h-[320px] ${e}`,...n,children:h(Dl,{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(zl,{className:"mb-[30px]",exchangeCurrencyItems:a}):null,h(Pl,{address:r?.address})]}),a.length&&i.length&&s.length?h(Ql,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),cn=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[];function dn(e,t={}){const{data:l}=ht(`/wcms-resources/${e}.json`,xt,{fallback:t});return l||{}}const mn={"bg-white":"color",transparent:"white"},hn={"bg-white":"text-primary-main",transparent:"text-white"},un={"bg-white":"text-primary-text",transparent:"text-white"},pn=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:hn[a],width:"40",height:"45",asSVG:!0}:{image:{icon:l?.image?.icon||"LogoIcon",iconVersion:mn[a]},className:`${hn[a]} w-10`,width:"40",height:"45",asSVG:!0}),i?xn(n,a,l?.title):null]}))),xn=(e,t,l)=>h("span",{className:`${un[t]} font-medium ml-2.5`,children:e||l||"Россельхозбанк"}),bn=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:"Найти"})})]})})),gn=p((e=>h(bn,{...e}))),fn=p((({className:e="",items:t,hasButton:l})=>u("div",{className:e,children:[t?.length?t.map(vn):null,l?h($e,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),vn=(e,t)=>{const{type:l,text:n,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:Nn(l,n)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},Nn=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${yn(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})}},yn=e=>e.replaceAll(/\D/g,""),wn=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}`})})),kn=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(wn,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),Cn=e=>t=>e?.href===t?.href,$n=(e,t)=>{return(n=e,r=t,(n||[]).map((e=>r?.find(Cn(e))||e))).concat((l=e,(t||[]).filter((e=>!l?.find(Cn(e))))));var l,n,r},Sn=p((({className:e="",items:t,fallback:l})=>{const n=pe(),r=dn(c.SITEMAP||"sitemap",l),a=$n(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)=>In(n(e),t)))})})),In=(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(Tn,{...e,index:t},String(t))))]},String(t))},Tn=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}`})})),Bn=[{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"}],Rn=p((({version:e="primary",...t})=>{const l=pe(),{href:n,onClick:r}=l(t),{icon:a,label:i}=Bn.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})})),jn=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(Rn,{version:l,...e},String(t))))}),h("span",{className:"text-s-light text-secondary-text",children:n})]}))),Vn=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}`})})),Mn=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(Vn,{index:t,...e},String(t))))}):null]}))),_n="w-[204px]",Dn=p((({className:e,...t})=>{const l=t.options?.page?.fallback,{documents:n,relatedEnterprises:r,contacts:a,socialMedia:i,mobileApps:s,topItems:o}=dn(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(pn,{className:_n}),h(gn,{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(fn,{items:a,hasButton:!0}),h(jn,{media:i,children:"Соцсети"}),h(jn,{className:"mt-6",media:s,children:"Мобильное приложение"})]}),h(Sn,{className:"pt-[3px]",items:o,fallback:l})]}),h(kn,{className:"mt-[98px]",links:r}),h(Mn,{links:n})]})})),Ln={normal:3,mini:4},An={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},On={normal:380,mini:276},En={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},Fn={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"},zn=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 ${En[n]} ${Fn[r]}`})}):null,h("span",{children:l})]}))),Un={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},Pn={S:"text-l-light",M:"text-h6",L:"text-h5"},Xn={S:"ml-2",M:"ml-3",L:"ml-4"},Hn=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:`${Un[s]} ${Pn[i]} ${t} ${l?Xn[i]:""}`,role:"list",children:a.map(((e,t)=>h(zn,{className:`${r} mb-1.5`,isDotted:n,version:s,size:i,children:e},String(t))))}):null})),Gn=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:[Wn(r,s),Jn(t,e),Yn(l,e),a?.length?Kn(a,o,s):null,Zn(n)]}),i?.text?Be({button:i,buttonClassName:"mt-6"}):null]}))),Wn=(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]}),Jn=(e,t)=>t?h("div",{className:Me[e],children:t}):null,Yn=(e,t)=>e?h("div",{className:"text-l "+(t?"mt-2":""),children:e}):null,Zn=e=>e?h("div",{className:"text-m-light text-secondary-text mt-auto",children:e}):null,Kn=(e,t,l="primary")=>h(Hn,{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}),qn=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<=Ln[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${n*On[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 ${An[t]} ${q[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:h(Gn,{...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:Ln[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(qn,{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]})})),er=p((e=>h(Qn,{...e,version:"normal"}))),tr=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?lr(n):null]}))),lr=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=>nr(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:rr(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}`)))})]})},nr=(e,t)=>e.month?.map(((e,l)=>h("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),rr=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)),ar=(e,t,l=((e,t)=>t.startsWith(e)))=>l(ce(e),ce(oe(e)?t.href:t.pathname)),ir=e=>t=>ar(t.href,e),sr=e=>t=>t.items?.some(ir(e))||ar(t.href,e)||((e,t)=>de(e)===de(t.href))(t.href,e),or="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:`${dr(r,t,l)} ${e}`,href:o,target:c,onClick:m,rel:"noopener noreferrer","aria-label":n,children:h("span",{className:mr(r,t,l),children:d||a})})})),dr=(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"}`},mr=(e,t=!1,l=!1)=>{if("transparent"===e)return`text-white hover:text-primary-hover ${or}`;return`${t?"text-primary-main":(l?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${or}`},hr=o("https://10.80.4.9");const ur=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}))),pr={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},xr={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},br={"bg-white":"black",transparent:"white"},gr=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((()=>{hr.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(ur,{className:`mr-5 group ${pr[i]}`,ariaLabel:"Поиск по сайту",children:h(W,{image:{icon:"LoupeIcon",iconVersion:br[i]},className:"h-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0 pointer-events-none",asSVG:!0})}),h(ur,{className:`${xr[i]} group min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:h(W,{image:{icon:"GridIcon",iconVersion:br[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})})]})})),fr={"bg-white":"bg-primary-text",transparent:"bg-white"},vr=p((({className:e,items:t,activeItem:l,bgColor:r})=>{const i=pe(),[s,o]=n(!1),c=a((()=>o((e=>!e))),[]),d=Wl(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(Nr)}),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))))})]})})),Nr=(e,t)=>h("div",{className:`w-[3px] h-[3px] rounded mr-1 ${fr[e]}`},String(t)),yr="absolute left-0 -bottom-3 w-full h-[2px]",wr=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:kr(l,t),children:c||r}),t?h("div",{className:Cr(l,t)}):null]})})),kr=(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`},Cr=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${yr}`:yr,$r=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(wr,{className:e,active:t,bgColor:l,...s,children:i})})})),Sr=p((({subItems:e=[],bgColor:t})=>{const l=(e=>(t=[])=>{const l=t?.filter(ir(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?Ir(t):Tr(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($r,{className:"mr-8 "+(r-1<n?"invisible":""),active:e===l,bgColor:t,observerOptions:d,onVisibilityChange:m[n],...e},String(n))))}),o.length?h(vr,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:o,activeItem:l,bgColor:t}):null]})})),Ir=e=>t=>Math.max(t,e+1),Tr=e=>t=>Math.min(t,e),Br={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Rr=p((({bgColor:e="bg-white",className:t="",showSubMenu:l=!0,...n})=>{const r=ue(),{topItems:a,logo:i,defaultLocation:s,officesLink:o}=dn(c.SITEMAP||"sitemap",n.options?.page?.fallback),d=l?jr(a,r):null,m=a?.map(((t,l)=>h(cr,{active:t===d,"aria-label":t.text,bgColor:e,...t},String(l))));return h(B,{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(pn,{className:"mr-8",bgColor:e,logo:i}),m,h(gr,{className:"ml-auto",defaultLocation:s,officesLink:o,bgColor:e})]}),h("div",{className:`mt-6 h-[1px] ${Br[e]}`}),l&&d?.items?.length?h(Sr,{subItems:d.items,bgColor:e}):null]})})})),jr=(e,t)=>{const[l]=e||[];return e?.find(sr(t))||l},Vr=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?Mr({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 Mr({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?_r("страховая сумма",e.sum):null,e?.fee?_r("страховой взнос",e.fee):null]}),Dr(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function _r(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 Dr(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 Lr=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:Ar({insuranceTabs:l,button:r})})]})})),Ar=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>h(Vr,{button:t,cards:e},String(l)))):null};const Or={primary:"border-main-stroke",secondary:"border-white/50"},Er={double:"flex gap-y-2 gap-x-10 flex-wrap",single:"flex gap-y-2 flex-col"},Fr=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 ${Or[s]}\n ${e}`,role:"listitem",children:h(Dl,{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:`${Er[t]}`,role:"list",children:zr(a,t)}):null]})})})})),zr=(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})),Ur="absolute top-0 bottom-0 w-[84px]",Pr=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(Xr(t,n)):null}),We({...i,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),h("div",{className:`${Ur} left-0 ${"secondary"===n?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${Ur} right-0 ${"secondary"===n?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Xr=(e,t)=>(l,n)=>h(Fr,{className:e,version:t,...l},String(n));function Hr(e){return t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:n},l):[l]),[])}const Gr={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},Wr={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Jr=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:[Hr(h("div",{className:"w-px h-4 bg-main-stroke"}))(s.map(Yr)),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(qr)})]}):null,l?.length?h(Hn,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:n}):null]})})})),Yr=(e,t,l)=>{const n=1===t,r=t===l.length-1;return h("div",{className:`${Zr(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(Kr)}):null},`column_${t}`)},Zr=(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(" "),Kr=(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 ${Wr[l]} ${Gr[n]} ${"XS"===l?"px-3":"px-11"}`,children:h("div",{className:"text-center",children:e.text})},`cell_${t}`):null},qr=(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&&ea(ta(o.href),s)})]}):null]})})),ea=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),ta=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},la=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}))),na=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(la,{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)),ra={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},aa=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(na,{className:`mt-8 ${ra[i]}`,columnsMode:i,documents:r,icon:a})]}))),ia=p((e=>h(Qn,{...e,version:"mini"}))),sa=e=>{const t="col-span-",l=e.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function oa(e=""){const t=sa(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(B,{className:`flex justify-between font-sans p-[50px] box-border relative min-h-[320px]\n ${oa(e)}\n ${q[r]}\n ${e}`,...d,children:[u(Dl,{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:[ma(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,da(r,a)]})]}),i?.src?h("div",{className:"absolute right-0 bottom-0",children:h(W,{image:i})}):null]})})),da=(e,t)=>t?.length?h(Hn,{items:t,itemClassName:"text-l-light mb-2 last:mb-0",version:e}):h("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),ma=e=>e?h("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null;function ha(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 ua={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"},pa=e=>h("a",{className:`select-none cursor-pointer px-9 h-12 bg-white bg-primary-main text-white ${Object.values(ua).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),xa={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)]"},ba=(e,t,l)=>u("div",{className:`${Object.values(xa).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"})]}),ga={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"},fa=(e,t,l)=>h("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(ga).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"})}),va=e=>globalThis[e];const Na=()=>function(e,t){const[l,i]=n(),s=a((()=>i(va(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(!va(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`),ya={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"},wa=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(ya).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:h(O,{name:l,width:"20",height:"16"})})})),ka=[{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:"Кафе"}],Ca={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"},$a=p((({points:e,className:t="",zoom:l=5,showSearchField:a=!1})=>{const i=s(null),o=Na(),[c,d]=n(),[m,p]=n(Ba(ka)),x=Sa(e);if(r((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:x,zoom:l,controls:[],suppressMapOpenBlock:!0}),ha(o,i.current,m)}))}),[o,i,m]),r((()=>{if(i.current&&m&&o){const e=m.length<1?Ba(ka):m;ha(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?ba(ka,0,(e=>{if(e){const t=Ba(e);p(t)}})):pa(x)}),h("div",{className:`${Object.values(Ca).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(wa,{yandexMaps:i}),h(wa,{yandexMaps:i,direction:"out"})]}),fa(i.current,o,`right-2 top-80 ${b}`)]})})),Sa=e=>[Ta(Ia(e,0)),Ta(Ia(e,1))],Ia=(e,t)=>e.map((e=>e[t])),Ta=e=>e.reduce(((e,t)=>e+t))/e.length,Ba=e=>e?e.map((e=>e.coords)):null,Ra=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],ja=({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:"Выходной"})})},Va=({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}`),Ma=({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?_a(n):null,r?h("div",{className:"pb-1 text-s-light text-secondary-text",children:r}):null]},`day${a}`),_a=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})}),Da={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 La=e=>e?pt(e,{method:"GET"}):{},Aa=p((({className:e=""})=>{const t=function(e){const{data:t}=ht(e?`/api/v1/branches?regionCode=${e}`:void 0,La);return console.warn("WARNING!!! Hook useOfficeMap RETURN MOCK object for testing!"),console.log("Hook useOfficeMap get this data:",t),Da}("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}),ja(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:Ra.map(Va)})]}),u("div",{className:"flex justify-between pt-8",children:[h("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?h($a,{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(Ma)})]})]})})),Oa=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(Ea)}):null]}))),Ea=(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)}`),Fa=p((({className:e="",...t})=>h(B,{className:`font-sans text-primary-text ${e}`,...t,children:k(t)})));Fa.childrenTypes=["OtherProductsItem"];const za=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]}))),Ua=({isUnfolded:e,onToggle:t})=>h(za,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Pa=["ArrowDownIcon","ArrowUpIcon"],Xa=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(za,{label:t,icon:Pa[Number(e)],dataTheme:r||n.options?.page?.colorPalette,onClick:l})})})}));Xa.childrenTypes=[];const Ha={primary:"text-primary-text",secondary:"text-white"},Ga={primary:"text-secondary-text",secondary:"text-white"},Wa=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:Ja(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 ${Ha[a]}`,children:n}):null,r?h("div",{className:`text-m-light ${Ga[a]}`,children:r}):null]})]})}));function Ja(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 Ya=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(Za(a))}):null,Ka(Number(i),Number(s))]})]})]}))),Za=e=>(t,l)=>h(Wa,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));function Ka(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?qa("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?qa("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function qa(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=sa(e);return t<=4?"S":t<=8?"M":"L"}function ei(e=""){const t=sa(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ti=p((({className:e,title:t,description:l="Блок в разработке...",...n})=>u(B,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${ei(e)} ${oa(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:li()})]}))),li=(e=3)=>ri(100,e).map((e=>Math.floor(e))).map(ni),ni=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),ri=(e,t)=>[e].concat(t>0?ri(e/1.618,t-1):[]),ai=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})})),ii=(e="primary",t="normal")=>({icon:l,label:n,description:r},a)=>h(Wa,{icon:l,label:n,description:r,version:e,benefitsVersion:t},String(a)),si=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=oi(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(Dl,{buttons:s?.length?h(Te,{buttons:s,className:"flex gap-4",...b}):null,children:[g?h("div",{className:f,children:a.map(ii(m,i))}):null,d?.length?h(Hn,{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})]})})),oi=(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(W,{className:"w-4 h-4",image:{...o,iconVersion:o.iconVersion||s},asSVG:!0})}),n?h("span",{className:"text-m",children:n}):null]})}const di={primary:"text-secondary-text",secondary:"text-white/80"},mi=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?ci(n,i,"mb-10 -mt-2.5"):null,l?.length?h("div",{className:"text-xs-light mb-6",children:Hr(h("span",{className:`mx-2 ${di[r]}`,children:"/"}))(l.map(((e,t)=>h(ai,{className:di[r],...e},String(t)))))}):null,h(si,{version:r,...a})]})})),hi={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},ui=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?hi[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(si,{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 ${hi[r].title}`,o=a?"text-secondary-text text-l-light":`text-m-light ${hi[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} ${Or[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 pi=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]} ${ei(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}),xi(a,o,s),r?gi(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 xi(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(bi(t)):null})}function bi(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 gi(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 fi=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]} ${ei(e)} ${oa(e)} `,...i,children:h(Dl,{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:vi(l)}):null,h("div",{className:"text-l",children:n})]})})})));function vi(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Ni=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(Dl,{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(Hn,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:n,version:a}):null,i?h(jn,{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]})})})})),yi="absolute top-0 bottom-0 w-[84px]",wi=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(Ni,{version:n,className:Or[n],...e},String(t)))):null}),We({...i,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),h("div",{className:`${yi} left-0 ${"secondary"===n?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${yi} right-0 ${"secondary"===n?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),ki=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})=>Ci({isUnfolded:e,onToggle:l,label:t,version:r})})})));ki.childrenTypes=[];const Ci=({isUnfolded:e,onToggle:t,label:l,version:n})=>{const r=l?[l,l]:["Развернуть","Скрыть"];return"primary"===n?h($i,{icon:["PlusIcon","MinusIcon"][Number(e)],label:r[Number(e)],onClick:t}):h(za,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:r[Number(e)],onClick:t})},$i=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]}))),Si=[];const Ii=async e=>await pt(e,{method:"GET"})||Si,Ti=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(Jl,{options:s,label:i,placeholder:r||n,onChange:e=>a(e.key),value:o})})),Bi=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(Ti,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),h("div",{className:"max-w-[396px] w-1/2",children:h(Ti,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:r,setSelected:a,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Ri=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]})}))),ji=p((()=>{const[e,t]=n("option2"),l=e=>t(e.target.value);return u("div",{children:[h(Ri,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),h(Ri,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),Vi=["От 1 дня","До 365 дней"],Mi=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:Vi,onChange:t})]}))),_i=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(Ti,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),h("div",{className:"w-full",children:h(Ti,{data:n,fieldLabel:"safeBoxCasesSize",selected:r,setSelected:a,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Di=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(Bi,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:Li(c)}),h(Mi,{days:r,setDays:e=>c({days:e})}),h(_i,{caseVolumes:o,selectedCaseVolume:a,onSelectedCaseVolume:Ai(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(ji,{}),h($e,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Li=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Ai=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Oi=p((({days:e,tariffs:t=[]})=>{const l=Fi(e,t);return u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex",children:[Ei("Аренда за",e,"mr-11"),Ei("Цена",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"]})]})]})})),Ei=(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})]}),Fi=(e,t)=>{const l=zi(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},zi=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},Ui=(e,t)=>e.find((e=>e.branchCode===t)),Pi=p((e=>{const{regions:t,data:l,branches:n,onChange:a,onShowMapToggle:i}=e;r((()=>{a({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,a]);const s=Ui(n,l.selectedBranch),o=Xi(s?.safeBoxCaseVolumes),c=Hi(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=Gi(c,l.selectedBoxSize);return u("div",{className:"flex justify-between align-top mb-6",children:[h(Di,{...l,regions:t,onShowMapToggle:i,branches:n,caseVolumes:o,safeBoxCases:c,onChange:a}),h(Oi,{days:l.days,tariffs:d})]})})),Xi=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Hi=(e,t)=>e?.find((e=>e.volume===t)),Gi=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;const Wi=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=Ji(o.selectedRegion,d),p=function(e){const{data:t}=ht(e?`/api/v1/safeboxes?regionCode=${e}`:null,Ii);return t||Si}(m),x=a((e=>c((t=>({...t,...e})))),[c]),b=(g=Ui(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(Pi,{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($a,{points:b,className:"h-[640px]"}):null]})})),Ji=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Yi=e=>Boolean(e?.icon||e?.src),Zi=({items:e,isDotted:t=!0,version:l="primary",className:n=""})=>e?h(Hn,{className:n,version:l,items:e,listItemSize:"M",isDotted:t}):null,Ki=({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 ${ts(a)}`,children:[u("div",{className:(o?.text?"mb-8":"")+" text-center",children:[qi(i),u("div",{className:`${m} flex flex-col items-center`,children:[Qi({description:s,className:e.description}),Zi({items:c,isDotted:d,version:l,className:es({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))},qi=e=>e?h("div",{className:"text-h6",children:e}):null,Qi=({description:e,className:t=""})=>e?h("div",{className:t,children:e}):null,es=({className:e,description:t,styleMap:l})=>[t?l.description:"text-h6",t?"mt-0.5":"",e].join(" "),ts=e=>e<5?"w-[276px]":"w-[210px]",ls={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"}},ns=p((({className:e="",showLines:t=!0,steps:l=[],button:n,version:r="primary",...a})=>{const{title:i}=a,s=ls[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:Hr(h("div",{className:`h-0.5 w-full bg-secondary-light ${c}`}))(l.map(rs(s,r)))}),h("div",{className:"flex justify-between mt-4 "+(o?"gap-x-3":"gap-x-[101px]"),children:l.map(Ki({styleMap:s,isMainButton:Boolean(n?.text),version:r}))})]}):null,n?.text?h($e,{className:"mt-8 min-w-[240px]",version:"primary",...n}):null]})})),rs=(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:Yi(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 as="h-12 flex-1 flex items-center justify-center cursor-pointer",is="bg-primary-main",ss="group bg-white",os="font-sans text-m",cs="text-white",ds="text-secondary-text group-hover:text-primary-main",ms=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:`${as} ${r?is:ss}`,target:t.target,href:s.href,onClick:s.onClick,children:h("span",{className:`${os} ${r?cs:ds}`,children:t.text})})})),hs=(e,t)=>h("h3",{className:`${os} ${t?cs:ds}`,children:e}),us=(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}),ps=({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:`${as} ${i?is:ss}`,role:"tab","aria-selected":i,onClick:()=>n(r),children:u("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?hs(r.title,i):null,l&&s?us(s,i):null]})},String(a))})({page:e,currentTab:t,showCounter:l,onClick:n})(r,a);case"link":return h(ms,{tab:r,currentTab:t},String(a));default:!function(e){throw new Error(e)}(i)}},xs=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(bs(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(ps({onClick:e=>{"group"===e?.type&&$.inst.fire("tab",{type:e.type,label:e.ref}),c(e)},currentTab:o,showCounter:a,...s}))})})),bs=e=>t=>"link"===t.type&&t.href===`#${e.label}`,gs=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})]}))),fs={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(Hn,{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(gs,{isOpen:r,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},vs=({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,Ns({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},Ns=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in fs))return null;return h(fs[l],{...t,...n})},ys=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(vs({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})):null})));async function ws(e){const t=await fetch(e);return await t.json()}const ks=p((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=He({itemCount:t,visibleItemCount:5});return u("div",{children:[e?.map(Cs(l)),We({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Cs=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?$s(t.cols,e):null]},`row${l}`)))})})]},String(l))},$s=(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,Ss=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(ks,{rows:t.rowsData})})})]},a)}))})})),Is=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]}))),Ts=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),ws);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(Is,{currencies:o,activeTabIndex:a,setActiveTabIndex:i,linkToPDF:t}),h(Ss,{activeTabIndex:a,items:s}),h(gs,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[h("p",{children:"Данных нет"}),h(gs,{onClick:l,isOpen:!0})]})})),Bs=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(Ts,{...t,onClick:l})}):null]}))),Rs=p((({row:{header:e,data:t},activeIndex:l,rowIdx:r,...a})=>{const[i,s]=n(void 0),[o,c]=n(void 0);return u(Bs,{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(gl,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>h(ys,{cells:e,rowIdx:r,cellIdx:t,setTableInner:s,tableInner:i,openTableInnerIdx:o,setOpenTableInnerIdx:c,...a},String(t))))}):null]})})),js=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(Rs,{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:[Vs({title:t,description:l}),Ms(l),a>0?h(D,{renderFoldableSection:({isUnfolded:e})=>u(_s,{controls:m,isScrollAvailable:p,children:[b,h(L,{isUnfolded:e,children:g})]}),renderFoldButton:Ua}):h(_s,{controls:m,isScrollAvailable:p,children:x})]})}));function Vs({title:e,description:t}){return e?h(j,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function Ms(e){return e?h("div",{className:"mb-9 text-center text-l",children:e}):null}const _s=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]}))),Ds={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"}},Ls=p((({title:e,description:t,blockVersion:l="primary",iconVersion:n,image:r,className:a,...i})=>{const s=Ds[l];return u(B,{className:`font-sans px-9 py-4 flex ${s.background} ${a||""}`,...i,children:["small"===n?As(s.icon):null,"big"===n?Os(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 As(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 Os(e){return e?.src?h(W,{className:"pt-0.5 pr-3",image:e}):null}const Es=p((e=>{const{tags:t,className:l=""}=e;return t?.length?h("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(Fs)}):null})),Fs=(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)),zs=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]} ${ei(c)} ${oa(c)} `,...x,children:u(Dl,{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,Us({version:d,isDotted:s,listItemSize:o},r),m?.length?h(Es,{tags:m,className:"mt-5"}):null]})})}));function Us({version:e,isDotted:t,listItemSize:l},n){return n?.length?h(Hn,{items:n,isDotted:t,className:"mt-2.5",listItemSize:l,itemClassName:"mb-1.5",version:e}):null}const Ps={left:"items-start",center:"items-center",right:"items-end"},Xs={XXL:"gap-10",XL:"gap-8",L:"gap-4",M:"gap-3",S:"gap-2",XS:"gap-1","":""},Hs={transparent:"",primary:"bg-white",secondary:"bg-primary-main"},Gs=p((({className:e="",gap:t="",align:l,version:n="transparent",...r})=>h(B,{className:["flex flex-col",Xs[t],l&&Ps[l],Hs[n],e].filter(Boolean).join(" "),...r,children:k(r)})));Gs.childrenTypes={exclude:["VerticalLayout"]};const Ws=e=>sa(e)<10?"py-6 px-11":"py-12 px-32",Js=p((e=>{const{title:t,src:l,previewImg:n,className:r="",...a}=e;return u(B,{className:`bg-white ${Ws(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]})})),Ys={Accordion:_,AccordionItem:Z,CarouselLinks:Qt,BenefitsBlock:ne,BusinessBlock:Xe,Bonus:De,BonusBenefitsBlock:Ee,CardTransfer:Pt,Calculator:Dt,Carousel:Wt,CarouselCard:Zt,CarouselTariffsCard:tl,Catalog:dl,ContactsBlock:Rl,ComparisonTable:Tl,ErrorBlock:_l,ExchangeRateTile:on,Footer:Dn,Gallery:er,GracePeriod:tr,Header:Rr,Headline:_e,InsuranceAmountBlock:Lr,InvestmentInfo:Jr,InvestmentGallery:Pr,LinkDocs:aa,MiniGallery:ia,MobileAppTile:ca,PictureText:Ya,Placeholder:ti,ProductBlock:mi,ProductGallery:ui,ProductTile:pi,PromoTile:fi,OfficeMap:Aa,OfficeServicesBlock:Oa,OtherProducts:Fa,OtherProductsItem:Xa,Recommendation:wi,RollupItem:ki,SafeDepositRental:Wi,StepsBlock:ns,Tabs:xs,TariffsTable:js,TextBlock:Ls,Tile:zs,VerticalLayout:Gs,Video:Js},Zs=m();const Ks=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:qs()}))),qs=()=>{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 Zs.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{l(await Zs.like(e))}),[e]),dislike:a((async()=>{l(await Zs.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(Ks,{onClick:he(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(Ks,{onClick:he(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),eo=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]})}));eo.childrenTypes=[],eo.slots=()=>["header","footer"];e.Blocks=Ys,e.ContentPage=eo,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=he,e.joinList=Hr,e.packageVersion="0.6.35",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=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=[],N=["col-span-12"];function v(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||N)}`,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=v,...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})})),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})})),j=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(V,{size:"text-l",children:n})}):null,h(j,{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:H(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 H(e){return e?`image/${String(e)}`:void 0}const G=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(G,{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(G,{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(G,{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",Ne={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:""},ve=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:Ne[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:Ne[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(ve,{...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(G,{image:{...e},width:t,height:"24",asSVG:!0})},Ve={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"}},je={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=Ve[t],c=je[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(G,{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(G,{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(G,{className:"mb-5",image:l}):null,l?.icon?h(G,{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(G,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",image:l.icon,asSVG:!0}):null,l?.src?h(G,{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})]}))),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(G,{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(Ge,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Je=p((e=>h(Ge,{...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(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 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 Nt=(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}},vt=p((({className:e="",sourceBookDir:t="",buttons:l,footnote:r})=>{const[i,s]=n(6e3),o=a((e=>s(e)),[]),[c,d]=n(6e3),m=a((e=>d(e)),[]),p={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:x,maxSumTravel:g,minSumOther:b,maxSumOther:f,monthBonus:N,yearBonus:v}=Nt(p,t);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[ht("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:g,moneyValue:i,step:500,isShowItems:!1},o),ht("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:b,maxSum:f,moneyValue:c,step:500,isShowItems:!1},m)]}),h("div",{children:N>=0?h(rt,{title:"Баллов за месяц",rate:N,rateBlockClassName:"tracking-[-14px]"}):null}),u("div",{className:"w-full max-w-[350px]",children:[v>=0?h(Ke,{title:"Баллов за год",value:v}):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[i,s]=n(!1),[o,c]=n(!0),[d,m]=n(!1),[p,x]=n(!1),[g,b]=n(Qe),f=a((e=>b(e)),[]),[N,v]=n(et),y=a((e=>v(e)),[]),w=St({isAnnuity:i,isInsurance:o,isSalaryClient:d,isStateEmployee:p,moneyValue:g,monthsValue:N},t);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[ht("Сумма кредита, ₽",{...w,step:500},f),$t("Срок кредита, месяцев",w,y),u("div",{className:"mt-7",children:[h(kt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:d,onChange:m}),h(kt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:p,onChange:x}),h(kt,{className:"mt-3",text:"Комплексная страховая защита",checked:o,onChange:c})]})]}),h(rt,{title:"Ставка",rate:w.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Ke,{title:i?"Ежемесячный платеж":"Платёж в первый месяц",value:w.monthlyPayment,postfix:"₽"}),h(Ct,{items:Bt,checkedItem:i?It:Tt,onChange:e=>s(e===It)}),at(l),it(r)]})]})})),Vt=(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)},jt="everyMonth",Mt="atEndTerm",Lt=[{id:jt,text:"Ежемесячно"},{id:Mt,text:"В конце срока"}],_t={CreditCalculatorForm:Rt,DepositCalculatorForm:p((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[i,s]=n(Qe),o=a((e=>s(e)),[]),[c,d]=n(et),[m,p]=n(!1),x={moneyValue:i,monthsValue:c,isMonthlyInterestPayment:m},g=a((e=>d(e)),[]);n(!1);const b=((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=Vt(a,e),s=n+i;return{...r,...e,income:i,finalSum:s}})(x,t),{income:f,finalSum:N,rate:v}=b;return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[ht("Сумма вклада, ₽",{...b},o),$t("Срок вклада, месяцев",{...b},g)]}),h(rt,{rate:v||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[f?h(Ke,{title:"Доход по вкладу",value:f,postfix:"₽",prefix:"+"}):null,N?h(Ke,{title:"Сумма в конце срока",value:N,postfix:"₽"}):null,h(Ct,{items:Lt,checkedItem:m?jt:Mt,onChange:e=>p(e===jt)}),at(l),it(r)]})]})})),BonusCalculatorForm:vt},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]=He({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(G,{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),Ht=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]})]})})),Gt=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(Gt,{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-[calc(50%-12px)] 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","CarouselInvestmentCard"];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="absolute border border-solid border-main-stroke w-full h-full",ol={normal:"min-w-[1007px]",mini:"min-w-[355px]"},cl=p((({className:e="",button:t,description:l,title:n,version:r="normal"})=>h("section",{className:`flex pb-9 pl-12 ${ol[r]} ${e}`,children:u("div",{className:"relative w-full",children:[h("div",{className:`${sl} z-10 top-9 right-12 bg-green-dark`}),h("div",{className:`${sl} z-10 top-6 right-8 bg-green`}),h("div",{className:`${sl} 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]})]})}))),dl="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",ml=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(G,{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:`${dl} mx-1.5 mt-1.5`}),h("div",{className:`${dl} mt-3 mr-3`})]}):null)),hl=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(V,{children:t})}):null]}),n?.length?ul(n):null]}))),ul=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(ml,{className:"m-1",...e},String(t))))},String(l))))})},pl=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(G,{image:q(l),asSVG:!0}):null,l?.src?h(G,{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(xl)}):null]})]}))),xl=(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)),gl=p((({className:e="",title:t,icon:l,isHighlighting:n,button:r,rows:a=[],...i})=>{const s=a.map(Nl),o=s.slice(0,1),c=s.slice(1);return u(T,{className:`font-sans relative bg-white border border-main-stroke min-w-[322px] p-8 \n ${bl(n)}\n ${e}`,...i,children:[n?vl():null,l?.src?h(G,{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})]}),Nl=(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)),vl=()=>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(G,{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]=He({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(G,{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(G,{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})})})]}))),Vl={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},jl=p((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>h("div",{className:"flex flex-1 overflow-hidden",children:h("div",{className:Vl[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(jl,{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(jl,{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]=He({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?"Скрыть":"Показать все параметры"})})]})}),Hl=p((({className:e="",contacts:t,info:l,version:n="secondary",...r})=>u(T,{className:`${K[n]} flex p-[50px] ${e}`,...r,children:[l?.length?Gl(l,n):null,t?.length?Gl(t,n):null]}))),Gl=(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(V,{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(G,{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(G,{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(G,{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=>Nn(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)=>Nn(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)||"")})},Nn=(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 vn=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",vn);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(G,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||"Россельхозбанк"}),Vn=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(G,{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(G,{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:"Найти"})})]})})),jn=p((e=>h(Vn,{...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"}],Hn=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(G,{image:q(a),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Gn=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(Hn,{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(jn,{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(Gn,{media:i,children:"Соцсети"}),h(Gn,{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,isFullWidth:o=!0,isDotted:c=!0,align:d="center"})=>u("div",{className:`h-full flex flex-col justify-between ${C[d]}`,children:[u("div",{className:"flex flex-col h-full",children:[or(r,s),cr(t,e),dr(l,e),a?.length?hr(a,c,s):null,mr(n)]}),i?.text?Be({button:i,buttonClassName:"mt-6 "+(o?"":"self-center")}):null]}))),or=(e,t)=>u("div",{className:"flex justify-center",children:[e?.src?h(G,{className:"mb-5",image:e}):null,e?.icon?h(G,{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]=He({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: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}`)))})]})},fr=(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(G,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),vr=(e,t,l=((e,t)=>t.startsWith(e)))=>l(oe(e),oe(se(e)?t.href:t.pathname)),yr=e=>t=>vr(t.href,e),wr=e=>t=>t.items?.some(yr(e))||vr(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"},Vr={"bg-white":"black",transparent:"white"},jr=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(G,{image:{icon:"LoupeIcon",iconVersion:Vr[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(G,{image:{icon:"GridIcon",iconVersion:Vr[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"},Hr=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?Gr(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(jr,{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]})})})),Gr=(e,t)=>{const[l]=e||[];return e?.find(wr(t))||l},Wr=p((e=>{const{className:t,image:l,...n}=e;return h(T,{className:t,...n,children:h(G,{image: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?Yr({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 Yr({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(G,{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?Zr("страховая сумма",e.sum):null,e?.fee?Zr("страховой взнос",e.fee):null]}),Kr(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function Zr(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 Kr(e){return e?h(G,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:"DoneIcon",width:"24",height:"24"}):null}const qr=p((({className:e="",title:t,insuranceTabs:l=[],button:r,...i})=>{const[s,o]=n(0),c=a((e=>o(e)),[]);return u(T,{className:`box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${e}`,...i,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,isActive:l,onClick:n}){return h("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,h("div",{className:"flex",style:{transform:`translateX(-${s}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(Jr,{button:t,cards:e},String(l)))):null};function ea(e){return t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:n},l):[l]),[])}const ta={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},la={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},na=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:[ea(h("div",{className:"w-px h-4 bg-main-stroke"}))(s.map(ra)),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(sa)})]}):null,l?.length?h(ir,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:n}):null]})})})),ra=(e,t,l)=>{const n=1===t,r=t===l.length-1;return h("div",{className:`${aa(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(ia)}):null},`column_${t}`)},aa=(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(" "),ia=(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 ${la[l]} ${ta[n]} ${"XS"===l?"px-3":"px-11"}`,children:h("div",{className:"text-center",children:e.text})},`cell_${t}`):null},sa=(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}`)},oa=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(G,{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&&ca(da(o.href),s)})]}):null]})})),ca=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),da=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},ma=p((({className:e="",doc:t,icon:l})=>h(oa,{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}))),ha=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(ma,{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)),ua={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},pa=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(ha,{className:`mt-8 ${ua[i]}`,columnsMode:i,documents:r,icon:a})]}))),xa=p((e=>h(pr,{...e,version:"mini"}))),ga=e=>{const t="col-span-",l=e.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function ba(e=""){const t=ga(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const fa=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 ${ba(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:[va(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(G,{className:"w-fit",image:l})}):null,Na(r,a)]})]}),i?.src?h("div",{className:"absolute right-0 bottom-0",children:h(G,{image:i})}):null]})})),Na=(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-код и скачайте приложение"}),va=e=>e?h("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null;function ya(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 wa={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"},ka=e=>h("a",{className:`select-none cursor-pointer px-9 h-12 bg-white bg-primary-main text-white ${Object.values(wa).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Ca={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)]"},$a=(e,t,l)=>u("div",{className:`${Object.values(Ca).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"})]}),Sa={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"},Ia=(e,t,l)=>h("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(Sa).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"})}),Ta=e=>globalThis[e];const Ba=()=>function(e,t){const[l,i]=n(),s=a((()=>i(Ta(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(!Ta(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`),Ra={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"},Va=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(Ra).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:h(A,{name:l,width:"20",height:"16"})})})),ja=[{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:"Кафе"}],Ma={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"},La=p((({points:e,className:t="",zoom:l=5,showSearchField:a=!1})=>{const i=s(null),o=Ba(),[c,d]=n(),[m,p]=n(Oa(ja)),x=_a(e);if(r((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:x,zoom:l,controls:[],suppressMapOpenBlock:!0}),ya(o,i.current,m)}))}),[o,i,m]),r((()=>{if(i.current&&m&&o){const e=m.length<1?Oa(ja):m;ya(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?$a(ja,0,(e=>{if(e){const t=Oa(e);p(t)}})):ka(x)}),h("div",{className:`${Object.values(Ma).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(Va,{yandexMaps:i}),h(Va,{yandexMaps:i,direction:"out"})]}),Ia(i.current,o,`right-2 top-80 ${g}`)]})})),_a=e=>[Aa(Da(e,0)),Aa(Da(e,1))],Da=(e,t)=>e.map((e=>e[t])),Aa=e=>e.reduce(((e,t)=>e+t))/e.length,Oa=e=>e?e.map((e=>e.coords)):null,za=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],Ea=({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:"Выходной"})})},Fa=({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}`),Pa=({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?Ua(n):null,r?h("div",{className:"pb-1 text-s-light text-secondary-text",children:r}):null]},`day${a}`),Ua=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})}),Xa={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 Ha=e=>e?gt(e,{method:"GET"}):{},Ga=p((({className:e=""})=>{const t=function(e){const{data:t}=pt(e?`/api/v1/branches?regionCode=${e}`:void 0,Ha);return console.warn("WARNING!!! Hook useOfficeMap RETURN MOCK object for testing!"),console.log("Hook useOfficeMap get this data:",t),Xa}("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:N}=i,v=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:N},{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}),Ea(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:za.map(Fa)})]}),u("div",{className:"flex justify-between pt-8",children:[h("div",{className:"flex-grow h-full w-full overflow-hidden",children:v?h(La,{points:[v],className:"h-full"}):null}),h("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(Pa)})]})]})})),Wa=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(Ja)}):null]}))),Ja=(e,t)=>u("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?h(G,{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)}`),Ya=p((({className:e="",...t})=>h(T,{className:`font-sans text-primary-text ${e}`,...t,children:k(t)})));Ya.childrenTypes=["OtherProductsItem"];const Za=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(G,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),Ka=({isUnfolded:e,onToggle:t})=>h(Za,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),qa=["ArrowDownIcon","ArrowUpIcon"],Qa=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(Za,{label:t,icon:qa[Number(e)],dataTheme:r||n.options?.page?.colorPalette,onClick:l})})})}));Qa.childrenTypes=[];const ei=p((e=>{const{className:t,text:l,size:n,color:r,align:a,font:i,...s}=e;return h(T,{className:t,...s,children:h(V,{size:n,color:r,align:a,font:i,children:l})})})),ti={primary:"text-primary-text",secondary:"text-white"},li={primary:"text-secondary-text",secondary:"text-white"},ni=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:ri(a,i),children:h(G,{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 ${ti[a]}`,children:n}):null,r?h("div",{className:`text-m-light ${li[a]}`,children:r}):null]})]})}));function ri(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 ai=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(G,{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(ii(a))}):null,si(Number(i),Number(s))]})]})]}))),ii=e=>(t,l)=>h(ni,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));function si(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?oi("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?oi("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function oi(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 ci(e=""){const t=ga(e);return t<=4?"S":t<=8?"M":"L"}function di(e=""){const t=ga(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const mi=p((({className:e,title:t,description:l="Блок в разработке...",...n})=>u(T,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${di(e)} ${ba(e)} `,...n,children:[h(Le,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:ci(e),...n}),h("figure",{className:"m-0 min-w-[80%]",children:hi()})]}))),hi=(e=3)=>pi(100,e).map((e=>Math.floor(e))).map(ui),ui=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),pi=(e,t)=>[e].concat(t>0?pi(e/1.618,t-1):[]),xi=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})})),gi=(e="primary",t="normal")=>({icon:l,label:n,description:r},a)=>h(ni,{icon:l,label:n,description:r,version:e,benefitsVersion:t},String(a)),bi=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=fi(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(gi(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(G,{className:"mt-[-50px]",image:c})]})})),fi=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function Ni(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(G,{className:"w-4 h-4",image:{...o,iconVersion:o.iconVersion||s},asSVG:!0})}),n?h("span",{className:"text-m",children:n}):null]})}const vi={primary:"text-secondary-text",secondary:"text-white/80"},yi=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?Ni(n,i,"mb-10 -mt-2.5"):null,l?.length?h("div",{className:"text-xs-light mb-6",children:ea(h("span",{className:`mx-2 ${vi[r]}`,children:"/"}))(l.map(((e,t)=>h(xi,{className:vi[r],...e},String(t)))))}):null,h(bi,{version:r,...a})]})})),wi={primary:"border-main-stroke",secondary:"border-white/50"},ki={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},Ci=p((({className:e="",slides:t=[],version:l="primary",...r})=>{const i=t.map((e=>e.nav)),s=t.map((e=>e.productBlock)),[o,c]=n(0),d=a((e=>c(e)),[]);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(-${o}00%)`},role:"list",children:s.map(((e,t)=>function(e,t){const{version:l}=e,n=l?ki[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(bi,{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:i.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n,version:r}){const a=l?"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]}`,i=l?"text-primary-text !text-h6 p-2":`text-l pb-1 ${ki[r].title}`,s=l?"text-secondary-text text-l-light":`text-m-light ${ki[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 ${a} ${wi[r]}\n `,children:u("div",{className:"border-0 px-6",children:[h("div",{className:`last:pb-0 ${i}`,children:e?.title}),h("div",{className:`text-secondary-text ${s}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===o),onClick:()=>d(t),version:l})))})]})}));const $i=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]} ${di(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}),Si(a,o,s),r?Ti(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(G,{className:"absolute right-0 bottom-0",image:s}):null]})));function Si(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(Ii(t)):null})}function Ii(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 Ti(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 Bi=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]} ${di(e)} ${ba(e)} `,...i,children:h(Zl,{title:t?h(Le,{title:t,className:"!p-0 max-w-[600px]",headlineVersion:ci(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:Ri(l)}):null,h("div",{className:"text-l",children:n})]})})})));function Ri(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(R,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:t}):null,c=r?.src?h(G,{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(Gn,{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]})})})})),ji="absolute top-0 bottom-0 w-[84px]",Mi=p((({recommendations:e=[],className:t="",title:l,version:n="primary",...r})=>{const[a,i]=He({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(Vi,{version:n,className:wi[n],...e},String(t)))):null}),Ye({...i,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),h("div",{className:`${ji} left-0 ${"secondary"===n?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${ji} right-0 ${"secondary"===n?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Li=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})=>_i({isUnfolded:e,onToggle:l,label:t,version:r})})})));Li.childrenTypes={exclude:["RollupItem","Accordion","AccordionItem","OtherProducts","OtherProductsItem","VerticalLayout"]};const _i=({isUnfolded:e,onToggle:t,label:l,version:n})=>{const r=l?[l,l]:["Развернуть","Скрыть"];return"primary"===n?h(Di,{icon:["PlusIcon","MinusIcon"][Number(e)],label:r[Number(e)],onClick:t}):h(Za,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:r[Number(e)],onClick:t})},Di=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(G,{image:q({icon:t}),width:"24",height:"24",asSVG:!0}):null]}))),Ai=[];const Oi=async e=>await gt(e,{method:"GET"})||Ai,zi=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})})),Ei=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(zi,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),h("div",{className:"max-w-[396px] w-1/2",children:h(zi,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:r,setSelected:a,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Fi=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:e=>r(e.target.value)}),t?h("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),Pi=p((()=>{const[e,t]=n("option2"),l=a((e=>t(e)),[]);return u("div",{children:[h(Fi,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),h(Fi,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),Ui=["От 1 дня","До 365 дней"],Xi=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:Ui,onChange:t})]}))),Hi=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(zi,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),h("div",{className:"w-full",children:h(zi,{data:n,fieldLabel:"safeBoxCasesSize",selected:r,setSelected:a,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Gi=p((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:r,selectedCaseVolume:a,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>u("div",{className:"flex-1 mr-9",children:[h(Ei,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:Wi(c)}),h(Xi,{days:r,setDays:e=>c({days:e})}),h(Hi,{caseVolumes:o,selectedCaseVolume:a,onSelectedCaseVolume:Ji(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(Pi,{}),h($e,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Wi=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Ji=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Yi=p((({days:e,tariffs:t=[]})=>{const l=Ki(e,t);return u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex",children:[Zi("Аренда за",e,"mr-11"),Zi("Цена",l+" ₽")]}),u("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[h(G,{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"]})]})]})})),Zi=(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})]}),Ki=(e,t)=>{const l=qi(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},qi=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},Qi=(e,t)=>e.find((e=>e.branchCode===t)),es=p((e=>{const{regions:t,data:l,branches:n,onChange:a,onClick:i}=e;r((()=>{a({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,a]);const s=Qi(n,l.selectedBranch),o=ts(s?.safeBoxCaseVolumes),c=ls(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=ns(c,l.selectedBoxSize);return u("div",{className:"flex justify-between align-top mb-6",children:[h(Gi,{...l,regions:t,onClick:i,branches:n,caseVolumes:o,safeBoxCases:c,onChange:a}),h(Yi,{days:l.days,tariffs:d})]})})),ts=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],ls=(e,t)=>e?.find((e=>e.volume===t)),ns=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;const rs=p((({title:e,footnote:t,className:l="",...r})=>{const[i,s]=n(!1),o=a((()=>s((e=>!e))),[]),[c,d]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=function(){const{data:e}=pt("/api/v1/regions",bt);return e||[]}(),p=as(c.selectedRegion,m),x=function(e){const{data:t}=pt(e?`/api/v1/safeboxes?regionCode=${e}`:null,Oi);return t||Ai}(p),g=a((e=>d((t=>({...t,...e})))),[d]),b=(f=Qi(x,c.selectedBranch)||x,Array.isArray(f)?f.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):f?.gpsLatitude&&f?.gpsLongitude?[[f.gpsLatitude,f.gpsLongitude]]:[]);var f;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(es,{regions:m,branches:x,data:{...c,selectedRegion:p},onClick:o,onChange:g}),t?h("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?h(La,{points:b,className:"h-[640px]"}):null]})})),as=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,is=e=>Boolean(e?.icon||e?.src),ss=({items:e,isDotted:t=!0,version:l="primary",className:n=""})=>e?h(ir,{className:n,version:l,items:e,listItemSize:"M",isDotted:t}):null,os=({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 ${hs(a)}`,children:[u("div",{className:(o?.text?"mb-8":"")+" text-center",children:[cs(i),u("div",{className:`${m} flex flex-col items-center`,children:[ds({description:s,className:e.description}),ss({items:c,isDotted:d,version:l,className:ms({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))},cs=e=>e?h("div",{className:"text-h6",children:e}):null,ds=({description:e,className:t=""})=>e?h("div",{className:t,children:e}):null,ms=({className:e,description:t,styleMap:l})=>[t?l.description:"text-h6",t?"mt-0.5":"",e].join(" "),hs=e=>e<5?"w-[276px]":"w-[210px]",us={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"}},ps=p((({className:e="",showLines:t=!0,steps:l=[],button:n,version:r="primary",...a})=>{const{title:i}=a,s=us[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:ea(h("div",{className:`h-0.5 w-full bg-secondary-light ${c}`}))(l.map(xs(s,r)))}),h("div",{className:"flex justify-between mt-4 "+(o?"gap-x-3":"gap-x-[101px]"),children:l.map(os({styleMap:s,isMainButton:Boolean(n?.text),version:r}))})]}):null,n?.text?h($e,{className:"mt-8 min-w-[240px]",version:"primary",...n}):null]})})),xs=(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:is(l)?h(G,{image:q(l||{},t),width:"48",height:"48",asSVG:!0}):h("span",{className:`text-h4 ${e.iconText}`,children:n+1})})},String(n));const gs="h-12 flex-1 flex items-center justify-center cursor-pointer",bs="bg-primary-main",fs="group bg-white",Ns="font-sans text-m",vs="text-white",ys="text-secondary-text group-hover:text-primary-main",ws=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:`${gs} ${r?bs:fs}`,target:t.target,href:s.href,onClick:s.onClick,children:h("span",{className:`${Ns} ${r?vs:ys}`,children:t.text})})})),ks=(e,t)=>h("h3",{className:`${Ns} ${t?vs:ys}`,children:e}),Cs=(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}),$s=({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:`${gs} ${i?bs:fs}`,role:"tab","aria-selected":i,onClick:()=>n(r),children:u("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?ks(r.title,i):null,l&&s?Cs(s,i):null]})},String(a))})({page:e,currentTab:t,showCounter:l,onClick:n})(r,a);case"link":return h(ws,{tab:r,currentTab:t},String(a));default:!function(e){throw new Error(e)}(i)}},Ss=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(Is(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($s({onClick:e=>{"group"===e?.type&&$.inst.fire("tab",{type:e.type,label:e.ref}),c(e)},currentTab:o,showCounter:a,...s}))})})),Is=e=>t=>"link"===t.type&&t.href===`#${e.label}`,Ts=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})]}))),Bs={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(G,{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(Ts,{isOpen:r,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},Rs=({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 Bs))return null;return h(Bs[l],{...t,...n})},js=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(Rs({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})):null}))),Ms=p((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=He({itemCount:t,visibleItemCount:5});return u("div",{children:[e?.map(Ls(l)),Ye({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Ls=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?_s(t.cols,e):null]},`row${l}`)))})})]},String(l))},_s=(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,Ds=p((({activeTabIndex:e,items:t})=>{const[l,r]=n({}),i=a((e=>r((t=>({...t,[e]:!t[e]})))),[]);return h("div",{children:t.map(((t,n)=>{const r=`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:()=>i(r),children:[t.title,h(G,{image:l[r]?"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[r]?"h-0":""),children:h("div",{className:"relative",children:h(Ms,{rows:t.rowsData})})})]},r)}))})})),As=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]})));async function Os(e){const t=await fetch(e);return await t.json()}const zs=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),Os);return t||{}}(e),[i,s]=n(0),o=a((e=>s(e)),[]),c=r?.[i]?.items??[],d=r?.map((e=>e.currency??""));return u("div",r?{className:"bg-white z-10",children:[h(As,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),h(Ds,{activeTabIndex:i,items:c}),h(Ts,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[h("p",{children:"Данных нет"}),h(Ts,{onClick:l,isOpen:!0})]})})),Es=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(zs,{...t,onClick:l})}):null]}))),Fs=p((({row:{header:e,data:t},activeIndex:l,rowIdx:r,...i})=>{const[s,o]=n(void 0),c=a((e=>o(e)),[]),[d,m]=n(void 0),p=a((e=>m(e)),[]);return u(Es,{onHideContentClick:()=>o(void 0),tableInner:s,...i,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(G,{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(jl,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>h(js,{cells:e,rowIdx:r,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:p,...i},String(t))))}):null]})})),Ps=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}),p=(o||[]).map(((e,t)=>h(Fs,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[x,g]=a>0?[p.slice(0,-a),p.slice(-a)]:[p,[]];return u(T,{className:`bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${c>1?"pr-0":""} ${e}`,...i,children:[Us({title:t,description:l}),Xs(l),a>0?h(L,{renderFoldableSection:({isUnfolded:e})=>u(Hs,{controls:m,children:[x,h(_,{isUnfolded:e,children:g})]}),renderFoldButton:Ka}):h(Hs,{controls:m,children:p})]})}));function Us({title:e,description:t}){return e?h(R,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function Xs(e){return e?h("div",{className:"mb-9 text-center text-l",children:e}):null}const Hs=p((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return u("div",{role:"table",children:[u("div",{className:"relative",children:[e,Ye({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),l?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Gs={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"}},Ws=p((({title:e,description:t,blockVersion:l="primary",iconVersion:n,image:r,className:a,...i})=>{const s=Gs[l];return u(T,{className:`font-sans px-9 py-4 flex ${s.background} ${a||""}`,...i,children:["small"===n?Js(s.icon):null,"big"===n?Ys(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 Js(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 Ys(e){return e?.src?h(G,{className:"pt-0.5 pr-3",image:e}):null}const Zs=p((e=>{const{tags:t,className:l=""}=e;return t?.length?h("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(Ks)}):null})),Ks=(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)),qs=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]} ${di(c)} ${ba(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(G,{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,Qs({version:d,isDotted:s,listItemSize:o},r),m?.length?h(Zs,{tags:m,className:"mt-5"}):null]})})}));function Qs({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 eo={left:"items-start",center:"items-center",right:"items-end"},to={XXL:"gap-10",XL:"gap-8",L:"gap-4",M:"gap-3",S:"gap-2",XS:"gap-1","":""},lo={transparent:"",primary:"bg-white",secondary:"bg-primary-main"},no=p((({className:e="",gap:t="",align:l,version:n="transparent",...r})=>h(T,{className:["flex flex-col",to[t],l&&eo[l],lo[n],e].filter(Boolean).join(" "),...r,children:k(r)})));no.childrenTypes={exclude:["VerticalLayout"]};const ro=e=>ga(e)<10?"py-6 px-11":"py-12 px-32",ao=p((e=>{const{title:t,src:l,previewImg:n,className:r="",...a}=e;return u(T,{className:`bg-white ${ro(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]})})),io={1:"flex gap-y-2 flex-col",2:"flex gap-y-2 gap-x-10 flex-wrap"},so=p((({additionalDescription:e,cardsList:t=[],className:l="",columnsMode:n=1,description:r,image:a,title:i,version:s="primary",...o})=>{const c=i?h(R,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,d=a?.src?h(G,{className:"absolute bottom-0 right-0 m-0",image:a}):null;return h(T,{className:`relative text-left border border-solid box-border\n p-9 w-[697px]\n ${wi[s]}\n ${l}`,...o,children:u(Zl,{title:c,image:d,children:[u("div",{className:"flex justify-between mb-4",children:[r?h("span",{className:"text-h6 w-1/3",children:r}):null,e?h("span",{className:"text-m-light text-secondary-text",children:e}):null]}),t.length?h("ul",{className:`list-none m-0 p-0 ${io[n]}`,children:oo(t,n)}):null]})})})),oo=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,l)=>{return u("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?h("span",{className:"pr-2.5 "+(n=t,1===n?"text-h6":"text-l"),children:e.parameter}):null,e?.parameterDescription?h("span",{className:"text-m-light text-secondary-text",children:e.parameterDescription}):null]},String(l));var n})),co={Accordion:M,AccordionItem:Y,BenefitsBlock:le,BusinessBlock:Xe,Bonus:_e,BonusBenefitsBlock:ze,CardTransfer:Ht,Calculator:At,Carousel:al,CarouselCard:cl,CarouselLinks:hl,CarouselProgramsCard:pl,CarouselTariffsCard:gl,Catalog:$l,ContactsBlock:Hl,ComparisonTable:Ul,ErrorBlock:Yl,ExchangeRateTile:kn,Footer:Zn,Gallery:xr,GracePeriod:gr,Header:Hr,Headline:Le,ImgBlock:Wr,InsuranceAmountBlock:qr,InvestmentInfo:na,LinkDocs:pa,MiniGallery:xa,MobileAppTile:fa,ParagraphBlock:ei,PictureText:ai,Placeholder:mi,ProductBlock:yi,ProductGallery:Ci,ProductTile:$i,PromoTile:Bi,OfficeMap:Ga,OfficeServicesBlock:Wa,OtherProducts:Ya,OtherProductsItem:Qa,Recommendation:Mi,RollupItem:Li,SafeDepositRental:rs,StepsBlock:ps,Tabs:Ss,TariffsTable:Ps,TextBlock:Ws,Tile:qs,VerticalLayout:no,Video:ao,CarouselInvestmentCard:so},mo=m();const ho=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:uo()}))),uo=()=>{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"})]})},po=p((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return r((()=>{(async()=>{const[t]=await mo.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{l(await mo.like(e))}),[e]),dislike:a((async()=>{l(await mo.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(ho,{onClick:he(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(ho,{onClick:he(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),xo=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(po,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));xo.childrenTypes=[],xo.slots=()=>["header","footer"];e.Blocks=co,e.ContentPage=xo,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=he,e.joinList=ea,e.packageVersion="0.6.37",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})}));