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

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 (685) hide show
  1. package/bundle/EventBus/EventBus.d.ts +6 -5
  2. package/bundle/EventBus/EventMap.d.ts +1 -4
  3. package/bundle/ProjectSettings.d.ts +2 -0
  4. package/bundle/bundle.umd.js +183 -99
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/Footer/FooterDataProps.d.ts +8 -3
  7. package/bundle/components/Tabs/LinkTab.d.ts +0 -1
  8. package/bundle/components/Tabs/Tabs.d.ts +0 -4
  9. package/bundle/services/BlockRouter/BlockIntersection.d.ts +2 -0
  10. package/bundle/services/BlockRouter/BlockRouter.d.ts +23 -0
  11. package/bundle/services/BlockRouter/findActiveBlock.d.ts +3 -0
  12. package/bundle/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  13. package/bundle/services/BlockRouter/useBlockRouter.d.ts +2 -0
  14. package/bundle/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  15. package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  16. package/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  17. package/bundle/utils/debounce.d.ts +5 -0
  18. package/dist/EventBus/EventBus.d.ts +6 -5
  19. package/dist/EventBus/EventBus.js +5 -3
  20. package/dist/EventBus/EventBus.js.map +1 -1
  21. package/dist/EventBus/EventMap.d.ts +1 -4
  22. package/dist/ProjectSettings.d.ts +2 -0
  23. package/dist/ProjectSettings.js +3 -0
  24. package/dist/ProjectSettings.js.map +1 -1
  25. package/dist/components/Accordion/Accordion.js +1 -1
  26. package/dist/components/Accordion/Accordion.js.map +1 -1
  27. package/dist/components/AccordionItem/AccordionItem.mobile.js +1 -1
  28. package/dist/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  29. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  30. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  31. package/dist/components/Bonus/Bonus.js +2 -2
  32. package/dist/components/Bonus/Bonus.js.map +1 -1
  33. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  34. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  35. package/dist/components/BusinessBlock/BusinessBlock.js +1 -1
  36. package/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
  37. package/dist/components/Calculator/DepositCalculatorForm.js +0 -1
  38. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  39. package/dist/components/Calculator/renderProposal.js +2 -2
  40. package/dist/components/Calculator/renderProposal.js.map +1 -1
  41. package/dist/components/CardTransfer/CardTransfer.js +1 -1
  42. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  43. package/dist/components/Catalog/Catalog.js +1 -1
  44. package/dist/components/Catalog/Catalog.js.map +1 -1
  45. package/dist/components/ComparisonTable/ComparisonTable.js +2 -2
  46. package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  47. package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  48. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  49. package/dist/components/ContentPage/ContentPage.js +2 -0
  50. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  51. package/dist/components/ContentPage/useContentPageData.js +4 -8
  52. package/dist/components/ContentPage/useContentPageData.js.map +1 -1
  53. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  54. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  55. package/dist/components/Footer/Footer.js +2 -2
  56. package/dist/components/Footer/Footer.js.map +1 -1
  57. package/dist/components/Footer/FooterDataProps.d.ts +8 -3
  58. package/dist/components/Footer/MediaButton.js +1 -1
  59. package/dist/components/Footer/MediaButton.js.map +1 -1
  60. package/dist/components/Gallery/Gallery.mobile.js +1 -1
  61. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  62. package/dist/components/Gallery/GalleryCardInner.js +1 -1
  63. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  64. package/dist/components/GracePeriod/GracePeriod.js +2 -2
  65. package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  66. package/dist/components/Header/Header.js +1 -1
  67. package/dist/components/Header/Header.js.map +1 -1
  68. package/dist/components/Header/Header.mobile.js +1 -1
  69. package/dist/components/Header/Header.mobile.js.map +1 -1
  70. package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
  71. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  72. package/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
  73. package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  74. package/dist/components/Header/HeaderTop.js +1 -1
  75. package/dist/components/Header/HeaderTop.js.map +1 -1
  76. package/dist/components/Headline/Headline.js +1 -1
  77. package/dist/components/Headline/Headline.js.map +1 -1
  78. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
  79. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  80. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
  81. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  82. package/dist/components/LinkDocs/LinkDocs.js +1 -1
  83. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  84. package/dist/components/LinkList/LinkList.js +1 -1
  85. package/dist/components/LinkList/LinkList.js.map +1 -1
  86. package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  87. package/dist/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
  88. package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  89. package/dist/components/OfficeMap/useOfficeMap.js +3 -4
  90. package/dist/components/OfficeMap/useOfficeMap.js.map +1 -1
  91. package/dist/components/ProductBlock/ProductBlock.js +1 -1
  92. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  93. package/dist/components/ProductGallery/ProductGallery.js +2 -2
  94. package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  95. package/dist/components/StepsBlock/StepsBlock.js +2 -2
  96. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  97. package/dist/components/StepsBlock/StepsBlock.mobile.js +3 -3
  98. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  99. package/dist/components/Tabs/LinkTab.d.ts +0 -1
  100. package/dist/components/Tabs/LinkTab.js +2 -8
  101. package/dist/components/Tabs/LinkTab.js.map +1 -1
  102. package/dist/components/Tabs/Tabs.d.ts +0 -4
  103. package/dist/components/Tabs/Tabs.js +6 -12
  104. package/dist/components/Tabs/Tabs.js.map +1 -1
  105. package/dist/components/TariffsTable/TariffsTable.js +1 -1
  106. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  107. package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
  108. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  109. package/dist/hooks/useLink.js +11 -2
  110. package/dist/hooks/useLink.js.map +1 -1
  111. package/dist/services/BlockRouter/BlockIntersection.d.ts +2 -0
  112. package/dist/services/BlockRouter/BlockIntersection.js +2 -0
  113. package/dist/services/BlockRouter/BlockIntersection.js.map +1 -0
  114. package/dist/services/BlockRouter/BlockRouter.d.ts +23 -0
  115. package/dist/services/BlockRouter/BlockRouter.js +32 -0
  116. package/dist/services/BlockRouter/BlockRouter.js.map +1 -0
  117. package/dist/services/BlockRouter/findActiveBlock.d.ts +3 -0
  118. package/dist/services/BlockRouter/findActiveBlock.js +15 -0
  119. package/dist/services/BlockRouter/findActiveBlock.js.map +1 -0
  120. package/dist/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  121. package/dist/services/BlockRouter/useBlockIntersectionObserver.js +28 -0
  122. package/dist/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
  123. package/dist/services/BlockRouter/useBlockRouter.d.ts +2 -0
  124. package/dist/services/BlockRouter/useBlockRouter.js +8 -0
  125. package/dist/services/BlockRouter/useBlockRouter.js.map +1 -0
  126. package/dist/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  127. package/dist/services/BlockRouter/useBlockRouterProvider.js +37 -0
  128. package/dist/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
  129. package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  130. package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  131. package/dist/ui-kit/BlockWrapper.js +6 -20
  132. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  133. package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
  134. package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  135. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -1
  136. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  137. package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  138. package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  139. package/dist/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  140. package/dist/ui-kit/Select/Select.js +1 -1
  141. package/dist/ui-kit/Select/Select.js.map +1 -1
  142. package/dist/ui-kit/YandexMap/useYandexMaps.js +1 -1
  143. package/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  144. package/dist/utils/adjustHref.js +3 -1
  145. package/dist/utils/adjustHref.js.map +1 -1
  146. package/dist/utils/debounce.d.ts +5 -0
  147. package/dist/utils/debounce.js +19 -0
  148. package/dist/utils/debounce.js.map +1 -0
  149. package/lib/EventBus/EventBus.d.ts +6 -5
  150. package/lib/EventBus/EventBus.js +5 -3
  151. package/lib/EventBus/EventBus.js.map +1 -1
  152. package/lib/EventBus/EventMap.d.ts +1 -4
  153. package/lib/ProjectSettings.d.ts +2 -0
  154. package/lib/ProjectSettings.js +3 -0
  155. package/lib/ProjectSettings.js.map +1 -1
  156. package/lib/common.css +1 -1
  157. package/lib/components/Accordion/Accordion.js +1 -1
  158. package/lib/components/Accordion/Accordion.js.map +1 -1
  159. package/lib/components/AccordionItem/AccordionItem.mobile.js +1 -1
  160. package/lib/components/AccordionItem/AccordionItem.mobile.js.map +1 -1
  161. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  162. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  163. package/lib/components/Bonus/Bonus.js +2 -2
  164. package/lib/components/Bonus/Bonus.js.map +1 -1
  165. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  166. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  167. package/lib/components/BusinessBlock/BusinessBlock.js +1 -1
  168. package/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
  169. package/lib/components/Calculator/DepositCalculatorForm.js +0 -1
  170. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  171. package/lib/components/Calculator/renderProposal.js +2 -2
  172. package/lib/components/Calculator/renderProposal.js.map +1 -1
  173. package/lib/components/CardTransfer/CardTransfer.js +1 -1
  174. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  175. package/lib/components/Catalog/Catalog.js +1 -1
  176. package/lib/components/Catalog/Catalog.js.map +1 -1
  177. package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
  178. package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  179. package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  180. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  181. package/lib/components/ContentPage/ContentPage.js +2 -0
  182. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  183. package/lib/components/ContentPage/useContentPageData.js +4 -8
  184. package/lib/components/ContentPage/useContentPageData.js.map +1 -1
  185. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  186. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  187. package/lib/components/Footer/Footer.js +2 -2
  188. package/lib/components/Footer/Footer.js.map +1 -1
  189. package/lib/components/Footer/FooterDataProps.d.ts +8 -3
  190. package/lib/components/Footer/MediaButton.js +1 -1
  191. package/lib/components/Footer/MediaButton.js.map +1 -1
  192. package/lib/components/Gallery/Gallery.mobile.js +1 -1
  193. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  194. package/lib/components/Gallery/GalleryCardInner.js +1 -1
  195. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  196. package/lib/components/GracePeriod/GracePeriod.js +2 -2
  197. package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  198. package/lib/components/Header/Header.js +1 -1
  199. package/lib/components/Header/Header.js.map +1 -1
  200. package/lib/components/Header/Header.mobile.js +1 -1
  201. package/lib/components/Header/Header.mobile.js.map +1 -1
  202. package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
  203. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  204. package/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
  205. package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  206. package/lib/components/Header/HeaderTop.js +1 -1
  207. package/lib/components/Header/HeaderTop.js.map +1 -1
  208. package/lib/components/Headline/Headline.js +1 -1
  209. package/lib/components/Headline/Headline.js.map +1 -1
  210. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
  211. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  212. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
  213. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  214. package/lib/components/LinkDocs/LinkDocs.js +1 -1
  215. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  216. package/lib/components/LinkList/LinkList.js +1 -1
  217. package/lib/components/LinkList/LinkList.js.map +1 -1
  218. package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  219. package/lib/components/MobileAppTile/MobileAppTile.mobile.js +1 -1
  220. package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +1 -1
  221. package/lib/components/OfficeMap/useOfficeMap.js +3 -4
  222. package/lib/components/OfficeMap/useOfficeMap.js.map +1 -1
  223. package/lib/components/ProductBlock/ProductBlock.js +1 -1
  224. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  225. package/lib/components/ProductGallery/ProductGallery.js +2 -2
  226. package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  227. package/lib/components/Recommendation/Recommendation.fixture.d.ts +3 -1
  228. package/lib/components/StepsBlock/StepsBlock.js +2 -2
  229. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  230. package/lib/components/StepsBlock/StepsBlock.mobile.js +3 -3
  231. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  232. package/lib/components/Tabs/LinkTab.d.ts +0 -1
  233. package/lib/components/Tabs/LinkTab.js +2 -8
  234. package/lib/components/Tabs/LinkTab.js.map +1 -1
  235. package/lib/components/Tabs/Tabs.d.ts +0 -4
  236. package/lib/components/Tabs/Tabs.js +7 -13
  237. package/lib/components/Tabs/Tabs.js.map +1 -1
  238. package/lib/components/TariffsTable/TariffsTable.js +1 -1
  239. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  240. package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
  241. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  242. package/lib/hooks/useLink.js +11 -2
  243. package/lib/hooks/useLink.js.map +1 -1
  244. package/lib/services/BlockRouter/BlockIntersection.d.ts +2 -0
  245. package/lib/services/BlockRouter/BlockIntersection.js +2 -0
  246. package/lib/services/BlockRouter/BlockIntersection.js.map +1 -0
  247. package/lib/services/BlockRouter/BlockRouter.d.ts +23 -0
  248. package/lib/services/BlockRouter/BlockRouter.js +29 -0
  249. package/lib/services/BlockRouter/BlockRouter.js.map +1 -0
  250. package/lib/services/BlockRouter/findActiveBlock.d.ts +3 -0
  251. package/lib/services/BlockRouter/findActiveBlock.js +12 -0
  252. package/lib/services/BlockRouter/findActiveBlock.js.map +1 -0
  253. package/lib/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  254. package/lib/services/BlockRouter/useBlockIntersectionObserver.js +25 -0
  255. package/lib/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
  256. package/lib/services/BlockRouter/useBlockRouter.d.ts +2 -0
  257. package/lib/services/BlockRouter/useBlockRouter.js +5 -0
  258. package/lib/services/BlockRouter/useBlockRouter.js.map +1 -0
  259. package/lib/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  260. package/lib/services/BlockRouter/useBlockRouterProvider.js +34 -0
  261. package/lib/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
  262. package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  263. package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  264. package/lib/ui-kit/BlockWrapper.js +7 -21
  265. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  266. package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
  267. package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  268. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -1
  269. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  270. package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  271. package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  272. package/lib/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  273. package/lib/ui-kit/Select/Select.js +1 -1
  274. package/lib/ui-kit/Select/Select.js.map +1 -1
  275. package/lib/ui-kit/YandexMap/useYandexMaps.js +1 -1
  276. package/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  277. package/lib/utils/adjustHref.js +3 -1
  278. package/lib/utils/adjustHref.js.map +1 -1
  279. package/lib/utils/debounce.d.ts +5 -0
  280. package/lib/utils/debounce.js +16 -0
  281. package/lib/utils/debounce.js.map +1 -0
  282. package/mobile/bundle/EventBus/EventBus.d.ts +6 -5
  283. package/mobile/bundle/EventBus/EventMap.d.ts +1 -4
  284. package/mobile/bundle/ProjectSettings.d.ts +2 -0
  285. package/mobile/bundle/bundle.umd.js +145 -49
  286. package/mobile/bundle/bundle.umd.min.js +1 -1
  287. package/mobile/bundle/components/Footer/FooterDataProps.d.ts +8 -3
  288. package/mobile/bundle/components/Tabs/LinkTab.d.ts +0 -1
  289. package/mobile/bundle/components/Tabs/Tabs.d.ts +0 -4
  290. package/mobile/bundle/services/BlockRouter/BlockIntersection.d.ts +2 -0
  291. package/mobile/bundle/services/BlockRouter/BlockRouter.d.ts +23 -0
  292. package/mobile/bundle/services/BlockRouter/findActiveBlock.d.ts +3 -0
  293. package/mobile/bundle/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  294. package/mobile/bundle/services/BlockRouter/useBlockRouter.d.ts +2 -0
  295. package/mobile/bundle/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  296. package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  297. package/mobile/bundle/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  298. package/mobile/bundle/utils/debounce.d.ts +5 -0
  299. package/mobile/dist/EventBus/EventBus.d.ts +6 -5
  300. package/mobile/dist/EventBus/EventBus.js +5 -3
  301. package/mobile/dist/EventBus/EventBus.js.map +1 -1
  302. package/mobile/dist/EventBus/EventMap.d.ts +1 -4
  303. package/mobile/dist/ProjectSettings.d.ts +2 -0
  304. package/mobile/dist/ProjectSettings.js +3 -0
  305. package/mobile/dist/ProjectSettings.js.map +1 -1
  306. package/mobile/dist/components/AccordionItem/AccordionItem.js +1 -1
  307. package/mobile/dist/components/AccordionItem/AccordionItem.js.map +1 -1
  308. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  309. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  310. package/mobile/dist/components/Bonus/Bonus.js +2 -2
  311. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  312. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  313. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  314. package/mobile/dist/components/BusinessBlock/BusinessBlock.js +1 -1
  315. package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
  316. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +0 -1
  317. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  318. package/mobile/dist/components/Calculator/renderProposal.js +2 -2
  319. package/mobile/dist/components/Calculator/renderProposal.js.map +1 -1
  320. package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
  321. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  322. package/mobile/dist/components/Catalog/Catalog.js +1 -1
  323. package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
  324. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
  325. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  326. package/mobile/dist/components/ContentPage/ContentPage.js +2 -0
  327. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  328. package/mobile/dist/components/ContentPage/useContentPageData.js +4 -8
  329. package/mobile/dist/components/ContentPage/useContentPageData.js.map +1 -1
  330. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  331. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  332. package/mobile/dist/components/Footer/FooterDataProps.d.ts +8 -3
  333. package/mobile/dist/components/Footer/MediaButton.js +1 -1
  334. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  335. package/mobile/dist/components/Gallery/Gallery.js +1 -1
  336. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  337. package/mobile/dist/components/Gallery/GalleryCardInner.js +1 -1
  338. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  339. package/mobile/dist/components/GracePeriod/GracePeriod.js +2 -2
  340. package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  341. package/mobile/dist/components/Header/Header.js +1 -1
  342. package/mobile/dist/components/Header/Header.js.map +1 -1
  343. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
  344. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  345. package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
  346. package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  347. package/mobile/dist/components/Header/HeaderTop.js +1 -1
  348. package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
  349. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
  350. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  351. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
  352. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  353. package/mobile/dist/components/LinkList/LinkList.js +1 -1
  354. package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
  355. package/mobile/dist/components/MobileAppTile/MobileAppTile.js +1 -1
  356. package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
  357. package/mobile/dist/components/OfficeMap/useOfficeMap.js +3 -4
  358. package/mobile/dist/components/OfficeMap/useOfficeMap.js.map +1 -1
  359. package/mobile/dist/components/ProductGallery/ProductGallery.js +2 -2
  360. package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
  361. package/mobile/dist/components/StepsBlock/StepsBlock.js +3 -3
  362. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  363. package/mobile/dist/components/Tabs/LinkTab.d.ts +0 -1
  364. package/mobile/dist/components/Tabs/LinkTab.js +2 -8
  365. package/mobile/dist/components/Tabs/LinkTab.js.map +1 -1
  366. package/mobile/dist/components/Tabs/Tabs.d.ts +0 -4
  367. package/mobile/dist/components/Tabs/Tabs.js +6 -12
  368. package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
  369. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
  370. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  371. package/mobile/dist/hooks/useLink.js +11 -2
  372. package/mobile/dist/hooks/useLink.js.map +1 -1
  373. package/mobile/dist/services/BlockRouter/BlockIntersection.d.ts +2 -0
  374. package/mobile/dist/services/BlockRouter/BlockIntersection.js +2 -0
  375. package/mobile/dist/services/BlockRouter/BlockIntersection.js.map +1 -0
  376. package/mobile/dist/services/BlockRouter/BlockRouter.d.ts +23 -0
  377. package/mobile/dist/services/BlockRouter/BlockRouter.js +32 -0
  378. package/mobile/dist/services/BlockRouter/BlockRouter.js.map +1 -0
  379. package/mobile/dist/services/BlockRouter/findActiveBlock.d.ts +3 -0
  380. package/mobile/dist/services/BlockRouter/findActiveBlock.js +15 -0
  381. package/mobile/dist/services/BlockRouter/findActiveBlock.js.map +1 -0
  382. package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  383. package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.js +28 -0
  384. package/mobile/dist/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
  385. package/mobile/dist/services/BlockRouter/useBlockRouter.d.ts +2 -0
  386. package/mobile/dist/services/BlockRouter/useBlockRouter.js +8 -0
  387. package/mobile/dist/services/BlockRouter/useBlockRouter.js.map +1 -0
  388. package/mobile/dist/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  389. package/mobile/dist/services/BlockRouter/useBlockRouterProvider.js +37 -0
  390. package/mobile/dist/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
  391. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
  392. package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  393. package/mobile/dist/ui-kit/BlockWrapper.js +6 -20
  394. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  395. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +1 -1
  396. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  397. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  398. package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  399. package/mobile/dist/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  400. package/mobile/dist/ui-kit/Select/Select.js +1 -1
  401. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  402. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js +1 -1
  403. package/mobile/dist/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  404. package/mobile/dist/utils/adjustHref.js +3 -1
  405. package/mobile/dist/utils/adjustHref.js.map +1 -1
  406. package/mobile/dist/utils/debounce.d.ts +5 -0
  407. package/mobile/dist/utils/debounce.js +19 -0
  408. package/mobile/dist/utils/debounce.js.map +1 -0
  409. package/mobile/lib/EventBus/EventBus.d.ts +6 -5
  410. package/mobile/lib/EventBus/EventBus.js +5 -3
  411. package/mobile/lib/EventBus/EventBus.js.map +1 -1
  412. package/mobile/lib/EventBus/EventMap.d.ts +1 -4
  413. package/mobile/lib/ProjectSettings.d.ts +2 -0
  414. package/mobile/lib/ProjectSettings.js +3 -0
  415. package/mobile/lib/ProjectSettings.js.map +1 -1
  416. package/mobile/lib/components/AccordionItem/AccordionItem.js +1 -1
  417. package/mobile/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  418. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  419. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  420. package/mobile/lib/components/Bonus/Bonus.js +2 -2
  421. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  422. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
  423. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  424. package/mobile/lib/components/BusinessBlock/BusinessBlock.js +1 -1
  425. package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
  426. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +0 -1
  427. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  428. package/mobile/lib/components/Calculator/renderProposal.js +2 -2
  429. package/mobile/lib/components/Calculator/renderProposal.js.map +1 -1
  430. package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
  431. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  432. package/mobile/lib/components/Catalog/Catalog.js +1 -1
  433. package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
  434. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
  435. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  436. package/mobile/lib/components/ContentPage/ContentPage.js +2 -0
  437. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  438. package/mobile/lib/components/ContentPage/useContentPageData.js +4 -8
  439. package/mobile/lib/components/ContentPage/useContentPageData.js.map +1 -1
  440. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +1 -1
  441. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  442. package/mobile/lib/components/Footer/FooterDataProps.d.ts +8 -3
  443. package/mobile/lib/components/Footer/MediaButton.js +1 -1
  444. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  445. package/mobile/lib/components/Gallery/Gallery.js +1 -1
  446. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  447. package/mobile/lib/components/Gallery/GalleryCardInner.js +1 -1
  448. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  449. package/mobile/lib/components/GracePeriod/GracePeriod.js +2 -2
  450. package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  451. package/mobile/lib/components/Header/Header.js +1 -1
  452. package/mobile/lib/components/Header/Header.js.map +1 -1
  453. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
  454. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  455. package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
  456. package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
  457. package/mobile/lib/components/Header/HeaderTop.js +1 -1
  458. package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
  459. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
  460. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  461. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +3 -3
  462. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  463. package/mobile/lib/components/LinkList/LinkList.js +1 -1
  464. package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
  465. package/mobile/lib/components/MobileAppTile/MobileAppTile.js +1 -1
  466. package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
  467. package/mobile/lib/components/OfficeMap/useOfficeMap.js +3 -4
  468. package/mobile/lib/components/OfficeMap/useOfficeMap.js.map +1 -1
  469. package/mobile/lib/components/ProductGallery/ProductGallery.js +2 -2
  470. package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
  471. package/mobile/lib/components/StepsBlock/StepsBlock.js +3 -3
  472. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  473. package/mobile/lib/components/Tabs/LinkTab.d.ts +0 -1
  474. package/mobile/lib/components/Tabs/LinkTab.js +2 -8
  475. package/mobile/lib/components/Tabs/LinkTab.js.map +1 -1
  476. package/mobile/lib/components/Tabs/Tabs.d.ts +0 -4
  477. package/mobile/lib/components/Tabs/Tabs.js +7 -13
  478. package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
  479. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
  480. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  481. package/mobile/lib/hooks/useLink.js +11 -2
  482. package/mobile/lib/hooks/useLink.js.map +1 -1
  483. package/mobile/lib/services/BlockRouter/BlockIntersection.d.ts +2 -0
  484. package/mobile/lib/services/BlockRouter/BlockIntersection.js +2 -0
  485. package/mobile/lib/services/BlockRouter/BlockIntersection.js.map +1 -0
  486. package/mobile/lib/services/BlockRouter/BlockRouter.d.ts +23 -0
  487. package/mobile/lib/services/BlockRouter/BlockRouter.js +29 -0
  488. package/mobile/lib/services/BlockRouter/BlockRouter.js.map +1 -0
  489. package/mobile/lib/services/BlockRouter/findActiveBlock.d.ts +3 -0
  490. package/mobile/lib/services/BlockRouter/findActiveBlock.js +12 -0
  491. package/mobile/lib/services/BlockRouter/findActiveBlock.js.map +1 -0
  492. package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.d.ts +5 -0
  493. package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.js +25 -0
  494. package/mobile/lib/services/BlockRouter/useBlockIntersectionObserver.js.map +1 -0
  495. package/mobile/lib/services/BlockRouter/useBlockRouter.d.ts +2 -0
  496. package/mobile/lib/services/BlockRouter/useBlockRouter.js +5 -0
  497. package/mobile/lib/services/BlockRouter/useBlockRouter.js.map +1 -0
  498. package/mobile/lib/services/BlockRouter/useBlockRouterProvider.d.ts +2 -0
  499. package/mobile/lib/services/BlockRouter/useBlockRouterProvider.js +34 -0
  500. package/mobile/lib/services/BlockRouter/useBlockRouterProvider.js.map +1 -0
  501. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
  502. package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
  503. package/mobile/lib/ui-kit/BlockWrapper.js +7 -21
  504. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  505. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +1 -1
  506. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  507. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +3 -2
  508. package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
  509. package/mobile/lib/ui-kit/InnerTable/InnerTableProps.d.ts +0 -3
  510. package/mobile/lib/ui-kit/Select/Select.js +1 -1
  511. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  512. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js +1 -1
  513. package/mobile/lib/ui-kit/YandexMap/useYandexMaps.js.map +1 -1
  514. package/mobile/lib/utils/adjustHref.js +3 -1
  515. package/mobile/lib/utils/adjustHref.js.map +1 -1
  516. package/mobile/lib/utils/debounce.d.ts +5 -0
  517. package/mobile/lib/utils/debounce.js +16 -0
  518. package/mobile/lib/utils/debounce.js.map +1 -0
  519. package/mobile/src/EventBus/EventBus.ts +18 -14
  520. package/mobile/src/EventBus/EventMap.ts +1 -4
  521. package/mobile/src/ProjectSettings.ts +4 -0
  522. package/mobile/src/components/AccordionItem/AccordionItem.tsx +1 -1
  523. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  524. package/mobile/src/components/Bonus/Bonus.tsx +2 -4
  525. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
  526. package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
  527. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +0 -1
  528. package/mobile/src/components/Calculator/renderProposal.tsx +2 -2
  529. package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -1
  530. package/mobile/src/components/Catalog/Catalog.example.json +1 -1
  531. package/mobile/src/components/Catalog/Catalog.tsx +1 -1
  532. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  533. package/mobile/src/components/ContentPage/ContentPage.tsx +3 -0
  534. package/mobile/src/components/ContentPage/useContentPageData.ts +4 -8
  535. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  536. package/mobile/src/components/Footer/FooterDataProps.ts +8 -3
  537. package/mobile/src/components/Footer/MediaButton.tsx +1 -1
  538. package/mobile/src/components/Gallery/Gallery.tsx +1 -1
  539. package/mobile/src/components/Gallery/GalleryCardInner.tsx +1 -1
  540. package/mobile/src/components/GracePeriod/GracePeriod.tsx +2 -2
  541. package/mobile/src/components/Header/Header.tsx +1 -1
  542. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
  543. package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
  544. package/mobile/src/components/Header/HeaderTop.tsx +1 -1
  545. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
  546. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -6
  547. package/mobile/src/components/LinkList/LinkList.tsx +1 -1
  548. package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  549. package/mobile/src/components/OfficeMap/useOfficeMap.ts +4 -4
  550. package/mobile/src/components/ProductGallery/ProductGallery.tsx +2 -2
  551. package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -3
  552. package/mobile/src/components/Tabs/LinkTab.tsx +2 -10
  553. package/mobile/src/components/Tabs/Tabs.tsx +11 -19
  554. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
  555. package/mobile/src/hooks/useLink.ts +13 -2
  556. package/mobile/src/services/BlockRouter/BlockIntersection.ts +3 -0
  557. package/mobile/src/services/BlockRouter/BlockRouter.ts +51 -0
  558. package/mobile/src/services/BlockRouter/findActiveBlock.ts +20 -0
  559. package/mobile/src/services/BlockRouter/useBlockIntersectionObserver.ts +37 -0
  560. package/mobile/src/services/BlockRouter/useBlockRouter.ts +5 -0
  561. package/mobile/src/services/BlockRouter/useBlockRouterProvider.ts +49 -0
  562. package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -1
  563. package/mobile/src/ui-kit/BlockWrapper.tsx +9 -32
  564. package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
  565. package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +5 -2
  566. package/mobile/src/ui-kit/InnerTable/InnerTableProps.ts +0 -6
  567. package/mobile/src/ui-kit/Select/Select.tsx +2 -2
  568. package/mobile/src/ui-kit/YandexMap/useYandexMaps.ts +3 -1
  569. package/mobile/src/utils/adjustHref.ts +3 -1
  570. package/mobile/src/utils/debounce.ts +24 -0
  571. package/package.json +1 -1
  572. package/src/EventBus/EventBus.ts +18 -14
  573. package/src/EventBus/EventMap.ts +1 -4
  574. package/src/ProjectSettings.ts +4 -0
  575. package/src/components/Accordion/Accordion.tsx +1 -1
  576. package/src/components/AccordionItem/AccordionItem.mobile.tsx +1 -1
  577. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  578. package/src/components/Bonus/Bonus.tsx +2 -4
  579. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
  580. package/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
  581. package/src/components/Calculator/DepositCalculatorForm.tsx +0 -1
  582. package/src/components/Calculator/renderProposal.tsx +2 -2
  583. package/src/components/CardTransfer/CardTransfer.tsx +1 -1
  584. package/src/components/CarouselProgramsCard/CarouselProgramsCard.fixture.tsx +0 -1
  585. package/src/components/Catalog/Catalog.example.json +1 -1
  586. package/src/components/Catalog/Catalog.tsx +1 -1
  587. package/src/components/ComparisonTable/ComparisonTable.tsx +2 -2
  588. package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
  589. package/src/components/ContentPage/ContentPage.tsx +3 -0
  590. package/src/components/ContentPage/useContentPageData.ts +4 -8
  591. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
  592. package/src/components/Footer/Footer.tsx +2 -2
  593. package/src/components/Footer/FooterDataProps.ts +8 -3
  594. package/src/components/Footer/MediaButton.tsx +1 -1
  595. package/src/components/Gallery/Gallery.mobile.tsx +1 -1
  596. package/src/components/Gallery/GalleryCardInner.tsx +1 -1
  597. package/src/components/GracePeriod/GracePeriod.tsx +2 -2
  598. package/src/components/Header/Header.mobile.tsx +1 -1
  599. package/src/components/Header/Header.tsx +1 -1
  600. package/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
  601. package/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
  602. package/src/components/Header/HeaderTop.tsx +1 -1
  603. package/src/components/Headline/Headline.tsx +1 -1
  604. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
  605. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +3 -6
  606. package/src/components/LinkDocs/LinkDocs.tsx +1 -4
  607. package/src/components/LinkList/LinkList.tsx +1 -1
  608. package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +1 -1
  609. package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
  610. package/src/components/OfficeMap/useOfficeMap.ts +4 -4
  611. package/src/components/ProductBlock/ProductBlock.tsx +1 -1
  612. package/src/components/ProductGallery/ProductGallery.tsx +2 -2
  613. package/src/components/Recommendation/Recommendation.fixture.tsx +38 -1
  614. package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -3
  615. package/src/components/StepsBlock/StepsBlock.tsx +2 -4
  616. package/src/components/Tabs/LinkTab.tsx +2 -10
  617. package/src/components/Tabs/Tabs.tsx +11 -19
  618. package/src/components/TariffsTable/TariffsTable.tsx +1 -1
  619. package/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
  620. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +3 -3
  621. package/src/hooks/useLink.ts +13 -2
  622. package/src/services/BlockRouter/BlockIntersection.ts +3 -0
  623. package/src/services/BlockRouter/BlockRouter.ts +51 -0
  624. package/src/services/BlockRouter/findActiveBlock.ts +20 -0
  625. package/src/services/BlockRouter/useBlockIntersectionObserver.ts +37 -0
  626. package/src/services/BlockRouter/useBlockRouter.ts +5 -0
  627. package/src/services/BlockRouter/useBlockRouterProvider.ts +49 -0
  628. package/src/ui-kit/BenefitItem/BenefitItem.tsx +1 -1
  629. package/src/ui-kit/BlockWrapper.tsx +9 -32
  630. package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +1 -1
  631. package/src/ui-kit/HeaderItem/HeaderItem.tsx +1 -1
  632. package/src/ui-kit/InnerTable/InnerTableButton.tsx +5 -2
  633. package/src/ui-kit/InnerTable/InnerTableProps.ts +0 -6
  634. package/src/ui-kit/Select/Select.tsx +2 -2
  635. package/src/ui-kit/YandexMap/useYandexMaps.ts +3 -1
  636. package/src/utils/adjustHref.ts +3 -1
  637. package/src/utils/debounce.ts +24 -0
  638. package/bundle/components/SafeDepositRental/YandexMap.d.ts +0 -5
  639. package/bundle/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  640. package/bundle/utils/changeHashOnObserve.d.ts +0 -9
  641. package/dist/components/SafeDepositRental/YandexMap.d.ts +0 -5
  642. package/dist/components/SafeDepositRental/YandexMap.js +0 -31
  643. package/dist/components/SafeDepositRental/YandexMap.js.map +0 -1
  644. package/dist/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  645. package/dist/components/SafeDepositRental/useYandexMaps.js +0 -12
  646. package/dist/components/SafeDepositRental/useYandexMaps.js.map +0 -1
  647. package/dist/utils/changeHashOnObserve.d.ts +0 -9
  648. package/dist/utils/changeHashOnObserve.js +0 -21
  649. package/dist/utils/changeHashOnObserve.js.map +0 -1
  650. package/lib/components/SafeDepositRental/YandexMap.d.ts +0 -5
  651. package/lib/components/SafeDepositRental/YandexMap.js +0 -29
  652. package/lib/components/SafeDepositRental/YandexMap.js.map +0 -1
  653. package/lib/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  654. package/lib/components/SafeDepositRental/useYandexMaps.js +0 -9
  655. package/lib/components/SafeDepositRental/useYandexMaps.js.map +0 -1
  656. package/lib/utils/changeHashOnObserve.d.ts +0 -9
  657. package/lib/utils/changeHashOnObserve.js +0 -18
  658. package/lib/utils/changeHashOnObserve.js.map +0 -1
  659. package/mobile/bundle/components/SafeDepositRental/YandexMap.d.ts +0 -5
  660. package/mobile/bundle/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  661. package/mobile/bundle/utils/changeHashOnObserve.d.ts +0 -9
  662. package/mobile/dist/components/SafeDepositRental/YandexMap.d.ts +0 -5
  663. package/mobile/dist/components/SafeDepositRental/YandexMap.js +0 -31
  664. package/mobile/dist/components/SafeDepositRental/YandexMap.js.map +0 -1
  665. package/mobile/dist/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  666. package/mobile/dist/components/SafeDepositRental/useYandexMaps.js +0 -12
  667. package/mobile/dist/components/SafeDepositRental/useYandexMaps.js.map +0 -1
  668. package/mobile/dist/utils/changeHashOnObserve.d.ts +0 -9
  669. package/mobile/dist/utils/changeHashOnObserve.js +0 -21
  670. package/mobile/dist/utils/changeHashOnObserve.js.map +0 -1
  671. package/mobile/lib/components/SafeDepositRental/YandexMap.d.ts +0 -5
  672. package/mobile/lib/components/SafeDepositRental/YandexMap.js +0 -29
  673. package/mobile/lib/components/SafeDepositRental/YandexMap.js.map +0 -1
  674. package/mobile/lib/components/SafeDepositRental/useYandexMaps.d.ts +0 -2
  675. package/mobile/lib/components/SafeDepositRental/useYandexMaps.js +0 -9
  676. package/mobile/lib/components/SafeDepositRental/useYandexMaps.js.map +0 -1
  677. package/mobile/lib/utils/changeHashOnObserve.d.ts +0 -9
  678. package/mobile/lib/utils/changeHashOnObserve.js +0 -18
  679. package/mobile/lib/utils/changeHashOnObserve.js.map +0 -1
  680. package/mobile/src/components/SafeDepositRental/YandexMap.tsx +0 -43
  681. package/mobile/src/components/SafeDepositRental/useYandexMaps.ts +0 -13
  682. package/mobile/src/utils/changeHashOnObserve.ts +0 -30
  683. package/src/components/SafeDepositRental/YandexMap.tsx +0 -43
  684. package/src/components/SafeDepositRental/useYandexMaps.ts +0 -13
  685. package/src/utils/changeHashOnObserve.ts +0 -30
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const l=e=>(...l)=>t[e](...l),n=l("useState"),r=l("useEffect"),a=l("useCallback"),i=l("useMemo"),s=l("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),l=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await l.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:l}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:l})),{token:t,name:l}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,l){const{children:n,...r}=t||{},a=l?.slots?.default,i=n||a&&a();return e(Object.assign(r,i&&{children:i}),l)}return t.inheritAttrs=!1,t};function g(e){return e?e.filter(Boolean).join(" "):""}const b=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),f=[],N=["col-span-12"];function v(e,t){const{key:l,blockDecorator:n=b,blocksRegistry:r={},ancestors:a=f}=t,{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const s=i&&r[i];return n({blockClassName:`scroll-mt-12 ${g(e.style||N)}`,block:e,ancestors:a,render:({block:n,blockClassName:r})=>{const{content:a}=n;return s?h(s,{className:r,block:e,options:t,...a},l):null}},l)}const y=[],w=(e,{key:t,ancestors:l=y,slotName:n=null,renderChild:r=v,...a})=>(e||[]).map(((e,i)=>r(e,{...a,key:`${t||e.type}-${i}`,ancestors:a.parent?[...l||y,[a.parent,n]]:l})));function k({children:e,block:t,options:l,renderChild:n}){return e||(t&&l?w(t.blocks,{...l,parent:t,renderChild:n}):null)}const C={left:"text-left",center:"text-center",right:"text-right"};class ${static inst=new $;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}function S(e,{sensitivity:t,rootRef:l}={}){const n=s(null),a=i((()=>({threshold:I(t),root:l?.current})),[t,l?.current]);return r((()=>{if(!n.current)return;const t=new IntersectionObserver(e,a);return t.observe(n.current),()=>{t.disconnect()}}),[e,a]),n}function I(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,l)=>Math.min(l/t)),1).concat(1)}const T=p((({className:e,block:t,tag:l="section",role:a,children:o})=>{const c=l,{anchor:d,labels:m}=t||{},[u,p]=n(!0),x=s({}),g=i((()=>(({anchor:e,anchorClickRef:t})=>l=>{if(!l?.length)return;const[n]=l;!n.isIntersecting||n.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?($.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),$.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||$.inst.fire("tab",{type:"link",label:e}))})({anchor:d,anchorClickRef:x})),[d]),b=S(g,{sensitivity:1});return r((()=>$.inst.subscribe("anchorClick",(e=>{p(!0),x.current=e}))),[]),r((()=>$.inst.subscribe("tab",(e=>{if("group"===e.type){const l=m?.length||t?.anchor;p(!e.label||(!l||Boolean(m?.includes(e.label))))}else(l=e.label)&&(globalThis.document.location.hash=l),p(!0);var l}))),[]),u?h(c,{className:e,role:a,...d?{id:d,ref:b}:{},children:o}):null}));const B={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},R=p((e=>{const{className:t="",headingType:l="h3",title:n,as:r="h3"}=e;return h(r,{className:`font-sans m-0 ${B[l]} ${t}`,children:n})})),V=p((e=>{const{size:t="",color:l="",align:n="",font:r="",children:a}=e;return h("p",{className:`font-sans ${t} ${l} ${n} ${r}`,children:a})})),j=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),M=p((({className:e="",title:t,accordionAlignTitle:l="center",description:n,...r})=>u(T,{className:`p-[50px] mb-1 last:mb-0 bg-white text-primary-text ${e}`,...r,children:[t?h(R,{headingType:"h3",as:"h2",className:`mb-2.5 ${C[l]}`,title:t}):null,n?h("div",{className:"mb-2.5",children:h(V,{size:"text-l",children:n})}):null,h(j,{children:k(r)})]})));M.childrenTypes=["AccordionItem"];const L=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:l,renderFoldButton:r})=>{const[i,s]=n(t),o=a((()=>{s((e=>!e))}),[]),c=l({isUnfolded:i,onToggle:o}),d=r?r({isUnfolded:i,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),_=p((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return r((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),h("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:l})})),D={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},A=p((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:r=n,iconVersion:a="color",asSVG:i,...s})=>{const o=`${c.CDN||""}icons/${l}.svg`;return i&&"normal"!==a?h(E,{className:e,children:u("svg",{className:[z(e,s.width),D[a],t,O(a)].join(" "),...s,"aria-hidden":"true",children:[r?h("title",{children:r}):null,n?h("desc",{children:n}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:n,title:r,...s,"aria-hidden":"true"})})),O=e=>"white"===e?"invert":"",z=(e,t)=>t?`width: ${t}px `:"w-full h-full",E=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function F(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const P=(e,t)=>e.media&&t.media?e.media-t.media:0,U=p((({className:e="",image:t,imageClassName:l="",isMobile:n=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${n?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(P).map((({src:e,format:l,media:n},r)=>h("source",{srcSet:e,type:H(l),media:n?`(max-width: ${n}px)`:"",...t.size},`${r}_${e}`))):null,X(t,l,n)]})})),X=(e,t="",l=!1)=>{const n={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",a=e.alt||e.title,i=l?"m-auto":"m-0";return h("img",{src:e.src,className:`${i} ${t}`,alt:a,title:r,style:n,...e.size})};function H(e){return e?`image/${String(e)}`:void 0}const G=p((({className:e="",image:t,imageClassName:l="",isMobile:n,...r})=>{if(!t)return null;const a="string"==typeof t?t:t.icon;return a||""===a?a.length?h(A,{className:e,imageClassName:l,iconVersion:F(t),name:a,...r}):null:h(U,{className:e,imageClassName:l,image:t,isMobile:n})})),W=p((e=>{const{size:t="",color:l="",align:n="",font:r="",children:a}=e;return h("span",{className:`font-sans ${t} ${l} ${n} ${r}`,children:a})})),J=["PlusIcon","MinusIcon"],Y=p((({className:e="",label:t="",isExpanded:l,...n})=>h("li",{className:`border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,children:h(L,{isFoldButtonOnTop:!0,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h(_,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:k(n)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>h(Z,{label:t,icon:J[Number(e)],onClick:l})})})));Y.childrenTypes=[];const Z=p((({label:e,icon:t,onClick:l})=>u("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer",onClick:l,children:[h(W,{size:"text-xl",font:"font-medium",children:e}),h(G,{image:t,className:"text-primary-main flex-shrink-0",width:"24",height:"24",asSVG:!0})]}))),K={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},q=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),Q={primary:"",secondary:"text-white"},ee={primary:"text-secondary-text",secondary:"text-white opacity-80"},te={primary:"bg-main-divider text-primary-main",secondary:"bg-white/30 text-black"},le=p((({className:e="",title:t,benefitList:l,version:n="primary",...r})=>u(T,{className:`font-sans text-primary-text p-12 flex flex-col items-center ${e} ${K[n]}`,...r,children:[t?h(R,{headingType:"h3",as:"h2",className:`max-w-[47rem] text-center ${Q[n]}`,title:t}):null,l?.length?h("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map(ne(n))}):null]}))),ne=e=>(t,l)=>{const n=t.description;return u("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[t?.icon?.icon?h(G,{className:`w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${te[e]}`,image:q(t.icon,e),asSVG:!0}):null,t?.icon?.src?h(G,{image:t.icon}):null,u("div",{className:"ml-5",children:[t?.label?h("h3",{className:`text-h6 m-0 ${Q[e]}`,children:t.label}):null,re(n,e)]})]},String(l))},re=(e,t)=>{const l=e?.benefitType||null;return e&&l?h("div",{className:`text-l-light mt-2 ${ee[t]}`,children:"list"===l?ie(e):ae(e)}):null},ae=e=>e?.name||null,ie=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?h("ul",{className:t,children:e.items.map(((e,t)=>h("li",{children:e},`benefitListItem-${t}`)))}):null},se=e=>e?.includes("//"),oe=e=>(e||"").replace(/\/?\?.*/,""),ce=e=>{if(!e||!se(e))return;const t=e,l=t.indexOf("//"),n=t.indexOf("/",l+"//".length);return-1!==n?t.substring(0,n):t},de=e=>e?.startsWith("#");var me=Object.freeze({__proto__:null,isURL:se,withoutQuery:oe,getOrigin:ce,getHash:e=>{if(!e||!se(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:de});const he=(e,t)=>he._impl(e,t);function ue(){return ue._impl()}function pe(){const e=ue();return t=>{const l=((e,t)=>{if(!e)return e;const l=ce(t?.href);return l?e.replace(l,"")||"/":e})(t.href,e);return{...t,href:l,"aria-label":t.text,onClick:he((n=>{t.onClick&&t.onClick(n);const r=l&&!se(l),a=!t.target||"_self"===t.target;r&&a&&!de(l)&&(n?.preventDefault(),e.push(l))}),t)}}}he._impl=e=>e,he.setup=e=>{he._impl=e},ue._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),ue.setup=e=>{ue._impl=e};const xe={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:""},ge="bg-main-divider text-main-disabled",be={primary:ge,secondary:ge,white:ge,link:""},fe="text-center font-sans select-none",Ne={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},ve=p((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:r,version:a="primary"}=e;return u("div",{className:ye(e),children:[n?h("div",{className:Ne[a],children:n}):null,we(e)?u("div",{children:[l?h("div",{className:"text-xs-light text-left",children:l}):null,h("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?h("div",{className:Ne[a],children:r}):null]})})),ye=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const r="gap-2 "+(l?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",we(e)?r:"h-12 w-12",n?"rounded-full":""].join(" ")},we=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),ke=({className:e,rounded:t,version:l})=>["inline-block",fe,l?be[l]:"",t?"rounded-full":"rounded-md",e].join(" "),Ce=({className:e,rounded:t,version:l})=>[fe,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",l?xe[l]:"",t?"rounded-full":"rounded-md",e].join(" "),$e=p((({disabled:e,children:t,...l})=>{const n=pe()(l),r=t??h(ve,{...n});return h(e?Ie:Se,{...n,children:r})})),Se=p((({className:e="",href:t,rel:l,target:n,ariaLabel:r,version:a,rounded:i,onClick:s,children:o})=>h("a",{className:Ce({className:e,version:a,rounded:i}),href:t,rel:l,target:n,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Ie=p((({className:e,ariaLabel:t,version:l,rounded:n,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ke({className:e,rounded:n,version:l}),children:r}))),Te=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>Be({button:e,index:t})))}):null));function Be({button:e,buttonClassName:t,index:l}){const{icon:n,iconRight:r,version:a,...i}=e,s="secondary"===a?"color":"white",o=Re({...n,iconVersion:s}),c=Re({...r,iconVersion:s});return h($e,{className:t,appendLeft:o,appendRight:c,version:a,...i},l?String(l):"")}const Re=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(G,{image:{...e},width:t,height:"24",asSVG:!0})},Ve={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},je={XXL:{descriptionFont:"text-h5",gap:"gap-[18px]",headingType:"h0",as:"h1"},XL:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h1",as:"h1"},L:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h2",as:"h2"},M:{descriptionFont:"text-xl-light",gap:"gap-3",headingType:"h3",as:"h3"},S:{descriptionFont:"text-xl-light",gap:"gap-2",headingType:"h4",as:"h4"},XS:{descriptionFont:"text-l-light",gap:"gap-2",headingType:"h5",as:"h5"}},Me={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},Le=p((({className:e="",bgColorHeadline:t="transparent",align:l="center",title:n,description:r,headlineVersion:a="XL",as:i,...s})=>{const o=Ve[t],c=je[a];return u(T,{className:`font-sans flex flex-col p-[50px] ${c.gap} ${o.background} ${e}`,...s,children:[n?h(R,{headingType:c?.headingType,as:i||c?.as,className:`whitespace-pre-wrap ${o.text} ${C[l]}`,title:n}):null,r?h("p",{className:`${c.descriptionFont} ${o.text} ${C[l]}`,children:r}):null]})})),_e=p((e=>{const{className:t="",title:l,description:n,bonusItems:r,...a}=e;return h(T,{className:`font-sans bg-white p-[50px] pb-9 ${t}`,...a,children:u("div",{className:"container",children:[h(Le,{className:"!p-0",title:l,description:n,headlineVersion:"M",align:"center",...a}),h("div",{className:"flex flex-wrap w-full mt-9",children:r?.length?r.map(((e,t)=>h("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:u("div",{className:"flex justify-between w-full",children:[u("div",{className:"flex flex-col justify-between mr-4",children:[u("div",{children:[h("div",{className:"text-h4",children:e.title}),h("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),e?.buttons?.length?h(Te,{buttons:e?.buttons}):null]}),e.bonusItemContent?.bonusType?De(e.bonusItemContent):null]})},String(t)))):null})]})})})),De=e=>h("div",{children:"count"===e.bonusType?Ae(e):Oe(e)}),Ae=e=>u("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?h("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?h("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),Oe=e=>e.image?h(G,{className:"w-[50px] h-[50px] min-w-[50px] p-3 rounded-full",image:e.image}):null,ze=p((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:n="4",subtitle:r,title:a,...i})=>u(T,{className:`font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${l}`,...i,children:[h(Le,{className:"!p-0 mb-8",title:a,description:r,headlineVersion:"M",align:"center",...i}),e?.length?h("div",{className:`grid gap-1 ${C[t]} ${Fe(n)}`,children:e.map(Ee)}):null]}))),Ee=({icon:e,label:t,description:l},n)=>u("div",{className:"flex flex-col items-center text-h6",children:[l?h("span",{children:l}):null,e?h(G,{image:e,height:"180",width:"auto",className:"h-[180px] w-auto"}):null,h("div",{children:t?h("span",{children:t}):null})]},String(n)),Fe=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},Pe=p((e=>{const{title:t,image:l,cardItems:n,button:r}=e;return u("div",{className:"border-color-stroke border p-9 w-1/2",children:[l?u("div",{className:"flex justify-center",children:[l?.src?h(G,{className:"mb-5",image:l}):null,l?.icon?h(G,{image:l,asSVG:!0}):null]}):null,t?h(R,{headingType:"h4",title:t,className:"mb-6"}):null,n?.length?h("ul",{children:n.map(((e,t)=>Ue(e,String(t))))}):null,r?.text?Be({button:r,buttonClassName:"mt-6"}):null]})})),Ue=(e,t)=>{const{icon:l,text:n}=e;return u("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?h(G,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",image:l.icon,asSVG:!0}):null,l?.src?h(G,{image:l.icon}):null,h("span",{className:"text-xl-light",children:n})]},t)},Xe=p((({className:e="",title:t,cards:l,...n})=>u(T,{className:`font-sans bg-white p-[50px] pb-9 ${e}`,...n,children:[h(R,{headingType:"h3",title:t,className:"text-center mb-8"}),h("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>h(Pe,{...e},String(t)))):null})]}))),He=e=>{const{itemCount:t,visibleItemCount:l,isCyclic:r}=e,[i,s]=n(0),o=a((()=>s((e=>r?(e+1)%t:Math.min(e+1,t-1)))),[r,t]),c=a((()=>s((e=>r?(t+e-1)%t:Math.max(e-1,0)))),[r,t]),d=r||function(e,{itemCount:t,visibleItemCount:l,container:n}){if(l)return t>l;if(n){return n.scrollWidth*e/t+n.clientWidth<n.scrollWidth}return!1}(i,e)&&i<t-(l||1),m=r||i>0;return[i,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]};const Ge=p((({className:e,disabled:t,...l})=>h($e,{rounded:!0,className:`group shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...l,children:h(G,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"16",height:"16",asSVG:!0})}))),We=p((e=>h(Ge,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Je=p((e=>h(Ge,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Ye({dec:e,inc:t,canDec:l,canInc:n,btnClass:r,className:a=""}){return l||n?u("div",{children:[l?h(Ge,{className:`absolute z-50 ${r[0]} ${a}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?h(Ge,{className:`absolute z-50 rotate-180 ${r[1]} ${a}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const Ze=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),Ke=p((({title:e,value:t,postfix:l="",prefix:n,className:r=""})=>u("div",{className:`mb-7 ${r}`,children:[e?h("div",{className:"text-l-light text-secondary-text",children:e}):null,t?u("div",{className:"text-h3",children:[n," ",Ze(Math.round(t))," ",l]}):null]}))),qe=2e6,Qe=97e4,et=Math.round(23.5),tt={minSum:6e4,maxSum:qe,minMonths:13,maxMonths:60,rateBottomRange:10,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},lt={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},nt={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:120,rate:5.9,isMonthlyInterestPayment:!0},rt=p((({rate:e,title:t="Ставка",unit:l,rateBlockClassName:n})=>u("div",{children:[h("div",{className:"text-l-light text-secondary-text",children:t}),u("div",{className:"flex justify-start",children:[h("span",{className:`block gradient-color-text font-mohave text-title-huge pr-6 -mt-4 ${n}`,children:String(e).replace(".",",")}),l?h("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:l}):""]})]})));function at(e){return e?.length?h(Te,{buttons:e,className:"flex flex-col mt-7 gap-2"}):null}const it=e=>e?h("p",{className:"text-s-light text-secondary-text mt-7",children:e}):null,st=(e,t,l)=>Math.max(t,Math.min(e,l)),ot=e=>e.split(/\s+/).join(""),ct=p((({className:e,title:t,items:l=[],min:n=1,max:r=100,step:a=1,value:i=n,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(st(Number(ot(e.target.value)),n,r))},d={backgroundSize:`${(100*(i-n)/(r-n)).toFixed(2)}% 100%`};return u("div",{className:e,children:[u("label",{className:"block relative",children:[t?h("span",{className:"text-m-light text-primary-text",children:t}):null,h("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-focus disabled:border-main-stroke disabled:bg-main-divider",value:Ze(i),disabled:s,onChange:c,onBlur:c}),h("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:h("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:n,max:r,step:a,value:i,disabled:s,onChange:c,style:d})})]}),dt(l)]})}));function dt(e){return h("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>h("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const mt=1e3;function ht(e,t,l){const{moneyValue:n,minSum:r,maxSum:a,step:i=mt,isShowItems:s=!0}=t,o=[`От ${Ze(r)} ₽`,`До ${Ze(a)} ₽`];return h(ct,{title:e,items:s?o:[],min:r,max:a,step:i,value:st(n,r,a),onChange:l})}const ut=new Map;function pt(e,t,{fallback:l}={}){const a=i((()=>xt(e)),[e]),[s,o]=n(),[c,d]=n(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!a.every((e=>null===e)))try{const e=t(...a);"then"in e?(e=>{e.then((e=>ut.get(a)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...a]);const u=a[0],p=l&&"string"==typeof u&&l[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function xt(e){return e?Array.isArray(e)?e:e instanceof Function?xt(e()):[e]:[e]}async function gt(e,t){try{return await bt(e,t)}catch(e){console.error(e)}return null}async function bt(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}function ft(e){const{data:t}=pt(`/wcms-resources/${e}.json`,bt);return t}const Nt=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,r=ft(t||"bonus-calculator-data")||lt,[a,i]=((e,t,l)=>{const{minSumTravel:n,minSumOther:r,maxBonus:a,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===r)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),a);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*l),a)*(12-i)]})(r,l,n);return{...r,...e,monthBonus:a,yearBonus:i}},vt=p((({className:e="",sourceBookDir:t="",buttons:l,footnote:r})=>{const[i,s]=n(6e3),o=a((e=>s(e)),[]),[c,d]=n(6e3),m=a((e=>d(e)),[]),p={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:x,maxSumTravel:g,minSumOther:b,maxSumOther:f,monthBonus:N,yearBonus:v}=Nt(p,t);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[ht("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:g,moneyValue:i,step:500,isShowItems:!1},o),ht("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:b,maxSum:f,moneyValue:c,step:500,isShowItems:!1},m)]}),h("div",{children:N>=0?h(rt,{title:"Баллов за месяц",rate:N,rateBlockClassName:"tracking-[-14px]"}):null}),u("div",{className:"w-full max-w-[350px]",children:[v>=0?h(Ke,{title:"Баллов за год",value:v}):null,at(l),it(r)]})]})})),yt=p((({className:e,viewBox:t,fill:l="none",width:n,height:r,paths:a,...i})=>h("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:r,children:a.map((({d:e,fill:t,...l},n)=>h("path",{d:e,fill:t||"currentColor",...i,...l},n)))}))),wt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],kt=p((({className:e,text:t,checked:l,isRadio:n,onChange:r})=>h("div",{className:e,children:u("label",{className:"flex items-center relative cursor-pointer group",children:[h("input",{className:`peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover:border-checkbox-hover\n ${n?"rounded-full border-2":"rounded checked:bg-primary-main border"}\n ${l?"border-black":"border-main-stroke"}\n checked:border-primary-main m-0`,type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:l}),n?h("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):h(yt,{paths:wt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?h("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),Ct=p((({items:e,checkedItem:t,onChange:l})=>h("div",{className:"flex flex-col gap-3",children:e?.map((({id:e,text:n})=>h(kt,{isRadio:!0,text:n,checked:t===e,onChange:()=>l&&l(e)},String(e))))})));function $t(e,t,l){const{minMonths:n,maxMonths:r,monthsValue:a}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return h(ct,{className:"mt-7",title:e,items:[`От ${i(n)}`,`До ${i(r)}`],min:n,max:r,step:1,value:st(a,n,r),onChange:l})}const St=(e,t)=>{const{isInsurance:l,isSalaryClient:n,isStateEmployee:r,moneyValue:a}=e,i=ft(t||"credit-calculator-data")?.rows?.find((e=>l===e.isInsurance&&n===e.isSalaryClient&&r===e.isStateEmployee))||tt,{rateBottomRange:s,rateTopRange:o,sumBorder:c}=i,d=a<=c?s:o,m=((e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:r}=t;if(l){const t=e/1200;return n*(t+t/(Math.pow(1+t,r)-1))}return Math.round(n/r)+n*(e/1200)})(d,e);return{...i,...e,finalRate:d,monthlyPayment:m}},It="annuity",Tt="differential",Bt=[{id:It,text:"Аннуитетный"},{id:Tt,text:"Дифференцированный"}],Rt=p((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[i,s]=n(!1),[o,c]=n(!0),[d,m]=n(!1),[p,x]=n(!1),[g,b]=n(Qe),f=a((e=>b(e)),[]),[N,v]=n(et),y=a((e=>v(e)),[]),w=St({isAnnuity:i,isInsurance:o,isSalaryClient:d,isStateEmployee:p,moneyValue:g,monthsValue:N},t);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[ht("Сумма кредита, ₽",{...w,step:500},f),$t("Срок кредита, месяцев",w,y),u("div",{className:"mt-7",children:[h(kt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:d,onChange:m}),h(kt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:p,onChange:x}),h(kt,{className:"mt-3",text:"Комплексная страховая защита",checked:o,onChange:c})]})]}),h(rt,{title:"Ставка",rate:w.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Ke,{title:i?"Ежемесячный платеж":"Платёж в первый месяц",value:w.monthlyPayment,postfix:"₽"}),h(Ct,{items:Bt,checkedItem:i?It:Tt,onChange:e=>s(e===It)}),at(l),it(r)]})]})})),Vt=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,monthsValue:r}=t;return l?Math.round(n*Math.pow((1200+e)/1200,r)-n):Math.round(n*e*30*r/365/100)},jt="everyMonth",Mt="atEndTerm",Lt=[{id:jt,text:"Ежемесячно"},{id:Mt,text:"В конце срока"}],_t={CreditCalculatorForm:Rt,DepositCalculatorForm:p((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[i,s]=n(Qe),o=a((e=>s(e)),[]),[c,d]=n(et),[m,p]=n(!1),x={moneyValue:i,monthsValue:c,isMonthlyInterestPayment:m},g=a((e=>d(e)),[]);n(!1);const b=((e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n}=e,r=ft(t||"deposit-calculator-data")?.rows.find((e=>l===e.isMonthlyInterestPayment))||nt,{rate:a}=r,i=Vt(a,e),s=n+i;return{...r,...e,income:i,finalSum:s}})(x,t),{income:f,finalSum:N,rate:v}=b;return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[ht("Сумма вклада, ₽",{...b},o),$t("Срок вклада, месяцев",{...b},g)]}),h(rt,{rate:v||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[f?h(Ke,{title:"Доход по вкладу",value:f,postfix:"₽",prefix:"+"}):null,N?h(Ke,{title:"Сумма в конце срока",value:N,postfix:"₽"}):null,h(Ct,{items:Lt,checkedItem:m?jt:Mt,onChange:e=>p(e===jt)}),at(l),it(r)]})]})})),BonusCalculatorForm:vt},Dt=(e,t)=>{const l=e?.calcType;if(!l||!(l in _t))return null;const n=_t[l];return h("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:u("div",{className:"box-border p-9 w-full",children:[e?.title?h(R,{className:"text-center mb-6",title:e.title}):null,h(n,{...e,className:"flex justify-between"})]})},String(t))},At=p((({className:e="",calculatorTabs:t=[],...l})=>{const r=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=n(0),c=a((e=>o(e)),[]),[d,m]=He({itemCount:t?.length,visibleItemCount:3});return u(T,{className:`box-border overflow-hidden relative font-sans w-100 text-primary-text bg-white ${e}`,...l,children:[u("div",{className:"bg-white",children:[r.length>1?Ot({activeIndex:d,tabsNav:r,slideIndexShift:s,onClick:c}):null,Ye({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(Dt):null})]})}));function Ot({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:n}){return u("div",{children:[h("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:h("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:n}){const r=l?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",a=l?"text-xl mb-1.5":"text-l mb-[3px]",i=l?"text-l-light text-white":"text-m-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return u("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${r}`,children:[h(G,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24",asSVG:!0}),u("div",{className:"border-0",children:[h("div",{className:`${a}`,children:e?.title}),h("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})}),h("div",{className:"w-full h-2 bg-primary-main"})]})}const zt=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,Et=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},Ft=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),Pt=p((({className:e="",inputClassName:t="",id:l,name:n,type:r="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:m,...p})=>{const x=a((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),g=a((e=>{if(!m)return;const t=e.target.validity.valid?e.target.value:s;m(t)}),[m]),b=c?"pr-8":"",f=o?"border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return u("div",{className:`relative ${e}`,children:[i?h("label",{className:"block text-m-light mb-2",children:i}):null,h("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${b} ${f} ${t}`,id:l,name:n||l,type:r,value:s,onChange:x,onBlur:g,...p}),c]})})),Ut=p((({className:e="",onChange:t,minValue:l=0,maxValue:n=3e5,...r})=>{const i=a((e=>{if(!t)return;const r=zt(Et(Ft(ot(e))));const a=Xt(r,st(Number(r),l,n));t(String(a))}),[t]),s=a((e=>{var l;t&&t((l=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(ot(l))).replace(",",".")))}),[t]);return h(Pt,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...r,children:h("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Xt=(e,t)=>Number(e)===t?e:String(t),Ht=p((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:r="1500",button:i,...s})=>{const[o,c]=n(""),d=a((e=>c(e)),[]),m=!Number(ot(o)),p=m?ke({version:i?.version}):Ce({className:"text-white",version:i?.version}),x=pe();return u(T,{className:`p-[50px] flex flex-col items-center font-sans bg-white ${e}`,...s,children:[t?h(R,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,u("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[h(Ut,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:r,label:l}),i?.text?h("button",{type:"submit",className:`w-full p-4 mt-6 ${p} `,disabled:m,...x(i),children:i.text}):null]})]})})),Gt=p((({className:e="",style:t,idx:l,activeIndex:n,observerOptions:r,children:i,onIntersection:s})=>{const o=S(a((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),r);return h("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(l===n),ref:o,children:i})})),Wt=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]"],Jt=p((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:n,gap:r=0,padding:i=0,snapAlign:o="snap-center",children:c,onVisibleItemsChange:d,onVisibleIndicesChange:m})=>{const u={sensitivity:1,rootRef:t},p=s([]),x=a(((e,t)=>{const l=[...p.current||[]];l[e]=t,p.current=l,d&&d(l),m&&m(Zt(l))}),[d,m]);return h("div",{className:`box-border overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...Yt(i),gap:`${r}px`},role:"list",ref:t,children:(g=(e,t)=>h(Gt,{className:`${o} ${n?Wt[n-1]:""}`,style:Yt(i/4),activeIndex:l,idx:t,observerOptions:u,onIntersection:x,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(g):g(e,0))(c)});var g})),Yt=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),Zt=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Kt=e=>e,qt=(e=Kt)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),Qt=(e=Kt)=>qt((t=>-e(t))),el=e=>t=>e.scrollWidth/t,tl=e=>(t,l)=>{e.scrollBy({left:l*el(e)(t),behavior:"smooth"})},ll=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const r=s(null),[i,o]=n([]),c=a((e=>{o((t=>{return(l=t)===(n=e)||Boolean(l&&n&&l?.length===n?.length&&l.every(((e,t)=>e===n[t])))?t:e;var l,n})),l&&l(e)}),[e]),[d,m]=i.length?[Qt()(i),qt()(i)]:[-1,-1],h=d>0,u=m<e-1,p=a((()=>{var l;r.current&&(t&&!h?(l=r.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):tl(r.current)(e,-1))}),[t,e,h]),x=a((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):tl(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},nl="absolute top-0 bottom-0 z-50 w-[84px]",rl="absolute top-[calc(50%-12px)] z-50",al=p((({className:e="",itemCount:t,visibleItemCount:l,isBlur:n=!0,isCyclic:r=!1,...a})=>{const{blocks:i}=a.block||{},s=t||i?.length||0,[o,c]=ll({itemCount:s,isCyclic:r});return u(T,{className:`relative font-sans ${e}`,...a,children:[h(Jt,{containerRef:o,visibleItemCount:l,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:c.handleVisibleIndicesChange,children:k(a)}),(c.canScrollLeft||c.canScrollRight)&&n?u("div",{children:[h("div",{className:`${nl} left-0 bg-opacity-from-white`}),h("div",{className:`${nl} right-0 bg-opacity-to-white`})]}):null,il(c)]})}));al.childrenTypes=["CarouselCard","CarouselTariffsCard","CarouselLinks","CarouselProgramsCard","CarouselInvestmentCard"];const il=({scrollLeft:e,scrollRight:t,canScrollLeft:l,canScrollRight:n})=>u("div",{children:[l?h(We,{className:`${rl} left-8`,onClick:e}):null,n?h(Je,{className:`${rl} right-8`,onClick:t}):null]}),sl="absolute border border-solid border-main-stroke w-full h-full",ol={normal:"min-w-[1007px]",mini:"min-w-[355px]"},cl=p((({className:e="",button:t,description:l,title:n,version:r="normal"})=>h("section",{className:`flex pb-9 pl-12 ${ol[r]} ${e}`,children:u("div",{className:"relative w-full",children:[h("div",{className:`${sl} z-10 top-9 right-12 bg-green-dark`}),h("div",{className:`${sl} z-10 top-6 right-8 bg-green`}),h("div",{className:`${sl} z-10 top-3 right-4 bg-green-light`}),u("div",{className:"relative bg-white z-10 py-6 px-10 border border-solid border-green-light",children:[h(Le,{className:"!p-0",title:n,description:l,headlineVersion:"M",align:"center"}),t?h("div",{className:"mt-6",children:Be({button:t})}):null]})]})}))),dl="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",ml=p((({text:e,href:t="",target:l="",className:n=""})=>e?u("div",{className:`relative group cursor-pointer w-[328px] h-[82px] ${n}`,children:[u("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover:text-primary-main z-10",role:"link",href:t,target:l,children:[h("div",{className:"p-0.5",children:e}),h("div",{className:"w-6 h-6",children:h(G,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"24",height:"24",asSVG:!0})})]}),h("div",{className:`${dl} mx-1.5 mt-1.5`}),h("div",{className:`${dl} mt-3 mr-3`})]}):null)),hl=p((({className:e="",additionalDescription:t,description:l,links:n,title:r,...a})=>u(T,{className:`bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${e}`,...a,children:[u("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[h(Le,{title:r,as:"h1",description:l,align:"left",className:"p-0",bgColorHeadline:"secondary"}),t?h("div",{className:"pt-6",children:h(V,{children:t})}):null]}),n?.length?ul(n):null]}))),ul=e=>{const t=Math.ceil(e.length/12);return h(al,{className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,children:new Array(t).fill(null).map(((t,l)=>h("div",{className:"w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start",children:e.slice(12*l,12*(l+1)).map(((e,t)=>h(ml,{className:"m-1",...e},String(t))))},String(l))))})},pl=p((({className:e="",title:t,icon:l,list:n=[],version:r="primary",...a})=>u(T,{className:`font-sans border border-main-stroke flex min-w-[536px] ${K[r]} ${e}`,...a,children:[u("div",{className:"w-[200px] min-w-[200px] self-end",children:[l?.icon?h(G,{image:q(l),asSVG:!0}):null,l?.src?h(G,{image:l}):null]}),u("div",{className:"p-8 pl-3 w-full",children:[t?h(R,{className:" mb-3.5",headingType:"h5",title:t}):null,n.length?h("div",{className:"flex flex-col gap-3",children:n?.map(xl)}):null]})]}))),xl=(e,t)=>u("div",{className:"break-words",children:[e.title?h("div",{className:"text-h6",children:e.title}):null,e.description?h("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),gl=p((({className:e="",title:t,icon:l,isHighlighting:n,button:r,rows:a=[],...i})=>{const s=a.map(Nl),o=s.slice(0,1),c=s.slice(1);return u(T,{className:`font-sans relative bg-white border border-main-stroke min-w-[322px] p-8 \n ${bl(n)}\n ${e}`,...i,children:[n?vl():null,l?.src?h(G,{image:l}):null,t?h(R,{className:"text-primary-text text-center pt-2",headingType:"h5",title:t}):null,r?h($e,{className:"w-full mt-4",...r}):null,a.length?h(L,{renderFoldableSection:({isUnfolded:e})=>u("div",{children:[o,h(_,{isUnfolded:e,children:c})]}),renderFoldButton:a.length>1?fl:null}):null]})})),bl=e=>e?"mt-9 pt-[70px]":"mt-[70px] pt-9",fl=({isUnfolded:e,onToggle:t})=>u("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[h("div",{children:e?"Скрыть":"Подробнее о тарифе"}),h(A,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),Nl=(e,t)=>u("div",{className:"py-5 border-b border-main-divider",children:[e?.title?h("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,e?.description?h("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null]},String(t)),vl=()=>u("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[h(A,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),h("div",{className:"text-center",children:"Хит"})]}),yl={black:"bg-black",white:"bg-white"},wl=p((({className:e="",title:t,description:l,image:n,price:r,button:a,colors:i})=>u("section",{className:`border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[n?.src?h(G,{className:"mb-5 flex justify-center",image:n}):null,t?h(R,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?h("div",{className:"text-m-light text-left mb-4",children:l}):null,i?.length?u("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[h("div",{className:"mr-1.5",children:"Доступные цвета: "}),i.map(kl)]}):null,r?u("div",{className:"text-h3 text-left",children:[r," ₽"]}):null,a?Be({button:a,buttonClassName:"mt-5 w-full"}):null]}))),kl=(e,t)=>h("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${yl[e]}`},String(t)),Cl="absolute top-0 bottom-0 w-[84px]",$l=p((({cards:e=[],className:t="",title:l,description:n,...r})=>{const[a,i]=He({itemCount:e?.length,visibleItemCount:3});return u(T,{className:`bg-white relative font-sans p-[50px] overflow-hidden text-center ${t}`,...r,children:[h(Le,{className:"!p-0",title:l,description:n,headlineVersion:"M",align:"center",...r}),h("div",{className:"flex duration-1000 gap-3.5 mt-8",style:{transform:`translateX(-${430*a}px)`},role:"list",children:e?.length?e.map(((e,t)=>h(wl,{...e},String(t)))):null}),Ye({...i,btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"}),h("div",{className:`${Cl} left-0 bg-opacity-from-white`}),h("div",{className:`${Cl} right-0 bg-opacity-to-white`})]})})),Sl="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Il="border-main-stroke border-solid border",Tl="border-main-divider border border-t-0 border-x-0",Bl="w-[200px] mr-6",Rl=p((({icon:e,image:t,title:l,link:n})=>u("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${Il} ${Sl}`,role:"columnheader",children:[e&&!t?.src&&h(G,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:q(e),width:"63",height:"63",asSVG:!0}),t?.src&&h(G,{className:"mb-[18px]",image:t}),l?h(R,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&h("div",{className:"mt-auto w-full",children:h($e,{href:n.href,target:n.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:h("div",{className:"text-xs-light font-medium py-[11px]",children:n.text})})})]}))),Vl={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},jl=p((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>h("div",{className:"flex flex-1 overflow-hidden",children:h("div",{className:Vl[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),Ml=p((({children:e})=>h("div",{className:"self-start flex flex-col",role:"row",children:h("div",{className:"flex",children:e})}))),Ll=p((({colHeaders:e,activeIndex:t})=>u(Ml,{children:[h("div",{className:Bl,role:"columnheader"}),h(jl,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>h(Rl,{...e},String(t))))})]}))),_l=p((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>h("div",{className:`w-80 box-border flex flex-col ${Il} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?Sl:""}`,role:"cell",children:h("div",{className:`mx-7 h-full ${Tl} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>Ol(e,t,n)))})}))),Dl=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),Al=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),Ol=({label:e,description:t},l,n)=>u("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?h("h4",{className:Dl(n),children:e}):null,t?h("div",{className:Al(n),children:t}):null]},String(l)),zl=(e=!1)=>`text-s py-7 ${Tl} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,El=p((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:r,isLastRow:a})=>u(Ml,{children:[e?.title?h("div",{className:zl(a),children:e.title}):null,t?.length?h(jl,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>h(_l,{cell:e,isFirstRow:r,isLastRow:a,isFillGradient:n&&0===t},String(t))))}):null]}))),Fl=p((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:n})=>{const{isScrollAvailable:r}=n;return u("div",{className:"relative",children:[e.map(((e,n,{length:r})=>h(El,{row:e,isFirstRow:0===n,isLastRow:n+1===r,activeIndex:l,isColoredFirstColumn:t},String(n)))),r?Ye({...n,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),Pl=p((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:r})=>{const a=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),[o,c]=He({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return u("div",{children:[u("div",{role:"table",children:[a?.length?h(Ll,{colHeaders:a,activeIndex:o}):null,s?.length?h(Fl,{rowData:s,isColoredFirstColumn:r,activeIndex:o,controls:c}):null]}),d?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Ul=p((({className:e="",title:t,rowHeaders:l,columns:r,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!i),m=a((()=>d((e=>!e))),[]);return u(T,{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e}`,...o,children:[h(R,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),h(Pl,{columns:r,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?Xl({isShowAllRow:c,onClick:m}):null]})})),Xl=({isShowAllRow:e,onClick:t})=>h("div",{className:"pr-[50px]",children:u("div",{className:"flex w-full",children:[h("div",{className:Bl}),h("button",{onClick:t,className:"mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:h("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),Hl=p((({className:e="",contacts:t,info:l,version:n="secondary",...r})=>u(T,{className:`${K[n]} flex p-[50px] ${e}`,...r,children:[l?.length?Gl(l,n):null,t?.length?Gl(t,n):null]}))),Gl=(e,t)=>h("div",{className:"flex grow basis-0",children:e.map(((e,l)=>Wl({column:e,index:l,version:t})))}),Wl=({column:e,index:t,version:l})=>e?h("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:n,button:r},a)=>u("div",{className:"mt-6 first:mt-0",children:[h(Le,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"left",bgColorHeadline:l}),n?h("div",{className:"mt-1.5 opacity-80",children:h(V,{size:"text-m-light",children:n})}):null,r?h($e,{className:"mt-6",...r}):null]},String(a))))},`col-${String(t)}`):null,Jl=e=>"Image"===e?.errorContentType&&e?.image?h(G,{image:e.image}):"Code"===e?.errorContentType&&e.code?h("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,Yl=p((({className:e="",title:t,subtitle:l,error:n,button:r})=>u("section",{className:`flex flex-col justify-center items-center mt-12 ${e}`,children:[h("div",{className:"flex justify-center py-20",children:Jl(n)}),t?h(R,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?h("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,r?.text?h($e,{className:"py-4 px-9",version:r?.version,...r,children:r.text}):null]}))),Zl=p((({className:e="",title:t="",buttons:l,image:n,children:r})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:r}),l?h("div",{className:"mt-auto pt-8",children:l}):null]}),n]})]})));var Kl;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(Kl||(Kl={}));const ql=new Intl.NumberFormat("ru",{style:"currency",currency:Kl.RUB}),Ql=e=>e?ql.format(e):"",en="text-left text-m-light text-secondary-text",tn={USD:"DollarIcon",EUR:"EuroIcon"},ln=p((({className:e,exchangeCurrencyItems:t})=>u("table",{className:`h-fit w-fit ${e}`,children:[h("thead",{children:u("tr",{children:[h("th",{className:en,children:"Валюта"}),h("th",{className:`${en} pl-11`,children:"Купить"}),h("th",{className:`${en} pl-11`,children:"Продать"})]})}),h("tbody",{children:t.map(nn)})]}))),nn=e=>{const t=e?.currency?.currency;return u("tr",{className:"pb-1 text-h6",children:[h("td",{className:"pt-4",children:u("div",{className:"flex items-center",children:[t?h(G,{image:{icon:tn[t]},width:"24",height:"24"}):null,h("span",{className:"ml-2",children:t})]})}),h("td",{className:"pt-4 pl-11",children:Ql(e?.saleExchangeRate)}),h("td",{className:"pt-4 pl-11",children:Ql(e?.buyExchangeRate)})]},t)},rn=p((({className:e="",address:t})=>u("div",{className:`flex ${e}`,children:[h(G,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),u("div",{className:"ml-3",children:[t?h("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,h("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),an=(e,t,l)=>{const n=Number(sn(e))*Math.pow(t,l?-1:1);return Number.isInteger(n)?n:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(n)},sn=e=>e.replace(/[^\d.,]/g,"").replace(",","."),on=e=>{return(t=[[e=>e.value!==Kl.RUB&&e.oppositeValue!==Kl.RUB,()=>e.handleConvert(e.value,Kl.RUB)],[e=>e.value===Kl.RUB&&e.oppositeValue===Kl.RUB,()=>e.handleConvert(e.value,Kl.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function cn(e){const t=s(null);return r((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const dn=p((({className:e="",isBorder:t=!0,label:l,options:i=[],value:s,onChange:o,placeholder:c=""})=>{const[d,m]=n(i[0]||{key:"",text:""}),[p,x]=n(!1),g=cn(a((()=>x(!1)),[]));return r((()=>{m(s||{key:"",text:""})}),[s]),u("div",{className:`${e}`,ref:g,children:[l?h("span",{className:"mb-2 flex text-primary-text",children:l}):null,u("div",{className:"relative "+(p?"z-20":"z-10"),children:[u("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${un(t)}`,onClick:()=>x(!p),children:[h("p",{className:"p-4 pr-8 h-[56px] overflow-hidden text-ellipsis whitespace-nowrap",children:d?.text||c}),h(A,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(p?"":"rotate-180")})]}),i?.length?h("div",{className:`h-0 ${mn(p)}`,children:h("div",{className:"bg-white text-l max-h-[256px] overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:i.map(hn((e=>{m(e),x(!1),o(e)}),p,(e=>Boolean(e.key===d.key))))})}):null]})]})})),mn=e=>e?"":"overflow-hidden",hn=(e,t,l)=>(n,r)=>u("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[h("span",{className:"min-h-6",children:n.text}),h(A,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",l(n)&&t?"":"hidden"].join(" ")})]},String(r)),un=e=>e?"border border-main-stroke rounded-md hover:border-primary-hover":"";function pn(e){const{placeholder:t,rates:l,selected:n,value:r,setValue:a,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return u("div",{className:"relative flex",children:[h(Pt,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:r,onChange:a}),s.length?h(dn,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const xn=p((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:r})=>{const[i,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Kl.RUB,selectBuy:l?.[0]?.currency?.currency||Kl.USD}),o=a((e=>s((t=>({...t,...e})))),[]);return u("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[pn({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:gn(i,o,l),value:i.inputSell,setValue:e=>fn(o,l)(e,i.selectSell,i.selectBuy)}),pn({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:bn(i,o,t),value:i.inputBuy,setValue:e=>Nn(o,t)(e,i.selectBuy,i.selectSell)}),r?.text?h($e,{className:"py-4 mr-1",version:r?.version,...r,children:r.text}):null]})})),gn=(e,t,l)=>n=>{t({selectSell:n}),on({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,r=e.selectBuy)=>{fn(t,l)(e.inputSell,n,r)}})},bn=(e,t,l)=>n=>{t({selectBuy:n}),on({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,r=e.selectSell)=>Nn(t,l)(e.inputBuy,n,r)})},fn=(e,t)=>(l,n,r)=>{e({inputSell:sn(l),selectBuy:r});const a=t.find((e=>e.currency?.currency===r))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;a&&e({inputBuy:String(an(l,a,n===Kl.RUB)||"")})},Nn=(e,t)=>(l,n,r)=>{e({inputBuy:sn(l),selectSell:r});const a=t.find((e=>e.currency?.currency===r))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;a&&e({inputSell:String(an(l,a,n===Kl.RUB)||"")})};const vn=async e=>{const t=await yn(),l=t?.code||"000";return{region:t,exchangeRates:await wn(e,l)}},yn=async()=>{try{return await bt("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},wn=async(e,t)=>{try{return await bt(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},kn=p((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:r}=function(){const{data:e}=pt("/api/v1/exchangerates",vn);return e||{}}(),a=Cn(r?.exchangeRate?.currencies),i=a.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:Kl.RUB}});const s=a.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Kl.RUB}}),h(T,{className:`bg-white text-primary-text font-sans p-9 box-border min-h-[320px] ${e}`,...n,children:h(Zl,{title:h(R,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:u("div",{className:"flex",children:[u("div",{className:"mr-14 pt-4",children:[a?h(ln,{className:"mb-[30px]",exchangeCurrencyItems:a}):null,h(rn,{address:r?.address})]}),a.length&&i.length&&s.length?h(xn,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),Cn=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[];function $n(e,t={}){const{data:l}=pt(`/wcms-resources/${e}.json`,bt,{fallback:t});return l||{}}const Sn={"bg-white":"color",transparent:"white"},In={"bg-white":"text-primary-main",transparent:"text-white"},Tn={"bg-white":"text-primary-text",transparent:"text-white"},Bn=p((({className:e="",href:t,logo:l,children:n=l?.title,targetBlank:r,bgColor:a="bg-white",showTitle:i=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:r?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[h(G,l?.image?.src?{image:l.image,className:In[a],width:"40",height:"45",asSVG:!0}:{image:{icon:l?.image?.icon||"LogoIcon",iconVersion:Sn[a]},className:`${In[a]} w-10`,width:"40",height:"45",asSVG:!0}),i?Rn(n,a,l?.title):null]}))),Rn=(e,t,l)=>h("span",{className:`${Tn[t]} font-medium ml-2.5`,children:e||l||"Россельхозбанк"}),Vn=p((({className:e,isMobile:t=!1})=>{const{term:l,setTerm:r}=(()=>{const[e,t]=n("");return{term:e,setTerm:e=>t(e)}})(),a=t?"text-s":"text-l-light",i=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(G,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${a}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${i}`,value:l,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),r("")},children:h(G,{image:"CloseIcon",width:"24",height:"24"})}):h($e,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),jn=p((e=>h(Vn,{...e}))),Mn=p((({className:e="",items:t,hasButton:l})=>u("div",{className:e,children:[t?.length?t.map(Ln):null,l?h($e,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Ln=(e,t)=>{const{type:l,text:n,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:_n(l,n)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},_n=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Dn(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},Dn=e=>e.replaceAll(/\D/g,""),An=p((({className:e="",index:t,text:l,...n})=>{const r=pe(),{href:a,target:i,onClick:s}=r(n);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:i,onClick:s,children:l||`Документ ${t}`})})),On=p((({className:e="",links:t})=>h("div",{className:e,children:t?.length?h("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>h(An,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),zn=e=>t=>e?.href===t?.href,En=(e,t)=>{return(n=e,r=t,(n||[]).map((e=>r?.find(zn(e))||e))).concat((l=e,(t||[]).filter((e=>!l?.find(zn(e))))));var l,n,r},Fn=p((({className:e="",items:t,fallback:l})=>{const n=pe(),r=$n(c.SITEMAP||"sitemap",l),a=En(r.topItems,t);return h("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:a?.map(((e,t)=>Pn(n(e),t)))})})),Pn=(e,t)=>{const{text:l,items:n,href:r,target:a,onClick:i}=e;return u("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[h("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:r,target:a||"_self",onClick:i,children:l||`Раздел ${t}`}),n?.map(((e,t)=>h(Un,{...e,index:t},String(t))))]},String(t))},Un=p((({text:e,index:t,...l})=>{const n=pe(),{href:r,target:a,onClick:i}=n(l);return h("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:r,target:a||"_self",onClick:i,children:e||`Раздел ${t}`})})),Xn=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],Hn=p((({version:e="primary",...t})=>{const l=pe(),{href:n,onClick:r}=l(t),{icon:a,label:i}=Xn.find((({origins:e})=>e.some((e=>n?.includes(e)))))||{};if(!a)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:n,"aria-label":i,target:"_blank",rel:"noopener noreferrer",onClick:r,children:a?h(G,{image:q(a),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Gn=p((({className:e="",media:t,version:l,children:n})=>u("div",{className:"font-sans",children:[h("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>h(Hn,{version:l,...e},String(t))))}),h("span",{className:"text-s-light text-secondary-text",children:n})]}))),Wn=p((({className:e="",index:t,...l})=>{const n=pe(),{href:r,target:a,text:i,onClick:s}=n(l);return h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:a,onClick:s,children:i||`Документ ${t}`})})),Jn=p((({className:e="",links:t})=>u("div",{className:e,children:[h("div",{className:"pt-5",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>h(Wn,{index:t,...e},String(t))))}):null]}))),Yn="w-[204px]",Zn=p((({className:e,...t})=>{const l=t.options?.page?.fallback,{documents:n,relatedEnterprises:r,contacts:a,socialMedia:i,mobileApps:s,topItems:o}=$n(c.FOOTER||"footer",l);return u(T,{tag:"footer",className:`p-9 bg-white font-sans ${e||""}`,...t,children:[u("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[h(Bn,{className:Yn}),h(jn,{className:"grow"})]}),u("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[u("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[h(Mn,{items:a,hasButton:!0}),h(Gn,{media:i,children:"Соцсети"}),h(Gn,{className:"mt-6",media:s,children:"Мобильное приложение"})]}),h(Fn,{className:"pt-[3px]",items:o,fallback:l})]}),h(On,{className:"mt-[98px]",links:r}),h(Jn,{links:n})]})})),Kn={normal:3,mini:4},qn={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Qn={normal:380,mini:276},er={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},tr={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},lr=p((({className:e="",isDotted:t=!0,children:l,version:n="primary",size:r="M"})=>u("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?h("div",{children:h("div",{className:`rounded-full align-middle inline-block ${er[n]} ${tr[r]}`})}):null,h("span",{children:l})]}))),nr={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},rr={S:"text-l-light",M:"text-h6",L:"text-h5"},ar={S:"ml-2",M:"ml-3",L:"ml-4"},ir=p((e=>{const{className:t="",hasIndent:l,isDotted:n,itemClassName:r="",items:a,listItemSize:i="M",version:s="primary"}=e;return a?.length?h("section",{className:`${nr[s]} ${rr[i]} ${t} ${l?ar[i]:""}`,role:"list",children:a.map(((e,t)=>h(lr,{className:`${r} mb-1.5`,isDotted:n,version:s,size:i,children:e},String(t))))}):null})),sr=p((({title:e,headlineSmallVersion:t="H6",description:l,additionalDescription:n,icon:r,items:a,button:i,version:s,isFullWidth:o=!0,isDotted:c=!0,align:d="center"})=>u("div",{className:`h-full flex flex-col justify-between ${C[d]}`,children:[u("div",{className:"flex flex-col h-full",children:[or(r,s),cr(t,e),dr(l,e),a?.length?hr(a,c,s):null,mr(n)]}),i?.text?Be({button:i,buttonClassName:"mt-6 "+(o?"":"self-center")}):null]}))),or=(e,t)=>u("div",{className:"flex justify-center",children:[e?.src?h(G,{className:"mb-5",image:e}):null,e?.icon?h(G,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:q(e,t),asSVG:!0}):null]}),cr=(e,t)=>t?h("div",{className:Me[e],children:t}):null,dr=(e,t)=>e?h("div",{className:"text-l "+(t?"mt-2":""),children:e}):null,mr=e=>e?h("div",{className:"text-m-light text-secondary-text mt-auto",children:e}):null,hr=(e,t,l="primary")=>h(ir,{className:"max-w-[308px] mt-2 text-s "+("primary"===l?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:l}),ur=p((({headlineVersion:e="M",cards:t=[],version:l="normal",activeIndex:n,...r})=>u("div",{children:[h(Le,{...r,className:"!p-0",headlineVersion:e,align:"center"}),h("div",{className:`flex mt-8 ${t?.length<=Kn[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${n*Qn[l]}px)`},role:"list",children:t?.map(((e,t)=>function({card:e,version:t},l){return h("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${qn[t]} ${K[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:h(sr,{...e})},String(l))}({card:e,version:l},t)))})]})));const pr=p((({cards:e=[],className:t="",version:l="normal",button:n,...r})=>{const[a,i]=He({itemCount:e?.length,visibleItemCount:Kn[l]}),{isScrollAvailable:s}=i;return u(T,{className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden flex flex-col ${t}`,...r,children:[h(ur,{cards:e,version:l,activeIndex:a,...r}),Ye({...i,btnClass:["left-8","right-8"],className:"top-1/2"}),s?u("div",{children:[h("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),h("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]}):null,n?Be({button:n,buttonClassName:"mt-8 mx-auto"}):null]})})),xr=p((e=>h(pr,{...e,version:"normal"}))),gr=p((({className:e="",title:t,description:l,calendar:n,...r})=>u(T,{className:`font-sans bg-white p-[50px] ${e}`,...r,children:[h(Le,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M",align:"center",...r}),n?br(n):null]}))),br=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return u("div",{className:"w-full flex flex-col justify-center mt-13",children:[h("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>fr(e,t)))}),h("div",{className:"flex w-full",children:l.map(((e,t)=>u("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[h("div",{className:"flex",children:Nr(e)}),u("div",{className:"text-s-light text-primary-text mt-3",children:[h("span",{children:e.text})," ",h("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},fr=(e,t)=>e.month?.map(((e,l)=>h("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),Nr=e=>e.month?.map((e=>e.image?.src?h("div",{className:"h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:h(G,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),vr=(e,t,l=((e,t)=>t.startsWith(e)))=>l(oe(e),oe(se(e)?t.href:t.pathname)),yr=e=>t=>vr(t.href,e),wr=e=>t=>t.items?.some(yr(e))||vr(t.href,e)||((e,t)=>ce(e)===ce(t.href))(t.href,e),kr="font-sans text-s-light",Cr=p((({className:e="",active:t,flat:l,ariaLabel:n,bgColor:r="bg-white",children:a,...i})=>{const s=pe(),{href:o,target:c,text:d,onClick:m}=s(i);return h("a",{className:`${$r(r,t,l)} ${e}`,href:o,target:c,onClick:m,rel:"noopener noreferrer","aria-label":n,children:h("span",{className:Sr(r,t,l),children:d||a})})})),$r=(e,t=!1,l=!1)=>{let n="border-transparent";return t&&(n="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${n} inline-block border border-solid bg-transparent text-center no-underline ${l?"":"px-4 py-2"}`},Sr=(e,t=!1,l=!1)=>{if("transparent"===e)return`text-white hover:text-primary-hover ${kr}`;return`${t?"text-primary-main":(l?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${kr}`},Ir=o("https://10.80.4.9");const Tr=p((({className:e="",children:t,ariaLabel:l})=>h("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":l,children:t}))),Br={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},Rr={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},Vr={"bg-white":"black",transparent:"white"},jr=p((({className:e,officesLink:t,defaultLocation:l="Москва",bgColor:i="bg-white"})=>{const[s,o]=function(e){const[t,l]=n(e);return r((()=>{l(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,a((()=>{Ir.getFetcherAddress().then((t=>{const n=t||e;globalThis?.localStorage.setItem("location",n),l(n)}))}),[e])]}(l);return u("div",{className:`flex items-center ${e||""}`,children:[h(Cr,{className:"mr-5",flat:!0,href:"#",text:s,ariaLabel:"Местоположение",onClick:o,bgColor:i}),t?h(Cr,{className:"mr-7",flat:!0,href:t,text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:i}):null,h(Tr,{className:`mr-5 group ${Br[i]}`,ariaLabel:"Поиск по сайту",children:h(G,{image:{icon:"LoupeIcon",iconVersion:Vr[i]},className:"h-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0 pointer-events-none",asSVG:!0})}),h(Tr,{className:`${Rr[i]} group min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:h(G,{image:{icon:"GridIcon",iconVersion:Vr[i]},className:"h-full bg-main-divider/20 rounded-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0",asSVG:!0})})]})})),Mr={"bg-white":"bg-primary-text",transparent:"bg-white"},Lr=p((({className:e,items:t,activeItem:l,bgColor:r})=>{const i=pe(),[s,o]=n(!1),c=a((()=>o((e=>!e))),[]),d=cn(a((()=>o(!1)),[]));return u("div",{className:`${s?"bg-white rounded-md shadow-blue-gray/24":""} ${e||""}`,ref:d,children:[h("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6","aria-label":""+(s?"Скрыть другие разделы":"Показать другие разделы"),onClick:c,children:Array(3).fill(r).map(_r)}),h("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(s?"":"hidden"),"aria-hidden":!s,children:t?.map(((e,t)=>h("a",{className:"text-l-light pb-4 hover:text-primary-main "+(e===l?"text-primary-main":""),...i(e),children:e.text},e.href||String(t))))})]})})),_r=(e,t)=>h("div",{className:`w-[3px] h-[3px] rounded mr-1 ${Mr[e]}`},String(t)),Dr="absolute left-0 -bottom-3 w-full h-[2px]",Ar=p((({className:e="",active:t,bgColor:l="bg-white",dataItemName:n,children:r,...a})=>{const i=pe(),{href:s,target:o,text:c,onClick:d}=i(a);return u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:s,target:o,"data-item-name":n,onClick:d,children:[h("span",{className:Or(l,t),children:c||r}),t?h("div",{className:zr(l,t)}):null]})})),Or=(e,t=!1)=>{let l="text-white";return"bg-white"===e&&(l=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${l} font-sans text-l-light`},zr=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Dr}`:Dr,Er=p((({className:e,active:t,bgColor:l,observerOptions:n,onVisibilityChange:r,children:i,...s})=>{const o=S(a((e=>{if(!e.length||!r)return;const t=e[e.length-1];r(t.isIntersecting)}),[r]),n);return h("span",{ref:o,children:h(Ar,{className:e,active:t,bgColor:l,...s,children:i})})})),Fr=p((({subItems:e=[],bgColor:t})=>{const l=(e=>(t=[])=>{const l=t?.filter(yr(e));return l?.length?qt((e=>e.href?.length||0))(l):void 0})(ue())(e),[r,a]=n(e.length),o=e.slice(r),c=s(null),d={rootRef:c},m=i((()=>e.map(((e,t)=>e=>{a(e?Pr(t):Ur(t))}))),[e]);return u("nav",{className:"relative mt-6",children:[h("div",{ref:c,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,n)=>h(Er,{className:"mr-8 "+(r-1<n?"invisible":""),active:e===l,bgColor:t,observerOptions:d,onVisibilityChange:m[n],...e},String(n))))}),o.length?h(Lr,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:o,activeItem:l,bgColor:t}):null]})})),Pr=e=>t=>Math.max(t,e+1),Ur=e=>t=>Math.min(t,e),Xr={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Hr=p((({bgColor:e="bg-white",className:t="",showSubMenu:l=!0,...n})=>{const r=ue(),{topItems:a,logo:i,defaultLocation:s,officesLink:o}=$n(c.SITEMAP||"sitemap",n.options?.page?.fallback),d=l?Gr(a,r):null,m=a?.map(((t,l)=>h(Cr,{active:t===d,"aria-label":t.text,bgColor:e,...t},String(l))));return h(T,{tag:"header",className:`pt-6 px-20 ${e} ${t} ${l&&d?.items?.length?"pb-4":"pb-5"}`,...n,children:u("div",{className:"container",children:[u("div",{className:"flex items-center",children:[h(Bn,{className:"mr-8",bgColor:e,logo:i}),m,h(jr,{className:"ml-auto",defaultLocation:s,officesLink:o,bgColor:e})]}),h("div",{className:`mt-6 h-[1px] ${Xr[e]}`}),l&&d?.items?.length?h(Fr,{subItems:d.items,bgColor:e}):null]})})})),Gr=(e,t)=>{const[l]=e||[];return e?.find(wr(t))||l},Wr=p((e=>{const{className:t,image:l,...n}=e;return h(T,{className:t,...n,children:h(G,{image:l})})})),Jr=p((({className:e="",cards:t=[],button:l})=>{const[r,i]=n(0),s=a((e=>i(e)),[]),o=t.length,[c,d]=He({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:p}=d,x=t[c]?.href;return u("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[u("div",{className:"relative overflow-hidden",children:[o?Yr({activeIndex:c,cards:t,selectedCardIndex:r,onClick:s}):null,Ye({...d,btnClass:["left-[50px]","right-[50px]"],className:"top-[62px]"}),m?h("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,p?h("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),h($e,{className:"w-[240px] text-center",version:"primary",...l,href:x})]})}));function Yr({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const r=460*e,a=t.length>2?"justify-start":"justify-center";return h("div",{style:{transform:`translateX(-${r}px)`},className:"duration-1000 px-[50px]",children:h("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${a}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return u("button",{type:"button",onClick:n,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue/42 border-primary-main":"ease-in duration-300 border-main-stroke"),children:[e?.icon?h(G,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,u("div",{className:"flex gap-3.5",children:[e?.sum?Zr("страховая сумма",e.sum):null,e?.fee?Zr("страховой взнос",e.fee):null]}),Kr(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function Zr(e,t){return u("div",{className:"flex flex-col text-left whitespace-pre",children:[u("span",{className:"text-h6",children:[Ze(t)," ₽"]}),h("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Kr(e){return e?h(G,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:"DoneIcon",width:"24",height:"24"}):null}const qr=p((({className:e="",title:t,insuranceTabs:l=[],button:r,...i})=>{const[s,o]=n(0),c=a((e=>o(e)),[]);return u(T,{className:`box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${e}`,...i,children:[t?h(R,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?h("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,isActive:l,onClick:n}){return h("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:Qr({insuranceTabs:l,button:r})})]})})),Qr=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>h(Jr,{button:t,cards:e},String(l)))):null};function ea(e){return t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:n},l):[l]),[])}const ta={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},la={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},na=p((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:r,investmentColumns:a,...i}=e,s=a?[...a]:[];return r&&s.unshift(r),h(T,{className:`font-sans bg-white px-9 py-12 ${t}`,...i,children:u("div",{className:"container text-m-light",children:[s?.length?u("div",{children:[u("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[ea(h("div",{className:"w-px h-4 bg-main-stroke"}))(s.map(ra)),h("div",{className:"absolute right-[30px] w-px h-4 bg-main-stroke"})]}),h("div",{className:"border-t border-main-stroke -mt-2 ml-9 mr-8"}),h("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(sa)})]}):null,l?.length?h(ir,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:n}):null]})})})),ra=(e,t,l)=>{const n=1===t,r=t===l.length-1;return h("div",{className:`${aa(n,r,e.cells)}`,children:e.cells?.length?h("div",{className:"w-full "+(r?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(ia)}):null},`column_${t}`)},aa=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-2.5",l.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),ia=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?h("div",{className:`flex-1 flex items-center justify-center relative py-2 ${la[l]} ${ta[n]} ${"XS"===l?"px-3":"px-11"}`,children:h("div",{className:"text-center",children:e.text})},`cell_${t}`):null},sa=(e,t,l)=>{const n=0===t,r=t===l.length-1;return h("div",{className:`flex-1 max-w-[180px] text-center px-2 ${n?"pl-9":""} ${r?"mr-3.5":" "}`,children:e.title},`title_${t}`)},oa=p((({className:e,iconClassName:t,textClassName:l,suffixClassName:n,doc:r,icon:a})=>{const{text:i,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[a?h(G,{className:t,image:q(a),width:"24px",height:"24px",asSVG:!0}):null,i?u("span",{className:l,children:[i,h("span",{className:n,children:o?.href&&ca(da(o.href),s)})]}):null]})})),ca=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),da=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},ma=p((({className:e="",doc:t,icon:l})=>h(oa,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:l}))),ha=p((({className:e,documents:t,columnsMode:l="double",icon:n})=>t?.length?h("div",{className:e,role:"list",children:t.map(((e,t)=>h("div",{className:"double"===l?"basis-[calc(50%-20px)]":"",role:"listitem",children:h(ma,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:n})},String(t))))}):null)),ua={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},pa=p((({className:e="",title:t,description:l,align:n="center",documents:r,icon:a={icon:"DocIcon"},columnsMode:i="double",...s})=>u(T,{className:`font-sans text-primary-text p-[50px] bg-white ${e}`,...s,children:[h(Le,{className:"!p-0",title:t,description:l,align:n,headlineVersion:"M",as:"h2",...s}),h(ha,{className:`mt-8 ${ua[i]}`,columnsMode:i,documents:r,icon:a})]}))),xa=p((e=>h(pr,{...e,version:"mini"}))),ga=e=>{const t="col-span-",l=e.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function ba(e=""){const t=ga(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const fa=p((({className:e="",title:t="Мобильное приложение",qr:l,buttons:n,version:r="primary",items:a,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="primary"===r?"text-primary-text":"",p="secondary"===r?"p-3.5 min-w-[120px]":"min-w-[92px]",x=n?.map((e=>({...e,className:"min-w-[168px]"})));return u(T,{className:`flex justify-between font-sans p-[50px] box-border relative min-h-[320px]\n ${ba(e)}\n ${K[r]}\n ${e}`,...d,children:[u(Zl,{className:"z-10",title:t?h(R,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full\n ${m} ${C[o]}`}):null,buttons:n?.length?h(Te,{buttons:x,className:"flex gap-4 mt-8",...d}):null,children:[va(c),u("div",{className:"flex flex-1 items-center mb-3",children:[l?.src?h("div",{className:`flex justify-center mr-5 bg-white rounded-md ${p}`,children:h(G,{className:"w-fit",image:l})}):null,Na(r,a)]})]}),i?.src?h("div",{className:"absolute right-0 bottom-0",children:h(G,{image:i})}):null]})})),Na=(e,t)=>t?.length?h(ir,{items:t,itemClassName:"text-l-light mb-2 last:mb-0",version:e}):h("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),va=e=>e?h("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null;function ya(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),r=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),a=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));r.add(a),t.geoObjects.add(r),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const wa={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},ka=e=>h("a",{className:`select-none cursor-pointer px-9 h-12 bg-white bg-primary-main text-white ${Object.values(wa).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Ca={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},$a=(e,t,l)=>u("div",{className:`${Object.values(Ca).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[h(A,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),h("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const n=t.target?.value?t.target?.value.toLowerCase():"";if(n){const t=e.filter((e=>e.text.toLowerCase().indexOf(n)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),Sa={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},Ia=(e,t,l)=>h("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(Sa).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:h(A,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),Ta=e=>globalThis[e];const Ba=()=>function(e,t){const[l,i]=n(),s=a((()=>i(Ta(e))),[e]);return r((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!Ta(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY}&lang=ru_RU`),Ra={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},Va=p((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return h("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(Ra).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:h(A,{name:l,width:"20",height:"16"})})})),ja=[{coords:[55.77,37.46],text:"Трактир"},{coords:[55.66,37.48],text:"Трактор"},{coords:[55.65,37.42],text:"Ресторан"},{coords:[55.64,37.54],text:"Музей"},{coords:[55.54,37.52],text:"Библиотека"},{coords:[55.53,37.56],text:"Школа"},{coords:[55.61,37.61],text:"Аптека"},{coords:[55.8,37.58],text:"Бар"},{coords:[55.71,37.35],text:"Институт"},{coords:[55.74,37.57],text:"Университет"},{coords:[55.58,37.69],text:"Больница"},{coords:[55.57,37.7],text:"Цирк"},{coords:[55.55,37.64],text:"Магазин"},{coords:[55.5,37.75],text:"Булочная"},{coords:[55.81,37.73],text:"Полиция"},{coords:[55.73,37.68],text:"Салон красоты"},{coords:[55.86,37.76],text:"Баня"},{coords:[55.38,37.69],text:"Гараж"},{coords:[55.91,37.5],text:"Дом"},{coords:[55.62,37.32],text:"Прачечная"},{coords:[55.85,37.41],text:"Стадион"},{coords:[55.67,37.24],text:"Вокзал"},{coords:[55.79,37.41],text:"Кафе"}],Ma={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-focus focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},La=p((({points:e,className:t="",zoom:l=5,showSearchField:a=!1})=>{const i=s(null),o=Ba(),[c,d]=n(),[m,p]=n(Oa(ja)),x=_a(e);if(r((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:x,zoom:l,controls:[],suppressMapOpenBlock:!0}),ya(o,i.current,m)}))}),[o,i,m]),r((()=>{if(i.current&&m&&o){const e=m.length<1?Oa(ja):m;ya(o,i.current,e)}}),[i,m,o]),!o)return null;const g=c?"z-[100000]":"z-10";return u("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[h("div",{className:`absolute flex left-2 top-4 w-[50%] ${g}`,children:a?$a(ja,0,(e=>{if(e){const t=Oa(e);p(t)}})):ka(x)}),h("div",{className:`${Object.values(Ma).join(" ")} ${g} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;c?e.exitFullscreen():e.enterFullscreen(),d(e.isFullscreen())},children:h(A,{name:"FullScreenIcon",width:"16",height:"16"})}),u("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${g}`,children:[h(Va,{yandexMaps:i}),h(Va,{yandexMaps:i,direction:"out"})]}),Ia(i.current,o,`right-2 top-80 ${g}`)]})})),_a=e=>[Aa(Da(e,0)),Aa(Da(e,1))],Da=(e,t)=>e.map((e=>e[t])),Aa=e=>e.reduce(((e,t)=>e+t))/e.length,Oa=e=>e?e.map((e=>e.coords)):null,za=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],Ea=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?u("div",{className:"flex",children:[h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-golden border-golden",children:e?n:null})]}):h("div",{className:"flex",children:h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},Fa=({icon:e,title:t,distance:l,time:n},r)=>u("div",{className:"flex mr-4",children:[h(A,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?u("span",{className:"text-m",children:[t," "]}):null,u("span",{className:"text-m-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${r}`),Pa=({title:e,status:t,workTime:l,lunchHour:n,description:r},a)=>u("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[u("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[h("div",{children:e}),t?null:h("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?h("div",{children:l}):null]}),t&&n?Ua(n):null,r?h("div",{className:"pb-1 text-s-light text-secondary-text",children:r}):null]},`day${a}`),Ua=e=>/\d+/gi.test(e)?u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[h("div",{children:"Перерыв"}),h("div",{children:e})]}):h("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:h("div",{children:e})}),Xa={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};const Ha=e=>e?gt(e,{method:"GET"}):{},Ga=p((({className:e=""})=>{const t=function(e){const{data:t}=pt(e?`/api/v1/branches?regionCode=${e}`:void 0,Ha);return console.warn("WARNING!!! Hook useOfficeMap RETURN MOCK object for testing!"),console.log("Hook useOfficeMap get this data:",t),Xa}("000"),{name:l,address:n,gpsLatitude:r,gpsLongitude:a,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:p,workingSunday:x}=i,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:N}=i,v=r&&a?[r,a]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:b},{title:"Суббота",status:p,workTime:f,lunchHour:N},{title:"Воскресенье",status:x}],w=(new Date).getDay(),k=w>0?y[w-1]:y[6];return u("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[u("div",{className:"flex flex-col px-12 pt-12",children:[u("div",{className:"flex justify-between",children:[h("div",{className:"text-h2",children:l}),Ea(k)]}),u("div",{className:"flex text-l-light pt-4",children:[h(A,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),n]}),h("div",{className:"flex pt-4",children:za.map(Fa)})]}),u("div",{className:"flex justify-between pt-8",children:[h("div",{className:"flex-grow h-full w-full overflow-hidden",children:v?h(La,{points:[v],className:"h-full"}):null}),h("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(Pa)})]})]})})),Wa=p((({className:e="",title:t,servicesList:l,...n})=>u(T,{className:`font-sans bg-white p-8 flex flex-col ${e}`,...n,children:[t?h(R,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?h("ul",{className:"list-none m-0 p-0",children:l.map(Ja)}):null]}))),Ja=(e,t)=>u("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?h(G,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:q(e.icon)}):null,e.label?h("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),Ya=p((({className:e="",...t})=>h(T,{className:`font-sans text-primary-text ${e}`,...t,children:k(t)})));Ya.childrenTypes=["OtherProductsItem"];const Za=p((({className:e="",label:t,icon:l,dataTheme:n="",onClick:r})=>u("button",{className:["border border-transparent bg-primary-main font-sans text-white cursor-pointer","hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none","flex justify-center w-full px-0 py-5",e].join(" "),"data-theme":n,onClick:r,children:[h("span",{className:"text-h4 pr-3",children:t}),l?h(G,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),Ka=({isUnfolded:e,onToggle:t})=>h(Za,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),qa=["ArrowDownIcon","ArrowUpIcon"],Qa=p((({className:e,label:t="",isUnfolded:l,...n})=>{const{colorPalette:r}=function(e,t){const{content:l}=function(e){return e?.parent||{}}(e);return l||t}(n.options,{});return h("div",{className:`border-0 border-b border-solid border-main-divider ${e}`,children:h(L,{unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(_,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:k(n)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>h(Za,{label:t,icon:qa[Number(e)],dataTheme:r||n.options?.page?.colorPalette,onClick:l})})})}));Qa.childrenTypes=[];const ei=p((e=>{const{className:t,text:l,size:n,color:r,align:a,font:i,...s}=e;return h(T,{className:t,...s,children:h(V,{size:n,color:r,align:a,font:i,children:l})})})),ti={primary:"text-primary-text",secondary:"text-white"},li={primary:"text-secondary-text",secondary:"text-white"},ni=p((e=>{const{className:t="",icon:l,label:n,description:r,version:a="primary",benefitsVersion:i="normal"}=e,s="white"===i?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[l?h("div",{className:ri(a,i),children:h(G,{className:"w-6 h-6",image:q(l,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[n?h("div",{className:`text-h6 ${ti[a]}`,children:n}):null,r?h("div",{className:`text-m-light ${li[a]}`,children:r}):null]})]})}));function ri(e,t){let l="bg-primary-main text-black";return"secondary"===e?l="bg-white/30 text-black":"normal"===t&&(l="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${l}`}const ai=p((({className:e="",title:t,description:l,image:n,benefits:r,version:a="primary",sum:i,monthLimit:s,directionRight:o=!1,...c})=>u(T,{className:`relative font-sans py-12 px-24 ${K[a]} ${e}`,...c,children:[h(Le,{className:"!p-0",title:t,description:l,headlineVersion:"M",bgColorHeadline:a,align:"center",...c}),u("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[n?.src?h(G,{className:o?"order-2":"",image:n}):null,u("div",{className:"w-[558px] m-auto",children:[r?.length?h("div",{className:"flex flex-col gap-4",children:r.map(ii(a))}):null,si(Number(i),Number(s))]})]})]}))),ii=e=>(t,l)=>h(ni,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));function si(e,t){return e||t?u("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?oi("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?oi("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function oi(e,t=0,l=!1){return u("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[h("span",{className:"text-secondary-text text-l-light",children:e}),u("span",{className:"text-primary-main text-h6",children:[Ze(t)," ₽"]})]})}function ci(e=""){const t=ga(e);return t<=4?"S":t<=8?"M":"L"}function di(e=""){const t=ga(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const mi=p((({className:e,title:t,description:l="Блок в разработке...",...n})=>u(T,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${di(e)} ${ba(e)} `,...n,children:[h(Le,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:ci(e),...n}),h("figure",{className:"m-0 min-w-[80%]",children:hi()})]}))),hi=(e=3)=>pi(100,e).map((e=>Math.floor(e))).map(ui),ui=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),pi=(e,t)=>[e].concat(t>0?pi(e/1.618,t-1):[]),xi=p((({className:e="",children:t,...l})=>{const n=pe(),{text:r,href:a,target:i,onClick:s}=n(l);return a?h("a",{className:`no-underline ${e}`,href:a,target:i,onClick:s,children:h("span",{className:e,children:r||t})}):h("span",{className:e,children:r||t})})),gi=(e="primary",t="normal")=>({icon:l,label:n,description:r},a)=>h(ni,{icon:l,label:n,description:r,version:e,benefitsVersion:t},String(a)),bi=p((({className:e="",title:t,headlineVersion:l="L",description:n,benefitsCountOfRow:r=3,benefits:a,benefitsVersion:i,buttons:s,footnote:o,image:c,items:d,version:m="primary",isDotted:p=!0,textBlockClassName:x="",...g})=>{const b=a?.filter((e=>e.label))?.length,f=fi(r);return u("div",{className:`flex grow justify-between items-stretch h-full ${e}`,children:[u("div",{className:`flex flex-col ${x}`,children:[h(Le,{title:t,description:n,className:"!p-0 max-w-[600px]",bgColorHeadline:m,headlineVersion:l,align:"left",...g}),u("div",{className:"flex flex-col justify-between h-full",children:[u(Zl,{buttons:s?.length?h(Te,{buttons:s,className:"flex gap-4",...g}):null,children:[b?h("div",{className:f,children:a.map(gi(m,i))}):null,d?.length?h(ir,{className:"mt-5 text-h6",items:d,itemClassName:"mb-[7px]",version:m,isDotted:p}):null]}),o?h("p",{className:"text-m-light pt-12",children:o}):null]})]}),c?.src&&h(G,{className:"mt-[-50px]",image:c})]})})),fi=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function Ni(e,t,l){const{text:n,href:r,target:a,onClick:i}=e,s="primary"===t?"white":"black",o=e?.icon||{icon:"ArrowLeftIcon"};return u("div",{className:`flex items-center cursor-pointer ${l}`,onClick:i,children:[h($e,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:n,href:r,target:a,children:h(G,{className:"w-4 h-4",image:{...o,iconVersion:o.iconVersion||s},asSVG:!0})}),n?h("span",{className:"text-m",children:n}):null]})}const vi={primary:"text-secondary-text",secondary:"text-white/80"},yi=p((e=>{const{className:t="",breadcrumbs:l,backwardButton:n,version:r="primary",...a}=e,i="primary"===r?r:"white";return u(T,{className:`font-sans overflow-hidden p-[50px] flex flex-col box-border min-h-[454px] ${K[r]} ${t}`,...a,children:[n?.text?Ni(n,i,"mb-10 -mt-2.5"):null,l?.length?h("div",{className:"text-xs-light mb-6",children:ea(h("span",{className:`mx-2 ${vi[r]}`,children:"/"}))(l.map(((e,t)=>h(xi,{className:vi[r],...e},String(t)))))}):null,h(bi,{version:r,...a})]})})),wi={primary:"border-main-stroke",secondary:"border-white/50"},ki={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},Ci=p((({className:e="",slides:t=[],version:l="primary",...r})=>{const i=t.map((e=>e.nav)),s=t.map((e=>e.productBlock)),[o,c]=n(0),d=a((e=>c(e)),[]);return u(T,{className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 mb-6 ${e}\n ${K[l]}`,...r,children:[h("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${o}00%)`},role:"list",children:s.map(((e,t)=>function(e,t){const{version:l}=e,n=l?ki[l].title:"";return h("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:h("div",{className:"flex grow",children:h(bi,{className:`pl-[50px] z-10 ${n}`,textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...r,version:l},t)))}),h("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:i.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n,version:r}){const a=l?"bg-white shadow-dark-blue/42 min-w-[350px] border-none p-6":`min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur\n ${K[r]}`,i=l?"text-primary-text !text-h6 p-2":`text-l pb-1 ${ki[r].title}`,s=l?"text-secondary-text text-l-light":`text-m-light ${ki[r].text}`;return h("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${a} ${wi[r]}\n `,children:u("div",{className:"border-0 px-6",children:[h("div",{className:`last:pb-0 ${i}`,children:e?.title}),h("div",{className:`text-secondary-text ${s}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===o),onClick:()=>d(t),version:l})))})]})}));const $i=p((({className:e="",title:t,headlineVersion:l="S",description:n,additionalDescription:r,benefits:a=[],buttons:i,image:s,version:o="primary",...c})=>u(T,{className:`overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]\n ${e} ${K[o]} ${di(e)}`,...c,children:[h(Le,{className:"!p-0 !bg-transparent z-10 "+(t||n?"mb-3.5":""),as:"h2",title:t,description:n,headlineVersion:l,bgColorHeadline:o,align:"left",...c}),Si(a,o,s),r?Ti(r,s,o):null,i?.length?h(Te,{buttons:i,className:"flex self-end mt-5 gap-4 z-10 text-l"}):null,s?.src?h(G,{className:"absolute right-0 bottom-0",image:s}):null]})));function Si(e,t,l){return h("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline\n ${l?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(Ii(t)):null})}function Ii(e="primary"){const t={primary:"text-secondary-text",secondary:"text-white"};return function(l,n){const{label:r="",description:a=""}=l;return[h("div",{className:"text-h6",children:r},`label-${n}`),h("div",{className:`text-m-light ${t[e]}`,children:a},`desc-${n}`)]}}function Ti(e,t,l="primary"){return h("div",{className:`text-m-light mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"} ${{primary:"text-secondary-text",secondary:"text-white"}[l]}`,children:e})}const Bi=p((({className:e="",title:t="Акции и спецпредложения",date:l,description:n,buttons:r=[],version:a="primary",...i})=>h(T,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${K[a]} ${di(e)} ${ba(e)} `,...i,children:h(Zl,{title:t?h(Le,{title:t,className:"!p-0 max-w-[600px]",headlineVersion:ci(e),bgColorHeadline:a,align:"left",as:"h2",...i}):null,buttons:r?.length?h(Te,{buttons:r,className:"flex gap-3"}):null,children:u("div",{className:"mt-1.5",children:[l?h("div",{className:"text-s mb-2",children:Ri(l)}):null,h("div",{className:"text-l",children:n})]})})})));function Ri(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Vi=p((({className:e="",title:t,description:l,items:n,image:r,version:a,socialMedia:i,button:s})=>{const o=t?h(R,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:t}):null,c=r?.src?h(G,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return h("section",{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${e}`,role:"listitem",children:h(Zl,{className:"flex justify-between",title:o,image:c,children:u("div",{className:"h-full flex flex-col justify-between",children:[l?h("span",{className:"mb-2",children:l}):null,n?.length?h(ir,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:n,version:a}):null,i?h(Gn,{className:"pt-10 pb-0",media:i,version:a}):null,s?.text?h("div",{className:"pt-2",children:Be({button:s,buttonClassName:"mt-16"})}):null]})})})})),ji="absolute top-0 bottom-0 w-[84px]",Mi=p((({recommendations:e=[],className:t="",title:l,version:n="primary",...r})=>{const[a,i]=He({itemCount:e.length,visibleItemCount:2});return u(T,{className:`relative font-sans p-9 overflow-hidden text-center ${K[n]} ${t}`,...r,children:[l?h(R,{headingType:"h3",className:"mb-6",title:l}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*a}px)`},role:"list",children:e.length?e.map(((e,t)=>h(Vi,{version:n,className:wi[n],...e},String(t)))):null}),Ye({...i,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),h("div",{className:`${ji} left-0 ${"secondary"===n?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${ji} right-0 ${"secondary"===n?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Li=p((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:n=!0,version:r="primary",...a})=>h("div",{className:`border-b border-solid border-main-divider w-full ${e}`,children:h(L,{isFoldButtonOnTop:n,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(_,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:k(a)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>_i({isUnfolded:e,onToggle:l,label:t,version:r})})})));Li.childrenTypes={exclude:["RollupItem","Accordion","AccordionItem","OtherProducts","OtherProductsItem","VerticalLayout"]};const _i=({isUnfolded:e,onToggle:t,label:l,version:n})=>{const r=l?[l,l]:["Развернуть","Скрыть"];return"primary"===n?h(Di,{icon:["PlusIcon","MinusIcon"][Number(e)],label:r[Number(e)],onClick:t}):h(Za,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:r[Number(e)],onClick:t})},Di=p((({label:e,icon:t,onClick:l})=>u("button",{className:"border-none bg-transparent px-9 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer",onClick:l,children:[h("span",{className:"text-xl font-medium pr-2.5",children:e}),t?h(G,{image:q({icon:t}),width:"24",height:"24",asSVG:!0}):null]}))),Ai=[];const Oi=async e=>await gt(e,{method:"GET"})||Ai,zi=p((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:r="",setSelected:a,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return h(dn,{options:s,label:i,placeholder:r||n,onChange:e=>a(e.key),value:o})})),Ei=p((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:r,onSelectedBranch:a})=>u("div",{className:"flex justify-between gap-4 mb-6",children:[h("div",{className:"max-w-[396px] w-1/2",children:h(zi,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),h("div",{className:"max-w-[396px] w-1/2",children:h(zi,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:r,setSelected:a,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Fi=p((({name:e,text:t,value:l,checked:n,onChange:r,className:a})=>h("div",{className:a,children:u("label",{className:"font-sans flex items-center relative cursor-pointer",children:[h("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-checkbox-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:n,onChange:e=>r(e.target.value)}),t?h("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),Pi=p((()=>{const[e,t]=n("option2"),l=a((e=>t(e)),[]);return u("div",{children:[h(Fi,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),h(Fi,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),Ui=["От 1 дня","До 365 дней"],Xi=p((({days:e,setDays:t})=>u("div",{className:"mb-6",children:[h("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),h(ct,{min:1,max:365,value:e,items:Ui,onChange:t})]}))),Hi=p((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:r,onSelectedBoxSize:a})=>u("div",{className:"flex justify-between mb-6",children:[h("div",{className:"mr-4 w-full",children:h(zi,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),h("div",{className:"w-full",children:h(zi,{data:n,fieldLabel:"safeBoxCasesSize",selected:r,setSelected:a,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Gi=p((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:r,selectedCaseVolume:a,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>u("div",{className:"flex-1 mr-9",children:[h(Ei,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:Wi(c)}),h(Xi,{days:r,setDays:e=>c({days:e})}),h(Hi,{caseVolumes:o,selectedCaseVolume:a,onSelectedCaseVolume:Ji(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),h("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),u("div",{className:"flex justify-between items-center mt-5",children:[h(Pi,{}),h($e,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Wi=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Ji=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Yi=p((({days:e,tariffs:t=[]})=>{const l=Ki(e,t);return u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex",children:[Zi("Аренда за",e,"mr-11"),Zi("Цена",l+" ₽")]}),u("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[h(G,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),u("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",h("br",{})," листов формата А4"]})]})]})})),Zi=(e,t,l="")=>u("div",{className:l,children:[h("div",{className:"text-m-light text-secondary-text mb-1",children:e}),h("span",{className:"text-h3 text-primary-text",children:t})]}),Ki=(e,t)=>{const l=qi(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},qi=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},Qi=(e,t)=>e.find((e=>e.branchCode===t)),es=p((e=>{const{regions:t,data:l,branches:n,onChange:a,onClick:i}=e;r((()=>{a({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,a]);const s=Qi(n,l.selectedBranch),o=ts(s?.safeBoxCaseVolumes),c=ls(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=ns(c,l.selectedBoxSize);return u("div",{className:"flex justify-between align-top mb-6",children:[h(Gi,{...l,regions:t,onClick:i,branches:n,caseVolumes:o,safeBoxCases:c,onChange:a}),h(Yi,{days:l.days,tariffs:d})]})})),ts=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],ls=(e,t)=>e?.find((e=>e.volume===t)),ns=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;const rs=p((({title:e,footnote:t,className:l="",...r})=>{const[i,s]=n(!1),o=a((()=>s((e=>!e))),[]),[c,d]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=function(){const{data:e}=pt("/api/v1/regions",bt);return e||[]}(),p=as(c.selectedRegion,m),x=function(e){const{data:t}=pt(e?`/api/v1/safeboxes?regionCode=${e}`:null,Oi);return t||Ai}(p),g=a((e=>d((t=>({...t,...e})))),[d]),b=(f=Qi(x,c.selectedBranch)||x,Array.isArray(f)?f.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):f?.gpsLatitude&&f?.gpsLongitude?[[f.gpsLatitude,f.gpsLongitude]]:[]);var f;return u(T,{className:l,...r,children:[u("div",{className:"font-sans bg-white px-8 py-12",children:[e?h(R,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,h(es,{regions:m,branches:x,data:{...c,selectedRegion:p},onClick:o,onChange:g}),t?h("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?h(La,{points:b,className:"h-[640px]"}):null]})})),as=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,is=e=>Boolean(e?.icon||e?.src),ss=({items:e,isDotted:t=!0,version:l="primary",className:n=""})=>e?h(ir,{className:n,version:l,items:e,listItemSize:"M",isDotted:t}):null,os=({styleMap:e,isMainButton:t,version:l})=>(n,r,{length:a})=>{const{label:i,description:s,button:o,items:c,isDotted:d}=n,m=i&&(s||c)?"mt-2":"";return u("div",{className:`relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden ${hs(a)}`,children:[u("div",{className:(o?.text?"mb-8":"")+" text-center",children:[cs(i),u("div",{className:`${m} flex flex-col items-center`,children:[ds({description:s,className:e.description}),ss({items:c,isDotted:d,version:l,className:ms({className:"text-left",description:s,styleMap:e})})]})]}),o?.text&&!t?h($e,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(r))},cs=e=>e?h("div",{className:"text-h6",children:e}):null,ds=({description:e,className:t=""})=>e?h("div",{className:t,children:e}):null,ms=({className:e,description:t,styleMap:l})=>[t?l.description:"text-h6",t?"mt-0.5":"",e].join(" "),hs=e=>e<5?"w-[276px]":"w-[210px]",us={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},ps=p((({className:e="",showLines:t=!0,steps:l=[],button:n,version:r="primary",...a})=>{const{title:i}=a,s=us[r],o=l.length>3,c=(e=>e?"":"opacity-0")(t),d=i?"mt-9":"",m=(e=>e<5?"px-[88px]":"px-[55px]")(l.length);return u(T,{className:["box-border py-[50px] font-sans",o?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",s.background,s.title,e].join(" "),...a,children:[i?h(R,{headingType:"h3",className:"max-w-[752px] text-center",title:i}):null,l?.length?u("div",{className:`box-border ${d}`,children:[h("div",{className:`flex items-center ${m}`,children:ea(h("div",{className:`h-0.5 w-full bg-secondary-light ${c}`}))(l.map(xs(s,r)))}),h("div",{className:"flex justify-between mt-4 "+(o?"gap-x-3":"gap-x-[101px]"),children:l.map(os({styleMap:s,isMainButton:Boolean(n?.text),version:r}))})]}):null,n?.text?h($e,{className:"mt-8 min-w-[240px]",version:"primary",...n}):null]})})),xs=(e,t)=>({icon:l},n)=>h("div",{className:"flex flex-col items-center text-center",children:h("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center\n ${e.iconBackground} ${e.title}`,children:is(l)?h(G,{image:q(l||{},t),width:"48",height:"48",asSVG:!0}):h("span",{className:`text-h4 ${e.iconText}`,children:n+1})})},String(n));const gs="h-12 flex-1 flex items-center justify-center cursor-pointer",bs="bg-primary-main",fs="group bg-white",Ns="font-sans text-m",vs="text-white",ys="text-secondary-text group-hover:text-primary-main",ws=p((e=>{const{tab:t,currentTab:l,onClick:n}=e,r="link"===l?.type&&l.href===t.href,i=a((()=>{n&&n(t),$.inst.fire("anchorClick",{isScrolling:!0,label:t.href})}),[t,n]),s=pe()({...t,onClick:i});return h("a",{role:"tab",className:`${gs} ${r?bs:fs}`,target:t.target,href:s.href,onClick:s.onClick,children:h("span",{className:`${Ns} ${r?vs:ys}`,children:t.text})})})),ks=(e,t)=>h("h3",{className:`${Ns} ${t?vs:ys}`,children:e}),Cs=(e,t)=>h("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(t?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover:text-primary-main"),children:e}),$s=({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,a)=>{const i=r.type;if("group"!==i&&"link"!==i)return null;switch(i){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,a)=>{const i=t===r,s=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return h("div",{className:`${gs} ${i?bs:fs}`,role:"tab","aria-selected":i,onClick:()=>n(r),children:u("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?ks(r.title,i):null,l&&s?Cs(s,i):null]})},String(a))})({page:e,currentTab:t,showCounter:l,onClick:n})(r,a);case"link":return h(ws,{tab:r,currentTab:t},String(a));default:!function(e){throw new Error(e)}(i)}},Ss=p((e=>{const{className:t="",tabs:l,showCounter:a,isSticky:i,...s}=e,[o,c]=n(l?l[0]:void 0);r((()=>$.inst.subscribe("tab",(e=>{if(!l)return;const t=l.find(Is(e));"link"===e.type&&t&&c(t)}))),[l]),r((()=>{if("group"===o?.type)return $.inst.subject("tab",{label:o.ref})}),[o]);return h(T,{className:`${i?"sticky top-1 z-20 ":""}box-border flex gap-x-1 ${t}`,role:"tablist",...s,children:l?.map($s({onClick:e=>{"group"===e?.type&&$.inst.fire("tab",{type:e.type,label:e.ref}),c(e)},currentTab:o,showCounter:a,...s}))})})),Is=e=>t=>"link"===t.type&&t.href===`#${e.label}`,Ts=p((({isOpen:e,onClick:t})=>u($e,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[h("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),h(A,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),Bs={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,...t},l)=>Be({button:{rounded:e,...t},buttonClassName:(l>0&&e?"ml-3":"")+" w-12 h-12"})))}):null,Img:({image:e})=>e?.src?h(G,{image:e}):null,List:({isDotted:e,...t})=>h(ir,{className:"flex flex-col justify-between items-start text-h6",version:"primary",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:p((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:r})=>e?h(Ts,{isOpen:r,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},Rs=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=n(!0);r((()=>{t===i&&a||m(!0)}),[a,i]);return u("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?h("div",{className:"h-5"}):null,Vs({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},Vs=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in Bs))return null;return h(Bs[l],{...t,...n})},js=p((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})=>h("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(Rs({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})):null}))),Ms=p((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=He({itemCount:t,visibleItemCount:5});return u("div",{children:[e?.map(Ls(l)),Ye({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Ls=e=>(t,l)=>{if(!t?.length)return null;const[n,...r]=t,a=[...Array(e).keys()].reduce(((e,t)=>140*(r?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return u("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?h("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:n.data}):null,h("div",{className:"flex flex-grow overflow-hidden",children:h("div",{className:i,style:{transform:`translateX(-${a}px)`},children:r?.map(((t,l)=>u("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?h("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?_s(t.cols,e):null]},`row${l}`)))})})]},String(l))},_s=(e,t)=>e?.length>0?h("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>h("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,Ds=p((({activeTabIndex:e,items:t})=>{const[l,r]=n({}),i=a((e=>r((t=>({...t,[e]:!t[e]})))),[]);return h("div",{children:t.map(((t,n)=>{const r=`activeTabIdx:${e}-tableIdx:${n}`;return u("div",{className:"w-full",children:[u("div",{className:"flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>i(r),children:[t.title,h(G,{image:l[r]?"PlusIcon":"MinusIcon",className:"absolute right-[22px]",width:"24",height:"24"})]}),h("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[r]?"h-0":""),children:h("div",{className:"relative",children:h(Ms,{rows:t.rowsData})})})]},r)}))})})),As=p((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>u("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?h("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>h("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?h($e,{href:t,version:"secondary",target:"_blank",appendLeft:h(A,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20",asSVG:!0}),text:"Скачать в PDF"}):null]})));async function Os(e){const t=await fetch(e);return await t.json()}const zs=p((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:r}=function(e){const{data:t}=pt(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),Os);return t||{}}(e),[i,s]=n(0),o=a((e=>s(e)),[]),c=r?.[i]?.items??[],d=r?.map((e=>e.currency??""));return u("div",r?{className:"bg-white z-10",children:[h(As,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),h(Ds,{activeTabIndex:i,items:c}),h(Ts,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[h("p",{children:"Данных нет"}),h(Ts,{onClick:l,isOpen:!0})]})})),Es=p((({children:e,tableInner:t,onHideContentClick:l})=>u("div",{className:"self-start flex flex-col",role:"row",children:[h("div",{className:"flex",children:e}),t?h("div",{className:"origin-top animate-expansion",children:h(zs,{...t,onClick:l})}):null]}))),Fs=p((({row:{header:e,data:t},activeIndex:l,rowIdx:r,...i})=>{const[s,o]=n(void 0),c=a((e=>o(e)),[]),[d,m]=n(void 0),p=a((e=>m(e)),[]);return u(Es,{onHideContentClick:()=>o(void 0),tableInner:s,...i,children:[h("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:u("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?h(G,{className:"mr-[14px] max-w-6 max-h-6",image:q(e.icon),width:"24px",height:"24px",asSVG:!0}):null,e?.title?h("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?h(jl,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>h(js,{cells:e,rowIdx:r,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:p,...i},String(t))))}):null]})})),Ps=p((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:r,hiddenRowsNum:a=0,...i})=>{const s=r?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=He({itemCount:c,visibleItemCount:2}),p=(o||[]).map(((e,t)=>h(Fs,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[x,g]=a>0?[p.slice(0,-a),p.slice(-a)]:[p,[]];return u(T,{className:`bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${c>1?"pr-0":""} ${e}`,...i,children:[Us({title:t,description:l}),Xs(l),a>0?h(L,{renderFoldableSection:({isUnfolded:e})=>u(Hs,{controls:m,children:[x,h(_,{isUnfolded:e,children:g})]}),renderFoldButton:Ka}):h(Hs,{controls:m,children:p})]})}));function Us({title:e,description:t}){return e?h(R,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function Xs(e){return e?h("div",{className:"mb-9 text-center text-l",children:e}):null}const Hs=p((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return u("div",{role:"table",children:[u("div",{className:"relative",children:[e,Ye({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),l?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Gs={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},Ws=p((({title:e,description:t,blockVersion:l="primary",iconVersion:n,image:r,className:a,...i})=>{const s=Gs[l];return u(T,{className:`font-sans px-9 py-4 flex ${s.background} ${a||""}`,...i,children:["small"===n?Js(s.icon):null,"big"===n?Ys(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${s.title}`,children:e}):null,t?h("div",{className:`text-s ${s.description}`,children:t}):null]})]})}));function Js(e){return h("div",{className:"pt-1.5 pl-1 pr-4",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Ys(e){return e?.src?h(G,{className:"pt-0.5 pr-3",image:e}):null}const Zs=p((e=>{const{tags:t,className:l=""}=e;return t?.length?h("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(Ks)}):null})),Ks=(e,t)=>h("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-color-stroke",children:e},String(t)),qs=p((e=>{const{title:t,headingType:l="h3",description:n,items:r,buttons:a,image:i,isDotted:s=!0,listItemSize:o="M",className:c="",version:d="primary",tags:m,children:p,...x}=e,g="primary"===d?"text-primary-text":"";return h(T,{className:`overflow-hidden font-sans p-9 pr-3 box-border ${c} ${K[d]} ${di(c)} ${ba(c)} `,...x,children:u(Zl,{title:t?h(R,{headingType:l,as:"h2",title:t,className:`whitespace-pre-wrap max-w-[600px] ${g}`}):null,buttons:a?.length?h(Te,{buttons:a.map((e=>({...e,className:"min-w-[158px]"}))),className:"flex mt-8 gap-3",...x}):null,image:i?.src?h(G,{className:"mt-auto ml-7",image:i}):null,children:[n?h("div",{className:"max-w-[600px] mt-2.5",children:h(V,{size:"text-xl-light",children:n})}):null,p,Qs({version:d,isDotted:s,listItemSize:o},r),m?.length?h(Zs,{tags:m,className:"mt-5"}):null]})})}));function Qs({version:e,isDotted:t,listItemSize:l},n){return n?.length?h(ir,{items:n,isDotted:t,className:"mt-2.5",listItemSize:l,itemClassName:"mb-1.5",version:e}):null}const eo={left:"items-start",center:"items-center",right:"items-end"},to={XXL:"gap-10",XL:"gap-8",L:"gap-4",M:"gap-3",S:"gap-2",XS:"gap-1","":""},lo={transparent:"",primary:"bg-white",secondary:"bg-primary-main"},no=p((({className:e="",gap:t="",align:l,version:n="transparent",...r})=>h(T,{className:["flex flex-col",to[t],l&&eo[l],lo[n],e].filter(Boolean).join(" "),...r,children:k(r)})));no.childrenTypes={exclude:["VerticalLayout"]};const ro=e=>ga(e)<10?"py-6 px-11":"py-12 px-32",ao=p((e=>{const{title:t,src:l,previewImg:n,className:r="",...a}=e;return u(T,{className:`bg-white ${ro(r)} ${r}`,...a,children:[h(Le,{title:t,headlineVersion:"M"}),l?h("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:n?.src,style:{maxHeight:524},controls:!0,children:h("source",{src:l})}):null]})})),io={1:"flex gap-y-2 flex-col",2:"flex gap-y-2 gap-x-10 flex-wrap"},so=p((({additionalDescription:e,cardsList:t=[],className:l="",columnsMode:n=1,description:r,image:a,title:i,version:s="primary",...o})=>{const c=i?h(R,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,d=a?.src?h(G,{className:"absolute bottom-0 right-0 m-0",image:a}):null;return h(T,{className:`relative text-left border border-solid box-border\n p-9 w-[697px]\n ${wi[s]}\n ${l}`,...o,children:u(Zl,{title:c,image:d,children:[u("div",{className:"flex justify-between mb-4",children:[r?h("span",{className:"text-h6 w-1/3",children:r}):null,e?h("span",{className:"text-m-light text-secondary-text",children:e}):null]}),t.length?h("ul",{className:`list-none m-0 p-0 ${io[n]}`,children:oo(t,n)}):null]})})})),oo=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,l)=>{return u("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?h("span",{className:"pr-2.5 "+(n=t,1===n?"text-h6":"text-l"),children:e.parameter}):null,e?.parameterDescription?h("span",{className:"text-m-light text-secondary-text",children:e.parameterDescription}):null]},String(l));var n})),co={Accordion:M,AccordionItem:Y,BenefitsBlock:le,BusinessBlock:Xe,Bonus:_e,BonusBenefitsBlock:ze,CardTransfer:Ht,Calculator:At,Carousel:al,CarouselCard:cl,CarouselLinks:hl,CarouselProgramsCard:pl,CarouselTariffsCard:gl,Catalog:$l,ContactsBlock:Hl,ComparisonTable:Ul,ErrorBlock:Yl,ExchangeRateTile:kn,Footer:Zn,Gallery:xr,GracePeriod:gr,Header:Hr,Headline:Le,ImgBlock:Wr,InsuranceAmountBlock:qr,InvestmentInfo:na,LinkDocs:pa,MiniGallery:xa,MobileAppTile:fa,ParagraphBlock:ei,PictureText:ai,Placeholder:mi,ProductBlock:yi,ProductGallery:Ci,ProductTile:$i,PromoTile:Bi,OfficeMap:Ga,OfficeServicesBlock:Wa,OtherProducts:Ya,OtherProductsItem:Qa,Recommendation:Mi,RollupItem:Li,SafeDepositRental:rs,StepsBlock:ps,Tabs:Ss,TariffsTable:Ps,TextBlock:Ws,Tile:qs,VerticalLayout:no,Video:ao,CarouselInvestmentCard:so},mo=m();const ho=p((({className:e,onClick:t,ariaLabel:l})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:uo()}))),uo=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),h("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},po=p((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return r((()=>{(async()=>{const[t]=await mo.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{l(await mo.like(e))}),[e]),dislike:a((async()=>{l(await mo.dislike(e))}),[e])}}(ue().pathname);return u("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[h(ho,{onClick:he(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(ho,{onClick:he(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),xo=p((e=>{const{className:t="",blocksRegistry:l,blockDecorator:n,data:r={}}=e,{style:a,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:l,blockDecorator:n,parent:r};return u("section",{className:`relative ${g(a)} ${t}`,"data-theme":c,children:[s?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(s?.header,{...d,slotName:"header"})}):null,u("div",{className:"container grid grid-cols-12 gap-1",children:[w(i,d),s?.footer?w(s?.footer,{...d,slotName:"footer"}):null]}),o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(po,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));xo.childrenTypes=[],xo.slots=()=>["header","footer"];e.Blocks=co,e.ContentPage=xo,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=he,e.joinList=ea,e.packageVersion="0.6.37",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=me,e.useRouter=ue,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const l=e=>(...l)=>t[e](...l),n=l("useState"),r=l("useEffect"),a=l("useCallback"),i=l("useMemo"),s=l("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),l=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await l.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get BASE_PATH(){return this._.BASE_PATH}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:l}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:l})),{token:t,name:l}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,l){const{children:n,...r}=t||{},a=l?.slots?.default,i=n||a&&a();return e(Object.assign(r,i&&{children:i}),l)}return t.inheritAttrs=!1,t};function g(e){return e?e.filter(Boolean).join(" "):""}const b=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),f=[],v=["col-span-12"];function N(e,t){const{key:l,blockDecorator:n=b,blocksRegistry:r={},ancestors:a=f}=t,{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const s=i&&r[i];return n({blockClassName:`scroll-mt-12 ${g(e.style||v)}`,block:e,ancestors:a,render:({block:n,blockClassName:r})=>{const{content:a}=n;return s?h(s,{className:r,block:e,options:t,...a},l):null}},l)}const y=[],w=(e,{key:t,ancestors:l=y,slotName:n=null,renderChild:r=N,...a})=>(e||[]).map(((e,i)=>r(e,{...a,key:`${t||e.type}-${i}`,ancestors:a.parent?[...l||y,[a.parent,n]]:l})));function k({children:e,block:t,options:l,renderChild:n}){return e||(t&&l?w(t.blocks,{...l,parent:t,renderChild:n}):null)}const C={left:"text-left",center:"text-center",right:"text-right"};class ${static inst=new $;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).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}}function S(e,{sensitivity:t,rootRef:l}={}){const n=s(null),a=i((()=>({threshold:I(t),root:l?.current})),[t,l?.current]);return r((()=>{if(!n.current)return;const t=new IntersectionObserver(e,a);return t.observe(n.current),()=>{t.disconnect()}}),[e,a]),n}function I(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,l)=>Math.min(l/t)),1).concat(1)}const T=e=>e?.replace("#","");class B{static inst=new B;eventBus=new $;constructor(){const e=T(globalThis.location?.hash);e&&this.eventBus.subject("goto",{anchor:e})}goto(e){const t=T(e);t&&(this.push(t),this.eventBus.fire("goto",{anchor:t}))}push(e){globalThis.history?.pushState(null,"",`#${T(e)}`)}replace(e){globalThis.history?.replaceState(null,"",`#${T(e)}`)}reset(){globalThis.history?.replaceState(null,"","#")}}const R=p((({className:e,block:t,tag:l="section",role:i,children:s})=>{const o=l,c=function(e,t=B.inst){const l=S(a((l=>{if(!e||!l?.length)return;const n=l[l.length-1];t.eventBus.fire("intersection",{block:e,intersection:n})}),[e,t]),{sensitivity:1});return r((()=>{if(l.current)return t.eventBus.subscribe("goto",(({anchor:t})=>{l.current&&e?.anchor===t&&l.current.scrollIntoView({behavior:"smooth",block:"start"})}))}),[e,t]),l}(t),[d,m]=n(!0);return r((()=>$.inst.subscribe("tab",(e=>{if("group"===e.type){const l=t?.labels?.length||t?.anchor;m(!e.label||(!l||Boolean(t?.labels?.includes(e.label))))}else m(!0)}))),[t]),d?h(o,{className:e,role:i,...t?.anchor?{id:t.anchor,ref:c}:{},children:s}):null})),V={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},j=p((e=>{const{className:t="",headingType:l="h3",title:n,as:r="h3"}=e;return h(r,{className:`font-sans m-0 ${V[l]} ${t}`,children:n})})),M=p((e=>{const{size:t="",color:l="",align:n="",font:r="",children:a}=e;return h("p",{className:`font-sans ${t} ${l} ${n} ${r}`,children:a})})),L=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),_=p((({className:e="",title:t,accordionAlignTitle:l="center",description:n,...r})=>u(R,{className:`p-12 mb-1 last:mb-0 bg-white text-primary-text ${e}`,...r,children:[t?h(j,{headingType:"h3",as:"h2",className:`mb-2.5 ${C[l]}`,title:t}):null,n?h("div",{className:"mb-2.5",children:h(M,{size:"text-l",children:n})}):null,h(L,{children:k(r)})]})));_.childrenTypes=["AccordionItem"];const A=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:l,renderFoldButton:r})=>{const[i,s]=n(t),o=a((()=>{s((e=>!e))}),[]),c=l({isUnfolded:i,onToggle:o}),d=r?r({isUnfolded:i,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),D=p((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return r((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),h("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:l})})),O={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},E=p((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:r=n,iconVersion:a="color",asSVG:i,...s})=>{const o=`${c.CDN||""}icons/${l}.svg`;return i&&"normal"!==a?h(P,{className:e,children:u("svg",{className:[F(e,s.width),O[a],t,z(a)].join(" "),...s,"aria-hidden":"true",children:[r?h("title",{children:r}):null,n?h("desc",{children:n}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:n,title:r,...s,"aria-hidden":"true"})})),z=e=>"white"===e?"invert":"",F=(e,t)=>t?`width: ${t}px `:"w-full h-full",P=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function U(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const H=(e,t)=>e.media&&t.media?e.media-t.media:0,X=p((({className:e="",image:t,imageClassName:l="",isMobile:n=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${n?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(H).map((({src:e,format:l,media:n},r)=>h("source",{srcSet:e,type:W(l),media:n?`(max-width: ${n}px)`:"",...t.size},`${r}_${e}`))):null,G(t,l,n)]})})),G=(e,t="",l=!1)=>{const n={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",a=e.alt||e.title,i=l?"m-auto":"m-0";return h("img",{src:e.src,className:`${i} ${t}`,alt:a,title:r,style:n,...e.size})};function W(e){return e?`image/${String(e)}`:void 0}const J=p((({className:e="",image:t,imageClassName:l="",isMobile:n,...r})=>{if(!t)return null;const a="string"==typeof t?t:t.icon;return a||""===a?a.length?h(E,{className:e,imageClassName:l,iconVersion:U(t),name:a,...r}):null:h(X,{className:e,imageClassName:l,image:t,isMobile:n})})),Y=p((e=>{const{size:t="",color:l="",align:n="",font:r="",children:a}=e;return h("span",{className:`font-sans ${t} ${l} ${n} ${r}`,children:a})})),Z=["PlusIcon","MinusIcon"],K=p((({className:e="",label:t="",isExpanded:l,...n})=>h("li",{className:`border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,children:h(A,{isFoldButtonOnTop:!0,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h(D,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:k(n)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>h(q,{label:t,icon:Z[Number(e)],onClick:l})})})));K.childrenTypes=[];const q=p((({label:e,icon:t,onClick:l})=>u("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer",onClick:l,children:[h(Y,{size:"text-xl",font:"font-medium",children:e}),h(J,{image:t,className:"text-primary-main flex-shrink-0",width:"24",height:"24",asSVG:!0})]}))),Q={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ee=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),te={primary:"",secondary:"text-white"},le={primary:"text-secondary-text",secondary:"text-white opacity-80"},ne={primary:"bg-main-divider text-primary-main",secondary:"bg-white/30 text-black"},re=p((({className:e="",title:t,benefitList:l,version:n="primary",...r})=>u(R,{className:`font-sans text-primary-text p-12 flex flex-col items-center ${e} ${Q[n]}`,...r,children:[t?h(j,{headingType:"h3",as:"h2",className:`max-w-[47rem] text-center ${te[n]}`,title:t}):null,l?.length?h("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map(ae(n))}):null]}))),ae=e=>(t,l)=>{const n=t.description;return u("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[t?.icon?.icon?h(J,{className:`w-12 h-12 min-w-12 p-3 rounded-full ${ne[e]}`,image:ee(t.icon,e),asSVG:!0}):null,t?.icon?.src?h(J,{image:t.icon}):null,u("div",{className:"ml-5",children:[t?.label?h("h3",{className:`text-h6 m-0 ${te[e]}`,children:t.label}):null,ie(n,e)]})]},String(l))},ie=(e,t)=>{const l=e?.benefitType||null;return e&&l?h("div",{className:`text-l-light mt-2 ${le[t]}`,children:"list"===l?oe(e):se(e)}):null},se=e=>e?.name||null,oe=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?h("ul",{className:t,children:e.items.map(((e,t)=>h("li",{children:e},`benefitListItem-${t}`)))}):null};const ce=e=>e?.includes("//"),de=e=>(e||"").replace(/\/?\?.*/,""),me=e=>{if(!e||!ce(e))return;const t=e,l=t.indexOf("//"),n=t.indexOf("/",l+"//".length);return-1!==n?t.substring(0,n):t},he=e=>e?.startsWith("#");var ue=Object.freeze({__proto__:null,isURL:ce,withoutQuery:de,getOrigin:me,getHash:e=>{if(!e||!ce(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:he});const pe=(e,t)=>pe._impl(e,t);function xe(){return xe._impl()}function ge(){const e=xe(),t=B.inst;return l=>{const n=((e,t)=>{if(!e)return e;const l=`${c.BASE_PATH||""}${e}`,n=me(t?.href);return n?l.replace(n,"")||"/":l})(l.href,e);return{...l,href:n,"aria-label":l.text,onClick:pe((r=>{l.onClick&&l.onClick(r);const a=n&&!ce(n),i=!l.target||"_self"===l.target;a&&i&&(r?.preventDefault(),he(n)?t.goto(n):e.push(n))}),l)}}}pe._impl=e=>e,pe.setup=e=>{pe._impl=e},xe._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),xe.setup=e=>{xe._impl=e};const be={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:""},fe="bg-main-divider text-main-disabled",ve={primary:fe,secondary:fe,white:fe,link:""},Ne="text-center font-sans select-none",ye={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},we=p((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:r,version:a="primary"}=e;return u("div",{className:ke(e),children:[n?h("div",{className:ye[a],children:n}):null,Ce(e)?u("div",{children:[l?h("div",{className:"text-xs-light text-left",children:l}):null,h("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?h("div",{className:ye[a],children:r}):null]})})),ke=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const r="gap-2 "+(l?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",Ce(e)?r:"h-12 w-12",n?"rounded-full":""].join(" ")},Ce=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),$e=({className:e,rounded:t,version:l})=>["inline-block",Ne,l?ve[l]:"",t?"rounded-full":"rounded-md",e].join(" "),Se=({className:e,rounded:t,version:l})=>[Ne,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",l?be[l]:"",t?"rounded-full":"rounded-md",e].join(" "),Ie=p((({disabled:e,children:t,...l})=>{const n=ge()(l),r=t??h(we,{...n});return h(e?Be:Te,{...n,children:r})})),Te=p((({className:e="",href:t,rel:l,target:n,ariaLabel:r,version:a,rounded:i,onClick:s,children:o})=>h("a",{className:Se({className:e,version:a,rounded:i}),href:t,rel:l,target:n,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Be=p((({className:e,ariaLabel:t,version:l,rounded:n,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:$e({className:e,rounded:n,version:l}),children:r}))),Re=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>Ve({button:e,index:t})))}):null));function Ve({button:e,buttonClassName:t,index:l}){const{icon:n,iconRight:r,version:a,...i}=e,s="secondary"===a?"color":"white",o=je({...n,iconVersion:s}),c=je({...r,iconVersion:s});return h(Ie,{className:t,appendLeft:o,appendRight:c,version:a,...i},l?String(l):"")}const je=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(J,{image:{...e},width:t,height:"24",asSVG:!0})},Me={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},Le={XXL:{descriptionFont:"text-h5",gap:"gap-[18px]",headingType:"h0",as:"h1"},XL:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h1",as:"h1"},L:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h2",as:"h2"},M:{descriptionFont:"text-xl-light",gap:"gap-3",headingType:"h3",as:"h3"},S:{descriptionFont:"text-xl-light",gap:"gap-2",headingType:"h4",as:"h4"},XS:{descriptionFont:"text-l-light",gap:"gap-2",headingType:"h5",as:"h5"}},_e={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"},Ae=p((({className:e="",bgColorHeadline:t="transparent",align:l="center",title:n,description:r,headlineVersion:a="XL",as:i,...s})=>{const o=Me[t],c=Le[a];return u(R,{className:`font-sans flex flex-col p-12 ${c.gap} ${o.background} ${e}`,...s,children:[n?h(j,{headingType:c?.headingType,as:i||c?.as,className:`whitespace-pre-wrap ${o.text} ${C[l]}`,title:n}):null,r?h("p",{className:`${c.descriptionFont} ${o.text} ${C[l]}`,children:r}):null]})})),De=p((e=>{const{className:t="",title:l,description:n,bonusItems:r,...a}=e;return h(R,{className:`font-sans bg-white p-12 pb-9 ${t}`,...a,children:u("div",{className:"container",children:[h(Ae,{className:"!p-0",title:l,description:n,headlineVersion:"M",align:"center",...a}),h("div",{className:"flex flex-wrap w-full mt-9",children:r?.length?r.map(((e,t)=>h("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:u("div",{className:"flex justify-between w-full",children:[u("div",{className:"flex flex-col justify-between mr-4",children:[u("div",{children:[h("div",{className:"text-h4",children:e.title}),h("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),e?.buttons?.length?h(Re,{buttons:e?.buttons}):null]}),e.bonusItemContent?.bonusType?Oe(e.bonusItemContent):null]})},String(t)))):null})]})})})),Oe=e=>h("div",{children:"count"===e.bonusType?Ee(e):ze(e)}),Ee=e=>u("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?h("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?h("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),ze=e=>e.image?h(J,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,Fe=p((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:n="4",subtitle:r,title:a,...i})=>u(R,{className:`font-sans text-primary-text bg-white p-12 flex flex-col text-center ${l}`,...i,children:[h(Ae,{className:"!p-0 mb-8",title:a,description:r,headlineVersion:"M",align:"center",...i}),e?.length?h("div",{className:`grid gap-1 ${C[t]} ${Ue(n)}`,children:e.map(Pe)}):null]}))),Pe=({icon:e,label:t,description:l},n)=>u("div",{className:"flex flex-col items-center text-h6",children:[l?h("span",{children:l}):null,e?h(J,{image:e,height:"180",width:"auto",className:"h-[180px] w-auto"}):null,h("div",{children:t?h("span",{children:t}):null})]},String(n)),Ue=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},He=p((e=>{const{title:t,image:l,cardItems:n,button:r}=e;return u("div",{className:"border-color-stroke border p-9 w-1/2",children:[l?u("div",{className:"flex justify-center",children:[l?.src?h(J,{className:"mb-5",image:l}):null,l?.icon?h(J,{image:l,asSVG:!0}):null]}):null,t?h(j,{headingType:"h4",title:t,className:"mb-6"}):null,n?.length?h("ul",{children:n.map(((e,t)=>Xe(e,String(t))))}):null,r?.text?Ve({button:r,buttonClassName:"mt-6"}):null]})})),Xe=(e,t)=>{const{icon:l,text:n}=e;return u("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?h(J,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",image:l.icon,asSVG:!0}):null,l?.src?h(J,{image:l.icon}):null,h("span",{className:"text-xl-light",children:n})]},t)},Ge=p((({className:e="",title:t,cards:l,...n})=>u(R,{className:`font-sans bg-white p-12 pb-9 ${e}`,...n,children:[h(j,{headingType:"h3",title:t,className:"text-center mb-8"}),h("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>h(He,{...e},String(t)))):null})]}))),We=e=>{const{itemCount:t,visibleItemCount:l,isCyclic:r}=e,[i,s]=n(0),o=a((()=>s((e=>r?(e+1)%t:Math.min(e+1,t-1)))),[r,t]),c=a((()=>s((e=>r?(t+e-1)%t:Math.max(e-1,0)))),[r,t]),d=r||function(e,{itemCount:t,visibleItemCount:l,container:n}){if(l)return t>l;if(n){return n.scrollWidth*e/t+n.clientWidth<n.scrollWidth}return!1}(i,e)&&i<t-(l||1),m=r||i>0;return[i,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]};const Je=p((({className:e,disabled:t,...l})=>h(Ie,{rounded:!0,className:`group shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...l,children:h(J,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"16",height:"16",asSVG:!0})}))),Ye=p((e=>h(Je,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Ze=p((e=>h(Je,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Ke({dec:e,inc:t,canDec:l,canInc:n,btnClass:r,className:a=""}){return l||n?u("div",{children:[l?h(Je,{className:`absolute z-50 ${r[0]} ${a}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?h(Je,{className:`absolute z-50 rotate-180 ${r[1]} ${a}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const qe=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),Qe=p((({title:e,value:t,postfix:l="",prefix:n,className:r=""})=>u("div",{className:`mb-7 ${r}`,children:[e?h("div",{className:"text-l-light text-secondary-text",children:e}):null,t?u("div",{className:"text-h3",children:[n," ",qe(Math.round(t))," ",l]}):null]}))),et=2e6,tt=97e4,lt=Math.round(23.5),nt={minSum:6e4,maxSum:et,minMonths:13,maxMonths:60,rateBottomRange:10,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},rt={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},at={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:120,rate:5.9,isMonthlyInterestPayment:!0},it=p((({rate:e,title:t="Ставка",unit:l,rateBlockClassName:n})=>u("div",{children:[h("div",{className:"text-l-light text-secondary-text",children:t}),u("div",{className:"flex justify-start",children:[h("span",{className:`block gradient-color-text font-mohave text-title-huge pr-6 -mt-4 ${n}`,children:String(e).replace(".",",")}),l?h("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:l}):""]})]})));function st(e){return e?.length?h(Re,{buttons:e,className:"flex flex-col mt-7 gap-2"}):null}const ot=e=>e?h("p",{className:"text-s-light text-secondary-text mt-7",children:e}):null,ct=(e,t,l)=>Math.max(t,Math.min(e,l)),dt=e=>e.split(/\s+/).join(""),mt=p((({className:e,title:t,items:l=[],min:n=1,max:r=100,step:a=1,value:i=n,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(ct(Number(dt(e.target.value)),n,r))},d={backgroundSize:`${(100*(i-n)/(r-n)).toFixed(2)}% 100%`};return u("div",{className:e,children:[u("label",{className:"block relative",children:[t?h("span",{className:"text-m-light text-primary-text",children:t}):null,h("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-focus disabled:border-main-stroke disabled:bg-main-divider",value:qe(i),disabled:s,onChange:c,onBlur:c}),h("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:h("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:n,max:r,step:a,value:i,disabled:s,onChange:c,style:d})})]}),ht(l)]})}));function ht(e){return h("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>h("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const ut=1e3;function pt(e,t,l){const{moneyValue:n,minSum:r,maxSum:a,step:i=ut,isShowItems:s=!0}=t,o=[`От ${qe(r)} ₽`,`До ${qe(a)} ₽`];return h(mt,{title:e,items:s?o:[],min:r,max:a,step:i,value:ct(n,r,a),onChange:l})}const xt=new Map;function gt(e,t,{fallback:l}={}){const a=i((()=>bt(e)),[e]),[s,o]=n(),[c,d]=n(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!a.every((e=>null===e)))try{const e=t(...a);"then"in e?(e=>{e.then((e=>xt.get(a)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...a]);const u=a[0],p=l&&"string"==typeof u&&l[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function bt(e){return e?Array.isArray(e)?e:e instanceof Function?bt(e()):[e]:[e]}async function ft(e,t){try{return await vt(e,t)}catch(e){console.error(e)}return null}async function vt(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}function Nt(e){const{data:t}=gt(`/wcms-resources/${e}.json`,vt);return t}const yt=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,r=Nt(t||"bonus-calculator-data")||rt,[a,i]=((e,t,l)=>{const{minSumTravel:n,minSumOther:r,maxBonus:a,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===r)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),a);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*l),a)*(12-i)]})(r,l,n);return{...r,...e,monthBonus:a,yearBonus:i}},wt=p((({className:e="",sourceBookDir:t="",buttons:l,footnote:r})=>{const[i,s]=n(6e3),o=a((e=>s(e)),[]),[c,d]=n(6e3),m=a((e=>d(e)),[]),p={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:x,maxSumTravel:g,minSumOther:b,maxSumOther:f,monthBonus:v,yearBonus:N}=yt(p,t);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[pt("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:g,moneyValue:i,step:500,isShowItems:!1},o),pt("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:b,maxSum:f,moneyValue:c,step:500,isShowItems:!1},m)]}),h("div",{children:v>=0?h(it,{title:"Баллов за месяц",rate:v,rateBlockClassName:"tracking-[-14px]"}):null}),u("div",{className:"w-full max-w-[350px]",children:[N>=0?h(Qe,{title:"Баллов за год",value:N}):null,st(l),ot(r)]})]})})),kt=p((({className:e,viewBox:t,fill:l="none",width:n,height:r,paths:a,...i})=>h("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:r,children:a.map((({d:e,fill:t,...l},n)=>h("path",{d:e,fill:t||"currentColor",...i,...l},n)))}))),Ct=[{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"}],$t=p((({className:e,text:t,checked:l,isRadio:n,onChange:r})=>h("div",{className:e,children:u("label",{className:"flex items-center relative cursor-pointer group",children:[h("input",{className:`peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover:border-checkbox-hover\n ${n?"rounded-full border-2":"rounded checked:bg-primary-main border"}\n ${l?"border-black":"border-main-stroke"}\n checked:border-primary-main m-0`,type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:l}),n?h("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):h(kt,{paths:Ct,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?h("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),St=p((({items:e,checkedItem:t,onChange:l})=>h("div",{className:"flex flex-col gap-3",children:e?.map((({id:e,text:n})=>h($t,{isRadio:!0,text:n,checked:t===e,onChange:()=>l&&l(e)},String(e))))})));function It(e,t,l){const{minMonths:n,maxMonths:r,monthsValue:a}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return h(mt,{className:"mt-7",title:e,items:[`От ${i(n)}`,`До ${i(r)}`],min:n,max:r,step:1,value:ct(a,n,r),onChange:l})}const Tt=(e,t)=>{const{isInsurance:l,isSalaryClient:n,isStateEmployee:r,moneyValue:a}=e,i=Nt(t||"credit-calculator-data")?.rows?.find((e=>l===e.isInsurance&&n===e.isSalaryClient&&r===e.isStateEmployee))||nt,{rateBottomRange:s,rateTopRange:o,sumBorder:c}=i,d=a<=c?s:o,m=((e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:r}=t;if(l){const t=e/1200;return n*(t+t/(Math.pow(1+t,r)-1))}return Math.round(n/r)+n*(e/1200)})(d,e);return{...i,...e,finalRate:d,monthlyPayment:m}},Bt="annuity",Rt="differential",Vt=[{id:Bt,text:"Аннуитетный"},{id:Rt,text:"Дифференцированный"}],jt=p((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[i,s]=n(!1),[o,c]=n(!0),[d,m]=n(!1),[p,x]=n(!1),[g,b]=n(tt),f=a((e=>b(e)),[]),[v,N]=n(lt),y=a((e=>N(e)),[]),w=Tt({isAnnuity:i,isInsurance:o,isSalaryClient:d,isStateEmployee:p,moneyValue:g,monthsValue:v},t);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[pt("Сумма кредита, ₽",{...w,step:500},f),It("Срок кредита, месяцев",w,y),u("div",{className:"mt-7",children:[h($t,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:d,onChange:m}),h($t,{className:"mt-3",text:"Работаю в бюджетной организации",checked:p,onChange:x}),h($t,{className:"mt-3",text:"Комплексная страховая защита",checked:o,onChange:c})]})]}),h(it,{title:"Ставка",rate:w.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Qe,{title:i?"Ежемесячный платеж":"Платёж в первый месяц",value:w.monthlyPayment,postfix:"₽"}),h(St,{items:Vt,checkedItem:i?Bt:Rt,onChange:e=>s(e===Bt)}),st(l),ot(r)]})]})})),Mt=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,monthsValue:r}=t;return l?Math.round(n*Math.pow((1200+e)/1200,r)-n):Math.round(n*e*30*r/365/100)},Lt="everyMonth",_t="atEndTerm",At=[{id:Lt,text:"Ежемесячно"},{id:_t,text:"В конце срока"}],Dt={CreditCalculatorForm:jt,DepositCalculatorForm:p((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[i,s]=n(tt),o=a((e=>s(e)),[]),[c,d]=n(lt),[m,p]=n(!1),x={moneyValue:i,monthsValue:c,isMonthlyInterestPayment:m},g=a((e=>d(e)),[]),b=((e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n}=e,r=Nt(t||"deposit-calculator-data")?.rows.find((e=>l===e.isMonthlyInterestPayment))||at,{rate:a}=r,i=Mt(a,e),s=n+i;return{...r,...e,income:i,finalSum:s}})(x,t),{income:f,finalSum:v,rate:N}=b;return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[pt("Сумма вклада, ₽",{...b},o),It("Срок вклада, месяцев",{...b},g)]}),h(it,{rate:N||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[f?h(Qe,{title:"Доход по вкладу",value:f,postfix:"₽",prefix:"+"}):null,v?h(Qe,{title:"Сумма в конце срока",value:v,postfix:"₽"}):null,h(St,{items:At,checkedItem:m?Lt:_t,onChange:e=>p(e===Lt)}),st(l),ot(r)]})]})})),BonusCalculatorForm:wt},Ot=(e,t)=>{const l=e?.calcType;if(!l||!(l in Dt))return null;const n=Dt[l];return h("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:u("div",{className:"box-border p-9 w-full",children:[e?.title?h(j,{className:"text-center mb-6",title:e.title}):null,h(n,{...e,className:"flex justify-between"})]})},String(t))},Et=p((({className:e="",calculatorTabs:t=[],...l})=>{const r=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=n(0),c=a((e=>o(e)),[]),[d,m]=We({itemCount:t?.length,visibleItemCount:3});return u(R,{className:`box-border overflow-hidden relative font-sans w-100 text-primary-text bg-white ${e}`,...l,children:[u("div",{className:"bg-white",children:[r.length>1?zt({activeIndex:d,tabsNav:r,slideIndexShift:s,onClick:c}):null,Ke({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(Ot):null})]})}));function zt({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:n}){return u("div",{children:[h("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:h("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:n}){const r=l?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",a=l?"text-xl mb-1.5":"text-l mb-[3px]",i=l?"text-l-light text-white":"text-m-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return u("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${r}`,children:[h(J,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24",asSVG:!0}),u("div",{className:"border-0",children:[h("div",{className:`${a}`,children:e?.title}),h("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})}),h("div",{className:"w-full h-2 bg-primary-main"})]})}const Ft=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,Pt=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},Ut=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),Ht=p((({className:e="",inputClassName:t="",id:l,name:n,type:r="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:m,...p})=>{const x=a((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),g=a((e=>{if(!m)return;const t=e.target.validity.valid?e.target.value:s;m(t)}),[m]),b=c?"pr-8":"",f=o?"border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return u("div",{className:`relative ${e}`,children:[i?h("label",{className:"block text-m-light mb-2",children:i}):null,h("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${b} ${f} ${t}`,id:l,name:n||l,type:r,value:s,onChange:x,onBlur:g,...p}),c]})})),Xt=p((({className:e="",onChange:t,minValue:l=0,maxValue:n=3e5,...r})=>{const i=a((e=>{if(!t)return;const r=Ft(Pt(Ut(dt(e))));const a=Gt(r,ct(Number(r),l,n));t(String(a))}),[t]),s=a((e=>{var l;t&&t((l=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(dt(l))).replace(",",".")))}),[t]);return h(Ht,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...r,children:h("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Gt=(e,t)=>Number(e)===t?e:String(t),Wt=p((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:r="1500",button:i,...s})=>{const[o,c]=n(""),d=a((e=>c(e)),[]),m=!Number(dt(o)),p=m?$e({version:i?.version}):Se({className:"text-white",version:i?.version}),x=ge();return u(R,{className:`p-12 flex flex-col items-center font-sans bg-white ${e}`,...s,children:[t?h(j,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,u("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[h(Xt,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:r,label:l}),i?.text?h("button",{type:"submit",className:`w-full p-4 mt-6 ${p} `,disabled:m,...x(i),children:i.text}):null]})]})})),Jt=p((({className:e="",style:t,idx:l,activeIndex:n,observerOptions:r,children:i,onIntersection:s})=>{const o=S(a((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),r);return h("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(l===n),ref:o,children:i})})),Yt=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]"],Zt=p((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:n,gap:r=0,padding:i=0,snapAlign:o="snap-center",children:c,onVisibleItemsChange:d,onVisibleIndicesChange:m})=>{const u={sensitivity:1,rootRef:t},p=s([]),x=a(((e,t)=>{const l=[...p.current||[]];l[e]=t,p.current=l,d&&d(l),m&&m(qt(l))}),[d,m]);return h("div",{className:`box-border overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...Kt(i),gap:`${r}px`},role:"list",ref:t,children:(g=(e,t)=>h(Jt,{className:`${o} ${n?Yt[n-1]:""}`,style:Kt(i/4),activeIndex:l,idx:t,observerOptions:u,onIntersection:x,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(g):g(e,0))(c)});var g})),Kt=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),qt=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Qt=e=>e,el=(e=Qt)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),tl=(e=Qt)=>el((t=>-e(t))),ll=e=>t=>e.scrollWidth/t,nl=e=>(t,l)=>{e.scrollBy({left:l*ll(e)(t),behavior:"smooth"})},rl=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const r=s(null),[i,o]=n([]),c=a((e=>{o((t=>{return(l=t)===(n=e)||Boolean(l&&n&&l?.length===n?.length&&l.every(((e,t)=>e===n[t])))?t:e;var l,n})),l&&l(e)}),[e]),[d,m]=i.length?[tl()(i),el()(i)]:[-1,-1],h=d>0,u=m<e-1,p=a((()=>{var l;r.current&&(t&&!h?(l=r.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):nl(r.current)(e,-1))}),[t,e,h]),x=a((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):nl(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},al="absolute top-0 bottom-0 z-50 w-[84px]",il="absolute top-[calc(50%-12px)] z-50",sl=p((({className:e="",itemCount:t,visibleItemCount:l,isBlur:n=!0,isCyclic:r=!1,...a})=>{const{blocks:i}=a.block||{},s=t||i?.length||0,[o,c]=rl({itemCount:s,isCyclic:r});return u(R,{className:`relative font-sans ${e}`,...a,children:[h(Zt,{containerRef:o,visibleItemCount:l,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:c.handleVisibleIndicesChange,children:k(a)}),(c.canScrollLeft||c.canScrollRight)&&n?u("div",{children:[h("div",{className:`${al} left-0 bg-opacity-from-white`}),h("div",{className:`${al} right-0 bg-opacity-to-white`})]}):null,ol(c)]})}));sl.childrenTypes=["CarouselCard","CarouselTariffsCard","CarouselLinks","CarouselProgramsCard","CarouselInvestmentCard"];const ol=({scrollLeft:e,scrollRight:t,canScrollLeft:l,canScrollRight:n})=>u("div",{children:[l?h(Ye,{className:`${il} left-8`,onClick:e}):null,n?h(Ze,{className:`${il} right-8`,onClick:t}):null]}),cl="absolute border border-solid border-main-stroke w-full h-full",dl={normal:"min-w-[1007px]",mini:"min-w-[355px]"},ml=p((({className:e="",button:t,description:l,title:n,version:r="normal"})=>h("section",{className:`flex pb-9 pl-12 ${dl[r]} ${e}`,children:u("div",{className:"relative w-full",children:[h("div",{className:`${cl} z-10 top-9 right-12 bg-green-dark`}),h("div",{className:`${cl} z-10 top-6 right-8 bg-green`}),h("div",{className:`${cl} z-10 top-3 right-4 bg-green-light`}),u("div",{className:"relative bg-white z-10 py-6 px-10 border border-solid border-green-light",children:[h(Ae,{className:"!p-0",title:n,description:l,headlineVersion:"M",align:"center"}),t?h("div",{className:"mt-6",children:Ve({button:t})}):null]})]})}))),hl="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",ul=p((({text:e,href:t="",target:l="",className:n=""})=>e?u("div",{className:`relative group cursor-pointer w-[328px] h-[82px] ${n}`,children:[u("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover:text-primary-main z-10",role:"link",href:t,target:l,children:[h("div",{className:"p-0.5",children:e}),h("div",{className:"w-6 h-6",children:h(J,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"24",height:"24",asSVG:!0})})]}),h("div",{className:`${hl} mx-1.5 mt-1.5`}),h("div",{className:`${hl} mt-3 mr-3`})]}):null)),pl=p((({className:e="",additionalDescription:t,description:l,links:n,title:r,...a})=>u(R,{className:`bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${e}`,...a,children:[u("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[h(Ae,{title:r,as:"h1",description:l,align:"left",className:"p-0",bgColorHeadline:"secondary"}),t?h("div",{className:"pt-6",children:h(M,{children:t})}):null]}),n?.length?xl(n):null]}))),xl=e=>{const t=Math.ceil(e.length/12);return h(sl,{className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,children:new Array(t).fill(null).map(((t,l)=>h("div",{className:"w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start",children:e.slice(12*l,12*(l+1)).map(((e,t)=>h(ul,{className:"m-1",...e},String(t))))},String(l))))})},gl=p((({className:e="",title:t,icon:l,list:n=[],version:r="primary",...a})=>u(R,{className:`font-sans border border-main-stroke flex min-w-[536px] ${Q[r]} ${e}`,...a,children:[u("div",{className:"w-[200px] min-w-[200px] self-end",children:[l?.icon?h(J,{image:ee(l),asSVG:!0}):null,l?.src?h(J,{image:l}):null]}),u("div",{className:"p-8 pl-3 w-full",children:[t?h(j,{className:" mb-3.5",headingType:"h5",title:t}):null,n.length?h("div",{className:"flex flex-col gap-3",children:n?.map(bl)}):null]})]}))),bl=(e,t)=>u("div",{className:"break-words",children:[e.title?h("div",{className:"text-h6",children:e.title}):null,e.description?h("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),fl=p((({className:e="",title:t,icon:l,isHighlighting:n,button:r,rows:a=[],...i})=>{const s=a.map(yl),o=s.slice(0,1),c=s.slice(1);return u(R,{className:`font-sans relative bg-white border border-main-stroke min-w-[322px] p-8 \n ${vl(n)}\n ${e}`,...i,children:[n?wl():null,l?.src?h(J,{image:l}):null,t?h(j,{className:"text-primary-text text-center pt-2",headingType:"h5",title:t}):null,r?h(Ie,{className:"w-full mt-4",...r}):null,a.length?h(A,{renderFoldableSection:({isUnfolded:e})=>u("div",{children:[o,h(D,{isUnfolded:e,children:c})]}),renderFoldButton:a.length>1?Nl:null}):null]})})),vl=e=>e?"mt-9 pt-[70px]":"mt-[70px] pt-9",Nl=({isUnfolded:e,onToggle:t})=>u("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[h("div",{children:e?"Скрыть":"Подробнее о тарифе"}),h(E,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),yl=(e,t)=>u("div",{className:"py-5 border-b border-main-divider",children:[e?.title?h("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,e?.description?h("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null]},String(t)),wl=()=>u("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[h(E,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),h("div",{className:"text-center",children:"Хит"})]}),kl={black:"bg-black",white:"bg-white"},Cl=p((({className:e="",title:t,description:l,image:n,price:r,button:a,colors:i})=>u("section",{className:`border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[n?.src?h(J,{className:"mb-5 flex justify-center",image:n}):null,t?h(j,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?h("div",{className:"text-m-light text-left mb-4",children:l}):null,i?.length?u("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[h("div",{className:"mr-1.5",children:"Доступные цвета: "}),i.map($l)]}):null,r?u("div",{className:"text-h3 text-left",children:[r," ₽"]}):null,a?Ve({button:a,buttonClassName:"mt-5 w-full"}):null]}))),$l=(e,t)=>h("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${kl[e]}`},String(t)),Sl="absolute top-0 bottom-0 w-[84px]",Il=p((({cards:e=[],className:t="",title:l,description:n,...r})=>{const[a,i]=We({itemCount:e?.length,visibleItemCount:3});return u(R,{className:`bg-white relative font-sans p-12 overflow-hidden text-center ${t}`,...r,children:[h(Ae,{className:"!p-0",title:l,description:n,headlineVersion:"M",align:"center",...r}),h("div",{className:"flex duration-1000 gap-3.5 mt-8",style:{transform:`translateX(-${430*a}px)`},role:"list",children:e?.length?e.map(((e,t)=>h(Cl,{...e},String(t)))):null}),Ke({...i,btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"}),h("div",{className:`${Sl} left-0 bg-opacity-from-white`}),h("div",{className:`${Sl} right-0 bg-opacity-to-white`})]})})),Tl="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Bl="border-main-stroke border-solid border",Rl="border-main-divider border border-t-0 border-x-0",Vl="w-[200px] mr-6",jl=p((({icon:e,image:t,title:l,link:n})=>u("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${Bl} ${Tl}`,role:"columnheader",children:[e&&!t?.src&&h(J,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:ee(e),width:"63",height:"63",asSVG:!0}),t?.src&&h(J,{className:"mb-[18px]",image:t}),l?h(j,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&h("div",{className:"mt-auto w-full",children:h(Ie,{href:n.href,target:n.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:h("div",{className:"text-xs-light font-medium py-[11px]",children:n.text})})})]}))),Ml={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},Ll=p((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>h("div",{className:"flex flex-1 overflow-hidden",children:h("div",{className:Ml[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),_l=p((({children:e})=>h("div",{className:"self-start flex flex-col",role:"row",children:h("div",{className:"flex",children:e})}))),Al=p((({colHeaders:e,activeIndex:t})=>u(_l,{children:[h("div",{className:Vl,role:"columnheader"}),h(Ll,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>h(jl,{...e},String(t))))})]}))),Dl=p((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>h("div",{className:`w-80 box-border flex flex-col ${Bl} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?Tl:""}`,role:"cell",children:h("div",{className:`mx-7 h-full ${Rl} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>zl(e,t,n)))})}))),Ol=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),El=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),zl=({label:e,description:t},l,n)=>u("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?h("h4",{className:Ol(n),children:e}):null,t?h("div",{className:El(n),children:t}):null]},String(l)),Fl=(e=!1)=>`text-s py-7 ${Rl} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,Pl=p((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:r,isLastRow:a})=>u(_l,{children:[e?.title?h("div",{className:Fl(a),children:e.title}):null,t?.length?h(Ll,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>h(Dl,{cell:e,isFirstRow:r,isLastRow:a,isFillGradient:n&&0===t},String(t))))}):null]}))),Ul=p((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:n})=>{const{isScrollAvailable:r}=n;return u("div",{className:"relative",children:[e.map(((e,n,{length:r})=>h(Pl,{row:e,isFirstRow:0===n,isLastRow:n+1===r,activeIndex:l,isColoredFirstColumn:t},String(n)))),r?Ke({...n,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),Hl=p((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:r})=>{const a=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),[o,c]=We({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return u("div",{children:[u("div",{role:"table",children:[a?.length?h(Al,{colHeaders:a,activeIndex:o}):null,s?.length?h(Ul,{rowData:s,isColoredFirstColumn:r,activeIndex:o,controls:c}):null]}),d?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Xl=p((({className:e="",title:t,rowHeaders:l,columns:r,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!i),m=a((()=>d((e=>!e))),[]);return u(R,{className:`bg-white font-sans py-12 pl-12 overflow-hidden text-primary-text relative ${e}`,...o,children:[h(j,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),h(Hl,{columns:r,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?Gl({isShowAllRow:c,onClick:m}):null]})})),Gl=({isShowAllRow:e,onClick:t})=>h("div",{className:"pr-12",children:u("div",{className:"flex w-full",children:[h("div",{className:Vl}),h("button",{onClick:t,className:"mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:h("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),Wl=p((({className:e="",contacts:t,info:l,version:n="secondary",...r})=>u(R,{className:`${Q[n]} flex p-12 ${e}`,...r,children:[l?.length?Jl(l,n):null,t?.length?Jl(t,n):null]}))),Jl=(e,t)=>h("div",{className:"flex grow basis-0",children:e.map(((e,l)=>Yl({column:e,index:l,version:t})))}),Yl=({column:e,index:t,version:l})=>e?h("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:n,button:r},a)=>u("div",{className:"mt-6 first:mt-0",children:[h(Ae,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"left",bgColorHeadline:l}),n?h("div",{className:"mt-1.5 opacity-80",children:h(M,{size:"text-m-light",children:n})}):null,r?h(Ie,{className:"mt-6",...r}):null]},String(a))))},`col-${String(t)}`):null,Zl=e=>"Image"===e?.errorContentType&&e?.image?h(J,{image:e.image}):"Code"===e?.errorContentType&&e.code?h("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,Kl=p((({className:e="",title:t,subtitle:l,error:n,button:r})=>u("section",{className:`flex flex-col justify-center items-center mt-12 ${e}`,children:[h("div",{className:"flex justify-center py-20",children:Zl(n)}),t?h(j,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?h("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,r?.text?h(Ie,{className:"py-4 px-9",version:r?.version,...r,children:r.text}):null]}))),ql=p((({className:e="",title:t="",buttons:l,image:n,children:r})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:r}),l?h("div",{className:"mt-auto pt-8",children:l}):null]}),n]})]})));var Ql;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(Ql||(Ql={}));const en=new Intl.NumberFormat("ru",{style:"currency",currency:Ql.RUB}),tn=e=>e?en.format(e):"",ln="text-left text-m-light text-secondary-text",nn={USD:"DollarIcon",EUR:"EuroIcon"},rn=p((({className:e,exchangeCurrencyItems:t})=>u("table",{className:`h-fit w-fit ${e}`,children:[h("thead",{children:u("tr",{children:[h("th",{className:ln,children:"Валюта"}),h("th",{className:`${ln} pl-11`,children:"Купить"}),h("th",{className:`${ln} pl-11`,children:"Продать"})]})}),h("tbody",{children:t.map(an)})]}))),an=e=>{const t=e?.currency?.currency;return u("tr",{className:"pb-1 text-h6",children:[h("td",{className:"pt-4",children:u("div",{className:"flex items-center",children:[t?h(J,{image:{icon:nn[t]},width:"24",height:"24"}):null,h("span",{className:"ml-2",children:t})]})}),h("td",{className:"pt-4 pl-11",children:tn(e?.saleExchangeRate)}),h("td",{className:"pt-4 pl-11",children:tn(e?.buyExchangeRate)})]},t)},sn=p((({className:e="",address:t})=>u("div",{className:`flex ${e}`,children:[h(J,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),u("div",{className:"ml-3",children:[t?h("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,h("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),on=(e,t,l)=>{const n=Number(cn(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)},cn=e=>e.replace(/[^\d.,]/g,"").replace(",","."),dn=e=>{return(t=[[e=>e.value!==Ql.RUB&&e.oppositeValue!==Ql.RUB,()=>e.handleConvert(e.value,Ql.RUB)],[e=>e.value===Ql.RUB&&e.oppositeValue===Ql.RUB,()=>e.handleConvert(e.value,Ql.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function mn(e){const t=s(null);return r((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const hn=p((({className:e="",isBorder:t=!0,label:l,options:i=[],value:s,onChange:o,placeholder:c=""})=>{const[d,m]=n(i[0]||{key:"",text:""}),[p,x]=n(!1),g=mn(a((()=>x(!1)),[]));return r((()=>{m(s||{key:"",text:""})}),[s]),u("div",{className:`${e}`,ref:g,children:[l?h("span",{className:"mb-2 flex text-primary-text",children:l}):null,u("div",{className:"relative "+(p?"z-20":"z-10"),children:[u("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${xn(t)}`,onClick:()=>x(!p),children:[h("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:d?.text||c}),h(E,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(p?"":"rotate-180")})]}),i?.length?h("div",{className:`h-0 ${un(p)}`,children:h("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:i.map(pn((e=>{m(e),x(!1),o(e)}),p,(e=>Boolean(e.key===d.key))))})}):null]})]})})),un=e=>e?"":"overflow-hidden",pn=(e,t,l)=>(n,r)=>u("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[h("span",{className:"min-h-6",children:n.text}),h(E,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",l(n)&&t?"":"hidden"].join(" ")})]},String(r)),xn=e=>e?"border border-main-stroke rounded-md hover:border-primary-hover":"";function gn(e){const{placeholder:t,rates:l,selected:n,value:r,setValue:a,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return u("div",{className:"relative flex",children:[h(Ht,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:r,onChange:a}),s.length?h(hn,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const bn=p((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:r})=>{const[i,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Ql.RUB,selectBuy:l?.[0]?.currency?.currency||Ql.USD}),o=a((e=>s((t=>({...t,...e})))),[]);return u("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[gn({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:fn(i,o,l),value:i.inputSell,setValue:e=>Nn(o,l)(e,i.selectSell,i.selectBuy)}),gn({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:vn(i,o,t),value:i.inputBuy,setValue:e=>yn(o,t)(e,i.selectBuy,i.selectSell)}),r?.text?h(Ie,{className:"py-4 mr-1",version:r?.version,...r,children:r.text}):null]})})),fn=(e,t,l)=>n=>{t({selectSell:n}),dn({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,r=e.selectBuy)=>{Nn(t,l)(e.inputSell,n,r)}})},vn=(e,t,l)=>n=>{t({selectBuy:n}),dn({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,r=e.selectSell)=>yn(t,l)(e.inputBuy,n,r)})},Nn=(e,t)=>(l,n,r)=>{e({inputSell:cn(l),selectBuy:r});const a=t.find((e=>e.currency?.currency===r))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;a&&e({inputBuy:String(on(l,a,n===Ql.RUB)||"")})},yn=(e,t)=>(l,n,r)=>{e({inputBuy:cn(l),selectSell:r});const a=t.find((e=>e.currency?.currency===r))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;a&&e({inputSell:String(on(l,a,n===Ql.RUB)||"")})};const wn=async e=>{const t=await kn(),l=t?.code||"000";return{region:t,exchangeRates:await Cn(e,l)}},kn=async()=>{try{return await vt("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},Cn=async(e,t)=>{try{return await vt(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},$n=p((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:r}=function(){const{data:e}=gt("/api/v1/exchangerates",wn);return e||{}}(),a=Sn(r?.exchangeRate?.currencies),i=a.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:Ql.RUB}});const s=a.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Ql.RUB}}),h(R,{className:`bg-white text-primary-text font-sans p-9 box-border min-h-80 ${e}`,...n,children:h(ql,{title:h(j,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:u("div",{className:"flex",children:[u("div",{className:"mr-14 pt-4",children:[a?h(rn,{className:"mb-[30px]",exchangeCurrencyItems:a}):null,h(sn,{address:r?.address})]}),a.length&&i.length&&s.length?h(bn,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),Sn=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[];function In(e,t={}){const{data:l}=gt(`/wcms-resources/${e}.json`,vt,{fallback:t});return l||{}}const Tn={"bg-white":"color",transparent:"white"},Bn={"bg-white":"text-primary-main",transparent:"text-white"},Rn={"bg-white":"text-primary-text",transparent:"text-white"},Vn=p((({className:e="",href:t,logo:l,children:n=l?.title,targetBlank:r,bgColor:a="bg-white",showTitle:i=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:r?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[h(J,l?.image?.src?{image:l.image,className:Bn[a],width:"40",height:"45",asSVG:!0}:{image:{icon:l?.image?.icon||"LogoIcon",iconVersion:Tn[a]},className:`${Bn[a]} w-10`,width:"40",height:"45",asSVG:!0}),i?jn(n,a,l?.title):null]}))),jn=(e,t,l)=>h("span",{className:`${Rn[t]} font-medium ml-2.5`,children:e||l||"Россельхозбанк"}),Mn=p((({className:e,isMobile:t=!1})=>{const{term:l,setTerm:r}=(()=>{const[e,t]=n("");return{term:e,setTerm:e=>t(e)}})(),a=t?"text-s":"text-l-light",i=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(J,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${a}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${i}`,value:l,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),r("")},children:h(J,{image:"CloseIcon",width:"24",height:"24"})}):h(Ie,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Ln=p((e=>h(Mn,{...e}))),_n=p((({className:e="",items:t,hasButton:l})=>u("div",{className:e,children:[t?.length?t.map(An):null,l?h(Ie,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),An=(e,t)=>{const{type:l,text:n,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:Dn(l,n)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},Dn=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${On(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},On=e=>e.replaceAll(/\D/g,""),En=p((({className:e="",index:t,text:l,...n})=>{const r=ge(),{href:a,target:i,onClick:s}=r(n);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:i,onClick:s,children:l||`Документ ${t}`})})),zn=p((({className:e="",links:t})=>h("div",{className:e,children:t?.length?h("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>h(En,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),Fn=e=>t=>e?.href===t?.href,Pn=(e,t)=>{return(n=e,r=t,(n||[]).map((e=>r?.find(Fn(e))||e))).concat((l=e,(t||[]).filter((e=>!l?.find(Fn(e))))));var l,n,r},Un=p((({className:e="",items:t,fallback:l})=>{const n=ge(),r=In(c.SITEMAP||"sitemap",l),a=Pn(r.topItems,t);return h("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:a?.map(((e,t)=>Hn(n(e),t)))})})),Hn=(e,t)=>{const{text:l,items:n,href:r,target:a,onClick:i}=e;return u("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[h("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:r,target:a||"_self",onClick:i,children:l||`Раздел ${t}`}),n?.map(((e,t)=>h(Xn,{...e,index:t},String(t))))]},String(t))},Xn=p((({text:e,index:t,...l})=>{const n=ge(),{href:r,target:a,onClick:i}=n(l);return h("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:r,target:a||"_self",onClick:i,children:e||`Раздел ${t}`})})),Gn=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],Wn=p((({version:e="primary",...t})=>{const l=ge(),{href:n,onClick:r}=l(t),{icon:a,label:i}=Gn.find((({origins:e})=>e.some((e=>n?.includes(e)))))||{};if(!a)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:n,"aria-label":i,target:"_blank",rel:"noopener noreferrer",onClick:r,children:a?h(J,{image:ee(a),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Jn=p((({className:e="",media:t,version:l,children:n})=>u("div",{className:"font-sans",children:[h("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>h(Wn,{version:l,...e},String(t))))}),h("span",{className:"text-s-light text-secondary-text",children:n})]}))),Yn=p((({className:e="",index:t,...l})=>{const n=ge(),{href:r,target:a,text:i,onClick:s}=n(l);return h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:a,onClick:s,children:i||`Документ ${t}`})})),Zn=p((({className:e="",links:t})=>u("div",{className:e,children:[h("div",{className:"pt-5",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>h(Yn,{index:t,...e},String(t))))}):null]}))),Kn="w-[204px]",qn=p((({className:e,...t})=>{const l=t.options?.page?.fallback,{documents:n,relatedEnterprises:r,contacts:a,socialMedia:i,mobileApps:s,topItems:o,logo:d}=In(c.FOOTER||"footer",l);return u(R,{tag:"footer",className:`p-9 bg-white font-sans ${e||""}`,...t,children:[u("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[h(Vn,{className:Kn,logo:d}),h(Ln,{className:"grow"})]}),u("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[u("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[h(_n,{items:a,hasButton:!0}),h(Jn,{media:i,children:"Соцсети"}),h(Jn,{className:"mt-6",media:s,children:"Мобильное приложение"})]}),h(Un,{className:"pt-[3px]",items:o,fallback:l})]}),h(zn,{className:"mt-[98px]",links:r}),h(Zn,{links:n})]})})),Qn={normal:3,mini:4},er={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},tr={normal:380,mini:276},lr={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},nr={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},rr=p((({className:e="",isDotted:t=!0,children:l,version:n="primary",size:r="M"})=>u("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?h("div",{children:h("div",{className:`rounded-full align-middle inline-block ${lr[n]} ${nr[r]}`})}):null,h("span",{children:l})]}))),ar={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},ir={S:"text-l-light",M:"text-h6",L:"text-h5"},sr={S:"ml-2",M:"ml-3",L:"ml-4"},or=p((e=>{const{className:t="",hasIndent:l,isDotted:n,itemClassName:r="",items:a,listItemSize:i="M",version:s="primary"}=e;return a?.length?h("section",{className:`${ar[s]} ${ir[i]} ${t} ${l?sr[i]:""}`,role:"list",children:a.map(((e,t)=>h(rr,{className:`${r} mb-1.5`,isDotted:n,version:s,size:i,children:e},String(t))))}):null})),cr=p((({title:e,headlineSmallVersion:t="H6",description:l,additionalDescription:n,icon:r,items:a,button:i,version:s,isFullWidth:o=!0,isDotted:c=!0,align:d="center"})=>u("div",{className:`h-full flex flex-col justify-between ${C[d]}`,children:[u("div",{className:"flex flex-col h-full",children:[dr(r,s),mr(t,e),hr(l,e),a?.length?pr(a,c,s):null,ur(n)]}),i?.text?Ve({button:i,buttonClassName:"mt-6 "+(o?"":"self-center")}):null]}))),dr=(e,t)=>u("div",{className:"flex justify-center",children:[e?.src?h(J,{className:"mb-5",image:e}):null,e?.icon?h(J,{className:"w-8 h-8 min-w-8 mb-5 rounded-full",image:ee(e,t),asSVG:!0}):null]}),mr=(e,t)=>t?h("div",{className:_e[e],children:t}):null,hr=(e,t)=>e?h("div",{className:"text-l "+(t?"mt-2":""),children:e}):null,ur=e=>e?h("div",{className:"text-m-light text-secondary-text mt-auto",children:e}):null,pr=(e,t,l="primary")=>h(or,{className:"max-w-[308px] mt-2 text-s "+("primary"===l?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:l}),xr=p((({headlineVersion:e="M",cards:t=[],version:l="normal",activeIndex:n,...r})=>u("div",{children:[h(Ae,{...r,className:"!p-0",headlineVersion:e,align:"center"}),h("div",{className:`flex mt-8 ${t?.length<=Qn[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${n*tr[l]}px)`},role:"list",children:t?.map(((e,t)=>function({card:e,version:t},l){return h("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${er[t]} ${Q[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:h(cr,{...e})},String(l))}({card:e,version:l},t)))})]})));const gr=p((({cards:e=[],className:t="",version:l="normal",button:n,...r})=>{const[a,i]=We({itemCount:e?.length,visibleItemCount:Qn[l]}),{isScrollAvailable:s}=i;return u(R,{className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden flex flex-col ${t}`,...r,children:[h(xr,{cards:e,version:l,activeIndex:a,...r}),Ke({...i,btnClass:["left-8","right-8"],className:"top-1/2"}),s?u("div",{children:[h("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),h("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]}):null,n?Ve({button:n,buttonClassName:"mt-8 mx-auto"}):null]})})),br=p((e=>h(gr,{...e,version:"normal"}))),fr=p((({className:e="",title:t,description:l,calendar:n,...r})=>u(R,{className:`font-sans bg-white p-12 ${e}`,...r,children:[h(Ae,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M",align:"center",...r}),n?vr(n):null]}))),vr=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return u("div",{className:"w-full flex flex-col justify-center mt-13",children:[h("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>Nr(e,t)))}),h("div",{className:"flex w-full",children:l.map(((e,t)=>u("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[h("div",{className:"flex",children:yr(e)}),u("div",{className:"text-s-light text-primary-text mt-3",children:[h("span",{children:e.text})," ",h("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Nr=(e,t)=>e.month?.map(((e,l)=>h("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),yr=e=>e.month?.map((e=>e.image?.src?h("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:h(J,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),wr=(e,t,l=((e,t)=>t.startsWith(e)))=>l(de(e),de(ce(e)?t.href:t.pathname)),kr=e=>t=>wr(t.href,e),Cr=e=>t=>t.items?.some(kr(e))||wr(t.href,e)||((e,t)=>me(e)===me(t.href))(t.href,e),$r="font-sans text-s-light",Sr=p((({className:e="",active:t,flat:l,ariaLabel:n,bgColor:r="bg-white",children:a,...i})=>{const s=ge(),{href:o,target:c,text:d,onClick:m}=s(i);return h("a",{className:`${Ir(r,t,l)} ${e}`,href:o,target:c,onClick:m,rel:"noopener noreferrer","aria-label":n,children:h("span",{className:Tr(r,t,l),children:d||a})})})),Ir=(e,t=!1,l=!1)=>{let n="border-transparent";return t&&(n="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${n} inline-block border border-solid bg-transparent text-center no-underline ${l?"":"px-4 py-2"}`},Tr=(e,t=!1,l=!1)=>{if("transparent"===e)return`text-white hover:text-primary-hover ${$r}`;return`${t?"text-primary-main":(l?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${$r}`},Br=o("https://10.80.4.9");const Rr=p((({className:e="",children:t,ariaLabel:l})=>h("button",{type:"button",className:`border-0 p-0 w-6 h-6 flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":l,children:t}))),Vr={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},jr={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},Mr={"bg-white":"black",transparent:"white"},Lr=p((({className:e,officesLink:t,defaultLocation:l="Москва",bgColor:i="bg-white"})=>{const[s,o]=function(e){const[t,l]=n(e);return r((()=>{l(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,a((()=>{Br.getFetcherAddress().then((t=>{const n=t||e;globalThis?.localStorage.setItem("location",n),l(n)}))}),[e])]}(l);return u("div",{className:`flex items-center ${e||""}`,children:[h(Sr,{className:"mr-5",flat:!0,href:"#",text:s,ariaLabel:"Местоположение",onClick:o,bgColor:i}),t?h(Sr,{className:"mr-7",flat:!0,href:t,text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:i}):null,h(Rr,{className:`mr-5 group ${Vr[i]}`,ariaLabel:"Поиск по сайту",children:h(J,{image:{icon:"LoupeIcon",iconVersion:Mr[i]},className:"h-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0 pointer-events-none",asSVG:!0})}),h(Rr,{className:`${jr[i]} group min-w-8 min-h-8`,ariaLabel:"Дополнительные ссылки",children:h(J,{image:{icon:"GridIcon",iconVersion:Mr[i]},className:"h-full bg-main-divider/20 rounded-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0",asSVG:!0})})]})})),_r={"bg-white":"bg-primary-text",transparent:"bg-white"},Ar=p((({className:e,items:t,activeItem:l,bgColor:r})=>{const i=ge(),[s,o]=n(!1),c=a((()=>o((e=>!e))),[]),d=mn(a((()=>o(!1)),[]));return u("div",{className:`${s?"bg-white rounded-md shadow-blue-gray/24":""} ${e||""}`,ref:d,children:[h("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6","aria-label":""+(s?"Скрыть другие разделы":"Показать другие разделы"),onClick:c,children:Array(3).fill(r).map(Dr)}),h("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(s?"":"hidden"),"aria-hidden":!s,children:t?.map(((e,t)=>h("a",{className:"text-l-light pb-4 hover:text-primary-main "+(e===l?"text-primary-main":""),...i(e),children:e.text},e.href||String(t))))})]})})),Dr=(e,t)=>h("div",{className:`w-[3px] h-[3px] rounded mr-1 ${_r[e]}`},String(t)),Or="absolute left-0 -bottom-3 w-full h-0.5",Er=p((({className:e="",active:t,bgColor:l="bg-white",dataItemName:n,children:r,...a})=>{const i=ge(),{href:s,target:o,text:c,onClick:d}=i(a);return u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:s,target:o,"data-item-name":n,onClick:d,children:[h("span",{className:zr(l,t),children:c||r}),t?h("div",{className:Fr(l,t)}):null]})})),zr=(e,t=!1)=>{let l="text-white";return"bg-white"===e&&(l=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${l} font-sans text-l-light`},Fr=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Or}`:Or,Pr=p((({className:e,active:t,bgColor:l,observerOptions:n,onVisibilityChange:r,children:i,...s})=>{const o=S(a((e=>{if(!e.length||!r)return;const t=e[e.length-1];r(t.isIntersecting)}),[r]),n);return h("span",{ref:o,children:h(Er,{className:e,active:t,bgColor:l,...s,children:i})})})),Ur=p((({subItems:e=[],bgColor:t})=>{const l=(e=>(t=[])=>{const l=t?.filter(kr(e));return l?.length?el((e=>e.href?.length||0))(l):void 0})(xe())(e),[r,a]=n(e.length),o=e.slice(r),c=s(null),d={rootRef:c},m=i((()=>e.map(((e,t)=>e=>{a(e?Hr(t):Xr(t))}))),[e]);return u("nav",{className:"relative mt-6",children:[h("div",{ref:c,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,n)=>h(Pr,{className:"mr-8 "+(r-1<n?"invisible":""),active:e===l,bgColor:t,observerOptions:d,onVisibilityChange:m[n],...e},String(n))))}),o.length?h(Ar,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:o,activeItem:l,bgColor:t}):null]})})),Hr=e=>t=>Math.max(t,e+1),Xr=e=>t=>Math.min(t,e),Gr={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Wr=p((({bgColor:e="bg-white",className:t="",showSubMenu:l=!0,...n})=>{const r=xe(),{topItems:a,logo:i,defaultLocation:s,officesLink:o}=In(c.SITEMAP||"sitemap",n.options?.page?.fallback),d=l?Jr(a,r):null,m=a?.map(((t,l)=>h(Sr,{active:t===d,"aria-label":t.text,bgColor:e,...t},String(l))));return h(R,{tag:"header",className:`pt-6 px-20 ${e} ${t} ${l&&d?.items?.length?"pb-4":"pb-5"}`,...n,children:u("div",{className:"container",children:[u("div",{className:"flex items-center",children:[h(Vn,{className:"mr-8",bgColor:e,logo:i}),m,h(Lr,{className:"ml-auto",defaultLocation:s,officesLink:o,bgColor:e})]}),h("div",{className:`mt-6 h-px ${Gr[e]}`}),l&&d?.items?.length?h(Ur,{subItems:d.items,bgColor:e}):null]})})})),Jr=(e,t)=>{const[l]=e||[];return e?.find(Cr(t))||l},Yr=p((e=>{const{className:t,image:l,...n}=e;return h(R,{className:t,...n,children:h(J,{image:l})})})),Zr=p((({className:e="",cards:t=[],button:l})=>{const[r,i]=n(0),s=a((e=>i(e)),[]),o=t.length,[c,d]=We({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:p}=d,x=t[c]?.href;return u("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[u("div",{className:"relative overflow-hidden",children:[o?Kr({activeIndex:c,cards:t,selectedCardIndex:r,onClick:s}):null,Ke({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?h("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,p?h("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),h(Ie,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function Kr({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const r=460*e,a=t.length>2?"justify-start":"justify-center";return h("div",{style:{transform:`translateX(-${r}px)`},className:"duration-1000 px-12",children:h("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${a}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return u("button",{type:"button",onClick:n,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue/42 border-primary-main":"ease-in duration-300 border-main-stroke"),children:[e?.icon?h(J,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,u("div",{className:"flex gap-3.5",children:[e?.sum?qr("страховая сумма",e.sum):null,e?.fee?qr("страховой взнос",e.fee):null]}),Qr(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function qr(e,t){return u("div",{className:"flex flex-col text-left whitespace-pre",children:[u("span",{className:"text-h6",children:[qe(t)," ₽"]}),h("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Qr(e){return e?h(J,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:"DoneIcon",width:"24",height:"24"}):null}const ea=p((({className:e="",title:t,insuranceTabs:l=[],button:r,...i})=>{const[s,o]=n(0),c=a((e=>o(e)),[]);return u(R,{className:`box-border py-12 overflow-hidden relative font-sans w-100 bg-white ${e}`,...i,children:[t?h(j,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?h("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,isActive:l,onClick:n}){return h("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:ta({insuranceTabs:l,button:r})})]})})),ta=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>h(Zr,{button:t,cards:e},String(l)))):null};function la(e){return t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:n},l):[l]),[])}const na={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},ra={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},aa=p((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:r,investmentColumns:a,...i}=e,s=a?[...a]:[];return r&&s.unshift(r),h(R,{className:`font-sans bg-white px-9 py-12 ${t}`,...i,children:u("div",{className:"container text-m-light",children:[s?.length?u("div",{children:[u("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[la(h("div",{className:"w-px h-4 bg-main-stroke"}))(s.map(ia)),h("div",{className:"absolute right-[30px] w-px h-4 bg-main-stroke"})]}),h("div",{className:"border-t border-main-stroke -mt-2 ml-9 mr-8"}),h("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(ca)})]}):null,l?.length?h(or,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:n}):null]})})})),ia=(e,t,l)=>{const n=1===t,r=t===l.length-1;return h("div",{className:`${sa(n,r,e.cells)}`,children:e.cells?.length?h("div",{className:"w-full "+(r?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(oa)}):null},`column_${t}`)},sa=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-2.5",l.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),oa=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?h("div",{className:`flex-1 flex items-center justify-center relative py-2 ${ra[l]} ${na[n]} ${"XS"===l?"px-3":"px-11"}`,children:h("div",{className:"text-center",children:e.text})},`cell_${t}`):null},ca=(e,t,l)=>{const n=0===t,r=t===l.length-1;return h("div",{className:`flex-1 max-w-[180px] text-center px-2 ${n?"pl-9":""} ${r?"mr-3.5":" "}`,children:e.title},`title_${t}`)},da=p((({className:e,iconClassName:t,textClassName:l,suffixClassName:n,doc:r,icon:a})=>{const{text:i,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[a?h(J,{className:t,image:ee(a),width:"24px",height:"24px",asSVG:!0}):null,i?u("span",{className:l,children:[i,h("span",{className:n,children:o?.href&&ma(ha(o.href),s)})]}):null]})})),ma=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),ha=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},ua=p((({className:e="",doc:t,icon:l})=>h(da,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:l}))),pa=p((({className:e,documents:t,columnsMode:l="double",icon:n})=>t?.length?h("div",{className:e,role:"list",children:t.map(((e,t)=>h("div",{className:"double"===l?"basis-[calc(50%-20px)]":"",role:"listitem",children:h(ua,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:n})},String(t))))}):null)),xa={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},ga=p((({className:e="",title:t,description:l,align:n="center",documents:r,icon:a={icon:"DocIcon"},columnsMode:i="double",...s})=>u(R,{className:`font-sans text-primary-text p-12 bg-white ${e}`,...s,children:[h(Ae,{className:"!p-0",title:t,description:l,align:n,headlineVersion:"M",as:"h2",...s}),h(pa,{className:`mt-8 ${xa[i]}`,columnsMode:i,documents:r,icon:a})]}))),ba=p((e=>h(gr,{...e,version:"mini"}))),fa=e=>{const t="col-span-",l=e.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function va(e=""){const t=fa(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Na=p((({className:e="",title:t="Мобильное приложение",qr:l,buttons:n,version:r="primary",items:a,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="primary"===r?"text-primary-text":"",p="secondary"===r?"p-3.5 min-w-[120px]":"min-w-[92px]",x=n?.map((e=>({...e,className:"min-w-[168px]"})));return u(R,{className:`flex justify-between font-sans p-12 box-border relative min-h-80\n ${va(e)}\n ${Q[r]}\n ${e}`,...d,children:[u(ql,{className:"z-10",title:t?h(j,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full\n ${m} ${C[o]}`}):null,buttons:n?.length?h(Re,{buttons:x,className:"flex gap-4 mt-8",...d}):null,children:[wa(c),u("div",{className:"flex flex-1 items-center mb-3",children:[l?.src?h("div",{className:`flex justify-center mr-5 bg-white rounded-md ${p}`,children:h(J,{className:"w-fit",image:l})}):null,ya(r,a)]})]}),i?.src?h("div",{className:"absolute right-0 bottom-0",children:h(J,{image:i})}):null]})})),ya=(e,t)=>t?.length?h(or,{items:t,itemClassName:"text-l-light mb-2 last:mb-0",version:e}):h("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),wa=e=>e?h("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null;function ka(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),r=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),a=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));r.add(a),t.geoObjects.add(r),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Ca={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},$a=e=>h("a",{className:`select-none cursor-pointer px-9 h-12 bg-white bg-primary-main text-white ${Object.values(Ca).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Sa={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)]"},Ia=(e,t,l)=>u("div",{className:`${Object.values(Sa).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[h(E,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),h("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const n=t.target?.value?t.target?.value.toLowerCase():"";if(n){const t=e.filter((e=>e.text.toLowerCase().indexOf(n)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),Ta={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},Ba=(e,t,l)=>h("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(Ta).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:h(E,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),Ra=e=>globalThis[e];const Va=()=>function(e,t){const[l,i]=n(),s=a((()=>i(Ra(e))),[e]);return r((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!Ra(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),ja={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},Ma=p((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return h("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(ja).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:h(E,{name:l,width:"20",height:"16"})})})),La=[{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:"Кафе"}],_a={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-focus focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},Aa=p((({points:e,className:t="",zoom:l=5,showSearchField:a=!1})=>{const i=s(null),o=Va(),[c,d]=n(),[m,p]=n(za(La)),x=Da(e);if(r((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:x,zoom:l,controls:[],suppressMapOpenBlock:!0}),ka(o,i.current,m)}))}),[o,i,m]),r((()=>{if(i.current&&m&&o){const e=m.length<1?za(La):m;ka(o,i.current,e)}}),[i,m,o]),!o)return null;const g=c?"z-[100000]":"z-10";return u("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[h("div",{className:`absolute flex left-2 top-4 w-[50%] ${g}`,children:a?Ia(La,0,(e=>{if(e){const t=za(e);p(t)}})):$a(x)}),h("div",{className:`${Object.values(_a).join(" ")} ${g} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;c?e.exitFullscreen():e.enterFullscreen(),d(e.isFullscreen())},children:h(E,{name:"FullScreenIcon",width:"16",height:"16"})}),u("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${g}`,children:[h(Ma,{yandexMaps:i}),h(Ma,{yandexMaps:i,direction:"out"})]}),Ba(i.current,o,`right-2 top-80 ${g}`)]})})),Da=e=>[Ea(Oa(e,0)),Ea(Oa(e,1))],Oa=(e,t)=>e.map((e=>e[t])),Ea=e=>e.reduce(((e,t)=>e+t))/e.length,za=e=>e?e.map((e=>e.coords)):null,Fa=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],Pa=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?u("div",{className:"flex",children:[h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-golden border-golden",children:e?n:null})]}):h("div",{className:"flex",children:h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},Ua=({icon:e,title:t,distance:l,time:n},r)=>u("div",{className:"flex mr-4",children:[h(E,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?u("span",{className:"text-m",children:[t," "]}):null,u("span",{className:"text-m-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${r}`),Ha=({title:e,status:t,workTime:l,lunchHour:n,description:r},a)=>u("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[u("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[h("div",{children:e}),t?null:h("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?h("div",{children:l}):null]}),t&&n?Xa(n):null,r?h("div",{className:"pb-1 text-s-light text-secondary-text",children:r}):null]},`day${a}`),Xa=e=>/\d+/gi.test(e)?u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[h("div",{children:"Перерыв"}),h("div",{children:e})]}):h("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:h("div",{children:e})}),Ga={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};function Wa(e){return e?ft(e,{method:"GET"}):{}}const Ja=p((({className:e=""})=>{const t=function(e){const{data:t}=gt(e?`/api/v1/branches?regionCode=${e}`:void 0,Wa);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),Ga}("000"),{name:l,address:n,gpsLatitude:r,gpsLongitude:a,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:p,workingSunday:x}=i,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:v}=i,N=r&&a?[r,a]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:b},{title:"Суббота",status:p,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),k=w>0?y[w-1]:y[6];return u("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[u("div",{className:"flex flex-col px-12 pt-12",children:[u("div",{className:"flex justify-between",children:[h("div",{className:"text-h2",children:l}),Pa(k)]}),u("div",{className:"flex text-l-light pt-4",children:[h(E,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),n]}),h("div",{className:"flex pt-4",children:Fa.map(Ua)})]}),u("div",{className:"flex justify-between pt-8",children:[h("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?h(Aa,{points:[N],className:"h-full"}):null}),h("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(Ha)})]})]})})),Ya=p((({className:e="",title:t,servicesList:l,...n})=>u(R,{className:`font-sans bg-white p-8 flex flex-col ${e}`,...n,children:[t?h(j,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?h("ul",{className:"list-none m-0 p-0",children:l.map(Za)}):null]}))),Za=(e,t)=>u("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?h(J,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:ee(e.icon)}):null,e.label?h("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),Ka=p((({className:e="",...t})=>h(R,{className:`font-sans text-primary-text ${e}`,...t,children:k(t)})));Ka.childrenTypes=["OtherProductsItem"];const qa=p((({className:e="",label:t,icon:l,dataTheme:n="",onClick:r})=>u("button",{className:["border border-transparent bg-primary-main font-sans text-white cursor-pointer","hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none","flex justify-center w-full px-0 py-5",e].join(" "),"data-theme":n,onClick:r,children:[h("span",{className:"text-h4 pr-3",children:t}),l?h(J,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),Qa=({isUnfolded:e,onToggle:t})=>h(qa,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),ei=["ArrowDownIcon","ArrowUpIcon"],ti=p((({className:e,label:t="",isUnfolded:l,...n})=>{const{colorPalette:r}=function(e,t){const{content:l}=function(e){return e?.parent||{}}(e);return l||t}(n.options,{});return h("div",{className:`border-0 border-b border-solid border-main-divider ${e}`,children:h(A,{unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(D,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:k(n)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>h(qa,{label:t,icon:ei[Number(e)],dataTheme:r||n.options?.page?.colorPalette,onClick:l})})})}));ti.childrenTypes=[];const li=p((e=>{const{className:t,text:l,size:n,color:r,align:a,font:i,...s}=e;return h(R,{className:t,...s,children:h(M,{size:n,color:r,align:a,font:i,children:l})})})),ni={primary:"text-primary-text",secondary:"text-white"},ri={primary:"text-secondary-text",secondary:"text-white"},ai=p((e=>{const{className:t="",icon:l,label:n,description:r,version:a="primary",benefitsVersion:i="normal"}=e,s="white"===i?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[l?h("div",{className:ii(a,i),children:h(J,{className:"w-6 h-6",image:ee(l,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[n?h("div",{className:`text-h6 ${ni[a]}`,children:n}):null,r?h("div",{className:`text-m-light ${ri[a]}`,children:r}):null]})]})}));function ii(e,t){let l="bg-primary-main text-black";return"secondary"===e?l="bg-white/30 text-black":"normal"===t&&(l="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${l}`}const si=p((({className:e="",title:t,description:l,image:n,benefits:r,version:a="primary",sum:i,monthLimit:s,directionRight:o=!1,...c})=>u(R,{className:`relative font-sans py-12 px-24 ${Q[a]} ${e}`,...c,children:[h(Ae,{className:"!p-0",title:t,description:l,headlineVersion:"M",bgColorHeadline:a,align:"center",...c}),u("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[n?.src?h(J,{className:o?"order-2":"",image:n}):null,u("div",{className:"w-[558px] m-auto",children:[r?.length?h("div",{className:"flex flex-col gap-4",children:r.map(oi(a))}):null,ci(Number(i),Number(s))]})]})]}))),oi=e=>(t,l)=>h(ai,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));function ci(e,t){return e||t?u("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?di("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?di("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function di(e,t=0,l=!1){return u("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[h("span",{className:"text-secondary-text text-l-light",children:e}),u("span",{className:"text-primary-main text-h6",children:[qe(t)," ₽"]})]})}function mi(e=""){const t=fa(e);return t<=4?"S":t<=8?"M":"L"}function hi(e=""){const t=fa(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ui=p((({className:e,title:t,description:l="Блок в разработке...",...n})=>u(R,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${hi(e)} ${va(e)} `,...n,children:[h(Ae,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:mi(e),...n}),h("figure",{className:"m-0 min-w-[80%]",children:pi()})]}))),pi=(e=3)=>gi(100,e).map((e=>Math.floor(e))).map(xi),xi=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),gi=(e,t)=>[e].concat(t>0?gi(e/1.618,t-1):[]),bi=p((({className:e="",children:t,...l})=>{const n=ge(),{text:r,href:a,target:i,onClick:s}=n(l);return a?h("a",{className:`no-underline ${e}`,href:a,target:i,onClick:s,children:h("span",{className:e,children:r||t})}):h("span",{className:e,children:r||t})})),fi=(e="primary",t="normal")=>({icon:l,label:n,description:r},a)=>h(ai,{icon:l,label:n,description:r,version:e,benefitsVersion:t},String(a)),vi=p((({className:e="",title:t,headlineVersion:l="L",description:n,benefitsCountOfRow:r=3,benefits:a,benefitsVersion:i,buttons:s,footnote:o,image:c,items:d,version:m="primary",isDotted:p=!0,textBlockClassName:x="",...g})=>{const b=a?.filter((e=>e.label))?.length,f=Ni(r);return u("div",{className:`flex grow justify-between items-stretch h-full ${e}`,children:[u("div",{className:`flex flex-col ${x}`,children:[h(Ae,{title:t,description:n,className:"!p-0 max-w-[600px]",bgColorHeadline:m,headlineVersion:l,align:"left",...g}),u("div",{className:"flex flex-col justify-between h-full",children:[u(ql,{buttons:s?.length?h(Re,{buttons:s,className:"flex gap-4",...g}):null,children:[b?h("div",{className:f,children:a.map(fi(m,i))}):null,d?.length?h(or,{className:"mt-5 text-h6",items:d,itemClassName:"mb-[7px]",version:m,isDotted:p}):null]}),o?h("p",{className:"text-m-light pt-12",children:o}):null]})]}),c?.src&&h(J,{className:"mt-[-50px]",image:c})]})})),Ni=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function yi(e,t,l){const{text:n,href:r,target:a,onClick:i}=e,s="primary"===t?"white":"black",o=e?.icon||{icon:"ArrowLeftIcon"};return u("div",{className:`flex items-center cursor-pointer ${l}`,onClick:i,children:[h(Ie,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:n,href:r,target:a,children:h(J,{className:"w-4 h-4",image:{...o,iconVersion:o.iconVersion||s},asSVG:!0})}),n?h("span",{className:"text-m",children:n}):null]})}const wi={primary:"text-secondary-text",secondary:"text-white/80"},ki=p((e=>{const{className:t="",breadcrumbs:l,backwardButton:n,version:r="primary",...a}=e,i="primary"===r?r:"white";return u(R,{className:`font-sans overflow-hidden p-12 flex flex-col box-border min-h-[454px] ${Q[r]} ${t}`,...a,children:[n?.text?yi(n,i,"mb-10 -mt-2.5"):null,l?.length?h("div",{className:"text-xs-light mb-6",children:la(h("span",{className:`mx-2 ${wi[r]}`,children:"/"}))(l.map(((e,t)=>h(bi,{className:wi[r],...e},String(t)))))}):null,h(vi,{version:r,...a})]})})),Ci={primary:"border-main-stroke",secondary:"border-white/50"},$i={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},Si=p((({className:e="",slides:t=[],version:l="primary",...r})=>{const i=t.map((e=>e.nav)),s=t.map((e=>e.productBlock)),[o,c]=n(0),d=a((e=>c(e)),[]);return u(R,{className:`box-border pt-12 overflow-hidden relative font-sans w-100 mb-6 ${e}\n ${Q[l]}`,...r,children:[h("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${o}00%)`},role:"list",children:s.map(((e,t)=>function(e,t){const{version:l}=e,n=l?$i[l].title:"";return h("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:h("div",{className:"flex grow",children:h(vi,{className:`pl-12 z-10 ${n}`,textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...r,version:l},t)))}),h("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:i.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n,version:r}){const a=l?"bg-white shadow-dark-blue/42 min-w-[350px] border-none p-6":`min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur\n ${Q[r]}`,i=l?"text-primary-text !text-h6 p-2":`text-l pb-1 ${$i[r].title}`,s=l?"text-secondary-text text-l-light":`text-m-light ${$i[r].text}`;return h("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${a} ${Ci[r]}\n `,children:u("div",{className:"border-0 px-6",children:[h("div",{className:`last:pb-0 ${i}`,children:e?.title}),h("div",{className:`text-secondary-text ${s}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===o),onClick:()=>d(t),version:l})))})]})}));const Ii=p((({className:e="",title:t,headlineVersion:l="S",description:n,additionalDescription:r,benefits:a=[],buttons:i,image:s,version:o="primary",...c})=>u(R,{className:`overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]\n ${e} ${Q[o]} ${hi(e)}`,...c,children:[h(Ae,{className:"!p-0 !bg-transparent z-10 "+(t||n?"mb-3.5":""),as:"h2",title:t,description:n,headlineVersion:l,bgColorHeadline:o,align:"left",...c}),Ti(a,o,s),r?Ri(r,s,o):null,i?.length?h(Re,{buttons:i,className:"flex self-end mt-5 gap-4 z-10 text-l"}):null,s?.src?h(J,{className:"absolute right-0 bottom-0",image:s}):null]})));function Ti(e,t,l){return h("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline\n ${l?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(Bi(t)):null})}function Bi(e="primary"){const t={primary:"text-secondary-text",secondary:"text-white"};return function(l,n){const{label:r="",description:a=""}=l;return[h("div",{className:"text-h6",children:r},`label-${n}`),h("div",{className:`text-m-light ${t[e]}`,children:a},`desc-${n}`)]}}function Ri(e,t,l="primary"){return h("div",{className:`text-m-light mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"} ${{primary:"text-secondary-text",secondary:"text-white"}[l]}`,children:e})}const Vi=p((({className:e="",title:t="Акции и спецпредложения",date:l,description:n,buttons:r=[],version:a="primary",...i})=>h(R,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Q[a]} ${hi(e)} ${va(e)} `,...i,children:h(ql,{title:t?h(Ae,{title:t,className:"!p-0 max-w-[600px]",headlineVersion:mi(e),bgColorHeadline:a,align:"left",as:"h2",...i}):null,buttons:r?.length?h(Re,{buttons:r,className:"flex gap-3"}):null,children:u("div",{className:"mt-1.5",children:[l?h("div",{className:"text-s mb-2",children:ji(l)}):null,h("div",{className:"text-l",children:n})]})})})));function ji(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Mi=p((({className:e="",title:t,description:l,items:n,image:r,version:a,socialMedia:i,button:s})=>{const o=t?h(j,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:t}):null,c=r?.src?h(J,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return h("section",{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${e}`,role:"listitem",children:h(ql,{className:"flex justify-between",title:o,image:c,children:u("div",{className:"h-full flex flex-col justify-between",children:[l?h("span",{className:"mb-2",children:l}):null,n?.length?h(or,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:n,version:a}):null,i?h(Jn,{className:"pt-10 pb-0",media:i,version:a}):null,s?.text?h("div",{className:"pt-2",children:Ve({button:s,buttonClassName:"mt-16"})}):null]})})})})),Li="absolute top-0 bottom-0 w-[84px]",_i=p((({recommendations:e=[],className:t="",title:l,version:n="primary",...r})=>{const[a,i]=We({itemCount:e.length,visibleItemCount:2});return u(R,{className:`relative font-sans p-9 overflow-hidden text-center ${Q[n]} ${t}`,...r,children:[l?h(j,{headingType:"h3",className:"mb-6",title:l}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*a}px)`},role:"list",children:e.length?e.map(((e,t)=>h(Mi,{version:n,className:Ci[n],...e},String(t)))):null}),Ke({...i,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),h("div",{className:`${Li} left-0 ${"secondary"===n?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${Li} right-0 ${"secondary"===n?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Ai=p((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:n=!0,version:r="primary",...a})=>h("div",{className:`border-b border-solid border-main-divider w-full ${e}`,children:h(A,{isFoldButtonOnTop:n,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(D,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:k(a)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>Di({isUnfolded:e,onToggle:l,label:t,version:r})})})));Ai.childrenTypes={exclude:["RollupItem","Accordion","AccordionItem","OtherProducts","OtherProductsItem","VerticalLayout"]};const Di=({isUnfolded:e,onToggle:t,label:l,version:n})=>{const r=l?[l,l]:["Развернуть","Скрыть"];return"primary"===n?h(Oi,{icon:["PlusIcon","MinusIcon"][Number(e)],label:r[Number(e)],onClick:t}):h(qa,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:r[Number(e)],onClick:t})},Oi=p((({label:e,icon:t,onClick:l})=>u("button",{className:"border-none bg-transparent px-9 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer",onClick:l,children:[h("span",{className:"text-xl font-medium pr-2.5",children:e}),t?h(J,{image:ee({icon:t}),width:"24",height:"24",asSVG:!0}):null]}))),Ei=[];const zi=async e=>await ft(e,{method:"GET"})||Ei,Fi=p((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:r="",setSelected:a,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return h(hn,{options:s,label:i,placeholder:r||n,onChange:e=>a(e.key),value:o})})),Pi=p((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:r,onSelectedBranch:a})=>u("div",{className:"flex justify-between gap-4 mb-6",children:[h("div",{className:"max-w-[396px] w-1/2",children:h(Fi,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),h("div",{className:"max-w-[396px] w-1/2",children:h(Fi,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:r,setSelected:a,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Ui=p((({name:e,text:t,value:l,checked:n,onChange:r,className:a})=>h("div",{className:a,children:u("label",{className:"font-sans flex items-center relative cursor-pointer",children:[h("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-checkbox-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:n,onChange:e=>r(e.target.value)}),t?h("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),Hi=p((()=>{const[e,t]=n("option2"),l=a((e=>t(e)),[]);return u("div",{children:[h(Ui,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),h(Ui,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),Xi=["От 1 дня","До 365 дней"],Gi=p((({days:e,setDays:t})=>u("div",{className:"mb-6",children:[h("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),h(mt,{min:1,max:365,value:e,items:Xi,onChange:t})]}))),Wi=p((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:r,onSelectedBoxSize:a})=>u("div",{className:"flex justify-between mb-6",children:[h("div",{className:"mr-4 w-full",children:h(Fi,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),h("div",{className:"w-full",children:h(Fi,{data:n,fieldLabel:"safeBoxCasesSize",selected:r,setSelected:a,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Ji=p((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:r,selectedCaseVolume:a,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>u("div",{className:"flex-1 mr-9",children:[h(Pi,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:Yi(c)}),h(Gi,{days:r,setDays:e=>c({days:e})}),h(Wi,{caseVolumes:o,selectedCaseVolume:a,onSelectedCaseVolume:Zi(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),h("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),u("div",{className:"flex justify-between items-center mt-5",children:[h(Hi,{}),h(Ie,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Yi=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Zi=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Ki=p((({days:e,tariffs:t=[]})=>{const l=Qi(e,t);return u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex",children:[qi("Аренда за",e,"mr-11"),qi("Цена",l+" ₽")]}),u("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[h(J,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),u("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",h("br",{})," листов формата А4"]})]})]})})),qi=(e,t,l="")=>u("div",{className:l,children:[h("div",{className:"text-m-light text-secondary-text mb-1",children:e}),h("span",{className:"text-h3 text-primary-text",children:t})]}),Qi=(e,t)=>{const l=es(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},es=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},ts=(e,t)=>e.find((e=>e.branchCode===t)),ls=p((e=>{const{regions:t,data:l,branches:n,onChange:a,onClick:i}=e;r((()=>{a({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,a]);const s=ts(n,l.selectedBranch),o=ns(s?.safeBoxCaseVolumes),c=rs(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=as(c,l.selectedBoxSize);return u("div",{className:"flex justify-between align-top mb-6",children:[h(Ji,{...l,regions:t,onClick:i,branches:n,caseVolumes:o,safeBoxCases:c,onChange:a}),h(Ki,{days:l.days,tariffs:d})]})})),ns=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],rs=(e,t)=>e?.find((e=>e.volume===t)),as=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;const is=p((({title:e,footnote:t,className:l="",...r})=>{const[i,s]=n(!1),o=a((()=>s((e=>!e))),[]),[c,d]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=function(){const{data:e}=gt("/api/v1/regions",vt);return e||[]}(),p=ss(c.selectedRegion,m),x=function(e){const{data:t}=gt(e?`/api/v1/safeboxes?regionCode=${e}`:null,zi);return t||Ei}(p),g=a((e=>d((t=>({...t,...e})))),[d]),b=(f=ts(x,c.selectedBranch)||x,Array.isArray(f)?f.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):f?.gpsLatitude&&f?.gpsLongitude?[[f.gpsLatitude,f.gpsLongitude]]:[]);var f;return u(R,{className:l,...r,children:[u("div",{className:"font-sans bg-white px-8 py-12",children:[e?h(j,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,h(ls,{regions:m,branches:x,data:{...c,selectedRegion:p},onClick:o,onChange:g}),t?h("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?h(Aa,{points:b,className:"h-[640px]"}):null]})})),ss=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,os=e=>Boolean(e?.icon||e?.src),cs=({items:e,isDotted:t=!0,version:l="primary",className:n=""})=>e?h(or,{className:n,version:l,items:e,listItemSize:"M",isDotted:t}):null,ds=({styleMap:e,isMainButton:t,version:l})=>(n,r,{length:a})=>{const{label:i,description:s,button:o,items:c,isDotted:d}=n,m=i&&(s||c)?"mt-2":"";return u("div",{className:`relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden ${ps(a)}`,children:[u("div",{className:(o?.text?"mb-8":"")+" text-center",children:[ms(i),u("div",{className:`${m} flex flex-col items-center`,children:[hs({description:s,className:e.description}),cs({items:c,isDotted:d,version:l,className:us({className:"text-left",description:s,styleMap:e})})]})]}),o?.text&&!t?h(Ie,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(r))},ms=e=>e?h("div",{className:"text-h6",children:e}):null,hs=({description:e,className:t=""})=>e?h("div",{className:t,children:e}):null,us=({className:e,description:t,styleMap:l})=>[t?l.description:"text-h6",t?"mt-0.5":"",e].join(" "),ps=e=>e<5?"w-[276px]":"w-[210px]",xs={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},gs=p((({className:e="",showLines:t=!0,steps:l=[],button:n,version:r="primary",...a})=>{const{title:i}=a,s=xs[r],o=l.length>3,c=(e=>e?"":"opacity-0")(t),d=i?"mt-9":"",m=(e=>e<5?"px-[88px]":"px-[55px]")(l.length);return u(R,{className:["box-border py-12 font-sans",o?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",s.background,s.title,e].join(" "),...a,children:[i?h(j,{headingType:"h3",className:"max-w-[752px] text-center",title:i}):null,l?.length?u("div",{className:`box-border ${d}`,children:[h("div",{className:`flex items-center ${m}`,children:la(h("div",{className:`h-0.5 w-full bg-secondary-light ${c}`}))(l.map(bs(s,r)))}),h("div",{className:"flex justify-between mt-4 "+(o?"gap-x-3":"gap-x-[101px]"),children:l.map(ds({styleMap:s,isMainButton:Boolean(n?.text),version:r}))})]}):null,n?.text?h(Ie,{className:"mt-8 min-w-60",version:"primary",...n}):null]})})),bs=(e,t)=>({icon:l},n)=>h("div",{className:"flex flex-col items-center text-center",children:h("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center\n ${e.iconBackground} ${e.title}`,children:os(l)?h(J,{image:ee(l||{},t),width:"48",height:"48",asSVG:!0}):h("span",{className:`text-h4 ${e.iconText}`,children:n+1})})},String(n));const fs="h-12 flex-1 flex items-center justify-center cursor-pointer",vs="bg-primary-main",Ns="group bg-white",ys="font-sans text-m",ws="text-white",ks="text-secondary-text group-hover:text-primary-main",Cs=p((e=>{const{tab:t,currentTab:l}=e,n="link"===l?.type&&l.href===t.href,r=ge()(t);return h("a",{role:"tab",className:`${fs} ${n?vs:Ns}`,target:t.target,href:r.href,onClick:r.onClick,children:h("span",{className:`${ys} ${n?ws:ks}`,children:t.text})})})),$s=(e,t)=>h("h3",{className:`${ys} ${t?ws:ks}`,children:e}),Ss=(e,t)=>h("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(t?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover:text-primary-main"),children:e}),Is=({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,a)=>{const i=r.type;if("group"!==i&&"link"!==i)return null;switch(i){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,a)=>{const i=t===r,s=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return h("div",{className:`${fs} ${i?vs:Ns}`,role:"tab","aria-selected":i,onClick:()=>n(r),children:u("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?$s(r.title,i):null,l&&s?Ss(s,i):null]})},String(a))})({page:e,currentTab:t,showCounter:l,onClick:n})(r,a);case"link":return h(Cs,{tab:r,currentTab:t},String(a));default:!function(e){throw new Error(e)}(i)}},Ts=p((e=>{const{className:t="",tabs:l,showCounter:i,isSticky:s,...o}=e,[c,d]=n(l?l[0]:void 0);r((()=>$.inst.subscribe("tab",(e=>{const t=l?.find(Bs(e));"link"===e.type&&t&&d(t)}))),[l]),r((()=>"group"===c?.type?$.inst.subject("tab",{label:c.ref}):void 0),[c]);const m=a((e=>{"group"===e?.type&&$.inst.fire("tab",{type:e.type,label:e.ref}),d(e)}),[]);return h(R,{className:`${s?"sticky top-1 z-20 ":""}box-border flex gap-x-1 ${t}`,role:"tablist",...o,children:l?.map(Is({onClick:m,currentTab:c,showCounter:i,...o}))})})),Bs=e=>t=>"link"===t.type&&t.href===`#${e.label}`,Rs=p((({isOpen:e,onClick:t})=>u(Ie,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[h("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),h(E,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),Vs={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,...t},l)=>Ve({button:{rounded:e,...t},buttonClassName:(l>0&&e?"ml-3":"")+" w-12 h-12"})))}):null,Img:({image:e})=>e?.src?h(J,{image:e}):null,List:({isDotted:e,...t})=>h(or,{className:"flex flex-col justify-between items-start text-h6",version:"primary",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:p((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:r})=>e?h(Rs,{isOpen:r,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},js=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=n(!0);r((()=>{t===i&&a||m(!0)}),[a,i]);return u("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?h("div",{className:"h-5"}):null,Ms({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},Ms=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in Vs))return null;return h(Vs[l],{...t,...n})},Ls=p((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})=>h("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(js({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})):null}))),_s=p((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=We({itemCount:t,visibleItemCount:5});return u("div",{children:[e?.map(As(l)),Ke({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),As=e=>(t,l)=>{if(!t?.length)return null;const[n,...r]=t,a=[...Array(e).keys()].reduce(((e,t)=>140*(r?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return u("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?h("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:n.data}):null,h("div",{className:"flex flex-grow overflow-hidden",children:h("div",{className:i,style:{transform:`translateX(-${a}px)`},children:r?.map(((t,l)=>u("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?h("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?Ds(t.cols,e):null]},`row${l}`)))})})]},String(l))},Ds=(e,t)=>e?.length>0?h("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>h("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,Os=p((({activeTabIndex:e,items:t})=>{const[l,r]=n({}),i=a((e=>r((t=>({...t,[e]:!t[e]})))),[]);return h("div",{children:t.map(((t,n)=>{const r=`activeTabIdx:${e}-tableIdx:${n}`;return u("div",{className:"w-full",children:[u("div",{className:"flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>i(r),children:[t.title,h(J,{image:l[r]?"PlusIcon":"MinusIcon",className:"absolute right-[22px]",width:"24",height:"24"})]}),h("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[r]?"h-0":""),children:h("div",{className:"relative",children:h(_s,{rows:t.rowsData})})})]},r)}))})})),Es=p((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>u("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?h("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>h("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?h(Ie,{href:t,version:"secondary",target:"_blank",appendLeft:h(E,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20",asSVG:!0}),text:"Скачать в PDF"}):null]})));async function zs(e){const t=await fetch(e);return await t.json()}const Fs=p((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:r}=function(e){const{data:t}=gt(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),zs);return t||{}}(e),[i,s]=n(0),o=a((e=>s(e)),[]),c=r?.[i]?.items??[],d=r?.map((e=>e.currency??""));return u("div",r?{className:"bg-white z-10",children:[h(Es,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),h(Os,{activeTabIndex:i,items:c}),h(Rs,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[h("p",{children:"Данных нет"}),h(Rs,{onClick:l,isOpen:!0})]})})),Ps=p((({children:e,tableInner:t,onHideContentClick:l})=>u("div",{className:"self-start flex flex-col",role:"row",children:[h("div",{className:"flex",children:e}),t?h("div",{className:"origin-top animate-expansion",children:h(Fs,{...t,onClick:l})}):null]}))),Us=p((({row:{header:e,data:t},activeIndex:l,rowIdx:r,...i})=>{const[s,o]=n(void 0),c=a((e=>o(e)),[]),[d,m]=n(void 0),p=a((e=>m(e)),[]);return u(Ps,{onHideContentClick:()=>o(void 0),tableInner:s,...i,children:[h("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:u("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?h(J,{className:"mr-3.5 max-w-6 max-h-6",image:ee(e.icon),width:"24px",height:"24px",asSVG:!0}):null,e?.title?h("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?h(Ll,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>h(Ls,{cells:e,rowIdx:r,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:p,...i},String(t))))}):null]})})),Hs=p((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:r,hiddenRowsNum:a=0,...i})=>{const s=r?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=We({itemCount:c,visibleItemCount:2}),p=(o||[]).map(((e,t)=>h(Us,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[x,g]=a>0?[p.slice(0,-a),p.slice(-a)]:[p,[]];return u(R,{className:`bg-white font-sans p-12 overflow-hidden text-primary-text relative ${c>1?"pr-0":""} ${e}`,...i,children:[Xs({title:t,description:l}),Gs(l),a>0?h(A,{renderFoldableSection:({isUnfolded:e})=>u(Ws,{controls:m,children:[x,h(D,{isUnfolded:e,children:g})]}),renderFoldButton:Qa}):h(Ws,{controls:m,children:p})]})}));function Xs({title:e,description:t}){return e?h(j,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function Gs(e){return e?h("div",{className:"mb-9 text-center text-l",children:e}):null}const Ws=p((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return u("div",{role:"table",children:[u("div",{className:"relative",children:[e,Ke({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),l?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Js={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},Ys=p((({title:e,description:t,blockVersion:l="primary",iconVersion:n,image:r,className:a,...i})=>{const s=Js[l];return u(R,{className:`font-sans px-9 py-4 flex ${s.background} ${a||""}`,...i,children:["small"===n?Zs(s.icon):null,"big"===n?Ks(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${s.title}`,children:e}):null,t?h("div",{className:`text-s ${s.description}`,children:t}):null]})]})}));function Zs(e){return h("div",{className:"pt-1.5 pl-1 pr-4",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Ks(e){return e?.src?h(J,{className:"pt-0.5 pr-3",image:e}):null}const qs=p((e=>{const{tags:t,className:l=""}=e;return t?.length?h("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(Qs)}):null})),Qs=(e,t)=>h("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-color-stroke",children:e},String(t)),eo=p((e=>{const{title:t,headingType:l="h3",description:n,items:r,buttons:a,image:i,isDotted:s=!0,listItemSize:o="M",className:c="",version:d="primary",tags:m,children:p,...x}=e,g="primary"===d?"text-primary-text":"";return h(R,{className:`overflow-hidden font-sans p-9 pr-3 box-border ${c} ${Q[d]} ${hi(c)} ${va(c)} `,...x,children:u(ql,{title:t?h(j,{headingType:l,as:"h2",title:t,className:`whitespace-pre-wrap max-w-[600px] ${g}`}):null,buttons:a?.length?h(Re,{buttons:a.map((e=>({...e,className:"min-w-[158px]"}))),className:"flex mt-8 gap-3",...x}):null,image:i?.src?h(J,{className:"mt-auto ml-7",image:i}):null,children:[n?h("div",{className:"max-w-[600px] mt-2.5",children:h(M,{size:"text-xl-light",children:n})}):null,p,to({version:d,isDotted:s,listItemSize:o},r),m?.length?h(qs,{tags:m,className:"mt-5"}):null]})})}));function to({version:e,isDotted:t,listItemSize:l},n){return n?.length?h(or,{items:n,isDotted:t,className:"mt-2.5",listItemSize:l,itemClassName:"mb-1.5",version:e}):null}const lo={left:"items-start",center:"items-center",right:"items-end"},no={XXL:"gap-10",XL:"gap-8",L:"gap-4",M:"gap-3",S:"gap-2",XS:"gap-1","":""},ro={transparent:"",primary:"bg-white",secondary:"bg-primary-main"},ao=p((({className:e="",gap:t="",align:l,version:n="transparent",...r})=>h(R,{className:["flex flex-col",no[t],l&&lo[l],ro[n],e].filter(Boolean).join(" "),...r,children:k(r)})));ao.childrenTypes={exclude:["VerticalLayout"]};const io=e=>fa(e)<10?"py-6 px-11":"py-12 px-32",so=p((e=>{const{title:t,src:l,previewImg:n,className:r="",...a}=e;return u(R,{className:`bg-white ${io(r)} ${r}`,...a,children:[h(Ae,{title:t,headlineVersion:"M"}),l?h("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:n?.src,style:{maxHeight:524},controls:!0,children:h("source",{src:l})}):null]})})),oo={1:"flex gap-y-2 flex-col",2:"flex gap-y-2 gap-x-10 flex-wrap"},co=p((({additionalDescription:e,cardsList:t=[],className:l="",columnsMode:n=1,description:r,image:a,title:i,version:s="primary",...o})=>{const c=i?h(j,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,d=a?.src?h(J,{className:"absolute bottom-0 right-0 m-0",image:a}):null;return h(R,{className:`relative text-left border border-solid box-border\n p-9 w-[697px]\n ${Ci[s]}\n ${l}`,...o,children:u(ql,{title:c,image:d,children:[u("div",{className:"flex justify-between mb-4",children:[r?h("span",{className:"text-h6 w-1/3",children:r}):null,e?h("span",{className:"text-m-light text-secondary-text",children:e}):null]}),t.length?h("ul",{className:`list-none m-0 p-0 ${oo[n]}`,children:mo(t,n)}):null]})})})),mo=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,l)=>{return u("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?h("span",{className:"pr-2.5 "+(n=t,1===n?"text-h6":"text-l"),children:e.parameter}):null,e?.parameterDescription?h("span",{className:"text-m-light text-secondary-text",children:e.parameterDescription}):null]},String(l));var n})),ho={Accordion:_,AccordionItem:K,BenefitsBlock:re,BusinessBlock:Ge,Bonus:De,BonusBenefitsBlock:Fe,CardTransfer:Wt,Calculator:Et,Carousel:sl,CarouselCard:ml,CarouselLinks:pl,CarouselProgramsCard:gl,CarouselTariffsCard:fl,Catalog:Il,ContactsBlock:Wl,ComparisonTable:Xl,ErrorBlock:Kl,ExchangeRateTile:$n,Footer:qn,Gallery:br,GracePeriod:fr,Header:Wr,Headline:Ae,ImgBlock:Yr,InsuranceAmountBlock:ea,InvestmentInfo:aa,LinkDocs:ga,MiniGallery:ba,MobileAppTile:Na,ParagraphBlock:li,PictureText:si,Placeholder:ui,ProductBlock:ki,ProductGallery:Si,ProductTile:Ii,PromoTile:Vi,OfficeMap:Ja,OfficeServicesBlock:Ya,OtherProducts:Ka,OtherProductsItem:ti,Recommendation:_i,RollupItem:Ai,SafeDepositRental:is,StepsBlock:gs,Tabs:Ts,TariffsTable:Hs,TextBlock:Ys,Tile:eo,VerticalLayout:ao,Video:so,CarouselInvestmentCard:co},uo=["Header","Footer"],po=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function xo(e=B.inst,t=globalThis){const l=s(new Map);r((()=>e.eventBus.subscribe("intersection",(({block:e,intersection:t})=>{l.current&&l.current.set(e,t)}))),[e]),r((()=>{const n=((e,t=600)=>{let l;const n=(...r)=>{n.dispose(),l=setTimeout((()=>{e(...r)}),t)};return n.dispose=()=>{l&&clearTimeout(l)},n})((()=>{if(!(globalThis.scrollY>3*globalThis.innerHeight/4))return void e.reset();const t=function(e){const t=e.filter((([e])=>!uo.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?tl(po)(t):[];return l}([...l.current||[]]);t?.anchor?e.replace(t.anchor):t||e.reset()}),100);return t.addEventListener("scroll",n),()=>{n.dispose(),t.removeEventListener("scroll",n)}}),[e,t])}const go=m();const bo=p((({className:e,onClick:t,ariaLabel:l})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:fo()}))),fo=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),h("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},vo=p((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return r((()=>{(async()=>{const[t]=await go.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{l(await go.like(e))}),[e]),dislike:a((async()=>{l(await go.dislike(e))}),[e])}}(xe().pathname);return u("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[h(bo,{onClick:pe(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(bo,{onClick:pe(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),No=p((e=>{const{className:t="",blocksRegistry:l,blockDecorator:n,data:r={}}=e,{style:a,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:l,blockDecorator:n,parent:r};return xo(),u("section",{className:`relative ${g(a)} ${t}`,"data-theme":c,children:[s?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(s?.header,{...d,slotName:"header"})}):null,u("div",{className:"container grid grid-cols-12 gap-1",children:[w(i,d),s?.footer?w(s?.footer,{...d,slotName:"footer"}):null]}),o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(vo,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));No.childrenTypes=[],No.slots=()=>["header","footer"];e.Blocks=ho,e.ContentPage=No,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=pe,e.joinList=la,e.packageVersion="0.6.38",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=ue,e.useRouter=xe,Object.defineProperty(e,"__esModule",{value:!0})}));