@redneckz/wildless-cms-uni-blocks 0.12.11 → 0.12.12

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 (966) hide show
  1. package/bundle/BlockRenderer/renderBlock.d.ts +2 -4
  2. package/bundle/BlockRenderer/renderBlockList.d.ts +5 -2
  3. package/bundle/BlockRenderer/renderChildren.d.ts +5 -4
  4. package/bundle/blocks.schema.json +1 -1
  5. package/bundle/bundle.umd.js +241 -323
  6. package/bundle/bundle.umd.min.js +1 -1
  7. package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +1 -1
  8. package/bundle/components/Carousel/CarouselContent.d.ts +3 -9
  9. package/bundle/components/Carousel/CarouselScrollButtons.d.ts +5 -6
  10. package/bundle/components/Carousel/renderControlButtons.d.ts +2 -3
  11. package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +2 -2
  12. package/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
  13. package/bundle/components/Footer/Footer.d.ts +1 -4
  14. package/bundle/components/Footer/Footer.mobile.d.ts +1 -4
  15. package/bundle/components/Footer/FooterProps.d.ts +6 -0
  16. package/bundle/components/Header/Header.d.ts +1 -4
  17. package/bundle/components/Header/Header.mobile.d.ts +2 -5
  18. package/bundle/components/Header/HeaderContent.d.ts +0 -2
  19. package/bundle/components/Header/HeaderProps.d.ts +8 -0
  20. package/bundle/components/HorizontalLayout/HorizontalLayout.mobile.d.ts +5 -0
  21. package/bundle/components/SafeDepositRental/RadioButtons.d.ts +6 -0
  22. package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +0 -2
  23. package/bundle/hooks/useCarouselControls.d.ts +1 -1
  24. package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +5 -5
  25. package/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -2
  26. package/dist/BlockRenderer/renderBlock.d.ts +2 -4
  27. package/dist/BlockRenderer/renderBlock.js +1 -2
  28. package/dist/BlockRenderer/renderBlock.js.map +1 -1
  29. package/dist/BlockRenderer/renderBlockList.d.ts +5 -2
  30. package/dist/BlockRenderer/renderBlockList.js +12 -7
  31. package/dist/BlockRenderer/renderBlockList.js.map +1 -1
  32. package/dist/BlockRenderer/renderChildren.d.ts +5 -4
  33. package/dist/BlockRenderer/renderChildren.js +2 -2
  34. package/dist/BlockRenderer/renderChildren.js.map +1 -1
  35. package/dist/components/Blocks.mobile.js +6 -0
  36. package/dist/components/Blocks.mobile.js.map +1 -1
  37. package/dist/components/Bonus/Bonus.js +1 -1
  38. package/dist/components/Bonus/Bonus.js.map +1 -1
  39. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +1 -1
  40. package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -1
  41. package/dist/components/Calculator/UnknownRate.js +1 -1
  42. package/dist/components/Calculator/UnknownRate.js.map +1 -1
  43. package/dist/components/Carousel/Carousel.js +18 -33
  44. package/dist/components/Carousel/Carousel.js.map +1 -1
  45. package/dist/components/Carousel/CarouselContent.d.ts +3 -9
  46. package/dist/components/Carousel/CarouselScrollButtons.d.ts +5 -6
  47. package/dist/components/Carousel/CarouselScrollButtons.js +4 -4
  48. package/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
  49. package/dist/components/Carousel/renderControlButtons.d.ts +2 -3
  50. package/dist/components/Carousel/renderControlButtons.js +3 -3
  51. package/dist/components/Carousel/renderControlButtons.js.map +1 -1
  52. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +2 -2
  53. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +7 -40
  54. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  55. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js +1 -2
  56. package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
  57. package/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
  58. package/dist/components/CarouselCard/CarouselCard.js +6 -5
  59. package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  60. package/dist/components/CarouselCard/constants.js +2 -2
  61. package/dist/components/CarouselCard/constants.js.map +1 -1
  62. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  63. package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  64. package/dist/components/CarouselEventCard/CarouselEventCard.js +1 -2
  65. package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  66. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  67. package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  68. package/dist/components/CarouselLinks/CarouselLinks.js +2 -2
  69. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  70. package/dist/components/CarouselProductCard/CarouselProductCard.js +4 -4
  71. package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  72. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -4
  73. package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  74. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +3 -4
  75. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  76. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -2
  77. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  78. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -2
  79. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  80. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  81. package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  82. package/dist/components/ComparisonTable/ComparisonTable.js +1 -1
  83. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  84. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +1 -1
  85. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  86. package/dist/components/ComparisonTable/ComparisonTableBody.js +1 -1
  87. package/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  88. package/dist/components/ComparisonTable/ComparisonTableRows.js +1 -1
  89. package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  90. package/dist/components/ComparisonTable/HeaderCell.js +1 -1
  91. package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  92. package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  93. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  94. package/dist/components/ContentPage/ContentPage.js +16 -9
  95. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  96. package/dist/components/ExchangeRateTile/CurrencyTable.js +4 -3
  97. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  98. package/dist/components/ExchangeRateTile/CurrentLocation.js +3 -2
  99. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  100. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  101. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  102. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  103. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  104. package/dist/components/Footer/Footer.d.ts +1 -4
  105. package/dist/components/Footer/Footer.js +2 -4
  106. package/dist/components/Footer/Footer.js.map +1 -1
  107. package/dist/components/Footer/Footer.mobile.d.ts +1 -4
  108. package/dist/components/Footer/Footer.mobile.js +3 -5
  109. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  110. package/dist/components/Footer/FooterProps.d.ts +6 -0
  111. package/dist/components/Footer/FooterProps.js +2 -0
  112. package/dist/components/Footer/FooterProps.js.map +1 -0
  113. package/dist/components/GracePeriod/GracePeriod.js +2 -2
  114. package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  115. package/dist/components/Header/Header.d.ts +1 -4
  116. package/dist/components/Header/Header.js +3 -9
  117. package/dist/components/Header/Header.js.map +1 -1
  118. package/dist/components/Header/Header.mobile.d.ts +2 -5
  119. package/dist/components/Header/Header.mobile.js +2 -5
  120. package/dist/components/Header/Header.mobile.js.map +1 -1
  121. package/dist/components/Header/HeaderContent.d.ts +0 -2
  122. package/dist/components/Header/HeaderProps.d.ts +8 -0
  123. package/dist/components/Header/HeaderProps.js +2 -0
  124. package/dist/components/Header/HeaderProps.js.map +1 -0
  125. package/dist/components/Header/HeaderTop.js +1 -1
  126. package/dist/components/Header/HeaderTop.js.map +1 -1
  127. package/dist/components/HorizontalLayout/HorizontalLayout.mobile.d.ts +5 -0
  128. package/dist/components/HorizontalLayout/HorizontalLayout.mobile.js +8 -0
  129. package/dist/components/HorizontalLayout/HorizontalLayout.mobile.js.map +1 -0
  130. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
  131. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  132. package/dist/components/InvestmentInfo/InvestmentInfo.js +5 -5
  133. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  134. package/dist/components/LinkDocs/LinkDocs.js +2 -2
  135. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  136. package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  137. package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  138. package/dist/components/OfficeMap/OfficeMap.js +1 -1
  139. package/dist/components/OfficeMap/OfficeMap.js.map +1 -1
  140. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -2
  141. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  142. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +4 -8
  143. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  144. package/dist/components/RollupItem/RollupItem.js +4 -1
  145. package/dist/components/RollupItem/RollupItem.js.map +1 -1
  146. package/dist/components/SafeDepositRental/RadioButtons.d.ts +6 -0
  147. package/dist/components/SafeDepositRental/RadioButtons.js +13 -0
  148. package/dist/components/SafeDepositRental/RadioButtons.js.map +1 -0
  149. package/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -1
  150. package/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  151. package/dist/components/SafeDepositRental/RentalPeriod.js +2 -1
  152. package/dist/components/SafeDepositRental/RentalPeriod.js.map +1 -1
  153. package/dist/components/SafeDepositRental/SafeBoxCases.js +1 -1
  154. package/dist/components/SafeDepositRental/SafeBoxCases.js.map +1 -1
  155. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  156. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  157. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
  158. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  159. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +4 -3
  160. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  161. package/dist/components/StepsBlock/renderStep.js +1 -1
  162. package/dist/components/StepsBlock/renderStep.js.map +1 -1
  163. package/dist/components/Tabs/ScrollableTabs.js +0 -1
  164. package/dist/components/Tabs/ScrollableTabs.js.map +1 -1
  165. package/dist/components/TariffsTable/TariffsTable.js +3 -3
  166. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  167. package/dist/components/VerticalLayout/VerticalLayout.js +4 -14
  168. package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  169. package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +0 -2
  170. package/dist/hooks/useCarouselControls.d.ts +1 -1
  171. package/dist/hooks/useCarouselControls.js +5 -6
  172. package/dist/hooks/useCarouselControls.js.map +1 -1
  173. package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +5 -5
  174. package/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  175. package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  176. package/dist/ui-kit/BlockWrapper.js +1 -1
  177. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  178. package/dist/ui-kit/LinkButton/LinkButton.js +1 -1
  179. package/dist/ui-kit/LinkList/LinkList.js +2 -2
  180. package/dist/ui-kit/LinkList/LinkList.js.map +1 -1
  181. package/dist/ui-kit/LocationDialog/LocationDialog.js +2 -2
  182. package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  183. package/dist/ui-kit/LocationDialog/SearchBar.js +1 -1
  184. package/dist/ui-kit/LocationDialog/SearchBar.js.map +1 -1
  185. package/dist/ui-kit/SearchDialog/SearchDialog.js +1 -1
  186. package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  187. package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
  188. package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  189. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  190. package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  191. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -2
  192. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +11 -11
  193. package/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  194. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +1 -1
  195. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  196. package/dist/ui-kit/YandexMap/YandexMap.js +1 -1
  197. package/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  198. package/lib/BlockRenderer/renderBlock.d.ts +2 -4
  199. package/lib/BlockRenderer/renderBlock.js +1 -2
  200. package/lib/BlockRenderer/renderBlock.js.map +1 -1
  201. package/lib/BlockRenderer/renderBlockList.d.ts +5 -2
  202. package/lib/BlockRenderer/renderBlockList.js +12 -7
  203. package/lib/BlockRenderer/renderBlockList.js.map +1 -1
  204. package/lib/BlockRenderer/renderChildren.d.ts +5 -4
  205. package/lib/BlockRenderer/renderChildren.js +2 -2
  206. package/lib/BlockRenderer/renderChildren.js.map +1 -1
  207. package/lib/common.css +1 -1
  208. package/lib/components/Blocks.mobile.js +6 -0
  209. package/lib/components/Blocks.mobile.js.map +1 -1
  210. package/lib/components/Bonus/Bonus.js +1 -1
  211. package/lib/components/Bonus/Bonus.js.map +1 -1
  212. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +1 -1
  213. package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.js.map +1 -1
  214. package/lib/components/Calculator/UnknownRate.js +1 -1
  215. package/lib/components/Calculator/UnknownRate.js.map +1 -1
  216. package/lib/components/Carousel/Carousel.js +18 -33
  217. package/lib/components/Carousel/Carousel.js.map +1 -1
  218. package/lib/components/Carousel/CarouselContent.d.ts +3 -9
  219. package/lib/components/Carousel/CarouselScrollButtons.d.ts +5 -6
  220. package/lib/components/Carousel/CarouselScrollButtons.js +4 -4
  221. package/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
  222. package/lib/components/Carousel/renderControlButtons.d.ts +3 -3
  223. package/lib/components/Carousel/renderControlButtons.js +3 -3
  224. package/lib/components/Carousel/renderControlButtons.js.map +1 -1
  225. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +2 -2
  226. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +7 -40
  227. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  228. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js +1 -2
  229. package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
  230. package/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
  231. package/lib/components/CarouselCard/CarouselCard.js +6 -5
  232. package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  233. package/lib/components/CarouselCard/constants.js +2 -2
  234. package/lib/components/CarouselCard/constants.js.map +1 -1
  235. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  236. package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  237. package/lib/components/CarouselEventCard/CarouselEventCard.js +1 -2
  238. package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  239. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  240. package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  241. package/lib/components/CarouselLinks/CarouselLinks.js +2 -2
  242. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  243. package/lib/components/CarouselProductCard/CarouselProductCard.js +4 -4
  244. package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  245. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -4
  246. package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  247. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +4 -5
  248. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  249. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -2
  250. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
  251. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -2
  252. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  253. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  254. package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  255. package/lib/components/ComparisonTable/ComparisonTable.js +1 -1
  256. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  257. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +1 -1
  258. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  259. package/lib/components/ComparisonTable/ComparisonTableBody.js +1 -1
  260. package/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  261. package/lib/components/ComparisonTable/ComparisonTableRows.js +1 -1
  262. package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  263. package/lib/components/ComparisonTable/HeaderCell.js +1 -1
  264. package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  265. package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  266. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  267. package/lib/components/ContentPage/ContentPage.js +16 -9
  268. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  269. package/lib/components/ExchangeRateTile/CurrencyTable.js +4 -3
  270. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  271. package/lib/components/ExchangeRateTile/CurrentLocation.js +3 -2
  272. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  273. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  274. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  275. package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.d.ts +6 -0
  276. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  277. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  278. package/lib/components/Footer/Footer.d.ts +1 -4
  279. package/lib/components/Footer/Footer.js +2 -4
  280. package/lib/components/Footer/Footer.js.map +1 -1
  281. package/lib/components/Footer/Footer.mobile.d.ts +1 -4
  282. package/lib/components/Footer/Footer.mobile.js +3 -5
  283. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  284. package/lib/components/Footer/FooterProps.d.ts +6 -0
  285. package/lib/components/Footer/FooterProps.js +2 -0
  286. package/lib/components/Footer/FooterProps.js.map +1 -0
  287. package/lib/components/GracePeriod/GracePeriod.js +2 -2
  288. package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  289. package/lib/components/Header/Header.d.ts +1 -4
  290. package/lib/components/Header/Header.fixture.d.ts +0 -1
  291. package/lib/components/Header/Header.js +3 -9
  292. package/lib/components/Header/Header.js.map +1 -1
  293. package/lib/components/Header/Header.mobile.d.ts +2 -5
  294. package/lib/components/Header/Header.mobile.js +2 -5
  295. package/lib/components/Header/Header.mobile.js.map +1 -1
  296. package/lib/components/Header/HeaderContent.d.ts +0 -2
  297. package/lib/components/Header/HeaderProps.d.ts +8 -0
  298. package/lib/components/Header/HeaderProps.js +2 -0
  299. package/lib/components/Header/HeaderProps.js.map +1 -0
  300. package/lib/components/Header/HeaderTop.js +1 -1
  301. package/lib/components/Header/HeaderTop.js.map +1 -1
  302. package/lib/components/HorizontalLayout/HorizontalLayout.fixture.mobile.d.ts +8 -0
  303. package/lib/components/HorizontalLayout/HorizontalLayout.mobile.d.ts +5 -0
  304. package/lib/components/HorizontalLayout/HorizontalLayout.mobile.js +6 -0
  305. package/lib/components/HorizontalLayout/HorizontalLayout.mobile.js.map +1 -0
  306. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
  307. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  308. package/lib/components/InvestmentInfo/InvestmentInfo.js +5 -5
  309. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  310. package/lib/components/LinkDocs/LinkDocs.js +2 -2
  311. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  312. package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  313. package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  314. package/lib/components/OfficeMap/OfficeMap.js +1 -1
  315. package/lib/components/OfficeMap/OfficeMap.js.map +1 -1
  316. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -2
  317. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  318. package/lib/components/ProductTile/ProductTile.fixture.mobile.d.ts +16 -0
  319. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +4 -8
  320. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  321. package/lib/components/RollupItem/RollupItem.js +4 -1
  322. package/lib/components/RollupItem/RollupItem.js.map +1 -1
  323. package/lib/components/SafeDepositRental/RadioButtons.d.ts +6 -0
  324. package/lib/components/SafeDepositRental/RadioButtons.js +11 -0
  325. package/lib/components/SafeDepositRental/RadioButtons.js.map +1 -0
  326. package/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -1
  327. package/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  328. package/lib/components/SafeDepositRental/RentalPeriod.js +2 -1
  329. package/lib/components/SafeDepositRental/RentalPeriod.js.map +1 -1
  330. package/lib/components/SafeDepositRental/SafeBoxCases.js +1 -1
  331. package/lib/components/SafeDepositRental/SafeBoxCases.js.map +1 -1
  332. package/lib/components/SafeDepositRental/SafeDepositRental.fixture.mobile.d.ts +6 -0
  333. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  334. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  335. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
  336. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  337. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +4 -3
  338. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  339. package/lib/components/StepsBlock/renderStep.js +1 -1
  340. package/lib/components/StepsBlock/renderStep.js.map +1 -1
  341. package/lib/components/Tabs/ScrollableTabs.js +0 -1
  342. package/lib/components/Tabs/ScrollableTabs.js.map +1 -1
  343. package/lib/components/TariffsTable/TariffsTable.js +3 -3
  344. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  345. package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +2 -2
  346. package/lib/components/VerticalLayout/VerticalLayout.js +4 -14
  347. package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  348. package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +0 -2
  349. package/lib/hooks/useCarouselControls.d.ts +1 -1
  350. package/lib/hooks/useCarouselControls.js +5 -6
  351. package/lib/hooks/useCarouselControls.js.map +1 -1
  352. package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +5 -5
  353. package/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  354. package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  355. package/lib/ui-kit/BlockWrapper.js +1 -1
  356. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  357. package/lib/ui-kit/LinkButton/LinkButton.js +1 -1
  358. package/lib/ui-kit/LinkList/LinkList.js +2 -2
  359. package/lib/ui-kit/LinkList/LinkList.js.map +1 -1
  360. package/lib/ui-kit/LocationDialog/LocationDialog.js +2 -2
  361. package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  362. package/lib/ui-kit/LocationDialog/SearchBar.js +1 -1
  363. package/lib/ui-kit/LocationDialog/SearchBar.js.map +1 -1
  364. package/lib/ui-kit/SearchDialog/SearchDialog.js +1 -1
  365. package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  366. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
  367. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  368. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  369. package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  370. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -2
  371. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +11 -11
  372. package/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  373. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +1 -1
  374. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  375. package/lib/ui-kit/YandexMap/YandexMap.js +1 -1
  376. package/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  377. package/lib/ui-kit/YandexMap/renderOpenMap.d.ts +0 -1
  378. package/lib/ui-kit/YandexMap/renderSearchField.d.ts +0 -1
  379. package/lib/ui-kit/YandexMap/renderUserGeolocation.d.ts +0 -1
  380. package/mobile/bundle/BlockRenderer/renderBlock.d.ts +2 -4
  381. package/mobile/bundle/BlockRenderer/renderBlockList.d.ts +5 -2
  382. package/mobile/bundle/BlockRenderer/renderChildren.d.ts +5 -4
  383. package/mobile/bundle/bundle.umd.js +1019 -176
  384. package/mobile/bundle/bundle.umd.min.js +1 -1
  385. package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -1
  386. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +3 -9
  387. package/mobile/bundle/components/Carousel/CarouselScrollButtons.d.ts +5 -6
  388. package/mobile/bundle/components/Carousel/renderControlButtons.d.ts +2 -3
  389. package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
  390. package/mobile/bundle/components/Footer/Footer.d.ts +1 -4
  391. package/mobile/bundle/components/Footer/FooterProps.d.ts +6 -0
  392. package/mobile/bundle/components/Header/Header.d.ts +2 -5
  393. package/mobile/bundle/components/Header/HeaderContent.d.ts +0 -2
  394. package/mobile/bundle/components/Header/HeaderProps.d.ts +8 -0
  395. package/mobile/bundle/components/SafeDepositRental/RadioButtons.d.ts +6 -0
  396. package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +0 -2
  397. package/mobile/bundle/hooks/useCarouselControls.d.ts +1 -1
  398. package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +5 -5
  399. package/mobile/bundle/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -2
  400. package/mobile/dist/BlockRenderer/renderBlock.d.ts +2 -4
  401. package/mobile/dist/BlockRenderer/renderBlock.js +1 -2
  402. package/mobile/dist/BlockRenderer/renderBlock.js.map +1 -1
  403. package/mobile/dist/BlockRenderer/renderBlockList.d.ts +5 -2
  404. package/mobile/dist/BlockRenderer/renderBlockList.js +12 -7
  405. package/mobile/dist/BlockRenderer/renderBlockList.js.map +1 -1
  406. package/mobile/dist/BlockRenderer/renderChildren.d.ts +5 -4
  407. package/mobile/dist/BlockRenderer/renderChildren.js +2 -2
  408. package/mobile/dist/BlockRenderer/renderChildren.js.map +1 -1
  409. package/mobile/dist/components/Blocks.js +6 -0
  410. package/mobile/dist/components/Blocks.js.map +1 -1
  411. package/mobile/dist/components/Bonus/Bonus.js +1 -1
  412. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  413. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -1
  414. package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
  415. package/mobile/dist/components/Calculator/UnknownRate.js +1 -1
  416. package/mobile/dist/components/Calculator/UnknownRate.js.map +1 -1
  417. package/mobile/dist/components/Carousel/Carousel.js +18 -33
  418. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  419. package/mobile/dist/components/Carousel/CarouselContent.d.ts +3 -9
  420. package/mobile/dist/components/Carousel/CarouselScrollButtons.d.ts +5 -6
  421. package/mobile/dist/components/Carousel/CarouselScrollButtons.js +4 -4
  422. package/mobile/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
  423. package/mobile/dist/components/Carousel/renderControlButtons.d.ts +2 -3
  424. package/mobile/dist/components/Carousel/renderControlButtons.js +3 -3
  425. package/mobile/dist/components/Carousel/renderControlButtons.js.map +1 -1
  426. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -2
  427. package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  428. package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
  429. package/mobile/dist/components/CarouselCard/CarouselCard.js +6 -5
  430. package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
  431. package/mobile/dist/components/CarouselCard/constants.js +2 -2
  432. package/mobile/dist/components/CarouselCard/constants.js.map +1 -1
  433. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  434. package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  435. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +1 -2
  436. package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  437. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  438. package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  439. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +2 -2
  440. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  441. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +4 -4
  442. package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  443. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -4
  444. package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  445. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
  446. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  447. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -2
  448. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  449. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  450. package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  451. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +1 -1
  452. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  453. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js +1 -1
  454. package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  455. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +1 -1
  456. package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  457. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  458. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  459. package/mobile/dist/components/ContentPage/ContentPage.js +16 -9
  460. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  461. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +4 -3
  462. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  463. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +3 -2
  464. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  465. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  466. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  467. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  468. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  469. package/mobile/dist/components/Footer/Footer.d.ts +1 -4
  470. package/mobile/dist/components/Footer/Footer.js +3 -5
  471. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  472. package/mobile/dist/components/Footer/FooterProps.d.ts +6 -0
  473. package/mobile/dist/components/Footer/FooterProps.js +2 -0
  474. package/mobile/dist/components/Footer/FooterProps.js.map +1 -0
  475. package/mobile/dist/components/GracePeriod/GracePeriod.js +2 -2
  476. package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  477. package/mobile/dist/components/Header/Header.d.ts +2 -5
  478. package/mobile/dist/components/Header/Header.js +2 -5
  479. package/mobile/dist/components/Header/Header.js.map +1 -1
  480. package/mobile/dist/components/Header/HeaderContent.d.ts +0 -2
  481. package/mobile/dist/components/Header/HeaderProps.d.ts +8 -0
  482. package/mobile/dist/components/Header/HeaderProps.js +2 -0
  483. package/mobile/dist/components/Header/HeaderProps.js.map +1 -0
  484. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  485. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  486. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +3 -8
  487. package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  488. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
  489. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  490. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +5 -5
  491. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  492. package/mobile/dist/components/LinkDocs/LinkDocs.js +2 -2
  493. package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  494. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  495. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  496. package/mobile/dist/components/OfficeMap/OfficeMap.js +1 -1
  497. package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -1
  498. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -2
  499. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  500. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +4 -8
  501. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  502. package/mobile/dist/components/RollupItem/RollupItem.js +4 -1
  503. package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
  504. package/mobile/dist/components/SafeDepositRental/RadioButtons.d.ts +6 -0
  505. package/mobile/dist/components/SafeDepositRental/RadioButtons.js +13 -0
  506. package/mobile/dist/components/SafeDepositRental/RadioButtons.js.map +1 -0
  507. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js +1 -1
  508. package/mobile/dist/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  509. package/mobile/dist/components/SafeDepositRental/RentalPeriod.js +2 -1
  510. package/mobile/dist/components/SafeDepositRental/RentalPeriod.js.map +1 -1
  511. package/mobile/dist/components/SafeDepositRental/SafeBoxCases.js +1 -1
  512. package/mobile/dist/components/SafeDepositRental/SafeBoxCases.js.map +1 -1
  513. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  514. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  515. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
  516. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  517. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +4 -3
  518. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  519. package/mobile/dist/components/StepsBlock/renderStep.js +1 -1
  520. package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
  521. package/mobile/dist/components/Tabs/ScrollableTabs.js +0 -1
  522. package/mobile/dist/components/Tabs/ScrollableTabs.js.map +1 -1
  523. package/mobile/dist/components/VerticalLayout/VerticalLayout.js +4 -14
  524. package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
  525. package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +0 -2
  526. package/mobile/dist/hooks/useCarouselControls.d.ts +1 -1
  527. package/mobile/dist/hooks/useCarouselControls.js +5 -6
  528. package/mobile/dist/hooks/useCarouselControls.js.map +1 -1
  529. package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +5 -5
  530. package/mobile/dist/ui-kit/BaseTile/BaseTile.js +1 -1
  531. package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -1
  532. package/mobile/dist/ui-kit/BlockWrapper.js +1 -1
  533. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  534. package/mobile/dist/ui-kit/LinkButton/LinkButton.js +1 -1
  535. package/mobile/dist/ui-kit/LinkList/LinkList.js +2 -2
  536. package/mobile/dist/ui-kit/LinkList/LinkList.js.map +1 -1
  537. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +2 -2
  538. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  539. package/mobile/dist/ui-kit/LocationDialog/SearchBar.js +1 -1
  540. package/mobile/dist/ui-kit/LocationDialog/SearchBar.js.map +1 -1
  541. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +1 -1
  542. package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  543. package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
  544. package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  545. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  546. package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  547. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -2
  548. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js +11 -11
  549. package/mobile/dist/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  550. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +1 -1
  551. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  552. package/mobile/dist/ui-kit/YandexMap/YandexMap.js +1 -1
  553. package/mobile/dist/ui-kit/YandexMap/YandexMap.js.map +1 -1
  554. package/mobile/lib/BlockRenderer/renderBlock.d.ts +2 -4
  555. package/mobile/lib/BlockRenderer/renderBlock.js +1 -2
  556. package/mobile/lib/BlockRenderer/renderBlock.js.map +1 -1
  557. package/mobile/lib/BlockRenderer/renderBlockList.d.ts +5 -2
  558. package/mobile/lib/BlockRenderer/renderBlockList.js +12 -7
  559. package/mobile/lib/BlockRenderer/renderBlockList.js.map +1 -1
  560. package/mobile/lib/BlockRenderer/renderChildren.d.ts +5 -4
  561. package/mobile/lib/BlockRenderer/renderChildren.js +2 -2
  562. package/mobile/lib/BlockRenderer/renderChildren.js.map +1 -1
  563. package/mobile/lib/common.css +1 -1
  564. package/mobile/lib/components/Blocks.js +6 -0
  565. package/mobile/lib/components/Blocks.js.map +1 -1
  566. package/mobile/lib/components/Bonus/Bonus.js +1 -1
  567. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  568. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -1
  569. package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
  570. package/mobile/lib/components/Calculator/UnknownRate.js +1 -1
  571. package/mobile/lib/components/Calculator/UnknownRate.js.map +1 -1
  572. package/mobile/lib/components/Carousel/Carousel.js +18 -33
  573. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  574. package/mobile/lib/components/Carousel/CarouselContent.d.ts +3 -9
  575. package/mobile/lib/components/Carousel/CarouselScrollButtons.d.ts +5 -6
  576. package/mobile/lib/components/Carousel/CarouselScrollButtons.js +4 -4
  577. package/mobile/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
  578. package/mobile/lib/components/Carousel/renderControlButtons.d.ts +2 -3
  579. package/mobile/lib/components/Carousel/renderControlButtons.js +3 -3
  580. package/mobile/lib/components/Carousel/renderControlButtons.js.map +1 -1
  581. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -2
  582. package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
  583. package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
  584. package/mobile/lib/components/CarouselCard/CarouselCard.js +6 -5
  585. package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
  586. package/mobile/lib/components/CarouselCard/constants.js +2 -2
  587. package/mobile/lib/components/CarouselCard/constants.js.map +1 -1
  588. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -2
  589. package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
  590. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +1 -2
  591. package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
  592. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +1 -1
  593. package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
  594. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +2 -2
  595. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  596. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +4 -4
  597. package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
  598. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -4
  599. package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
  600. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
  601. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  602. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -2
  603. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
  604. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
  605. package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
  606. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +1 -1
  607. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  608. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js +1 -1
  609. package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
  610. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +1 -1
  611. package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
  612. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  613. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  614. package/mobile/lib/components/ContentPage/ContentPage.js +16 -9
  615. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  616. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +4 -3
  617. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  618. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +3 -2
  619. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  620. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
  621. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  622. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  623. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  624. package/mobile/lib/components/Footer/Footer.d.ts +1 -4
  625. package/mobile/lib/components/Footer/Footer.js +3 -5
  626. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  627. package/mobile/lib/components/Footer/FooterProps.d.ts +6 -0
  628. package/mobile/lib/components/Footer/FooterProps.js +2 -0
  629. package/mobile/lib/components/Footer/FooterProps.js.map +1 -0
  630. package/mobile/lib/components/GracePeriod/GracePeriod.js +2 -2
  631. package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  632. package/mobile/lib/components/Header/Header.d.ts +2 -5
  633. package/mobile/lib/components/Header/Header.js +2 -5
  634. package/mobile/lib/components/Header/Header.js.map +1 -1
  635. package/mobile/lib/components/Header/HeaderContent.d.ts +0 -2
  636. package/mobile/lib/components/Header/HeaderProps.d.ts +8 -0
  637. package/mobile/lib/components/Header/HeaderProps.js +2 -0
  638. package/mobile/lib/components/Header/HeaderProps.js.map +1 -0
  639. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  640. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  641. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +3 -8
  642. package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
  643. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +1 -1
  644. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  645. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +5 -5
  646. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
  647. package/mobile/lib/components/LinkDocs/LinkDocs.js +2 -2
  648. package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  649. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  650. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  651. package/mobile/lib/components/OfficeMap/OfficeMap.js +1 -1
  652. package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -1
  653. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -2
  654. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  655. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +4 -8
  656. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
  657. package/mobile/lib/components/RollupItem/RollupItem.js +4 -1
  658. package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
  659. package/mobile/lib/components/SafeDepositRental/RadioButtons.d.ts +6 -0
  660. package/mobile/lib/components/SafeDepositRental/RadioButtons.js +11 -0
  661. package/mobile/lib/components/SafeDepositRental/RadioButtons.js.map +1 -0
  662. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js +1 -1
  663. package/mobile/lib/components/SafeDepositRental/RegionsAndBranches.js.map +1 -1
  664. package/mobile/lib/components/SafeDepositRental/RentalPeriod.js +2 -1
  665. package/mobile/lib/components/SafeDepositRental/RentalPeriod.js.map +1 -1
  666. package/mobile/lib/components/SafeDepositRental/SafeBoxCases.js +1 -1
  667. package/mobile/lib/components/SafeDepositRental/SafeBoxCases.js.map +1 -1
  668. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +2 -2
  669. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  670. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
  671. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
  672. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +4 -3
  673. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
  674. package/mobile/lib/components/StepsBlock/renderStep.js +1 -1
  675. package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
  676. package/mobile/lib/components/Tabs/ScrollableTabs.js +0 -1
  677. package/mobile/lib/components/Tabs/ScrollableTabs.js.map +1 -1
  678. package/mobile/lib/components/VerticalLayout/VerticalLayout.js +4 -14
  679. package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
  680. package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +0 -2
  681. package/mobile/lib/hooks/useCarouselControls.d.ts +1 -1
  682. package/mobile/lib/hooks/useCarouselControls.js +5 -6
  683. package/mobile/lib/hooks/useCarouselControls.js.map +1 -1
  684. package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +5 -5
  685. package/mobile/lib/ui-kit/BaseTile/BaseTile.js +1 -1
  686. package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -1
  687. package/mobile/lib/ui-kit/BlockWrapper.js +1 -1
  688. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  689. package/mobile/lib/ui-kit/LinkButton/LinkButton.js +1 -1
  690. package/mobile/lib/ui-kit/LinkList/LinkList.js +2 -2
  691. package/mobile/lib/ui-kit/LinkList/LinkList.js.map +1 -1
  692. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +2 -2
  693. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  694. package/mobile/lib/ui-kit/LocationDialog/SearchBar.js +1 -1
  695. package/mobile/lib/ui-kit/LocationDialog/SearchBar.js.map +1 -1
  696. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +1 -1
  697. package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
  698. package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +1 -1
  699. package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
  700. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js +1 -1
  701. package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
  702. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.d.ts +1 -2
  703. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js +11 -11
  704. package/mobile/lib/ui-kit/SwipeListControl/useSwipeListScroll.js.map +1 -1
  705. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +1 -1
  706. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  707. package/mobile/lib/ui-kit/YandexMap/YandexMap.js +1 -1
  708. package/mobile/lib/ui-kit/YandexMap/YandexMap.js.map +1 -1
  709. package/mobile/src/BlockRenderer/renderBlock.tsx +3 -6
  710. package/mobile/src/BlockRenderer/renderBlockList.tsx +29 -12
  711. package/mobile/src/BlockRenderer/renderChildren.ts +7 -6
  712. package/mobile/src/components/Blocks.ts +6 -0
  713. package/mobile/src/components/Bonus/Bonus.tsx +1 -1
  714. package/mobile/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +2 -1
  715. package/mobile/src/components/Calculator/UnknownRate.tsx +1 -1
  716. package/mobile/src/components/Carousel/Carousel.tsx +47 -45
  717. package/mobile/src/components/Carousel/CarouselContent.ts +3 -9
  718. package/mobile/src/components/Carousel/CarouselScrollButtons.tsx +22 -25
  719. package/mobile/src/components/Carousel/renderControlButtons.tsx +2 -4
  720. package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -2
  721. package/mobile/src/components/CarouselCard/CarouselCard.tsx +15 -21
  722. package/mobile/src/components/CarouselCard/constants.ts +2 -2
  723. package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +3 -5
  724. package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +3 -4
  725. package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +1 -9
  726. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +2 -7
  727. package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +6 -11
  728. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +15 -22
  729. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -6
  730. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +1 -2
  731. package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -3
  732. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
  733. package/mobile/src/components/ComparisonTable/ComparisonTableBody.tsx +1 -1
  734. package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +1 -1
  735. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  736. package/mobile/src/components/ContentPage/ContentPage.tsx +68 -50
  737. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +24 -8
  738. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +5 -2
  739. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -1
  740. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  741. package/mobile/src/components/Footer/Footer.tsx +7 -11
  742. package/mobile/src/components/Footer/FooterProps.ts +7 -0
  743. package/mobile/src/components/GracePeriod/GracePeriod.tsx +10 -4
  744. package/mobile/src/components/Header/Header.tsx +4 -15
  745. package/mobile/src/components/Header/HeaderContent.ts +0 -2
  746. package/mobile/src/components/Header/HeaderProps.ts +9 -0
  747. package/mobile/src/components/Header/HeaderTop.tsx +1 -1
  748. package/mobile/src/components/Header/sitemap.wcms-resource.json +144 -0
  749. package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +3 -25
  750. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +1 -1
  751. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +5 -5
  752. package/mobile/src/components/LinkDocs/LinkDocs.tsx +3 -2
  753. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  754. package/mobile/src/components/OfficeMap/OfficeMap.tsx +6 -6
  755. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +5 -5
  756. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +15 -16
  757. package/mobile/src/components/RollupItem/RollupItem.tsx +5 -2
  758. package/mobile/src/components/SafeDepositRental/{RenderRadioButtons.tsx → RadioButtons.tsx} +7 -2
  759. package/mobile/src/components/SafeDepositRental/RegionsAndBranches.tsx +3 -3
  760. package/mobile/src/components/SafeDepositRental/RentalPeriod.tsx +5 -2
  761. package/mobile/src/components/SafeDepositRental/SafeBoxCases.tsx +3 -3
  762. package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +10 -8
  763. package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
  764. package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +15 -12
  765. package/mobile/src/components/StepsBlock/renderStep.tsx +2 -2
  766. package/mobile/src/components/Tabs/ScrollableTabs.tsx +0 -1
  767. package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +0 -1
  768. package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +14 -35
  769. package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +0 -2
  770. package/mobile/src/hooks/useCarouselControls.ts +8 -7
  771. package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +5 -5
  772. package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +5 -3
  773. package/mobile/src/ui-kit/BlockWrapper.tsx +1 -1
  774. package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +1 -1
  775. package/mobile/src/ui-kit/LinkList/LinkList.tsx +2 -2
  776. package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +2 -3
  777. package/mobile/src/ui-kit/LocationDialog/SearchBar.tsx +1 -1
  778. package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +1 -4
  779. package/mobile/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +3 -3
  780. package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +1 -1
  781. package/mobile/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +10 -12
  782. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +1 -1
  783. package/mobile/src/ui-kit/YandexMap/YandexMap.tsx +1 -1
  784. package/package.json +2 -1
  785. package/src/BlockRenderer/renderBlock.tsx +3 -6
  786. package/src/BlockRenderer/renderBlockList.tsx +29 -12
  787. package/src/BlockRenderer/renderChildren.ts +7 -6
  788. package/src/components/Blocks.mobile.ts +6 -0
  789. package/src/components/Bonus/Bonus.tsx +1 -1
  790. package/src/components/BonusBenefitsBlock/renderBonusBenefits.mobile.tsx +2 -1
  791. package/src/components/Calculator/UnknownRate.tsx +1 -1
  792. package/src/components/Carousel/Carousel.fixture.mobile.tsx +8 -53
  793. package/src/components/Carousel/Carousel.fixture.tsx +4 -26
  794. package/src/components/Carousel/Carousel.tsx +47 -45
  795. package/src/components/Carousel/CarouselContent.ts +3 -9
  796. package/src/components/Carousel/CarouselScrollButtons.tsx +22 -25
  797. package/src/components/Carousel/renderControlButtons.tsx +2 -4
  798. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.fixture.tsx +2 -7
  799. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.tsx +1 -2
  800. package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +34 -67
  801. package/src/components/CarouselCard/CarouselCard.fixture.mobile.tsx +1 -1
  802. package/src/components/CarouselCard/CarouselCard.fixture.tsx +1 -1
  803. package/src/components/CarouselCard/CarouselCard.tsx +15 -21
  804. package/src/components/CarouselCard/constants.ts +2 -2
  805. package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +3 -5
  806. package/src/components/CarouselEventCard/CarouselEventCard.fixture.tsx +5 -3
  807. package/src/components/CarouselEventCard/CarouselEventCard.tsx +3 -4
  808. package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +1 -9
  809. package/src/components/CarouselLinks/CarouselLinks.tsx +2 -7
  810. package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +5 -2
  811. package/src/components/CarouselProductCard/CarouselProductCard.tsx +6 -11
  812. package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +15 -22
  813. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +1 -6
  814. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +24 -30
  815. package/src/components/CarouselRichTextCard/CarouselRichTextCard.fixture.tsx +1 -1
  816. package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +1 -2
  817. package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -3
  818. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +2 -2
  819. package/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
  820. package/src/components/ComparisonTable/ComparisonTableBody.tsx +1 -1
  821. package/src/components/ComparisonTable/ComparisonTableRows.tsx +1 -1
  822. package/src/components/ComparisonTable/HeaderCell.tsx +5 -10
  823. package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  824. package/src/components/ContentPage/ContentPage.tsx +68 -50
  825. package/src/components/ExchangeRateTile/CurrencyTable.tsx +24 -8
  826. package/src/components/ExchangeRateTile/CurrentLocation.tsx +5 -2
  827. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -1
  828. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.tsx +19 -0
  829. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  830. package/src/components/Footer/Footer.fixture.mobile.tsx +3 -1
  831. package/src/components/Footer/Footer.fixture.tsx +4 -17
  832. package/src/components/Footer/Footer.mobile.tsx +7 -11
  833. package/src/components/Footer/Footer.tsx +6 -10
  834. package/src/components/Footer/FooterProps.ts +7 -0
  835. package/src/components/GracePeriod/GracePeriod.tsx +10 -4
  836. package/src/components/Header/Header.fixture.mobile.tsx +5 -2
  837. package/src/components/Header/Header.fixture.tsx +4 -3
  838. package/src/components/Header/Header.mobile.tsx +4 -15
  839. package/src/components/Header/Header.tsx +8 -29
  840. package/src/components/Header/HeaderContent.ts +0 -2
  841. package/src/components/Header/HeaderProps.ts +9 -0
  842. package/src/components/Header/HeaderTop.tsx +1 -1
  843. package/src/components/Header/sitemap.wcms-resource.json +144 -0
  844. package/src/components/HorizontalLayout/HorizontalLayout.fixture.mobile.tsx +72 -0
  845. package/src/components/HorizontalLayout/HorizontalLayout.mobile.tsx +12 -0
  846. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +1 -1
  847. package/src/components/InvestmentInfo/InvestmentInfo.tsx +5 -5
  848. package/src/components/LinkDocs/LinkDocs.tsx +3 -2
  849. package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  850. package/src/components/OfficeMap/OfficeMap.tsx +6 -6
  851. package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +5 -5
  852. package/src/components/ProductTile/ProductTile.fixture.mobile.tsx +214 -0
  853. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.tsx +1 -1
  854. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +1 -1
  855. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +15 -16
  856. package/src/components/RollupItem/RollupItem.fixture.mobile.tsx +15 -19
  857. package/src/components/RollupItem/RollupItem.tsx +5 -2
  858. package/src/components/SafeDepositRental/{RenderRadioButtons.tsx → RadioButtons.tsx} +7 -2
  859. package/src/components/SafeDepositRental/RegionsAndBranches.tsx +3 -3
  860. package/src/components/SafeDepositRental/RentalPeriod.tsx +5 -2
  861. package/src/components/SafeDepositRental/SafeBoxCases.tsx +3 -3
  862. package/src/components/SafeDepositRental/SafeDepositRental.fixture.mobile.tsx +15 -0
  863. package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +10 -8
  864. package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
  865. package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +15 -12
  866. package/src/components/StepsBlock/renderStep.tsx +2 -2
  867. package/src/components/Tabs/ScrollableTabs.tsx +0 -1
  868. package/src/components/TariffsTable/TariffsTable.tsx +3 -3
  869. package/src/components/VerticalLayout/VerticalLayout.example.json +0 -1
  870. package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +0 -3
  871. package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +2 -9
  872. package/src/components/VerticalLayout/VerticalLayout.tsx +14 -35
  873. package/src/components/VerticalLayout/VerticalLayoutContent.ts +0 -2
  874. package/src/hooks/useCarouselControls.ts +8 -7
  875. package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +5 -5
  876. package/src/ui-kit/BaseTile/BaseTile.tsx +5 -3
  877. package/src/ui-kit/BlockWrapper.tsx +1 -1
  878. package/src/ui-kit/LinkButton/LinkButton.tsx +1 -1
  879. package/src/ui-kit/LinkList/LinkList.tsx +2 -2
  880. package/src/ui-kit/LocationDialog/LocationDialog.tsx +2 -3
  881. package/src/ui-kit/LocationDialog/SearchBar.tsx +1 -1
  882. package/src/ui-kit/SearchDialog/SearchDialog.tsx +1 -4
  883. package/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +3 -3
  884. package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +1 -1
  885. package/src/ui-kit/SwipeListControl/useSwipeListScroll.ts +10 -12
  886. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +1 -1
  887. package/src/ui-kit/YandexMap/YandexMap.tsx +1 -1
  888. package/tailwind.config.cjs +1 -7
  889. package/bundle/components/Calculator/renderProposalMortgage.d.ts +0 -8
  890. package/bundle/components/CarouselCard/getCardWidth.d.ts +0 -1
  891. package/bundle/components/CarouselRecommendationCard/cardStyle.d.ts +0 -1
  892. package/bundle/components/Header/HeaderBurger.d.ts +0 -9
  893. package/bundle/components/SafeDepositRental/RenderRadioButtons.d.ts +0 -2
  894. package/dist/components/Calculator/renderProposalMortgage.d.ts +0 -8
  895. package/dist/components/Calculator/renderProposalMortgage.js +0 -10
  896. package/dist/components/Calculator/renderProposalMortgage.js.map +0 -1
  897. package/dist/components/CarouselCard/getCardWidth.d.ts +0 -1
  898. package/dist/components/CarouselCard/getCardWidth.js +0 -18
  899. package/dist/components/CarouselCard/getCardWidth.js.map +0 -1
  900. package/dist/components/CarouselRecommendationCard/cardStyle.d.ts +0 -1
  901. package/dist/components/CarouselRecommendationCard/cardStyle.js +0 -4
  902. package/dist/components/CarouselRecommendationCard/cardStyle.js.map +0 -1
  903. package/dist/components/Header/HeaderBurger.d.ts +0 -9
  904. package/dist/components/Header/HeaderBurger.js +0 -17
  905. package/dist/components/Header/HeaderBurger.js.map +0 -1
  906. package/dist/components/SafeDepositRental/RenderRadioButtons.d.ts +0 -2
  907. package/dist/components/SafeDepositRental/RenderRadioButtons.js +0 -12
  908. package/dist/components/SafeDepositRental/RenderRadioButtons.js.map +0 -1
  909. package/lib/components/Calculator/renderProposalMortgage.d.ts +0 -8
  910. package/lib/components/Calculator/renderProposalMortgage.js +0 -7
  911. package/lib/components/Calculator/renderProposalMortgage.js.map +0 -1
  912. package/lib/components/CarouselCard/getCardWidth.d.ts +0 -1
  913. package/lib/components/CarouselCard/getCardWidth.js +0 -15
  914. package/lib/components/CarouselCard/getCardWidth.js.map +0 -1
  915. package/lib/components/CarouselRecommendationCard/cardStyle.d.ts +0 -1
  916. package/lib/components/CarouselRecommendationCard/cardStyle.js +0 -2
  917. package/lib/components/CarouselRecommendationCard/cardStyle.js.map +0 -1
  918. package/lib/components/Header/HeaderBurger.d.ts +0 -9
  919. package/lib/components/Header/HeaderBurger.js +0 -15
  920. package/lib/components/Header/HeaderBurger.js.map +0 -1
  921. package/lib/components/SafeDepositRental/RenderRadioButtons.d.ts +0 -2
  922. package/lib/components/SafeDepositRental/RenderRadioButtons.js +0 -10
  923. package/lib/components/SafeDepositRental/RenderRadioButtons.js.map +0 -1
  924. package/mobile/bundle/components/Calculator/renderProposalMortgage.d.ts +0 -8
  925. package/mobile/bundle/components/CarouselCard/getCardWidth.d.ts +0 -1
  926. package/mobile/bundle/components/CarouselRecommendationCard/cardStyle.d.ts +0 -1
  927. package/mobile/bundle/components/Header/HeaderBurger.d.ts +0 -9
  928. package/mobile/bundle/components/SafeDepositRental/RenderRadioButtons.d.ts +0 -2
  929. package/mobile/dist/components/Calculator/renderProposalMortgage.d.ts +0 -8
  930. package/mobile/dist/components/Calculator/renderProposalMortgage.js +0 -10
  931. package/mobile/dist/components/Calculator/renderProposalMortgage.js.map +0 -1
  932. package/mobile/dist/components/CarouselCard/getCardWidth.d.ts +0 -1
  933. package/mobile/dist/components/CarouselCard/getCardWidth.js +0 -18
  934. package/mobile/dist/components/CarouselCard/getCardWidth.js.map +0 -1
  935. package/mobile/dist/components/CarouselRecommendationCard/cardStyle.d.ts +0 -1
  936. package/mobile/dist/components/CarouselRecommendationCard/cardStyle.js +0 -4
  937. package/mobile/dist/components/CarouselRecommendationCard/cardStyle.js.map +0 -1
  938. package/mobile/dist/components/Header/HeaderBurger.d.ts +0 -9
  939. package/mobile/dist/components/Header/HeaderBurger.js +0 -17
  940. package/mobile/dist/components/Header/HeaderBurger.js.map +0 -1
  941. package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.d.ts +0 -2
  942. package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js +0 -12
  943. package/mobile/dist/components/SafeDepositRental/RenderRadioButtons.js.map +0 -1
  944. package/mobile/lib/components/Calculator/renderProposalMortgage.d.ts +0 -8
  945. package/mobile/lib/components/Calculator/renderProposalMortgage.js +0 -7
  946. package/mobile/lib/components/Calculator/renderProposalMortgage.js.map +0 -1
  947. package/mobile/lib/components/CarouselCard/getCardWidth.d.ts +0 -1
  948. package/mobile/lib/components/CarouselCard/getCardWidth.js +0 -15
  949. package/mobile/lib/components/CarouselCard/getCardWidth.js.map +0 -1
  950. package/mobile/lib/components/CarouselRecommendationCard/cardStyle.d.ts +0 -1
  951. package/mobile/lib/components/CarouselRecommendationCard/cardStyle.js +0 -2
  952. package/mobile/lib/components/CarouselRecommendationCard/cardStyle.js.map +0 -1
  953. package/mobile/lib/components/Header/HeaderBurger.d.ts +0 -9
  954. package/mobile/lib/components/Header/HeaderBurger.js +0 -15
  955. package/mobile/lib/components/Header/HeaderBurger.js.map +0 -1
  956. package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.d.ts +0 -2
  957. package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js +0 -10
  958. package/mobile/lib/components/SafeDepositRental/RenderRadioButtons.js.map +0 -1
  959. package/mobile/src/components/Calculator/renderProposalMortgage.tsx +0 -22
  960. package/mobile/src/components/CarouselCard/getCardWidth.tsx +0 -16
  961. package/mobile/src/components/CarouselRecommendationCard/cardStyle.ts +0 -2
  962. package/mobile/src/components/Header/HeaderBurger.tsx +0 -54
  963. package/src/components/Calculator/renderProposalMortgage.tsx +0 -22
  964. package/src/components/CarouselCard/getCardWidth.tsx +0 -16
  965. package/src/components/CarouselRecommendationCard/cardStyle.ts +0 -2
  966. package/src/components/Header/HeaderBurger.tsx +0 -54
@@ -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"),a=l("useEffect"),i=l("useCallback"),r=l("useMemo"),s=l("useRef");const o=e=>e&&!e.endsWith("/")?`${e}/`:e,c={PROD_BRANCH:"master"},d=new class{_=c;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||c.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 CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return o(this._.CDN)}get BASE_PATH(){return o(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");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(m,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/${d.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/${d.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:a}=await e.json();return a||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/${d.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:a}=await e.json();return a||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,l){const{children:n,...a}=t||{},i=l?.slots?.default,r=n||i&&i();return e(Object.assign(a,r&&{children:r}),l)}return t.inheritAttrs=!1,t};class f{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(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){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const b=new f;function v(e,{sensitivity:t,rootRef:l}={}){const n=s(null),i=r((()=>({threshold:y(t),root:l?.current})),[t,l?.current]);return a((()=>{if(!n.current)return;const t=new IntersectionObserver(e,i);return t.observe(n.current),()=>{t.disconnect()}}),[e,i]),n}function y(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 N=new f;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),S={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},k=x((({className:e,version:t="primary",isTheme:l=!0,defaultPadding:r="p-xl",padding:s,block:o,tag:c="section",role:d,children:m})=>{const h=c,p=function(e){return v(i((t=>{if(!e||!t?.length)return;const l=t[t.length-1];N.fire("intersection",{block:e,intersection:l})}),[e]),{sensitivity:1})}(o),[x,g]=n(!1);a((()=>b.subscribe("tab",(e=>{g(Boolean(e.label&&o?.labels?.length&&!o.labels.includes(e.label)))}))),[o]);const f=t&&l;return u(h,{className:w("font-sans",f?"group":"",S[t],x?"hidden":"",s||r,e),...f?{"data-ver":t}:{},...o?.anchor?{id:o.anchor,ref:p}:{},role:d,children:m})})),C={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},I=x((({className:e="",headingType:t="h3",as:l="h3",title:n,children:a})=>u(l,{className:w("font-sans m-0",C[t],e),children:n||a}))),T=e=>e,B=(e,t)=>{const[l,a]=n(e),[r,o]=n(!1),[c,d]=n({}),m=s({}),h=i(((e,t)=>{const{parse:n=T,format:i=T}=t||{};return m.current||(m.current={}),m.current[e]||=t=>{a((l=>({...l,[e]:n(t)}))),d((t=>({...t,[e]:!0})))},{value:i(l[e]),isDirty:r||c[e],onChange:m.current[e]}}),[l,r,c]),u=i((()=>{a(e),o(!1),d({})}),[e]),p=i((e=>{e.preventDefault(),o(!0),t&&t(l)}),[t,l]);return[l,{isDirty:r||Object.values(c).some(Boolean),field:h,reset:u,onSubmit:p}]},R=e=>t=>t&&Object.entries(e).flatMap((([e,l])=>l(t[e])))||[],M=e=>!e?.length,P=e=>t=>l=>e(l)?[]:[t],V=e=>null!=e,z=new Map;function $(e,t,{fallback:l,cache:i}={}){const s=r((()=>_(e)),[e]),[o]=(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)?s:[],[c,d]=n(void 0),[m,h]=n(void 0);a((()=>{!s.some(V)||(async()=>{try{const e=await(o?((e,t=z)=>l=>{const n=t.get(l);if(V(n))return n;const a=e(l);return V(a)?t.set(l,Promise.resolve(a)):t.delete(l),a})(t,i)(o):t(...s));d(e),h(void 0)}catch(e){d(void 0),h(e)}})()}),[t,i,s]);const u=l&&o&&l[o];return{data:!c&&u?u:c,error:m,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function _(e){return Array.isArray(e)?e:e instanceof Function?_(e()):[e]}async function j(e,t){try{return e?await D(e,t):null}catch(e){console.error(e)}return null}async function D(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}const A=[];function L(){const{data:e}=$("/api/v1/regions",D);return e||A}const O=(e="")=>({open:t=>b.fire("dialog",{type:"open",id:e,message:t}),close:()=>b.fire("dialog",{type:"close"})}),E=e=>Boolean(e?.includes(":")),F=(e,t)=>Boolean(e&&!E(e)&&(!t||"_self"===t)),U=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),H=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var X=Object.freeze({__proto__:null,isURL:E,isLocalURL:F,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:U,joinPath:H});const W=e=>(t,l=d.BASE_PATH)=>{if(!t||E(t)||K(t,d.CDN))return t;const n=t.startsWith("/");return H(K(t,l)?"":l,n?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},K=(e,t)=>t&&e&&e.startsWith(t),G=(e,t)=>G._impl(e,t);function J(){return J._impl()}function Y(e={}){const{isRemote:t,basePath:l}=e,n=J(),{close:a}=O();return e=>({...e,href:t&&!l?e.href:W(n)(e.href,l),"aria-label":e.text,onClick:G(i(e),e)});function i({href:e,target:l,onClick:i}){return r=>{i&&i(r),e&&!t&&F(e,l)&&(a(),r?.preventDefault(),n.push(e))}}}G._impl=e=>e,G.setup=e=>{G._impl=e},J._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),J.setup=e=>{J._impl=e};const q={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:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},Z="bg-main-divider text-main-disabled",Q={primary:Z,secondary:Z,white:Z,link:"",transparent:"",gray:Z,"":""},ee="text-center font-sans select-none",te={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},le=x((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:a,version:i="primary"}=e;return p("div",{className:w(ne(e),"flex gap-2"),children:[n?u("div",{className:te[i],children:n}):null,ae(e)?p("div",{children:[l?u("div",{className:"text-xs font-light text-left",children:l}):null,u("div",{className:"text-left "+(l?"text-s -mt-3xs":"text-l"),children:t})]}):null,a?u("div",{className:te[i],children:a}):null]})})),ne=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const a=""+(l?"py-2.5 px-9":"py-4 px-9");return["group/btn items-center justify-center",ae(e)?a:"h-12 w-12",n?"rounded-full":""].join(" ")},ae=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),ie=({className:e,rounded:t,version:l})=>["inline-block",ee,l?Q[l]:"",t?"rounded-full":"rounded-md",e].join(" "),re=({className:e,rounded:t,version:l})=>[ee,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",l?q[l]:"",t?"rounded-full":"rounded-md",e].join(" "),se=x((({disabled:e,children:t,...l})=>{const n=Y()(l),a=t??u(le,{...n});return u(e?ce:oe,{...n,children:a})})),oe=x((({className:e="",href:t,rel:l,target:n,ariaLabel:a,version:i,rounded:r,onClick:s,children:o})=>u("a",{className:re({className:e,version:i,rounded:r}),href:t,rel:l,target:n,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),ce=x((({className:e,ariaLabel:t,version:l,rounded:n,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ie({className:e,rounded:n,version:l}),children:a}))),de=x((({children:e,...t})=>u("p",{className:w("font-sans",Object.values(t)),children:e}))),me=x((({children:e,...t})=>u("span",{className:w("font-sans",Object.values(t)),children:e}))),he=x((({link:e})=>p(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:[u(me,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(se,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(me,{children:e.text})}):null]}))),ue=(e,t)=>{const{value:l,isDirty:n}=e,a=n?t(l):[];return{...e,errors:a,error:a[0]}},pe=x((({key:e,className:t="",inputClassName:l="",id:n,name:a,type:r="text",label:s,placeholder:o,value:c="",valid:d=!0,children:m,onChange:h,onFocus:x,onBlur:g,pattern:f})=>{const b=i((e=>{h&&h(e.target?.value||"")}),[h]),v=m?"pr-8":"",y=d?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:w("relative",t),children:[p("label",{children:[s?u("div",{className:"mb-xs",children:u(me,{size:"text-m",font:"font-light",children:s})}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-4",v,y,l),id:n,name:a||n,placeholder:o,type:r,value:c,onInput:b,onFocus:x,onBlur:g,pattern:f},e)]}),m]})})),xe=x((({className:e,label:t,value:l="",error:n,onChange:a,onBlur:i})=>p("div",{className:e,children:[u(pe,{type:"text","aria-label":t,label:t,valid:Boolean(!n),value:l,onChange:a,onBlur:i}),u("div",{className:"h-2",children:n?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:n}):null})]}))),ge=e=>"_"===e,fe=e=>/\d/.test(e),be=e=>ge(e)||fe(e),ve=[..."+7 (___) ___-__-__"],ye=ve.findIndex(ge),Ne=ve.map(((e,t)=>be(e)?ve.slice(0,t).filter(be).length:-1));const we=x((({children:e,onChange:t,...l})=>{const n=i((e=>t&&t(function(e){const t=e.replace(/\D/g,""),l=ve.map(((e,l)=>fe(e)?e:t.charAt(Ne[l])||e)),n=Ne.indexOf(t.length-1)+1;return(n?l.slice(0,Math.max(ye,n)):l).join("")}(e))),[t]);return u(pe,{onChange:n,onFocus:e=>n(e?.target?.value||""),...l,children:e})})),Se=x((({className:e,label:t,value:l,error:n,onChange:a,onBlur:i})=>p("div",{className:e,children:[u(we,{"aria-label":t,label:t,valid:Boolean(!n),value:l,onChange:a,onBlur:i}),u("div",{className:"h-2",children:n?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:n}):null})]}))),ke="Некорректно заполненное поле",Ce=P((e=>null!=e&&""!==e))(ke),Ie=P((e=>"string"==typeof e&&e.length>1))(ke),Te=P((e=>"string"==typeof e&&(10===e.length||12===e.length)))(ke),Be=(Re=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,P((e=>"string"==typeof e&&Re.test(e))))(ke);var Re;const Me=e=>p("div",{className:"mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7",children:[p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...ue(e("fullName"),Ce)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)})]}),p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)}),u(Se,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)})]})]}),Pe=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function Ve(e=!1){const[t,l]=n(e),a=i((()=>l(!0)),[]),r=i((()=>l(!1)),[]),s=i((()=>l((e=>!e))),[]);return[t,{setValue:l,setTrue:a,setFalse:r,toggle:s}]}function ze(e){const t=s(null);return a((()=>{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 $e={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},_e=x((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:a=n,iconVersion:i="color",...r})=>{const s=J(),o=W(s)(H(d.CDN,"/icons",`${l}.svg`));return"normal"!==i?u(De,{className:e,children:p("svg",{className:w(je(r.width),$e[i],"white"===i?"invert":"",t),...r,"aria-hidden":"true",children:[a?u("title",{children:a}):null,n?u("desc",{children:n}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(r.style={height:`${r.height}px`}),u("img",{className:e,src:o,alt:n,title:a,"aria-hidden":"true",...r}))})),je=e=>e?"":"w-full h-full",De=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),Ae=x((({className:e="",label:t,options:l=[],value:n,valid:a=!0,isBorder:r=!0,placeholder:s="",onChange:o})=>{const[c,{setFalse:d,toggle:m}]=Ve(),h=ze(d),x=i((e=>{d(),o&&o(e)}),[o]);return p("div",{className:e,ref:h,children:[t?u("div",{className:"mb-xs",children:u(me,{size:"text-m",color:"text-primary-text",font:"font-light",children:t})}):null,p("div",{className:w("relative",c?"z-20":"z-10"),children:[p("div",{className:w("text-l flex justify-between items-center text-primary-text cursor-pointer",Ee(r,a)),onClick:m,children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:Oe(n)||s}),u(_e,{className:w("absolute right-3",c?"":"rotate-180"),name:"ArrowUpIcon",width:"16",height:"16"})]}),l?.length?u("div",{className:w("h-0",c?"":"overflow-hidden"),children:u("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:l.map(Le(x,c,(e=>e.key===n?.key)))})}):null]})]})})),Le=(e,t,l)=>(n,a)=>p("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:Oe(n)}),u(_e,{name:"DoneSimpleIcon",width:"16",height:"16",className:w("absolute right-4 pt-0.5",l(n)&&t?"":"hidden")})]},String(a)),Oe=e=>e?.text||e?.key||"",Ee=(e,t)=>w(e?"border rounded-md hover:border-primary-hover":"",t?" border-gray":"border-error"),Fe=x((e=>p("div",{children:[u(Ae,{...e,valid:!e.error}),u("div",{className:"h-2",children:e.error?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:e.error}):null})]}))),Ue=({regions:e,field:t})=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Pe.map((({name:e=""})=>({key:e,text:e}))),...ue(t("acquiringType"),Ce)})}),u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Адрес",placeholder:"Выберите адрес",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(t("region"),Ce)})})]}),He=x((({value:e=!1,text:t,type:l="checkbox",onChange:n})=>p("div",{role:l,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-3",onClick:()=>n&&n(!e),children:[u("div",{className:w("relative flex-shrink-0 duration-300 w-9 h-5 mr-3 rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:w("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-[50%]":"left-[5%]")})}),u(me,{size:"text-l",font:"font-light",color:"text-primary-text",children:t})]}))),Xe=e=>p("div",{className:"sm:mb-5",children:[u(He,{text:"Хочу купить онлайн-кассу",...e("onlineCheckout")}),u(He,{text:"Хочу купить POS-терминал",...e("posTerminal")})]}),We=(e,t)=>{const l=re({className:"text-white",version:e?.version});return u("button",{type:"submit",className:w("p-4 mt-3 w-full sm:mt-0 sm:w-auto",l,t),children:e?.text?e.text:"Отправить заявку"})},Ke={acquiringType:{key:"Торговый эквайринг"},fullName:"",inn:"",name:"",phone:"",onlineCheckout:!1,posTerminal:!1},Ge=R({acquiringType:Ce,region:Ce,fullName:Ce,inn:Te,name:Ie,phone:Be}),Je=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{acquiringType:t,region:l,fullName:a,inn:i,name:r,phone:s,onlineCheckout:o,posTerminal:c}=e;M(Ge(e))&&n({typeForm:"acqr",region:l?.text||"",partnerComments:`Вид эквайринга=${t?.key||""}/Онлайн касса=${o}/POS-терминал=${c}`,fullName:a,inn:i,name:r,phone:s})}),[n]),[,{field:r,...s}]=B(Ke,a),o=L();return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Вид эквайринга и регион",className:"sm:text-center mb-4"}),Ue({regions:o,field:r}),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),Me(r),Xe(r),We(t,"mb-4"),u(he,{link:l})]})})),Ye=e=>p("div",{className:"sm:flex sm:justify-between sm:gap-5",children:[p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)}),u(xe,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)})]}),p("div",{className:"sm:w-1/2",children:[u(Se,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...ue(e("mail"),Ce)})]})]}),qe=({regions:e,field:t})=>u("div",{className:"w-full mb-3 sm:mb-5",children:u(Fe,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(t("region"),Ce)})}),Ze={name:"",phone:"",inn:"",mail:""},Qe=R({region:Ce,name:Ie,phone:Be,inn:Te,mail:Ce}),et=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{region:t,name:l,phone:a,inn:i,mail:r}=e;M(Qe(e))&&n({typeForm:"bcrd",region:t?.text||"",name:l,phone:a,inn:i,mail:r})}),[n]),[,{field:r,...s}]=B(Ze,a),o=L();return p("form",{className:"container",onSubmit:s.onSubmit,children:[qe({regions:o,field:r}),Ye(r),We(t,"mb-4"),u(he,{link:l})]})})),tt=[];const lt=async e=>await j(e,{method:"GET"})||tt,nt=["От 1 000 ₽","До 1 000 000 000 ₽"],at=["От 1 мес","До 15 лет"],it=e=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...e("fullName")}),u(xe,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)}),u(Se,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)})]}),p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Годовая выручка, ₽",...ue(e("annualRevenue"),Ce)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...e("mail")})]})]}),rt=(e,{normalize:t,format:l})=>{const{value:a,onFocus:r,onBlur:s,onChange:o}=e,[c,d]=n(!1),m=i((e=>{d(!0),r&&r(e)}),[]),h=i((()=>{d(!1),o&&o(t(a)),s&&s()}),[o,a]);return{value:c||!l?a:l(a),onFocus:m,onBlur:h}},st=(e,t,l)=>Math.max(t,Math.min(e,l)),ot=(e=0)=>(t=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:e}).format(Number(t)||0);function ct(e){const t=(e||"").replace(/\D/g,""),l=parseInt(t,10);return Number.isNaN(l)?0:l}function dt({list:e=[],min:t,max:l,step:n,value:a=e[0]||t,disabled:i,onChange:r}){const s=e.length?e.indexOf(a):a,o={backgroundSize:`${(100*(s-t)/(l-t)).toFixed(2)}% 100%`};return p("div",{children:[e.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:e.map(((e,t)=>u("div",{className:"w-2 h-2 rounded-full "+(s<=t||i?"bg-gray":"bg-primary-main")},String(t))))}):null,u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",style:o,type:"range",min:t,max:l,step:n,value:s,disabled:i,onInput:t=>{const l=ct(t.target?.value),n=e.length?e[l]:l;r&&r(n||0)}})})]})}const mt=1,ht=100,ut=x((e=>{const{className:t,title:l,items:n=[],list:a=[],min:r=(a.length?0:mt),max:s=(a.length?a.length-1:ht),step:o=1,value:c=a[0]||r,disabled:d=!1,onChange:m}=e,h=rt(e,{normalize:(e=0)=>a.length?pt(a)(e):st(e,r,s),format:ot()}),x=i((e=>{m&&m(ct(e.target?.value))}),[m]);return p("div",{className:t,children:[p("label",{className:"block relative",children:[l?u(me,{size:"text-m",font:"font-light",color:"text-primary-text",children:l}):null,u("input",{className:w("m-0 mt-xs font-sans text-h3 w-full h-14","border border-solid border-gray rounded-md outline-none","p-0 pl-4 box-border","text-primary-text hover:border-primary-hover focus:border-primary-text","disabled:border-gray disabled:bg-main-divider"),disabled:d,onInput:x,...h}),dt({list:a,min:r,max:s,step:o,disabled:d,value:c,onChange:m})]}),xt(n)]})})),pt=e=>t=>e.reduce(((e,l)=>Math.abs(l-t)<Math.abs(e-t)?l:e)),xt=e=>u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u(me,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),gt=e=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[p("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:[u("label",{children:u(me,{size:"text-m",font:"font-light",children:"Сумма кредита, ₽"})}),u(ut,{items:nt,min:1e3,max:1e9,...e("amount")})]}),p("div",{className:"sm:w-1/2",children:[u("label",{children:u(me,{size:"text-m",font:"font-light",children:"Срок кредита, месяцев"})}),u(ut,{items:at,min:1,max:180,...e("term")})]})]}),ft=({regions:e,branches:t,field:l})=>p("div",{className:"mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(l("region"),Ce)})}),u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Адрес",placeholder:"Выберите адрес",options:t.map((({branchCode:e="",address:t=""})=>({key:e,text:t}))),...ue(l("department"),Ce)})})]}),bt={amount:1e3,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",annualRevenue:""},vt=R({annualRevenue:Ce,inn:Te,name:Ie,phone:Be,region:Ce,department:Ce}),yt=x((({button:e,link:t,onSubmit:l})=>{const n=i((e=>{const{amount:t,term:n,fullName:a,inn:i,name:r,phone:s,mail:o,region:c,department:d,annualRevenue:m}=e;M(vt(e))&&l({typeForm:"cred",fullName:a,inn:i,name:r,phone:s,mail:o,region:c?.text||"",department:d?.text||"",partnerComments:`Сумма=${t}/Срок=${n}/Выручка=${m}`})}),[l]),[a,{field:r,...s}]=B(bt,n),o=L(),c=function(e){const{data:t}=$(e?`/api/v1/branches?regionCode=${e}`:null,lt);return t||tt}(a.region?.key).filter((e=>e?.address));return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Параметры кредита",className:"sm:text-center mb-4"}),gt(r),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),it(r),u(I,{headingType:"h6",title:"Офис банка",className:"sm:text-center mb-4"}),ft({regions:o,branches:c,field:r}),We(e,"mb-4"),u(he,{link:t})]})})),Nt={name:"",phone:""},wt=R({name:Ie,phone:Be}),St=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{name:t,phone:l}=e;M(wt(e))&&n({typeForm:"dpst",name:t,phone:l})}),[n]),[,{field:r,...s}]=B(Nt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"sm:text-center mb-4"}),p("div",{className:"max-w-[560px] m-auto",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Имя",...ue(r("name"),Ie)}),u(Se,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(r("phone"),Be)})]}),p("div",{className:"flex justify-between flex-col-reverse sm:items-center sm:flex-row max-w-[560px] m-auto",children:[u("div",{className:"flex-1 mt-4 sm:mt-0",children:u(he,{link:l})}),We(t)]})]})})),kt=(e,t)=>e?.media&&t?.media?e.media-t.media:0,Ct=x((({className:e="",image:t,imageClassName:l="",pathPrefix:n})=>{const a=J();return p("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(kt).map((({src:e,format:l,media:i},r)=>u("source",{srcSet:Tt(a,n)(e),type:Bt(l),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,t?.src?It({...t,src:Tt(a,n)(t.src)},l):null]})})),It=(e,t="")=>u("img",{src:e.src,className:w("object-contain",t),alt:e.alt||e.title,title:e.title||"",style:{width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"auto"},...e.size}),Tt=(e,t)=>l=>l&&!E(l)?W(e)(H(t,l)):l,Bt=e=>e?`image/${String(e)}`:void 0,Rt=x((({className:e="",image:t,imageClassName:l="",pathPrefix:n,...a})=>t?.src||t?.icon?t.icon?u(_e,{className:e,imageClassName:l,iconVersion:t?.iconVersion,name:t.icon,...a}):u(Ct,{className:e,imageClassName:l,image:t,pathPrefix:n}):null)),Mt=x((({className:e,viewBox:t,fill:l="none",width:n,height:a,paths:i,...r})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:a,children:i.map((({d:e,fill:t,...l},n)=>u("path",{d:e,fill:t||"currentColor",...r,...l},n)))}))),Pt=[{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"}],Vt=x((({className:e,value:t,text:l,disabled:n,isRadio:a,onChange:r})=>{const s=i((e=>{n||(e.preventDefault(),r&&r(!t))}),[r,n,t]),o=a?u("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):u(Mt,{paths:Pt,className:"absolute left-1 ml-px block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"});return u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",onClick:s,children:[u("div",{className:w("appearance-none w-5 h-5 border-solid cursor-pointer m-0",a?"rounded-full border-2":zt(t),t?"border-primary-main":"border-gray",n?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:"checkbox","aria-checked":Boolean(t),"aria-disabled":Boolean(n)}),t?o:null,l?u("div",{className:"ml-3",children:u(me,{size:"text-l",font:"font-light",children:l})}):null]})})})),zt=e=>w("rounded border",e?"bg-primary-main":""),$t=e=>{const t=e("text");return p("div",{className:"mb-3 sm:mb-6",children:[p("div",{className:"mb-4 sm:flex sm:items-center sm:gap-6",children:[u(Vt,{className:"mb-3 sm:mb-0",text:"Валютный контроль",...e("currencyControl")}),u(Vt,{className:"mb-3 sm:mb-0",text:"Документарные операции",...e("documentaryOperations")}),u(Vt,{className:"mb-3 sm:mb-0",text:"Конверсионные операции",...e("conversionOperations")})]}),u("textarea",{placeholder:"Укажите интересующий вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text",value:t.value,onInput:e=>t.onChange&&t.onChange(e.target?.value||"")})]})},_t=e=>p("div",{children:[p("div",{className:"sm:flex sm:justify-between sm:gap-lg",children:[u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"Наименование организации",...ue(e("fullName"),Ce)})}),u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"ФИО",...ue(e("name"),Ie)})})]}),p("div",{className:"sm:flex sm:justify-between sm:gap-lg sm:mb-2xl",children:[u("div",{className:"sm:w-1/2",children:u(Se,{className:"shrink-0 w-full mb-s",label:"Телефон",...ue(e("phone"),Be)})}),u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"Электронная почта",...ue(e("mail"),Ce)})})]})]}),jt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},Dt=R({fullName:Ce,name:Ie,phone:Be,mail:Ce}),At=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{fullName:t,name:l,phone:a,mail:i,currencyControl:r,documentaryOperations:s,conversionOperations:o,text:c}=e;M(Dt(e))&&n({typeForm:"kved",fullName:t,name:l,phone:a,mail:i,partnerComments:`Валютный контроль=${r}/Документарные операции=${s}/Конверсионные операции=${o}/Доп инф=${c}`})}),[n]),[,{field:r,...s}]=B(jt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-m"}),_t(r),u(I,{headingType:"h6",title:"Интересующий вопрос",className:"sm:text-center mb-m"}),$t(r),p("div",{className:"flex flex-col border-b border-main-divider mb-5 pb-5 sm:items-center sm:flex-row sm:mb-9 sm:pb-9",children:[We(t,"mb-m sm:mr-lg sm:mb-0"),u(he,{link:l})]}),u(I,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"sm:text-center mb-m"}),p("div",{className:"flex",children:[p("a",{className:"flex items-center text-primary-text no-underline mr-6",href:"tel:8 (800) 200-78-70","aria-label":"8 (800) 200-78-70",children:[u(Rt,{image:{icon:"PhoneIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"8 (800) 200-78-70"})]}),p("a",{className:"flex items-center text-primary-text no-underline","aria-label":"ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[u(Rt,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),Lt=x((({responseType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-lg p-lg rounded-md space-x-m ${t?"bg-ok":"bg-fail"}`,children:[u(Rt,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34"}),p("div",{children:[u(I,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),Ot={credit:e=>u(yt,{...e}),acquiring:e=>u(Je,{...e}),"business-card":e=>u(et,{...e}),deposit:e=>u(St,{...e}),wed:e=>u(At,{...e})},Et={send:async function(e){try{const t=await fetch("/api/v1/sendcorporatelead",{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(e)});return await t.json()}catch(e){return null}}},Ft=x((e=>{const{className:t,title:l,typeForm:a="credit",button:r,link:s,...o}=e,[c,d]=n(""),m=i((async e=>{const t=await Et.send(e)?"OK":"Fail";return d(t),t}),[]);return u(k,{className:t,defaultPadding:"p-6xl",...o,children:p("div",{className:"container max-w-[978px]",children:[l?u(I,{headingType:"h3",title:l,className:"mb-4 sm:mb-8 sm:text-center"}):null,Ot[a]({button:r,link:s,onSubmit:m}),c?u(Lt,{responseType:c}):null]})})})),Ut={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},Ht=x((({className:e,defaultIconSize:t=44,iconBgVersion:l="primary",size:n,icon:a,...i})=>{const r=String(n?.width||t);return a?u("div",{style:{width:`${r}px`,height:`${r}px`},className:w("rounded-icon object-fit flex justify-center items-center ",Ut[l],e),children:u(_e,{...i,width:"54%",height:"54%",name:a})}):null})),Xt=x((({className:e="",title:t,benefitList:l,...n})=>p(k,{className:e,defaultPadding:"p-6xl",...n,children:[t?u(I,{headingType:"h3",as:"h2",className:"text-center",title:t}):null,l?.length?u("div",{className:"flex flex-wrap w-full sm:justify-center mt-xl gap-5xl",role:"list",children:l.map(Wt)}):null]}))),Wt=(e,t)=>p("div",{className:"flex gap-m items-center md:basis-1/2 md:max-w-[400px]",role:"listitem",children:[e?.icon?.icon?u(Ht,{className:"shrink-0",defaultIconSize:44,iconBgVersion:e?.iconBgVersion||"",...e?.icon}):null,e?.icon?.src?u(Rt,{className:"shrink-0",image:e.icon}):null,e?.label?p("div",{className:"sm:h-full",children:[u(I,{headingType:"h6",children:e.label}),Kt(e.description)]}):null]},String(t)),Kt=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?Jt(e):Gt(e)}):null},Gt=e=>e?.name||null,Jt=e=>{const t=e?.bullets?"list-disc pl-3xl":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},Yt=(e,{className:t,buttonClassName:l,isVertical:n}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",n?"flex-col gap-xs justify-items-stretch":"flex-wrap gap-m",t),children:e.map(qt(l))}):null,qt=(e="")=>(t,l)=>{const{text:n,icon:a,iconRight:i,version:r,...s}=t||{},o="secondary"===r?"color":"white",c=a?.iconVersion?a?.iconVersion:o;return n||a?.icon?u(se,{className:w("basis-full sm:basis-auto",e),appendLeft:Zt({...a,iconVersion:c}),appendRight:Zt({...i,iconVersion:c}),version:r,text:n,...s},l?String(l):""):null},Zt=e=>e?.icon||e?.src?u(Rt,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,Qt={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionWeight:"font-normal",descriptionStyle:"mt-xl"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},M:{title:{headingType:"h3",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},S:{title:{headingType:"h4",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-xs"},XS:{title:{headingType:"h5",as:"h2"},descriptionSize:"text-l",descriptionWeight:"font-light",descriptionStyle:"mt-xs"}},el={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"},tl=x((({className:e,version:t="",headlineVersion:l="XL",title:n,description:a,align:i="text-center",as:r,isPadding:s=!0,isTheme:o=!1,...c})=>{const d=Qt[l],m={marginTop:d.descriptionStyle};return p(k,{className:e,defaultPadding:s?"p-6xl":"",version:t,isTheme:o,...c,children:[n?u(I,{className:w("whitespace-pre-wrap",i),...d?.title,as:r||d?.title.as,title:n}):null,a?u(de,{size:d.descriptionSize,font:d.descriptionWeight,align:i,...m,children:a}):null]})})),ll=x((e=>{const{className:t="",title:l,description:n,bonusItems:a,...i}=e;return u(k,{className:t,defaultPadding:"p-6xl",...i,children:p("div",{className:"container",children:[u(tl,{className:"!p-0",title:l,description:n,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full mt-9",children:a?.length?a.map(((e,t)=>p("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:[e?.title?u(me,{size:"text-h4",children:e.title}):null,e?.description?u("div",{className:"mt-xs",children:u(de,{size:"text-xl",font:"font-light",children:e.description})}):null,p("div",{className:"flex justify-between items-end mt-3",children:[Yt(e?.buttons),e.bonusItemContent?.bonusType?nl(e.bonusItemContent):null]})]},String(t)))):null})]})})})),nl=e=>u("div",{children:"count"===e.bonusType?al(e):il(e)}),al=e=>p("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?u("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?u("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),il=e=>e.image?u(Rt,{className:"w-12 h-12 min-w-12 p-3 rounded-icon",image:e.image}):null,rl={left:"text-left",center:"text-center",right:"text-right"},sl="text-center",ol=({icon:e,title:t,description:l},n)=>p("div",{className:w("flex flex-col","items-center",l||t?"":"justify-center"),children:[t?u(me,{size:"text-h6",font:"font-normal",align:sl,children:t}):null,e?u(Rt,{image:e,height:"180",className:"w-auto"}):null,l?u(me,{size:"text-h6",font:"font-normal",align:sl,children:l}):null]},String(n)),cl=(e,t,l)=>u("div",{className:`grid gap-1 ${rl[l]} ${dl(t)}`,children:e.map(ol)}),dl=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},ml=x((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:n="4",subtitle:a,title:i,...r})=>p(k,{className:l,defaultPadding:"p-6xl",...r,children:[u(tl,{className:"mb-4 sm:mb-3xl",isPadding:!1,title:i,description:a,headlineVersion:"M"}),e?.length?cl(e,n,t):null]}))),hl=x((e=>{const{title:t,image:l,cardItems:n,button:a}=e;return p("div",{className:"border-gray border p-4xl w-1/2 space-y-lg",children:[l?p("div",{className:"flex justify-center",children:[l?.src?u(Rt,{image:l}):null,l?.icon?u(Rt,{image:l}):null]}):null,t?u(I,{headingType:"h4",title:t}):null,n?.length?u("ul",{className:"space-y-s",children:n.map(((e,t)=>ul(e,String(t))))}):null,Yt([a])]})})),ul=(e,t)=>{const{icon:l,text:n}=e;return p("li",{className:"flex items-center gap-s last:mb-0",children:[l?.icon?u(Rt,{image:l,className:"w-12 h-12 min-w-12 p-s rounded-icon bg-main-divider"}):null,l?.src?u(Rt,{image:l}):null,u(me,{size:"text-xl",font:"font-light",children:n})]},t)},pl=x((({className:e,title:t,cards:l,...n})=>p(k,{className:e,defaultPadding:"p-6xl space-y-3xl",...n,children:[u(I,{headingType:"h3",title:t,className:"text-center"}),u("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>u(hl,{...e},String(t)))):null})]}))),xl=x((({buttons:e,className:t,...l})=>u(k,{className:w("!bg-transparent",t),defaultPadding:"p-0",...l,children:Yt(e)}))),gl=e=>{const{itemCount:t,visibleItemCount:l}=e,[a,r]=n(0),s=i((()=>r((e=>Math.min(e+1,t-1)))),[t]),o=i((()=>r((e=>Math.max(e-1,0)))),[t]),c=function({itemCount:e,visibleItemCount:t}){return Boolean(t&&e>t)}(e)&&a<t-(l||1),d=a>0;return[a,{inc:s,dec:o,canInc:c,canDec:d,isScrollAvailable:d||c}]};const fl=x((({className:e,disabled:t,...l})=>u(se,{rounded:!0,className:`group/btn 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:u(Rt,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16"})}))),bl=x((e=>u(fl,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),vl=x((e=>u(fl,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function yl({dec:e,inc:t,canDec:l,canInc:n,btnClass:a,className:i=""}){return l||n?p("div",{children:[l?u(fl,{className:`absolute z-40 ${a[0]} ${i}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?u(fl,{className:`absolute z-40 rotate-180 ${a[1]} ${i}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const Nl=x((({title:e,value:t,postfix:l="",prefix:n,className:a=""})=>p("div",{className:w("mb-7",a),children:[e?u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(me,{size:"text-h3",children:[n," ",ot(2)(Math.round(t))," ",l]})}:{children:u(me,{size:"text-h3",children:"-"})})]}))),wl=Math.round(23.5),Sl={minSum:1e4,maxSum:5e6,minMonths:13,maxMonths:60,rate:12.5,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},kl={minSum:1e4,maxSum:3e6,minSumOld:0,maxSumOld:25e5,minSumExtra:0,maxSumExtra:5e5,minMonths:13,maxMonths:60,rate:7.5,isExtraMoney:!1,isSalaryClient:!1,isInsurance:!0},Cl={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Il={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},Tl={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},Bl=x((({rate:e,title:t="Ставка",unit:l,depositeName:n,isShowDepositeName:a,rateBlockClassName:i,fractionDigits:r=2})=>p("div",{children:[u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start gradient-color-text",children:[u("span",{className:w("font-mohave text-title-huge pr-6 -mt-4",i),children:String(e.toFixed(r)).replace(".",",")}),l?u("span",{className:"text-7xl",children:l}):null]}),n&&a?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:n}):null]})]}))),Rl=e=>e?u(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e}):null;function Ml({isShowItems:e=!0,step:t=1e3,...l}){const n=[`От ${ot(2)(l.min||0)} ₽`,`До ${ot(2)(l.max||0)} ₽`];return u(ut,{items:e?n:[],step:t,...l})}function Pl(e){const{data:t}=$(`/wcms-resources/${e}.json`,D);return t}const Vl=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,a=Pl(t||"bonus-calculator-data")||Cl,[i,r]=((e,t,l)=>{const{minSumTravel:n,minSumOther:a,maxBonus:i,prefMonthsNum:r,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===a)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),i);return[m,m*r+Math.min(Math.round(c*t)+Math.round(d*l),i)*(12-r)]})(a,l,n);return{...a,...e,monthBonus:i,yearBonus:r}},zl=x((({className:e="",sourceBookDir:t="",buttons:l,footnote:n})=>{const[a,{field:i}]=B({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:r,maxSumTravel:s,minSumOther:o,maxSumOther:c,monthBonus:d,yearBonus:m}=Vl(a,t);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-2/5",children:[Ml({title:"Сумма покупок в категории путешествия, ₽",min:r,max:s,step:500,isShowItems:!1,...i("travelExpenseValue")}),Ml({title:"Сумма покупок в остальных категориях, ₽",className:"mt-7",min:o,max:c,step:500,isShowItems:!1,...i("restExpenseValue")})]}),u("div",{children:d>=0?u(Bl,{title:"Баллов за месяц",rate:d,rateBlockClassName:"tracking-[-14px]",fractionDigits:0}):null}),p("div",{className:"w-96",children:[m>=0?u(Nl,{title:"Баллов за год",value:m}):null,Yt(l,{className:"mt-7",isVertical:!0}),Rl(n)]})]})})),$l=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,_l={horizontal:"gap-10",vertical:"flex-col gap-3"},jl=x((({items:e,checkedItem:t,onChange:l,orientation:n="horizontal"})=>u("div",{className:`flex ${_l[n]}`,children:e?.map((({id:e,text:n})=>u(Vt,{isRadio:!0,text:n,value:t===e,onChange:()=>l&&l(e)},String(e))))}))),Dl=({items:e,title:t,orientation:l="horizontal",value:n,onChange:a})=>p("div",{children:[t?u("div",{className:"mb-3",children:u(me,{color:"text-secondary-text",font:"font-light",children:t})}):null,u(jl,{orientation:l,items:e,checkedItem:e[n?0:1].id,onChange:t=>a&&a(t===e[0].id)})]}),Al=e=>Dl({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),Ll=x((({title:e="Ставка"})=>p("div",{children:[u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-2xs pt-2xs pl-lg pb-xs",children:u(_e,{name:"PercentIcon",width:"90",height:"85"})}),u("div",{className:"w-[250px] mt-m",children:p(de,{size:"text-xl",font:"font-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),Ol=e=>e,El=(e=Ol)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),Fl=El(),Ul=(e=Ol)=>El((t=>-e(t))),Hl=Ul(),Xl=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let l=1;for(;l<t.length;){const[e,n]=t[l-1],[a,i]=t[l];n>=a?t.splice(l-1,2,[e,Math.max(n,i)]):l++}return t},Wl=([e,t],l,n=[])=>l&&l[e]&&l[t]?{[e]:l[e],[t]:l[t]}:Kl([e,t],n),Kl=([e,t],l=[])=>({[e]:l.length?Hl(l.filter((t=>"number"==typeof t[e])).map((t=>t[e]))):0,[t]:l.length?Fl(l.filter((t=>"number"==typeof t[e])).map((e=>e[t]))):0}),Gl=(e,[t,l],n)=>e>=n[t]&&e<=n[l],Jl=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,Yl=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,daysValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a/30)-n):Math.round(n*e*a/365/100)},ql=x((({className:e="",sourceBookDir:t,buttons:l,footnote:n,bottomFootnote:a,isShowDepositeName:i})=>{const[r,{field:s}]=B({moneyValue:1e5,daysValue:90,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,isMonthlyInterestPayment:!1}),o=((e,t)=>{const{daysValue:l,moneyValue:n,isPartialWithdrawal:a,isReplenished:i,isSmallBusiness:r,isMonthlyInterestPayment:s}=e,o=Pl(t||"business-calculator-data"),c=i||a,d=l<90||l>730;if(l<=30)return{...Tl,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rateRows?.find((e=>s===e.isMonthlyInterestPayment&&r===e.isSmallBusiness&&Jl(c,e)&&Gl(n,["minSum","maxSum"],e)&&Gl(l,["minDays","maxDays"],e)))||Tl,{rate:h}=m,u=Yl(h,e),p=n+u,x=o?.rateRows||[Tl];return{...m,...Kl(["minSum","maxSum"],x),...Kl(["minDays","maxDays"],x),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})(r,t),{income:c,finalSum:d,rate:m,depositeName:h,isShowUnknownRate:x}=o;return p("section",{className:e,children:[p("div",{className:"flex justify-between",children:[p("div",{className:"w-2/5",children:[Ml({title:"Сумма вклада, ₽",min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),(g={title:"Срок вклада, дни",min:o.minDays,max:o.maxDays,...s("daysValue"),value:o.daysValue},u(ut,{className:"mt-7",items:[`От ${$l(g.min||0)}`,`До ${$l(g.max||0)}`],step:1,...g})),p("div",{className:"mt-7 flex justify-between",children:[Zl(o,s),Al({title:"Выплата процентов",orientation:"vertical",...s("isMonthlyInterestPayment")})]})]}),x?u(Ll,{}):u(Bl,{rate:m,depositeName:h,isShowDepositeName:i,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-96",children:[u(Nl,{title:"Доход по вкладу",value:c,postfix:"₽",prefix:"+"}),u(Nl,{title:"Сумма в конце срока",value:d,postfix:"₽"}),Yt(l,{className:"mt-7",isVertical:!0}),u("div",{className:"mt-7",children:Rl(n)})]})]}),u("div",{className:"mt-5",children:Rl(a)})]});var g})),Zl=(e,t)=>p("div",{children:[u(Vt,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),u(Vt,{className:"mt-3",disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal}),u(Vt,{className:"mt-3",text:"Являюсь малым предприятием",...t("isSmallBusiness"),value:e.isSmallBusiness})]}),Ql=({min:e=0,max:t=0,availableMonths:l,...n})=>u(ut,{className:"mt-7",items:[`От ${en(e)}`,`До ${en(t)}`],step:1,...l?.length?{list:l}:{min:e,max:t},...n}),en=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,tn=e=>Dl({...e,items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]}),ln=e=>nn({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&nn({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&nn({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&nn({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),nn=({row:e,userInputParams:t,paramsViewSettings:l,fieldKey:n,viewSettingFieldKey:a})=>!!l&&!l[a]||t[n]===e[n],an=(e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:a,moneyExtra:i}=t;if(0===e)return 0;if(l){const t=e/1200;return i?(n+i)*(t+t/(Math.pow(1+t,a)-1)):n*(t+t/(Math.pow(1+t,a)-1))}return Math.round(n/a)+n*(e/1200)},rn=(e,t,l)=>{let{moneyValue:n,monthsValue:a}=e;const i=Pl(t||"credit-calculator-data"),s=i?.rateRows||[Sl],o=(({limitRows:e,userInputParams:t,paramsViewSettings:l})=>e?.find((e=>ln({row:e,userInputParams:t,paramsViewSettings:l}))))({limitRows:i?.limitRows||[],userInputParams:e,paramsViewSettings:l}),{minSum:c,maxSum:d}=Wl(["minSum","maxSum"],o,s),{minMonths:m,maxMonths:h}=Wl(["minMonths","maxMonths"],o,s);n=st(n,c,d),a=st(a,m,h);const u=(({rateRows:e=[],userInputParams:t,paramsViewSettings:l,moneyValue:n,monthsValue:a})=>e?.find((e=>ln({row:e,userInputParams:t,paramsViewSettings:l})&&Gl(n,["minSum","maxSum"],e)&&Gl(a,["minMonths","maxMonths"],e)))||Sl)({rateRows:s,userInputParams:e,paramsViewSettings:l,moneyValue:n,monthsValue:a}),{rate:p}=u,x=an(p,e);return r((()=>({...u,...e,minSum:c,maxSum:d,minMonths:m,maxMonths:h,moneyValue:n,monthsValue:a,monthlyPayment:x})),[e,i])},sn=x((({className:e,sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:a})=>{const[i,{field:r}]=B({isAnnuity:!1,isInsurance:!0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,moneyValue:2e5,monthsValue:wl}),s=rn(i,t,a);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-2/5",children:[Ml({title:"Сумма кредита, ₽",step:500,min:s.minSum,max:s.maxSum,...r("moneyValue"),value:s.moneyValue}),Ql({title:"Срок кредита, месяцев",min:s.minMonths,max:s.maxMonths,...r("monthsValue"),value:s.monthsValue}),u("div",{className:"mt-2xl",children:on({...s,...a},r)})]}),u(Bl,{title:"Ставка",rate:s.rate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-96",children:[u(Nl,{title:"Ежемесячный платеж",value:s.monthlyPayment,postfix:"₽"}),tn({orientation:"vertical",...r("isAnnuity")}),Yt(l,{className:"mt-2xl",isVertical:!0}),Rl(n)]})]})})),on=(e,t)=>p("div",{children:[e.isShowSalaryClient?u(Vt,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowStateEmployee?u(Vt,{className:"mt-3",text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?u(Vt,{className:"mt-3",text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?u(Vt,{className:"mt-3",text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),cn=(e,t,l)=>{const{moneyValue:n,monthsValue:a}=e,i=Pl(t||"deposit-calculator-data"),r=i?.rateRows?.[0]?hn(i.rateRows[0].minMonths,i.rateRows[0].maxMonths):1,s=!l?.isShowMonthlyInterestPayment,o=!l?.isShowRemoteRegistration,c=i?.rateRows?.find((t=>mn({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:s})&&mn({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:o})&&Gl(n,["minSum","maxSum"],t)&&Gl(a||r,["minMonths","maxMonths"],t)))||Il,{rate:d}=c,m=dn(d,e),h=n+m,u=i?.rateRows||[Il];return{...c,...Kl(["minSum","maxSum"],u),...Kl(["minMonths","maxMonths"],u),availableMonths:Xl(u.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,l=1)=>Array.from({length:Math.abs(t-e)/l+1},((n,a)=>t>=e?e+a*l:e-a*l)))(e,t))),...e,defaultMonth:r,income:m,finalSum:h}},dn=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,monthsValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a)-n):Math.round(n*e*30*a/365/100)},mn=({row:e,userInputParams:t,paramKey:l,isExclude:n})=>n||t[l]===e[l],hn=(e,t)=>e+Math.round((t-e)/2),un=x((({className:e,sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:i})=>{const[r,{field:s}]=B({moneyValue:2e4,monthsValue:0,isMonthlyInterestPayment:!1,isRemoteRegistration:!1}),o=cn(r,t,i),{defaultMonth:c,income:d,finalSum:m,rate:h}=o,{onChange:x}=s("monthsValue");return a((()=>{x&&x(c)}),[c]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-2/5",children:[Ml({title:"Сумма вклада, ₽",min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),Ql({title:"Срок вклада, месяцев",min:o.minMonths,max:o.maxMonths,availableMonths:o.availableMonths,...s("monthsValue"),value:o.monthsValue}),u("div",{className:"mt-2xl",children:pn({...o,...i},s)})]}),u(Bl,{rate:h,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-96",children:[u(Nl,{title:"Доход по вкладу",value:d,postfix:"₽",prefix:"+"}),u(Nl,{title:"Сумма в конце срока",value:m,postfix:"₽"}),Yt(l,{className:"mt-2xl",isVertical:!0}),Rl(n)]})]})})),pn=(e,t)=>{return p("div",{className:"flex flex-col gap-y-2xl",children:[e.isShowMonthlyInterestPayment?Al({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment}):null,e.isShowRemoteRegistration?(l={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration},Dl({...l,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]});var l},xn=e=>gn({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&gn({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"})&&gn({...e,fieldKey:"isExtraMoney",viewSettingFieldKey:"isShowExtraMoney"}),gn=({row:e,userInputParams:t,paramsViewSettings:l,fieldKey:n,viewSettingFieldKey:a})=>!!l&&!l[a]||t[n]===e[n],fn=(e,t,l)=>{let{moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s}=e;const o=Pl(t||"refinancing-calculator-data"),c=o?.rateRows||[kl],d=(({limitRows:e,userInputParams:t,paramsViewSettings:l})=>e?.find((e=>xn({row:e,userInputParams:t,paramsViewSettings:l}))))({limitRows:o?.limitRows||[],userInputParams:e,paramsViewSettings:l}),{minSum:m,maxSum:h}=Wl(["minSum","maxSum"],d,c),{minSumOld:u,maxSumOld:p}=Wl(["minSumOld","maxSumOld"],d,c),{minSumExtra:x,maxSumExtra:g}=Wl(["minSumExtra","maxSumExtra"],d,c),{minMonths:f,maxMonths:b}=Wl(["minMonths","maxMonths"],d,c);n=st(n,m,h),i=st(i,u,p),s=st(s,x,g),a=st(a,f,b);const v=(({rateRows:e=[],userInputParams:t,paramsViewSettings:l,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r})=>e?.find((e=>xn({row:e,userInputParams:t,paramsViewSettings:l})&&Gl(n,["minSum","maxSum"],e)&&Gl(i,["minSumOld","maxSumOld"],e)&&Gl(r,["minSumExtra","maxSumExtra"],e)&&Gl(a,["minMonths","maxMonths"],e)))||kl)({rateRows:c,userInputParams:e,paramsViewSettings:l,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s}),{rate:y}=v,N=an(y,e),w=e.oldMonthlyPayment-N;return r((()=>({...v,...e,minSum:m,maxSum:h,minMonths:f,maxMonths:b,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s,monthlyPayment:N,benefit:w})),[e,o])},bn=x((({className:e,sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:a})=>{const[i,{field:r}]=B({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isExtraMoney:!1,moneyValue:7e5,oldMonthlyPayment:0,monthsValue:48,moneyExtra:0}),s=fn(i,t,a);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-2/5",children:[Ml({title:"Остаток долга в других банках, ₽ ",step:500,min:s.minSum,max:s.maxSum,...r("moneyValue"),value:s.moneyValue}),Ml({title:"Ежемесячный платеж в других банках, ₽",isShowItems:!1,step:500,min:s.minSumOld,max:s.maxSumOld,...r("oldMonthlyPayment"),value:s.oldMonthlyPayment}),Ql({title:"Новый срок кредита, месяцев",min:s.minMonths,max:s.maxMonths,...r("monthsValue"),value:s.monthsValue}),u("div",{className:w("mt-7",s.isExtraMoney?"mb-3":""),children:vn({...s,...a},r)}),s.isExtraMoney?Ml({title:"Дополнительная сумма, ₽ ",step:500,min:s.minSumExtra,max:s.maxSumExtra,...r("moneyExtra"),value:s.moneyExtra}):null]}),u(Bl,{title:"Ставка",rate:s.rate,fractionDigits:1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-96",children:[u(Nl,{title:"Ежемесячный платеж",value:s.monthlyPayment,postfix:"₽"}),s.benefit>0?u(Nl,{title:"Выгода в месяц",value:s.benefit,postfix:"₽"}):null,tn({orientation:"vertical",...r("isAnnuity")}),Yt(l,{className:"mt-7",isVertical:!0}),Rl(n)]})]})})),vn=(e,t)=>p("div",{children:[e.isShowSalaryClient?u(Vt,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowInsurance?u(Vt,{className:"mt-3",text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null,e.isShowExtraMoney?u(Vt,{className:"mt-3",text:"Получить дополнительную сумму",...t("isExtraMoney"),value:e.isExtraMoney}):null]}),yn={CreditCalculatorForm:sn,DepositCalculatorForm:un,BusinessDepositCalculatorForm:ql,BonusCalculatorForm:zl,RefinancingCalculatorForm:bn},Nn=(e,t)=>{const l=e?.calcType;if(!l||!(l in yn))return null;const n=yn[l];return u("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:p("div",{className:"box-border p-9 w-full",children:[e?.title?u(I,{className:"text-center mb-6",title:e.title}):null,u(n,{...e})]})},String(t))},wn=x((({className:e="",calculatorTabs:t=[],...l})=>{const a=t.map((e=>e.nav||{})),r=t.map((({calculatorBlock:e})=>e||{})),[s,o]=n(0),c=i((e=>o(e)),[]),[d,m]=gl({itemCount:t?.length,visibleItemCount:3});return p(k,{className:w("box-border overflow-hidden relative",e),defaultPadding:"p-0",...l,children:[p("div",{className:"bg-white",children:[a.length>1?Sn({activeIndex:d,tabsNav:a,slideIndexShift:s,onClick:c}):null,yl({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:r?.length?r.map(Nn):null})]})}));function Sn({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:n}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-32 pt-4xl box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-xs",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:n}){const a=l?"h-20 w-96 p-xl border-none bg-primary-main text-white":"h-20 w-96 px-lg ease-in duration-300 bg-white text-primary-text",i=l?"text-xl mb-xs":"text-l mb-2xs",r=l?"text-l font-light text-white":"text-m font-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return p("button",{type:"button",onClick:n,"aria-label":e?.title,className:w("box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-20 space-x-m",a),children:[u(Rt,{className:w("h-6 w-6 min-w-6 min-h-6",s),image:{...e?.icon,iconVersion:o??c},width:"24",height:"24"}),p("div",{className:"border-0",children:[u("div",{className:i,children:e?.title}),u("div",{className:r,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const kn=x((e=>{const{onChange:t,min:l,max:n,defaultValue:a="0",fractionDigits:r=0,...s}=e,o=rt(e,{normalize:(e=a)=>l&&n?String(st(Number(Cn(e)),l,n)):Cn(e),format:ot(r)}),c=i((e=>t&&t(Cn(e))),[t]);return u(pe,{onChange:c,...s,...o})})),Cn=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),In=x((e=>u(kn,{...e,fractionDigits:2,children:u("div",{className:"absolute right-4 bottom-4",children:u(me,{size:"text-xl",font:"font-light",children:"₽"})})}))),Tn="amount",Bn={[Tn]:1500},Rn=x((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:n="1500",button:a,...i})=>{const[{amount:r},{field:s}]=B(Bn),o=r<=0,c=o?ie({version:a?.version}):re({className:"text-white",version:a?.version}),d=Y();return p(k,{className:w("flex flex-col items-center",e),defaultPadding:"p-6xl",...i,children:[t?u(I,{className:"pb-5 xl:pb-9 self-start xl:self-center",headingType:"h2",title:t}):null,p("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(In,{name:Tn,valid:!o,placeholder:n,label:l,...s(Tn,{parse:Number,format:String})}),a?.text?u("button",{type:"submit",className:w("w-full p-4 mt-5 xl:mt-6",c),disabled:o,...d(a),children:a.text}):null]})]})})),Mn=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),Pn=[];function Vn(e,t,{className:l,...n}={}){const{key:a,blockDecorator:i=Mn,blocksRegistry:r={},ancestors:s=Pn}=t,{type:o}=e;o&&o in r||console.warn(`No block with "${o}" is registered`);const c=o&&r[o];return i({blockClassName:w("scroll-mt-12",l,e.style||"col-span-12"),block:e,ancestors:s,render:({block:l,blockClassName:i})=>{const{content:r}=l;return c?u(c,{className:i,block:e,options:t,...r,...n},a):null}},a)}const zn=[],$n=(e,{key:t,ancestors:l=zn,slotName:n=null,renderProps:a=Vn,...i})=>(e||[]).map(((e,r)=>a(e,{...i,key:`${t||e.type}-${r}`,ancestors:i.parent?[...l||zn,[i.parent,n]]:l})));function _n({children:e,block:t,options:l,renderProps:n}){return e||(t&&l?$n(t.blocks,{...l,parent:t,renderProps:n}):null)}const jn=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),Dn=x((({className:e="",style:t,idx:l,activeIndex:n,observerOptions:a,children:r,onIntersection:s})=>{const o=v(i((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),a);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(l===n),ref:o,children:r})})),An=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],Ln=x((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:n=0,gap:a=0,padding:r=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const x={sensitivity:1,rootRef:t},g=s([]),f=i(((e,t)=>{const l=[...g.current||[]];l[e]=t,g.current=l,h&&h(l),p&&p(En(l))}),[h,p]),b=n>0?a*Number(n)-1:0,v="vertical-list"===o,y="horizontal-list"===o,N={...y?On(r,b):{},...v?jn(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:N,ref:t,children:(S=(e,t)=>u(Dn,{className:w(c,n?An[n-1]:"",v?"h-full":""),style:y?On(r/4):{},activeIndex:l,idx:t,observerOptions:x,onIntersection:f,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(S):S(e,0))(m)});var S})),On=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),En=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Fn=e=>t=>e.scrollWidth/t,Un=e=>(t,l)=>{e.scrollBy({left:l*Fn(e)(t),behavior:"smooth"})},Hn=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const a=s(null),[r,o]=n([]),c=i((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]=r.length?[Ul()(r),El()(r)]:[-1,-1],h=d>0,u=m<e-1,p=i((()=>{var l;a.current&&(t&&!h?(l=a.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):Un(a.current)(e,-1))}),[t,e,h]),x=i((()=>{a.current&&(t&&!u?a.current.scrollTo({left:0,behavior:"smooth"}):Un(a.current)(e,1))}),[e,t,u]);return[a,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},Xn="absolute top-[calc(50%-24px)] z-40",Wn="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",Kn=x((({scroll:e,arrowsPadded:t,isBlur:l,onScrollLeft:n,onScrollRight:a,hasEdgeBlocks:r,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,x=r?s>0:c,g=r?s<o-1:d,f=i((()=>{r?(c&&s!==o-1&&m(),n()):m()}),[m,n,r,c,s,o]),b=i((()=>{r?(d&&0!==s&&h(),a()):h()}),[h,a,r,c,s,o]);return p("div",{children:[Gn(l,e),x?u(bl,{className:w(Xn,t?"left-8":"left-0"),onClick:f}):null,g?u(vl,{className:w(Xn,t?"right-8":"right-0"),onClick:b}):null]})})),Gn=(e,t)=>e?p("div",{children:[t.canScrollLeft?u("div",{className:w(Wn,"left-0 bg-opacity-from-white")}):null,t.canScrollRight?u("div",{className:w(Wn,"right-0 bg-opacity-to-white")}):null]}):null,Jn={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Yn={"horizontal-list":"w-6","vertical-list":"h-6"},qn=x((({containerRef:e,activeIndex:t,dotCount:l=0,listType:n="horizontal-list",version:a})=>l?u("div",{className:w("flex gap-2",Jn[n],a?"group":""),...a?{"data-ver":a}:{},children:new Array(l).fill(null).map(((l,a)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${a===t?Yn[n]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(l=>{l!==t&&e?.current&&e.current.children[l]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(a)},String(a))))}):null)),Zn=({showArrows:e,showDots:t,scrollButtonsProps:l,dotsProps:n})=>[e?u(Kn,{...l},"0"):null,t?u(qn,{...n,listType:"horizontal-list"},"1"):null],Qn=x((({className:e="",itemCount:t,visibleItemCount:l=0,isBlur:a=!0,isCyclic:r=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,showArrows:m=!0,isGap:h=!0,...x})=>{const{blocks:g=[]}=x.block||{},f=t||g?.length,[b,v]=n(Math.floor(l/2)),y=i((()=>v((e=>e+1))),[]),N=i((()=>v((e=>e-1))),[]),[S,C]=Hn({itemCount:f,isCyclic:r}),[I]=C.visibleIndicesRange,T=g&&"CarouselBankHistoryCard"===g[0]?.type;return u(k,{className:e,defaultPadding:ea(o),...x,children:p("div",{className:w(ta(d),"relative max-w-full"),children:[u(Ln,{containerRef:S,visibleItemCount:l,snapAlign:"snap-start",gap:h?16:void 0,onVisibleIndicesChange:C.handleVisibleIndicesChange,children:_n({...x,renderProps:T?(e,t)=>Vn(e,t,{blocksLength:g?.length,activeIndex:b}):Vn})}),Zn({showArrows:m,showDots:c,scrollButtonsProps:{scroll:C,arrowsPadded:s,isBlur:a,onScrollLeft:N,onScrollRight:y,hasEdgeBlocks:T,activeIndex:b,itemCount:f},dotsProps:{containerRef:S,activeIndex:I,dotCount:f}})]})})}));Qn.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const ea=e=>e?"p-6xl":"",ta=e=>e?"flex justify-center":"",la=x((({title:e,description:t,blocksLength:l=0,activeIndex:n,options:a})=>{const i=Number(a?.key?.split("-").slice(-1)[0])||0;return u(k,{className:"flex h-[485px]",defaultPadding:"p-0",children:u("div",i===n?{className:"relative flex items-center w-full",children:u(tl,{headlineVersion:"M",title:e,description:t,align:"text-left",className:w("absolute z-10 h-[385px] w-[440px] p-3xl text-white shadow-dark-blue",ia(i,l),na(i))})}:{className:"flex w-full items-center justify-center",children:u("div",{className:w("flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]",na(i)),children:u("span",{className:aa(i),children:e})})})})})),na=e=>{switch(e%3){case 0:default:return"bg-primary-main";case 1:return"bg-green-light";case 2:return"bg-yellow-light"}},aa=e=>{switch(e%3){case 1:case 2:return"gradient-color-text-on-yellow";default:return"gradient-color-text-on-green"}},ia=(e,t)=>0===e?"left-9":e===t-1?"right-9":"-left-[25px]",ra=e=>{const t="col-span-",l=e?.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12},sa={normal:"min-w-[970px]",small:"min-w-[355px]"};function oa(e="",t="normal"){return ra(e)<=4?"w-[375px]":sa[t]}const ca="absolute border border-solid border-gray w-full h-full hidden sm:block",da=x((({className:e="",button:t,description:l,title:n,carouselVersion:a="normal",version:i=""})=>u("section",{className:w("flex pl-6xl sm:p-lg border-box h-full sm:max-w-[375px]",oa(e,a),e),children:p("div",{className:"relative w-full",children:[u("div",{className:`${ca} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${ca} z-10 top-6 right-8 bg-green`}),u("div",{className:`${ca} z-10 top-3 right-4 bg-green-light`}),p("div",{className:"relative h-full bg-white z-10 p-10 border border-solid border-green-light",children:[u(tl,{className:"!p-0",title:n,description:l,headlineVersion:"L",align:"text-left",version:i}),Yt([t],{className:"mt-14 sm:justify-center",isVertical:!0})]})]})}))),ma={black:"bg-black",white:"bg-white"},ha=x((({className:e="",title:t,description:l,image:n,price:a,button:i,colors:r,...s})=>p(k,{className:w("border box-border border-gray p-6xl sm:p-7 h-full flex flex-col justify-left gap-m",e),...s,children:[n?.src?u(Rt,{className:"flex justify-center",image:n}):null,u(tl,{title:t,description:l,headlineVersion:"XS",isPadding:!1,align:"text-left"}),r?.length?p("div",{className:"flex text-secondary-text",children:[u("div",{className:"mr-xs",children:u(me,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),r.map(ua)]}):null,a?p(me,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,Yt([i],{buttonClassName:"w-full"})]}))),ua=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-1 sm:ml-3 border border-solid border-main-divider rounded-full ${ma[e]}`},String(t)),pa=x((({className:e="",href:t,target:l,isRemote:n=!1,children:a})=>{const i=Y({isRemote:n})({href:t,target:l});return u(t?"a":"div",{className:w("block",e),...t?i:{},children:a})})),xa=x((({className:e="",icon:t,title:l,description:n,href:a,target:i,...r})=>u(k,{className:w("w-[365px]",e),defaultPadding:"p-0",...r,children:p(pa,{className:"flex flex-col",href:a,target:i,children:[t?.icon?u(Rt,{image:t}):null,t?.src?u(Rt,{image:t}):null,l?u(I,{headingType:"h6",as:"h4",className:"text-left pt-s mb-xs",title:l}):null,n?u("div",{className:"mb-4",children:u(me,{font:"font-light",size:"text-m",color:"text-secondary-text",children:n})}):null]})}))),ga={start:"self-start",center:"self-center",end:"self-end"},fa=x((({className:e,defaultPadding:t,padding:l,title:n="",insetTitle:a="",buttons:i,leftImage:r,rightImage:s,imageAlign:o,backImage:c,children:d})=>p("div",{className:w("relative flex flex-col gap-3xl font-sans overflow-hidden",l||t,e),children:[c?u("div",{className:"absolute bottom-0 right-0 z-0",children:c}):null,n?u("div",{className:"relative",children:n}):null,p("div",{className:"grow relative flex flex-wrap sm:flex-nowrap justify-between items-stretch gap-3xl",children:[ba(r,{imageAlign:o}),p("div",{className:w("flex flex-col gap-3xl max-w-[600px] xl:max-w-[728px]",r?"":"grow"),children:[a,u("div",{className:"grow",children:d}),i]}),ba(s,{className:"-order-1 sm:order-1",imageAlign:o})]})]}))),ba=(e,{className:t,imageAlign:l})=>e?u("div",{className:w("flex-shrink-0",l&&ga[l],t),children:e}):null,va={1:"flex-col",2:"gap-x-10 flex-wrap"},ya=x((({className:e,padding:t,additionalDescription:l,cardsList:n=[],columnsMode:a=1,description:i,image:r,title:s,...o})=>u(k,{className:w("box-border text-left w-[697px]","border border-solid border-gray group-data-secondary:border-white/50",e),padding:"p-0",...o,children:p(fa,{className:"h-full",defaultPadding:"p-xl",padding:t,title:s?u(I,{headingType:"h4",as:"h3",className:"mb-m z-10",title:s}):null,backImage:r?.src?u(Rt,{image:r}):null,children:[p("div",{className:"flex justify-between mb-4",children:[i?u("div",{className:"w-1/3",children:u(me,{size:"text-h6",children:i})}):null,l?u(me,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:l}):null]}),n.length?u("ul",{className:w("list-none m-0 p-0 flex gap-y-2",va[a]),children:Na(n,a)}):null]})}))),Na=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,l)=>{return p("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?u("div",{className:"pr-2.5",children:u(me,{size:(n=t,1===n?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(l));var n})),wa="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",Sa=x((({text:e,href:t="",target:l="",className:n=""})=>{const a=Y()({href:t,target:l});return e?p("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${n}`,children:[p("a",{className:"absolute border border-primary-main ml-s px-xl py-lg\n text-l font-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover/link:text-primary-main z-10",role:"link",...a,children:[u("div",{className:"p-3xs",children:e}),u("div",{className:"w-6 h-6",children:u(Rt,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover/link:text-primary-main",width:"24",height:"24"})})]}),u("div",{className:`${wa} mx-1.5 mt-1.5`}),u("div",{className:`${wa} mt-3 mr-3`})]}):null})),ka=x((({className:e,additionalDescription:t,description:l,links:n,title:a,...i})=>p(k,{className:w("flex w-full overflow-hidden justify-between",e),...i,children:[p("div",{className:"flex flex-col max-w-96 pr-xl text-white text-xl font-light",children:[u(tl,{isPadding:!1,title:a,description:l,as:"h1",align:"text-left"}),t?u(tl,{className:"pt-m",description:t,align:"text-left",isPadding:!1}):null]}),n?.length?Ca(n):null]}))),Ca=e=>{const t=Math.ceil(e.length/10);return u(Qn,{className:"min-w-[832px] w-[832px]",version:"",isBlur:!1,isCyclic:!0,itemCount:t,arrowsPadded:!1,showDots:!0,children:new Array(t).fill(null).map(((t,l)=>u("div",{className:"w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start",children:e.slice(10*l,10*(l+1)).map(((e,t)=>u(Sa,{className:"m-1",...e},String(t))))},String(l))))})},Ia={L:"w-1.5 h-1.5 mr-m",M:"w-1.5 h-1.5 mr-s",S:"w-1 h-1 mr-xs"},Ta=x((({className:e,isDotted:t=!0,children:l,size:n="M"})=>p("div",{className:w("font-sans flex",e),role:"listitem",children:[t?u("div",{className:"shrink-0",children:u("div",{className:w("align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white",Ia[n])})}):null,u("span",{children:l})]}))),Ba={S:"text-l font-light",M:"text-h6",L:"text-h5"},Ra={S:"ml-xs",M:"ml-s",L:"ml-m"},Ma=x((({className:e,hasIndent:t,isDotted:l,items:n,listItemSize:a="M"})=>n?.length?u("section",{className:w("flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text",Ba[a],t?Ra[a]:"",e),role:"list",children:n.map(((e,t)=>u(Ta,{isDotted:l,size:a,children:e},String(t))))}):null)),Pa=x((({additionalDescription:e,align:t="text-center",button:l={},className:n="",description:a,headlineSmallVersion:i="H6",href:r,icon:s,isDotted:o=!0,isButtonFullWidth:c=!0,isImageFullWidth:d=!1,isTopPosition:m=!1,items:h=[],target:u,title:x,version:g="primary",...f})=>p(k,{className:w("h-full flex flex-col justify-between min-w-[260px]","box-border border-solid border border-gray",t,n),defaultPadding:"p-0",version:g,...f,children:[p(pa,{className:"p-m flex flex-col gap-xs",href:r,target:u,children:[za(i,x),$a(a),ja(h,o,g),_a(e),Va(s,d,m)]}),Yt([l],{className:w("p-m pt-0",c?"":"self-center"),isVertical:c})]}))),Va=(e,t,l)=>p("div",{className:w("flex gap-lg",l?"order-first":"order-last",t?"":"justify-center"),children:[e?.src?u(Rt,{className:"shrink-0",image:e}):null,e?.icon?u(Rt,{className:w("shrink-0",t?"":"w-8 h-8 min-w-8"),image:e}):null]}),za=(e,t)=>t?u(me,{size:el[e],children:t}):null,$a=e=>e?u(de,{size:"text-l",children:e}):null,_a=e=>e?u(me,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e}):null,ja=(e,t,l="primary")=>e?.length?u(Ma,{className:w("text-s","primary"===l?"!text-secondary-text":""),items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,listItemSize:"S"}):null,Da=x((({className:e="",title:t,icon:l,list:n=[],href:a,target:i,...r})=>u(k,{className:w("border border-gray",e),defaultPadding:"p-3xl sm:p-0",...r,children:p(pa,{className:"sm:flex sm:items-center",href:a,target:i,children:[u("div",{className:"min-w-[200px] flex justify-center",children:l?.src||l?.icon?u(Rt,{image:l}):null}),p("div",{className:"sm:px-s p-5xl",children:[t?u(I,{className:"mb-xs sm:mb-m",headingType:"h6",title:t}):null,n.length?u("div",{className:"flex flex-col gap-xs sm:gap-s",children:n?.map(Aa)}):null]})]})}))),Aa=(e,t)=>p("div",{className:"flex flex-row-reverse justify-between gap-y-2xs sm:flex-col",children:[e.title?u(me,{size:"text-l",font:"font-normal",children:e.title}):null,e.description?u(de,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e.description}):null]},String(t)),La={default:"w-14 h-14",small:"w-12 h-12"},Oa=(e,t)=>e?"":w("group/media flex items-center justify-center box-border",La[t]),Ea=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],Fa=x((({buttonSize:e="default",rounded:t=!1,icon:l,...n})=>{const{href:a,version:i,text:r=""}=n,{iconMapped:s,label:o}=(e=>Ea.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{})(a),c=Ua(l)??s;return u(se,{className:w(t?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",Oa(r,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:r,version:i,...n,children:c&&!r?u(Rt,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),Ua=e=>e?.src||e?.icon?e:void 0,Ha=x((({className:e="",media:t,children:l,buttonSize:n})=>p("div",{className:"font-sans",children:[u("div",{className:`flex gap-1 ${e}`,children:t?.map(((e,t)=>u(Fa,{buttonSize:n,...e},String(t))))}),u(me,{size:"text-s",font:"font-light",color:"text-secondary-text",children:l})]}))),Xa=x((({className:e="",description:t,href:l,icon:n,items:a=[],socialMedia:i=[],target:r,title:s,align:o="text-left",version:c="primary",...d})=>u(k,{className:w("relative min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),defaultPadding:"p-m",version:c,...d,children:p(pa,{href:l,target:r,children:[u(tl,{className:"mb-4",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),p("div",{className:"w-1/2 h-full flex flex-col flex-1 justify-end",children:[a.length?u(Ma,{items:a,listItemSize:"S"}):null,i.length?u(Ha,{className:"pt-10",media:i}):null]}),Wa(n)]})}))),Wa=e=>p("div",{className:"absolute bottom-0 right-0",children:[e?.icon?u(Rt,{image:e}):null,e?.src?u(Rt,{image:e}):null]}),Ka=x((e=>{const{__html:t="",richVersion:l=""}=e;return u("div",{className:w(l,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),Ga=x((({className:e="",__html:t,richVersion:l="striped",...n})=>u(k,{className:w("border border-gray h-full min-w-96",e),...n,children:u(Ka,{__html:t,richVersion:l})}))),Ja=x((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:l=!1,renderFoldableSection:a,renderFoldButton:r})=>{const[s,o]=n(l),c=i((()=>{o((e=>!e))}),[]),d=a({isUnfolded:s,onToggle:c}),m=r?r({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),Ya=x((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return a((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),u("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:l})})),qa=(e=!1)=>e?"p-8 mt-8 pt-20":"p-8 mt-20",Za=(e,t)=>{const{title:l,description:n,buttons:a}=e;return p("div",{className:"py-5 border-b border-main-divider",children:[l?u("div",{className:"opacity-80",children:u(me,{size:"text-m",color:"text-secondary-text",children:l})}):null,n?u("div",{className:"mt-1",children:u(me,{size:"text-xl",color:"text-primary-text",children:n})}):null,a?.length?u("div",{className:"text-primary-main",children:Yt(a)}):null]},String(t))},Qa=x((({className:e="",title:t,align:l="text-center",icon:n,isHighlighting:a=!1,button:i,cardCells:r=[],...s})=>{const o=r.map(Za),c=o.slice(0,1),d=o.slice(1);return p(k,{className:w("relative border border-gray flex flex-col",e),defaultPadding:qa(a),...s,children:[a?li():null,ei(n),t?u(I,{className:w("pt-xs",l),headingType:"h5",title:t}):null,i?u(se,{className:"w-full mt-4",...i}):null,r.length?u(Ja,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[c,u(Ya,{isUnfolded:e,children:d})]}),renderFoldButton:r.length>1?ti:null}):null]})})),ei=e=>u("div",{className:"w-[267px] min-w-[267px] self-center",children:e?.src||e?.icon?u(Rt,{image:e}):null}),ti=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(_e,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),li=()=>p("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(_e,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(de,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),ni="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",ai="border-gray border-solid border",ii="border-main-divider border border-t-0 border-x-0",ri="w-[200px] mr-6",si=x((({icon:e,image:t,title:l,link:n})=>p("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${ai} ${ni}`,role:"columnheader",children:[e&&!t?.src&&u(Rt,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&u(Rt,{className:"mb-[18px]",image:t}),l?u(I,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&u("div",{className:"mt-auto w-full",children:u(se,{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:u("div",{className:"text-xs font-light font-medium py-[11px]",children:n.text})})})]}))),oi={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ci=x((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:oi[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),di=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),mi=x((({colHeaders:e,activeIndex:t})=>p(di,{children:[u("div",{className:ri,role:"columnheader"}),u(ci,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(si,{...e},String(t))))})]}))),hi=x((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>u("div",{className:`w-80 box-border flex flex-col ${ai} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?ni:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${ii} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>xi(e,t,n)))})}))),ui=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),pi=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),xi=({label:e,description:t},l,n)=>p("div",{className:"first:pt-2xl pt-xl last:pb-2xl",children:[e?u("h4",{className:ui(n),children:e}):null,t?u("div",{className:pi(n),children:t}):null]},String(l)),gi=(e=!1)=>`text-s py-7 ${ii} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,fi=x((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:a,isLastRow:i})=>p(di,{children:[e?.title?u("div",{className:gi(i),children:e.title}):null,t?.length?u(ci,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>u(hi,{cell:e,isFirstRow:a,isLastRow:i,isFillGradient:n&&0===t},String(t))))}):null]}))),bi=x((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:n})=>{const{isScrollAvailable:a}=n;return p("div",{className:"relative",children:[e.map(((e,n,{length:a})=>u(fi,{row:e,isFirstRow:0===n,isLastRow:n+1===a,activeIndex:l,isColoredFirstColumn:t},String(n)))),a?yl({...n,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),vi=x((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:a})=>{const i=e?.map((({header:e})=>e||{})),r=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:r.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),[o,c]=gl({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[i?.length?u(mi,{colHeaders:i,activeIndex:o}):null,s?.length?u(bi,{rowData:s,isColoredFirstColumn:a,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),yi=x((({className:e="",title:t,rowHeaders:l,columns:a,visibleRowLength:r=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!r),m=i((()=>d((e=>!e))),[]);return p(k,{className:w("overflow-hidden relative",e),defaultPadding:"p-6xl",...o,children:[u(I,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),u(vi,{columns:a,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:r}),r?Ni({isShowAllRow:c,onClick:m}):null]})})),Ni=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-12",children:p("div",{className:"flex w-full",children:[u("div",{className:ri}),u("button",{onClick:t,className:"mt-m py-xs flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:u(me,{size:"text-xs",font:"font-medium",children:e?"Скрыть":"Показать все параметры"})})]})}),wi=x((({className:e,contacts:t,info:l,version:n="secondary",...a})=>p(k,{className:w("flex",e),defaultPadding:"p-6xl",version:n,...a,children:[l?.length?Si(l):null,t?.length?Si(t):null]}))),Si=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>ki({column:e,index:t})))}),ki=({column:e,index:t})=>e?u("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:l,button:n},a)=>p("div",{className:"mt-xl first:mt-0",children:[u(tl,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),l?u("div",{className:"mt-xs opacity-80",children:u(de,{size:"text-m",font:"font-light",children:l})}):null,n?.href?u(se,{className:"mt-xl",...n}):null]},String(a))))},`col-${String(t)}`):null,Ci=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,Ii=(e,t)=>Object.entries(e).map((([t,l])=>"number"==typeof l?((e,t)=>l=>Ci(t[e])||Ci(l[e])||Ti(t[e])<=Ti(l[e]))(t,e):"object"==typeof l&&"min"in l&&"max"in l?((e,t)=>l=>Ci(t[e])||Ci(l[e])||Ti(t[e]?.min)>=Ti(l[e]?.min)&&Ti(t[e]?.min)<=Ti(l[e]?.max))(t,e):Array.isArray(l)?((e,t)=>l=>Ci(t[e])||Ci(l[e])||t[e]?.some((t=>l[e]?.includes(t))))(t,e):((e,t)=>l=>Ci(t[e])||Ci(l[e])||t[e]===l[e])(t,e))).every((e=>e(t))),Ti=e=>Number(e||0),Bi=x((({className:e="",label:t,icon:l,dataTheme:n="",disabled:a=!1,onClick:i})=>p("button",{className:w("flex justify-center w-full px-0 py-4 border border-transparent outline-none focus:border-primary-text",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:i,disabled:a,"data-theme":n,children:[u("span",{className:"text-h4 pr-3",children:t}),l?u(Rt,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),Ri=({isUnfolded:e,onToggle:t})=>u(Bi,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Mi=["ArrowDownIcon","ArrowUpIcon"],Pi="grid grid-cols-12 gap-1 border-box",Vi=x((({label:e="",filtrationState:t={},topItemsCount:l=0,block:n,notFound:a,...i})=>{const r=n?.blocks?.filter((e=>Ii(t,e.content||{})))||[],[s,o]=l>0?[r.slice(0,l),r.slice(l)]:[r,[]];return p("div",{children:[u("div",{className:w(r.length?"hidden":"block"),children:a?zi(a):null}),p("div",{className:w(r.length?"":"hidden"),children:[u("div",{className:w("mb-1",Pi),children:$n(s,{...i.options,parent:n})}),u(Ja,{renderFoldableSection:({isUnfolded:e})=>u(Ya,{className:w(Pi,e?"mb-1":""),isUnfolded:e,children:$n(o,{...i.options,parent:n})}),renderFoldButton:({isUnfolded:t,onToggle:n})=>u(Bi,{className:w(l<1?"hidden":""),disabled:!o?.length,label:e,icon:Mi[Number(t)],dataTheme:i.options?.page?.colorPalette,onClick:n})})]})]})}));function zi({title:e,description:t}){return p("div",{className:"bg-white py-20",children:[e?u("div",{className:"mb-xs",children:u(de,{align:"text-center",children:u(me,{size:"text-h4",children:e})})}):null,t?u(de,{size:"text-xl",font:"font-light",align:"text-center",children:t}):null]})}const $i=x((({value:e,onChange:t,items:l=[],multiple:n})=>l.map((l=>u(He,{text:l.title,value:[e].flatMap((e=>e)).includes(l.value),onChange:()=>(l=>{if(t)if(n){const n=e?.includes(l);t(n?(e||[]).filter((e=>e!==l)):[...e||[],l])}else t(e===l?"":l)})(l.value),type:n?"checkbox":"radio"},l.value))))),_i=({field:e,reset:t,filtrationSchema:l,resetButton:n,children:a})=>p("form",{className:"flex justify-between bg-white p-9 mb-1",children:[p("div",{className:"flex gap-11",children:[a,Object.entries(l).map(ji(e))]}),n?u("div",{children:u(se,{className:"w-72 ml-3",onClick:t,...n})}):null]}),ji=e=>([t,l])=>{const n=l?.type;return"array"===n?Di(t,e)(l):null},Di=(e,t)=>l=>{const n=l?.items?.enum?.map(((e,t)=>({value:e,title:l?.items?.enumNames?.[t]||""})))||[];return p("div",{children:[l?.title?u("div",{className:"mb-4",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:l.title})}):null,u($i,{items:n,multiple:!0,...t(e)})]},e)},Ai={sum:500,period:{min:3,max:36}},Li=x((({className:e,filtrationSchema:t={},resetButton:l,sumInput:n,periodInput:a,...i})=>{const[r,{field:s,reset:o}]=B(Ai),c=a?.max||36,d=p("div",{children:[u(In,{label:n?.title,min:500,max:1e9,...s("sum",{parse:Number,format:String})}),u(ut,{title:a?.title,items:["От 3 мес","До 3 лет"],min:a?.min||3,max:c,...s("period",{parse:e=>({min:e,max:c}),format:({min:e})=>e})})]});return p(k,{className:w(e),defaultPadding:"p-0",version:"transparent",...i,children:[_i({field:s,reset:o,filtrationSchema:t,resetButton:l,children:d}),u(Vi,{filtrationState:r,...i})]})}));Li.childrenTypes=["ProductTile"],Li.childSchema=e=>e?.filtrationSchema||{};const Oi=e=>"Image"===e?.errorContentType&&e?.image?u(Rt,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,Ei=x((({className:e="",title:t,subtitle:l,error:n,button:a,...i})=>{return p(k,{className:w("flex flex-col justify-center items-center",e),defaultPadding:(r=a?.text,r?"py-20 pt-3 pb-1":"mb-16 pb-2 mt-24 pt-3"),version:"transparent",...i,children:[u("div",{className:"flex justify-center py-20",children:Oi(n)}),t?u(I,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?u("div",{className:"mb-7 max-w-[613px] text-center",children:u(me,{size:"text-xl",font:"font-light",children:l})}):null,a?.text?u(se,{className:"py-4 px-9",version:a?.version,...a,children:a.text}):null]});var r}));var Fi;!function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.AUD="AUD",e.CNY="CNY",e.RUB="RUB"}(Fi||(Fi={}));const Ui={USD:"DollarIcon",EUR:"EuroIcon",GBP:"DollarIcon",AUD:"DollarIcon",CNY:"DollarIcon",RUB:"RoundRubleIcon"},Hi=e=>e?Ki.format(e):"",Xi=(e,t)=>p("td",{className:"pt-m pl-5xl",children:[u("div",{children:Hi(e)}),u("div",{className:w("font-normal text-sm text-secondary-text",(t||0)>=0?"text-green":"text-red"),children:Hi(t)})]}),Wi=(e,t="")=>p("td",{className:"pt-m pl-5xl",children:[u("div",{children:Hi(e)}),u("div",{className:"font-normal text-sm text-green",children:t})]}),Ki=new Intl.NumberFormat("ru",{style:"currency",currency:Fi.RUB}),Gi=e=>u("th",{className:"pl-5xl",children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:e})}),Ji=x((({className:e,currencies:t=[],actuality:l="",officeName:n="",...a})=>{const i=Yi(t,4);return p(k,{className:w("space-y-3xl",e),...a,children:[p("div",{className:"flex flex-row flex-grow-0 justify-between space-y-lg",children:[u(I,{headingType:"h4",title:"Курс обмена валют в "+n,className:"whitespace-pre-wrap text-h4"}),u("div",{className:"pl-6xl",children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:l})})]}),u("div",{className:"flex flex-row pt-m text-left",children:i.length>0?p("table",{className:w("h-fit w-fit",e),children:[u("thead",{children:p("tr",{children:[u("th",{children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:"Валюта"})}),Gi("Купить"),Gi("Продать"),Gi("Лучшая покупка"),Gi("Лучшая продажа")]})}),u("tbody",{children:i.map((e=>(({title:e,buyPrice:t,buyDifference:l,sellPrice:n,sellDifference:a,buyOfficeName:i,sellOfficeName:r})=>p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[e?u(Rt,{image:{icon:Ui[e]},width:"24",height:"24"}):null,u("span",{className:"ml-xs",children:e})]})}),Xi(t,l),Xi(n,a),Wi(t,i),Wi(n,r)]},e))(e)))})]}):null})]})})),Yi=(e,t)=>e.sort(((e,t)=>Number(e.id)-Number(t.id))).slice(0,t);var qi;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(qi||(qi={}));const Zi=new Intl.NumberFormat("ru",{style:"currency",currency:qi.RUB}),Qi=e=>e?Zi.format(e):"",er="text-left text-m font-light text-secondary-text",tr=`${er} pl-5xl`,lr={USD:"DollarIcon",EUR:"EuroIcon"},nr=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:er,children:"Валюта"}),u("th",{className:tr,children:"Купить"}),u("th",{className:tr,children:"Продать"})]})}),u("tbody",{children:t.map(ar)})]}))),ar=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-2xs text-h6",children:[u("td",{className:"pt-m",children:p("div",{className:"flex items-center",children:[t?u(Rt,{image:{icon:lr[t]},width:"24",height:"24"}):null,u("span",{className:"ml-xs",children:t})]})}),u("td",{className:"pt-m pl-5xl",children:Qi(e?.saleExchangeRate)}),u("td",{className:"pt-m pl-5xl",children:Qi(e?.buyExchangeRate)})]},t)},ir=x((({className:e="",address:t})=>p("div",{className:`flex gap-s ${e}`,children:[u(Rt,{image:{icon:"GpsIcon"},width:"24",height:"24"}),p("div",{className:"space-y-2xs",children:[t?u("p",{className:"text-primary-main text-l",children:t}):null,u("p",{className:"text-secondary-text text-m",children:"Курс указан для заданного офиса"})]})]}))),rr=(e,t,l)=>{const n=Number(sr(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)},sr=e=>e.replace(/[^\d.,]/g,"").replace(",","."),or=e=>{return(t=[[e=>e.value!==qi.RUB&&e.oppositeValue!==qi.RUB,()=>e.handleConvert(e.value,qi.RUB)],[e=>e.value===qi.RUB&&e.oppositeValue===qi.RUB,()=>e.handleConvert(e.value,qi.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function cr(e){const{placeholder:t,rates:l,selected:n,value:a,setValue:i,setSelected:r}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return p("div",{className:"relative flex",children:[u(pe,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:a,onChange:i}),s.length?u(Ae,{isBorder:!1,onChange:e=>r(e.key),options:s,value:o}):null]})}const dr=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:a})=>{const[r,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||qi.RUB,selectBuy:l?.[0]?.currency?.currency||qi.USD}),o=i((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[cr({placeholder:"Хочу продать",rates:l,selected:r.selectSell,setSelected:mr(r,o,l),value:r.inputSell,setValue:e=>ur(o,l)(e,r.selectSell,r.selectBuy)}),cr({placeholder:"Получу",rates:t,selected:r.selectBuy,setSelected:hr(r,o,t),value:r.inputBuy,setValue:e=>pr(o,t)(e,r.selectBuy,r.selectSell)}),a?.text?u(se,{className:"py-4",version:a?.version,...a,children:a.text}):null]})})),mr=(e,t,l)=>n=>{t({selectSell:n}),or({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,a=e.selectBuy)=>{ur(t,l)(e.inputSell,n,a)}})},hr=(e,t,l)=>n=>{t({selectBuy:n}),or({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,a=e.selectSell)=>pr(t,l)(e.inputBuy,n,a)})},ur=(e,t)=>(l,n,a)=>{e({inputSell:sr(l),selectBuy:a});const i=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;i&&e({inputBuy:String(rr(l,i,n===qi.RUB)||"")})},pr=(e,t)=>(l,n,a)=>{e({inputBuy:sr(l),selectSell:a});const i=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;i&&e({inputSell:String(rr(l,i,n===qi.RUB)||"")})};const xr=async e=>{const t=await gr(),l=t?.code||"000";return{region:t,exchangeRates:await fr(e,l)}},gr=async()=>{try{return await D("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},fr=async(e,t)=>{try{return await D(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},br=x((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:a}=function(){const{data:e}=$("/api/v1/exchangerates",xr);return e||{}}(),i=vr(a?.exchangeRate?.currencies),r=i.filter((e=>e.buyExchangeRate));r.unshift({currency:{currency:qi.RUB}});const s=i.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:qi.RUB}}),u(k,{className:w("box-border min-h-80",e),...n,children:u(fa,{className:"h-full",title:u(I,{headingType:"h4",title:t,className:"whitespace-pre-wrap"}),children:p("div",{className:"flex gap-6xl",children:[p("div",{children:[i?u(nr,{className:"mb-xl",exchangeCurrencyItems:i}):null,u(ir,{address:a?.address})]}),i.length&&r.length&&s.length?u(dr,{className:"grow",currencyRatesBuy:r,currencyRatesSell:s,button:l}):null]})})})})),vr=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],yr={};function Nr(e,t={}){const{data:l}=$(`/wcms-resources/${e}.json`,D,{fallback:t});return l||yr}const wr={"bg-white":"color",transparent:"white"},Sr={"bg-white":"text-primary-main",transparent:"text-white"},kr=(e,t,l)=>u(Rt,t?.src?{image:t,className:Sr[e],width:l?.width,height:l?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:wr[e]},className:Sr[e],width:l?.width,height:l?.height}),Cr={"bg-white":"text-primary-text",transparent:"text-white"},Ir=(e,t,l)=>u("span",{className:`${Cr[t]} ml-s font-medium ${l||""}`,children:e||"Россельхозбанк"}),Tr=x((({className:e="",href:t="/",logo:l,children:n=l?.title,targetBlank:a,bgColor:i="bg-white",showTitle:r=!0})=>p("a",{className:w("inline-flex items-center font-sans no-underline",e),href:t,target:a?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[kr(i,l?.image,{width:"40",height:"45"}),r?Ir(n||l?.title,i):null]}))),Br=x((({className:e,onClick:t})=>u("button",{className:w("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(Rt,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function Rr(e){throw new Error(e)}function Mr({onOpen:e,onClose:t}={}){a((()=>b.subscribe("dialog",(l=>{switch(l.type){case"open":e&&e(l);break;case"close":t&&t();break;default:Rr(l)}}))),[e,t])}const Pr=(e,t,l=300)=>a((()=>{const t=setTimeout(e,l);return()=>{clearTimeout(t)}}),t);function Vr(e,...t){return e.map(((e,l)=>[e,...t.map((e=>e[l]))]))}const zr=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:l,s1Matches:n,s2Matches:a}=function(e,t){const l=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),n=new Array(e.length),a=new Array(t.length);let i=0;for(let r=0;r<e.length;r++){const s=Math.max(0,r-l),o=Math.min(r+l,t.length-1);for(let l=s;l<=o;l++)n[r]||a[l]||e[r]!==t[l]||(i++,n[r]=!0,a[l]=!0)}return{m:i,s1Matches:n,s2Matches:a}}(e,t);if(0===l)return 0;const i=function(e,t,{s1Matches:l,s2Matches:n}){let a=0;for(let i=0,r=0;i<e.length;i++){if(!l[i])continue;let s=r;for(;s<t.length;s++)if(n[s]){r=s+1;break}e[i]!==t[s]&&a++}return a}(e,t,{s1Matches:n,s2Matches:a}),r=(l/e.length+l/t.length+(l-i/2)/l)/3,s=r>.7?.1*function(e,t){let l=0;for(;e[l]===t[l]&&l<4;)l++;return l}(e,t):0;return r+s*(1-r)};const $r=(e,t)=>(l,n)=>{for(const[a,i]of n)l.set(a,e(l.get(a)||t,i));return l},_r=(e=[])=>e.reduce(((e,t)=>e+t),0),jr=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),Dr=e=>t=>e.map((([e,l])=>[zr(t)(e),l])).filter((([e])=>e>=.8)).map((([e,t])=>Lr(t,e))).reduce($r(Math.max,0),new Map),Ar=e=>t=>{return Vr(t,t.map((({title:e})=>e)).map((e=>t=>{const l=jr(t||"");return l.length?_r(e.map((e=>Fl(l.map(zr(e)))))):0})(e))).sort((n=([,e])=>e,l=(e,t)=>n(e)-n(t),(e,t)=>-l(e,t))).map((([e])=>e));var l,n},Lr=(e,t)=>new Map(e.map((e=>[e,t]))),Or=["/"],Er=({basePathList:e=Or,initialQuery:t="",wasOpened:l})=>{const[i,s]=n(t||"");a((()=>{null!=t&&s(t)}),[t]);const o=r((()=>e.map((e=>l?e:null))),[l,e]),{data:c}=$(o,Fr),[d,m]=n(null);return Pr((()=>{c&&m(c.map((e=>t=>{const{corpus:l,dictionary:n}=t||{};if(!(e&&l?.length&&n&&Object.keys(n).length))return[];const a=jr(e);if(!a.length)return[];const i=Object.entries(n),r=[...a.map(Dr(i)).reduce($r(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>l[e]));return Ar(a)(r)})(i)))}),[c,i]),[d,{value:i,onChange:s}]},Fr=async(...e)=>(await Promise.allSettled(e.map((e=>j(H(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),Ur=x((({className:e,isOpened:t,head:l,children:n,onClose:i})=>(a((()=>{const e=({key:e})=>{"Escape"===e&&i&&i()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[i]),t?u("div",{className:w("fixed inset-0 bg-white text-l font-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-6xl min-h-full",children:[p("div",{className:"sticky bg-white pt-xl top-0",children:[u(Br,{className:"absolute top-0 -right-6xl",onClick:i}),l]}),n]})}):null)));function Hr(e,t=!1){const[l,{setTrue:a,setFalse:r}]=Ve(t),[o,c]=n({id:e}),d=s(l);d.current||=l;const m=i((t=>{t.id===e?(c(t),a()):r()}),[e]),h=i((()=>{r(),b.fire("dialog",{type:"close"})}),[]);return Mr({onOpen:m,onClose:r}),{...o,isOpened:l,wasOpened:d.current,open:a,close:r,onClose:h}}const Xr=x((({className:e,topItems:t})=>{const l=Y({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(l).map(Wr)})})),Wr=(e,t)=>{const{text:l,items:n,href:a,target:i,onClick:r}=e;return p("div",{className:"flex flex-col gap-3.5 w-1/4",children:[u("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:a,target:i||"_self",onClick:r,children:l||`Раздел ${t}`}),n?.map(((e,t)=>u(Kr,{...e,basePath:o(a),index:t},String(t))))]},String(t))},Kr=x((({text:e,index:t,basePath:l,...n})=>{const a=Y({isRemote:!(!d.BASE_PATH||!l)&&!d.BASE_PATH.startsWith(l),basePath:l}),{href:i,target:r,onClick:s}=a(n);return u("a",{className:w("text-l font-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:i,target:r||"_self",onClick:s,children:e||`Раздел ${t}`})})),Gr=x((({className:e,value:t,autoFocus:l,onChange:n,onFocus:a})=>{const r=i((e=>{n&&n(e.target?.value||"")}),[n]);return p("div",{className:w("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-m pointer-events-none",children:u(Rt,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:w("h-12 pl-12 w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text"),value:t,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:l,onChange:r,onFocus:a})]})})),Jr="search",Yr=x((({topItems:e})=>{const t=Hr(Jr),l=r((()=>e?.map((e=>e.href||"/"))),[e]),[n,i]=Er({basePathList:l,initialQuery:t.message,wasOpened:t.wasOpened}),s=r((()=>qr(e)(n)),[e,n]);return a((()=>function(e){for(const t of e.filter((({items:e})=>e?.length)))console.group(t.text),console.table(t.items,["text","href"]),console.groupEnd()}(s)),[s]),u(Ur,{...t,head:u(Gr,{className:"my-5",autoFocus:!0,...i}),children:u(Xr,{topItems:s})})})),qr=e=>t=>e?.length&&t?.length?Vr(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:H("/",t)})))}))):[];const Zr=x((({className:e})=>{const[t,l]=n(""),a=i((()=>l("")),[]);Mr({onClose:a});const{open:r}=O(Jr),s=i((e=>{l(e),Qr(e)&&r(e)}),[]);return p("div",{className:e,children:[u(Gr,{value:t,onChange:s}),u(Br,{className:"absolute top-2 right-3 sm:hidden",onClick:a})]})})),Qr=e=>e&&e.length>=3,es=x((({className:e="",items:t,hasButton:l})=>p("div",{className:w("space-y-xl",e),children:[t?.length?t.map(ts):null,l?u(se,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),ts=(e,t)=>p("div",{className:"space-y-m",children:[u("div",{className:"",children:u(me,{size:"text-l",font:"font-medium",children:e?.title})}),u("div",{className:"space-y-m",children:e.items?.map(ls)})]},String(t)),ls=(e,t)=>p("div",{className:"space-y-2xs",children:[u("div",{children:ns(e.type,e.text)}),u("div",{className:"text-s font-light text-secondary-text",children:e.description})]},String(t)),ns=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${as(t)}`,children:t});case"email":return u("a",{className:"text-xl font-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},as=e=>e.replaceAll(/\D/g,""),is=x((({className:e="",index:t,text:l,...n})=>{const a=Y(),{href:i,target:r,onClick:s}=a(n);return u("a",{className:w("text-secondary-text",e),href:i,target:r,onClick:s,children:l||`Документ ${t}`})})),rs=x((({className:e="",links:t})=>u("div",{className:e,children:t?.length?u("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)=>u(is,{index:t,className:"text-l font-light max-w-[292px]",...e},String(t))))}):null}))),ss=x((({className:e="",index:t,...l})=>{const n=Y({isRemote:!0}),{href:a,target:i,text:r,onClick:s}=n(l);return u("a",{className:`text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:i,onClick:s,children:r||`Документ ${t}`})})),os=x((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-4 xl:pt-5",children:u(me,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-4",children:t.map(((e,t)=>u(ss,{index:t,...e},String(t))))}):null]}))),cs="w-[204px]",ds=x((({className:e="",...t})=>{const l=t.options?.page?.fallback,n=Nr(d.SITEMAP||"sitemap",l),{documents:a,relatedEnterprises:i,contacts:r,socialMedia:s,mobileApps:o,logo:c}=Nr(d.FOOTER||"footer",l);return p(k,{tag:"footer",className:e,...t,children:[p("div",{className:"flex items-stretch gap-6xl xl:gap-3xl pb-3xl ",children:[u(Tr,{className:cs,logo:c}),u(Zr,{className:"grow"})]}),p("div",{className:"flex items-stretch gap-6xl xl:gap-3xl",children:[p("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden space-y-xl",children:[u(es,{items:r,hasButton:!0}),u(Ha,{media:s,children:"Соцсети"}),u(Ha,{media:o,children:"Мобильное приложение"})]}),u(Xr,{className:"flex-grow",topItems:n?.topItems})]}),u(rs,{className:"mt-24",links:i}),u(os,{links:a})]})})),ms=x((({className:e="",title:t,description:l,calendar:n,...a})=>p(k,{className:e,defaultPadding:"p-6xl",...a,children:[u(tl,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M"}),n?hs(n):null]}))),hs=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 p("div",{className:"w-full flex flex-col justify-center mt-13",children:[u("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>us(e,t)))}),u("div",{className:"flex w-full",children:l.map(((e,t)=>p("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:[u("div",{className:"flex",children:ps(e)}),p("div",{className:"text-s font-light text-primary-text mt-3",children:[u("span",{children:e.text})," ",u("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},us=(e,t)=>e.month?.map(((e,l)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),ps=e=>e.month?.map((e=>e.image?.src?u("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:u(Rt,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),xs=864e5;function gs(e,t,l=globalThis?.localStorage){const n=i((async(...n)=>{const a=`async:${e}`,i=function(e){const{data:t=null,timestamp:l=null}=e?JSON.parse(e):{};return t&&Date.now()-l<xs?t:void 0}(l.getItem(a));if(i)return i;const r=await t(...n);return l.setItem(a,JSON.stringify({data:r,timestamp:Date.now()})),r}),[e,t]);return $(e,n)}const fs=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},bs=e=>({href:t})=>U(E(t)?e.href:e.pathname).startsWith(U(t));const vs=x((({className:e,searchTerm:t,onSearch:l})=>p("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:t?null:u("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),u("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>l(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),ys="location",Ns=x((({currentLocation:e,onChangeLocation:t,foreignOffices:l})=>{const a=Hr(ys),[r,s]=n(""),o=Ss(function(){const{data:e}=$("/api/v1/regions",D);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const l=new Map;for(const n of e){const e=t(n),a=l.get(e)||[];l.set(e,[...a,n])}return l})(o,ws),d=i((e=>{a.onClose&&a.onClose(),t&&t(e)}),[a.onClose,t]);return p(Ur,{...a,head:p("div",{children:[u(ks,{currentLocation:e,onChangeLocation:d}),u(vs,{onSearch:s,searchTerm:r,className:"mb-7"})]}),children:[r&&r.length>=3?u("div",{children:o.filter((({name:e})=>e&&zr(e.toLowerCase())(r.toLowerCase())>=.8)).map(Is(d))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map(Cs(d))}),u(Ts,{foreignOffices:l})]})})),ws=e=>e.name?.charAt(0)||"",Ss=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),ks=x((({currentLocation:e,onChangeLocation:t})=>e?p("div",{className:"mb-4",children:[u(me,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{className:"cursor-pointer",onClick:()=>{t&&t(e)},children:u(me,{color:"text-primary-main",children:e.name})})]}):null)),Cs=e=>([t,l])=>p("div",{className:"break-inside-avoid mb-2xl w-[224px]",children:[u("div",{className:"mb-s",children:u(me,{size:"text-h6",children:t})}),l.map(Is(e))]},t),Is=e=>t=>u("div",{className:"mb-2xs",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(t)},children:t.name||""})},t.id),Ts=x((({foreignOffices:e})=>e?.length?p("div",{className:"border-t border-main-divider mt-2xs pt-2xs",children:[u("div",{className:"mb-m",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(Bs,{...e},String(t))))})]}):null)),Bs=x((({icon:e,...t})=>{const l=Y(),{text:n,target:a,href:i,onClick:r}=l(t);return p("div",{className:"flex gap-x-3",children:[e?u(Rt,{pathPrefix:"/wcms-resources/",image:e}):null,n?u("a",{className:"hover:text-primary-hover",href:i,target:a,onClick:r,children:n}):null]})})),Rs=x((({className:e="",active:t,flat:l,children:n,...a})=>{const i=Y({isRemote:!0}),{href:r,target:s,text:o,onClick:c}=i(a);return u("a",{className:w(Ms(t,l),e),href:r,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:Ps(t,l),children:o||n})})})),Ms=(e=!1,t=!1)=>w("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",t?"":"px-4 py-2"),Ps=(e=!1,t=!1)=>w("font-sans text-s font-light",e?"text-primary-main":w(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Vs={default:"w-6 h-6",large:"w-12 h-12"},zs=x((({className:e,isRounded:t,buttonSize:l="default",isGrayBg:n=!1,disabled:a,ariaLabel:i,image:r,onClick:s})=>u("button",{className:w("group/btn border-0 flex shrink-0 items-center",n?"p-3 rounded-full":"p-0 bg-inherit",n&&!t?"bg-main-divider":"",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":`${Vs[l]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:a,"aria-label":i,onClick:s,children:u(Rt,{image:r,className:w("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),$s=x((({className:e,version:t,locationName:l,officesLink:n})=>{const a="transparent"===t?"white":"black",{open:r}=O(ys),s=i((()=>r()),[]),{open:o}=O(Jr),c=i((()=>o()),[]);return p("div",{className:w("flex items-center gap-5",e),children:[u(Rs,{flat:!0,href:"#",text:l,onClick:s}),n?u(Rs,{flat:!0,href:n,text:"Офисы и банкоматы"}):null,u(zs,{image:{icon:"LoupeIcon",iconVersion:a},ariaLabel:"Поиск",onClick:c})]})})),_s=x((({className:e="",items:t,activeItem:l})=>{const a=Y(),[r,s]=n(!1),o=i((()=>s((e=>!e))),[]),c=ze(i((()=>s(!1)),[]));return p("div",{className:w(r?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("button",{className:"group/btn flex justify-between items-center h-6","aria-label":""+(r?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:w("absolute flex flex-col rounded-md bg-white p-6 pb-2",r?"":"hidden"),"aria-hidden":!r,children:t?.map(((e,t)=>{const{text:n,...i}=e;return u("a",{className:w("text-l font-light pb-4 hover:text-primary-main",e===l?"text-primary-main":""),...a(i),children:n},e.href||String(t))}))})]})})),js=x((({className:e="",active:t,dataItemName:l,children:n,...a})=>{const i=Y(),{href:r,target:s,text:o,onClick:c}=i(a);return p("a",{className:w("relative inline-block bg-transparent text-center no-underline",e),href:r,target:s,"data-item-name":l,onClick:c,children:[u("span",{className:Ds(t),children:o||n}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),Ds=(e=!1)=>w("font-sans text-l font-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),As=x((({observerOptions:e,onVisibilityChange:t,children:l,className:n,...a})=>{const r=v(i((e=>{if(!e.length||!t)return;const l=e[e.length-1];t(l.isIntersecting)}),[t]),e);return u("span",{ref:r,className:n,children:u(js,{...a,children:l})})})),Ls=e=>globalThis[e];function Os(e,t){const[l,r]=n(),s=i((()=>r(Ls(e))),[e]);return a((()=>{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),r(void 0)}}if(!Ls(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}const Es={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},Fs=x((e=>{const[t,{setTrue:l}]=Ve();return t?u(Us,{...e}):Hs({...e,onClick:l})})),Us=x((({chat:e="personal",...t})=>((e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),Os("chatbot",Es[e])})(e),Hs(t)))),Hs=({className:e,iconVersion:t,onClick:l})=>u(zs,{className:w("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:l,buttonSize:"large",isGrayBg:!0}),Xs={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},Ws=x((({version:e,internetBankUrl:t})=>t?u(se,{href:t,ariaLabel:"Интернет-банк",target:"_blank",className:w("py-3 ml-3 text-l font-light whitespace-nowrap hover:text-primary-main",Xs["transparent"===e?"transparent":"default"]),children:"Интернет-банк"}):null)),Ks=x((({subItems:e=[],version:t,internetBankUrl:l})=>{const a="transparent"===t?"white":"black",i=(e=>(t=[])=>{const l=t?.filter(bs(e));return l?.length?El((e=>e.href?.length||0))(l):void 0})(J())(e),[o,c]=n(e.length),m=e.slice(o),h=s(null),x={rootRef:h},g=r((()=>e.map(((e,t)=>e=>{c(e?Gs(t):Js(t))}))),[e]);return p("nav",{className:"relative mt-s flex items-center justify-between",children:[u("div",{ref:h,className:"overflow-hidden whitespace-nowrap pb-s mt-xs",children:e.map(((e,t)=>u(As,{className:w("ml-3xl first:ml-0",o-1<t?"invisible":""),active:e===i,observerOptions:x,onVisibilityChange:g[t],...e},String(t))))}),m.length?u(_s,{className:"relative w-auto z-40",items:m,activeItem:i}):null,d.CHAT_BOT?u(Fs,{className:"ml-9",iconVersion:a,chat:d.CHAT_BOT}):null,u(Ws,{version:t,internetBankUrl:l})]})})),Gs=e=>t=>Math.max(t,e+1),Js=e=>t=>Math.min(t,e),Ys={"bg-white":"primary",transparent:"transparent"},qs=x((({bgColor:e="bg-white",className:t,showSubMenu:l=!0,version:r=Ys[e],...s})=>{const o=J(),{topItems:c,logo:m,defaultLocation:h,foreignOffices:x,officesLink:g,internetBankUrl:f}=Nr(d.SITEMAP||"sitemap",s.options?.page?.fallback),b=c?.find((e=>bs(d.BASE_PATH?{pathname:d.BASE_PATH}:e))(o)),[v,y]=function(e="Москва"){const t=fs(),[l,r]=n(t?.region??{name:e}),{data:s}=gs("/api/v1/region",D);return a((()=>{r(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[l,i((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),r(e)}),[])]}(h);return p(k,{tag:"header",className:w("pt-3xl px-20",l&&b?.items?.length?"pb-m":"pb-lg",t),defaultPadding:"",version:r,...s,children:[p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(Tr,{className:"mr-3xl",bgColor:e,logo:m}),c?.map(((e,t)=>u(Rs,{active:e===b,...e},String(t)))),u($s,{version:r,className:"ml-auto",locationName:v.name,officesLink:g})]}),u("div",{className:w("mt-xl h-px bg-main-divider","transparent"===r?"opacity-30":"")}),l&&b?.items?.length?u(Ks,{subItems:b.items,version:r,internetBankUrl:f}):null]}),u(Yr,{topItems:c}),u(Ns,{currentLocation:v,foreignOffices:x,onChangeLocation:y})]})})),Zs={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},Qs=x((({className:e="",gap:t="XS",isPadding:l=!1,version:n="transparent",isTheme:a=!1,...i})=>u(k,{className:w("relative","grid grid-cols-12",Zs[t],e),defaultPadding:l?"p-6xl":"",version:n,isTheme:a,...i,children:_n(i)})));Qs.childrenTypes={exclude:["HorizontalLayout"]};const eo=x((e=>{const{className:t,image:l,...n}=e;return u(k,{className:t,defaultPadding:"p-0",...n,children:u(Rt,{image:l})})})),to=x((({className:e="",cards:t=[],button:l})=>{const[a,r]=n(0),s=i((e=>r(e)),[]),o=t.length,[c,d]=gl({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:h}=d,x=t[c]?.href;return p("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[p("div",{className:"relative overflow-hidden",children:[o?lo({activeIndex:c,cards:t,selectedCardIndex:a,onClick:s}):null,yl({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?u("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,h?u("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),u(se,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function lo({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const a=460*e,i=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-6xl",children:u("div",{className:`w-full flex flex-nowrap gap-3.5 pb-6xl ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return p("button",{type:"button",onClick:n,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?u(Rt,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,p("div",{className:"flex gap-3.5",children:[e?.sum?no("страховая сумма",e.sum):null,e?.fee?no("страховой взнос",e.fee):null]}),ao(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function no(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[ot(2)(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function ao(e){return e?u(Rt,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:{icon:"DoneIcon"},width:"24",height:"24"}):null}const io=x((({className:e="",title:t,insuranceTabs:l=[],button:a,...r})=>{const[s,o]=n(0),c=i((e=>o(e)),[]);return p(k,{className:w("box-border overflow-hidden relative px-0 space-y-2xl",e),defaultPadding:"p-6xl",...r,children:[t?u(I,{className:"text-center",title:t,headingType:"h3"}):null,l?.length>1?u("div",{className:"p-xs bg-secondary-light w-fit mx-auto rounded-md",children:l.map(((e,t)=>function({title:e,i:t,isActive:l,onClick:n}){return u("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m font-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,u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:ro({insuranceTabs:l,button:a})})]})})),ro=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>u(to,{button:t,cards:e},String(l)))):null};const so=e=>t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:`sep-${n}`},l):[l]),[]),oo={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},co={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},mo=x((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:a,investmentColumns:i,...r}=e,s=i?[...i]:[];return a&&s.unshift(a),u(k,{className:t,...r,children:p("div",{className:"container text-m font-light",children:[s?.length?p("div",{children:[p("div",{className:"flex items-end relative pl-3xl pr-lg text-white",children:[so(u("div",{className:"w-px h-4 bg-gray"}))(s.map(ho)),u("div",{className:"absolute right-3xl w-px h-4 bg-gray"})]}),u("div",{className:"border-t border-gray -mt-xs mx-3xl"}),u("div",{className:"flex justify-between text-primary-text mt-s -mx-5xl",children:s.map(xo)})]}):null,l?.length?u(Ma,{className:"mt-9 max-w-[657px]",items:l,isDotted:n,listItemSize:"M"}):null]})})})),ho=(e,t,l)=>{const n=1===t,a=t===l.length-1;return u("div",{className:`${uo(n,a,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-2xs min-w-[290px]":""),children:e.cells.reverse().map(po)}):null},`column_${t}`)},uo=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-s",l.length&&!t?"pr-s pb-3xl":"pb-xl"].join(" "),po=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-xs ${co[l]} ${oo[n]} ${"XS"===l?"px-s":"px-5xl"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},xo=(e,t)=>u("div",{className:"flex-1 max-w-[180px] text-center px-xs last:pr-3xl",children:e.title},`title_${t}`),go=["байт","Кб","Мб","Гб","Тб","Пб"],fo=x((({icon:e,text:t,fileSize:l,...n})=>p("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...n,children:[e,t?p(me,{size:"text-l",font:"font-light",children:[t,u(me,{color:"text-secondary-text",children:n?.href&&bo(vo(n.href),l)})]}):null]}))),bo=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),vo=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},yo={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},No=x((({className:e="",title:t,description:l,align:n="text-center",documents:a,icon:i={icon:"DocIcon"},columnsMode:r="double",...s})=>{const o=J();return p(k,{className:e,defaultPadding:"p-6xl",...s,children:[u(tl,{className:"!p-0",title:t,description:l,align:n,headlineVersion:"M",as:"h2"}),a?.length?u("div",{className:w("mt-5 sm:mt-8 flex flex-col gap-6",yo[r]),role:"list",children:a.map(wo(o,r,i))}):null]})})),wo=(e,t,l)=>(n,a)=>{const i="Attachment"===n?.docType?W(e)(n?.attachment?.src):n?.href,r="Attachment"===n?.docType?((e,t=2)=>{if(0===e)return"";const l=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,l)).toFixed(t))} ${go[l]}`})(n?.attachment?.fileSize||0):n?.fileSize;return u("div",{className:"double"===t?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(fo,{...n,href:i,fileSize:r,icon:l?u(Rt,{className:"min-w-6 min-h-6",image:l,width:"24",height:"24"}):null})},String(a))},So=e=>e?u("div",{className:"mb-5 pt-3xs sm:mb-0 sm:pt-0",children:u(me,{size:"text-xl","font-weight":"light",children:e})}):null,ko=e=>e?.length?u(Ma,{items:e,className:"text-l font-light mb-xs last:mb-0"}):u("span",{className:"text-m font-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Co=x((({className:e,padding:t,alignTitle:l="left",buttons:n=[],description:a,headingType:i="h4",image:r,items:s,qr:o,title:c="Мобильное приложение",version:d="primary",...m})=>{const h="secondary"===d?"p-m min-w-[120px]":"min-w-[92px]";return u(k,{className:w("min-h-80",e),padding:"p-0",version:d,...m,children:p(fa,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:c?u(I,{headingType:i,title:c,className:w("whitespace-pre-wrap",rl[l])}):null,buttons:Yt(n,{isVertical:n.length>4}),children:[So(a),p("div",{className:"flex flex-1 flex-wrap gap-m items-center",children:[o?.src?u("div",{className:w("flex justify-center bg-white rounded-md",h),children:u(Rt,{className:"w-fit",image:o})}):null,ko(s),r?.src?u(Rt,{image:r}):null]})]})})})),Io={},To=x((({className:e,filtrationSchema:t={},resetButton:l,...n})=>{const[a,{field:i,reset:r}]=B(Io);return p(k,{className:w(e),defaultPadding:"p-0",version:"transparent",...n,children:[_i({field:i,reset:r,filtrationSchema:t,resetButton:l}),u(Vi,{filtrationState:a,...n})]})}));To.childrenTypes=["ProductTile"],To.childSchema=e=>e?.filtrationSchema||{};const Bo=[{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:"Кафе"}];function Ro(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),a=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),i=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));a.add(i),t.geoObjects.add(a),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Mo={focus:"focus:border-primary-text 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"},Po=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(Mo).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Vo={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)]"},zo=(e,t,l)=>p("div",{className:`${Object.values(Vo).join(" ")} bg-white py-s pl-5xl pr-m w-full`,children:[u(_e,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",className:"absolute left-4"}),u("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"})]}),$o={focus:"focus:border-primary-text 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"},_o=(e,t,l)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values($o).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(_e,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),jo={focus:"focus:border-primary-text 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"},Do=x((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(jo).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(_e,{name:l,width:"20",height:"16"})})})),Ao={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-text focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},Lo=x((({points:e,className:t="",zoom:l=5,showSearchField:i=!1})=>{const r=s(null),o=Os("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${d.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[c,m]=n(),[h,x]=n(Uo(Bo)),g=Oo(e);if(a((()=>{r?.current||o?.ready((()=>{r.current=new o.Map("map",{center:g,zoom:l,controls:[],suppressMapOpenBlock:!0}),Ro(o,r.current,h)}))}),[o,r,h]),a((()=>{if(r.current&&h&&o){const e=h.length<1?Uo(Bo):h;Ro(o,r.current,e)}}),[r,h,o]),!o)return null;const f=c?"z-[100000]":"z-10";return p("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-[50%] ${f}`,children:i?zo(Bo,0,(e=>{if(e){const t=Uo(e);x(t)}})):Po(g)}),u("div",{className:`${Object.values(Ao).join(" ")} ${f} right-2 top-4 bg-white`,onClick:()=>{const e=r.current.container;c?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u(_e,{name:"FullScreenIcon",width:"16",height:"16"})}),p("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${f}`,children:[u(Do,{yandexMaps:r}),u(Do,{yandexMaps:r,direction:"out"})]}),_o(r.current,o,`right-2 top-80 ${f}`)]})})),Oo=e=>[Fo(Eo(e,0)),Fo(Eo(e,1))],Eo=(e,t)=>e.map((e=>e[t])),Fo=e=>e.reduce(((e,t)=>e+t))/e.length,Uo=e=>e?e.map((e=>e.coords)):null,Ho={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},Xo=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],Wo=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?p("div",{className:"flex",children:[u("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}),u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?n:null})]}):u("div",{className:"flex",children:u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},Ko=({icon:e,title:t,distance:l,time:n},a)=>p("div",{className:"flex mr-4",children:[u(_e,{name:e,width:"16",height:"16",className:"mr-1"}),t?p(me,{size:"text-m",children:[t," "]}):null,p(me,{size:"text-m",font:"font-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${a}`),Go=({title:e,status:t,workTime:l,lunchHour:n,description:a},i)=>p("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[p("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[u("div",{children:e}),t?null:u("div",{className:"text-m font-light text-error",children:"Выходной"}),t&&l?u("div",{children:l}):null]}),t&&n?Jo(n):null,a?u("div",{className:"pb-1 text-s font-light text-secondary-text",children:a}):null]},`day${i}`),Jo=e=>/\d+/gi.test(e)?p("div",{className:"flex justify-between items-center w-full pb-1 text-m font-light text-error",children:[u("div",{children:"Перерыв"}),u("div",{children:e})]}):u("div",{className:"flex justify-between items-center w-full pb-1 text-m font-light text-primary-main",children:u("div",{children:e})}),Yo=x((({className:e=""})=>{const t=Ho,{name:l,address:n,gpsLatitude:a,gpsLongitude:i,workSchedule:r}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:h,workingSunday:x}=r,{workTime:g,lunchHour:f,workTimeSaturday:b,lunchHourSaturday:v}=r,y=a&&i?[a,i]:null,N=[{title:"Понедельник",status:s,workTime:g,lunchHour:f},{title:"Вторник",status:o,workTime:g,lunchHour:f},{title:"Среда",status:c,workTime:g,lunchHour:f},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:f},{title:"Суббота",status:h,workTime:b,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),S=w>0?N[w-1]:N[6];return p("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[p("div",{className:"flex flex-col px-12 pt-12",children:[p("div",{className:"flex justify-between",children:[u("div",{className:"text-h2",children:l}),Wo(S)]}),p("div",{className:"flex text-l font-light pt-4",children:[u(_e,{name:"GeolocationIcon",width:"24",height:"24",className:"pr-1"}),n]}),u("div",{className:"flex pt-4",children:Xo.map(Ko)})]}),p("div",{className:"flex justify-between pt-3xl",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:y?u(Lo,{points:[y],className:"h-full"}):null}),u("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:N.map(Go)})]})]})})),qo=x((({className:e="",title:t,servicesList:l,...n})=>p(k,{className:w("flex flex-col",e),...n,children:[t?u(I,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?u("ul",{className:"list-none m-0 p-0",children:l.map(Zo)}):null]}))),Zo=(e,t)=>p("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?u(Rt,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",image:e.icon}):null,e.label?u(me,{size:"text-l",font:"font-light",children:e.label}):null]},`list_item_${String(t)}`),Qo=x((({text:e,size:t,align:l,font:n,children:a,...i})=>u(k,{defaultPadding:"p-0",...i,children:u(de,{size:t,align:l,font:n,children:e||a})}))),ec=(e=[])=>e?.length?_r(e)/e.length:0,tc=(e,t="normal")=>e?u("div",{className:w("w-12 h-12 min-w-12 box-border flex items-center justify-center rounded-icon","normal"===t?"bg-secondary-light text-primary-main":"bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black"),children:u(Rt,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,lc=(e,t)=>e?u(de,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,nc=(e,t)=>e?u(me,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,ac=(e,t)=>"rte"===e.type&&"__html"in e&&e.__html?u(Ka,{...e},`rte-${t}`):["label"in e?nc(e.label,t):null,"description"in e?lc(e.description,t):null],ic=x((({className:e,benefitsVersion:t,...l})=>p("div",{className:w("flex gap-m","description"in l&&l.description?"items-start":"items-center",e),children:["icon"in l?tc(l.icon,t):null,u("div",{children:ac(l)})]}))),rc=e=>"rte"===e.type?e.__html?.length||0:Math.max(e.label?.length||0,e.description?.length||0),sc=e=>{return((t=e.map(rc))?.length?Math.sqrt(Math.abs(ec(t.map((e=>e**2)))-ec(t)**2)):0)>16;var t},oc=x((({className:e,benefitsVersion:t="normal",benefits:l})=>l?.length?u("div",{className:w("flex gap-x-m gap-y-s",sc(l)?"flex-col":"flex-wrap",e),children:l.map(((e,l)=>u(ic,{benefitsVersion:t,...e},String(l))))}):null)),cc=x((({className:e,benefits:t})=>t?.length?u("div",{className:w("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),children:t.flatMap(ac)}):null)),dc=x((({isTabularBenefits:e,...t})=>u(e?cc:oc,{...t}))),mc=x((({className:e,tags:t})=>t?.length?u("div",{className:w("flex flex-wrap gap-xs",e),role:"list",children:t.map(hc)}):null)),hc=(e,t)=>u("div",{className:"py-2 px-2.5 border-solid border rounded-md border-gray",role:"listitem",children:u(me,{size:"text-m",font:"font-light",children:e})},String(t)),uc=x((({className:e,padding:t,defaultPadding:l,title:n,description:a,headlineVersion:i="L",align:r="text-left",isInsetTitle:s=!0,benefitsVersion:o,isTabularBenefits:c,benefits:d,__html:m,items:h,isDotted:x=!0,listItemSize:g,tags:f,buttons:b,image:v,imageOptions:{imageAlign:y="end",directionRight:N=!0,isBackground:w}={},children:S})=>{const k=v?.src?u(Rt,{image:v}):null,C=u(tl,{title:n,description:a,headlineVersion:i,align:r,isPadding:!1});return u(fa,{className:e,padding:t,defaultPadding:l,...s?{insetTitle:C}:{title:C},...w?{backImage:k}:pc(k,N),imageAlign:y,buttons:Yt(b),children:p("div",{className:"flex flex-col gap-xl",children:[u(dc,{benefitsVersion:o,isTabularBenefits:c,benefits:d}),m?u(Ka,{__html:m}):null,h?.length?u(Ma,{items:h,isDotted:x,listItemSize:g}):null,S,f?.length?u(mc,{tags:f}):null]})})})),pc=(e,t)=>t?{rightImage:e}:{leftImage:e},xc=(e,t)=>e||t?p("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl",children:[Number(e)>0?gc("Страховая сумма:",e):null,Number(t)>0?gc("Ежемесячный лимит:",t):null]}):null,gc=(e,t=0)=>p("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre",children:[u(me,{font:"font-light",size:"text-l",children:e}),p(me,{size:"text-h6",color:"text-primary-text",children:[ot(2)(t)," ₽"]})]}),fc=x((({className:e,padding:t,headlineVersion:l="M",align:n="text-center",sum:a,monthLimit:i,imageOptions:r,...s})=>u(k,{className:e,padding:"p-0",...s,children:u(uc,{className:"h-full",defaultPadding:"p-6xl",padding:t,headlineVersion:l,align:n,isInsetTitle:!1,imageOptions:{directionRight:!1,imageAlign:"center",...r},...s,children:xc(Number(a),Number(i))})}))),bc=x((({className:e,title:t,description:l="Блок в разработке...",...n})=>p(k,{className:w("box-border",e),...n,children:[u(tl,{className:"max-w-[600px]",title:t,description:l,headlineVersion:"L",align:"text-left",isPadding:!1}),u("figure",{className:"m-0 mt-xl min-w-[80%]",children:vc()})]}))),vc=(e=3)=>Nc(100,e).map((e=>Math.floor(e))).map(yc),yc=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-xs bg-secondary-light"},String(t)),Nc=(e,t)=>[e].concat(t>0?Nc(e/1.618,t-1):[]);function wc({text:e,href:t,target:l,icon:n},a){const i="primary"===a?"white":"black",r={text:e,href:t,target:l,ariaLabel:e};return p("div",{className:"flex items-center gap-3",children:[u(se,{className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",version:a,rounded:!0,...r,children:u(Rt,{className:"w-4 h-4",image:{...n,icon:n?.icon||"ArrowLeftIcon",iconVersion:n?.iconVersion||i}})}),u(se,{version:"link",...r})]})}const Sc=x((({className:e,padding:t,backwardButton:l,...n})=>p(k,{className:w("overflow-hidden flex flex-col gap-3xl box-border",e),defaultPadding:"p-6xl",padding:t,...n,children:[l?.text?wc(l,n.version&&"primary"!==n.version?"white":"primary"):null,u(uc,{className:"grow h-full",...n})]}))),kc=x((({className:e="",padding:t,slides:l=[],...a})=>{const[i,r]=n(0);return p(k,{className:w("box-border overflow-hidden",e),defaultPadding:"py-6xl",padding:t,...a,children:[u("div",{className:"flex duration-1000",style:{transform:`translateX(-${100*i}%)`},role:"list",children:l.map((({productBlock:e},t)=>u("div",{className:"box-border grow-0 shrink-0 basis-full",role:"listitem",children:u(uc,{className:"pl-6xl h-full",headlineVersion:"XXL",...e,...a})},String(t))))}),u("div",{className:"h-28 px-xs mt-m -mb-m flex gap-xs box-border",children:l.map(Cc({activeSlideIndex:i,onClick:r}))})]})})),Cc=({activeSlideIndex:e,onClick:t})=>({nav:l},n)=>{const a=n===e,i=a?"min-w-[350px] bg-white shadow-dark-blue border-none p-6":"min-w-[290px] ease-in duration-300 bg-white/10 px-6 py-5 hover:py-6 backdrop-blur",r=a?"text-primary-text text-h6 py-2":"text-l pb-1 text-secondary-text group-data-secondary:text-white",s=a?"text-secondary-text text-l font-light":"text-secondary-text text-m font-light group-data-secondary:text-white/80";return p("button",{type:"button",onClick:()=>t(n),"aria-label":l?.title,className:w("relative px-6 box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50",i),children:[u("div",{className:r,children:l?.title}),u("div",{className:s,children:l?.description})]},String(n))},Ic=x((({className:e,padding:t,headlineVersion:l="S",isTabularBenefits:n=!0,additionalDescription:a,imageOptions:i,...r})=>u(k,{className:e,padding:"p-0",...r,children:u(uc,{className:"h-full",defaultPadding:"p-xl",padding:t,headlineVersion:l,isTabularBenefits:n,imageOptions:{isBackground:!0,...i},...r,children:a?u(de,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:a}):null})}))),Tc=x((({className:e,title:t="Акции и спецпредложения",description:l,headlineVersion:n="S",date:a,buttons:i=[],...r})=>u(k,{className:w("box-border",e),...r,children:p(fa,{className:"h-full",title:t?u(tl,{title:t,headlineVersion:n,align:"text-left",isPadding:!1}):null,buttons:Yt(i),children:[a?u("div",{className:"text-s mb-xs",children:Bc(a)}):null,u("div",{className:"text-l",children:l})]})})));function Bc(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Rc=x((({address:e,email:t,telephone:l,button:n,className:a="",__html:i,icon:r,title:s,version:o="primary",...c})=>p(k,{className:w("box-border text-left",a),version:o,...c,children:[p("div",{className:"w-full sm:flex sm:justify-between sm:flex-row-reverse",children:[Mc(r),s?u(I,{headingType:"h4",as:"h3",className:"mb-3 sm:mb-6",title:s}):null]}),p("div",{className:"w-full",children:[i?Pc(i):null,Vc("Адрес",e,"GeolocationIcon"),Vc("Телефон",l,"PhoneIcon"),Vc("E-mail",t,"MailIcon"),n?.text?Yt([n],{className:"mb-6"}):null]})]}))),Mc=e=>p("div",{className:"w-10 h-7 sm:w-24 sm:h-16 mb-3 sm:mb-0 sm:mt-3",children:[e?.src?u(Rt,{image:e}):null,e?.icon?u(Rt,{image:e}):null]}),Pc=e=>u("div",{className:"border-b border-main-divider pb-5 my-5",children:u(Ka,{__html:e})}),Vc=(e,t,l)=>p("div",{className:"flex mb-4",children:[u(_e,{className:"pr-4",iconVersion:"black",name:l,width:"24",height:"24"}),p("div",{className:"flex flex-col first:pb-1",children:[u(me,{size:"text-m",font:"font-light",children:e}),t?u(me,{size:"text-h6",color:"text-green",children:t}):null]})]}),zc=x((e=>{const{__html:t,richVersion:l,...n}=e;return u(k,{defaultPadding:"p-0",...n,children:u(Ka,{__html:t,richVersion:l})})})),$c=e=>e?"MinusIcon":"PlusIcon",_c=x((({className:e="",label:t="Развернуть",labelIcon:l,labelIconBgVersion:n,isExpanded:a,isFoldButtonOnTop:i=!0,version:r="primary",...s})=>u(k,{className:w("w-full","border-0 border-b border-solid border-main-divider last:border-b-0",e),defaultPadding:"p-0",tag:"div",version:"transparent",...s,children:u(Ja,{isFoldButtonOnTop:i,unfoldedByDefault:a,renderFoldableSection:({isUnfolded:e})=>u(Ya,{className:w("gap-5 [&>*]:p-0","grid grid-cols-12 [&>*]:pb-4"),isUnfolded:e,children:_n(s)}),renderFoldButton:({isUnfolded:e,onToggle:a})=>jc({version:r,label:t,labelIcon:l,labelIconBgVersion:n,isUnfolded:e,onToggle:a})})})));_c.childrenTypes={exclude:["RollupItem"]};const jc=({version:e,label:t,labelIcon:l,labelIconBgVersion:n,isUnfolded:a,onToggle:i})=>{const r=t||(a?"Скрыть":"Развернуть");return"primary"===e?Dc({label:r,labelIcon:l,labelIconBgVersion:n,icon:$c(a),onToggle:i}):u(Bi,{label:r,icon:a?"ArrowUpIcon":"ArrowDownIcon",onClick:i})},Dc=({label:e,labelIconBgVersion:t,icon:l,onToggle:n,labelIcon:a})=>p("button",{className:w("border-none bg-transparent px-0 flex justify-between items-center w-full group/button",a?.icon?"py-xs":"py-lg"),onClick:n,children:[p("div",{className:"flex items-center group-hover/button:text-primary-main gap-s",children:[null,e?u(me,{size:"text-h6",font:"font-normal",children:e}):null]}),l?u(_e,{name:l,iconVersion:"color",width:"24",height:"24"}):null]}),Ac=x((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:a="",setSelected:i,label:r})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return u(Ae,{options:s,label:r,placeholder:a||n,onChange:e=>i(e.key),value:o})})),Lc=x((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:a,onSelectedBranch:i})=>p("div",{className:"flex justify-between gap-4 mb-6",children:[u("div",{className:"max-w-[396px] w-1/2",children:u(Ac,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),u("div",{className:"max-w-[396px] w-1/2",children:u(Ac,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:i,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Oc=x((({name:e,text:t,value:l,checked:n,onChange:a,className:i})=>u("div",{className:i,children:p("label",{className:"font-sans flex items-center relative cursor-pointer",children:[u("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-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=>a(e.target.value)}),t?u("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),Ec=x((()=>{const[e,t]=n("option2"),l=i((e=>t(e)),[]);return p("div",{children:[u(Oc,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),u(Oc,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),Fc=["От 1 дня","До 365 дней"],Uc=x((({days:e,setDays:t})=>p("div",{className:"mb-6",children:[u("span",{className:"block text-m font-light mb-1",children:"Срок аренды"}),u(ut,{min:1,max:365,value:e,items:Fc,onChange:t})]}))),Hc=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:a,onSelectedBoxSize:i})=>p("div",{className:"flex justify-between mb-6",children:[u("div",{className:"mr-4 w-full",children:u(Ac,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"w-full",children:u(Ac,{data:n,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:i,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Xc=x((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:a,selectedCaseVolume:i,selectedBoxSize:r,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"flex-1 mr-9",children:[u(Lc,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:Wc(c)}),u(Uc,{days:a,setDays:e=>c({days:e})}),u(Hc,{caseVolumes:o,selectedCaseVolume:i,onSelectedCaseVolume:Kc(c),safeBoxCases:s,selectedBoxSize:r,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:"Тип договора"}),p("div",{className:"flex justify-between items-center mt-5",children:[u(Ec,{}),u(se,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Wc=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Kc=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Gc=x((({days:e,tariffs:t=[]})=>{const l=Yc(e,t);return p("div",{className:"flex flex-col justify-between",children:[p("div",{className:"flex",children:[Jc("Аренда за",e,"mr-11"),Jc("Цена",l+" ₽")]}),p("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[u(Rt,{image:{icon:"PackA4Icon"},width:"290",height:"257"}),p("span",{className:"text-s font-light text-white opacity-80 mt-xs inline-block",children:["На рисунки изображена пачка",u("br",{})," листов формата А4"]})]})]})})),Jc=(e,t,l="")=>p("div",{className:l,children:[u("div",{className:"text-m font-light text-secondary-text mb-1",children:e}),u("span",{className:"text-h3 text-primary-text",children:t})]}),Yc=(e,t)=>{const l=qc(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},qc=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},Zc=(e,t)=>e.find((e=>e.branchCode===t)),Qc=x((e=>{const{regions:t,data:l,branches:n,onChange:i,onClick:r}=e;a((()=>{i({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,i]);const s=Zc(n,l.selectedBranch),o=ed(s?.safeBoxCaseVolumes),c=td(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=ld(c,l.selectedBoxSize);return p("div",{className:"flex justify-between align-top mb-6",children:[u(Xc,{...l,regions:t,onClick:r,branches:n,caseVolumes:o,safeBoxCases:c,onChange:i}),u(Gc,{days:l.days,tariffs:d})]})})),ed=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],td=(e,t)=>e?.find((e=>e.volume===t)),ld=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,nd=[];const ad=async e=>await j(e,{method:"GET"})||nd,id=x((({title:e,footnote:t,className:l="",...a})=>{const[r,s]=n(!1),o=i((()=>s((e=>!e))),[]),[c,d]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=L(),h=rd(c.selectedRegion,m),x=function(e){const{data:t}=$(e?`/api/v1/safeboxes?regionCode=${e}`:null,ad);return t||nd}(h),g=i((e=>d((t=>({...t,...e})))),[d]),f=(b=Zc(x,c.selectedBranch)||x,Array.isArray(b)?b.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):b?.gpsLatitude&&b?.gpsLongitude?[[b.gpsLatitude,b.gpsLongitude]]:[]);var b;return p(k,{className:l,defaultPadding:"",...a,children:[p("div",{className:"p-4xl",children:[e?u(I,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-s text-center"}):null,u(Qc,{regions:m,branches:x,data:{...c,selectedRegion:h},onClick:o,onChange:g}),t?u(de,{size:"text-s",font:"font-light",children:t}):null]}),f.length&&r?u(Lo,{points:f,className:"h-[640px]"}):null]})})),rd=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,sd=e=>Boolean(e?.icon||e?.src),od=({styleMap:e,isMainButton:t,version:l})=>(n,a,i)=>{const{label:r,description:s,button:o,items:c,isDotted:d}=n;return p("div",{className:w("relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden space-y-3xl",cd(i.length)),children:[p("div",{className:"text-center space-y-xs",children:[r?u("div",{children:u(me,{size:"text-h6",children:r})}):null,p("div",{className:"flex flex-col items-center gap-3xs",children:[s?u("div",{className:e.description,children:s}):null,u(Ma,{className:e.description,items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(se,{className:"box-border py-s h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(a))},cd=e=>e<5?"w-[276px]":"w-[200px]",dd={description:"text-white/80 text-l font-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},md=x((({className:e="",showLines:t=!0,steps:l=[],buttons:n,size:a="normal",version:i="primary",stepVersion:r="gray",title:s,...o})=>{const c=l.length>3,d=dd,m=(e=>e?"":"opacity-0")(t),h=(e=>e<5?"px-24":"px-16")(l.length),x=Boolean(n?.every((e=>e?.text)));return p(k,{className:w("box-border flex flex-col items-center overflow-hidden gap-y-3xl",e),defaultPadding:"p-6xl",version:i,...o,children:[s?u(I,{headingType:"h4",className:"text-center",title:s}):null,l?.length?p("div",{className:"box-border space-y-lg",children:[u("div",{className:w("flex items-center",h),children:so(u("div",{className:w("h-0.5 w-full bg-secondary-light flex-1",m)}))(l.map(hd(d,a,r)))}),u("div",{className:w("flex justify-between",c?"gap-x-3":"gap-x-20"),children:l.map((g={styleMap:d,isMainButton:x,version:i},(e,t,l)=>{const{type:n}=e;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return od(g)(e,t,l);case"rte":return u("div",{className:w("text-center",cd(l.length)),children:u(Ka,{__html:e.__html})},String(t));default:return null}}))})]}):null,Yt(n)]});var g})),hd=(e,t,l)=>({icon:n},a)=>{const i="secondary"===l?"white":"color";return u(k,{defaultPadding:"",className:`${ud(t)} flex justify-center items-center text-center rounded-full box-border z-10`,version:l,children:sd(n)?u(Rt,{image:{...n,iconVersion:n.iconVersion||i},width:"48",height:"48"}):u("span",{className:w("text-h4","transparent"===l?e.iconText:pd(l)),children:a+1})},String(a))},ud=e=>"normal"===e?"h-24 w-24":"h-16 w-16",pd=e=>"secondary"===e?"group-data-primary:text-white":"text-secondary-text",xd=x((({className:e,version:t,gap:l=14,padding:n=16,showDots:a=!0,minHeight:i,children:r,onVisibleIndicesChange:s,listType:o="horizontal-list"})=>{const c=Array.isArray(r)?r.length:0,[d,m]=Hn({itemCount:c,onVisibleIndicesChange:s}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===o?"relative h-full":""),children:[u(Ln,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:l,padding:n,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:o,minHeight:i,children:r}),a?u(qn,{containerRef:d,activeIndex:h,dotCount:c,listType:o,version:t}):null]})})),gd=x((({listType:e,showDots:t,options:l,version:n,...a})=>u(k,{version:n,defaultPadding:"p-0",...a,children:u(xd,{listType:e,showDots:t,version:n,children:_n({...a,options:l})})})));gd.childrenTypes={exclude:["SwipeListControlBlock"]};const fd="h-12 flex-1 flex items-center justify-center cursor-pointer",bd="font-sans text-m text-center",vd="text-secondary-text sm:group-hover/btn:text-primary-main",yd={block:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${fd} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${fd} group/btn bg-white`},centered:{active:`px-4 rounded-md ${fd} bg-primary-main text-white whitespace-nowrap`,default:`px-4 rounded-md ${fd} group/btn bg-transparent whitespace-nowrap`},wideScreen:{active:`${fd} bg-primary-main text-white whitespace-nowrap`,default:`${fd} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:`${bd} flex items-center h-full border-0 border-b-2`,default:`${bd} ${vd}`},centered:{active:`${bd} text-white`,default:`${bd} ${vd}`},wideScreen:{active:`${bd} text-white text-black px-2.5 bg-white sm:bg-primary-main sm:text-white`,default:`${bd} ${vd} px-2.5 bg-white`}}},Nd=(e,t,l)=>{const n=t?"active":"default";return yd[e][l||"wideScreen"][n]},wd=x((e=>{const{tab:t,currentTab:l,onClick:n,tabsMode:a}=e,i="link"===l?.type&&l.href===t.href,r=Y()(t);return u("div",{className:Nd("block",i,a),role:"tab","aria-selected":i,onClick:()=>n(t),children:u("a",{role:"tab",className:w("flex flex-1 items-center justify-center h-full",Nd("text",i,a)),target:t.target,href:r.href,onClick:e=>{r.onClick(e),n(t)},children:u("span",{children:t.text})})})})),Sd=(e,t,l)=>u("div",{className:w("bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-xs flex justify-center items-center",l&&"scrollable"!==e?"bg-white/30 text-white":"text-secondary-text group-hover/btn:text-primary-main"),children:t}),kd=({page:e,showCounter:t,...l})=>(n,a)=>{const i=n.type;if("group"!==i&&"link"!==i)return null;switch(i){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:n,tabsMode:a})=>(i,r)=>{const s=t===i,o=i.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(i.ref))).length:0;return u("div",{className:Nd("block",s,a),role:"tab","aria-selected":s,onClick:()=>n(i),children:p("div",{className:w("flex flex-1 items-center justify-center h-full",Nd("text",s,a)),children:[u("span",{children:i.title}),l&&o?Sd(a,o,s):null]})},`group-${String(r)}`)})({page:e,showCounter:t,...l})(n,a);case"link":return u(wd,{tab:n,...l},String(a));default:Rr(i)}return null},Cd=x((({tabs:e,...t})=>u("div",{className:"flex p-1 m-auto bg-main-gray rounded-md",children:e?.map(kd({...t}))}))),Id=x((e=>{const{tabs:t,...l}=e,[n,a]=Hn({itemCount:t?.length||0,isCyclic:!1});return p("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u(Ln,{containerRef:n,snapAlign:"snap-start",onVisibleIndicesChange:a.handleVisibleIndicesChange,children:t?.map(kd({...l}))})}),a.canScrollLeft?u(bl,{className:"absolute z-40 top-0 left-6",onClick:a.scrollLeft}):null,a.canScrollRight?u(vl,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:a.scrollRight}):null]})})),Td=x((e=>{const{className:t="",isSticky:l,tabs:r,...s}=e,[o,c]=n(r?r[0]:void 0);a((()=>{r&&r[0]&&Rd(r[0])}),[]),a((()=>{"group"===o?.type&&b.subject("tab",{type:o.type,label:o.ref})}),[o]);const d=i((e=>{Rd(e),c(e)}),[]);return u(k,{className:w("relative box-border flex gap-x-1 w-full overflow-x-auto no-scrollbar",l?"sticky top-1 z-20":"",t),defaultPadding:"p-0",role:"tablist",...s,children:Bd({tabs:r,onClick:d,currentTab:o,...s})})})),Bd=({tabsMode:e,tabs:t,...l})=>{switch(e){case"wideScreen":return t?.map(kd({tabsMode:e,...l}));case"centered":return u(Cd,{tabs:t,tabsMode:e,...l});case"scrollable":return u(Id,{tabs:t,tabsMode:e,...l})}return null},Rd=e=>{"group"===e.type&&b.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&b.fire("tab",{type:e.type,label:e.href})},Md=x((({isOpen:e,onClick:t})=>p(se,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[u("div",{className:"text-h4",children:e?"Скрыть":"Показать"}),u(_e,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-s",iconVersion:"white",width:"20",height:"20"})]}))),Pd={Buttons:({buttons:e})=>Yt(e),Img:({image:e})=>e?.src?u(Rt,{image:e}):null,List:({isDotted:e,...t})=>u(Ma,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-secondary-text text-l font-light",children:t}):null]}),Table:x((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:a})=>e?u(Md,{isOpen:a,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},Vd=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:i,openTableInnerIdx:r,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=n(!0);a((()=>{t===r&&i||m(!0)}),[i,r]);return p("div",{className:"Table"===o?.tableCellType?"ml-5xl":"first:pt-lg last:pb-lg pl-5xl",children:[c>0?u("div",{className:"h-5"}):null,zd({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},zd=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in Pd))return null;return u(Pd[l],{...t,...n})},$d=x((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r})=>u("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(Vd({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r})):null}))),_d=x((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=gl({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(jd(l)),yl({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),jd=e=>(t,l)=>{if(!t?.length)return null;const[n,...a]=t,i=[...Array(e).keys()].reduce(((e,t)=>140*(a?.[t]?.cols?.length??1)+e),0),r=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return p("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?u("div",{className:"text-xl font-light w-[214px] py-lg ",children:n.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:r,style:{transform:`translateX(-${i}px)`},children:a?.map(((t,l)=>p("div",{className:"flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider",children:[t?.data?u("div",{className:"text-xl font-light",children:t.data}):null,t?.cols?Dd(t.cols,e):null]},`row${l}`)))})})]},String(l))},Dd=(e,t)=>e?.length>0?u("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>u("div",{className:"w-20 text-h6 mr-lg first:ml-3xl",children:e},String(t))))}):null,Ad=x((({activeTabIndex:e,items:t})=>{const[l,a]=n({}),r=i((e=>a((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,n)=>{const a=`activeTabIdx:${e}-tableIdx:${n}`;return p("div",{className:"w-full",children:[p("div",{className:"flex p-4 bg-gray text-center justify-center cursor-pointer relative",onClick:()=>r(a),children:[u(me,{size:"text-xl",font:"font-light",children:t.title}),u(Rt,{image:{icon:l[a]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),u("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[a]?"h-0":""),children:u("div",{className:"relative",children:u(_d,{rows:t.rowsData})})})]},a)}))})})),Ld=x((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>p("div",{className:"flex justify-between w-full px-s",children:[e&&e.length>1?u("div",{className:"flex bg-secondary-light p-2xs rounded-md",children:e.map(((e,t)=>u("div",{className:"rounded-md text-xl font-light px-m py-s cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?u(se,{href:t,version:"secondary",target:"_blank",appendLeft:u(_e,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-3xs",width:"20",height:"20"}),text:"Скачать в PDF"}):null]})));async function Od(e){const t=await fetch(e);return await t.json()}const Ed=x((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:a}=function(e){const{data:t}=$(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),Od);return t||{}}(e),[r,s]=n(0),o=i((e=>s(e)),[]),c=a?.[r]?.items??[],d=a?.map((e=>e.currency??""));return p("div",a?{className:"bg-white z-10",children:[u(Ld,{currencies:d,activeTabIndex:r,setActiveTabIndex:o,linkToPDF:t}),u(Ad,{activeTabIndex:r,items:c}),u(Md,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(Md,{onClick:l,isOpen:!0})]})})),Fd=x((({children:e,tableInner:t,onHideContentClick:l})=>p("div",{className:"self-start flex flex-col",role:"row",children:[u("div",{className:"flex",children:e}),t?u("div",{className:"origin-top animate-expansion",children:u(Ed,{...t,onClick:l})}):null]}))),Ud=x((({row:{header:e,data:t},activeIndex:l,rowIdx:a,...r})=>{const[s,o]=n(void 0),c=i((e=>o(e)),[]),[d,m]=n(void 0),h=i((e=>m(e)),[]);return p(Fd,{onHideContentClick:()=>o(void 0),tableInner:s,...r,children:[u("div",{className:"text-s py-lg w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:p("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?u(Rt,{className:"mr-m max-w-6",image:e.icon,width:"24",height:"24"}):null,e?.title?u("div",{className:"text-m font-light",children:e?.title}):null]})}),t?.length?u(ci,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u($d,{cells:e,rowIdx:a,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...r},String(t))))}):null]})})),Hd=x((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:a,hiddenRowsNum:i=0,...r})=>{const s=a?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=gl({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u(Ud,{row:e,activeIndex:d,rowIdx:t,...r},String(t)))),[x,g]=i>0?[h.slice(0,-i),h.slice(-i)]:[h,[]];return p(k,{className:w("overflow-hidden relative space-y-xl",e),defaultPadding:w("p-6xl",c>1?"pr-0":""),...r,children:[u(tl,{title:t,description:l,headlineVersion:"M",isPadding:!1}),i>0?u(Ja,{renderFoldableSection:({isUnfolded:e})=>p(Xd,{controls:m,children:[x,u(Ya,{isUnfolded:e,children:g})]}),renderFoldButton:Ri}):u(Xd,{controls:m,children:h})]})})),Xd=x((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,yl({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),l?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Wd=x((({className:e="",title:t,description:l,iconVersion:n,image:a,__html:i,items:r=[],...s})=>p(k,{className:w("flex gap-3 sm:gap-4 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===n?u("div",{className:"mt-1",children:Kd()}):null,"big"===n?Gd(a):null,p("div",{className:"flex flex-col w-fit gap-1 sm:gap-2",children:[t?u(me,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,l?Jd(l):null,r?.length?Yd(r,!0):null,i?u(Ka,{__html:i}):null]})]}))),Kd=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),Gd=e=>e?.src?u(Rt,{className:"h-fit flex-shrink-0",image:e}):null,Jd=e=>u(de,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),Yd=(e,t)=>u("ul",{className:w("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(me,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),qd=x((({className:e,padding:t,headlineVersion:l="S",listItemSize:n="M",...a})=>u(k,{className:e,padding:"p-0",...a,children:u(uc,{className:"h-full",defaultPadding:"p-xl",padding:t,headlineVersion:l,listItemSize:n,...a})}))),Zd={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},Qd=x((({className:e="",gap:t="",align:l="stretch",isPadding:n=!1,isInnerPadding:a=!0,version:i="transparent",isTheme:r=!1,...s})=>{const o=a?"":"!p-0";return u(k,{className:w("relative","flex flex-col [&>*]:max-w-full",Zs[t],l&&Zd[l],e),defaultPadding:n?"p-6xl":"",version:i,isTheme:r,...s,children:_n({...s,renderProps:(e,t)=>Vn(e,t,{className:o})})})}));Qd.childrenTypes=[];const em=e=>ra(e)<10?"py-6 px-11":"py-12 px-32",tm=x((({className:e,title:t,url:l,previewImg:n,...a})=>{const i=J();return p(k,{className:e,defaultPadding:em(e),...a,children:[u(tl,{title:t,headlineVersion:"M"}),l?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:W(i)(n?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:W(i)(l)})}):null]})})),lm={ApplicationForm:Ft,BenefitsBlock:Xt,Bonus:ll,BonusBenefitsBlock:ml,BusinessBlock:pl,ButtonsBlock:xl,Calculator:wn,CardTransfer:Rn,Carousel:Qn,CarouselBankHistoryCard:la,CarouselCard:da,CarouselCatalogCard:ha,CarouselEventCard:xa,CarouselInvestmentCard:ya,CarouselLinks:ka,CarouselProductCard:Pa,CarouselProgramsCard:Da,CarouselRecommendationCard:Xa,CarouselRichTextCard:Ga,CarouselTariffsCard:Qa,ComparisonTable:yi,ContactsBlock:wi,DepositFiltration:Li,ErrorBlock:Ei,ExchangeRateTile:br,Footer:ds,GracePeriod:ms,Header:qs,Headline:tl,HorizontalLayout:Qs,ImgBlock:eo,InsuranceAmountBlock:io,InvestmentInfo:mo,LinkDocs:No,MobileAppTile:Co,MortgageFiltration:To,OfficeMap:Yo,OfficeServicesBlock:qo,ParagraphBlock:Qo,PictureText:fc,Placeholder:bc,ProductBlock:Sc,ProductGallery:kc,ProductTile:Ic,PromoTile:Tc,RepresentativeOfficeInfo:Rc,RichTextBlock:zc,RollupItem:_c,SafeDepositRental:id,StepsBlock:md,SwipeListControlBlock:gd,Tabs:Td,TariffsTable:Hd,TextBlock:Wd,Tile:qd,VerticalLayout:Qd,Video:tm,ExchangeRateOffice:Ji};const nm=["Header","Footer"],am=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function im(e=globalThis){const t=s(new Map);a((()=>N.subscribe("intersection",(({block:e,intersection:l})=>{t.current&&t.current.set(e,l)}))),[]),a((()=>{const l=((e,t=600)=>{let l;const n=(...a)=>{n.dispose(),l=setTimeout((()=>{e(...a)}),t)};return n.dispose=()=>{l&&clearTimeout(l)},n})((()=>{!function(e){const t=`#${l=e?.anchor,l?.replace("#","")||""}`;var l;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!nm.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?Ul(am)(t):[];return l}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",l),()=>{l.dispose(),e.removeEventListener("scroll",l)}}),[e])}const rm="cookie",sm=x((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:l,open:n,close:a}=Hr(rm);Pr((()=>{globalThis.localStorage?.getItem(rm)||n()}),[],3e3);const r=i((()=>{globalThis.localStorage?.setItem(rm,"true"),a()}),[a]);return l?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:p("div",{className:"bg-white m-5 p-5 sm:m-6 sm:p-6 rounded-md flex sm:items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"sm:flex-1",children:p(de,{size:"text-s",font:"font-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(pa,{isRemote:!0,className:w(om(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(pa,{isRemote:!0,className:w(om(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"ml-3 sm:ml-0 w-24 flex justify-end",children:u(Br,{className:"bg-main-gray rounded-md",onClick:r})})]})}):null})),om=e=>["inline mx-1",e?"text-green-dark":""],cm=h();const dm=x((({className:e,onClick:t,ariaLabel:l})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:mm()}))),mm=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("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"}),u("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"})]})},hm=x((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return a((()=>{(async()=>{const[t]=await cm.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:i((async()=>{l(await cm.like(e))}),[e]),dislike:i((async()=>{l(await cm.dislike(e))}),[e])}}(J().pathname);return p("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:[u(dm,{onClick:G(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(dm,{onClick:G(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),um=x((e=>{const{className:t="",blocksRegistry:l,blockDecorator:n,data:a={}}=e,{style:i,blocks:r,slots:s,likeControl:o,colorPalette:c="pc"}=a,d={key:"",page:a,blocksRegistry:l,blockDecorator:n,parent:a};im();const[m,{setTrue:h,setFalse:x}]=Ve();return Mr({onOpen:h,onClose:x}),p("section",{className:w("relative",i,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:$n(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[$n(r,d),s?.footer?$n(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(hm,{className:"rounded-tl-3xl sticky bottom-0 pointer-events-auto"})}):null,u(sm,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}})]})}));um.childrenTypes=[],um.slots=()=>["header","footer"];e.Blocks=lm,e.ContentPage=um,e.DaDataAPI=function(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}}}},e.LikeAPI=h,e.handlerDecorator=G,e.joinList=so,e.packageVersion="0.12.11",e.projectSettings=d,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=X,e.useRouter=J,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 n=e=>(...n)=>t[e](...n),l=n("useState"),a=n("useEffect"),i=n("useCallback"),r=n("useMemo"),s=n("useRef");const o=e=>e&&!e.endsWith("/")?`${e}/`:e,c={PROD_BRANCH:"master"},d=new class{_=c;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||c.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 CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return o(this._.CDN)}get BASE_PATH(){return o(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:l}=await e.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,n){const{children:l,...a}=t||{},i=n?.slots?.default,r=l||i&&i();return e(Object.assign(a,r&&{children:r}),n)}return t.inheritAttrs=!1,t};class f{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const b=new f;function v(e,{sensitivity:t,rootRef:n}={}){const l=s(null),i=r((()=>({threshold:y(t),root:n?.current})),[t,n?.current]);return a((()=>{if(!l.current)return;const t=new IntersectionObserver(e,i);return t.observe(l.current),()=>{t.disconnect()}}),[e,i]),l}function y(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const N=new f;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),S={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},k=x((({className:e,version:t="primary",isTheme:n=!0,defaultPadding:r="p-xl",padding:s,block:o,tag:c="section",role:d,children:m})=>{const h=c,p=function(e){return v(i((t=>{if(!e||!t?.length)return;const n=t[t.length-1];N.fire("intersection",{block:e,intersection:n})}),[e]),{sensitivity:1})}(o),[x,g]=l(!1);a((()=>b.subscribe("tab",(e=>{g(Boolean(e.label&&o?.labels?.length&&!o.labels.includes(e.label)))}))),[o]);const f=t&&n;return u(h,{className:w("@container font-sans",f?"group":"",S[t],x?"hidden":"",s||r,e),...f?{"data-ver":t}:{},...o?.anchor?{id:o.anchor,ref:p}:{},role:d,children:m})})),C={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},I=x((({className:e="",headingType:t="h3",as:n="h3",title:l,children:a})=>u(n,{className:w("font-sans m-0",C[t],e),children:l||a}))),T=e=>e,B=(e,t)=>{const[n,a]=l(e),[r,o]=l(!1),[c,d]=l({}),m=s({}),h=i(((e,t)=>{const{parse:l=T,format:i=T}=t||{};return m.current||(m.current={}),m.current[e]||=t=>{a((n=>({...n,[e]:l(t)}))),d((t=>({...t,[e]:!0})))},{value:i(n[e]),isDirty:r||c[e],onChange:m.current[e]}}),[n,r,c]),u=i((()=>{a(e),o(!1),d({})}),[e]),p=i((e=>{e.preventDefault(),o(!0),t&&t(n)}),[t,n]);return[n,{isDirty:r||Object.values(c).some(Boolean),field:h,reset:u,onSubmit:p}]},P=e=>t=>t&&Object.entries(e).flatMap((([e,n])=>n(t[e])))||[],R=e=>!e?.length,M=e=>t=>n=>e(n)?[]:[t],V=e=>null!=e,z=new Map;function _(e,t,{fallback:n,cache:i}={}){const s=r((()=>$(e)),[e]),[o]=(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)?s:[],[c,d]=l(void 0),[m,h]=l(void 0);a((()=>{!s.some(V)||(async()=>{try{const e=await(o?((e,t=z)=>n=>{const l=t.get(n);if(V(l))return l;const a=e(n);return V(a)?t.set(n,Promise.resolve(a)):t.delete(n),a})(t,i)(o):t(...s));d(e),h(void 0)}catch(e){d(void 0),h(e)}})()}),[t,i,s]);const u=n&&o&&n[o];return{data:!c&&u?u:c,error:m,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function $(e){return Array.isArray(e)?e:e instanceof Function?$(e()):[e]}async function j(e,t){try{return e?await D(e,t):null}catch(e){console.error(e)}return null}async function D(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}const A=[];function O(){const{data:e}=_("/api/v1/regions",D);return e||A}const L=(e="")=>({open:t=>b.fire("dialog",{type:"open",id:e,message:t}),close:()=>b.fire("dialog",{type:"close"})}),E=e=>Boolean(e?.includes(":")),F=(e,t)=>Boolean(e&&!E(e)&&(!t||"_self"===t)),U=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),H=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var X=Object.freeze({__proto__:null,isURL:E,isLocalURL:F,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:U,joinPath:H});const W=e=>(t,n=d.BASE_PATH)=>{if(!t||E(t)||K(t,d.CDN))return t;const l=t.startsWith("/");return H(K(t,n)?"":n,l?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},K=(e,t)=>t&&e&&e.startsWith(t),G=(e,t)=>G._impl(e,t);function J(){return J._impl()}function Y(e={}){const{isRemote:t,basePath:n}=e,l=J(),{close:a}=L();return e=>({...e,href:t&&!n?e.href:W(l)(e.href,n),"aria-label":e.text,onClick:G(i(e),e)});function i({href:e,target:n,onClick:i}){return r=>{i&&i(r),e&&!t&&F(e,n)&&(a(),r?.preventDefault(),l.push(e))}}}G._impl=e=>e,G.setup=e=>{G._impl=e},J._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),J.setup=e=>{J._impl=e};const q={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:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},Z="bg-main-divider text-main-disabled",Q={primary:Z,secondary:Z,white:Z,link:"",transparent:"",gray:Z,"":""},ee="text-center font-sans select-none",te={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},ne=x((e=>{const{text:t,aboveText:n,appendLeft:l,appendRight:a,version:i="primary"}=e;return p("div",{className:w(le(e),"flex gap-2"),children:[l?u("div",{className:te[i],children:l}):null,ae(e)?p("div",{children:[n?u("div",{className:"text-xs font-light text-left",children:n}):null,u("div",{className:"text-left "+(n?"text-s -mt-3xs":"text-l"),children:t})]}):null,a?u("div",{className:te[i],children:a}):null]})})),le=e=>{const{version:t,aboveText:n,rounded:l}=e;if("link"===t)return"";const a=""+(n?"py-2.5 px-9":"py-4 px-9");return["group/btn items-center justify-center",ae(e)?a:"h-12 w-12",l?"rounded-full":""].join(" ")},ae=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ie=({className:e,rounded:t,version:n})=>["inline-block",ee,n?Q[n]:"",t?"rounded-full":"rounded-md",e].join(" "),re=({className:e,rounded:t,version:n})=>[ee,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?q[n]:"",t?"rounded-full":"rounded-md",e].join(" "),se=x((({disabled:e,children:t,...n})=>{const l=Y()(n),a=t??u(ne,{...l});return u(e?ce:oe,{...l,children:a})})),oe=x((({className:e="",href:t,rel:n,target:l,ariaLabel:a,version:i,rounded:r,onClick:s,children:o})=>u("a",{className:re({className:e,version:i,rounded:r}),href:t,rel:n,target:l,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),ce=x((({className:e,ariaLabel:t,version:n,rounded:l,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ie({className:e,rounded:l,version:n}),children:a}))),de=x((({children:e,...t})=>u("p",{className:w("font-sans",Object.values(t)),children:e}))),me=x((({children:e,...t})=>u("span",{className:w("font-sans",Object.values(t)),children:e}))),he=x((({link:e})=>p(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:[u(me,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(se,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(me,{children:e.text})}):null]}))),ue=(e,t)=>{const{value:n,isDirty:l}=e,a=l?t(n):[];return{...e,errors:a,error:a[0]}},pe=x((({key:e,className:t="",inputClassName:n="",id:l,name:a,type:r="text",label:s,placeholder:o,value:c="",valid:d=!0,children:m,onChange:h,onFocus:x,onBlur:g,pattern:f})=>{const b=i((e=>{h&&h(e.target?.value||"")}),[h]),v=m?"pr-8":"",y=d?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:w("relative",t),children:[p("label",{children:[s?u("div",{className:"mb-xs",children:u(me,{size:"text-m",font:"font-light",children:s})}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-4",v,y,n),id:l,name:a||l,placeholder:o,type:r,value:c,onInput:b,onFocus:x,onBlur:g,pattern:f},e)]}),m]})})),xe=x((({className:e,label:t,value:n="",error:l,onChange:a,onBlur:i})=>p("div",{className:e,children:[u(pe,{type:"text","aria-label":t,label:t,valid:Boolean(!l),value:n,onChange:a,onBlur:i}),u("div",{className:"h-2",children:l?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:l}):null})]}))),ge=e=>"_"===e,fe=e=>/\d/.test(e),be=e=>ge(e)||fe(e),ve=[..."+7 (___) ___-__-__"],ye=ve.findIndex(ge),Ne=ve.map(((e,t)=>be(e)?ve.slice(0,t).filter(be).length:-1));const we=x((({children:e,onChange:t,...n})=>{const l=i((e=>t&&t(function(e){const t=e.replace(/\D/g,""),n=ve.map(((e,n)=>fe(e)?e:t.charAt(Ne[n])||e)),l=Ne.indexOf(t.length-1)+1;return(l?n.slice(0,Math.max(ye,l)):n).join("")}(e))),[t]);return u(pe,{onChange:l,onFocus:e=>l(e?.target?.value||""),...n,children:e})})),Se=x((({className:e,label:t,value:n,error:l,onChange:a,onBlur:i})=>p("div",{className:e,children:[u(we,{"aria-label":t,label:t,valid:Boolean(!l),value:n,onChange:a,onBlur:i}),u("div",{className:"h-2",children:l?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:l}):null})]}))),ke="Некорректно заполненное поле",Ce=M((e=>null!=e&&""!==e))(ke),Ie=M((e=>"string"==typeof e&&e.length>1))(ke),Te=M((e=>"string"==typeof e&&(10===e.length||12===e.length)))(ke),Be=(Pe=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,M((e=>"string"==typeof e&&Pe.test(e))))(ke);var Pe;const Re=e=>p("div",{className:"mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7",children:[p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...ue(e("fullName"),Ce)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)})]}),p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)}),u(Se,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)})]})]}),Me=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function Ve(e=!1){const[t,n]=l(e),a=i((()=>n(!0)),[]),r=i((()=>n(!1)),[]),s=i((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:a,setFalse:r,toggle:s}]}function ze(e){const t=s(null);return a((()=>{const n=n=>{t&&t.current&&n.target instanceof Node&&!t.current.contains(n.target)&&e()};return document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}}),[e]),t}const _e={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},$e=x((({className:e="",imageClassName:t="",name:n="",alt:l=`Иконка ${n}`,title:a=l,iconVersion:i="color",...r})=>{const s=J(),o=W(s)(H(d.CDN,"/icons",`${n}.svg`));return"normal"!==i?u(De,{className:e,children:p("svg",{className:w(je(r.width),_e[i],"white"===i?"invert":"",t),...r,"aria-hidden":"true",children:[a?u("title",{children:a}):null,l?u("desc",{children:l}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(r.style={height:`${r.height}px`}),u("img",{className:e,src:o,alt:l,title:a,"aria-hidden":"true",...r}))})),je=e=>e?"":"w-full h-full",De=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),Ae=x((({className:e="",label:t,options:n=[],value:l,valid:a=!0,isBorder:r=!0,placeholder:s="",onChange:o})=>{const[c,{setFalse:d,toggle:m}]=Ve(),h=ze(d),x=i((e=>{d(),o&&o(e)}),[o]);return p("div",{className:e,ref:h,children:[t?u("div",{className:"mb-xs",children:u(me,{size:"text-m",color:"text-primary-text",font:"font-light",children:t})}):null,p("div",{className:w("relative",c?"z-20":"z-10"),children:[p("div",{className:w("text-l flex justify-between items-center text-primary-text cursor-pointer",Ee(r,a)),onClick:m,children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:Le(l)||s}),u($e,{className:w("absolute right-3",c?"":"rotate-180"),name:"ArrowUpIcon",width:"16",height:"16"})]}),n?.length?u("div",{className:w("h-0",c?"":"overflow-hidden"),children:u("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:n.map(Oe(x,c,(e=>e.key===l?.key)))})}):null]})]})})),Oe=(e,t,n)=>(l,a)=>p("div",{onClick:()=>{e(l)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:Le(l)}),u($e,{name:"DoneSimpleIcon",width:"16",height:"16",className:w("absolute right-4 pt-0.5",n(l)&&t?"":"hidden")})]},String(a)),Le=e=>e?.text||e?.key||"",Ee=(e,t)=>w(e?"border rounded-md hover:border-primary-hover":"",t?" border-gray":"border-error"),Fe=x((e=>p("div",{children:[u(Ae,{...e,valid:!e.error}),u("div",{className:"h-2",children:e.error?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:e.error}):null})]}))),Ue=({regions:e,field:t})=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Me.map((({name:e=""})=>({key:e,text:e}))),...ue(t("acquiringType"),Ce)})}),u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Адрес",placeholder:"Выберите адрес",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(t("region"),Ce)})})]}),He=x((({value:e=!1,text:t,type:n="checkbox",onChange:l})=>p("div",{role:n,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-s",onClick:()=>l&&l(!e),children:[u("div",{className:w("relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:w("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-1/2":"left-[5%]")})}),u(me,{size:"text-l",font:"font-light",color:"text-primary-text",children:t})]}))),Xe=e=>p("div",{className:"sm:mb-5",children:[u(He,{text:"Хочу купить онлайн-кассу",...e("onlineCheckout")}),u(He,{text:"Хочу купить POS-терминал",...e("posTerminal")})]}),We=(e,t)=>{const n=re({className:"text-white",version:e?.version});return u("button",{type:"submit",className:w("p-4 mt-3 w-full sm:mt-0 sm:w-auto",n,t),children:e?.text?e.text:"Отправить заявку"})},Ke={acquiringType:{key:"Торговый эквайринг"},fullName:"",inn:"",name:"",phone:"",onlineCheckout:!1,posTerminal:!1},Ge=P({acquiringType:Ce,region:Ce,fullName:Ce,inn:Te,name:Ie,phone:Be}),Je=x((e=>{const{button:t,link:n,onSubmit:l}=e,a=i((e=>{const{acquiringType:t,region:n,fullName:a,inn:i,name:r,phone:s,onlineCheckout:o,posTerminal:c}=e;R(Ge(e))&&l({typeForm:"acqr",region:n?.text||"",partnerComments:`Вид эквайринга=${t?.key||""}/Онлайн касса=${o}/POS-терминал=${c}`,fullName:a,inn:i,name:r,phone:s})}),[l]),[,{field:r,...s}]=B(Ke,a),o=O();return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Вид эквайринга и регион",className:"sm:text-center mb-4"}),Ue({regions:o,field:r}),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),Re(r),Xe(r),We(t,"mb-4"),u(he,{link:n})]})})),Ye=e=>p("div",{className:"sm:flex sm:justify-between sm:gap-5",children:[p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)}),u(xe,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)})]}),p("div",{className:"sm:w-1/2",children:[u(Se,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...ue(e("mail"),Ce)})]})]}),qe=({regions:e,field:t})=>u("div",{className:"w-full mb-3 sm:mb-5",children:u(Fe,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(t("region"),Ce)})}),Ze={name:"",phone:"",inn:"",mail:""},Qe=P({region:Ce,name:Ie,phone:Be,inn:Te,mail:Ce}),et=x((e=>{const{button:t,link:n,onSubmit:l}=e,a=i((e=>{const{region:t,name:n,phone:a,inn:i,mail:r}=e;R(Qe(e))&&l({typeForm:"bcrd",region:t?.text||"",name:n,phone:a,inn:i,mail:r})}),[l]),[,{field:r,...s}]=B(Ze,a),o=O();return p("form",{className:"container",onSubmit:s.onSubmit,children:[qe({regions:o,field:r}),Ye(r),We(t,"mb-4"),u(he,{link:n})]})})),tt=[];const nt=async e=>await j(e,{method:"GET"})||tt,lt=["От 1 000 ₽","До 1 000 000 000 ₽"],at=["От 1 мес","До 15 лет"],it=e=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...e("fullName")}),u(xe,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)}),u(Se,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)})]}),p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Годовая выручка, ₽",...ue(e("annualRevenue"),Ce)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...e("mail")})]})]}),rt=(e,{normalize:t,format:n})=>{const{value:a,onFocus:r,onBlur:s,onChange:o}=e,[c,d]=l(!1),m=i((e=>{d(!0),r&&r(e)}),[]),h=i((()=>{d(!1),o&&o(t(a)),s&&s()}),[o,a]);return{value:c||!n?a:n(a),onFocus:m,onBlur:h}},st=(e,t,n)=>Math.max(t,Math.min(e,n)),ot=(e=0)=>(t=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:e}).format(Number(t)||0);function ct(e){const t=(e||"").replace(/\D/g,""),n=parseInt(t,10);return Number.isNaN(n)?0:n}function dt({list:e=[],min:t,max:n,step:l,value:a=e[0]||t,disabled:i,onChange:r}){const s=e.length?e.indexOf(a):a,o={backgroundSize:`${(100*(s-t)/(n-t)).toFixed(2)}% 100%`};return p("div",{children:[e.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:e.map(((e,t)=>u("div",{className:"w-2 h-2 rounded-full "+(s<=t||i?"bg-gray":"bg-primary-main")},String(t))))}):null,u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",style:o,type:"range",min:t,max:n,step:l,value:s,disabled:i,onInput:t=>{const n=ct(t.target?.value),l=e.length?e[n]:n;r&&r(l||0)}})})]})}const mt=1,ht=100,ut=x((e=>{const{className:t,title:n,items:l=[],list:a=[],min:r=(a.length?0:mt),max:s=(a.length?a.length-1:ht),step:o=1,value:c=a[0]||r,disabled:d=!1,onChange:m}=e,h=rt(e,{normalize:(e=0)=>a.length?pt(a)(e):st(e,r,s),format:ot()}),x=i((e=>{m&&m(ct(e.target?.value))}),[m]);return p("div",{className:t,children:[p("label",{className:"block relative",children:[n?u(me,{size:"text-m",font:"font-light",color:"text-primary-text",children:n}):null,u("input",{className:w("m-0 mt-xs font-sans text-h3 w-full h-14","border border-solid border-gray rounded-md outline-none","p-0 pl-4 box-border","text-primary-text hover:border-primary-hover focus:border-primary-text","disabled:border-gray disabled:bg-main-divider"),disabled:d,onInput:x,...h}),dt({list:a,min:r,max:s,step:o,disabled:d,value:c,onChange:m})]}),xt(l)]})})),pt=e=>t=>e.reduce(((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)),xt=e=>u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u(me,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),gt=e=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[p("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:[u("label",{children:u(me,{size:"text-m",font:"font-light",children:"Сумма кредита, ₽"})}),u(ut,{items:lt,min:1e3,max:1e9,...e("amount")})]}),p("div",{className:"sm:w-1/2",children:[u("label",{children:u(me,{size:"text-m",font:"font-light",children:"Срок кредита, месяцев"})}),u(ut,{items:at,min:1,max:180,...e("term")})]})]}),ft=({regions:e,branches:t,field:n})=>p("div",{className:"mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(n("region"),Ce)})}),u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Адрес",placeholder:"Выберите адрес",options:t.map((({branchCode:e="",address:t=""})=>({key:e,text:t}))),...ue(n("department"),Ce)})})]}),bt={amount:1e3,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",annualRevenue:""},vt=P({annualRevenue:Ce,inn:Te,name:Ie,phone:Be,region:Ce,department:Ce}),yt=x((({button:e,link:t,onSubmit:n})=>{const l=i((e=>{const{amount:t,term:l,fullName:a,inn:i,name:r,phone:s,mail:o,region:c,department:d,annualRevenue:m}=e;R(vt(e))&&n({typeForm:"cred",fullName:a,inn:i,name:r,phone:s,mail:o,region:c?.text||"",department:d?.text||"",partnerComments:`Сумма=${t}/Срок=${l}/Выручка=${m}`})}),[n]),[a,{field:r,...s}]=B(bt,l),o=O(),c=function(e){const{data:t}=_(e?`/api/v1/branches?regionCode=${e}`:null,nt);return t||tt}(a.region?.key).filter((e=>e?.address));return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Параметры кредита",className:"sm:text-center mb-4"}),gt(r),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),it(r),u(I,{headingType:"h6",title:"Офис банка",className:"sm:text-center mb-4"}),ft({regions:o,branches:c,field:r}),We(e,"mb-4"),u(he,{link:t})]})})),Nt={name:"",phone:""},wt=P({name:Ie,phone:Be}),St=x((e=>{const{button:t,link:n,onSubmit:l}=e,a=i((e=>{const{name:t,phone:n}=e;R(wt(e))&&l({typeForm:"dpst",name:t,phone:n})}),[l]),[,{field:r,...s}]=B(Nt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"sm:text-center mb-4"}),p("div",{className:"max-w-[560px] m-auto",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Имя",...ue(r("name"),Ie)}),u(Se,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(r("phone"),Be)})]}),p("div",{className:"flex justify-between flex-col-reverse sm:items-center sm:flex-row max-w-[560px] m-auto",children:[u("div",{className:"flex-1 mt-4 sm:mt-0",children:u(he,{link:n})}),We(t)]})]})})),kt=(e,t)=>e?.media&&t?.media?e.media-t.media:0,Ct=x((({className:e="",image:t,imageClassName:n="",pathPrefix:l})=>{const a=J();return p("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(kt).map((({src:e,format:n,media:i},r)=>u("source",{srcSet:Tt(a,l)(e),type:Bt(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,t?.src?It({...t,src:Tt(a,l)(t.src)},n):null]})})),It=(e,t="")=>u("img",{src:e.src,className:w("object-contain",t),alt:e.alt||e.title,title:e.title||"",style:{width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"auto"},...e.size}),Tt=(e,t)=>n=>n&&!E(n)?W(e)(H(t,n)):n,Bt=e=>e?`image/${String(e)}`:void 0,Pt=x((({className:e="",image:t,imageClassName:n="",pathPrefix:l,...a})=>t?.src||t?.icon?t.icon?u($e,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...a}):u(Ct,{className:e,imageClassName:n,image:t,pathPrefix:l}):null)),Rt=x((({className:e,viewBox:t,fill:n="none",width:l,height:a,paths:i,...r})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:l,height:a,children:i.map((({d:e,fill:t,...n},l)=>u("path",{d:e,fill:t||"currentColor",...r,...n},l)))}))),Mt=[{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"}],Vt=x((({className:e,value:t,text:n,disabled:l,isRadio:a,onChange:r})=>{const s=i((e=>{l||(e.preventDefault(),r&&r(!t))}),[r,l,t]),o=a?u("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):u(Rt,{paths:Mt,className:"absolute left-1 ml-px block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"});return u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",onClick:s,children:[u("div",{className:w("appearance-none w-5 h-5 border-solid cursor-pointer m-0",a?"rounded-full border-2":zt(t),t?"border-primary-main":"border-gray",l?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:"checkbox","aria-checked":Boolean(t),"aria-disabled":Boolean(l)}),t?o:null,n?u("div",{className:"ml-3",children:u(me,{size:"text-l",font:"font-light",children:n})}):null]})})})),zt=e=>w("rounded border",e?"bg-primary-main":""),_t=e=>{const t=e("text");return p("div",{className:"mb-3 sm:mb-6",children:[p("div",{className:"mb-4 sm:flex sm:items-center sm:gap-6",children:[u(Vt,{className:"mb-3 sm:mb-0",text:"Валютный контроль",...e("currencyControl")}),u(Vt,{className:"mb-3 sm:mb-0",text:"Документарные операции",...e("documentaryOperations")}),u(Vt,{className:"mb-3 sm:mb-0",text:"Конверсионные операции",...e("conversionOperations")})]}),u("textarea",{placeholder:"Укажите интересующий вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text",value:t.value,onInput:e=>t.onChange&&t.onChange(e.target?.value||"")})]})},$t=e=>p("div",{children:[p("div",{className:"sm:flex sm:justify-between sm:gap-lg",children:[u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"Наименование организации",...ue(e("fullName"),Ce)})}),u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"ФИО",...ue(e("name"),Ie)})})]}),p("div",{className:"sm:flex sm:justify-between sm:gap-lg sm:mb-2xl",children:[u("div",{className:"sm:w-1/2",children:u(Se,{className:"shrink-0 w-full mb-s",label:"Телефон",...ue(e("phone"),Be)})}),u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"Электронная почта",...ue(e("mail"),Ce)})})]})]}),jt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},Dt=P({fullName:Ce,name:Ie,phone:Be,mail:Ce}),At=x((e=>{const{button:t,link:n,onSubmit:l}=e,a=i((e=>{const{fullName:t,name:n,phone:a,mail:i,currencyControl:r,documentaryOperations:s,conversionOperations:o,text:c}=e;R(Dt(e))&&l({typeForm:"kved",fullName:t,name:n,phone:a,mail:i,partnerComments:`Валютный контроль=${r}/Документарные операции=${s}/Конверсионные операции=${o}/Доп инф=${c}`})}),[l]),[,{field:r,...s}]=B(jt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-m"}),$t(r),u(I,{headingType:"h6",title:"Интересующий вопрос",className:"sm:text-center mb-m"}),_t(r),p("div",{className:"flex flex-col border-b border-main-divider mb-5 pb-5 sm:items-center sm:flex-row sm:mb-9 sm:pb-9",children:[We(t,"mb-m sm:mr-lg sm:mb-0"),u(he,{link:n})]}),u(I,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"sm:text-center mb-m"}),p("div",{className:"flex",children:[p("a",{className:"flex items-center text-primary-text no-underline mr-6",href:"tel:8 (800) 200-78-70","aria-label":"8 (800) 200-78-70",children:[u(Pt,{image:{icon:"PhoneIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"8 (800) 200-78-70"})]}),p("a",{className:"flex items-center text-primary-text no-underline","aria-label":"ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[u(Pt,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),Ot=x((({responseType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-lg p-lg rounded-md space-x-m ${t?"bg-ok":"bg-fail"}`,children:[u(Pt,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34"}),p("div",{children:[u(I,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),Lt={credit:e=>u(yt,{...e}),acquiring:e=>u(Je,{...e}),"business-card":e=>u(et,{...e}),deposit:e=>u(St,{...e}),wed:e=>u(At,{...e})},Et={send:async function(e){try{const t=await fetch("/api/v1/sendcorporatelead",{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(e)});return await t.json()}catch(e){return null}}},Ft=x((e=>{const{className:t,title:n,typeForm:a="credit",button:r,link:s,...o}=e,[c,d]=l(""),m=i((async e=>{const t=await Et.send(e)?"OK":"Fail";return d(t),t}),[]);return u(k,{className:t,defaultPadding:"p-6xl",...o,children:p("div",{className:"container max-w-[978px]",children:[n?u(I,{headingType:"h3",title:n,className:"mb-4 sm:mb-8 sm:text-center"}):null,Lt[a]({button:r,link:s,onSubmit:m}),c?u(Ot,{responseType:c}):null]})})})),Ut={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},Ht=x((({className:e,defaultIconSize:t=44,iconBgVersion:n="primary",size:l,icon:a,...i})=>{const r=String(l?.width||t);return a?u("div",{style:{width:`${r}px`,height:`${r}px`},className:w("rounded-icon object-fit flex justify-center items-center ",Ut[n],e),children:u($e,{...i,width:"54%",height:"54%",name:a})}):null})),Xt=x((({className:e="",title:t,benefitList:n,...l})=>p(k,{className:e,defaultPadding:"p-6xl",...l,children:[t?u(I,{headingType:"h3",as:"h2",className:"text-center",title:t}):null,n?.length?u("div",{className:"flex flex-wrap w-full sm:justify-center mt-xl gap-5xl",role:"list",children:n.map(Wt)}):null]}))),Wt=(e,t)=>p("div",{className:"flex gap-m items-center md:basis-1/2 md:max-w-[400px]",role:"listitem",children:[e?.icon?.icon?u(Ht,{className:"shrink-0",defaultIconSize:44,iconBgVersion:e?.iconBgVersion||"",...e?.icon}):null,e?.icon?.src?u(Pt,{className:"shrink-0",image:e.icon}):null,e?.label?p("div",{className:"sm:h-full",children:[u(I,{headingType:"h6",children:e.label}),Kt(e.description)]}):null]},String(t)),Kt=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?Jt(e):Gt(e)}):null},Gt=e=>e?.name||null,Jt=e=>{const t=e?.bullets?"list-disc pl-3xl":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},Yt=(e,{className:t,buttonClassName:n,isVertical:l}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",l?"flex-col gap-xs justify-items-stretch":"flex-wrap gap-m",t),children:e.map(qt(n))}):null,qt=(e="")=>(t,n)=>{const{text:l,icon:a,iconRight:i,version:r,...s}=t||{},o="secondary"===r?"color":"white",c=a?.iconVersion?a?.iconVersion:o;return l||a?.icon?u(se,{className:w("basis-full sm:basis-auto",e),appendLeft:Zt({...a,iconVersion:c}),appendRight:Zt({...i,iconVersion:c}),version:r,text:l,...s},n?String(n):""):null},Zt=e=>e?.icon||e?.src?u(Pt,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,Qt={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionWeight:"font-normal",descriptionStyle:"mt-xl"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},M:{title:{headingType:"h3",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},S:{title:{headingType:"h4",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-xs"},XS:{title:{headingType:"h5",as:"h2"},descriptionSize:"text-l",descriptionWeight:"font-light",descriptionStyle:"mt-xs"}},en={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"},tn=x((({className:e,version:t="",headlineVersion:n="XL",title:l,description:a,align:i="text-center",as:r,isPadding:s=!0,isTheme:o=!1,...c})=>{const d=Qt[n],m={marginTop:d.descriptionStyle};return p(k,{className:e,defaultPadding:s?"p-6xl":"",version:t,isTheme:o,...c,children:[l?u(I,{className:w("whitespace-pre-wrap",i),...d?.title,as:r||d?.title.as,title:l}):null,a?u(de,{size:d.descriptionSize,font:d.descriptionWeight,align:i,...m,children:a}):null]})})),nn=x((e=>{const{className:t="",title:n,description:l,bonusItems:a,...i}=e;return u(k,{className:t,defaultPadding:"p-6xl",...i,children:p("div",{className:"container",children:[u(tn,{title:n,description:l,headlineVersion:"M",isPadding:!1}),u("div",{className:"flex flex-wrap w-full mt-9",children:a?.length?a.map(((e,t)=>p("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:[e?.title?u(me,{size:"text-h4",children:e.title}):null,e?.description?u("div",{className:"mt-xs",children:u(de,{size:"text-xl",font:"font-light",children:e.description})}):null,p("div",{className:"flex justify-between items-end mt-3",children:[Yt(e?.buttons),e.bonusItemContent?.bonusType?ln(e.bonusItemContent):null]})]},String(t)))):null})]})})})),ln=e=>u("div",{children:"count"===e.bonusType?an(e):rn(e)}),an=e=>p("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?u("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?u("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),rn=e=>e.image?u(Pt,{className:"w-12 h-12 min-w-12 p-3 rounded-icon",image:e.image}):null,sn={left:"text-left",center:"text-center",right:"text-right"},on="text-center",cn=({icon:e,title:t,description:n},l)=>p("div",{className:w("flex flex-col","items-center",n||t?"":"justify-center"),children:[t?u(me,{size:"text-h6",font:"font-normal",align:on,children:t}):null,e?u(Pt,{image:e,height:"180",className:"w-auto"}):null,n?u(me,{size:"text-h6",font:"font-normal",align:on,children:n}):null]},String(l)),dn=(e,t,n)=>u("div",{className:`grid gap-1 ${sn[n]} ${mn(t)}`,children:e.map(cn)}),mn=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},hn=x((({bonusBenefits:e,cardTextAlign:t="center",className:n="",columnsCount:l="4",subtitle:a,title:i,...r})=>p(k,{className:n,defaultPadding:"p-6xl",...r,children:[u(tn,{className:"mb-4 sm:mb-3xl",isPadding:!1,title:i,description:a,headlineVersion:"M"}),e?.length?dn(e,l,t):null]}))),un=x((e=>{const{title:t,image:n,cardItems:l,button:a}=e;return p("div",{className:"border-gray border p-4xl w-1/2 space-y-lg",children:[n?p("div",{className:"flex justify-center",children:[n?.src?u(Pt,{image:n}):null,n?.icon?u(Pt,{image:n}):null]}):null,t?u(I,{headingType:"h4",title:t}):null,l?.length?u("ul",{className:"space-y-s",children:l.map(((e,t)=>pn(e,String(t))))}):null,Yt([a])]})})),pn=(e,t)=>{const{icon:n,text:l}=e;return p("li",{className:"flex items-center gap-s last:mb-0",children:[n?.icon?u(Pt,{image:n,className:"w-12 h-12 min-w-12 p-s rounded-icon bg-main-divider"}):null,n?.src?u(Pt,{image:n}):null,u(me,{size:"text-xl",font:"font-light",children:l})]},t)},xn=x((({className:e,title:t,cards:n,...l})=>p(k,{className:e,defaultPadding:"p-6xl space-y-3xl",...l,children:[u(I,{headingType:"h3",title:t,className:"text-center"}),u("div",{className:"flex gap-5",children:n?.length?n.map(((e,t)=>u(un,{...e},String(t)))):null})]}))),gn=x((({buttons:e,className:t,...n})=>u(k,{className:w("!bg-transparent",t),defaultPadding:"p-0",...n,children:Yt(e)}))),fn=(e,t=0)=>{const{itemCount:n,visibleItemCount:a}=e,[r,s]=l(t),o=i((()=>s((e=>Math.min(e+1,n-1)))),[n]),c=i((()=>s((e=>Math.max(e-1,0)))),[n]),d=a?n>a&&r<n-a:r<n-1,m=r>0;return[r,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]},bn=x((({className:e,disabled:t,...n})=>u(se,{rounded:!0,className:`group/btn 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,...n,children:u(Pt,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16"})}))),vn=x((e=>u(bn,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),yn=x((e=>u(bn,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Nn({dec:e,inc:t,canDec:n,canInc:l,btnClass:a,className:i=""}){return n||l?p("div",{children:[n?u(bn,{className:`absolute z-40 ${a[0]} ${i}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!n}):null,l?u(bn,{className:`absolute z-40 rotate-180 ${a[1]} ${i}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!l}):null]}):null}const wn=x((({title:e,value:t,postfix:n="",prefix:l,className:a=""})=>p("div",{className:w("mb-7",a),children:[e?u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(me,{size:"text-h3",children:[l," ",ot(2)(Math.round(t))," ",n]})}:{children:u(me,{size:"text-h3",children:"-"})})]}))),Sn=Math.round(23.5),kn={minSum:1e4,maxSum:5e6,minMonths:13,maxMonths:60,rate:12.5,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},Cn={minSum:1e4,maxSum:3e6,minSumOld:0,maxSumOld:25e5,minSumExtra:0,maxSumExtra:5e5,minMonths:13,maxMonths:60,rate:7.5,isExtraMoney:!1,isSalaryClient:!1,isInsurance:!0},In={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Tn={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},Bn={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},Pn=x((({rate:e,title:t="Ставка",unit:n,depositeName:l,isShowDepositeName:a,rateBlockClassName:i,fractionDigits:r=2})=>p("div",{children:[u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start gradient-color-text",children:[u("span",{className:w("font-mohave text-title-huge pr-6 -mt-4",i),children:String(e.toFixed(r)).replace(".",",")}),n?u("span",{className:"text-7xl",children:n}):null]}),l&&a?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:l}):null]})]}))),Rn=e=>e?u(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e}):null;function Mn({isShowItems:e=!0,step:t=1e3,...n}){const l=[`От ${ot(2)(n.min||0)} ₽`,`До ${ot(2)(n.max||0)} ₽`];return u(ut,{items:e?l:[],step:t,...n})}function Vn(e){const{data:t}=_(`/wcms-resources/${e}.json`,D);return t}const zn=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:l}=e,a=Vn(t||"bonus-calculator-data")||In,[i,r]=((e,t,n)=>{const{minSumTravel:l,minSumOther:a,maxBonus:i,prefMonthsNum:r,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===l&&n===a)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*n),i);return[m,m*r+Math.min(Math.round(c*t)+Math.round(d*n),i)*(12-r)]})(a,n,l);return{...a,...e,monthBonus:i,yearBonus:r}},_n=x((({className:e="",sourceBookDir:t="",buttons:n,footnote:l})=>{const[a,{field:i}]=B({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:r,maxSumTravel:s,minSumOther:o,maxSumOther:c,monthBonus:d,yearBonus:m}=zn(a,t);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-2/5",children:[Mn({title:"Сумма покупок в категории путешествия, ₽",min:r,max:s,step:500,isShowItems:!1,...i("travelExpenseValue")}),Mn({title:"Сумма покупок в остальных категориях, ₽",className:"mt-7",min:o,max:c,step:500,isShowItems:!1,...i("restExpenseValue")})]}),u("div",{children:d>=0?u(Pn,{title:"Баллов за месяц",rate:d,rateBlockClassName:"tracking-[-14px]",fractionDigits:0}):null}),p("div",{className:"w-96",children:[m>=0?u(wn,{title:"Баллов за год",value:m}):null,Yt(n,{className:"mt-7",isVertical:!0}),Rn(l)]})]})})),$n=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,jn={horizontal:"gap-10",vertical:"flex-col gap-3"},Dn=x((({items:e,checkedItem:t,onChange:n,orientation:l="horizontal"})=>u("div",{className:`flex ${jn[l]}`,children:e?.map((({id:e,text:l})=>u(Vt,{isRadio:!0,text:l,value:t===e,onChange:()=>n&&n(e)},String(e))))}))),An=({items:e,title:t,orientation:n="horizontal",value:l,onChange:a})=>p("div",{children:[t?u("div",{className:"mb-3",children:u(me,{color:"text-secondary-text",font:"font-light",children:t})}):null,u(Dn,{orientation:n,items:e,checkedItem:e[l?0:1].id,onChange:t=>a&&a(t===e[0].id)})]}),On=e=>An({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),Ln=x((({title:e="Ставка"})=>p("div",{children:[u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-2xs pt-2xs pl-lg pb-xs",children:u($e,{name:"PercentIcon",width:"90",height:"85"})}),u("div",{className:"w-64 mt-m",children:p(de,{size:"text-xl",font:"font-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),En=e=>e,Fn=(e=En)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),Un=Fn(),Hn=(e=En)=>Fn((t=>-e(t))),Xn=Hn(),Wn=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let n=1;for(;n<t.length;){const[e,l]=t[n-1],[a,i]=t[n];l>=a?t.splice(n-1,2,[e,Math.max(l,i)]):n++}return t},Kn=([e,t],n,l=[])=>n&&n[e]&&n[t]?{[e]:n[e],[t]:n[t]}:Gn([e,t],l),Gn=([e,t],n=[])=>({[e]:n.length?Xn(n.filter((t=>"number"==typeof t[e])).map((t=>t[e]))):0,[t]:n.length?Un(n.filter((t=>"number"==typeof t[e])).map((e=>e[t]))):0}),Jn=(e,[t,n],l)=>e>=l[t]&&e<=l[n],Yn=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,qn=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,daysValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a/30)-l):Math.round(l*e*a/365/100)},Zn=x((({className:e="",sourceBookDir:t,buttons:n,footnote:l,bottomFootnote:a,isShowDepositeName:i})=>{const[r,{field:s}]=B({moneyValue:1e5,daysValue:90,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,isMonthlyInterestPayment:!1}),o=((e,t)=>{const{daysValue:n,moneyValue:l,isPartialWithdrawal:a,isReplenished:i,isSmallBusiness:r,isMonthlyInterestPayment:s}=e,o=Vn(t||"business-calculator-data"),c=i||a,d=n<90||n>730;if(n<=30)return{...Bn,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rateRows?.find((e=>s===e.isMonthlyInterestPayment&&r===e.isSmallBusiness&&Yn(c,e)&&Jn(l,["minSum","maxSum"],e)&&Jn(n,["minDays","maxDays"],e)))||Bn,{rate:h}=m,u=qn(h,e),p=l+u,x=o?.rateRows||[Bn];return{...m,...Gn(["minSum","maxSum"],x),...Gn(["minDays","maxDays"],x),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})(r,t),{income:c,finalSum:d,rate:m,depositeName:h,isShowUnknownRate:x}=o;return p("section",{className:e,children:[p("div",{className:"flex justify-between",children:[p("div",{className:"w-2/5",children:[Mn({title:"Сумма вклада, ₽",min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),(g={title:"Срок вклада, дни",min:o.minDays,max:o.maxDays,...s("daysValue"),value:o.daysValue},u(ut,{className:"mt-7",items:[`От ${$n(g.min||0)}`,`До ${$n(g.max||0)}`],step:1,...g})),p("div",{className:"mt-7 flex justify-between",children:[Qn(o,s),On({title:"Выплата процентов",orientation:"vertical",...s("isMonthlyInterestPayment")})]})]}),x?u(Ln,{}):u(Pn,{rate:m,depositeName:h,isShowDepositeName:i,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-96",children:[u(wn,{title:"Доход по вкладу",value:c,postfix:"₽",prefix:"+"}),u(wn,{title:"Сумма в конце срока",value:d,postfix:"₽"}),Yt(n,{className:"mt-7",isVertical:!0}),u("div",{className:"mt-7",children:Rn(l)})]})]}),u("div",{className:"mt-5",children:Rn(a)})]});var g})),Qn=(e,t)=>p("div",{children:[u(Vt,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),u(Vt,{className:"mt-3",disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal}),u(Vt,{className:"mt-3",text:"Являюсь малым предприятием",...t("isSmallBusiness"),value:e.isSmallBusiness})]}),el=({min:e=0,max:t=0,availableMonths:n,...l})=>u(ut,{className:"mt-7",items:[`От ${tl(e)}`,`До ${tl(t)}`],step:1,...n?.length?{list:n}:{min:e,max:t},...l}),tl=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,nl=e=>An({...e,items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]}),ll=e=>al({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&al({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&al({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&al({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),al=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:l,viewSettingFieldKey:a})=>!!n&&!n[a]||t[l]===e[l],il=(e,t)=>{const{isAnnuity:n,moneyValue:l,monthsValue:a,moneyExtra:i}=t;if(0===e)return 0;if(n){const t=e/1200;return i?(l+i)*(t+t/(Math.pow(1+t,a)-1)):l*(t+t/(Math.pow(1+t,a)-1))}return Math.round(l/a)+l*(e/1200)},rl=(e,t,n)=>{let{moneyValue:l,monthsValue:a}=e;const i=Vn(t||"credit-calculator-data"),s=i?.rateRows||[kn],o=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>ll({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:i?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:c,maxSum:d}=Kn(["minSum","maxSum"],o,s),{minMonths:m,maxMonths:h}=Kn(["minMonths","maxMonths"],o,s);l=st(l,c,d),a=st(a,m,h);const u=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:l,monthsValue:a})=>e?.find((e=>ll({row:e,userInputParams:t,paramsViewSettings:n})&&Jn(l,["minSum","maxSum"],e)&&Jn(a,["minMonths","maxMonths"],e)))||kn)({rateRows:s,userInputParams:e,paramsViewSettings:n,moneyValue:l,monthsValue:a}),{rate:p}=u,x=il(p,e);return r((()=>({...u,...e,minSum:c,maxSum:d,minMonths:m,maxMonths:h,moneyValue:l,monthsValue:a,monthlyPayment:x})),[e,i])},sl=x((({className:e,sourceBookDir:t,buttons:n,footnote:l,paramsViewSettings:a})=>{const[i,{field:r}]=B({isAnnuity:!1,isInsurance:!0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,moneyValue:2e5,monthsValue:Sn}),s=rl(i,t,a);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-2/5",children:[Mn({title:"Сумма кредита, ₽",step:500,min:s.minSum,max:s.maxSum,...r("moneyValue"),value:s.moneyValue}),el({title:"Срок кредита, месяцев",min:s.minMonths,max:s.maxMonths,...r("monthsValue"),value:s.monthsValue}),u("div",{className:"mt-2xl",children:ol({...s,...a},r)})]}),u(Pn,{title:"Ставка",rate:s.rate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-96",children:[u(wn,{title:"Ежемесячный платеж",value:s.monthlyPayment,postfix:"₽"}),nl({orientation:"vertical",...r("isAnnuity")}),Yt(n,{className:"mt-2xl",isVertical:!0}),Rn(l)]})]})})),ol=(e,t)=>p("div",{children:[e.isShowSalaryClient?u(Vt,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowStateEmployee?u(Vt,{className:"mt-3",text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?u(Vt,{className:"mt-3",text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?u(Vt,{className:"mt-3",text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),cl=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,i=Vn(t||"deposit-calculator-data"),r=i?.rateRows?.[0]?hl(i.rateRows[0].minMonths,i.rateRows[0].maxMonths):1,s=!n?.isShowMonthlyInterestPayment,o=!n?.isShowRemoteRegistration,c=i?.rateRows?.find((t=>ml({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:s})&&ml({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:o})&&Jn(l,["minSum","maxSum"],t)&&Jn(a||r,["minMonths","maxMonths"],t)))||Tn,{rate:d}=c,m=dl(d,e),h=l+m,u=i?.rateRows||[Tn];return{...c,...Gn(["minSum","maxSum"],u),...Gn(["minMonths","maxMonths"],u),availableMonths:Wn(u.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,n=1)=>Array.from({length:Math.abs(t-e)/n+1},((l,a)=>t>=e?e+a*n:e-a*n)))(e,t))),...e,defaultMonth:r,income:m,finalSum:h}},dl=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,monthsValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a)-l):Math.round(l*e*30*a/365/100)},ml=({row:e,userInputParams:t,paramKey:n,isExclude:l})=>l||t[n]===e[n],hl=(e,t)=>e+Math.round((t-e)/2),ul=x((({className:e,sourceBookDir:t,buttons:n,footnote:l,paramsViewSettings:i})=>{const[r,{field:s}]=B({moneyValue:2e4,monthsValue:0,isMonthlyInterestPayment:!1,isRemoteRegistration:!1}),o=cl(r,t,i),{defaultMonth:c,income:d,finalSum:m,rate:h}=o,{onChange:x}=s("monthsValue");return a((()=>{x&&x(c)}),[c]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-2/5",children:[Mn({title:"Сумма вклада, ₽",min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),el({title:"Срок вклада, месяцев",min:o.minMonths,max:o.maxMonths,availableMonths:o.availableMonths,...s("monthsValue"),value:o.monthsValue}),u("div",{className:"mt-2xl",children:pl({...o,...i},s)})]}),u(Pn,{rate:h,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-96",children:[u(wn,{title:"Доход по вкладу",value:d,postfix:"₽",prefix:"+"}),u(wn,{title:"Сумма в конце срока",value:m,postfix:"₽"}),Yt(n,{className:"mt-2xl",isVertical:!0}),Rn(l)]})]})})),pl=(e,t)=>{return p("div",{className:"flex flex-col gap-y-2xl",children:[e.isShowMonthlyInterestPayment?On({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment}):null,e.isShowRemoteRegistration?(n={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration},An({...n,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]});var n},xl=e=>gl({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&gl({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"})&&gl({...e,fieldKey:"isExtraMoney",viewSettingFieldKey:"isShowExtraMoney"}),gl=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:l,viewSettingFieldKey:a})=>!!n&&!n[a]||t[l]===e[l],fl=(e,t,n)=>{let{moneyValue:l,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s}=e;const o=Vn(t||"refinancing-calculator-data"),c=o?.rateRows||[Cn],d=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>xl({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:o?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:m,maxSum:h}=Kn(["minSum","maxSum"],d,c),{minSumOld:u,maxSumOld:p}=Kn(["minSumOld","maxSumOld"],d,c),{minSumExtra:x,maxSumExtra:g}=Kn(["minSumExtra","maxSumExtra"],d,c),{minMonths:f,maxMonths:b}=Kn(["minMonths","maxMonths"],d,c);l=st(l,m,h),i=st(i,u,p),s=st(s,x,g),a=st(a,f,b);const v=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:l,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r})=>e?.find((e=>xl({row:e,userInputParams:t,paramsViewSettings:n})&&Jn(l,["minSum","maxSum"],e)&&Jn(i,["minSumOld","maxSumOld"],e)&&Jn(r,["minSumExtra","maxSumExtra"],e)&&Jn(a,["minMonths","maxMonths"],e)))||Cn)({rateRows:c,userInputParams:e,paramsViewSettings:n,moneyValue:l,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s}),{rate:y}=v,N=il(y,e),w=e.oldMonthlyPayment-N;return r((()=>({...v,...e,minSum:m,maxSum:h,minMonths:f,maxMonths:b,moneyValue:l,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s,monthlyPayment:N,benefit:w})),[e,o])},bl=x((({className:e,sourceBookDir:t,buttons:n,footnote:l,paramsViewSettings:a})=>{const[i,{field:r}]=B({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isExtraMoney:!1,moneyValue:7e5,oldMonthlyPayment:0,monthsValue:48,moneyExtra:0}),s=fl(i,t,a);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-2/5",children:[Mn({title:"Остаток долга в других банках, ₽ ",step:500,min:s.minSum,max:s.maxSum,...r("moneyValue"),value:s.moneyValue}),Mn({title:"Ежемесячный платеж в других банках, ₽",isShowItems:!1,step:500,min:s.minSumOld,max:s.maxSumOld,...r("oldMonthlyPayment"),value:s.oldMonthlyPayment}),el({title:"Новый срок кредита, месяцев",min:s.minMonths,max:s.maxMonths,...r("monthsValue"),value:s.monthsValue}),u("div",{className:w("mt-7",s.isExtraMoney?"mb-3":""),children:vl({...s,...a},r)}),s.isExtraMoney?Mn({title:"Дополнительная сумма, ₽ ",step:500,min:s.minSumExtra,max:s.maxSumExtra,...r("moneyExtra"),value:s.moneyExtra}):null]}),u(Pn,{title:"Ставка",rate:s.rate,fractionDigits:1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-96",children:[u(wn,{title:"Ежемесячный платеж",value:s.monthlyPayment,postfix:"₽"}),s.benefit>0?u(wn,{title:"Выгода в месяц",value:s.benefit,postfix:"₽"}):null,nl({orientation:"vertical",...r("isAnnuity")}),Yt(n,{className:"mt-7",isVertical:!0}),Rn(l)]})]})})),vl=(e,t)=>p("div",{children:[e.isShowSalaryClient?u(Vt,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowInsurance?u(Vt,{className:"mt-3",text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null,e.isShowExtraMoney?u(Vt,{className:"mt-3",text:"Получить дополнительную сумму",...t("isExtraMoney"),value:e.isExtraMoney}):null]}),yl={CreditCalculatorForm:sl,DepositCalculatorForm:ul,BusinessDepositCalculatorForm:Zn,BonusCalculatorForm:_n,RefinancingCalculatorForm:bl},Nl=(e,t)=>{const n=e?.calcType;if(!n||!(n in yl))return null;const l=yl[n];return u("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:p("div",{className:"box-border p-9 w-full",children:[e?.title?u(I,{className:"text-center mb-6",title:e.title}):null,u(l,{...e})]})},String(t))},wl=x((({className:e="",calculatorTabs:t=[],...n})=>{const a=t.map((e=>e.nav||{})),r=t.map((({calculatorBlock:e})=>e||{})),[s,o]=l(0),c=i((e=>o(e)),[]),[d,m]=fn({itemCount:t?.length,visibleItemCount:3});return p(k,{className:w("box-border overflow-hidden relative",e),defaultPadding:"p-0",...n,children:[p("div",{className:"bg-white",children:[a.length>1?Sl({activeIndex:d,tabsNav:a,slideIndexShift:s,onClick:c}):null,Nn({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:r?.length?r.map(Nl):null})]})}));function Sl({activeIndex:e,tabsNav:t,slideIndexShift:n,onClick:l}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-32 pt-4xl box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-xs",children:t.map(((e,t)=>function({tab:e,i:t,isActive:n,onClick:l}){const a=n?"h-20 w-96 p-xl border-none bg-primary-main text-white":"h-20 w-96 px-lg ease-in duration-300 bg-white text-primary-text",i=n?"text-xl mb-xs":"text-l mb-2xs",r=n?"text-l font-light text-white":"text-m font-light text-secondary-text",s=n?"":"text-primary-main",o=e?.icon?.iconVersion,c=n?"white":"normal";return p("button",{type:"button",onClick:l,"aria-label":e?.title,className:w("box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-20 space-x-m",a),children:[u(Pt,{className:w("h-6 w-6 min-w-6 min-h-6",s),image:{...e?.icon,iconVersion:o??c},width:"24",height:"24"}),p("div",{className:"border-0",children:[u("div",{className:i,children:e?.title}),u("div",{className:r,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===n),onClick:()=>l(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const kl=x((e=>{const{onChange:t,min:n,max:l,defaultValue:a="0",fractionDigits:r=0,...s}=e,o=rt(e,{normalize:(e=a)=>n&&l?String(st(Number(Cl(e)),n,l)):Cl(e),format:ot(r)}),c=i((e=>t&&t(Cl(e))),[t]);return u(pe,{onChange:c,...s,...o})})),Cl=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),Il=x((e=>u(kl,{...e,fractionDigits:2,children:u("div",{className:"absolute right-4 bottom-4",children:u(me,{size:"text-xl",font:"font-light",children:"₽"})})}))),Tl="amount",Bl={[Tl]:1500},Pl=x((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",placeholder:l="1500",button:a,...i})=>{const[{amount:r},{field:s}]=B(Bl),o=r<=0,c=o?ie({version:a?.version}):re({className:"text-white",version:a?.version}),d=Y();return p(k,{className:w("flex flex-col items-center",e),defaultPadding:"p-6xl",...i,children:[t?u(I,{className:"pb-5 xl:pb-9 self-start xl:self-center",headingType:"h2",title:t}):null,p("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(Il,{name:Tl,valid:!o,placeholder:l,label:n,...s(Tl,{parse:Number,format:String})}),a?.text?u("button",{type:"submit",className:w("w-full p-4 mt-5 xl:mt-6",c),disabled:o,...d(a),children:a.text}):null]})]})})),Rl=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Ml=[];function Vl(e,t,{className:n,...l}={}){const{key:a,blockDecorator:i=Rl,blocksRegistry:r={},ancestors:s=Ml}=t,{type:o}=e;o&&o in r||console.warn(`No block with "${o}" is registered`);const c=o&&r[o];return i({blockClassName:w(e.style?.length?e.style:"col-span-12",n),block:e,ancestors:s,render:({block:n,blockClassName:i})=>{const{content:r}=n;return c?u(c,{className:i,block:e,options:t,...r,...l},a):null}},a)}const zl=[],_l=(e,{key:t,ancestors:n=zl,slotName:l=null,extraProps:a,renderProps:i=Vl,...r})=>{const s=a?(e,t)=>Vl(e,t,a):i;return(e||[]).map(((e,a)=>s(e,{...r,key:`${t||e.type}-${a}`,ancestors:r.parent?[...n||zl,[r.parent,l]]:n},a)))};function $l({block:e,options:t,children:n,extraProps:l,renderProps:a}){return n||(e&&t?_l(e.blocks,{...t,parent:e,extraProps:l,renderProps:a}):null)}const jl=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),Dl=x((({className:e="",style:t,idx:n,activeIndex:l,observerOptions:a,children:r,onIntersection:s})=>{const o=v(i((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),a);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(n===l),ref:o,children:r})})),Al=["min-w-full","min-w-1/2","min-w-1/3","min-w-1/4"],Ol=x((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:l=0,gap:a=0,padding:r=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const x={sensitivity:1,rootRef:t},g=s([]),f=i(((e,t)=>{const n=[...g.current||[]];n[e]=t,g.current=n,h&&h(n),p&&p(El(n))}),[h,p]),b=l>0?a*Number(l)-1:0,v="vertical-list"===o,y="horizontal-list"===o,N={...y?Ll(r,b):{},...v?jl(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:N,ref:t,children:(S=(e,t)=>u(Dl,{className:w(c,l?Al[l-1]:"",v?"h-full":""),style:y?Ll(r/4):{},activeIndex:n,idx:t,observerOptions:x,onIntersection:f,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(S):S(e,0))(m)});var S})),Ll=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),El=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Fl={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Ul={"horizontal-list":"w-6","vertical-list":"h-6"},Hl=x((({containerRef:e,activeIndex:t,dotCount:n=0,listType:l="horizontal-list",version:a})=>n?u("div",{className:w("flex gap-2",Fl[l],a?"group":""),...a?{"data-ver":a}:{},children:new Array(n).fill(null).map(((n,a)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${a===t?Ul[l]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(a)},String(a))))}):null)),Xl=e=>t=>e.scrollWidth/t,Wl=e=>(t,n)=>{e.scrollBy({left:n*Xl(e)(t),behavior:"smooth"})},Kl=({itemCount:e,onVisibleIndicesChange:t})=>{const n=s(null),[a,r]=l([]),o=i((e=>{r((t=>{return(n=t)===(l=e)||Boolean(n&&l&&n?.length===l?.length&&n.every(((e,t)=>e===l[t])))?t:e;var n,l})),t&&t(e)}),[e]),[c,d]=a.length?[Hn()(a),Fn()(a)]:[-1,-1],m=c>0,h=d<e-1,u=i((()=>{var t;n.current&&(m?Wl(n.current)(e,-1):(t=n.current).scrollTo({left:t.scrollWidth,behavior:"smooth"}))}),[e,m]),p=i((()=>{n.current&&(h?Wl(n.current)(e,1):n.current.scrollTo({left:0,behavior:"smooth"}))}),[e,h]);return[n,{scrollLeft:u,scrollRight:p,canScrollLeft:m,canScrollRight:h,visibleIndicesRange:[c,d],handleVisibleIndicesChange:o}]},Gl="absolute top-[calc(50%-24px)] z-40",Jl="absolute top-0 bottom-0 z-40 hidden @lg:block w-20 pointer-events-none",Yl=x((({scroll:e,activeIndex:t,itemCount:n,arrowsPadded:l,hasEdgeBlocks:a,onScrollLeft:r,onScrollRight:s})=>{const{canScrollLeft:o,canScrollRight:c,scrollLeft:d,scrollRight:m}=e,h=a?t>0:o,x=a?t<n-1:c,g=i((()=>{a?(o&&t!==n-1&&d(),r()):d()}),[d,r,a,o,t,n]),f=i((()=>{a?(c&&0!==t&&m(),s()):m()}),[m,s,a,o,t,n]);return p("div",{children:[ql(e),h?u(vn,{className:w(Gl,l?"left-1 @lg:left-8":"left-0"),onClick:g}):null,x?u(yn,{className:w(Gl,l?"right-1 @lg:right-8":"right-0"),onClick:f}):null]})})),ql=e=>p("div",{children:[e.canScrollLeft?u("div",{className:w(Jl,"left-0 bg-opacity-from-white")}):null,e.canScrollRight?u("div",{className:w(Jl,"right-0 bg-opacity-to-white")}):null]}),Zl=x((({className:e,itemCount:t,visibleItemCount:n=0,noCardBorder:l,isAlignCenter:a,showDots:i,arrowsPadded:r=!0,isGap:s=!0,...o})=>{const{blocks:c=[]}=o.block||{},d=t||c?.length,[m,{inc:h,dec:x}]=fn({itemCount:d,visibleItemCount:n},Math.floor(n/2)),[g,f]=Kl({itemCount:d}),[b]=f.visibleIndicesRange,v=c&&"CarouselBankHistoryCard"===c[0]?.type;return u(k,{className:e,defaultPadding:"p-6xl",...o,children:p("div",{className:w(a?"flex justify-center":"","relative max-w-full"),children:[u(Ol,{containerRef:g,visibleItemCount:n,snapAlign:"snap-start",gap:s?16:void 0,onVisibleIndicesChange:f.handleVisibleIndicesChange,children:$l({...o,renderProps:(e,t,n)=>Vl(e,t,{className:w("h-full min-w-80 sm:min-w-96",l?"":"border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider"),blockIndex:n,isActive:m===n})})}),u(Yl,{scroll:f,arrowsPadded:r,onScrollLeft:x,onScrollRight:h,hasEdgeBlocks:v,activeIndex:m,itemCount:d}),i?u(Hl,{containerRef:g,activeIndex:b,dotCount:d,listType:"horizontal-list"}):null]})})}));Zl.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const Ql=x((({className:e,title:t,description:n,blockIndex:l=0,isActive:a,...i})=>u(k,{className:w("relative flex h-[485px]",a?"w-[440px] z-10":"w-[340px]",e),defaultPadding:"p-0",...i,children:u("div",{className:w("basis-full self-center",ea(l)),children:a?u(tn,{headlineVersion:"M",title:t,description:n,padding:"p-3xl",align:"text-left",className:"h-96 text-white shadow-dark-blue"}):u("div",{className:"h-[300px] flex justify-center items-center font-mohave text-title-large tracking-[-0.03em]",children:u("span",{className:ta(l),children:t})})})}))),ea=e=>["bg-primary-main","bg-green-light","bg-yellow-light"][e%3],ta=e=>["gradient-color-text-on-green","gradient-color-text-on-yellow","gradient-color-text-on-yellow"][e%3],na="z-10 border border-solid w-full h-full",la=w(na,"absolute hidden sm:block border-transparent"),aa=x((({className:e,title:t,description:n,button:l,...a})=>u(k,{className:w("sm:pl-12 sm:pb-9",e),defaultPadding:"p-0",...a,children:p("div",{className:"relative",children:[u("div",{className:w(la,"top-9 right-12 bg-green-dark")}),u("div",{className:w(la,"top-6 right-8 bg-green")}),u("div",{className:w(la,"top-3 right-4 bg-green-light")}),p("div",{className:w(na,"relative p-10 bg-white border-green-light"),children:[u(tn,{title:t,description:n,headlineVersion:"L",align:"text-left",isPadding:!1}),Yt([l],{className:"mt-6xl sm:justify-center",isVertical:!0})]})]})}))),ia={black:"bg-black",white:"bg-white"},ra=x((({className:e="",title:t,description:n,image:l,price:a,button:i,colors:r,...s})=>p(k,{className:w("flex flex-col justify-left gap-m",e),defaultPadding:"p-6xl sm:p-7",...s,children:[l?.src?u(Pt,{className:"flex justify-center",image:l}):null,u(tn,{title:t,description:n,headlineVersion:"XS",isPadding:!1,align:"text-left"}),r?.length?p("div",{className:"flex text-secondary-text",children:[u("div",{className:"mr-xs",children:u(me,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),r.map(sa)]}):null,a?p(me,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,Yt([i],{buttonClassName:"w-full"})]}))),sa=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-1 sm:ml-3 border border-solid border-main-divider rounded-full ${ia[e]}`},String(t)),oa=x((({className:e="",href:t,target:n,isRemote:l=!1,children:a})=>{const i=Y({isRemote:l})({href:t,target:n});return u(t?"a":"div",{className:w("block",e),...t?i:{},children:a})})),ca=x((({className:e="",icon:t,title:n,description:l,href:a,target:i,...r})=>u(k,{className:e,defaultPadding:"p-0",...r,children:p(oa,{className:"flex flex-col",href:a,target:i,children:[t?.icon?u(Pt,{image:t}):null,t?.src?u(Pt,{image:t}):null,n?u(I,{headingType:"h6",as:"h4",className:"text-left mt-s ml-s mb-xs",title:n}):null,l?u("div",{className:"ml-s mb-m",children:u(me,{font:"font-light",size:"text-m",color:"text-secondary-text",children:l})}):null]})}))),da={start:"self-start",center:"self-center",end:"self-end"},ma=x((({className:e,defaultPadding:t,padding:n,title:l="",insetTitle:a="",buttons:i,leftImage:r,rightImage:s,imageAlign:o,backImage:c,children:d})=>p("div",{className:w("relative flex flex-col gap-3xl font-sans overflow-hidden",n||t,e),children:[l?u("div",{className:"relative",children:l}):null,p("div",{className:"grow relative flex flex-wrap @xl:flex-nowrap justify-between items-stretch gap-3xl",children:[ha(r,{imageAlign:o}),p("div",{className:w("flex flex-col gap-3xl max-w-[600px] xl:max-w-[728px]",r?"":"grow"),children:[a,u("div",{className:"grow",children:d}),c?u("div",{className:"mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4",children:c}):null,i]}),ha(s,{className:"-order-1 @xl:order-1",imageAlign:o})]})]}))),ha=(e,{className:t,imageAlign:n})=>e?u("div",{className:w("flex-shrink-0",n&&da[n],t),children:e}):null,ua={1:"flex-col",2:"gap-x-10 flex-wrap"},pa=x((({className:e,padding:t,additionalDescription:n,cardsList:l=[],columnsMode:a=1,description:i,image:r,title:s,...o})=>u(k,{className:w("text-left",e),padding:"p-0",...o,children:p(ma,{className:"h-full",defaultPadding:"p-xl",padding:t,title:s?u(I,{headingType:"h4",as:"h3",className:"mb-m z-10",title:s}):null,backImage:r?.src?u(Pt,{image:r}):null,children:[p("div",{className:"flex justify-between mb-4",children:[i?u("div",{className:"w-1/3",children:u(me,{size:"text-h6",children:i})}):null,n?u(me,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:n}):null]}),l.length?u("ul",{className:w("list-none m-0 p-0 flex gap-y-2",ua[a]),children:xa(l,a)}):null]})}))),xa=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,n)=>{return p("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?u("div",{className:"pr-2.5",children:u(me,{size:(l=t,1===l?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(n));var l})),ga="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",fa=x((({text:e,href:t="",target:n="",className:l=""})=>{const a=Y()({href:t,target:n});return e?p("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${l}`,children:[p("a",{className:"absolute border border-primary-main ml-s px-xl py-lg\n text-l font-light bg-white text-primary-text flex w-80\n justify-between items-center group-hover/link:text-primary-main z-10",role:"link",...a,children:[u("div",{className:"p-3xs",children:e}),u("div",{className:"w-6 h-6",children:u(Pt,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover/link:text-primary-main",width:"24",height:"24"})})]}),u("div",{className:`${ga} mx-1.5 mt-1.5`}),u("div",{className:`${ga} mt-3 mr-3`})]}):null})),ba=x((({className:e,additionalDescription:t,description:n,links:l,title:a,...i})=>p(k,{className:w("flex w-full overflow-hidden",e),...i,children:[p("div",{className:"mr-xl flex-auto",children:[u(tn,{isPadding:!1,title:a,description:n,as:"h1",align:"text-left"}),t?u(tn,{className:"pt-m",description:t,align:"text-left",isPadding:!1}):null]}),l?.length?va(l):null]}))),va=e=>{const t=Math.ceil(e.length/10);return u(Zl,{className:"min-w-[832px] w-[832px]",version:"",itemCount:t,arrowsPadded:!1,showDots:!0,children:new Array(t).fill(null).map(((t,n)=>u("div",{className:"w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start",children:e.slice(10*n,10*(n+1)).map(((e,t)=>u(fa,{className:"m-1",...e},String(t))))},String(n))))})},ya={L:"w-1.5 h-1.5 mr-m",M:"w-1.5 h-1.5 mr-s",S:"w-1 h-1 mr-xs"},Na=x((({className:e,isDotted:t=!0,children:n,size:l="M"})=>p("div",{className:w("font-sans flex",e),role:"listitem",children:[t?u("div",{className:"shrink-0",children:u("div",{className:w("align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white",ya[l])})}):null,u("span",{children:n})]}))),wa={S:"text-l font-light",M:"text-h6",L:"text-h5"},Sa={S:"ml-xs",M:"ml-s",L:"ml-m"},ka=x((({className:e,hasIndent:t,isDotted:n,items:l,listItemSize:a="M"})=>l?.length?u("section",{className:w("flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text",wa[a],t?Sa[a]:"",e),role:"list",children:l.map(((e,t)=>u(Na,{isDotted:n,size:a,children:e},String(t))))}):null)),Ca=x((({additionalDescription:e,align:t="text-center",button:n={},className:l="",description:a,headlineSmallVersion:i="H6",href:r,icon:s,isDotted:o=!0,isButtonFullWidth:c=!0,isImageFullWidth:d=!1,isTopPosition:m=!1,items:h=[],target:u,title:x,version:g="primary",...f})=>p(k,{className:w("flex flex-col justify-between",t,l),defaultPadding:"p-0",version:g,...f,children:[p(oa,{className:"p-m flex flex-col gap-xs",href:r,target:u,children:[Ta(i,x),Ba(a),Ra(h,o,g),Pa(e),Ia(s,d,m)]}),Yt([n],{className:w("p-m pt-0",c?"":"self-center"),isVertical:c})]}))),Ia=(e,t,n)=>p("div",{className:w("flex gap-lg",n?"order-first":"order-last",t?"":"justify-center"),children:[e?.src?u(Pt,{className:"shrink-0",image:e}):null,e?.icon?u(Pt,{className:w("shrink-0",t?"":"w-8 h-8 min-w-8"),image:e}):null]}),Ta=(e,t)=>t?u(me,{size:en[e],children:t}):null,Ba=e=>e?u(de,{size:"text-l",children:e}):null,Pa=e=>e?u(me,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e}):null,Ra=(e,t,n="primary")=>e?.length?u(ka,{className:w("text-s","primary"===n?"!text-secondary-text":""),items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,listItemSize:"S"}):null,Ma=x((({className:e,title:t,icon:n,list:l=[],href:a,target:i,...r})=>u(k,{className:e,defaultPadding:"p-3xl sm:p-0",...r,children:p(oa,{className:"sm:flex sm:items-center",href:a,target:i,children:[u("div",{className:"flex justify-center px-xl",children:n?.src||n?.icon?u(Pt,{image:n}):null}),p("div",{className:"sm:px-s p-5xl",children:[t?u(I,{className:"mb-xs sm:mb-m",headingType:"h6",title:t}):null,l.length?u("div",{className:"flex flex-col gap-xs sm:gap-s",children:l?.map(Va)}):null]})]})}))),Va=(e,t)=>p("div",{className:"flex flex-row-reverse justify-between gap-y-2xs sm:flex-col",children:[e.title?u(me,{size:"text-l",font:"font-normal",children:e.title}):null,e.description?u(de,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e.description}):null]},String(t)),za={default:"w-14 h-14",small:"w-12 h-12"},_a=(e,t)=>e?"":w("group/media flex items-center justify-center box-border",za[t]),$a=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],ja=x((({buttonSize:e="default",rounded:t=!1,icon:n,...l})=>{const{href:a,version:i,text:r=""}=l,{iconMapped:s,label:o}=(e=>$a.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{})(a),c=Da(n)??s;return u(se,{className:w(t?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",_a(r,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:r,version:i,...l,children:c&&!r?u(Pt,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),Da=e=>e?.src||e?.icon?e:void 0,Aa=x((({className:e="",media:t,children:n,buttonSize:l})=>p("div",{className:"font-sans",children:[u("div",{className:`flex gap-1 ${e}`,children:t?.map(((e,t)=>u(ja,{buttonSize:l,...e},String(t))))}),u(me,{size:"text-s",font:"font-light",color:"text-secondary-text",children:n})]}))),Oa=x((({className:e,padding:t,description:n,href:l,icon:a,items:i=[],socialMedia:r=[],target:s,title:o,align:c="text-left",...d})=>u(k,{className:w("relative min-h-[218px] group-data-gray:bg-main-divider/50",e),defaultPadding:"p-0",...d,children:u(oa,{href:l,target:s,children:u(ma,{className:"h-full",defaultPadding:"p-m",padding:t,title:o?u(tn,{title:o,description:n,headlineVersion:"S",isPadding:!1,align:c}):null,backImage:a?.icon||a?.src?u(Pt,{image:a}):null,buttons:r.length?u(Aa,{media:r}):null,children:i.length?u(ka,{items:i,listItemSize:"S"}):null})})}))),La=x((e=>{const{__html:t="",richVersion:n=""}=e;return u("div",{className:w(n,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),Ea=x((({className:e="",__html:t,richVersion:n="striped",...l})=>u(k,{className:e,...l,children:u(La,{__html:t,richVersion:n})}))),Fa=x((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:a,renderFoldButton:r})=>{const[s,o]=l(n),c=i((()=>{o((e=>!e))}),[]),d=a({isUnfolded:s,onToggle:c}),m=r?r({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),Ua=x((({className:e="",isUnfolded:t,children:n})=>{const l=s(null);return a((()=>{l.current&&(l.current.style.maxHeight=t?`${l.current.scrollHeight}px`:"")}),[t,n?.length]),u("div",{ref:l,className:`transition-max-h duration-300 overflow-hidden ${l.current||!t?"max-h-0":""} ${e}`,children:n})})),Ha=(e=!1)=>e?"p-8 mt-8 pt-20":"p-8 mt-20",Xa=(e,t)=>{const{title:n,description:l,buttons:a}=e;return p("div",{className:"py-5 border-b border-main-divider",children:[n?u("div",{className:"opacity-80",children:u(me,{size:"text-m",color:"text-secondary-text",children:n})}):null,l?u("div",{className:"mt-1",children:u(me,{size:"text-xl",color:"text-primary-text",children:l})}):null,a?.length?u("div",{className:"text-primary-main",children:Yt(a)}):null]},String(t))},Wa=x((({className:e="",title:t,align:n="text-center",icon:l,isHighlighting:a=!1,button:i,cardCells:r=[],...s})=>{const o=r.map(Xa),c=o.slice(0,1),d=o.slice(1);return p(k,{className:w("relative flex flex-col",e),defaultPadding:Ha(a),...s,children:[a?Ja():null,Ka(l),t?u(I,{className:w("pt-xs",n),headingType:"h5",title:t}):null,i?u(se,{className:"w-full mt-m",...i}):null,r.length?u(Fa,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[c,u(Ua,{isUnfolded:e,children:d})]}),renderFoldButton:r.length>1?Ga:null}):null]})})),Ka=e=>u("div",{className:"basis-full self-center",children:e?.src||e?.icon?u(Pt,{image:e}):null}),Ga=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u($e,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),Ja=()=>p("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u($e,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(de,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Ya="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",qa="border-gray border-solid border",Za="border-main-divider border border-t-0 border-x-0",Qa="w-[200px] mr-6",ei=x((({icon:e,image:t,title:n,link:l})=>p("div",{className:`w-80 box-border flex flex-col gap-m items-center rounded-t-md border-b-0 p-2xl ${qa} ${Ya}`,role:"columnheader",children:[e&&!t?.src&&u(Pt,{className:"h-16 w-16 min-w-16 min-h-16",image:e,width:"64",height:"64"}),t?.src&&u(Pt,{image:t}),n?u(I,{headingType:"h4",as:"h3",className:"text-center text-white",title:n}):null,l?.text&&u("div",{className:"mt-auto w-full",children:u(se,{href:l.href,target:l.target,className:"w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:u("div",{className:"text-xs font-light font-medium py-s",children:l.text})})})]}))),ti={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ni=x((({children:e,activeIndex:t,columnWidth:n,version:l="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:ti[l],style:{transform:`translateX(-${t*n}px)`},children:e})}))),li=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),ai=x((({colHeaders:e,activeIndex:t})=>p(li,{children:[u("div",{className:Qa,role:"columnheader"}),u(ni,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(ei,{...e},String(t))))})]}))),ii=x((({cell:e,isFirstRow:t,isLastRow:n,isFillGradient:l})=>u("div",{className:`w-80 box-border flex flex-col ${qa} ${n?"border-t-0 rounded-b-md":"border-y-0"} ${l?Ya:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${Za} ${l&&t?"border-t":""} ${n?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>oi(e,t,l)))})}))),ri=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),si=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),oi=({label:e,description:t},n,l)=>p("div",{className:"first:pt-2xl pt-xl last:pb-2xl",children:[e?u("h4",{className:ri(l),children:e}):null,t?u("div",{className:si(l),children:t}):null]},String(n)),ci=(e=!1)=>`text-s py-7 ${Za} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,di=x((({row:{header:e,data:t},activeIndex:n,isColoredFirstColumn:l,isFirstRow:a,isLastRow:i})=>p(li,{children:[e?.title?u("div",{className:ci(i),children:e.title}):null,t?.length?u(ni,{activeIndex:n,columnWidth:336,children:t.map(((e,t)=>u(ii,{cell:e,isFirstRow:a,isLastRow:i,isFillGradient:l&&0===t},String(t))))}):null]}))),mi=x((({rowData:e,isColoredFirstColumn:t,activeIndex:n,controls:l})=>{const{isScrollAvailable:a}=l;return p("div",{className:"relative",children:[e.map(((e,l,{length:a})=>u(di,{row:e,isFirstRow:0===l,isLastRow:l+1===a,activeIndex:n,isColoredFirstColumn:t},String(l)))),a?Nn({...l,btnClass:["top-28","top-12"],className:"right-7",isDisabled:!0}):null]})})),hi=x((({columns:e=[],rowHeaders:t,isShowAllRow:n,visibleRowLength:l,isColoredFirstColumn:a})=>{const i=e?.map((({header:e})=>e||{})),r=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:r.map((e=>e?.[t]||[{}]))}))).slice(0,n?t.length:l),[o,c]=fn({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[i?.length?u(ai,{colHeaders:i,activeIndex:o}):null,s?.length?u(mi,{rowData:s,isColoredFirstColumn:a,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white"}):null]})})),ui=x((({className:e="",title:t,rowHeaders:n,columns:a,visibleRowLength:r=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=l(!r),m=i((()=>d((e=>!e))),[]);return p(k,{className:w("overflow-hidden relative",e),defaultPadding:"p-6xl",...o,children:[u(I,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),u(hi,{columns:a,rowHeaders:n,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:r}),r?pi({isShowAllRow:c,onClick:m}):null]})})),pi=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-6xl",children:p("div",{className:"flex w-full",children:[u("div",{className:Qa}),u("button",{onClick:t,className:"mt-m py-xs flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:u(me,{size:"text-xs",font:"font-medium",children:e?"Скрыть":"Показать все параметры"})})]})}),xi=x((({className:e,contacts:t,info:n,version:l="secondary",...a})=>p(k,{className:w("flex",e),defaultPadding:"p-6xl",version:l,...a,children:[n?.length?gi(n):null,t?.length?gi(t):null]}))),gi=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>fi({column:e,index:t})))}),fi=({column:e,index:t})=>e?u("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:n,button:l},a)=>p("div",{className:"mt-xl first:mt-0",children:[u(tn,{title:e,description:t,headlineVersion:"XS",align:"text-left",isPadding:!1}),n?u("div",{className:"mt-xs opacity-80",children:u(de,{size:"text-m",font:"font-light",children:n})}):null,l?.href?u(se,{className:"mt-xl",...l}):null]},String(a))))},`col-${String(t)}`):null,bi=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,vi=(e,t)=>Object.entries(e).map((([t,n])=>"number"==typeof n?((e,t)=>n=>bi(t[e])||bi(n[e])||yi(t[e])<=yi(n[e]))(t,e):"object"==typeof n&&"min"in n&&"max"in n?((e,t)=>n=>bi(t[e])||bi(n[e])||yi(t[e]?.min)>=yi(n[e]?.min)&&yi(t[e]?.min)<=yi(n[e]?.max))(t,e):Array.isArray(n)?((e,t)=>n=>bi(t[e])||bi(n[e])||t[e]?.some((t=>n[e]?.includes(t))))(t,e):((e,t)=>n=>bi(t[e])||bi(n[e])||t[e]===n[e])(t,e))).every((e=>e(t))),yi=e=>Number(e||0),Ni=x((({className:e="",label:t,icon:n,dataTheme:l="",disabled:a=!1,onClick:i})=>p("button",{className:w("flex justify-center w-full px-0 py-4 border border-transparent outline-none focus:border-primary-text",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:i,disabled:a,"data-theme":l,children:[u("span",{className:"text-h4 pr-3",children:t}),n?u(Pt,{image:{icon:n,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),wi=({isUnfolded:e,onToggle:t})=>u(Ni,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Si=["ArrowDownIcon","ArrowUpIcon"],ki="grid grid-cols-12 gap-1 border-box",Ci=x((({label:e="",filtrationState:t={},topItemsCount:n=0,block:l,notFound:a,...i})=>{const r=l?.blocks?.filter((e=>vi(t,e.content||{})))||[],[s,o]=n>0?[r.slice(0,n),r.slice(n)]:[r,[]];return p("div",{children:[u("div",{className:w(r.length?"hidden":"block"),children:a?Ii(a):null}),p("div",{className:w(r.length?"":"hidden"),children:[u("div",{className:w("mb-1",ki),children:_l(s,{...i.options,parent:l})}),u(Fa,{renderFoldableSection:({isUnfolded:e})=>u(Ua,{className:w(ki,e?"mb-1":""),isUnfolded:e,children:_l(o,{...i.options,parent:l})}),renderFoldButton:({isUnfolded:t,onToggle:l})=>u(Ni,{className:w(n<1?"hidden":""),disabled:!o?.length,label:e,icon:Si[Number(t)],dataTheme:i.options?.page?.colorPalette,onClick:l})})]})]})}));function Ii({title:e,description:t}){return p("div",{className:"bg-white py-20",children:[e?u("div",{className:"mb-xs",children:u(de,{align:"text-center",children:u(me,{size:"text-h4",children:e})})}):null,t?u(de,{size:"text-xl",font:"font-light",align:"text-center",children:t}):null]})}const Ti=x((({value:e,onChange:t,items:n=[],multiple:l})=>n.map((n=>u(He,{text:n.title,value:[e].flatMap((e=>e)).includes(n.value),onChange:()=>(n=>{if(t)if(l){const l=e?.includes(n);t(l?(e||[]).filter((e=>e!==n)):[...e||[],n])}else t(e===n?"":n)})(n.value),type:l?"checkbox":"radio"},n.value))))),Bi=({field:e,reset:t,filtrationSchema:n,resetButton:l,children:a})=>p("form",{className:"flex justify-between bg-white p-9 mb-1",children:[p("div",{className:"flex gap-11",children:[a,Object.entries(n).map(Pi(e))]}),l?u("div",{children:u(se,{className:"w-72 ml-3",onClick:t,...l})}):null]}),Pi=e=>([t,n])=>{const l=n?.type;return"array"===l?Ri(t,e)(n):null},Ri=(e,t)=>n=>{const l=n?.items?.enum?.map(((e,t)=>({value:e,title:n?.items?.enumNames?.[t]||""})))||[];return p("div",{children:[n?.title?u("div",{className:"mb-4",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:n.title})}):null,u(Ti,{items:l,multiple:!0,...t(e)})]},e)},Mi={sum:500,period:{min:3,max:36}},Vi=x((({className:e,filtrationSchema:t={},resetButton:n,sumInput:l,periodInput:a,...i})=>{const[r,{field:s,reset:o}]=B(Mi),c=a?.max||36,d=p("div",{children:[u(Il,{label:l?.title,min:500,max:1e9,...s("sum",{parse:Number,format:String})}),u(ut,{title:a?.title,items:["От 3 мес","До 3 лет"],min:a?.min||3,max:c,...s("period",{parse:e=>({min:e,max:c}),format:({min:e})=>e})})]});return p(k,{className:w(e),defaultPadding:"p-0",version:"transparent",...i,children:[Bi({field:s,reset:o,filtrationSchema:t,resetButton:n,children:d}),u(Ci,{filtrationState:r,...i})]})}));Vi.childrenTypes=["ProductTile"],Vi.childSchema=e=>e?.filtrationSchema||{};const zi=e=>"Image"===e?.errorContentType&&e?.image?u(Pt,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,_i=x((({className:e="",title:t,subtitle:n,error:l,button:a,...i})=>{return p(k,{className:w("flex flex-col justify-center items-center",e),defaultPadding:(r=a?.text,r?"py-20 pt-3 pb-1":"mb-16 pb-2 mt-24 pt-3"),version:"transparent",...i,children:[u("div",{className:"flex justify-center py-20",children:zi(l)}),t?u(I,{headingType:"h1",className:"text-left mb-4",title:t}):null,n?u("div",{className:"mb-7 max-w-[613px] text-center",children:u(me,{size:"text-xl",font:"font-light",children:n})}):null,a?.text?u(se,{className:"py-4 px-9",version:a?.version,...a,children:a.text}):null]});var r}));var $i;!function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.AUD="AUD",e.CNY="CNY",e.RUB="RUB"}($i||($i={}));const ji={USD:"DollarIcon",EUR:"EuroIcon",GBP:"DollarIcon",AUD:"DollarIcon",CNY:"DollarIcon",RUB:"RoundRubleIcon"},Di=e=>e?Li.format(e):"",Ai=(e,t)=>p("td",{className:"pt-m pl-5xl",children:[u("div",{children:Di(e)}),u("div",{className:w("font-normal text-sm text-secondary-text",(t||0)>=0?"text-green":"text-red"),children:Di(t)})]}),Oi=(e,t="")=>p("td",{className:"pt-m pl-5xl",children:[u("div",{children:Di(e)}),u("div",{className:"font-normal text-sm text-green",children:t})]}),Li=new Intl.NumberFormat("ru",{style:"currency",currency:$i.RUB}),Ei=e=>u("th",{className:"pl-5xl",children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:e})}),Fi=x((({className:e,currencies:t=[],actuality:n="",officeName:l="",...a})=>{const i=Ui(t,4);return p(k,{className:w("space-y-3xl",e),...a,children:[p("div",{className:"flex flex-row flex-grow-0 justify-between space-y-lg",children:[u(I,{headingType:"h4",title:"Курс обмена валют в "+l,className:"whitespace-pre-wrap text-h4"}),u("div",{className:"pl-6xl",children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:n})})]}),u("div",{className:"flex flex-row pt-m text-left",children:i.length>0?p("table",{className:w("h-fit w-fit",e),children:[u("thead",{children:p("tr",{children:[u("th",{children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:"Валюта"})}),Ei("Купить"),Ei("Продать"),Ei("Лучшая покупка"),Ei("Лучшая продажа")]})}),u("tbody",{children:i.map((e=>(({title:e,buyPrice:t,buyDifference:n,sellPrice:l,sellDifference:a,buyOfficeName:i,sellOfficeName:r})=>p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[e?u(Pt,{image:{icon:ji[e]},width:"24",height:"24"}):null,u("span",{className:"ml-xs",children:e})]})}),Ai(t,n),Ai(l,a),Oi(t,i),Oi(l,r)]},e))(e)))})]}):null})]})})),Ui=(e,t)=>e.sort(((e,t)=>Number(e.id)-Number(t.id))).slice(0,t);var Hi;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(Hi||(Hi={}));const Xi=new Intl.NumberFormat("ru",{style:"currency",currency:Hi.RUB}),Wi=e=>e?Xi.format(e):"",Ki="text-left text-m font-light text-secondary-text",Gi=`${Ki} pl-5xl`,Ji={USD:"DollarIcon",EUR:"EuroIcon"},Yi=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:Ki,children:u(me,{size:"text-m",children:"Валюта"})}),u("th",{className:Gi,children:u(me,{size:"text-m",children:"Купить"})}),u("th",{className:Gi,children:u(me,{size:"text-m",children:"Продать"})})]})}),u("tbody",{children:t.map(qi)})]}))),qi=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-2xs text-h6",children:[u("td",{className:"pt-m",children:p("div",{className:"flex items-center",children:[t?u(Pt,{image:{icon:Ji[t]},width:"24",height:"24",className:"mr-2"}):null,u(me,{size:"text-h6",children:t})]})}),u("td",{className:"pt-m pl-5xl",children:u(me,{size:"text-h6",children:Wi(e?.saleExchangeRate)})}),u("td",{className:"pt-m pl-5xl",children:u(me,{size:"text-h6",children:Wi(e?.buyExchangeRate)})})]},t)},Zi={icon:"GpsIcon"},Qi=x((({className:e="",address:t})=>p("div",{className:`flex gap-s ${e}`,children:[u(Ht,{...Zi,iconBgVersion:"primary"}),p("div",{className:"space-y-2xs",children:[t?u("p",{className:"text-primary-main text-l",children:t}):null,u("p",{className:"text-secondary-text text-m",children:"Курс указан для заданного офиса"})]})]}))),er=(e,t,n)=>{const l=Number(tr(e))*Math.pow(t,n?-1:1);return Number.isInteger(l)?l:((e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n})(l)},tr=e=>e.replace(/[^\d.,]/g,"").replace(",","."),nr=e=>{return(t=[[e=>e.value!==Hi.RUB&&e.oppositeValue!==Hi.RUB,()=>e.handleConvert(e.value,Hi.RUB)],[e=>e.value===Hi.RUB&&e.oppositeValue===Hi.RUB,()=>e.handleConvert(e.value,Hi.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};function lr(e){const{placeholder:t,rates:n,selected:l,value:a,setValue:i,setSelected:r}=e,s=n.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:l,text:l};return p("div",{className:"relative flex",children:[u(pe,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:a,onChange:i}),s.length?u(Ae,{isBorder:!1,onChange:e=>r(e.key),options:s,value:o}):null]})}const ar=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:a})=>{const[r,s]=l({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Hi.RUB,selectBuy:n?.[0]?.currency?.currency||Hi.USD}),o=i((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-m pt-2xl ${e}`,children:[lr({placeholder:"Хочу продать",rates:n,selected:r.selectSell,setSelected:ir(r,o,n),value:r.inputSell,setValue:e=>sr(o,n)(e,r.selectSell,r.selectBuy)}),lr({placeholder:"Получу",rates:t,selected:r.selectBuy,setSelected:rr(r,o,t),value:r.inputBuy,setValue:e=>or(o,t)(e,r.selectBuy,r.selectSell)}),a?.text?u(se,{className:"py-4",version:a?.version,...a,children:a.text}):null]})})),ir=(e,t,n)=>l=>{t({selectSell:l}),nr({value:l,oppositeValue:e.selectBuy,handleConvert:(l=e.selectSell,a=e.selectBuy)=>{sr(t,n)(e.inputSell,l,a)}})},rr=(e,t,n)=>l=>{t({selectBuy:l}),nr({value:l,oppositeValue:e.selectSell,handleConvert:(l=e.selectBuy,a=e.selectSell)=>or(t,n)(e.inputBuy,l,a)})},sr=(e,t)=>(n,l,a)=>{e({inputSell:tr(n),selectBuy:a});const i=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===l))?.saleExchangeRate;i&&e({inputBuy:String(er(n,i,l===Hi.RUB)||"")})},or=(e,t)=>(n,l,a)=>{e({inputBuy:tr(n),selectSell:a});const i=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===l))?.buyExchangeRate;i&&e({inputSell:String(er(n,i,l===Hi.RUB)||"")})};const cr=async e=>{const t=await dr(),n=t?.code||"000";return{region:t,exchangeRates:await mr(e,n)}},dr=async()=>{try{return await D("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},mr=async(e,t)=>{try{return await D(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},hr=x((({className:e="",title:t="Курсы обмена валют",button:n,...l})=>{const{exchangeRates:a}=function(){const{data:e}=_("/api/v1/exchangerates",cr);return e||{}}(),i=ur(a?.exchangeRate?.currencies),r=i.filter((e=>e.buyExchangeRate));r.unshift({currency:{currency:Hi.RUB}});const s=i.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Hi.RUB}}),u(k,{className:w("box-border min-h-80",e),...l,children:u(ma,{className:"h-full",title:u(I,{headingType:"h4",title:t,className:"whitespace-pre-wrap"}),children:p("div",{className:"flex gap-6xl flex-wrap",children:[p("div",{children:[i?u(Yi,{className:"mb-xl",exchangeCurrencyItems:i}):null,u(Qi,{address:a?.address})]}),i.length&&r.length&&s.length?u(ar,{className:"grow",currencyRatesBuy:r,currencyRatesSell:s,button:n}):null]})})})})),ur=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],pr={};function xr(e,t={}){const{data:n}=_(`/wcms-resources/${e}.json`,D,{fallback:t});return n||pr}const gr={"bg-white":"color",transparent:"white"},fr={"bg-white":"text-primary-main",transparent:"text-white"},br=(e,t,n)=>u(Pt,t?.src?{image:t,className:fr[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:gr[e]},className:fr[e],width:n?.width,height:n?.height}),vr={"bg-white":"text-primary-text",transparent:"text-white"},yr=(e,t,n)=>u("span",{className:`${vr[t]} ml-s font-medium ${n||""}`,children:e||"Россельхозбанк"}),Nr=x((({className:e="",href:t="/",logo:n,children:l=n?.title,targetBlank:a,bgColor:i="bg-white",showTitle:r=!0})=>p("a",{className:w("inline-flex items-center font-sans no-underline",e),href:t,target:a?"_blank":"_self","aria-label":n?.title||"Россельхозбанк",children:[br(i,n?.image,{width:"40",height:"45"}),r?yr(l||n?.title,i):null]}))),wr=x((({className:e,onClick:t})=>u("button",{className:w("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(Pt,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function Sr(e){throw new Error(e)}function kr({onOpen:e,onClose:t}={}){a((()=>b.subscribe("dialog",(n=>{switch(n.type){case"open":e&&e(n);break;case"close":t&&t();break;default:Sr(n)}}))),[e,t])}const Cr=(e,t,n=300)=>a((()=>{const t=setTimeout(e,n);return()=>{clearTimeout(t)}}),t);function Ir(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const Tr=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:n,s1Matches:l,s2Matches:a}=function(e,t){const n=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),l=new Array(e.length),a=new Array(t.length);let i=0;for(let r=0;r<e.length;r++){const s=Math.max(0,r-n),o=Math.min(r+n,t.length-1);for(let n=s;n<=o;n++)l[r]||a[n]||e[r]!==t[n]||(i++,l[r]=!0,a[n]=!0)}return{m:i,s1Matches:l,s2Matches:a}}(e,t);if(0===n)return 0;const i=function(e,t,{s1Matches:n,s2Matches:l}){let a=0;for(let i=0,r=0;i<e.length;i++){if(!n[i])continue;let s=r;for(;s<t.length;s++)if(l[s]){r=s+1;break}e[i]!==t[s]&&a++}return a}(e,t,{s1Matches:l,s2Matches:a}),r=(n/e.length+n/t.length+(n-i/2)/n)/3,s=r>.7?.1*function(e,t){let n=0;for(;e[n]===t[n]&&n<4;)n++;return n}(e,t):0;return r+s*(1-r)};const Br=(e,t)=>(n,l)=>{for(const[a,i]of l)n.set(a,e(n.get(a)||t,i));return n},Pr=(e=[])=>e.reduce(((e,t)=>e+t),0),Rr=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),Mr=e=>t=>e.map((([e,n])=>[Tr(t)(e),n])).filter((([e])=>e>=.8)).map((([e,t])=>zr(t,e))).reduce(Br(Math.max,0),new Map),Vr=e=>t=>{return Ir(t,t.map((({title:e})=>e)).map((e=>t=>{const n=Rr(t||"");return n.length?Pr(e.map((e=>Un(n.map(Tr(e)))))):0})(e))).sort((l=([,e])=>e,n=(e,t)=>l(e)-l(t),(e,t)=>-n(e,t))).map((([e])=>e));var n,l},zr=(e,t)=>new Map(e.map((e=>[e,t]))),_r=["/"],$r=({basePathList:e=_r,initialQuery:t="",wasOpened:n})=>{const[i,s]=l(t||"");a((()=>{null!=t&&s(t)}),[t]);const o=r((()=>e.map((e=>n?e:null))),[n,e]),{data:c}=_(o,jr),[d,m]=l(null);return Cr((()=>{c&&m(c.map((e=>t=>{const{corpus:n,dictionary:l}=t||{};if(!(e&&n?.length&&l&&Object.keys(l).length))return[];const a=Rr(e);if(!a.length)return[];const i=Object.entries(l),r=[...a.map(Mr(i)).reduce(Br(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>n[e]));return Vr(a)(r)})(i)))}),[c,i]),[d,{value:i,onChange:s}]},jr=async(...e)=>(await Promise.allSettled(e.map((e=>j(H(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),Dr=x((({className:e,isOpened:t,head:n,children:l,onClose:i})=>(a((()=>{const e=({key:e})=>{"Escape"===e&&i&&i()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[i]),t?u("div",{className:w("fixed inset-0 bg-white text-l font-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-6xl min-h-full",children:[p("div",{className:"sticky bg-white pt-xl top-0",children:[u(wr,{className:"absolute top-0 -right-6xl",onClick:i}),n]}),l]})}):null)));function Ar(e,t=!1){const[n,{setTrue:a,setFalse:r}]=Ve(t),[o,c]=l({id:e}),d=s(n);d.current||=n;const m=i((t=>{t.id===e?(c(t),a()):r()}),[e]),h=i((()=>{r(),b.fire("dialog",{type:"close"})}),[]);return kr({onOpen:m,onClose:r}),{...o,isOpened:n,wasOpened:d.current,open:a,close:r,onClose:h}}const Or=x((({className:e,topItems:t})=>{const n=Y({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(n).map(Lr)})})),Lr=(e,t)=>{const{text:n,items:l,href:a,target:i,onClick:r}=e;return p("div",{className:"flex flex-col gap-3.5 w-1/4",children:[u("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:a,target:i||"_self",onClick:r,children:n||`Раздел ${t}`}),l?.map(((e,t)=>u(Er,{...e,basePath:o(a),index:t},String(t))))]},String(t))},Er=x((({text:e,index:t,basePath:n,...l})=>{const a=Y({isRemote:!(!d.BASE_PATH||!n)&&!d.BASE_PATH.startsWith(n),basePath:n}),{href:i,target:r,onClick:s}=a(l);return u("a",{className:w("text-l font-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:i,target:r||"_self",onClick:s,children:e||`Раздел ${t}`})})),Fr=x((({className:e,value:t,autoFocus:n,onChange:l,onFocus:a})=>{const r=i((e=>{l&&l(e.target?.value||"")}),[l]);return p("div",{className:w("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-m pointer-events-none",children:u(Pt,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:w("h-12 pl-12 w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text"),value:t,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:n,onChange:r,onFocus:a})]})})),Ur="search",Hr=x((({topItems:e})=>{const t=Ar(Ur),n=r((()=>e?.map((e=>e.href||"/"))),[e]),[l,i]=$r({basePathList:n,initialQuery:t.message,wasOpened:t.wasOpened}),s=r((()=>Xr(e)(l)),[e,l]);return a((()=>function(e){for(const t of e.filter((({items:e})=>e?.length)))console.group(t.text),console.table(t.items,["text","href"]),console.groupEnd()}(s)),[s]),u(Dr,{...t,head:u(Fr,{autoFocus:!0,...i}),children:u(Or,{topItems:s})})})),Xr=e=>t=>e?.length&&t?.length?Ir(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:H("/",t)})))}))):[];const Wr=x((({className:e})=>{const[t,n]=l(""),a=i((()=>n("")),[]);kr({onClose:a});const{open:r}=L(Ur),s=i((e=>{n(e),Kr(e)&&r(e)}),[]);return p("div",{className:e,children:[u(Fr,{value:t,onChange:s}),u(wr,{className:"absolute top-2 right-3 sm:hidden",onClick:a})]})})),Kr=e=>e&&e.length>=3,Gr=x((({className:e="",items:t,hasButton:n})=>p("div",{className:w("space-y-xl",e),children:[t?.length?t.map(Jr):null,n?u(se,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Jr=(e,t)=>p("div",{className:"space-y-m",children:[u("div",{className:"",children:u(me,{size:"text-l",font:"font-medium",children:e?.title})}),u("div",{className:"space-y-m",children:e.items?.map(Yr)})]},String(t)),Yr=(e,t)=>p("div",{className:"space-y-2xs",children:[u("div",{children:qr(e.type,e.text)}),u("div",{className:"text-s font-light text-secondary-text",children:e.description})]},String(t)),qr=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Zr(t)}`,children:t});case"email":return u("a",{className:"text-xl font-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},Zr=e=>e.replaceAll(/\D/g,""),Qr=x((({className:e="",index:t,text:n,...l})=>{const a=Y(),{href:i,target:r,onClick:s}=a(l);return u("a",{className:w("text-secondary-text",e),href:i,target:r,onClick:s,children:n||`Документ ${t}`})})),es=x((({className:e="",links:t})=>u("div",{className:e,children:t?.length?u("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)=>u(Qr,{index:t,className:"text-l font-light max-w-[292px]",...e},String(t))))}):null}))),ts=x((({className:e="",index:t,...n})=>{const l=Y({isRemote:!0}),{href:a,target:i,text:r,onClick:s}=l(n);return u("a",{className:`text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:i,onClick:s,children:r||`Документ ${t}`})})),ns=x((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-4 xl:pt-5",children:u(me,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-4",children:t.map(((e,t)=>u(ts,{index:t,...e},String(t))))}):null]}))),ls="w-[204px]",as=x((({className:e,sitemap:t,...n})=>{const{documents:l,relatedEnterprises:a,contacts:i,socialMedia:r,mobileApps:s,logo:o}=xr(d.FOOTER||"footer",n.options?.page?.fallback);return p(k,{tag:"footer",className:e,...n,children:[p("div",{className:"flex items-stretch gap-6xl xl:gap-3xl pb-3xl ",children:[u(Nr,{className:ls,logo:o}),u(Wr,{className:"grow"})]}),p("div",{className:"flex items-stretch gap-6xl xl:gap-3xl",children:[p("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden space-y-xl",children:[u(Gr,{items:i,hasButton:!0}),u(Aa,{media:r,children:"Соцсети"}),u(Aa,{media:s,children:"Мобильное приложение"})]}),u(Or,{className:"flex-grow",topItems:t?.topItems})]}),u(es,{className:"mt-24",links:a}),u(ns,{links:l})]})})),is=x((({className:e="",title:t,description:n,calendar:l,...a})=>p(k,{className:e,defaultPadding:"p-6xl",...a,children:[u(tn,{className:"mb-4",title:t,description:n,headlineVersion:"M",isPadding:!1}),l?rs(l):null]}))),rs=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),n=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return p("div",{className:"w-full flex flex-col justify-center mt-13",children:[u("div",{className:"flex w-full mb-3 text-h6 text-center",children:n.map((e=>ss(e,t)))}),u("div",{className:"flex gap-s w-full",children:n.map(((e,t)=>p("div",{className:"pr-s border-r border-main-divider last:border-r-0 last:pr-0",style:{flexBasis:e.flexBasis},children:[u("div",{className:"flex",children:os(e)}),p("div",{className:"text-s font-light text-primary-text mt-s",children:[u("span",{children:e.text})," ",u("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},ss=(e,t)=>e.month?.map(((e,n)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${n}`))),os=e=>e.month?.map((e=>e.image?.src?u("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:u(Pt,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),cs=e=>({href:t})=>U(E(t)?e.href:e.pathname).startsWith(U(t)),ds=x((({className:e="",active:t,flat:n,children:l,...a})=>{const i=Y({isRemote:!0}),{href:r,target:s,text:o,onClick:c}=i(a);return u("a",{className:w(ms(t,n),e),href:r,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:hs(t,n),children:o||l})})})),ms=(e=!1,t=!1)=>w("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",t?"":"px-4 py-2"),hs=(e=!1,t=!1)=>w("font-sans text-s font-light",e?"text-primary-main":w(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover");const us=x((({className:e,searchTerm:t,onSearch:n})=>p("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-44 gap-3.5 pointer-events-none",children:t?null:u("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),u("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>n(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),ps="location",xs=x((({currentLocation:e,onChangeLocation:t,foreignOffices:n})=>{const a=Ar(ps),[r,s]=l(""),o=fs(function(){const{data:e}=_("/api/v1/regions",D);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const n=new Map;for(const l of e){const e=t(l),a=n.get(e)||[];n.set(e,[...a,l])}return n})(o,gs),d=i((e=>{a.onClose&&a.onClose(),t&&t(e)}),[a.onClose,t]);return p(Dr,{...a,head:p("div",{children:[u(bs,{currentLocation:e,onChangeLocation:d}),u(us,{onSearch:s,searchTerm:r})]}),children:[r&&r.length>=3?u("div",{children:o.filter((({name:e})=>e&&Tr(e.toLowerCase())(r.toLowerCase())>=.8)).map(ys(d))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map(vs(d))}),u(Ns,{foreignOffices:n})]})})),gs=e=>e.name?.charAt(0)||"",fs=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),bs=x((({currentLocation:e,onChangeLocation:t})=>e?p("div",{className:"mb-4",children:[u(me,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{className:"cursor-pointer",onClick:()=>{t&&t(e)},children:u(me,{color:"text-primary-main",children:e.name})})]}):null)),vs=e=>([t,n])=>p("div",{className:"break-inside-avoid mb-2xl w-56",children:[u("div",{className:"mb-s",children:u(me,{size:"text-h6",children:t})}),n.map(ys(e))]},t),ys=e=>t=>u("div",{className:"mb-2xs",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(t)},children:t.name||""})},t.id),Ns=x((({foreignOffices:e})=>e?.length?p("div",{className:"border-t border-main-divider mt-2xs pt-2xs",children:[u("div",{className:"mb-m",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(ws,{...e},String(t))))})]}):null)),ws=x((({icon:e,...t})=>{const n=Y(),{text:l,target:a,href:i,onClick:r}=n(t);return p("div",{className:"flex gap-x-3",children:[e?u(Pt,{pathPrefix:"/wcms-resources/",image:e}):null,l?u("a",{className:"hover:text-primary-hover",href:i,target:a,onClick:r,children:l}):null]})})),Ss={default:"w-6 h-6",large:"w-12 h-12"},ks=x((({className:e,isRounded:t,buttonSize:n="default",isGrayBg:l=!1,disabled:a,ariaLabel:i,image:r,onClick:s})=>u("button",{className:w("group/btn border-0 flex shrink-0 items-center",l?"p-3 rounded-full":"p-0 bg-inherit",l&&!t?"bg-main-divider":"",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":`${Ss[n]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:a,"aria-label":i,onClick:s,children:u(Pt,{image:r,className:w("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),Cs=x((({className:e,version:t,locationName:n,officesLink:l})=>{const a="transparent"===t?"white":"black",{open:r}=L(ps),s=i((()=>r()),[]),{open:o}=L(Ur),c=i((()=>o()),[]);return p("div",{className:w("flex items-center gap-5",e),children:[u(ds,{flat:!0,href:"#",text:n,onClick:s}),l?u(ds,{flat:!0,href:l,text:"Офисы и банкоматы"}):null,u(ks,{image:{icon:"LoupeIcon",iconVersion:a},ariaLabel:"Поиск",onClick:c})]})})),Is=x((({className:e="",items:t,activeItem:n})=>{const a=Y(),[r,s]=l(!1),o=i((()=>s((e=>!e))),[]),c=ze(i((()=>s(!1)),[]));return p("div",{className:w(r?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("button",{className:"group/btn flex justify-between items-center h-6","aria-label":""+(r?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:w("absolute flex flex-col rounded-md bg-white p-6 pb-2",r?"":"hidden"),"aria-hidden":!r,children:t?.map(((e,t)=>{const{text:l,...i}=e;return u("a",{className:w("text-l font-light pb-4 hover:text-primary-main",e===n?"text-primary-main":""),...a(i),children:l},e.href||String(t))}))})]})})),Ts=x((({className:e="",active:t,dataItemName:n,children:l,...a})=>{const i=Y(),{href:r,target:s,text:o,onClick:c}=i(a);return p("a",{className:w("relative inline-block bg-transparent text-center no-underline",e),href:r,target:s,"data-item-name":n,onClick:c,children:[u("span",{className:Bs(t),children:o||l}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),Bs=(e=!1)=>w("font-sans text-l font-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Ps=x((({observerOptions:e,onVisibilityChange:t,children:n,className:l,...a})=>{const r=v(i((e=>{if(!e.length||!t)return;const n=e[e.length-1];t(n.isIntersecting)}),[t]),e);return u("span",{ref:r,className:l,children:u(Ts,{...a,children:n})})})),Rs=e=>globalThis[e];function Ms(e,t){const[n,r]=l(),s=i((()=>r(Rs(e))),[e]);return a((()=>{const n=document.getElementById(t);if(!n){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),r(void 0)}}if(!Rs(e))return n.addEventListener("load",s),()=>{n.removeEventListener("load",s)};s()}),[e,t]),n}const Vs={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},zs=x((e=>{const[t,{setTrue:n}]=Ve();return t?u(_s,{...e}):$s({...e,onClick:n})})),_s=x((({chat:e="personal",...t})=>((e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),Ms("chatbot",Vs[e])})(e),$s(t)))),$s=({className:e,iconVersion:t,onClick:n})=>u(ks,{className:w("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:n,buttonSize:"large",isGrayBg:!0}),js={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},Ds=x((({version:e,internetBankUrl:t})=>t?u(se,{href:t,ariaLabel:"Интернет-банк",target:"_blank",className:w("py-3 ml-3 text-l font-light whitespace-nowrap hover:text-primary-main",js["transparent"===e?"transparent":"default"]),children:"Интернет-банк"}):null)),As=x((({subItems:e=[],version:t,internetBankUrl:n})=>{const a="transparent"===t?"white":"black",i=(e=>(t=[])=>{const n=t?.filter(cs(e));return n?.length?Fn((e=>e.href?.length||0))(n):void 0})(J())(e),[o,c]=l(e.length),m=e.slice(o),h=s(null),x={rootRef:h},g=r((()=>e.map(((e,t)=>e=>{c(e?Os(t):Ls(t))}))),[e]);return p("nav",{className:"relative mt-s flex items-center justify-between",children:[u("div",{ref:h,className:"overflow-hidden whitespace-nowrap pb-s mt-xs",children:e.map(((e,t)=>u(Ps,{className:w("ml-3xl first:ml-0",o-1<t?"invisible":""),active:e===i,observerOptions:x,onVisibilityChange:g[t],...e},String(t))))}),m.length?u(Is,{className:"relative w-auto z-40",items:m,activeItem:i}):null,d.CHAT_BOT?u(zs,{className:"ml-9",iconVersion:a,chat:d.CHAT_BOT}):null,u(Ds,{version:t,internetBankUrl:n})]})})),Os=e=>t=>Math.max(t,e+1),Ls=e=>t=>Math.min(t,e),Es={"bg-white":"primary",transparent:"transparent"},Fs=x((({className:e,bgColor:t="bg-white",version:n=Es[t],sitemap:l,location:a,...i})=>{const r=J(),{topItems:s,logo:o,officesLink:c,internetBankUrl:m}=l||{},h=s?.find((e=>cs(d.BASE_PATH?{pathname:d.BASE_PATH}:e))(r));return u(k,{tag:"header",className:w("pt-3xl px-20",h?.items?.length?"pb-m":"pb-lg",e),defaultPadding:"",version:n,...i,children:p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(Nr,{className:"mr-3xl",bgColor:t,logo:o}),s?.map(((e,t)=>u(ds,{active:e===h,...e},String(t)))),u(Cs,{version:n,className:"ml-auto",locationName:a?.name,officesLink:c})]}),u("div",{className:w("mt-xl h-px bg-main-divider","transparent"===n?"opacity-30":"")}),h?.items?.length?u(As,{subItems:h.items,version:n,internetBankUrl:m}):null]})})})),Us={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},Hs=x((({className:e="",gap:t="XS",isPadding:n=!1,version:l="transparent",isTheme:a=!1,...i})=>u(k,{className:w("relative","grid grid-cols-12",Us[t],e),defaultPadding:n?"p-6xl":"",version:l,isTheme:a,...i,children:$l(i)})));Hs.childrenTypes={exclude:["HorizontalLayout"]};const Xs=x((e=>{const{className:t,image:n,...l}=e;return u(k,{className:t,defaultPadding:"p-0",...l,children:u(Pt,{image:n})})})),Ws=x((({className:e="",cards:t=[],button:n})=>{const[a,r]=l(0),s=i((e=>r(e)),[]),o=t.length,[c,d]=fn({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:h}=d,x=t[c]?.href;return p("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[p("div",{className:"relative overflow-hidden",children:[o?Ks({activeIndex:c,cards:t,selectedCardIndex:a,onClick:s}):null,Nn({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?u("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,h?u("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),u(se,{className:"w-60 text-center",version:"primary",...n,href:x})]})}));function Ks({activeIndex:e,cards:t,selectedCardIndex:n,onClick:l}){const a=460*e,i=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-6xl",children:u("div",{className:`w-full flex flex-nowrap gap-3.5 pb-6xl ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:n,onClick:l}){return p("button",{type:"button",onClick:l,className:"p-3xl min-w-[460px] flex items-center bg-white border-solid border relative "+(n?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?u(Pt,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,p("div",{className:"flex gap-3.5",children:[e?.sum?Gs("страховая сумма",e.sum):null,e?.fee?Gs("страховой взнос",e.fee):null]}),Js(n)]},String(t))}({slide:e,i:t,isActive:Boolean(t===n),onClick:()=>l(t)})))})})}function Gs(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[ot(2)(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Js(e){return e?u(Pt,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:{icon:"DoneIcon"},width:"24",height:"24"}):null}const Ys=x((({className:e="",title:t,insuranceTabs:n=[],button:a,...r})=>{const[s,o]=l(0),c=i((e=>o(e)),[]);return p(k,{className:w("box-border overflow-hidden relative px-0 space-y-2xl",e),defaultPadding:"p-6xl",...r,children:[t?u(I,{className:"text-center",title:t,headingType:"h3"}):null,n?.length>1?u("div",{className:"p-xs bg-secondary-light w-fit mx-auto rounded-md",children:n.map(((e,t)=>function({title:e,i:t,isActive:n,onClick:l}){return u("button",{type:"button",onClick:l,"aria-label":e,className:"box-border px-4 py-3 text-m font-light "+(n?"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,u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:qs({insuranceTabs:n,button:a})})]})})),qs=({insuranceTabs:e,button:t})=>{const n=e?.map((e=>e.cards));return n?.length?n.map(((e,n)=>u(Ws,{button:t,cards:e},String(n)))):null};const Zs=e=>t=>t.reduce(((t,n,l)=>t.length?t.concat({...e,key:`sep-${l}`},n):[n]),[]),Qs={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},eo={XS:"h-10",S:"h-16",M:"h-24",L:"h-32",XL:"h-52"},to=x((e=>{const{className:t="",items:n,isDotted:l,investmentZeroColumn:a,investmentColumns:i,...r}=e,s=i?[...i]:[];return a&&s.unshift(a),u(k,{className:t,...r,children:p("div",{className:"container text-m font-light",children:[s?.length?p("div",{children:[p("div",{className:"flex items-end relative pl-3xl pr-lg text-white",children:[Zs(u("div",{className:"w-px h-4 bg-gray"}))(s.map(no)),u("div",{className:"absolute right-3xl w-px h-4 bg-gray"})]}),u("div",{className:"border-t border-gray -mt-xs mx-3xl"}),u("div",{className:"flex justify-between text-primary-text mt-s -mx-5xl",children:s.map(io)})]}):null,n?.length?u(ka,{className:"mt-9 max-w-[657px]",items:n,isDotted:l,listItemSize:"M"}):null]})})})),no=(e,t,n)=>{const l=1===t,a=t===n.length-1;return u("div",{className:`${lo(l,a,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-2xs min-w-[290px]":""),children:e.cells.reverse().map(ao)}):null},`column_${t}`)},lo=(e,t,n=[])=>[n.length?"flex-1":"flex-0",!n.length||e||t?"":"pl-s",n.length&&!t?"pr-s pb-3xl":"pb-xl"].join(" "),ao=(e,t)=>{const n=e.cellSize||"XS",l=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-xs ${eo[n]} ${Qs[l]} ${"XS"===n?"px-s":"px-5xl"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},io=(e,t)=>u("div",{className:"flex-1 max-w-[180px] text-center px-xs last:pr-3xl",children:e.title},`title_${t}`),ro=["байт","Кб","Мб","Гб","Тб","Пб"],so=x((({icon:e,text:t,fileSize:n,...l})=>p("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...l,children:[e,t?p(me,{size:"text-l",font:"font-light",children:[t,u(me,{color:"text-secondary-text",children:l?.href&&oo(co(l.href),n)})]}):null]}))),oo=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),co=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},mo={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},ho=x((({className:e="",title:t,description:n,align:l="text-center",documents:a,icon:i={icon:"DocIcon"},columnsMode:r="double",...s})=>{const o=J();return p(k,{className:e,defaultPadding:"p-6xl",...s,children:[u(tn,{title:t,description:n,align:l,headlineVersion:"M",as:"h2",isPadding:!1}),a?.length?u("div",{className:w("mt-5 sm:mt-8 flex flex-col gap-6",mo[r]),role:"list",children:a.map(uo(o,r,i))}):null]})})),uo=(e,t,n)=>(l,a)=>{const i="Attachment"===l?.docType?W(e)(l?.attachment?.src):l?.href,r="Attachment"===l?.docType?((e,t=2)=>{if(0===e)return"";const n=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,n)).toFixed(t))} ${ro[n]}`})(l?.attachment?.fileSize||0):l?.fileSize;return u("div",{className:"double"===t?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(so,{text:l?.text,target:l?.target,href:i,fileSize:r,icon:n?u(Pt,{className:"min-w-6 min-h-6",image:n,width:"24",height:"24"}):null})},String(a))},po=e=>e?u("div",{className:"mb-5 pt-3xs sm:mb-0 sm:pt-0",children:u(me,{size:"text-xl","font-weight":"light",children:e})}):null,xo=e=>e?.length?u(ka,{items:e,className:"text-l font-light mb-xs last:mb-0"}):u("span",{className:"text-m font-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),go=x((({className:e,padding:t,alignTitle:n="left",buttons:l=[],description:a,headingType:i="h4",image:r,items:s,qr:o,title:c="Мобильное приложение",version:d="primary",...m})=>{const h="secondary"===d?"p-m min-w-32":"min-w-24";return u(k,{className:w("min-h-80",e),padding:"p-0",version:d,...m,children:p(ma,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:c?u(I,{headingType:i,title:c,className:w("whitespace-pre-wrap",sn[n])}):null,buttons:Yt(l,{isVertical:l.length>4}),children:[po(a),p("div",{className:"flex flex-1 flex-wrap gap-m items-center",children:[o?.src?u("div",{className:w("flex justify-center bg-white rounded-md",h),children:u(Pt,{className:"w-fit",image:o})}):null,xo(s),r?.src?u(Pt,{image:r}):null]})]})})})),fo={},bo=x((({className:e,filtrationSchema:t={},resetButton:n,...l})=>{const[a,{field:i,reset:r}]=B(fo);return p(k,{className:w(e),defaultPadding:"p-0",version:"transparent",...l,children:[Bi({field:i,reset:r,filtrationSchema:t,resetButton:n}),u(Ci,{filtrationState:a,...l})]})}));bo.childrenTypes=["ProductTile"],bo.childSchema=e=>e?.filtrationSchema||{};const vo=[{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:"Кафе"}];function yo(e,t,n){t.geoObjects.removeAll();const l=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),a=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:l,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),i=n.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));a.add(i),t.geoObjects.add(a),t.setBounds(e.util.bounds.fromPoints(n)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const No={focus:"focus:border-primary-text 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"},wo=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(No).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),So={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)]"},ko=(e,t,n)=>p("div",{className:`${Object.values(So).join(" ")} bg-white py-s pl-5xl pr-m w-full`,children:[u($e,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const l=t.target?.value?t.target?.value.toLowerCase():"";if(l){const t=e.filter((e=>e.text.toLowerCase().indexOf(l)>-1?e:null));n(t)}else n(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),Co={focus:"focus:border-primary-text 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"},Io=(e,t,n)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(Co).join(" ")} ${n}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u($e,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),To={focus:"focus:border-primary-text 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"},Bo=x((({yandexMaps:e,direction:t="in"})=>{const n="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const n=e.current.getZoom(),l="in"===t?n+1:n-1;e.current.setZoom(l,{checkZoomRange:!0})},className:`${Object.values(To).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u($e,{name:n,width:"20",height:"16"})})})),Po={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-text focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},Ro=x((({points:e,className:t="",zoom:n=5,showSearchField:i=!1})=>{const r=s(null),o=Ms("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${d.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[c,m]=l(),[h,x]=l(_o(vo)),g=Mo(e);if(a((()=>{r?.current||o?.ready((()=>{r.current=new o.Map("map",{center:g,zoom:n,controls:[],suppressMapOpenBlock:!0}),yo(o,r.current,h)}))}),[o,r,h]),a((()=>{if(r.current&&h&&o){const e=h.length<1?_o(vo):h;yo(o,r.current,e)}}),[r,h,o]),!o)return null;const f=c?"z-[100000]":"z-10";return p("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-1/2 ${f}`,children:i?ko(vo,0,(e=>{if(e){const t=_o(e);x(t)}})):wo(g)}),u("div",{className:`${Object.values(Po).join(" ")} ${f} right-2 top-4 bg-white`,onClick:()=>{const e=r.current.container;c?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u($e,{name:"FullScreenIcon",width:"16",height:"16"})}),p("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${f}`,children:[u(Bo,{yandexMaps:r}),u(Bo,{yandexMaps:r,direction:"out"})]}),Io(r.current,o,`right-2 top-80 ${f}`)]})})),Mo=e=>[zo(Vo(e,0)),zo(Vo(e,1))],Vo=(e,t)=>e.map((e=>e[t])),zo=e=>e.reduce(((e,t)=>e+t))/e.length,_o=e=>e?e.map((e=>e.coords)):null,$o={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},jo=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],Do=({lunchHour:e,status:t,workTime:n})=>{const l=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?p("div",{className:"flex",children:[u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:n||null}),u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?l:null})]}):u("div",{className:"flex",children:u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},Ao=({icon:e,title:t,distance:n,time:l},a)=>p("div",{className:"flex mr-4",children:[u($e,{name:e,width:"16",height:"16",className:"mr-1"}),t?p(me,{size:"text-m",children:[t," "]}):null,p(me,{size:"text-m",font:"font-light",children:[n?` (${n})`:null,l?`, ${l}`:null]})]},`nearbyOffice${a}`),Oo=({title:e,status:t,workTime:n,lunchHour:l,description:a},i)=>p("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[p("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[u("div",{children:e}),t?null:u("div",{className:"text-m font-light text-error",children:"Выходной"}),t&&n?u("div",{children:n}):null]}),t&&l?Lo(l):null,a?u("div",{className:"pb-1 text-s font-light text-secondary-text",children:a}):null]},`day${i}`),Lo=e=>/\d+/gi.test(e)?p("div",{className:"flex justify-between items-center w-full pb-1 text-m font-light text-error",children:[u("div",{children:"Перерыв"}),u("div",{children:e})]}):u("div",{className:"flex justify-between items-center w-full pb-1 text-m font-light text-primary-main",children:u("div",{children:e})}),Eo=x((({className:e=""})=>{const t=$o,{name:n,address:l,gpsLatitude:a,gpsLongitude:i,workSchedule:r}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:h,workingSunday:x}=r,{workTime:g,lunchHour:f,workTimeSaturday:b,lunchHourSaturday:v}=r,y=a&&i?[a,i]:null,N=[{title:"Понедельник",status:s,workTime:g,lunchHour:f},{title:"Вторник",status:o,workTime:g,lunchHour:f},{title:"Среда",status:c,workTime:g,lunchHour:f},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:f},{title:"Суббота",status:h,workTime:b,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),S=w>0?N[w-1]:N[6];return p("div",{className:`flex flex-col font-sans w-full ${e}`,children:[p("div",{className:"flex flex-col gap-m p-6xl pb-3xl",children:[p("div",{className:"flex justify-between",children:[u("div",{className:"text-h2",children:n}),Do(S)]}),p("div",{className:"flex text-l font-light",children:[u($e,{name:"GeolocationIcon",width:"24",height:"24",className:"pr-1"}),l]}),u("div",{className:"flex",children:jo.map(Ao)})]}),p("div",{className:"flex justify-between",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:y?u(Ro,{points:[y],className:"h-full"}):null}),u("div",{className:"w-[434px] min-w-[434px] p-6xl pt-0 flex flex-col",children:N.map(Oo)})]})]})})),Fo=x((({className:e="",title:t,servicesList:n,...l})=>p(k,{className:w("flex flex-col gap-lg",e),...l,children:[t?u(I,{headingType:"h5",title:t}):null,n?.length?u("ul",{className:"list-none space-y-lg",children:n.map(Uo)}):null]}))),Uo=(e,t)=>p("li",{className:"flex gap-s list-none ",children:[e.icon?u(Pt,{className:"min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",image:e.icon}):null,e.label?u(me,{size:"text-l",font:"font-light",children:e.label}):null]},`list_item_${String(t)}`),Ho=x((({text:e,size:t,align:n,font:l,children:a,...i})=>u(k,{defaultPadding:"p-0",...i,children:u(de,{size:t,align:n,font:l,children:e||a})}))),Xo=(e=[])=>e?.length?Pr(e)/e.length:0,Wo=(e,t="normal")=>e?u("div",{className:w("w-12 h-12 min-w-12 box-border flex items-center justify-center rounded-icon","normal"===t?"bg-secondary-light text-primary-main":"bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black"),children:u(Pt,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,Ko=(e,t)=>e?u(de,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,Go=(e,t)=>e?u(me,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,Jo=(e,t)=>"rte"===e.type&&"__html"in e&&e.__html?u(La,{...e},`rte-${t}`):["label"in e?Go(e.label,t):null,"description"in e?Ko(e.description,t):null],Yo=x((({className:e,benefitsVersion:t,...n})=>p("div",{className:w("flex gap-m","description"in n&&n.description?"items-start":"items-center",e),children:["icon"in n?Wo(n.icon,t):null,u("div",{children:Jo(n)})]}))),qo=e=>"rte"===e.type?e.__html?.length||0:Math.max(e.label?.length||0,e.description?.length||0),Zo=e=>{return((t=e.map(qo))?.length?Math.sqrt(Math.abs(Xo(t.map((e=>e**2)))-Xo(t)**2)):0)>16;var t},Qo=x((({className:e,benefitsVersion:t="normal",benefits:n})=>n?.length?u("div",{className:w("flex gap-x-m gap-y-s",Zo(n)?"flex-col":"flex-wrap",e),children:n.map(((e,n)=>u(Yo,{benefitsVersion:t,...e},String(n))))}):null)),ec=x((({className:e,benefits:t})=>t?.length?u("div",{className:w("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),children:t.flatMap(Jo)}):null)),tc=x((({isTabularBenefits:e,...t})=>u(e?ec:Qo,{...t}))),nc=x((({className:e,tags:t})=>t?.length?u("div",{className:w("flex flex-wrap gap-xs",e),role:"list",children:t.map(lc)}):null)),lc=(e,t)=>u("div",{className:"py-2 px-2.5 border-solid border rounded-md border-gray",role:"listitem",children:u(me,{size:"text-m",font:"font-light",children:e})},String(t)),ac=x((({className:e,padding:t,defaultPadding:n,title:l,description:a,headlineVersion:i="L",align:r="text-left",isInsetTitle:s=!0,benefitsVersion:o,isTabularBenefits:c,benefits:d,__html:m,items:h,isDotted:x=!0,listItemSize:g,tags:f,buttons:b,image:v,imageOptions:{imageAlign:y="end",directionRight:N=!0,isBackground:w}={},children:S})=>{const k=v?.src?u(Pt,{image:v}):null,C=u(tn,{title:l,description:a,headlineVersion:i,align:r,isPadding:!1});return u(ma,{className:e,padding:t,defaultPadding:n,...s?{insetTitle:C}:{title:C},...w?{backImage:k}:ic(k,N),imageAlign:y,buttons:Yt(b),children:p("div",{className:"flex flex-col gap-xl",children:[u(tc,{benefitsVersion:o,isTabularBenefits:c,benefits:d}),m?u(La,{__html:m}):null,h?.length?u(ka,{items:h,isDotted:x,listItemSize:g}):null,S,f?.length?u(nc,{tags:f}):null]})})})),ic=(e,t)=>t?{rightImage:e}:{leftImage:e},rc=(e,t)=>e||t?p("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl",children:[Number(e)>0?sc("Страховая сумма:",e):null,Number(t)>0?sc("Ежемесячный лимит:",t):null]}):null,sc=(e,t=0)=>p("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre",children:[u(me,{font:"font-light",size:"text-l",children:e}),p(me,{size:"text-h6",color:"text-primary-text",children:[ot(2)(t)," ₽"]})]}),oc=x((({className:e,padding:t,headlineVersion:n="M",align:l="text-center",sum:a,monthLimit:i,imageOptions:r,...s})=>u(k,{className:e,padding:"p-0",...s,children:u(ac,{className:"h-full",defaultPadding:"p-6xl",padding:t,headlineVersion:n,align:l,isInsetTitle:!1,imageOptions:{directionRight:!1,imageAlign:"center",...r},...s,children:rc(Number(a),Number(i))})}))),cc=x((({className:e,title:t,description:n="Блок в разработке...",...l})=>p(k,{className:w("box-border",e),...l,children:[u(tn,{className:"max-w-[600px]",title:t,description:n,headlineVersion:"L",align:"text-left",isPadding:!1}),u("figure",{className:"m-0 mt-xl min-w-[80%]",children:dc()})]}))),dc=(e=3)=>hc(100,e).map((e=>Math.floor(e))).map(mc),mc=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-xs bg-secondary-light"},String(t)),hc=(e,t)=>[e].concat(t>0?hc(e/1.618,t-1):[]);function uc({text:e,href:t,target:n,icon:l},a){const i="primary"===a?"white":"black",r={text:e,href:t,target:n,ariaLabel:e};return p("div",{className:"flex items-center gap-3",children:[u(se,{className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",version:a,rounded:!0,...r,children:u(Pt,{className:"w-4 h-4",image:{...l,icon:l?.icon||"ArrowLeftIcon",iconVersion:l?.iconVersion||i}})}),u(se,{version:"link",...r})]})}const pc=x((({className:e,padding:t,backwardButton:n,...l})=>p(k,{className:w("overflow-hidden flex flex-col gap-3xl box-border",e),defaultPadding:"p-6xl",padding:t,...l,children:[n?.text?uc(n,l.version&&"primary"!==l.version?"white":"primary"):null,u(ac,{className:"grow h-full",...l})]}))),xc=x((({className:e="",padding:t,slides:n=[],...a})=>{const[i,r]=l(0);return p(k,{className:w("box-border overflow-hidden",e),defaultPadding:"py-6xl",padding:t,...a,children:[u("div",{className:"flex duration-1000",style:{transform:`translateX(-${100*i}%)`},role:"list",children:n.map((({productBlock:e},t)=>u("div",{className:"box-border grow-0 shrink-0 basis-full",role:"listitem",children:u(ac,{className:"pl-6xl h-full",headlineVersion:"XXL",...e,...a})},String(t))))}),u("div",{className:"h-28 px-xs mt-m -mb-m flex gap-xs box-border",children:n.map(gc({activeSlideIndex:i,onClick:r}))})]})})),gc=({activeSlideIndex:e,onClick:t})=>({nav:n},l)=>{const a=l===e,i=a?"min-w-[350px] bg-white shadow-dark-blue border-none p-6":"min-w-[290px] ease-in duration-300 bg-white/10 px-6 py-5 hover:py-6 backdrop-blur",r=a?"text-primary-text text-h6 py-2":"text-l pb-1 text-secondary-text group-data-secondary:text-white",s=a?"text-secondary-text text-l font-light":"text-secondary-text text-m font-light group-data-secondary:text-white/80";return p("button",{type:"button",onClick:()=>t(l),"aria-label":n?.title,className:w("relative px-6 box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50",i),children:[u("div",{className:r,children:n?.title}),u("div",{className:s,children:n?.description})]},String(l))},fc=x((({className:e,padding:t,headlineVersion:n="S",isTabularBenefits:l=!0,additionalDescription:a,imageOptions:i,...r})=>u(k,{className:e,padding:"p-0",...r,children:u(ac,{className:"h-full",defaultPadding:"p-xl",padding:t,headlineVersion:n,isTabularBenefits:l,imageOptions:{isBackground:!0,...i},...r,children:a?u(de,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:a}):null})}))),bc=x((({className:e,title:t="Акции и спецпредложения",description:n,headlineVersion:l="S",date:a,buttons:i=[],...r})=>u(k,{className:w("box-border",e),...r,children:p(ma,{className:"h-full",title:t?u(tn,{title:t,headlineVersion:l,align:"text-left",isPadding:!1}):null,buttons:Yt(i),children:[a?u("div",{className:"text-s mb-xs",children:vc(a)}):null,u("div",{className:"text-l",children:n})]})})));function vc(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const yc=x((({address:e,email:t,telephone:n,button:l,className:a="",__html:i,icon:r,title:s,version:o="primary",...c})=>p(k,{className:w("box-border text-left space-y-s",a),version:o,...c,children:[p("div",{className:"w-full flex justify-between flex-row-reverse",children:[Nc(r),s?u(I,{headingType:"h4",as:"h3",title:s}):null]}),p("div",{className:"w-full space-y-m",children:[i?wc(i):null,Sc("Адрес",e,"GeolocationIcon"),Sc("Телефон",n,"PhoneIcon"),Sc("E-mail",t,"MailIcon"),l?.text?Yt([l]):null]})]}))),Nc=e=>u("div",{className:"w-10 h-7 sm:w-24 sm:h-16",children:e?.src||e?.icon?u(Pt,{image:e}):null}),wc=e=>u("div",{className:"border-b border-main-divider pb-5",children:u(La,{__html:e})}),Sc=(e,t,n)=>p("div",{className:"flex gap-m",children:[u($e,{iconVersion:"black",name:n,width:"24",height:"24"}),p("div",{className:"flex flex-col",children:[u(me,{size:"text-m",font:"font-light",children:e}),t?u(me,{size:"text-h6",color:"text-green",children:t}):null]})]}),kc=x((e=>{const{__html:t,richVersion:n,...l}=e;return u(k,{defaultPadding:"p-0",...l,children:u(La,{__html:t,richVersion:n})})})),Cc=e=>e?"MinusIcon":"PlusIcon",Ic=x((({className:e="",label:t="Развернуть",labelIcon:n,labelIconBgVersion:l,isExpanded:a,isFoldButtonOnTop:i=!0,version:r="primary",...s})=>u(k,{className:w("w-full","border-0 border-b border-solid border-main-divider last:border-b-0",e),defaultPadding:"p-0",tag:"div",version:"transparent",...s,children:u(Fa,{isFoldButtonOnTop:i,unfoldedByDefault:a,renderFoldableSection:({isUnfolded:e})=>u(Ua,{className:w("gap-5","grid grid-cols-12 [&>*]:pb-4"),isUnfolded:e,children:$l({...s,extraProps:{className:"w-full",padding:"p-0"}})}),renderFoldButton:({isUnfolded:e,onToggle:a})=>Tc({version:r,label:t,labelIcon:n,labelIconBgVersion:l,isUnfolded:e,onToggle:a})})})));Ic.childrenTypes={exclude:["RollupItem"]};const Tc=({version:e,label:t,labelIcon:n,labelIconBgVersion:l,isUnfolded:a,onToggle:i})=>{const r=t||(a?"Скрыть":"Развернуть");return"primary"===e?Bc({label:r,labelIcon:n,labelIconBgVersion:l,icon:Cc(a),onToggle:i}):u(Ni,{label:r,icon:a?"ArrowUpIcon":"ArrowDownIcon",onClick:i})},Bc=({label:e,labelIconBgVersion:t,icon:n,onToggle:l,labelIcon:a})=>p("button",{className:w("border-none bg-transparent px-0 flex justify-between items-center w-full group/button",a?.icon?"py-xs":"py-lg"),onClick:l,children:[p("div",{className:"flex items-center group-hover/button:text-primary-main gap-s",children:[null,e?u(me,{size:"text-h6",font:"font-normal",children:e}):null]}),n?u($e,{name:n,iconVersion:"color",width:"24",height:"24"}):null]}),Pc=x((({data:e,fieldLabel:t,fieldValue:n,selected:l,placeholder:a="",setSelected:i,label:r})=>{const s=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),o=s.find((e=>e.key===l));return u(Ae,{options:s,label:r,placeholder:a||l,onChange:e=>i(e.key),value:o})})),Rc=x((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:l=[],selectedBranch:a,onSelectedBranch:i})=>p("div",{className:"flex flex-col sm:flex-row gap-m order-1",children:[u("div",{className:"flex-1 min-w-0",children:u(Pc,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),u("div",{className:"flex-1 min-w-0",children:u(Pc,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:i,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Mc=x((({name:e,text:t,value:n,checked:l,onChange:a,className:i})=>u("div",{className:i,children:p("label",{className:"font-sans flex items-center relative cursor-pointer",children:[u("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-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:n,name:e,checked:l,onChange:e=>a(e.target.value)}),t?u("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),Vc=x((({className:e})=>{const[t,n]=l("option2"),a=i((e=>n(e)),[]);return p("div",{className:w("order-4",e),children:[u(Mc,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===t,onChange:a}),u(Mc,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===t,onChange:a})]})})),zc=["От 1 дня","До 365 дней"],_c=x((({days:e,setDays:t})=>p("div",{className:"order-1",children:[u(me,{size:"text-m",font:"font-light",children:"Срок аренды"}),u(ut,{min:1,max:365,value:e,items:zc,onChange:t})]}))),$c=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:l=[],selectedBoxSize:a,onSelectedBoxSize:i})=>p("div",{className:"flex flex-col sm:flex-row gap-4 order-1",children:[u("div",{className:"flex-1 min-w-0",children:u(Pc,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"flex-1 min-w-0",children:u(Pc,{data:l,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:i,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),jc=x((({regions:e,selectedRegion:t,branches:n,selectedBranch:l,days:a,selectedCaseVolume:i,selectedBoxSize:r,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"contents sm:block flex-1 space-y-xl",children:[u(Rc,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:n,selectedBranch:l,onSelectedBranch:Dc(c)}),u(_c,{days:a,setDays:e=>c({days:e})}),u($c,{caseVolumes:o,selectedCaseVolume:i,onSelectedCaseVolume:Ac(c),safeBoxCases:s,selectedBoxSize:r,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u("div",{className:"order-4",children:u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:"Тип договора"})}),p("div",{className:"contents sm:flex justify-between items-center",children:[u(Vc,{className:"mb-4 sm:mb-0"}),u(se,{text:"Офисы на карте",version:"primary",onClick:d,className:"order-6"})]})]}))),Dc=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Ac=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Oc=x((({days:e,tariffs:t=[]})=>{const n=Ec(e,t),l="На рисунке изображена пачка листов\nформата А4";return p("div",{className:"contents sm:flex flex-col justify-between order-2",children:[p("div",{className:"flex flex-col sm:flex-row gap-x-11 gap-y-7 order-5 sm:order-none py-7 sm:py-0 border-t border-main-divider sm:border-none",children:[Lc("Аренда за",e),Lc("Цена",n+" ₽")]}),u("span",{className:"sm:hidden order-3 mb-2 text-s-light text-secondary-text",children:l}),p("div",{className:"flex flex-col items-center gap-3 order-3 sm:order-none mb-6 sm:mb-0 bg-primary-main py-3 sm:p-8 text-center",children:[u(Pt,{image:{icon:"PackA4Icon"},className:"sm:h-[246px]"}),u("span",{className:"hidden sm:inline text-s font-light text-white opacity-80 whitespace-pre-line",children:l})]})]})})),Lc=(e,t)=>p("div",{className:"flex justify-between items-center gap-y-1 sm:flex-col sm:items-start",children:[u("div",{className:"text-l font-light text-secondary-text",children:e}),u("span",{className:"text-l sm:text-h3 text-primary-text",children:t})]}),Ec=(e,t)=>{const n=Fc(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},Fc=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},Uc=(e,t)=>e.find((e=>e.branchCode===t)),Hc=x((e=>{const{regions:t,data:n,branches:l,onChange:i,onClick:r}=e;a((()=>{i({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,i]);const s=Uc(l,n.selectedBranch),o=Xc(s?.safeBoxCaseVolumes),c=Wc(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,d=Kc(c,n.selectedBoxSize);return p("div",{className:"flex flex-col sm:flex-row gap-x-9 align-top mb-6",children:[u(jc,{...n,regions:t,onClick:r,branches:l,caseVolumes:o,safeBoxCases:c,onChange:i}),u(Oc,{days:n.days,tariffs:d})]})})),Xc=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Wc=(e,t)=>e?.find((e=>e.volume===t)),Kc=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,Gc=[];const Jc=async e=>await j(e,{method:"GET"})||Gc,Yc=x((({title:e,footnote:t,className:n="",...a})=>{const[r,s]=l(!1),o=i((()=>s((e=>!e))),[]),[c,d]=l({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=O(),h=qc(c.selectedRegion,m),x=function(e){const{data:t}=_(e?`/api/v1/safeboxes?regionCode=${e}`:null,Jc);return t||Gc}(h),g=i((e=>d((t=>({...t,...e})))),[d]),f=(b=Uc(x,c.selectedBranch)||x,Array.isArray(b)?b.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):b?.gpsLatitude&&b?.gpsLongitude?[[b.gpsLatitude,b.gpsLongitude]]:[]);var b;return p(k,{className:n,defaultPadding:"",...a,children:[p("div",{className:"p-4xl",children:[e?u(I,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-s text-center"}):null,u(Hc,{regions:m,branches:x,data:{...c,selectedRegion:h},onClick:o,onChange:g}),t?u(de,{size:"text-s",font:"font-light",children:t}):null]}),f.length&&r?u(Ro,{points:f,className:"h-[640px]"}):null]})})),qc=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Zc=e=>Boolean(e?.icon||e?.src),Qc=({styleMap:e,isMainButton:t,version:n})=>(l,a,i)=>{const{label:r,description:s,button:o,items:c,isDotted:d}=l;return p("div",{className:w("relative flex flex-col items-center text-center justify-between whitespace-pre-line overflow-hidden space-y-3xl",ed(i.length)),children:[p("div",{className:"text-center space-y-xs",children:[r?u("div",{children:u(me,{size:"text-h6",children:r})}):null,p("div",{className:"flex flex-col items-center gap-3xs",children:[s?u("div",{className:e.description,children:s}):null,u(ka,{className:e.description,items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(se,{className:"box-border py-s w-full max-w-60 mt-auto",version:n,...o,children:o?.text}):null]},String(a))},ed=e=>e<5?"w-[276px]":"w-[200px]",td={description:"text-white/80 text-l font-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},nd=x((({className:e="",showLines:t=!0,steps:n=[],buttons:l,size:a="normal",version:i="primary",stepVersion:r="gray",title:s,...o})=>{const c=n.length>3,d=td,m=(e=>e?"":"opacity-0")(t),h=(e=>e<5?"px-24":"px-16")(n.length),x=Boolean(l?.every((e=>e?.text)));return p(k,{className:w("box-border flex flex-col items-center overflow-hidden gap-y-3xl",e),defaultPadding:"p-6xl",version:i,...o,children:[s?u(I,{headingType:"h4",className:"text-center",title:s}):null,n?.length?p("div",{className:"box-border space-y-lg",children:[u("div",{className:w("flex items-center",h),children:Zs(u("div",{className:w("h-0.5 w-full bg-secondary-light flex-1",m)}))(n.map(ld(d,a,r)))}),u("div",{className:w("flex justify-between",c?"gap-x-3":"gap-x-20"),children:n.map((g={styleMap:d,isMainButton:x,version:i},(e,t,n)=>{const{type:l}=e;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return Qc(g)(e,t,n);case"rte":return u("div",{className:w("text-center",ed(n.length)),children:u(La,{__html:e.__html})},String(t));default:return null}}))})]}):null,Yt(l)]});var g})),ld=(e,t,n)=>({icon:l},a)=>{const i="secondary"===n?"white":"color";return u(k,{defaultPadding:"",className:`${ad(t)} flex justify-center items-center text-center rounded-full box-border z-10`,version:n,children:Zc(l)?u(Pt,{image:{...l,iconVersion:l.iconVersion||i},width:"48",height:"48"}):u("span",{className:w("text-h4","transparent"===n?e.iconText:id(n)),children:a+1})},String(a))},ad=e=>"normal"===e?"h-24 w-24":"h-16 w-16",id=e=>"secondary"===e?"group-data-primary:text-white":"text-secondary-text",rd=x((({className:e,version:t,gap:n=14,padding:l=16,showDots:a=!0,minHeight:i,children:r,onVisibleIndicesChange:s,listType:o="horizontal-list"})=>{const c=Array.isArray(r)?r.length:0,[d,m]=Kl({itemCount:c,onVisibleIndicesChange:s}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===o?"relative h-full":""),children:[u(Ol,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:n,padding:l,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:o,minHeight:i,children:r}),a?u(Hl,{containerRef:d,activeIndex:h,dotCount:c,listType:o,version:t}):null]})})),sd=x((({listType:e,showDots:t,options:n,version:l,...a})=>u(k,{version:l,defaultPadding:"p-0",...a,children:u(rd,{listType:e,showDots:t,version:l,children:$l({...a,options:n})})})));sd.childrenTypes={exclude:["SwipeListControlBlock"]};const od="h-12 flex-1 flex items-center justify-center cursor-pointer",cd="font-sans text-m text-center",dd="text-secondary-text sm:group-hover/btn:text-primary-main",md={block:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${od} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${od} group/btn bg-white`},centered:{active:`px-4 rounded-md ${od} bg-primary-main text-white whitespace-nowrap`,default:`px-4 rounded-md ${od} group/btn bg-transparent whitespace-nowrap`},wideScreen:{active:`${od} bg-primary-main text-white whitespace-nowrap`,default:`${od} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:`${cd} flex items-center h-full border-0 border-b-2`,default:`${cd} ${dd}`},centered:{active:`${cd} text-white`,default:`${cd} ${dd}`},wideScreen:{active:`${cd} text-white text-black px-2.5 bg-white sm:bg-primary-main sm:text-white`,default:`${cd} ${dd} px-2.5 bg-white`}}},hd=(e,t,n)=>{const l=t?"active":"default";return md[e][n||"wideScreen"][l]},ud=x((e=>{const{tab:t,currentTab:n,onClick:l,tabsMode:a}=e,i="link"===n?.type&&n.href===t.href,r=Y()(t);return u("div",{className:hd("block",i,a),role:"tab","aria-selected":i,onClick:()=>l(t),children:u("a",{role:"tab",className:w("flex flex-1 items-center justify-center h-full",hd("text",i,a)),target:t.target,href:r.href,onClick:e=>{r.onClick(e),l(t)},children:u("span",{children:t.text})})})})),pd=(e,t,n)=>u("div",{className:w("bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-xs flex justify-center items-center",n&&"scrollable"!==e?"bg-white/30 text-white":"text-secondary-text group-hover/btn:text-primary-main"),children:t}),xd=({page:e,showCounter:t,...n})=>(l,a)=>{const i=l.type;if("group"!==i&&"link"!==i)return null;switch(i){case"group":return(({page:e,currentTab:t,showCounter:n,onClick:l,tabsMode:a})=>(i,r)=>{const s=t===i,o=i.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(i.ref))).length:0;return u("div",{className:hd("block",s,a),role:"tab","aria-selected":s,onClick:()=>l(i),children:p("div",{className:w("flex flex-1 items-center justify-center h-full",hd("text",s,a)),children:[u("span",{children:i.title}),n&&o?pd(a,o,s):null]})},`group-${String(r)}`)})({page:e,showCounter:t,...n})(l,a);case"link":return u(ud,{tab:l,...n},String(a));default:Sr(i)}return null},gd=x((({tabs:e,...t})=>u("div",{className:"flex p-1 m-auto bg-main-gray rounded-md",children:e?.map(xd({...t}))}))),fd=x((e=>{const{tabs:t,...n}=e,[l,a]=Kl({itemCount:t?.length||0});return p("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u(Ol,{containerRef:l,snapAlign:"snap-start",onVisibleIndicesChange:a.handleVisibleIndicesChange,children:t?.map(xd({...n}))})}),a.canScrollLeft?u(vn,{className:"absolute z-40 top-0 left-6",onClick:a.scrollLeft}):null,a.canScrollRight?u(yn,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:a.scrollRight}):null]})})),bd=x((e=>{const{className:t="",isSticky:n,tabs:r,...s}=e,[o,c]=l(r?r[0]:void 0);a((()=>{r&&r[0]&&yd(r[0])}),[]),a((()=>{"group"===o?.type&&b.subject("tab",{type:o.type,label:o.ref})}),[o]);const d=i((e=>{yd(e),c(e)}),[]);return u(k,{className:w("relative box-border flex gap-x-1 w-full overflow-x-auto no-scrollbar",n?"sticky top-1 z-20":"",t),defaultPadding:"p-0",role:"tablist",...s,children:vd({tabs:r,onClick:d,currentTab:o,...s})})})),vd=({tabsMode:e,tabs:t,...n})=>{switch(e){case"wideScreen":return t?.map(xd({tabsMode:e,...n}));case"centered":return u(gd,{tabs:t,tabsMode:e,...n});case"scrollable":return u(fd,{tabs:t,tabsMode:e,...n})}return null},yd=e=>{"group"===e.type&&b.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&b.fire("tab",{type:e.type,label:e.href})},Nd=x((({isOpen:e,onClick:t})=>p(se,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[u("div",{className:"text-h4",children:e?"Скрыть":"Показать"}),u($e,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-s",iconVersion:"white",width:"20",height:"20"})]}))),wd={Buttons:({buttons:e})=>Yt(e),Img:({image:e})=>e?.src?u(Pt,{image:e}):null,List:({isDotted:e,...t})=>u(ka,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-secondary-text text-l font-light",children:t}):null]}),Table:x((({isVisible:e,displayTable:t,dataUrl:n,pdfUrl:l,isOpen:a})=>e?u(Nd,{isOpen:a,onClick:()=>{t({dataUrl:n,pdfUrl:l})}}):null))},Sd=({rowIdx:e,cellIdx:t,setTableInner:n,tableInner:i,openTableInnerIdx:r,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=l(!0);a((()=>{t===r&&i||m(!0)}),[i,r]);return p("div",{className:"Table"===o?.tableCellType?"ml-5xl":"first:pt-lg last:pb-lg pl-5xl",children:[c>0?u("div",{className:"h-5"}):null,kd({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),n(e)},isVisible:d}})]},String(c))},kd=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:n,...l}=e;if(!n||!(n in wd))return null;return u(wd[n],{...t,...l})},Cd=x((({cells:e,rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r})=>u("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(Sd({rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r})):null}))),Id=x((({rows:e})=>{const t=e?.[0]?.length??0,[n,l]=fn({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(Td(n)),Nn({...l,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Td=e=>(t,n)=>{if(!t?.length)return null;const[l,...a]=t,i=[...Array(e).keys()].reduce(((e,t)=>140*(a?.[t]?.cols?.length??1)+e),0),r=["flex duration-1000 text-center",0!==n?"font-normal":"font-light"].join(" ");return p("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[l?.data?u("div",{className:"text-xl font-light w-[214px] py-lg ",children:l.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:r,style:{transform:`translateX(-${i}px)`},children:a?.map(((t,n)=>p("div",{className:"flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider",children:[t?.data?u("div",{className:"text-xl font-light",children:t.data}):null,t?.cols?Bd(t.cols,e):null]},`row${n}`)))})})]},String(n))},Bd=(e,t)=>e?.length>0?u("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>u("div",{className:"w-20 text-h6 mr-lg first:ml-3xl",children:e},String(t))))}):null,Pd=x((({activeTabIndex:e,items:t})=>{const[n,a]=l({}),r=i((e=>a((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,l)=>{const a=`activeTabIdx:${e}-tableIdx:${l}`;return p("div",{className:"w-full",children:[p("div",{className:"flex p-4 bg-gray text-center justify-center cursor-pointer relative",onClick:()=>r(a),children:[u(me,{size:"text-xl",font:"font-light",children:t.title}),u(Pt,{image:{icon:n[a]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),u("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(n[a]?"h-0":""),children:u("div",{className:"relative",children:u(Id,{rows:t.rowsData})})})]},a)}))})})),Rd=x((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:l})=>p("div",{className:"flex justify-between w-full px-s",children:[e&&e.length>1?u("div",{className:"flex bg-secondary-light p-2xs rounded-md",children:e.map(((e,t)=>u("div",{className:"rounded-md text-xl font-light px-m py-s cursor-pointer "+(t===n?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>l(t),children:e||t+1},e)))}):null,t?u(se,{href:t,version:"secondary",target:"_blank",appendLeft:u($e,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-3xs",width:"20",height:"20"}),text:"Скачать в PDF"}):null]})));async function Md(e){const t=await fetch(e);return await t.json()}const Vd=x((({dataUrl:e,pdfUrl:t,onClick:n})=>{const{tableData:a}=function(e){const{data:t}=_(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),Md);return t||{}}(e),[r,s]=l(0),o=i((e=>s(e)),[]),c=a?.[r]?.items??[],d=a?.map((e=>e.currency??""));return p("div",a?{className:"bg-white z-10",children:[u(Rd,{currencies:d,activeTabIndex:r,setActiveTabIndex:o,linkToPDF:t}),u(Pd,{activeTabIndex:r,items:c}),u(Nd,{onClick:n,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(Nd,{onClick:n,isOpen:!0})]})})),zd=x((({children:e,tableInner:t,onHideContentClick:n})=>p("div",{className:"self-start flex flex-col",role:"row",children:[u("div",{className:"flex",children:e}),t?u("div",{className:"origin-top animate-expansion",children:u(Vd,{...t,onClick:n})}):null]}))),_d=x((({row:{header:e,data:t},activeIndex:n,rowIdx:a,...r})=>{const[s,o]=l(void 0),c=i((e=>o(e)),[]),[d,m]=l(void 0),h=i((e=>m(e)),[]);return p(zd,{onHideContentClick:()=>o(void 0),tableInner:s,...r,children:[u("div",{className:"text-s py-lg w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:p("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?u(Pt,{className:"mr-m max-w-6",image:e.icon,width:"24",height:"24"}):null,e?.title?u("div",{className:"text-m font-light",children:e?.title}):null]})}),t?.length?u(ni,{activeIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u(Cd,{cells:e,rowIdx:a,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...r},String(t))))}):null]})})),$d=x((({className:e="",title:t,description:n,rowHeaders:l,tariffsColumns:a,hiddenRowsNum:i=0,...r})=>{const s=a?.map((({data:e})=>e))||[],o=l?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=fn({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u(_d,{row:e,activeIndex:d,rowIdx:t,...r},String(t)))),[x,g]=i>0?[h.slice(0,-i),h.slice(-i)]:[h,[]];return p(k,{className:w("overflow-hidden relative space-y-xl",e),defaultPadding:"p-6xl",...r,children:[u(tn,{title:t,description:n,headlineVersion:"M",isPadding:!1}),i>0?u(Fa,{renderFoldableSection:({isUnfolded:e})=>p(jd,{controls:m,children:[x,u(Ua,{isUnfolded:e,children:g})]}),renderFoldButton:wi}):u(jd,{controls:m,children:h})]})})),jd=x((({children:e,controls:t})=>{const{isScrollAvailable:n}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,Nn({...t,btnClass:["top-28","top-11"],className:"right-7"})]}),n?u("div",{className:"absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white"}):null]})})),Dd=x((({className:e="",title:t,description:n,iconVersion:l,image:a,__html:i,items:r=[],...s})=>p(k,{className:w("flex gap-3 sm:gap-4 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===l?u("div",{className:"mt-1",children:Ad()}):null,"big"===l?Od(a):null,p("div",{className:"flex flex-col w-fit gap-1 sm:gap-2",children:[t?u(me,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,n?Ld(n):null,r?.length?Ed(r,!0):null,i?u(La,{__html:i}):null]})]}))),Ad=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),Od=e=>e?.src?u(Pt,{className:"h-fit flex-shrink-0",image:e}):null,Ld=e=>u(de,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),Ed=(e,t)=>u("ul",{className:w("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(me,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),Fd=x((({className:e,padding:t,headlineVersion:n="S",listItemSize:l="M",...a})=>u(k,{className:e,padding:"p-0",...a,children:u(ac,{className:"h-full",defaultPadding:"p-xl",padding:t,headlineVersion:n,listItemSize:l,...a})}))),Ud=x((({className:e="",gap:t="",isPadding:n=!1,isInnerPadding:l=!0,version:a="transparent",isTheme:i=!1,...r})=>u(k,{className:w("relative flex flex-col",Us[t],e),defaultPadding:n?"p-6xl":"",version:a,isTheme:i,...r,children:$l({...r,extraProps:{className:"w-full",padding:l?"":"p-0"}})})));Ud.childrenTypes=[];const Hd=e=>(e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12})(e)<10?"py-6 px-11":"py-12 px-32",Xd=x((({className:e,title:t,url:n,previewImg:l,...a})=>{const i=J();return p(k,{className:e,defaultPadding:Hd(e),...a,children:[u(tn,{title:t,headlineVersion:"M"}),n?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:W(i)(l?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:W(i)(n)})}):null]})})),Wd={ApplicationForm:Ft,BenefitsBlock:Xt,Bonus:nn,BonusBenefitsBlock:hn,BusinessBlock:xn,ButtonsBlock:gn,Calculator:wl,CardTransfer:Pl,Carousel:Zl,CarouselBankHistoryCard:Ql,CarouselCard:aa,CarouselCatalogCard:ra,CarouselEventCard:ca,CarouselInvestmentCard:pa,CarouselLinks:ba,CarouselProductCard:Ca,CarouselProgramsCard:Ma,CarouselRecommendationCard:Oa,CarouselRichTextCard:Ea,CarouselTariffsCard:Wa,ComparisonTable:ui,ContactsBlock:xi,DepositFiltration:Vi,ErrorBlock:_i,ExchangeRateTile:hr,Footer:as,GracePeriod:is,Header:Fs,Headline:tn,HorizontalLayout:Hs,ImgBlock:Xs,InsuranceAmountBlock:Ys,InvestmentInfo:to,LinkDocs:ho,MobileAppTile:go,MortgageFiltration:bo,OfficeMap:Eo,OfficeServicesBlock:Fo,ParagraphBlock:Ho,PictureText:oc,Placeholder:cc,ProductBlock:pc,ProductGallery:xc,ProductTile:fc,PromoTile:bc,RepresentativeOfficeInfo:yc,RichTextBlock:kc,RollupItem:Ic,SafeDepositRental:Yc,StepsBlock:nd,SwipeListControlBlock:sd,Tabs:bd,TariffsTable:$d,TextBlock:Dd,Tile:Fd,VerticalLayout:Ud,Video:Xd,ExchangeRateOffice:Fi},Kd=864e5;function Gd(e,t,n=globalThis?.localStorage){const l=i((async(...l)=>{const a=`async:${e}`,i=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<Kd?t:void 0}(n.getItem(a));if(i)return i;const r=await t(...l);return n.setItem(a,JSON.stringify({data:r,timestamp:Date.now()})),r}),[e,t]);return _(e,l)}const Jd=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}};const Yd=["Header","Footer"],qd=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Zd(e=globalThis){const t=s(new Map);a((()=>N.subscribe("intersection",(({block:e,intersection:n})=>{t.current&&t.current.set(e,n)}))),[]),a((()=>{const n=((e,t=600)=>{let n;const l=(...a)=>{l.dispose(),n=setTimeout((()=>{e(...a)}),t)};return l.dispose=()=>{n&&clearTimeout(n)},l})((()=>{!function(e){const t=`#${n=e?.anchor,n?.replace("#","")||""}`;var n;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!Yd.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?Hn(qd)(t):[];return n}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",n),()=>{n.dispose(),e.removeEventListener("scroll",n)}}),[e])}const Qd="cookie",em=x((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:n,open:l,close:a}=Ar(Qd);Cr((()=>{globalThis.localStorage?.getItem(Qd)||l()}),[],3e3);const r=i((()=>{globalThis.localStorage?.setItem(Qd,"true"),a()}),[a]);return n?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:p("div",{className:"bg-white m-5 p-5 sm:m-6 sm:p-6 rounded-md flex sm:items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"sm:flex-1",children:p(de,{size:"text-s",font:"font-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(oa,{isRemote:!0,className:w(tm(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(oa,{isRemote:!0,className:w(tm(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"ml-3 sm:ml-0 w-24 flex justify-end",children:u(wr,{className:"bg-main-gray rounded-md",onClick:r})})]})}):null})),tm=e=>["inline mx-1",e?"text-green-dark":""],nm=h();const lm=x((({className:e,onClick:t,ariaLabel:n})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:am()}))),am=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("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"}),u("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"})]})},im=x((({className:e=""})=>{const t=function(e){const[t,n]=l(0);return a((()=>{(async()=>{const[t]=await nm.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:i((async()=>{n(await nm.like(e))}),[e]),dislike:i((async()=>{n(await nm.dislike(e))}),[e])}}(J().pathname);return p("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:[u(lm,{onClick:G(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(lm,{onClick:G(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),rm=x((({className:e,blocksRegistry:t,blockDecorator:n,data:r={}})=>{const{style:s,slots:o,likeControl:c,colorPalette:m="pc"}=r,h={key:"",page:r,blocksRegistry:t,blockDecorator:n,parent:r},x=xr(d.SITEMAP||"sitemap",r?.fallback),[g,f]=function(e="Москва"){const t=Jd(),[n,r]=l(t?.region??{name:e}),{data:s}=Gd("/api/v1/region",D);return a((()=>{r(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,i((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),r(e)}),[])]}(x?.defaultLocation);Zd();const[b,{setTrue:v,setFalse:y}]=Ve();return kr({onOpen:v,onClose:y}),p("section",{className:w("relative",s,e,b?"overflow-hidden h-screen":""),"data-theme":m,children:[o?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:_l(o?.header,{...h,slotName:"header",extraProps:{sitemap:x,location:g}})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[$l({block:r,options:h,extraProps:{className:"scroll-mt-12"}}),_l(o?.footer,{...h,slotName:"footer",extraProps:{sitemap:x,location:g}})]}),c?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(im,{className:"rounded-tl-3xl sticky bottom-0 pointer-events-auto"})}):null,u(em,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}}),u(Hr,{topItems:x?.topItems}),u(xs,{currentLocation:g,foreignOffices:x?.foreignOffices,onChangeLocation:f})]})}));rm.childrenTypes=[],rm.slots=()=>["header","footer"];e.Blocks=Wd,e.ContentPage=rm,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=G,e.joinList=Zs,e.packageVersion="0.12.12",e.projectSettings=d,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=X,e.useRouter=J,Object.defineProperty(e,"__esModule",{value:!0})}));